@canonry/canonry 4.154.0 → 4.155.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +2 -2
  2. package/assets/agent-workspace/AGENTS.md +2 -2
  3. package/assets/agent-workspace/skills/aero/references/orchestration.md +3 -3
  4. package/assets/agent-workspace/skills/canonry/SKILL.md +6 -21
  5. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +14 -6
  6. package/assets/assets/{AuditHistoryPanel-WWT1n8jp.js → AuditHistoryPanel-BlbMBxOY.js} +1 -1
  7. package/assets/assets/BacklinksPage-DA9EaV9q.js +1 -0
  8. package/assets/assets/HistoryPage-BTrIHjMQ.js +1 -0
  9. package/assets/assets/MeasurementPropertyPage-CN6o5xFg.js +1 -0
  10. package/assets/assets/{ProjectPage-BR5ECwUP.js → ProjectPage-CsDbgp_0.js} +9 -9
  11. package/assets/assets/{RunRow-OE5tiuih.js → RunRow-ch_OlCPs.js} +1 -1
  12. package/assets/assets/RunsPage-T89Y_yS8.js +1 -0
  13. package/assets/assets/SettingsPage-DnmEq3F9.js +1 -0
  14. package/assets/assets/TrafficPage-CW1UhaJt.js +1 -0
  15. package/assets/assets/TrafficSourceDetailPage-r4Ji3wJm.js +1 -0
  16. package/assets/assets/extract-error-message-a8EErBoZ.js +1 -0
  17. package/assets/assets/index-BKq6k5Of.js +83 -0
  18. package/assets/assets/vendor-lucide-ByU7vBHt.js +1 -0
  19. package/assets/assets/vendor-yaml-GWJz5H2G.js +131 -0
  20. package/assets/index.html +3 -1
  21. package/dist/{chunk-ANSQ6JNO.js → chunk-OSHRDV36.js} +317 -4
  22. package/dist/{chunk-NNW7TJUZ.js → chunk-VIKPFI6F.js} +200 -5
  23. package/dist/{chunk-IFZS2TXV.js → chunk-VOL2BSM5.js} +1133 -104
  24. package/dist/{chunk-X5I7CAXH.js → chunk-YSESZNVT.js} +609 -165
  25. package/dist/cli.js +342 -7
  26. package/dist/index.js +4 -4
  27. package/dist/{intelligence-service-B5AETQ5N.js → intelligence-service-G4NV3X36.js} +2 -2
  28. package/dist/mcp.js +2 -2
  29. package/package.json +9 -9
  30. package/assets/assets/BacklinksPage-DIjUnsVL.js +0 -1
  31. package/assets/assets/HistoryPage-CrIBhGuW.js +0 -1
  32. package/assets/assets/MeasurementPropertyPage-uN4BWigS.js +0 -1
  33. package/assets/assets/RunsPage-C6xBmjps.js +0 -1
  34. package/assets/assets/SettingsPage-CUjjr8U0.js +0 -1
  35. package/assets/assets/TrafficPage-DrEfsHiE.js +0 -1
  36. package/assets/assets/TrafficSourceDetailPage-B3DX5BEk.js +0 -1
  37. package/assets/assets/arrow-left-CLmqvCqU.js +0 -1
  38. package/assets/assets/extract-error-message-BEBd1a5v.js +0 -1
  39. package/assets/assets/index-CsM-Xxia.js +0 -213
  40. package/assets/assets/refresh-cw-DYSS2Wd-.js +0 -1
  41. package/assets/assets/trash-2-VoiF_ckU.js +0 -1
@@ -0,0 +1,83 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProjectPage-CsDbgp_0.js","./vendor-tanstack-BjS7iY3g.js","./RunRow-ch_OlCPs.js","./vendor-lucide-ByU7vBHt.js","./ChartPrimitives-DXVLCdBi.js","./extract-error-message-a8EErBoZ.js","./vendor-recharts-33ACLxsD.js","./AuditHistoryPanel-BlbMBxOY.js","./v2-overview-adapter-COMP5UGt.js","./vendor-radix-DnzzbllM.js","./vendor-markdown-CpDJch4G.js","./vendor-yaml-GWJz5H2G.js","./RunsPage-T89Y_yS8.js","./HistoryPage-BTrIHjMQ.js","./SettingsPage-DnmEq3F9.js","./BacklinksPage-DA9EaV9q.js","./TrafficPage-CW1UhaJt.js","./TrafficSourceDetailPage-r4Ji3wJm.js","./MeasurementPropertyPage-CN6o5xFg.js"])))=>i.map(i=>d[i]);
2
+ import{c as ww,d as Sw,r as T,j as u,Q as jw,M as Aw,q as Se,e as Nb,L as Je,a as Nw,f as $s,u as ia,h as _w,k as qc,l as Cw,m as zw,n as _b,O as Km,o as yi,p as es,s as Ew,t as xt,v as Cb,x as bi,y as Dw,z as Tw,A as Rw}from"./vendor-tanstack-BjS7iY3g.js";import{S as Ow,O as wp,P as zb,C as Sp,a as Eb,T as jp,D as Db,R as Tb}from"./vendor-radix-DnzzbllM.js";import{c as Rb}from"./vendor-recharts-33ACLxsD.js";import{A as qw,X as ro,S as Bw,L as Ob,C as qb,R as Ag,a as Bb,M as Mw,b as Pw,c as Uw,d as Mb,T as Pb,W as Lw,e as Ap,f as Iw,g as Vw,G as $w,P as Gw,H as Hw,h as Kw,i as Qw,j as Zw,k as Fw,l as Yw,B as Xw,F as Jw,m as Ww,n as eS,o as tS,p as Ng}from"./vendor-lucide-ByU7vBHt.js";import{M as aS}from"./vendor-markdown-CpDJch4G.js";import{p as nS}from"./vendor-yaml-GWJz5H2G.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const g of f.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();var xm={exports:{}},hr={},km={exports:{}},wm={};var _g;function iS(){return _g||(_g=1,(function(e){function n(I,ie){var ue=I.length;I.push(ie);e:for(;0<ue;){var _e=ue-1>>>1,le=I[_e];if(0<c(le,ie))I[_e]=ie,I[ue]=le,ue=_e;else break e}}function s(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var ie=I[0],ue=I.pop();if(ue!==ie){I[0]=ue;e:for(var _e=0,le=I.length,He=le>>>1;_e<He;){var W=2*(_e+1)-1,U=I[W],K=W+1,te=I[K];if(0>c(U,ue))K<le&&0>c(te,U)?(I[_e]=te,I[K]=ue,_e=K):(I[_e]=U,I[W]=ue,_e=W);else if(K<le&&0>c(te,ue))I[_e]=te,I[K]=ue,_e=K;else break e}}return ie}function c(I,ie){var ue=I.sortIndex-ie.sortIndex;return ue!==0?ue:I.id-ie.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var g=Date,b=g.now();e.unstable_now=function(){return g.now()-b}}var x=[],k=[],S=1,j=null,A=3,z=!1,$=!1,L=!1,P=!1,V=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function ee(I){for(var ie=s(k);ie!==null;){if(ie.callback===null)r(k);else if(ie.startTime<=I)r(k),ie.sortIndex=ie.expirationTime,n(x,ie);else break;ie=s(k)}}function re(I){if(L=!1,ee(I),!$)if(s(x)!==null)$=!0,he||(he=!0,qe());else{var ie=s(k);ie!==null&&pe(re,ie.startTime-I)}}var he=!1,q=-1,ae=5,Ae=-1;function de(){return P?!0:!(e.unstable_now()-Ae<ae)}function ge(){if(P=!1,he){var I=e.unstable_now();Ae=I;var ie=!0;try{e:{$=!1,L&&(L=!1,ne(q),q=-1),z=!0;var ue=A;try{t:{for(ee(I),j=s(x);j!==null&&!(j.expirationTime>I&&de());){var _e=j.callback;if(typeof _e=="function"){j.callback=null,A=j.priorityLevel;var le=_e(j.expirationTime<=I);if(I=e.unstable_now(),typeof le=="function"){j.callback=le,ee(I),ie=!0;break t}j===s(x)&&r(x),ee(I)}else r(x);j=s(x)}if(j!==null)ie=!0;else{var He=s(k);He!==null&&pe(re,He.startTime-I),ie=!1}}break e}finally{j=null,A=ue,z=!1}ie=void 0}}finally{ie?qe():he=!1}}}var qe;if(typeof J=="function")qe=function(){J(ge)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,at=De.port2;De.port1.onmessage=ge,qe=function(){at.postMessage(null)}}else qe=function(){V(ge,0)};function pe(I,ie){q=V(function(){I(e.unstable_now())},ie)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_next=function(I){switch(A){case 1:case 2:case 3:var ie=3;break;default:ie=A}var ue=A;A=ie;try{return I()}finally{A=ue}},e.unstable_requestPaint=function(){P=!0},e.unstable_runWithPriority=function(I,ie){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var ue=A;A=I;try{return ie()}finally{A=ue}},e.unstable_scheduleCallback=function(I,ie,ue){var _e=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?_e+ue:_e):ue=_e,I){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=ue+le,I={id:S++,callback:ie,priorityLevel:I,startTime:ue,expirationTime:le,sortIndex:-1},ue>_e?(I.sortIndex=ue,n(k,I),s(x)===null&&I===s(k)&&(L?(ne(q),q=-1):L=!0,pe(re,ue-_e))):(I.sortIndex=le,n(x,I),$||z||($=!0,he||(he=!0,qe()))),I},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(I){var ie=A;return function(){var ue=A;A=ie;try{return I.apply(this,arguments)}finally{A=ue}}}})(wm)),wm}var Cg;function sS(){return Cg||(Cg=1,km.exports=iS()),km.exports}var zg;function oS(){if(zg)return hr;zg=1;var e=sS(),n=ww(),s=Sw();function r(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function g(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function b(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function x(t){if(f(t)!==t)throw Error(r(188))}function k(t){var a=t.alternate;if(!a){if(a=f(t),a===null)throw Error(r(188));return a!==t?null:t}for(var i=t,o=a;;){var d=i.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){i=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===i)return x(d),t;if(p===o)return x(d),a;p=p.sibling}throw Error(r(188))}if(i.return!==o.return)i=d,o=p;else{for(var v=!1,w=d.child;w;){if(w===i){v=!0,i=d,o=p;break}if(w===o){v=!0,o=d,i=p;break}w=w.sibling}if(!v){for(w=p.child;w;){if(w===i){v=!0,i=p,o=d;break}if(w===o){v=!0,o=p,i=d;break}w=w.sibling}if(!v)throw Error(r(189))}}if(i.alternate!==o)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?t:a}function S(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=S(t),a!==null)return a;t=t.sibling}return null}var j=Object.assign,A=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),J=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function qe(t){return t===null||typeof t!="object"?null:(t=ge&&t[ge]||t["@@iterator"],typeof t=="function"?t:null)}var De=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===De?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case V:return"Profiler";case P:return"StrictMode";case re:return"Suspense";case he:return"SuspenseList";case Ae:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case $:return"Portal";case J:return t.displayName||"Context";case ne:return(t._context.displayName||"Context")+".Consumer";case ee:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return a=t.displayName||null,a!==null?a:at(t.type)||"Memo";case ae:a=t._payload,t=t._init;try{return at(t(a))}catch{}}return null}var pe=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},_e=[],le=-1;function He(t){return{current:t}}function W(t){0>le||(t.current=_e[le],_e[le]=null,le--)}function U(t,a){le++,_e[le]=t.current,t.current=a}var K=He(null),te=He(null),se=He(null),Ce=He(null);function lt(t,a){switch(U(se,a),U(te,t),U(K,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?Z1(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=Z1(a),t=F1(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}W(K),U(K,t)}function Ne(){W(K),W(te),W(se)}function Ke(t){t.memoizedState!==null&&U(Ce,t);var a=K.current,i=F1(a,t.type);a!==i&&(U(te,t),U(K,i))}function Ye(t){te.current===t&&(W(K),W(te)),Ce.current===t&&(W(Ce),ur._currentValue=ue)}var Ut,Ea;function It(t){if(Ut===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Ut=a&&a[1]||"",Ea=-1<i.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Ut+t+Ea}var ss=!1;function os(t,a){if(!t||ss)return"";ss=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(G){var M=G}Reflect.construct(t,[],X)}else{try{X.call()}catch(G){M=G}t.call(X.prototype)}}else{try{throw Error()}catch(G){M=G}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(G){if(G&&M&&typeof G.stack=="string")return[G.stack,M.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),v=p[0],w=p[1];if(v&&w){var N=v.split(`
5
+ `),O=w.split(`
6
+ `);for(d=o=0;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;for(;d<O.length&&!O[d].includes("DetermineComponentFrameRoot");)d++;if(o===N.length||d===O.length)for(o=N.length-1,d=O.length-1;1<=o&&0<=d&&N[o]!==O[d];)d--;for(;1<=o&&0<=d;o--,d--)if(N[o]!==O[d]){if(o!==1||d!==1)do if(o--,d--,0>d||N[o]!==O[d]){var H=`
7
+ `+N[o].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=o&&0<=d);break}}}finally{ss=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?It(i):""}function Gr(t,a){switch(t.tag){case 26:case 27:case 5:return It(t.type);case 16:return It("Lazy");case 13:return t.child!==a&&a!==null?It("Suspense Fallback"):It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return os(t.type,!1);case 11:return os(t.type.render,!1);case 1:return os(t.type,!0);case 31:return It("Activity");default:return""}}function fo(t){try{var a="",i=null;do a+=Gr(t,i),i=t,t=t.return;while(t);return a}catch(o){return`
8
+ Error generating stack: `+o.message+`
9
+ `+o.stack}}var go=Object.prototype.hasOwnProperty,yo=e.unstable_scheduleCallback,Jt=e.unstable_cancelCallback,Bn=e.unstable_shouldYield,rs=e.unstable_requestPaint,Kt=e.unstable_now,ou=e.unstable_getCurrentPriorityLevel,bo=e.unstable_ImmediatePriority,vo=e.unstable_UserBlockingPriority,_i=e.unstable_NormalPriority,Hr=e.unstable_LowPriority,xo=e.unstable_IdlePriority,ru=e.log,Kr=e.unstable_setDisableYieldValue,Ci=null,Qt=null;function $a(t){if(typeof ru=="function"&&Kr(t),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Ci,t)}catch{}}var Zt=Math.clz32?Math.clz32:lu,Qr=Math.log,Mn=Math.LN2;function lu(t){return t>>>=0,t===0?32:31-(Qr(t)/Mn|0)|0}var dn=256,zi=262144,tn=4194304;function Ga(t){var a=t&42;if(a!==0)return a;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pn(t,a,i){var o=t.pendingLanes;if(o===0)return 0;var d=0,p=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var w=o&134217727;return w!==0?(o=w&~p,o!==0?d=Ga(o):(v&=w,v!==0?d=Ga(v):i||(i=w&~t,i!==0&&(d=Ga(i))))):(w=o&~p,w!==0?d=Ga(w):v!==0?d=Ga(v):i||(i=o&~t,i!==0&&(d=Ga(i)))),d===0?0:a!==0&&a!==d&&(a&p)===0&&(p=d&-d,i=a&-a,p>=i||p===32&&(i&4194048)!==0)?a:d}function Ei(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function cu(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function an(){var t=tn;return tn<<=1,(tn&62914560)===0&&(tn=4194304),t}function Di(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function Un(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ko(t,a,i,o,d,p){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var w=t.entanglements,N=t.expirationTimes,O=t.hiddenUpdates;for(i=v&~i;0<i;){var H=31-Zt(i),X=1<<H;w[H]=0,N[H]=-1;var M=O[H];if(M!==null)for(O[H]=null,H=0;H<M.length;H++){var G=M[H];G!==null&&(G.lane&=-536870913)}i&=~X}o!==0&&wo(t,o,0),p!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=p&~(v&~a))}function wo(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var o=31-Zt(a);t.entangledLanes|=a,t.entanglements[o]=t.entanglements[o]|1073741824|i&261930}function So(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var o=31-Zt(i),d=1<<o;d&a|t[o]&a&&(t[o]|=a),i&=~d}}function jo(t,a){var i=a&-a;return i=(i&42)!==0?1:Ha(i),(i&(t.suspendedLanes|a))!==0?0:i}function Ha(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function la(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function mn(){var t=ie.p;return t!==0?t:(t=window.event,t===void 0?32:bg(t.type))}function Ln(t,a){var i=ie.p;try{return ie.p=t,a()}finally{ie.p=i}}var Ft=Math.random().toString(36).slice(2),ht="__reactFiber$"+Ft,wt="__reactProps$"+Ft,Ka="__reactContainer$"+Ft,Ao="__reactEvents$"+Ft,uu="__reactListeners$"+Ft,du="__reactHandles$"+Ft,Zr="__reactResources$"+Ft,Ti="__reactMarker$"+Ft;function ls(t){delete t[ht],delete t[wt],delete t[Ao],delete t[uu],delete t[du]}function Wt(t){var a=t[ht];if(a)return a;for(var i=t.parentNode;i;){if(a=i[Ka]||i[ht]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=ag(t);t!==null;){if(i=t[ht])return i;t=ag(t)}return a}t=i,i=t.parentNode}return null}function nn(t){if(t=t[ht]||t[Ka]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function In(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(r(33))}function Vn(t){var a=t[Zr];return a||(a=t[Zr]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ct(t){t[Ti]=!0}var F=new Set,Re={};function ca(t,a){va(t,a),va(t+"Capture",a)}function va(t,a){for(Re[t]=a,t=0;t<a.length;t++)F.add(a[t])}var mu=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Fr={},No={};function Yr(t){return go.call(No,t)?!0:go.call(Fr,t)?!1:mu.test(t)?No[t]=!0:(Fr[t]=!0,!1)}function Ri(t,a,i){if(Yr(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function cs(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function ea(t,a,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+o)}}function zt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function U0(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function f3(t,a,i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return d.call(this)},set:function(v){i=""+v,p.call(this,v)}}),Object.defineProperty(t,a,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function pu(t){if(!t._valueTracker){var a=U0(t)?"checked":"value";t._valueTracker=f3(t,a,""+t[a])}}function L0(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return t&&(o=U0(t)?t.checked?"true":"false":t.value),t=o,t!==i?(a.setValue(t),!0):!1}function Xr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var g3=/[\n"\\]/g;function Da(t){return t.replace(g3,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function hu(t,a,i,o,d,p,v,w){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),a!=null?v==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+zt(a)):t.value!==""+zt(a)&&(t.value=""+zt(a)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),a!=null?fu(t,v,zt(a)):i!=null?fu(t,v,zt(i)):o!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+zt(w):t.removeAttribute("name")}function I0(t,a,i,o,d,p,v,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),a!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){pu(t);return}i=i!=null?""+zt(i):"",a=a!=null?""+zt(a):i,w||a===t.value||(t.value=a),t.defaultValue=a}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=w?t.checked:!!o,t.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),pu(t)}function fu(t,a,i){a==="number"&&Xr(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function us(t,a,i,o){if(t=t.options,a){a={};for(var d=0;d<i.length;d++)a["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=a.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&o&&(t[i].defaultSelected=!0)}else{for(i=""+zt(i),a=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}a!==null||t[d].disabled||(a=t[d])}a!==null&&(a.selected=!0)}}function V0(t,a,i){if(a!=null&&(a=""+zt(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+zt(i):""}function $0(t,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(r(92));if(pe(o)){if(1<o.length)throw Error(r(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=zt(a),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o),pu(t)}function ds(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var y3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function G0(t,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":o?t.setProperty(a,i):typeof i!="number"||i===0||y3.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function H0(t,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in a)o=a[d],a.hasOwnProperty(d)&&i[d]!==o&&G0(t,d,o)}else for(var p in a)a.hasOwnProperty(p)&&G0(t,p,a[p])}function gu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var b3=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),v3=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jr(t){return v3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function pn(){}var yu=null;function bu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ms=null,ps=null;function K0(t){var a=nn(t);if(a&&(t=a.stateNode)){var i=t[wt]||null;e:switch(t=a.stateNode,a.type){case"input":if(hu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Da(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==t&&o.form===t.form){var d=o[wt]||null;if(!d)throw Error(r(90));hu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===t.form&&L0(o)}break e;case"textarea":V0(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&us(t,!!i.multiple,a,!1)}}}var vu=!1;function Q0(t,a,i){if(vu)return t(a,i);vu=!0;try{var o=t(a);return o}finally{if(vu=!1,(ms!==null||ps!==null)&&(Ul(),ms&&(a=ms,t=ps,ps=ms=null,K0(a),t)))for(a=0;a<t.length;a++)K0(t[a])}}function _o(t,a){var i=t.stateNode;if(i===null)return null;var o=i[wt]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xu=!1;if(hn)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){xu=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{xu=!1}var $n=null,ku=null,Wr=null;function Z0(){if(Wr)return Wr;var t,a=ku,i=a.length,o,d="value"in $n?$n.value:$n.textContent,p=d.length;for(t=0;t<i&&a[t]===d[t];t++);var v=i-t;for(o=1;o<=v&&a[i-o]===d[p-o];o++);return Wr=d.slice(t,1<o?1-o:void 0)}function el(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function tl(){return!0}function F0(){return!1}function ua(t){function a(i,o,d,p,v){this._reactName=i,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var w in t)t.hasOwnProperty(w)&&(i=t[w],this[w]=i?i(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?tl:F0,this.isPropagationStopped=F0,this}return j(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=tl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=tl)},persist:function(){},isPersistent:tl}),a}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},al=ua(Oi),zo=j({},Oi,{view:0,detail:0}),x3=ua(zo),wu,Su,Eo,nl=j({},zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Au,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Eo&&(Eo&&t.type==="mousemove"?(wu=t.screenX-Eo.screenX,Su=t.screenY-Eo.screenY):Su=wu=0,Eo=t),wu)},movementY:function(t){return"movementY"in t?t.movementY:Su}}),Y0=ua(nl),k3=j({},nl,{dataTransfer:0}),w3=ua(k3),S3=j({},zo,{relatedTarget:0}),ju=ua(S3),j3=j({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}),A3=ua(j3),N3=j({},Oi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),_3=ua(N3),C3=j({},Oi,{data:0}),X0=ua(C3),z3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},D3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T3(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=D3[t])?!!a[t]:!1}function Au(){return T3}var R3=j({},zo,{key:function(t){if(t.key){var a=z3[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=el(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?E3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Au,charCode:function(t){return t.type==="keypress"?el(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?el(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),O3=ua(R3),q3=j({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J0=ua(q3),B3=j({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Au}),M3=ua(B3),P3=j({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),U3=ua(P3),L3=j({},nl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),I3=ua(L3),V3=j({},Oi,{newState:0,oldState:0}),$3=ua(V3),G3=[9,13,27,32],Nu=hn&&"CompositionEvent"in window,Do=null;hn&&"documentMode"in document&&(Do=document.documentMode);var H3=hn&&"TextEvent"in window&&!Do,W0=hn&&(!Nu||Do&&8<Do&&11>=Do),eh=" ",th=!1;function ah(t,a){switch(t){case"keyup":return G3.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hs=!1;function K3(t,a){switch(t){case"compositionend":return nh(a);case"keypress":return a.which!==32?null:(th=!0,eh);case"textInput":return t=a.data,t===eh&&th?null:t;default:return null}}function Q3(t,a){if(hs)return t==="compositionend"||!Nu&&ah(t,a)?(t=Z0(),Wr=ku=$n=null,hs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return W0&&a.locale!=="ko"?null:a.data;default:return null}}var Z3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ih(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!Z3[t.type]:a==="textarea"}function sh(t,a,i,o){ms?ps?ps.push(o):ps=[o]:ms=o,a=Kl(a,"onChange"),0<a.length&&(i=new al("onChange","change",null,i,o),t.push({event:i,listeners:a}))}var To=null,Ro=null;function F3(t){V1(t,0)}function il(t){var a=In(t);if(L0(a))return t}function oh(t,a){if(t==="change")return a}var rh=!1;if(hn){var _u;if(hn){var Cu="oninput"in document;if(!Cu){var lh=document.createElement("div");lh.setAttribute("oninput","return;"),Cu=typeof lh.oninput=="function"}_u=Cu}else _u=!1;rh=_u&&(!document.documentMode||9<document.documentMode)}function ch(){To&&(To.detachEvent("onpropertychange",uh),Ro=To=null)}function uh(t){if(t.propertyName==="value"&&il(Ro)){var a=[];sh(a,Ro,t,bu(t)),Q0(F3,a)}}function Y3(t,a,i){t==="focusin"?(ch(),To=a,Ro=i,To.attachEvent("onpropertychange",uh)):t==="focusout"&&ch()}function X3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return il(Ro)}function J3(t,a){if(t==="click")return il(a)}function W3(t,a){if(t==="input"||t==="change")return il(a)}function ek(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var xa=typeof Object.is=="function"?Object.is:ek;function Oo(t,a){if(xa(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var d=i[o];if(!go.call(a,d)||!xa(t[d],a[d]))return!1}return!0}function dh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function mh(t,a){var i=dh(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=a&&o>=a)return{node:i,offset:a-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=dh(i)}}function ph(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?ph(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function hh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Xr(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=Xr(t.document)}return a}function zu(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var tk=hn&&"documentMode"in document&&11>=document.documentMode,fs=null,Eu=null,qo=null,Du=!1;function fh(t,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Du||fs==null||fs!==Xr(o)||(o=fs,"selectionStart"in o&&zu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),qo&&Oo(qo,o)||(qo=o,o=Kl(Eu,"onSelect"),0<o.length&&(a=new al("onSelect","select",null,a,i),t.push({event:a,listeners:o}),a.target=fs)))}function qi(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var gs={animationend:qi("Animation","AnimationEnd"),animationiteration:qi("Animation","AnimationIteration"),animationstart:qi("Animation","AnimationStart"),transitionrun:qi("Transition","TransitionRun"),transitionstart:qi("Transition","TransitionStart"),transitioncancel:qi("Transition","TransitionCancel"),transitionend:qi("Transition","TransitionEnd")},Tu={},gh={};hn&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete gs.animationend.animation,delete gs.animationiteration.animation,delete gs.animationstart.animation),"TransitionEvent"in window||delete gs.transitionend.transition);function Bi(t){if(Tu[t])return Tu[t];if(!gs[t])return t;var a=gs[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in gh)return Tu[t]=a[i];return t}var yh=Bi("animationend"),bh=Bi("animationiteration"),vh=Bi("animationstart"),ak=Bi("transitionrun"),nk=Bi("transitionstart"),ik=Bi("transitioncancel"),xh=Bi("transitionend"),kh=new Map,Ru="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ru.push("scrollEnd");function Qa(t,a){kh.set(t,a),ca(a,[t])}var sl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ta=[],ys=0,Ou=0;function ol(){for(var t=ys,a=Ou=ys=0;a<t;){var i=Ta[a];Ta[a++]=null;var o=Ta[a];Ta[a++]=null;var d=Ta[a];Ta[a++]=null;var p=Ta[a];if(Ta[a++]=null,o!==null&&d!==null){var v=o.pending;v===null?d.next=d:(d.next=v.next,v.next=d),o.pending=d}p!==0&&wh(i,d,p)}}function rl(t,a,i,o){Ta[ys++]=t,Ta[ys++]=a,Ta[ys++]=i,Ta[ys++]=o,Ou|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function qu(t,a,i,o){return rl(t,a,i,o),ll(t)}function Mi(t,a){return rl(t,null,null,a),ll(t)}function wh(t,a,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var d=!1,p=t.return;p!==null;)p.childLanes|=i,o=p.alternate,o!==null&&(o.childLanes|=i),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(d=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,d&&a!==null&&(d=31-Zt(i),t=p.hiddenUpdates,o=t[d],o===null?t[d]=[a]:o.push(a),a.lane=i|536870912),p):null}function ll(t){if(50<nr)throw nr=0,Gd=null,Error(r(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var bs={};function sk(t,a,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ka(t,a,i,o){return new sk(t,a,i,o)}function Bu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fn(t,a){var i=t.alternate;return i===null?(i=ka(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Sh(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function cl(t,a,i,o,d,p){var v=0;if(o=t,typeof t=="function")Bu(t)&&(v=1);else if(typeof t=="string")v=uw(t,i,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Ae:return t=ka(31,i,a,d),t.elementType=Ae,t.lanes=p,t;case L:return Pi(i.children,d,p,a);case P:v=8,d|=24;break;case V:return t=ka(12,i,a,d|2),t.elementType=V,t.lanes=p,t;case re:return t=ka(13,i,a,d),t.elementType=re,t.lanes=p,t;case he:return t=ka(19,i,a,d),t.elementType=he,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case J:v=10;break e;case ne:v=9;break e;case ee:v=11;break e;case q:v=14;break e;case ae:v=16,o=null;break e}v=29,i=Error(r(130,t===null?"null":typeof t,"")),o=null}return a=ka(v,i,a,d),a.elementType=t,a.type=o,a.lanes=p,a}function Pi(t,a,i,o){return t=ka(7,t,o,a),t.lanes=i,t}function Mu(t,a,i){return t=ka(6,t,null,a),t.lanes=i,t}function jh(t){var a=ka(18,null,null,0);return a.stateNode=t,a}function Pu(t,a,i){return a=ka(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Ah=new WeakMap;function Ra(t,a){if(typeof t=="object"&&t!==null){var i=Ah.get(t);return i!==void 0?i:(a={value:t,source:a,stack:fo(a)},Ah.set(t,a),a)}return{value:t,source:a,stack:fo(a)}}var vs=[],xs=0,ul=null,Bo=0,Oa=[],qa=0,Gn=null,sn=1,on="";function gn(t,a){vs[xs++]=Bo,vs[xs++]=ul,ul=t,Bo=a}function Nh(t,a,i){Oa[qa++]=sn,Oa[qa++]=on,Oa[qa++]=Gn,Gn=t;var o=sn;t=on;var d=32-Zt(o)-1;o&=~(1<<d),i+=1;var p=32-Zt(a)+d;if(30<p){var v=d-d%5;p=(o&(1<<v)-1).toString(32),o>>=v,d-=v,sn=1<<32-Zt(a)+d|i<<d|o,on=p+t}else sn=1<<p|i<<d|o,on=t}function Uu(t){t.return!==null&&(gn(t,1),Nh(t,1,0))}function Lu(t){for(;t===ul;)ul=vs[--xs],vs[xs]=null,Bo=vs[--xs],vs[xs]=null;for(;t===Gn;)Gn=Oa[--qa],Oa[qa]=null,on=Oa[--qa],Oa[qa]=null,sn=Oa[--qa],Oa[qa]=null}function _h(t,a){Oa[qa++]=sn,Oa[qa++]=on,Oa[qa++]=Gn,sn=a.id,on=a.overflow,Gn=t}var Vt=null,dt=null,$e=!1,Hn=null,Ba=!1,Iu=Error(r(519));function Kn(t){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Mo(Ra(a,t)),Iu}function Ch(t){var a=t.stateNode,i=t.type,o=t.memoizedProps;switch(a[ht]=t,a[wt]=o,i){case"dialog":Le("cancel",a),Le("close",a);break;case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(i=0;i<sr.length;i++)Le(sr[i],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"input":Le("invalid",a),I0(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Le("invalid",a);break;case"textarea":Le("invalid",a),$0(a,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||K1(a.textContent,i)?(o.popover!=null&&(Le("beforetoggle",a),Le("toggle",a)),o.onScroll!=null&&Le("scroll",a),o.onScrollEnd!=null&&Le("scrollend",a),o.onClick!=null&&(a.onclick=pn),a=!0):a=!1,a||Kn(t,!0)}function zh(t){for(Vt=t.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:Ba=!1;return;case 27:case 3:Ba=!0;return;default:Vt=Vt.return}}function ks(t){if(t!==Vt)return!1;if(!$e)return zh(t),$e=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||sm(t.type,t.memoizedProps)),i=!i),i&&dt&&Kn(t),zh(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));dt=tg(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));dt=tg(t)}else a===27?(a=dt,oi(t.type)?(t=um,um=null,dt=t):dt=a):dt=Vt?Pa(t.stateNode.nextSibling):null;return!0}function Ui(){dt=Vt=null,$e=!1}function Vu(){var t=Hn;return t!==null&&(ha===null?ha=t:ha.push.apply(ha,t),Hn=null),t}function Mo(t){Hn===null?Hn=[t]:Hn.push(t)}var $u=He(null),Li=null,yn=null;function Qn(t,a,i){U($u,a._currentValue),a._currentValue=i}function bn(t){t._currentValue=$u.current,W($u)}function Gu(t,a,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),t===i)break;t=t.return}}function Hu(t,a,i,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var p=d.dependencies;if(p!==null){var v=d.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=d;for(var N=0;N<a.length;N++)if(w.context===a[N]){p.lanes|=i,w=p.alternate,w!==null&&(w.lanes|=i),Gu(p.return,i,t),o||(v=null);break e}p=w.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=i,p=v.alternate,p!==null&&(p.lanes|=i),Gu(v,i,t),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===t){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function ws(t,a,i,o){t=null;for(var d=a,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var w=d.type;xa(d.pendingProps.value,v.value)||(t!==null?t.push(w):t=[w])}}else if(d===Ce.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(ur):t=[ur])}d=d.return}t!==null&&Hu(a,t,i,o),a.flags|=262144}function dl(t){for(t=t.firstContext;t!==null;){if(!xa(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ii(t){Li=t,yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return Eh(Li,t)}function ml(t,a){return Li===null&&Ii(t),Eh(t,a)}function Eh(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},yn===null){if(t===null)throw Error(r(308));yn=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else yn=yn.next=a;return i}var ok=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},rk=e.unstable_scheduleCallback,lk=e.unstable_NormalPriority,Et={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ku(){return{controller:new ok,data:new Map,refCount:0}}function Po(t){t.refCount--,t.refCount===0&&rk(lk,function(){t.controller.abort()})}var Uo=null,Qu=0,Ss=0,js=null;function ck(t,a){if(Uo===null){var i=Uo=[];Qu=0,Ss=Yd(),js={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Qu++,a.then(Dh,Dh),a}function Dh(){if(--Qu===0&&Uo!==null){js!==null&&(js.status="fulfilled");var t=Uo;Uo=null,Ss=0,js=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function uk(t,a){var i=[],o={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){o.status="fulfilled",o.value=a;for(var d=0;d<i.length;d++)(0,i[d])(a)},function(d){for(o.status="rejected",o.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),o}var Th=I.S;I.S=function(t,a){g1=Kt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&ck(t,a),Th!==null&&Th(t,a)};var Vi=He(null);function Zu(){var t=Vi.current;return t!==null?t:ot.pooledCache}function pl(t,a){a===null?U(Vi,Vi.current):U(Vi,a.pool)}function Rh(){var t=Zu();return t===null?null:{parent:Et._currentValue,pool:t}}var As=Error(r(460)),Fu=Error(r(474)),hl=Error(r(542)),fl={then:function(){}};function Oh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qh(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(pn,pn),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Mh(t),t;default:if(typeof a.status=="string")a.then(pn,pn);else{if(t=ot,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=a,t.status="pending",t.then(function(o){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=o}},function(o){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Mh(t),t}throw Gi=a,As}}function $i(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Gi=i,As):i}}var Gi=null;function Bh(){if(Gi===null)throw Error(r(459));var t=Gi;return Gi=null,t}function Mh(t){if(t===As||t===hl)throw Error(r(483))}var Ns=null,Lo=0;function gl(t){var a=Lo;return Lo+=1,Ns===null&&(Ns=[]),qh(Ns,t,a)}function Io(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function yl(t,a){throw a.$$typeof===A?Error(r(525)):(t=Object.prototype.toString.call(a),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Ph(t){function a(E,C){if(t){var R=E.deletions;R===null?(E.deletions=[C],E.flags|=16):R.push(C)}}function i(E,C){if(!t)return null;for(;C!==null;)a(E,C),C=C.sibling;return null}function o(E){for(var C=new Map;E!==null;)E.key!==null?C.set(E.key,E):C.set(E.index,E),E=E.sibling;return C}function d(E,C){return E=fn(E,C),E.index=0,E.sibling=null,E}function p(E,C,R){return E.index=R,t?(R=E.alternate,R!==null?(R=R.index,R<C?(E.flags|=67108866,C):R):(E.flags|=67108866,C)):(E.flags|=1048576,C)}function v(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function w(E,C,R,Y){return C===null||C.tag!==6?(C=Mu(R,E.mode,Y),C.return=E,C):(C=d(C,R),C.return=E,C)}function N(E,C,R,Y){var je=R.type;return je===L?H(E,C,R.props.children,Y,R.key):C!==null&&(C.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ae&&$i(je)===C.type)?(C=d(C,R.props),Io(C,R),C.return=E,C):(C=cl(R.type,R.key,R.props,null,E.mode,Y),Io(C,R),C.return=E,C)}function O(E,C,R,Y){return C===null||C.tag!==4||C.stateNode.containerInfo!==R.containerInfo||C.stateNode.implementation!==R.implementation?(C=Pu(R,E.mode,Y),C.return=E,C):(C=d(C,R.children||[]),C.return=E,C)}function H(E,C,R,Y,je){return C===null||C.tag!==7?(C=Pi(R,E.mode,Y,je),C.return=E,C):(C=d(C,R),C.return=E,C)}function X(E,C,R){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Mu(""+C,E.mode,R),C.return=E,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return R=cl(C.type,C.key,C.props,null,E.mode,R),Io(R,C),R.return=E,R;case $:return C=Pu(C,E.mode,R),C.return=E,C;case ae:return C=$i(C),X(E,C,R)}if(pe(C)||qe(C))return C=Pi(C,E.mode,R,null),C.return=E,C;if(typeof C.then=="function")return X(E,gl(C),R);if(C.$$typeof===J)return X(E,ml(E,C),R);yl(E,C)}return null}function M(E,C,R,Y){var je=C!==null?C.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return je!==null?null:w(E,C,""+R,Y);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case z:return R.key===je?N(E,C,R,Y):null;case $:return R.key===je?O(E,C,R,Y):null;case ae:return R=$i(R),M(E,C,R,Y)}if(pe(R)||qe(R))return je!==null?null:H(E,C,R,Y,null);if(typeof R.then=="function")return M(E,C,gl(R),Y);if(R.$$typeof===J)return M(E,C,ml(E,R),Y);yl(E,R)}return null}function G(E,C,R,Y,je){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return E=E.get(R)||null,w(C,E,""+Y,je);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case z:return E=E.get(Y.key===null?R:Y.key)||null,N(C,E,Y,je);case $:return E=E.get(Y.key===null?R:Y.key)||null,O(C,E,Y,je);case ae:return Y=$i(Y),G(E,C,R,Y,je)}if(pe(Y)||qe(Y))return E=E.get(R)||null,H(C,E,Y,je,null);if(typeof Y.then=="function")return G(E,C,R,gl(Y),je);if(Y.$$typeof===J)return G(E,C,R,ml(C,Y),je);yl(C,Y)}return null}function fe(E,C,R,Y){for(var je=null,Qe=null,xe=C,Be=C=0,Ve=null;xe!==null&&Be<R.length;Be++){xe.index>Be?(Ve=xe,xe=null):Ve=xe.sibling;var Ze=M(E,xe,R[Be],Y);if(Ze===null){xe===null&&(xe=Ve);break}t&&xe&&Ze.alternate===null&&a(E,xe),C=p(Ze,C,Be),Qe===null?je=Ze:Qe.sibling=Ze,Qe=Ze,xe=Ve}if(Be===R.length)return i(E,xe),$e&&gn(E,Be),je;if(xe===null){for(;Be<R.length;Be++)xe=X(E,R[Be],Y),xe!==null&&(C=p(xe,C,Be),Qe===null?je=xe:Qe.sibling=xe,Qe=xe);return $e&&gn(E,Be),je}for(xe=o(xe);Be<R.length;Be++)Ve=G(xe,E,Be,R[Be],Y),Ve!==null&&(t&&Ve.alternate!==null&&xe.delete(Ve.key===null?Be:Ve.key),C=p(Ve,C,Be),Qe===null?je=Ve:Qe.sibling=Ve,Qe=Ve);return t&&xe.forEach(function(di){return a(E,di)}),$e&&gn(E,Be),je}function ze(E,C,R,Y){if(R==null)throw Error(r(151));for(var je=null,Qe=null,xe=C,Be=C=0,Ve=null,Ze=R.next();xe!==null&&!Ze.done;Be++,Ze=R.next()){xe.index>Be?(Ve=xe,xe=null):Ve=xe.sibling;var di=M(E,xe,Ze.value,Y);if(di===null){xe===null&&(xe=Ve);break}t&&xe&&di.alternate===null&&a(E,xe),C=p(di,C,Be),Qe===null?je=di:Qe.sibling=di,Qe=di,xe=Ve}if(Ze.done)return i(E,xe),$e&&gn(E,Be),je;if(xe===null){for(;!Ze.done;Be++,Ze=R.next())Ze=X(E,Ze.value,Y),Ze!==null&&(C=p(Ze,C,Be),Qe===null?je=Ze:Qe.sibling=Ze,Qe=Ze);return $e&&gn(E,Be),je}for(xe=o(xe);!Ze.done;Be++,Ze=R.next())Ze=G(xe,E,Be,Ze.value,Y),Ze!==null&&(t&&Ze.alternate!==null&&xe.delete(Ze.key===null?Be:Ze.key),C=p(Ze,C,Be),Qe===null?je=Ze:Qe.sibling=Ze,Qe=Ze);return t&&xe.forEach(function(kw){return a(E,kw)}),$e&&gn(E,Be),je}function st(E,C,R,Y){if(typeof R=="object"&&R!==null&&R.type===L&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case z:e:{for(var je=R.key;C!==null;){if(C.key===je){if(je=R.type,je===L){if(C.tag===7){i(E,C.sibling),Y=d(C,R.props.children),Y.return=E,E=Y;break e}}else if(C.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ae&&$i(je)===C.type){i(E,C.sibling),Y=d(C,R.props),Io(Y,R),Y.return=E,E=Y;break e}i(E,C);break}else a(E,C);C=C.sibling}R.type===L?(Y=Pi(R.props.children,E.mode,Y,R.key),Y.return=E,E=Y):(Y=cl(R.type,R.key,R.props,null,E.mode,Y),Io(Y,R),Y.return=E,E=Y)}return v(E);case $:e:{for(je=R.key;C!==null;){if(C.key===je)if(C.tag===4&&C.stateNode.containerInfo===R.containerInfo&&C.stateNode.implementation===R.implementation){i(E,C.sibling),Y=d(C,R.children||[]),Y.return=E,E=Y;break e}else{i(E,C);break}else a(E,C);C=C.sibling}Y=Pu(R,E.mode,Y),Y.return=E,E=Y}return v(E);case ae:return R=$i(R),st(E,C,R,Y)}if(pe(R))return fe(E,C,R,Y);if(qe(R)){if(je=qe(R),typeof je!="function")throw Error(r(150));return R=je.call(R),ze(E,C,R,Y)}if(typeof R.then=="function")return st(E,C,gl(R),Y);if(R.$$typeof===J)return st(E,C,ml(E,R),Y);yl(E,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,C!==null&&C.tag===6?(i(E,C.sibling),Y=d(C,R),Y.return=E,E=Y):(i(E,C),Y=Mu(R,E.mode,Y),Y.return=E,E=Y),v(E)):i(E,C)}return function(E,C,R,Y){try{Lo=0;var je=st(E,C,R,Y);return Ns=null,je}catch(xe){if(xe===As||xe===hl)throw xe;var Qe=ka(29,xe,null,E.mode);return Qe.lanes=Y,Qe.return=E,Qe}}}var Hi=Ph(!0),Uh=Ph(!1),Zn=!1;function Yu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xu(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(t,a,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Xe&2)!==0){var d=o.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),o.pending=a,a=ll(t),wh(t,null,i),a}return rl(t,o,a,i),ll(t)}function Vo(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,So(t,i)}}function Ju(t,a){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var d=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?d=p=v:p=p.next=v,i=i.next}while(i!==null);p===null?d=p=a:p=p.next=a}else d=p=a;i={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var Wu=!1;function $o(){if(Wu){var t=js;if(t!==null)throw t}}function Go(t,a,i,o){Wu=!1;var d=t.updateQueue;Zn=!1;var p=d.firstBaseUpdate,v=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var N=w,O=N.next;N.next=null,v===null?p=O:v.next=O,v=N;var H=t.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==v&&(w===null?H.firstBaseUpdate=O:w.next=O,H.lastBaseUpdate=N))}if(p!==null){var X=d.baseState;v=0,H=O=N=null,w=p;do{var M=w.lane&-536870913,G=M!==w.lane;if(G?(Ie&M)===M:(o&M)===M){M!==0&&M===Ss&&(Wu=!0),H!==null&&(H=H.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var fe=t,ze=w;M=a;var st=i;switch(ze.tag){case 1:if(fe=ze.payload,typeof fe=="function"){X=fe.call(st,X,M);break e}X=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ze.payload,M=typeof fe=="function"?fe.call(st,X,M):fe,M==null)break e;X=j({},X,M);break e;case 2:Zn=!0}}M=w.callback,M!==null&&(t.flags|=64,G&&(t.flags|=8192),G=d.callbacks,G===null?d.callbacks=[M]:G.push(M))}else G={lane:M,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(O=H=G,N=X):H=H.next=G,v|=M;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;G=w,w=G.next,G.next=null,d.lastBaseUpdate=G,d.shared.pending=null}}while(!0);H===null&&(N=X),d.baseState=N,d.firstBaseUpdate=O,d.lastBaseUpdate=H,p===null&&(d.shared.lanes=0),ti|=v,t.lanes=v,t.memoizedState=X}}function Lh(t,a){if(typeof t!="function")throw Error(r(191,t));t.call(a)}function Ih(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Lh(i[t],a)}var _s=He(null),bl=He(0);function Vh(t,a){t=_n,U(bl,t),U(_s,a),_n=t|a.baseLanes}function ed(){U(bl,_n),U(_s,_s.current)}function td(){_n=bl.current,W(_s),W(bl)}var wa=He(null),Ma=null;function Xn(t){var a=t.alternate;U(Nt,Nt.current&1),U(wa,t),Ma===null&&(a===null||_s.current!==null||a.memoizedState!==null)&&(Ma=t)}function ad(t){U(Nt,Nt.current),U(wa,t),Ma===null&&(Ma=t)}function $h(t){t.tag===22?(U(Nt,Nt.current),U(wa,t),Ma===null&&(Ma=t)):Jn()}function Jn(){U(Nt,Nt.current),U(wa,wa.current)}function Sa(t){W(wa),Ma===t&&(Ma=null),W(Nt)}var Nt=He(0);function vl(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||lm(i)||cm(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var vn=0,Oe=null,nt=null,Dt=null,xl=!1,Cs=!1,Ki=!1,kl=0,Ho=0,zs=null,dk=0;function St(){throw Error(r(321))}function nd(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!xa(t[i],a[i]))return!1;return!0}function id(t,a,i,o,d,p){return vn=p,Oe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,I.H=t===null||t.memoizedState===null?_f:vd,Ki=!1,p=i(o,d),Ki=!1,Cs&&(p=Hh(a,i,o,d)),Gh(t),p}function Gh(t){I.H=Zo;var a=nt!==null&&nt.next!==null;if(vn=0,Dt=nt=Oe=null,xl=!1,Ho=0,zs=null,a)throw Error(r(300));t===null||Tt||(t=t.dependencies,t!==null&&dl(t)&&(Tt=!0))}function Hh(t,a,i,o){Oe=t;var d=0;do{if(Cs&&(zs=null),Ho=0,Cs=!1,25<=d)throw Error(r(301));if(d+=1,Dt=nt=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}I.H=Cf,p=a(i,o)}while(Cs);return p}function mk(){var t=I.H,a=t.useState()[0];return a=typeof a.then=="function"?Ko(a):a,t=t.useState()[0],(nt!==null?nt.memoizedState:null)!==t&&(Oe.flags|=1024),a}function sd(){var t=kl!==0;return kl=0,t}function od(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function rd(t){if(xl){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}xl=!1}vn=0,Dt=nt=Oe=null,Cs=!1,Ho=kl=0,zs=null}function ta(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Oe.memoizedState=Dt=t:Dt=Dt.next=t,Dt}function _t(){if(nt===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=nt.next;var a=Dt===null?Oe.memoizedState:Dt.next;if(a!==null)Dt=a,nt=t;else{if(t===null)throw Oe.alternate===null?Error(r(467)):Error(r(310));nt=t,t={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Dt===null?Oe.memoizedState=Dt=t:Dt=Dt.next=t}return Dt}function wl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ko(t){var a=Ho;return Ho+=1,zs===null&&(zs=[]),t=qh(zs,t,a),a=Oe,(Dt===null?a.memoizedState:Dt.next)===null&&(a=a.alternate,I.H=a===null||a.memoizedState===null?_f:vd),t}function Sl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ko(t);if(t.$$typeof===J)return $t(t)}throw Error(r(438,String(t)))}function ld(t){var a=null,i=Oe.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=Oe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=wl(),Oe.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),o=0;o<t;o++)i[o]=de;return a.index++,i}function xn(t,a){return typeof a=="function"?a(t):a}function jl(t){var a=_t();return cd(a,nt,t)}function cd(t,a,i){var o=t.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=i;var d=t.baseQueue,p=o.pending;if(p!==null){if(d!==null){var v=d.next;d.next=p.next,p.next=v}a.baseQueue=d=p,o.pending=null}if(p=t.baseState,d===null)t.memoizedState=p;else{a=d.next;var w=v=null,N=null,O=a,H=!1;do{var X=O.lane&-536870913;if(X!==O.lane?(Ie&X)===X:(vn&X)===X){var M=O.revertLane;if(M===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),X===Ss&&(H=!0);else if((vn&M)===M){O=O.next,M===Ss&&(H=!0);continue}else X={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(w=N=X,v=p):N=N.next=X,Oe.lanes|=M,ti|=M;X=O.action,Ki&&i(p,X),p=O.hasEagerState?O.eagerState:i(p,X)}else M={lane:X,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(w=N=M,v=p):N=N.next=M,Oe.lanes|=X,ti|=X;O=O.next}while(O!==null&&O!==a);if(N===null?v=p:N.next=w,!xa(p,t.memoizedState)&&(Tt=!0,H&&(i=js,i!==null)))throw i;t.memoizedState=p,t.baseState=v,t.baseQueue=N,o.lastRenderedState=p}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function ud(t){var a=_t(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=t;var o=i.dispatch,d=i.pending,p=a.memoizedState;if(d!==null){i.pending=null;var v=d=d.next;do p=t(p,v.action),v=v.next;while(v!==d);xa(p,a.memoizedState)||(Tt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),i.lastRenderedState=p}return[p,o]}function Kh(t,a,i){var o=Oe,d=_t(),p=$e;if(p){if(i===void 0)throw Error(r(407));i=i()}else i=a();var v=!xa((nt||d).memoizedState,i);if(v&&(d.memoizedState=i,Tt=!0),d=d.queue,pd(Fh.bind(null,o,d,t),[t]),d.getSnapshot!==a||v||Dt!==null&&Dt.memoizedState.tag&1){if(o.flags|=2048,Es(9,{destroy:void 0},Zh.bind(null,o,d,i,a),null),ot===null)throw Error(r(349));p||(vn&127)!==0||Qh(o,a,i)}return i}function Qh(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=Oe.updateQueue,a===null?(a=wl(),Oe.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function Zh(t,a,i,o){a.value=i,a.getSnapshot=o,Yh(a)&&Xh(t)}function Fh(t,a,i){return i(function(){Yh(a)&&Xh(t)})}function Yh(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!xa(t,i)}catch{return!0}}function Xh(t){var a=Mi(t,2);a!==null&&fa(a,t,2)}function dd(t){var a=ta();if(typeof t=="function"){var i=t;if(t=i(),Ki){$a(!0);try{i()}finally{$a(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:t},a}function Jh(t,a,i,o){return t.baseState=i,cd(t,nt,typeof o=="function"?o:xn)}function pk(t,a,i,o,d){if(_l(t))throw Error(r(485));if(t=a.action,t!==null){var p={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};I.T!==null?i(!0):p.isTransition=!1,o(p),i=a.pending,i===null?(p.next=a.pending=p,Wh(a,p)):(p.next=i.next,a.pending=i.next=p)}}function Wh(t,a){var i=a.action,o=a.payload,d=t.state;if(a.isTransition){var p=I.T,v={};I.T=v;try{var w=i(d,o),N=I.S;N!==null&&N(v,w),ef(t,a,w)}catch(O){md(t,a,O)}finally{p!==null&&v.types!==null&&(p.types=v.types),I.T=p}}else try{p=i(d,o),ef(t,a,p)}catch(O){md(t,a,O)}}function ef(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){tf(t,a,o)},function(o){return md(t,a,o)}):tf(t,a,i)}function tf(t,a,i){a.status="fulfilled",a.value=i,af(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,Wh(t,i)))}function md(t,a,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,af(a),a=a.next;while(a!==o)}t.action=null}function af(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function nf(t,a){return a}function sf(t,a){if($e){var i=ot.formState;if(i!==null){e:{var o=Oe;if($e){if(dt){t:{for(var d=dt,p=Ba;d.nodeType!==8;){if(!p){d=null;break t}if(d=Pa(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){dt=Pa(d.nextSibling),o=d.data==="F!";break e}}Kn(o)}o=!1}o&&(a=i[0])}}return i=ta(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nf,lastRenderedState:a},i.queue=o,i=jf.bind(null,Oe,o),o.dispatch=i,o=dd(!1),p=bd.bind(null,Oe,!1,o.queue),o=ta(),d={state:a,dispatch:null,action:t,pending:null},o.queue=d,i=pk.bind(null,Oe,d,p,i),d.dispatch=i,o.memoizedState=t,[a,i,!1]}function of(t){var a=_t();return rf(a,nt,t)}function rf(t,a,i){if(a=cd(t,a,nf)[0],t=jl(xn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Ko(a)}catch(v){throw v===As?hl:v}else o=a;a=_t();var d=a.queue,p=d.dispatch;return i!==a.memoizedState&&(Oe.flags|=2048,Es(9,{destroy:void 0},hk.bind(null,d,i),null)),[o,p,t]}function hk(t,a){t.action=a}function lf(t){var a=_t(),i=nt;if(i!==null)return rf(a,i,t);_t(),a=a.memoizedState,i=_t();var o=i.queue.dispatch;return i.memoizedState=t,[a,o,!1]}function Es(t,a,i,o){return t={tag:t,create:i,deps:o,inst:a,next:null},a=Oe.updateQueue,a===null&&(a=wl(),Oe.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,a.lastEffect=t),t}function cf(){return _t().memoizedState}function Al(t,a,i,o){var d=ta();Oe.flags|=t,d.memoizedState=Es(1|a,{destroy:void 0},i,o===void 0?null:o)}function Nl(t,a,i,o){var d=_t();o=o===void 0?null:o;var p=d.memoizedState.inst;nt!==null&&o!==null&&nd(o,nt.memoizedState.deps)?d.memoizedState=Es(a,p,i,o):(Oe.flags|=t,d.memoizedState=Es(1|a,p,i,o))}function uf(t,a){Al(8390656,8,t,a)}function pd(t,a){Nl(2048,8,t,a)}function fk(t){Oe.flags|=4;var a=Oe.updateQueue;if(a===null)a=wl(),Oe.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function df(t){var a=_t().memoizedState;return fk({ref:a,nextImpl:t}),function(){if((Xe&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function mf(t,a){return Nl(4,2,t,a)}function pf(t,a){return Nl(4,4,t,a)}function hf(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function ff(t,a,i){i=i!=null?i.concat([t]):null,Nl(4,4,hf.bind(null,a,t),i)}function hd(){}function gf(t,a){var i=_t();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&nd(a,o[1])?o[0]:(i.memoizedState=[t,a],t)}function yf(t,a){var i=_t();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&nd(a,o[1]))return o[0];if(o=t(),Ki){$a(!0);try{t()}finally{$a(!1)}}return i.memoizedState=[o,a],o}function fd(t,a,i){return i===void 0||(vn&1073741824)!==0&&(Ie&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=b1(),Oe.lanes|=t,ti|=t,i)}function bf(t,a,i,o){return xa(i,a)?i:_s.current!==null?(t=fd(t,i,o),xa(t,a)||(Tt=!0),t):(vn&42)===0||(vn&1073741824)!==0&&(Ie&261930)===0?(Tt=!0,t.memoizedState=i):(t=b1(),Oe.lanes|=t,ti|=t,a)}function vf(t,a,i,o,d){var p=ie.p;ie.p=p!==0&&8>p?p:8;var v=I.T,w={};I.T=w,bd(t,!1,a,i);try{var N=d(),O=I.S;if(O!==null&&O(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var H=uk(N,o);Qo(t,a,H,Na(t))}else Qo(t,a,o,Na(t))}catch(X){Qo(t,a,{then:function(){},status:"rejected",reason:X},Na())}finally{ie.p=p,v!==null&&w.types!==null&&(v.types=w.types),I.T=v}}function gk(){}function gd(t,a,i,o){if(t.tag!==5)throw Error(r(476));var d=xf(t).queue;vf(t,d,a,ue,i===null?gk:function(){return kf(t),i(o)})}function xf(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:ue},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function kf(t){var a=xf(t);a.next===null&&(a=t.alternate.memoizedState),Qo(t,a.next.queue,{},Na())}function yd(){return $t(ur)}function wf(){return _t().memoizedState}function Sf(){return _t().memoizedState}function yk(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=Na();t=Fn(i);var o=Yn(a,t,i);o!==null&&(fa(o,a,i),Vo(o,a,i)),a={cache:Ku()},t.payload=a;return}a=a.return}}function bk(t,a,i){var o=Na();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},_l(t)?Af(a,i):(i=qu(t,a,i,o),i!==null&&(fa(i,t,o),Nf(i,a,o)))}function jf(t,a,i){var o=Na();Qo(t,a,i,o)}function Qo(t,a,i,o){var d={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(_l(t))Af(a,d);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var v=a.lastRenderedState,w=p(v,i);if(d.hasEagerState=!0,d.eagerState=w,xa(w,v))return rl(t,a,d,0),ot===null&&ol(),!1}catch{}if(i=qu(t,a,d,o),i!==null)return fa(i,t,o),Nf(i,a,o),!0}return!1}function bd(t,a,i,o){if(o={lane:2,revertLane:Yd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},_l(t)){if(a)throw Error(r(479))}else a=qu(t,i,o,2),a!==null&&fa(a,t,2)}function _l(t){var a=t.alternate;return t===Oe||a!==null&&a===Oe}function Af(t,a){Cs=xl=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Nf(t,a,i){if((i&4194048)!==0){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,So(t,i)}}var Zo={readContext:$t,use:Sl,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};Zo.useEffectEvent=St;var _f={readContext:$t,use:Sl,useCallback:function(t,a){return ta().memoizedState=[t,a===void 0?null:a],t},useContext:$t,useEffect:uf,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,Al(4194308,4,hf.bind(null,a,t),i)},useLayoutEffect:function(t,a){return Al(4194308,4,t,a)},useInsertionEffect:function(t,a){Al(4,2,t,a)},useMemo:function(t,a){var i=ta();a=a===void 0?null:a;var o=t();if(Ki){$a(!0);try{t()}finally{$a(!1)}}return i.memoizedState=[o,a],o},useReducer:function(t,a,i){var o=ta();if(i!==void 0){var d=i(a);if(Ki){$a(!0);try{i(a)}finally{$a(!1)}}}else d=a;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=bk.bind(null,Oe,t),[o.memoizedState,t]},useRef:function(t){var a=ta();return t={current:t},a.memoizedState=t},useState:function(t){t=dd(t);var a=t.queue,i=jf.bind(null,Oe,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:hd,useDeferredValue:function(t,a){var i=ta();return fd(i,t,a)},useTransition:function(){var t=dd(!1);return t=vf.bind(null,Oe,t.queue,!0,!1),ta().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var o=Oe,d=ta();if($e){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),ot===null)throw Error(r(349));(Ie&127)!==0||Qh(o,a,i)}d.memoizedState=i;var p={value:i,getSnapshot:a};return d.queue=p,uf(Fh.bind(null,o,p,t),[t]),o.flags|=2048,Es(9,{destroy:void 0},Zh.bind(null,o,p,i,a),null),i},useId:function(){var t=ta(),a=ot.identifierPrefix;if($e){var i=on,o=sn;i=(o&~(1<<32-Zt(o)-1)).toString(32)+i,a="_"+a+"R_"+i,i=kl++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=dk++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:yd,useFormState:sf,useActionState:sf,useOptimistic:function(t){var a=ta();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=bd.bind(null,Oe,!0,i),i.dispatch=a,[t,a]},useMemoCache:ld,useCacheRefresh:function(){return ta().memoizedState=yk.bind(null,Oe)},useEffectEvent:function(t){var a=ta(),i={impl:t};return a.memoizedState=i,function(){if((Xe&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},vd={readContext:$t,use:Sl,useCallback:gf,useContext:$t,useEffect:pd,useImperativeHandle:ff,useInsertionEffect:mf,useLayoutEffect:pf,useMemo:yf,useReducer:jl,useRef:cf,useState:function(){return jl(xn)},useDebugValue:hd,useDeferredValue:function(t,a){var i=_t();return bf(i,nt.memoizedState,t,a)},useTransition:function(){var t=jl(xn)[0],a=_t().memoizedState;return[typeof t=="boolean"?t:Ko(t),a]},useSyncExternalStore:Kh,useId:wf,useHostTransitionStatus:yd,useFormState:of,useActionState:of,useOptimistic:function(t,a){var i=_t();return Jh(i,nt,t,a)},useMemoCache:ld,useCacheRefresh:Sf};vd.useEffectEvent=df;var Cf={readContext:$t,use:Sl,useCallback:gf,useContext:$t,useEffect:pd,useImperativeHandle:ff,useInsertionEffect:mf,useLayoutEffect:pf,useMemo:yf,useReducer:ud,useRef:cf,useState:function(){return ud(xn)},useDebugValue:hd,useDeferredValue:function(t,a){var i=_t();return nt===null?fd(i,t,a):bf(i,nt.memoizedState,t,a)},useTransition:function(){var t=ud(xn)[0],a=_t().memoizedState;return[typeof t=="boolean"?t:Ko(t),a]},useSyncExternalStore:Kh,useId:wf,useHostTransitionStatus:yd,useFormState:lf,useActionState:lf,useOptimistic:function(t,a){var i=_t();return nt!==null?Jh(i,nt,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:ld,useCacheRefresh:Sf};Cf.useEffectEvent=df;function xd(t,a,i,o){a=t.memoizedState,i=i(o,a),i=i==null?a:j({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var kd={enqueueSetState:function(t,a,i){t=t._reactInternals;var o=Na(),d=Fn(o);d.payload=a,i!=null&&(d.callback=i),a=Yn(t,d,o),a!==null&&(fa(a,t,o),Vo(a,t,o))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var o=Na(),d=Fn(o);d.tag=1,d.payload=a,i!=null&&(d.callback=i),a=Yn(t,d,o),a!==null&&(fa(a,t,o),Vo(a,t,o))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=Na(),o=Fn(i);o.tag=2,a!=null&&(o.callback=a),a=Yn(t,o,i),a!==null&&(fa(a,t,i),Vo(a,t,i))}};function zf(t,a,i,o,d,p,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,v):a.prototype&&a.prototype.isPureReactComponent?!Oo(i,o)||!Oo(d,p):!0}function Ef(t,a,i,o){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==t&&kd.enqueueReplaceState(a,a.state,null)}function Qi(t,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(t=t.defaultProps){i===a&&(i=j({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function Df(t){sl(t)}function Tf(t){console.error(t)}function Rf(t){sl(t)}function Cl(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Of(t,a,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function wd(t,a,i){return i=Fn(i),i.tag=3,i.payload={element:null},i.callback=function(){Cl(t,a)},i}function qf(t){return t=Fn(t),t.tag=3,t}function Bf(t,a,i,o){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;t.payload=function(){return d(p)},t.callback=function(){Of(a,i,o)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){Of(a,i,o),typeof d!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function vk(t,a,i,o,d){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&ws(a,i,d,!0),i=wa.current,i!==null){switch(i.tag){case 31:case 13:return Ma===null?Ll():i.alternate===null&&jt===0&&(jt=3),i.flags&=-257,i.flags|=65536,i.lanes=d,o===fl?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),Qd(t,o,d)),!1;case 22:return i.flags|=65536,o===fl?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),Qd(t,o,d)),!1}throw Error(r(435,i.tag))}return Qd(t,o,d),Ll(),!1}if($e)return a=wa.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,o!==Iu&&(t=Error(r(422),{cause:o}),Mo(Ra(t,i)))):(o!==Iu&&(a=Error(r(423),{cause:o}),Mo(Ra(a,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=Ra(o,i),d=wd(t.stateNode,o,d),Ju(t,d),jt!==4&&(jt=2)),!1;var p=Error(r(520),{cause:o});if(p=Ra(p,i),ar===null?ar=[p]:ar.push(p),jt!==4&&(jt=2),a===null)return!0;o=Ra(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=wd(i.stateNode,o,t),Ju(i,t),!1;case 1:if(a=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ai===null||!ai.has(p))))return i.flags|=65536,d&=-d,i.lanes|=d,d=qf(d),Bf(d,t,i,o),Ju(i,d),!1}i=i.return}while(i!==null);return!1}var Sd=Error(r(461)),Tt=!1;function Gt(t,a,i,o){a.child=t===null?Uh(a,null,i,o):Hi(a,t.child,i,o)}function Mf(t,a,i,o,d){i=i.render;var p=a.ref;if("ref"in o){var v={};for(var w in o)w!=="ref"&&(v[w]=o[w])}else v=o;return Ii(a),o=id(t,a,i,v,p,d),w=sd(),t!==null&&!Tt?(od(t,a,d),kn(t,a,d)):($e&&w&&Uu(a),a.flags|=1,Gt(t,a,o,d),a.child)}function Pf(t,a,i,o,d){if(t===null){var p=i.type;return typeof p=="function"&&!Bu(p)&&p.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=p,Uf(t,a,p,o,d)):(t=cl(i.type,null,o,a,a.mode,d),t.ref=a.ref,t.return=a,a.child=t)}if(p=t.child,!Dd(t,d)){var v=p.memoizedProps;if(i=i.compare,i=i!==null?i:Oo,i(v,o)&&t.ref===a.ref)return kn(t,a,d)}return a.flags|=1,t=fn(p,o),t.ref=a.ref,t.return=a,a.child=t}function Uf(t,a,i,o,d){if(t!==null){var p=t.memoizedProps;if(Oo(p,o)&&t.ref===a.ref)if(Tt=!1,a.pendingProps=o=p,Dd(t,d))(t.flags&131072)!==0&&(Tt=!0);else return a.lanes=t.lanes,kn(t,a,d)}return jd(t,a,i,o,d)}function Lf(t,a,i,o){var d=o.children,p=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|i:i,t!==null){for(o=a.child=t.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,a.child=null;return If(t,a,p,i,o)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&pl(a,p!==null?p.cachePool:null),p!==null?Vh(a,p):ed(),$h(a);else return o=a.lanes=536870912,If(t,a,p!==null?p.baseLanes|i:i,i,o)}else p!==null?(pl(a,p.cachePool),Vh(a,p),Jn(),a.memoizedState=null):(t!==null&&pl(a,null),ed(),Jn());return Gt(t,a,d,i),a.child}function Fo(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function If(t,a,i,o,d){var p=Zu();return p=p===null?null:{parent:Et._currentValue,pool:p},a.memoizedState={baseLanes:i,cachePool:p},t!==null&&pl(a,null),ed(),$h(a),t!==null&&ws(t,a,o,!0),a.childLanes=d,null}function zl(t,a){return a=Dl({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function Vf(t,a,i){return Hi(a,t.child,null,i),t=zl(a,a.pendingProps),t.flags|=2,Sa(a),a.memoizedState=null,t}function xk(t,a,i){var o=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,t===null){if($e){if(o.mode==="hidden")return t=zl(a,o),a.lanes=536870912,Fo(null,t);if(ad(a),(t=dt)?(t=eg(t,Ba),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=jh(t),i.return=a,a.child=i,Vt=a,dt=null)):t=null,t===null)throw Kn(a);return a.lanes=536870912,null}return zl(a,o)}var p=t.memoizedState;if(p!==null){var v=p.dehydrated;if(ad(a),d)if(a.flags&256)a.flags&=-257,a=Vf(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(r(558));else if(Tt||ws(t,a,i,!1),d=(i&t.childLanes)!==0,Tt||d){if(o=ot,o!==null&&(v=jo(o,i),v!==0&&v!==p.retryLane))throw p.retryLane=v,Mi(t,v),fa(o,t,v),Sd;Ll(),a=Vf(t,a,i)}else t=p.treeContext,dt=Pa(v.nextSibling),Vt=a,$e=!0,Hn=null,Ba=!1,t!==null&&_h(a,t),a=zl(a,o),a.flags|=4096;return a}return t=fn(t.child,{mode:o.mode,children:o.children}),t.ref=a.ref,a.child=t,t.return=a,t}function El(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function jd(t,a,i,o,d){return Ii(a),i=id(t,a,i,o,void 0,d),o=sd(),t!==null&&!Tt?(od(t,a,d),kn(t,a,d)):($e&&o&&Uu(a),a.flags|=1,Gt(t,a,i,d),a.child)}function $f(t,a,i,o,d,p){return Ii(a),a.updateQueue=null,i=Hh(a,o,i,d),Gh(t),o=sd(),t!==null&&!Tt?(od(t,a,p),kn(t,a,p)):($e&&o&&Uu(a),a.flags|=1,Gt(t,a,i,p),a.child)}function Gf(t,a,i,o,d){if(Ii(a),a.stateNode===null){var p=bs,v=i.contextType;typeof v=="object"&&v!==null&&(p=$t(v)),p=new i(o,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=kd,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=o,p.state=a.memoizedState,p.refs={},Yu(a),v=i.contextType,p.context=typeof v=="object"&&v!==null?$t(v):bs,p.state=a.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(xd(a,i,v,o),p.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&kd.enqueueReplaceState(p,p.state,null),Go(a,o,p,d),$o(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(t===null){p=a.stateNode;var w=a.memoizedProps,N=Qi(i,w);p.props=N;var O=p.context,H=i.contextType;v=bs,typeof H=="object"&&H!==null&&(v=$t(H));var X=i.getDerivedStateFromProps;H=typeof X=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,H||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||O!==v)&&Ef(a,p,o,v),Zn=!1;var M=a.memoizedState;p.state=M,Go(a,o,p,d),$o(),O=a.memoizedState,w||M!==O||Zn?(typeof X=="function"&&(xd(a,i,X,o),O=a.memoizedState),(N=Zn||zf(a,i,N,o,M,O,v))?(H||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=O),p.props=o,p.state=O,p.context=v,o=N):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{p=a.stateNode,Xu(t,a),v=a.memoizedProps,H=Qi(i,v),p.props=H,X=a.pendingProps,M=p.context,O=i.contextType,N=bs,typeof O=="object"&&O!==null&&(N=$t(O)),w=i.getDerivedStateFromProps,(O=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==X||M!==N)&&Ef(a,p,o,N),Zn=!1,M=a.memoizedState,p.state=M,Go(a,o,p,d),$o();var G=a.memoizedState;v!==X||M!==G||Zn||t!==null&&t.dependencies!==null&&dl(t.dependencies)?(typeof w=="function"&&(xd(a,i,w,o),G=a.memoizedState),(H=Zn||zf(a,i,H,o,M,G,N)||t!==null&&t.dependencies!==null&&dl(t.dependencies))?(O||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,G,N),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,G,N)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=G),p.props=o,p.state=G,p.context=N,o=H):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=1024),o=!1)}return p=o,El(t,a),o=(a.flags&128)!==0,p||o?(p=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,t!==null&&o?(a.child=Hi(a,t.child,null,d),a.child=Hi(a,null,i,d)):Gt(t,a,i,d),a.memoizedState=p.state,t=a.child):t=kn(t,a,d),t}function Hf(t,a,i,o){return Ui(),a.flags|=256,Gt(t,a,i,o),a.child}var Ad={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nd(t){return{baseLanes:t,cachePool:Rh()}}function _d(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Aa),t}function Kf(t,a,i){var o=a.pendingProps,d=!1,p=(a.flags&128)!==0,v;if((v=p)||(v=t!==null&&t.memoizedState===null?!1:(Nt.current&2)!==0),v&&(d=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,t===null){if($e){if(d?Xn(a):Jn(),(t=dt)?(t=eg(t,Ba),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=jh(t),i.return=a,a.child=i,Vt=a,dt=null)):t=null,t===null)throw Kn(a);return cm(t)?a.lanes=32:a.lanes=536870912,null}var w=o.children;return o=o.fallback,d?(Jn(),d=a.mode,w=Dl({mode:"hidden",children:w},d),o=Pi(o,d,i,null),w.return=a,o.return=a,w.sibling=o,a.child=w,o=a.child,o.memoizedState=Nd(i),o.childLanes=_d(t,v,i),a.memoizedState=Ad,Fo(null,o)):(Xn(a),Cd(a,w))}var N=t.memoizedState;if(N!==null&&(w=N.dehydrated,w!==null)){if(p)a.flags&256?(Xn(a),a.flags&=-257,a=zd(t,a,i)):a.memoizedState!==null?(Jn(),a.child=t.child,a.flags|=128,a=null):(Jn(),w=o.fallback,d=a.mode,o=Dl({mode:"visible",children:o.children},d),w=Pi(w,d,i,null),w.flags|=2,o.return=a,w.return=a,o.sibling=w,a.child=o,Hi(a,t.child,null,i),o=a.child,o.memoizedState=Nd(i),o.childLanes=_d(t,v,i),a.memoizedState=Ad,a=Fo(null,o));else if(Xn(a),cm(w)){if(v=w.nextSibling&&w.nextSibling.dataset,v)var O=v.dgst;v=O,o=Error(r(419)),o.stack="",o.digest=v,Mo({value:o,source:null,stack:null}),a=zd(t,a,i)}else if(Tt||ws(t,a,i,!1),v=(i&t.childLanes)!==0,Tt||v){if(v=ot,v!==null&&(o=jo(v,i),o!==0&&o!==N.retryLane))throw N.retryLane=o,Mi(t,o),fa(v,t,o),Sd;lm(w)||Ll(),a=zd(t,a,i)}else lm(w)?(a.flags|=192,a.child=t.child,a=null):(t=N.treeContext,dt=Pa(w.nextSibling),Vt=a,$e=!0,Hn=null,Ba=!1,t!==null&&_h(a,t),a=Cd(a,o.children),a.flags|=4096);return a}return d?(Jn(),w=o.fallback,d=a.mode,N=t.child,O=N.sibling,o=fn(N,{mode:"hidden",children:o.children}),o.subtreeFlags=N.subtreeFlags&65011712,O!==null?w=fn(O,w):(w=Pi(w,d,i,null),w.flags|=2),w.return=a,o.return=a,o.sibling=w,a.child=o,Fo(null,o),o=a.child,w=t.child.memoizedState,w===null?w=Nd(i):(d=w.cachePool,d!==null?(N=Et._currentValue,d=d.parent!==N?{parent:N,pool:N}:d):d=Rh(),w={baseLanes:w.baseLanes|i,cachePool:d}),o.memoizedState=w,o.childLanes=_d(t,v,i),a.memoizedState=Ad,Fo(t.child,o)):(Xn(a),i=t.child,t=i.sibling,i=fn(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,t!==null&&(v=a.deletions,v===null?(a.deletions=[t],a.flags|=16):v.push(t)),a.child=i,a.memoizedState=null,i)}function Cd(t,a){return a=Dl({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Dl(t,a){return t=ka(22,t,null,a),t.lanes=0,t}function zd(t,a,i){return Hi(a,t.child,null,i),t=Cd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function Qf(t,a,i){t.lanes|=a;var o=t.alternate;o!==null&&(o.lanes|=a),Gu(t.return,a,i)}function Ed(t,a,i,o,d,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:d,treeForkCount:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=i,v.tailMode=d,v.treeForkCount=p)}function Zf(t,a,i){var o=a.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var v=Nt.current,w=(v&2)!==0;if(w?(v=v&1|2,a.flags|=128):v&=1,U(Nt,v),Gt(t,a,o,i),o=$e?Bo:0,!w&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qf(t,i,a);else if(t.tag===19)Qf(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=a.child,d=null;i!==null;)t=i.alternate,t!==null&&vl(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=a.child,a.child=null):(d=i.sibling,i.sibling=null),Ed(a,!1,d,i,p,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=a.child,a.child=null;d!==null;){if(t=d.alternate,t!==null&&vl(t)===null){a.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Ed(a,!0,i,null,p,o);break;case"together":Ed(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function kn(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),ti|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(ws(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(r(153));if(a.child!==null){for(t=a.child,i=fn(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=fn(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Dd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&dl(t)))}function kk(t,a,i){switch(a.tag){case 3:lt(a,a.stateNode.containerInfo),Qn(a,Et,t.memoizedState.cache),Ui();break;case 27:case 5:Ke(a);break;case 4:lt(a,a.stateNode.containerInfo);break;case 10:Qn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,ad(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Xn(a),a.flags|=128,null):(i&a.child.childLanes)!==0?Kf(t,a,i):(Xn(a),t=kn(t,a,i),t!==null?t.sibling:null);Xn(a);break;case 19:var d=(t.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(ws(t,a,i,!1),o=(i&a.childLanes)!==0),d){if(o)return Zf(t,a,i);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),U(Nt,Nt.current),o)break;return null;case 22:return a.lanes=0,Lf(t,a,i,a.pendingProps);case 24:Qn(a,Et,t.memoizedState.cache)}return kn(t,a,i)}function Ff(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)Tt=!0;else{if(!Dd(t,i)&&(a.flags&128)===0)return Tt=!1,kk(t,a,i);Tt=(t.flags&131072)!==0}else Tt=!1,$e&&(a.flags&1048576)!==0&&Nh(a,Bo,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(t=$i(a.elementType),a.type=t,typeof t=="function")Bu(t)?(o=Qi(t,o),a.tag=1,a=Gf(null,a,t,o,i)):(a.tag=0,a=jd(null,a,t,o,i));else{if(t!=null){var d=t.$$typeof;if(d===ee){a.tag=11,a=Mf(null,a,t,o,i);break e}else if(d===q){a.tag=14,a=Pf(null,a,t,o,i);break e}}throw a=at(t)||t,Error(r(306,a,""))}}return a;case 0:return jd(t,a,a.type,a.pendingProps,i);case 1:return o=a.type,d=Qi(o,a.pendingProps),Gf(t,a,o,d,i);case 3:e:{if(lt(a,a.stateNode.containerInfo),t===null)throw Error(r(387));o=a.pendingProps;var p=a.memoizedState;d=p.element,Xu(t,a),Go(a,o,null,i);var v=a.memoizedState;if(o=v.cache,Qn(a,Et,o),o!==p.cache&&Hu(a,[Et],i,!0),$o(),o=v.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Hf(t,a,o,i);break e}else if(o!==d){d=Ra(Error(r(424)),a),Mo(d),a=Hf(t,a,o,i);break e}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,dt=Pa(t.firstChild),Vt=a,$e=!0,Hn=null,Ba=!0,i=Uh(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ui(),o===d){a=kn(t,a,i);break e}Gt(t,a,o,i)}a=a.child}return a;case 26:return El(t,a),t===null?(i=og(a.type,null,a.pendingProps,null))?a.memoizedState=i:$e||(i=a.type,t=a.pendingProps,o=Ql(se.current).createElement(i),o[ht]=a,o[wt]=t,Ht(o,i,t),Ct(o),a.stateNode=o):a.memoizedState=og(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ke(a),t===null&&$e&&(o=a.stateNode=ng(a.type,a.pendingProps,se.current),Vt=a,Ba=!0,d=dt,oi(a.type)?(um=d,dt=Pa(o.firstChild)):dt=d),Gt(t,a,a.pendingProps.children,i),El(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&$e&&((d=o=dt)&&(o=Xk(o,a.type,a.pendingProps,Ba),o!==null?(a.stateNode=o,Vt=a,dt=Pa(o.firstChild),Ba=!1,d=!0):d=!1),d||Kn(a)),Ke(a),d=a.type,p=a.pendingProps,v=t!==null?t.memoizedProps:null,o=p.children,sm(d,p)?o=null:v!==null&&sm(d,v)&&(a.flags|=32),a.memoizedState!==null&&(d=id(t,a,mk,null,null,i),ur._currentValue=d),El(t,a),Gt(t,a,o,i),a.child;case 6:return t===null&&$e&&((t=i=dt)&&(i=Jk(i,a.pendingProps,Ba),i!==null?(a.stateNode=i,Vt=a,dt=null,t=!0):t=!1),t||Kn(a)),null;case 13:return Kf(t,a,i);case 4:return lt(a,a.stateNode.containerInfo),o=a.pendingProps,t===null?a.child=Hi(a,null,o,i):Gt(t,a,o,i),a.child;case 11:return Mf(t,a,a.type,a.pendingProps,i);case 7:return Gt(t,a,a.pendingProps,i),a.child;case 8:return Gt(t,a,a.pendingProps.children,i),a.child;case 12:return Gt(t,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,Qn(a,a.type,o.value),Gt(t,a,o.children,i),a.child;case 9:return d=a.type._context,o=a.pendingProps.children,Ii(a),d=$t(d),o=o(d),a.flags|=1,Gt(t,a,o,i),a.child;case 14:return Pf(t,a,a.type,a.pendingProps,i);case 15:return Uf(t,a,a.type,a.pendingProps,i);case 19:return Zf(t,a,i);case 31:return xk(t,a,i);case 22:return Lf(t,a,i,a.pendingProps);case 24:return Ii(a),o=$t(Et),t===null?(d=Zu(),d===null&&(d=ot,p=Ku(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=i),d=p),a.memoizedState={parent:o,cache:d},Yu(a),Qn(a,Et,d)):((t.lanes&i)!==0&&(Xu(t,a),Go(a,null,null,i),$o()),d=t.memoizedState,p=a.memoizedState,d.parent!==o?(d={parent:o,cache:o},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),Qn(a,Et,o)):(o=p.cache,Qn(a,Et,o),o!==d.cache&&Hu(a,[Et],i,!0))),Gt(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function wn(t){t.flags|=4}function Td(t,a,i,o,d){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(w1())t.flags|=8192;else throw Gi=fl,Fu}else t.flags&=-16777217}function Yf(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!dg(a))if(w1())t.flags|=8192;else throw Gi=fl,Fu}function Tl(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?an():536870912,t.lanes|=a,Os|=a)}function Yo(t,a){if(!$e)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function mt(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(a)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=i,a}function wk(t,a,i){var o=a.pendingProps;switch(Lu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(a),null;case 1:return mt(a),null;case 3:return i=a.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),bn(Et),Ne(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ks(a)?wn(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Vu())),mt(a),null;case 26:var d=a.type,p=a.memoizedState;return t===null?(wn(a),p!==null?(mt(a),Yf(a,p)):(mt(a),Td(a,d,null,o,i))):p?p!==t.memoizedState?(wn(a),mt(a),Yf(a,p)):(mt(a),a.flags&=-16777217):(t=t.memoizedProps,t!==o&&wn(a),mt(a),Td(a,d,t,o,i)),null;case 27:if(Ye(a),i=se.current,d=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&wn(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return mt(a),null}t=K.current,ks(a)?Ch(a):(t=ng(d,o,i),a.stateNode=t,wn(a))}return mt(a),null;case 5:if(Ye(a),d=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&wn(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return mt(a),null}if(p=K.current,ks(a))Ch(a);else{var v=Ql(se.current);switch(p){case 1:p=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=v.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?v.createElement(d,{is:o.is}):v.createElement(d)}}p[ht]=a,p[wt]=o;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)p.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=p;e:switch(Ht(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&wn(a)}}return mt(a),Td(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==o&&wn(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(r(166));if(t=se.current,ks(a)){if(t=a.stateNode,i=a.memoizedProps,o=null,d=Vt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[ht]=a,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||K1(t.nodeValue,i)),t||Kn(a,!0)}else t=Ql(t).createTextNode(o),t[ht]=a,a.stateNode=t}return mt(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(o=ks(a),i!==null){if(t===null){if(!o)throw Error(r(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ht]=a}else Ui(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;mt(a),t=!1}else i=Vu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(Sa(a),a):(Sa(a),null);if((a.flags&128)!==0)throw Error(r(558))}return mt(a),null;case 13:if(o=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=ks(a),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[ht]=a}else Ui(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;mt(a),d=!1}else d=Vu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(Sa(a),a):(Sa(a),null)}return Sa(a),(a.flags&128)!==0?(a.lanes=i,a):(i=o!==null,t=t!==null&&t.memoizedState!==null,i&&(o=a.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),Tl(a,a.updateQueue),mt(a),null);case 4:return Ne(),t===null&&em(a.stateNode.containerInfo),mt(a),null;case 10:return bn(a.type),mt(a),null;case 19:if(W(Nt),o=a.memoizedState,o===null)return mt(a),null;if(d=(a.flags&128)!==0,p=o.rendering,p===null)if(d)Yo(o,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(p=vl(t),p!==null){for(a.flags|=128,Yo(o,!1),t=p.updateQueue,a.updateQueue=t,Tl(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Sh(i,t),i=i.sibling;return U(Nt,Nt.current&1|2),$e&&gn(a,o.treeForkCount),a.child}t=t.sibling}o.tail!==null&&Kt()>Ml&&(a.flags|=128,d=!0,Yo(o,!1),a.lanes=4194304)}else{if(!d)if(t=vl(p),t!==null){if(a.flags|=128,d=!0,t=t.updateQueue,a.updateQueue=t,Tl(a,t),Yo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!$e)return mt(a),null}else 2*Kt()-o.renderingStartTime>Ml&&i!==536870912&&(a.flags|=128,d=!0,Yo(o,!1),a.lanes=4194304);o.isBackwards?(p.sibling=a.child,a.child=p):(t=o.last,t!==null?t.sibling=p:a.child=p,o.last=p)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Kt(),t.sibling=null,i=Nt.current,U(Nt,d?i&1|2:i&1),$e&&gn(a,o.treeForkCount),t):(mt(a),null);case 22:case 23:return Sa(a),td(),o=a.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&(mt(a),a.subtreeFlags&6&&(a.flags|=8192)):mt(a),i=a.updateQueue,i!==null&&Tl(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),t!==null&&W(Vi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),bn(Et),mt(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function Sk(t,a){switch(Lu(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return bn(Et),Ne(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Ye(a),null;case 31:if(a.memoizedState!==null){if(Sa(a),a.alternate===null)throw Error(r(340));Ui()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(Sa(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ui()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return W(Nt),null;case 4:return Ne(),null;case 10:return bn(a.type),null;case 22:case 23:return Sa(a),td(),t!==null&&W(Vi),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return bn(Et),null;case 25:return null;default:return null}}function Xf(t,a){switch(Lu(a),a.tag){case 3:bn(Et),Ne();break;case 26:case 27:case 5:Ye(a);break;case 4:Ne();break;case 31:a.memoizedState!==null&&Sa(a);break;case 13:Sa(a);break;case 19:W(Nt);break;case 10:bn(a.type);break;case 22:case 23:Sa(a),td(),t!==null&&W(Vi);break;case 24:bn(Et)}}function Xo(t,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&t)===t){o=void 0;var p=i.create,v=i.inst;o=p(),v.destroy=o}i=i.next}while(i!==d)}}catch(w){tt(a,a.return,w)}}function Wn(t,a,i){try{var o=a.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&t)===t){var v=o.inst,w=v.destroy;if(w!==void 0){v.destroy=void 0,d=a;var N=i,O=w;try{O()}catch(H){tt(d,N,H)}}}o=o.next}while(o!==p)}}catch(H){tt(a,a.return,H)}}function Jf(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{Ih(a,i)}catch(o){tt(t,t.return,o)}}}function Wf(t,a,i){i.props=Qi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){tt(t,a,o)}}function Jo(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(d){tt(t,a,d)}}function rn(t,a){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(d){tt(t,a,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){tt(t,a,d)}else i.current=null}function e1(t){var a=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(d){tt(t,t.return,d)}}function Rd(t,a,i){try{var o=t.stateNode;Hk(o,t.type,i,a),o[wt]=a}catch(d){tt(t,t.return,d)}}function t1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oi(t.type)||t.tag===4}function Od(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||t1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qd(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=pn));else if(o!==4&&(o===27&&oi(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(qd(t,a,i),t=t.sibling;t!==null;)qd(t,a,i),t=t.sibling}function Rl(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(o!==4&&(o===27&&oi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Rl(t,a,i),t=t.sibling;t!==null;)Rl(t,a,i),t=t.sibling}function a1(t){var a=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);Ht(a,o,i),a[ht]=t,a[wt]=i}catch(p){tt(t,t.return,p)}}var Sn=!1,Rt=!1,Bd=!1,n1=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function jk(t,a){if(t=t.containerInfo,nm=ec,t=hh(t),zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var v=0,w=-1,N=-1,O=0,H=0,X=t,M=null;t:for(;;){for(var G;X!==i||d!==0&&X.nodeType!==3||(w=v+d),X!==p||o!==0&&X.nodeType!==3||(N=v+o),X.nodeType===3&&(v+=X.nodeValue.length),(G=X.firstChild)!==null;)M=X,X=G;for(;;){if(X===t)break t;if(M===i&&++O===d&&(w=v),M===p&&++H===o&&(N=v),(G=X.nextSibling)!==null)break;X=M,M=X.parentNode}X=G}i=w===-1||N===-1?null:{start:w,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(im={focusedElem:t,selectionRange:i},ec=!1,Lt=a;Lt!==null;)if(a=Lt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,Lt=t;else for(;Lt!==null;){switch(a=Lt,p=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,i=a,d=p.memoizedProps,p=p.memoizedState,o=i.stateNode;try{var fe=Qi(i.type,d);t=o.getSnapshotBeforeUpdate(fe,p),o.__reactInternalSnapshotBeforeUpdate=t}catch(ze){tt(i,i.return,ze)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)rm(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rm(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=a.sibling,t!==null){t.return=a.return,Lt=t;break}Lt=a.return}}function i1(t,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:An(t,i),o&4&&Xo(5,i);break;case 1:if(An(t,i),o&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(v){tt(i,i.return,v)}else{var d=Qi(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(d,a,t.__reactInternalSnapshotBeforeUpdate)}catch(v){tt(i,i.return,v)}}o&64&&Jf(i),o&512&&Jo(i,i.return);break;case 3:if(An(t,i),o&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Ih(t,a)}catch(v){tt(i,i.return,v)}}break;case 27:a===null&&o&4&&a1(i);case 26:case 5:An(t,i),a===null&&o&4&&e1(i),o&512&&Jo(i,i.return);break;case 12:An(t,i);break;case 31:An(t,i),o&4&&r1(t,i);break;case 13:An(t,i),o&4&&l1(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=Rk.bind(null,i),Wk(t,i))));break;case 22:if(o=i.memoizedState!==null||Sn,!o){a=a!==null&&a.memoizedState!==null||Rt,d=Sn;var p=Rt;Sn=o,(Rt=a)&&!p?Nn(t,i,(i.subtreeFlags&8772)!==0):An(t,i),Sn=d,Rt=p}break;case 30:break;default:An(t,i)}}function s1(t){var a=t.alternate;a!==null&&(t.alternate=null,s1(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&ls(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ft=null,da=!1;function jn(t,a,i){for(i=i.child;i!==null;)o1(t,a,i),i=i.sibling}function o1(t,a,i){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Ci,i)}catch{}switch(i.tag){case 26:Rt||rn(i,a),jn(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Rt||rn(i,a);var o=ft,d=da;oi(i.type)&&(ft=i.stateNode,da=!1),jn(t,a,i),rr(i.stateNode),ft=o,da=d;break;case 5:Rt||rn(i,a);case 6:if(o=ft,d=da,ft=null,jn(t,a,i),ft=o,da=d,ft!==null)if(da)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(i.stateNode)}catch(p){tt(i,a,p)}else try{ft.removeChild(i.stateNode)}catch(p){tt(i,a,p)}break;case 18:ft!==null&&(da?(t=ft,J1(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Vs(t)):J1(ft,i.stateNode));break;case 4:o=ft,d=da,ft=i.stateNode.containerInfo,da=!0,jn(t,a,i),ft=o,da=d;break;case 0:case 11:case 14:case 15:Wn(2,i,a),Rt||Wn(4,i,a),jn(t,a,i);break;case 1:Rt||(rn(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Wf(i,a,o)),jn(t,a,i);break;case 21:jn(t,a,i);break;case 22:Rt=(o=Rt)||i.memoizedState!==null,jn(t,a,i),Rt=o;break;default:jn(t,a,i)}}function r1(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Vs(t)}catch(i){tt(a,a.return,i)}}}function l1(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Vs(t)}catch(i){tt(a,a.return,i)}}function Ak(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new n1),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new n1),a;default:throw Error(r(435,t.tag))}}function Ol(t,a){var i=Ak(t);a.forEach(function(o){if(!i.has(o)){i.add(o);var d=Ok.bind(null,t,o);o.then(d,d)}})}function ma(t,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],p=t,v=a,w=v;e:for(;w!==null;){switch(w.tag){case 27:if(oi(w.type)){ft=w.stateNode,da=!1;break e}break;case 5:ft=w.stateNode,da=!1;break e;case 3:case 4:ft=w.stateNode.containerInfo,da=!0;break e}w=w.return}if(ft===null)throw Error(r(160));o1(p,v,d),ft=null,da=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)c1(a,t),a=a.sibling}var Za=null;function c1(t,a){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ma(a,t),pa(t),o&4&&(Wn(3,t,t.return),Xo(3,t),Wn(5,t,t.return));break;case 1:ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),o&64&&Sn&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var d=Za;if(ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),o&4){var p=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Ti]||p[ht]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),Ht(p,o,i),p[ht]=t,Ct(p),o=p;break e;case"link":var v=cg("link","href",d).get(o+(i.href||""));if(v){for(var w=0;w<v.length;w++)if(p=v[w],p.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(w,1);break t}}p=d.createElement(o),Ht(p,o,i),d.head.appendChild(p);break;case"meta":if(v=cg("meta","content",d).get(o+(i.content||""))){for(w=0;w<v.length;w++)if(p=v[w],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(w,1);break t}}p=d.createElement(o),Ht(p,o,i),d.head.appendChild(p);break;default:throw Error(r(468,o))}p[ht]=t,Ct(p),o=p}t.stateNode=o}else ug(d,t.type,t.stateNode);else t.stateNode=lg(d,o,t.memoizedProps);else p!==o?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,o===null?ug(d,t.type,t.stateNode):lg(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Rd(t,t.memoizedProps,i.memoizedProps)}break;case 27:ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),i!==null&&o&4&&Rd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),t.flags&32){d=t.stateNode;try{ds(d,"")}catch(fe){tt(t,t.return,fe)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,Rd(t,d,i!==null?i.memoizedProps:d)),o&1024&&(Bd=!0);break;case 6:if(ma(a,t),pa(t),o&4){if(t.stateNode===null)throw Error(r(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(fe){tt(t,t.return,fe)}}break;case 3:if(Yl=null,d=Za,Za=Zl(a.containerInfo),ma(a,t),Za=d,pa(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Vs(a.containerInfo)}catch(fe){tt(t,t.return,fe)}Bd&&(Bd=!1,u1(t));break;case 4:o=Za,Za=Zl(t.stateNode.containerInfo),ma(a,t),pa(t),Za=o;break;case 12:ma(a,t),pa(t);break;case 31:ma(a,t),pa(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ol(t,o)));break;case 13:ma(a,t),pa(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Bl=Kt()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ol(t,o)));break;case 22:d=t.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,O=Sn,H=Rt;if(Sn=O||d,Rt=H||N,ma(a,t),Rt=H,Sn=O,pa(t),o&8192)e:for(a=t.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(i===null||N||Sn||Rt||Zi(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){N=i=a;try{if(p=N.stateNode,d)v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{w=N.stateNode;var X=N.memoizedProps.style,M=X!=null&&X.hasOwnProperty("display")?X.display:null;w.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(fe){tt(N,N.return,fe)}}}else if(a.tag===6){if(i===null){N=a;try{N.stateNode.nodeValue=d?"":N.memoizedProps}catch(fe){tt(N,N.return,fe)}}}else if(a.tag===18){if(i===null){N=a;try{var G=N.stateNode;d?W1(G,!0):W1(N.stateNode,!1)}catch(fe){tt(N,N.return,fe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Ol(t,i))));break;case 19:ma(a,t),pa(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ol(t,o)));break;case 30:break;case 21:break;default:ma(a,t),pa(t)}}function pa(t){var a=t.flags;if(a&2){try{for(var i,o=t.return;o!==null;){if(t1(o)){i=o;break}o=o.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var d=i.stateNode,p=Od(t);Rl(t,p,d);break;case 5:var v=i.stateNode;i.flags&32&&(ds(v,""),i.flags&=-33);var w=Od(t);Rl(t,w,v);break;case 3:case 4:var N=i.stateNode.containerInfo,O=Od(t);qd(t,O,N);break;default:throw Error(r(161))}}catch(H){tt(t,t.return,H)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function u1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;u1(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function An(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)i1(t,a.alternate,a),a=a.sibling}function Zi(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Wn(4,a,a.return),Zi(a);break;case 1:rn(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Wf(a,a.return,i),Zi(a);break;case 27:rr(a.stateNode);case 26:case 5:rn(a,a.return),Zi(a);break;case 22:a.memoizedState===null&&Zi(a);break;case 30:Zi(a);break;default:Zi(a)}t=t.sibling}}function Nn(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,d=t,p=a,v=p.flags;switch(p.tag){case 0:case 11:case 15:Nn(d,p,i),Xo(4,p);break;case 1:if(Nn(d,p,i),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(O){tt(o,o.return,O)}if(o=p,d=o.updateQueue,d!==null){var w=o.stateNode;try{var N=d.shared.hiddenCallbacks;if(N!==null)for(d.shared.hiddenCallbacks=null,d=0;d<N.length;d++)Lh(N[d],w)}catch(O){tt(o,o.return,O)}}i&&v&64&&Jf(p),Jo(p,p.return);break;case 27:a1(p);case 26:case 5:Nn(d,p,i),i&&o===null&&v&4&&e1(p),Jo(p,p.return);break;case 12:Nn(d,p,i);break;case 31:Nn(d,p,i),i&&v&4&&r1(d,p);break;case 13:Nn(d,p,i),i&&v&4&&l1(d,p);break;case 22:p.memoizedState===null&&Nn(d,p,i),Jo(p,p.return);break;case 30:break;default:Nn(d,p,i)}a=a.sibling}}function Md(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Po(i))}function Pd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Po(t))}function Fa(t,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)d1(t,a,i,o),a=a.sibling}function d1(t,a,i,o){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Fa(t,a,i,o),d&2048&&Xo(9,a);break;case 1:Fa(t,a,i,o);break;case 3:Fa(t,a,i,o),d&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Po(t)));break;case 12:if(d&2048){Fa(t,a,i,o),t=a.stateNode;try{var p=a.memoizedProps,v=p.id,w=p.onPostCommit;typeof w=="function"&&w(v,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){tt(a,a.return,N)}}else Fa(t,a,i,o);break;case 31:Fa(t,a,i,o);break;case 13:Fa(t,a,i,o);break;case 23:break;case 22:p=a.stateNode,v=a.alternate,a.memoizedState!==null?p._visibility&2?Fa(t,a,i,o):Wo(t,a):p._visibility&2?Fa(t,a,i,o):(p._visibility|=2,Ds(t,a,i,o,(a.subtreeFlags&10256)!==0||!1)),d&2048&&Md(v,a);break;case 24:Fa(t,a,i,o),d&2048&&Pd(a.alternate,a);break;default:Fa(t,a,i,o)}}function Ds(t,a,i,o,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=t,v=a,w=i,N=o,O=v.flags;switch(v.tag){case 0:case 11:case 15:Ds(p,v,w,N,d),Xo(8,v);break;case 23:break;case 22:var H=v.stateNode;v.memoizedState!==null?H._visibility&2?Ds(p,v,w,N,d):Wo(p,v):(H._visibility|=2,Ds(p,v,w,N,d)),d&&O&2048&&Md(v.alternate,v);break;case 24:Ds(p,v,w,N,d),d&&O&2048&&Pd(v.alternate,v);break;default:Ds(p,v,w,N,d)}a=a.sibling}}function Wo(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,o=a,d=o.flags;switch(o.tag){case 22:Wo(i,o),d&2048&&Md(o.alternate,o);break;case 24:Wo(i,o),d&2048&&Pd(o.alternate,o);break;default:Wo(i,o)}a=a.sibling}}var er=8192;function Ts(t,a,i){if(t.subtreeFlags&er)for(t=t.child;t!==null;)m1(t,a,i),t=t.sibling}function m1(t,a,i){switch(t.tag){case 26:Ts(t,a,i),t.flags&er&&t.memoizedState!==null&&dw(i,Za,t.memoizedState,t.memoizedProps);break;case 5:Ts(t,a,i);break;case 3:case 4:var o=Za;Za=Zl(t.stateNode.containerInfo),Ts(t,a,i),Za=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=er,er=16777216,Ts(t,a,i),er=o):Ts(t,a,i));break;default:Ts(t,a,i)}}function p1(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function tr(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];Lt=o,f1(o,t)}p1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)h1(t),t=t.sibling}function h1(t){switch(t.tag){case 0:case 11:case 15:tr(t),t.flags&2048&&Wn(9,t,t.return);break;case 3:tr(t);break;case 12:tr(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,ql(t)):tr(t);break;default:tr(t)}}function ql(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];Lt=o,f1(o,t)}p1(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Wn(8,a,a.return),ql(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,ql(a));break;default:ql(a)}t=t.sibling}}function f1(t,a){for(;Lt!==null;){var i=Lt;switch(i.tag){case 0:case 11:case 15:Wn(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Po(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Lt=o;else e:for(i=t;Lt!==null;){o=Lt;var d=o.sibling,p=o.return;if(s1(o),o===i){Lt=null;break e}if(d!==null){d.return=p,Lt=d;break e}Lt=p}}}var Nk={getCacheForType:function(t){var a=$t(Et),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return $t(Et).controller.signal}},_k=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ot=null,Ue=null,Ie=0,et=0,ja=null,ei=!1,Rs=!1,Ud=!1,_n=0,jt=0,ti=0,Fi=0,Ld=0,Aa=0,Os=0,ar=null,ha=null,Id=!1,Bl=0,g1=0,Ml=1/0,Pl=null,ai=null,qt=0,ni=null,qs=null,Cn=0,Vd=0,$d=null,y1=null,nr=0,Gd=null;function Na(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:I.T!==null?Yd():mn()}function b1(){if(Aa===0)if((Ie&536870912)===0||$e){var t=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),Aa=t}else Aa=536870912;return t=wa.current,t!==null&&(t.flags|=32),Aa}function fa(t,a,i){(t===ot&&(et===2||et===9)||t.cancelPendingCommit!==null)&&(Bs(t,0),ii(t,Ie,Aa,!1)),Un(t,i),((Xe&2)===0||t!==ot)&&(t===ot&&((Xe&2)===0&&(Fi|=i),jt===4&&ii(t,Ie,Aa,!1)),ln(t))}function v1(t,a,i){if((Xe&6)!==0)throw Error(r(327));var o=!i&&(a&127)===0&&(a&t.expiredLanes)===0||Ei(t,a),d=o?Ek(t,a):Kd(t,a,!0),p=o;do{if(d===0){Rs&&!o&&ii(t,a,0,!1);break}else{if(i=t.current.alternate,p&&!Ck(i)){d=Kd(t,a,!1),p=!1;continue}if(d===2){if(p=a,t.errorRecoveryDisabledLanes&p)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var w=t;d=ar;var N=w.current.memoizedState.isDehydrated;if(N&&(Bs(w,v).flags|=256),v=Kd(w,v,!1),v!==2){if(Ud&&!N){w.errorRecoveryDisabledLanes|=p,Fi|=p,d=4;break e}p=ha,ha=d,p!==null&&(ha===null?ha=p:ha.push.apply(ha,p))}d=v}if(p=!1,d!==2)continue}}if(d===1){Bs(t,0),ii(t,a,0,!0);break}e:{switch(o=t,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ii(o,a,Aa,!ei);break e;case 2:ha=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(d=Bl+300-Kt(),10<d)){if(ii(o,a,Aa,!ei),Pn(o,0,!0)!==0)break e;Cn=a,o.timeoutHandle=Y1(x1.bind(null,o,i,ha,Pl,Id,a,Aa,Fi,Os,ei,p,"Throttled",-0,0),d);break e}x1(o,i,ha,Pl,Id,a,Aa,Fi,Os,ei,p,null,-0,0)}}break}while(!0);ln(t)}function x1(t,a,i,o,d,p,v,w,N,O,H,X,M,G){if(t.timeoutHandle=-1,X=a.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},m1(a,p,X);var fe=(p&62914560)===p?Bl-Kt():(p&4194048)===p?g1-Kt():0;if(fe=mw(X,fe),fe!==null){Cn=p,t.cancelPendingCommit=fe(C1.bind(null,t,a,p,i,o,d,v,w,N,H,X,null,M,G)),ii(t,p,v,!O);return}}C1(t,a,p,i,o,d,v,w,N)}function Ck(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var d=i[o],p=d.getSnapshot;d=d.value;try{if(!xa(p(),d))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ii(t,a,i,o){a&=~Ld,a&=~Fi,t.suspendedLanes|=a,t.pingedLanes&=~a,o&&(t.warmLanes|=a),o=t.expirationTimes;for(var d=a;0<d;){var p=31-Zt(d),v=1<<p;o[p]=-1,d&=~v}i!==0&&wo(t,i,a)}function Ul(){return(Xe&6)===0?(ir(0),!1):!0}function Hd(){if(Ue!==null){if(et===0)var t=Ue.return;else t=Ue,yn=Li=null,rd(t),Ns=null,Lo=0,t=Ue;for(;t!==null;)Xf(t.alternate,t),t=t.return;Ue=null}}function Bs(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,Zk(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Cn=0,Hd(),ot=t,Ue=i=fn(t.current,null),Ie=a,et=0,ja=null,ei=!1,Rs=Ei(t,a),Ud=!1,Os=Aa=Ld=Fi=ti=jt=0,ha=ar=null,Id=!1,(a&8)!==0&&(a|=a&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=a;0<o;){var d=31-Zt(o),p=1<<d;a|=t[d],o&=~p}return _n=a,ol(),i}function k1(t,a){Oe=null,I.H=Zo,a===As||a===hl?(a=Bh(),et=3):a===Fu?(a=Bh(),et=4):et=a===Sd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ja=a,Ue===null&&(jt=1,Cl(t,Ra(a,t.current)))}function w1(){var t=wa.current;return t===null?!0:(Ie&4194048)===Ie?Ma===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?t===Ma:!1}function S1(){var t=I.H;return I.H=Zo,t===null?Zo:t}function j1(){var t=I.A;return I.A=Nk,t}function Ll(){jt=4,ei||(Ie&4194048)!==Ie&&wa.current!==null||(Rs=!0),(ti&134217727)===0&&(Fi&134217727)===0||ot===null||ii(ot,Ie,Aa,!1)}function Kd(t,a,i){var o=Xe;Xe|=2;var d=S1(),p=j1();(ot!==t||Ie!==a)&&(Pl=null,Bs(t,a)),a=!1;var v=jt;e:do try{if(et!==0&&Ue!==null){var w=Ue,N=ja;switch(et){case 8:Hd(),v=6;break e;case 3:case 2:case 9:case 6:wa.current===null&&(a=!0);var O=et;if(et=0,ja=null,Ms(t,w,N,O),i&&Rs){v=0;break e}break;default:O=et,et=0,ja=null,Ms(t,w,N,O)}}zk(),v=jt;break}catch(H){k1(t,H)}while(!0);return a&&t.shellSuspendCounter++,yn=Li=null,Xe=o,I.H=d,I.A=p,Ue===null&&(ot=null,Ie=0,ol()),v}function zk(){for(;Ue!==null;)A1(Ue)}function Ek(t,a){var i=Xe;Xe|=2;var o=S1(),d=j1();ot!==t||Ie!==a?(Pl=null,Ml=Kt()+500,Bs(t,a)):Rs=Ei(t,a);e:do try{if(et!==0&&Ue!==null){a=Ue;var p=ja;t:switch(et){case 1:et=0,ja=null,Ms(t,a,p,1);break;case 2:case 9:if(Oh(p)){et=0,ja=null,N1(a);break}a=function(){et!==2&&et!==9||ot!==t||(et=7),ln(t)},p.then(a,a);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Oh(p)?(et=0,ja=null,N1(a)):(et=0,ja=null,Ms(t,a,p,7));break;case 5:var v=null;switch(Ue.tag){case 26:v=Ue.memoizedState;case 5:case 27:var w=Ue;if(v?dg(v):w.stateNode.complete){et=0,ja=null;var N=w.sibling;if(N!==null)Ue=N;else{var O=w.return;O!==null?(Ue=O,Il(O)):Ue=null}break t}}et=0,ja=null,Ms(t,a,p,5);break;case 6:et=0,ja=null,Ms(t,a,p,6);break;case 8:Hd(),jt=6;break e;default:throw Error(r(462))}}Dk();break}catch(H){k1(t,H)}while(!0);return yn=Li=null,I.H=o,I.A=d,Xe=i,Ue!==null?0:(ot=null,Ie=0,ol(),jt)}function Dk(){for(;Ue!==null&&!Bn();)A1(Ue)}function A1(t){var a=Ff(t.alternate,t,_n);t.memoizedProps=t.pendingProps,a===null?Il(t):Ue=a}function N1(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=$f(i,a,a.pendingProps,a.type,void 0,Ie);break;case 11:a=$f(i,a,a.pendingProps,a.type.render,a.ref,Ie);break;case 5:rd(a);default:Xf(i,a),a=Ue=Sh(a,_n),a=Ff(i,a,_n)}t.memoizedProps=t.pendingProps,a===null?Il(t):Ue=a}function Ms(t,a,i,o){yn=Li=null,rd(a),Ns=null,Lo=0;var d=a.return;try{if(vk(t,d,a,i,Ie)){jt=1,Cl(t,Ra(i,t.current)),Ue=null;return}}catch(p){if(d!==null)throw Ue=d,p;jt=1,Cl(t,Ra(i,t.current)),Ue=null;return}a.flags&32768?($e||o===1?t=!0:Rs||(Ie&536870912)!==0?t=!1:(ei=t=!0,(o===2||o===9||o===3||o===6)&&(o=wa.current,o!==null&&o.tag===13&&(o.flags|=16384))),_1(a,t)):Il(a)}function Il(t){var a=t;do{if((a.flags&32768)!==0){_1(a,ei);return}t=a.return;var i=wk(a.alternate,a,_n);if(i!==null){Ue=i;return}if(a=a.sibling,a!==null){Ue=a;return}Ue=a=t}while(a!==null);jt===0&&(jt=5)}function _1(t,a){do{var i=Sk(t.alternate,t);if(i!==null){i.flags&=32767,Ue=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){Ue=t;return}Ue=t=i}while(t!==null);jt=6,Ue=null}function C1(t,a,i,o,d,p,v,w,N){t.cancelPendingCommit=null;do Vl();while(qt!==0);if((Xe&6)!==0)throw Error(r(327));if(a!==null){if(a===t.current)throw Error(r(177));if(p=a.lanes|a.childLanes,p|=Ou,ko(t,i,p,v,w,N),t===ot&&(Ue=ot=null,Ie=0),qs=a,ni=t,Cn=i,Vd=p,$d=d,y1=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qk(_i,function(){return R1(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=I.T,I.T=null,d=ie.p,ie.p=2,v=Xe,Xe|=4;try{jk(t,a,i)}finally{Xe=v,ie.p=d,I.T=o}}qt=1,z1(),E1(),D1()}}function z1(){if(qt===1){qt=0;var t=ni,a=qs,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=I.T,I.T=null;var o=ie.p;ie.p=2;var d=Xe;Xe|=4;try{c1(a,t);var p=im,v=hh(t.containerInfo),w=p.focusedElem,N=p.selectionRange;if(v!==w&&w&&w.ownerDocument&&ph(w.ownerDocument.documentElement,w)){if(N!==null&&zu(w)){var O=N.start,H=N.end;if(H===void 0&&(H=O),"selectionStart"in w)w.selectionStart=O,w.selectionEnd=Math.min(H,w.value.length);else{var X=w.ownerDocument||document,M=X&&X.defaultView||window;if(M.getSelection){var G=M.getSelection(),fe=w.textContent.length,ze=Math.min(N.start,fe),st=N.end===void 0?ze:Math.min(N.end,fe);!G.extend&&ze>st&&(v=st,st=ze,ze=v);var E=mh(w,ze),C=mh(w,st);if(E&&C&&(G.rangeCount!==1||G.anchorNode!==E.node||G.anchorOffset!==E.offset||G.focusNode!==C.node||G.focusOffset!==C.offset)){var R=X.createRange();R.setStart(E.node,E.offset),G.removeAllRanges(),ze>st?(G.addRange(R),G.extend(C.node,C.offset)):(R.setEnd(C.node,C.offset),G.addRange(R))}}}}for(X=[],G=w;G=G.parentNode;)G.nodeType===1&&X.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<X.length;w++){var Y=X[w];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}ec=!!nm,im=nm=null}finally{Xe=d,ie.p=o,I.T=i}}t.current=a,qt=2}}function E1(){if(qt===2){qt=0;var t=ni,a=qs,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=I.T,I.T=null;var o=ie.p;ie.p=2;var d=Xe;Xe|=4;try{i1(t,a.alternate,a)}finally{Xe=d,ie.p=o,I.T=i}}qt=3}}function D1(){if(qt===4||qt===3){qt=0,rs();var t=ni,a=qs,i=Cn,o=y1;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?qt=5:(qt=0,qs=ni=null,T1(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(ai=null),la(i),a=a.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Ci,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=I.T,d=ie.p,ie.p=2,I.T=null;try{for(var p=t.onRecoverableError,v=0;v<o.length;v++){var w=o[v];p(w.value,{componentStack:w.stack})}}finally{I.T=a,ie.p=d}}(Cn&3)!==0&&Vl(),ln(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===Gd?nr++:(nr=0,Gd=t):nr=0,ir(0)}}function T1(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Po(a)))}function Vl(){return z1(),E1(),D1(),R1()}function R1(){if(qt!==5)return!1;var t=ni,a=Vd;Vd=0;var i=la(Cn),o=I.T,d=ie.p;try{ie.p=32>i?32:i,I.T=null,i=$d,$d=null;var p=ni,v=Cn;if(qt=0,qs=ni=null,Cn=0,(Xe&6)!==0)throw Error(r(331));var w=Xe;if(Xe|=4,h1(p.current),d1(p,p.current,v,i),Xe=w,ir(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Ci,p)}catch{}return!0}finally{ie.p=d,I.T=o,T1(t,a)}}function O1(t,a,i){a=Ra(i,a),a=wd(t.stateNode,a,2),t=Yn(t,a,2),t!==null&&(Un(t,2),ln(t))}function tt(t,a,i){if(t.tag===3)O1(t,t,i);else for(;a!==null;){if(a.tag===3){O1(a,t,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ai===null||!ai.has(o))){t=Ra(i,t),i=qf(2),o=Yn(a,i,2),o!==null&&(Bf(i,o,a,t),Un(o,2),ln(o));break}}a=a.return}}function Qd(t,a,i){var o=t.pingCache;if(o===null){o=t.pingCache=new _k;var d=new Set;o.set(a,d)}else d=o.get(a),d===void 0&&(d=new Set,o.set(a,d));d.has(i)||(Ud=!0,d.add(i),t=Tk.bind(null,t,a,i),a.then(t,t))}function Tk(t,a,i){var o=t.pingCache;o!==null&&o.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ot===t&&(Ie&i)===i&&(jt===4||jt===3&&(Ie&62914560)===Ie&&300>Kt()-Bl?(Xe&2)===0&&Bs(t,0):Ld|=i,Os===Ie&&(Os=0)),ln(t)}function q1(t,a){a===0&&(a=an()),t=Mi(t,a),t!==null&&(Un(t,a),ln(t))}function Rk(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),q1(t,i)}function Ok(t,a){var i=0;switch(t.tag){case 31:case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(a),q1(t,i)}function qk(t,a){return yo(t,a)}var $l=null,Ps=null,Zd=!1,Gl=!1,Fd=!1,si=0;function ln(t){t!==Ps&&t.next===null&&(Ps===null?$l=Ps=t:Ps=Ps.next=t),Gl=!0,Zd||(Zd=!0,Mk())}function ir(t,a){if(!Fd&&Gl){Fd=!0;do for(var i=!1,o=$l;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var v=o.suspendedLanes,w=o.pingedLanes;p=(1<<31-Zt(42|t)+1)-1,p&=d&~(v&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(i=!0,U1(o,p))}else p=Ie,p=Pn(o,o===ot?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||Ei(o,p)||(i=!0,U1(o,p));o=o.next}while(i);Fd=!1}}function Bk(){B1()}function B1(){Gl=Zd=!1;var t=0;si!==0&&Qk()&&(t=si);for(var a=Kt(),i=null,o=$l;o!==null;){var d=o.next,p=M1(o,a);p===0?(o.next=null,i===null?$l=d:i.next=d,d===null&&(Ps=i)):(i=o,(t!==0||(p&3)!==0)&&(Gl=!0)),o=d}qt!==0&&qt!==5||ir(t),si!==0&&(si=0)}function M1(t,a){for(var i=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var v=31-Zt(p),w=1<<v,N=d[v];N===-1?((w&i)===0||(w&o)!==0)&&(d[v]=cu(w,a)):N<=a&&(t.expiredLanes|=w),p&=~w}if(a=ot,i=Ie,i=Pn(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===a&&(et===2||et===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Jt(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Ei(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(o!==null&&Jt(o),la(i)){case 2:case 8:i=vo;break;case 32:i=_i;break;case 268435456:i=xo;break;default:i=_i}return o=P1.bind(null,t),i=yo(i,o),t.callbackPriority=a,t.callbackNode=i,a}return o!==null&&o!==null&&Jt(o),t.callbackPriority=2,t.callbackNode=null,2}function P1(t,a){if(qt!==0&&qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Vl()&&t.callbackNode!==i)return null;var o=Ie;return o=Pn(t,t===ot?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(v1(t,o,a),M1(t,Kt()),t.callbackNode!=null&&t.callbackNode===i?P1.bind(null,t):null)}function U1(t,a){if(Vl())return null;v1(t,a,!0)}function Mk(){Fk(function(){(Xe&6)!==0?yo(bo,Bk):B1()})}function Yd(){if(si===0){var t=Ss;t===0&&(t=dn,dn<<=1,(dn&261888)===0&&(dn=256)),si=t}return si}function L1(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Jr(""+t)}function I1(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function Pk(t,a,i,o,d){if(a==="submit"&&i&&i.stateNode===d){var p=L1((d[wt]||null).action),v=o.submitter;v&&(a=(a=v[wt]||null)?L1(a.formAction):v.getAttribute("formAction"),a!==null&&(p=a,v=null));var w=new al("action","action",null,o,d);t.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(si!==0){var N=v?I1(d,v):new FormData(d);gd(i,{pending:!0,data:N,method:d.method,action:p},null,N)}}else typeof p=="function"&&(w.preventDefault(),N=v?I1(d,v):new FormData(d),gd(i,{pending:!0,data:N,method:d.method,action:p},p,N))},currentTarget:d}]})}}for(var Xd=0;Xd<Ru.length;Xd++){var Jd=Ru[Xd],Uk=Jd.toLowerCase(),Lk=Jd[0].toUpperCase()+Jd.slice(1);Qa(Uk,"on"+Lk)}Qa(yh,"onAnimationEnd"),Qa(bh,"onAnimationIteration"),Qa(vh,"onAnimationStart"),Qa("dblclick","onDoubleClick"),Qa("focusin","onFocus"),Qa("focusout","onBlur"),Qa(ak,"onTransitionRun"),Qa(nk,"onTransitionStart"),Qa(ik,"onTransitionCancel"),Qa(xh,"onTransitionEnd"),va("onMouseEnter",["mouseout","mouseover"]),va("onMouseLeave",["mouseout","mouseover"]),va("onPointerEnter",["pointerout","pointerover"]),va("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ik=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sr));function V1(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],d=o.event;o=o.listeners;e:{var p=void 0;if(a)for(var v=o.length-1;0<=v;v--){var w=o[v],N=w.instance,O=w.currentTarget;if(w=w.listener,N!==p&&d.isPropagationStopped())break e;p=w,d.currentTarget=O;try{p(d)}catch(H){sl(H)}d.currentTarget=null,p=N}else for(v=0;v<o.length;v++){if(w=o[v],N=w.instance,O=w.currentTarget,w=w.listener,N!==p&&d.isPropagationStopped())break e;p=w,d.currentTarget=O;try{p(d)}catch(H){sl(H)}d.currentTarget=null,p=N}}}}function Le(t,a){var i=a[Ao];i===void 0&&(i=a[Ao]=new Set);var o=t+"__bubble";i.has(o)||($1(a,t,2,!1),i.add(o))}function Wd(t,a,i){var o=0;a&&(o|=4),$1(i,t,o,a)}var Hl="_reactListening"+Math.random().toString(36).slice(2);function em(t){if(!t[Hl]){t[Hl]=!0,F.forEach(function(i){i!=="selectionchange"&&(Ik.has(i)||Wd(i,!1,t),Wd(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Hl]||(a[Hl]=!0,Wd("selectionchange",!1,a))}}function $1(t,a,i,o){switch(bg(a)){case 2:var d=fw;break;case 8:d=gw;break;default:d=fm}i=d.bind(null,a,i,t),d=void 0,!xu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(a,i,{capture:!0,passive:d}):t.addEventListener(a,i,!0):d!==void 0?t.addEventListener(a,i,{passive:d}):t.addEventListener(a,i,!1)}function tm(t,a,i,o,d){var p=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var w=o.stateNode.containerInfo;if(w===d)break;if(v===4)for(v=o.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;w!==null;){if(v=Wt(w),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){o=p=v;continue e}w=w.parentNode}}o=o.return}Q0(function(){var O=p,H=bu(i),X=[];e:{var M=kh.get(t);if(M!==void 0){var G=al,fe=t;switch(t){case"keypress":if(el(i)===0)break e;case"keydown":case"keyup":G=O3;break;case"focusin":fe="focus",G=ju;break;case"focusout":fe="blur",G=ju;break;case"beforeblur":case"afterblur":G=ju;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Y0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=w3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=M3;break;case yh:case bh:case vh:G=A3;break;case xh:G=U3;break;case"scroll":case"scrollend":G=x3;break;case"wheel":G=I3;break;case"copy":case"cut":case"paste":G=_3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=J0;break;case"toggle":case"beforetoggle":G=$3}var ze=(a&4)!==0,st=!ze&&(t==="scroll"||t==="scrollend"),E=ze?M!==null?M+"Capture":null:M;ze=[];for(var C=O,R;C!==null;){var Y=C;if(R=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||R===null||E===null||(Y=_o(C,E),Y!=null&&ze.push(or(C,Y,R))),st)break;C=C.return}0<ze.length&&(M=new G(M,fe,null,i,H),X.push({event:M,listeners:ze}))}}if((a&7)===0){e:{if(M=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",M&&i!==yu&&(fe=i.relatedTarget||i.fromElement)&&(Wt(fe)||fe[Ka]))break e;if((G||M)&&(M=H.window===H?H:(M=H.ownerDocument)?M.defaultView||M.parentWindow:window,G?(fe=i.relatedTarget||i.toElement,G=O,fe=fe?Wt(fe):null,fe!==null&&(st=f(fe),ze=fe.tag,fe!==st||ze!==5&&ze!==27&&ze!==6)&&(fe=null)):(G=null,fe=O),G!==fe)){if(ze=Y0,Y="onMouseLeave",E="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(ze=J0,Y="onPointerLeave",E="onPointerEnter",C="pointer"),st=G==null?M:In(G),R=fe==null?M:In(fe),M=new ze(Y,C+"leave",G,i,H),M.target=st,M.relatedTarget=R,Y=null,Wt(H)===O&&(ze=new ze(E,C+"enter",fe,i,H),ze.target=R,ze.relatedTarget=st,Y=ze),st=Y,G&&fe)t:{for(ze=Vk,E=G,C=fe,R=0,Y=E;Y;Y=ze(Y))R++;Y=0;for(var je=C;je;je=ze(je))Y++;for(;0<R-Y;)E=ze(E),R--;for(;0<Y-R;)C=ze(C),Y--;for(;R--;){if(E===C||C!==null&&E===C.alternate){ze=E;break t}E=ze(E),C=ze(C)}ze=null}else ze=null;G!==null&&G1(X,M,G,ze,!1),fe!==null&&st!==null&&G1(X,st,fe,ze,!0)}}e:{if(M=O?In(O):window,G=M.nodeName&&M.nodeName.toLowerCase(),G==="select"||G==="input"&&M.type==="file")var Qe=oh;else if(ih(M))if(rh)Qe=W3;else{Qe=X3;var xe=Y3}else G=M.nodeName,!G||G.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?O&&gu(O.elementType)&&(Qe=oh):Qe=J3;if(Qe&&(Qe=Qe(t,O))){sh(X,Qe,i,H);break e}xe&&xe(t,M,O),t==="focusout"&&O&&M.type==="number"&&O.memoizedProps.value!=null&&fu(M,"number",M.value)}switch(xe=O?In(O):window,t){case"focusin":(ih(xe)||xe.contentEditable==="true")&&(fs=xe,Eu=O,qo=null);break;case"focusout":qo=Eu=fs=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,fh(X,i,H);break;case"selectionchange":if(tk)break;case"keydown":case"keyup":fh(X,i,H)}var Be;if(Nu)e:{switch(t){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else hs?ah(t,i)&&(Ve="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ve="onCompositionStart");Ve&&(W0&&i.locale!=="ko"&&(hs||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&hs&&(Be=Z0()):($n=H,ku="value"in $n?$n.value:$n.textContent,hs=!0)),xe=Kl(O,Ve),0<xe.length&&(Ve=new X0(Ve,t,null,i,H),X.push({event:Ve,listeners:xe}),Be?Ve.data=Be:(Be=nh(i),Be!==null&&(Ve.data=Be)))),(Be=H3?K3(t,i):Q3(t,i))&&(Ve=Kl(O,"onBeforeInput"),0<Ve.length&&(xe=new X0("onBeforeInput","beforeinput",null,i,H),X.push({event:xe,listeners:Ve}),xe.data=Be)),Pk(X,t,O,i,H)}V1(X,a)})}function or(t,a,i){return{instance:t,listener:a,currentTarget:i}}function Kl(t,a){for(var i=a+"Capture",o=[];t!==null;){var d=t,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=_o(t,i),d!=null&&o.unshift(or(t,d,p)),d=_o(t,a),d!=null&&o.push(or(t,d,p))),t.tag===3)return o;t=t.return}return[]}function Vk(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function G1(t,a,i,o,d){for(var p=a._reactName,v=[];i!==null&&i!==o;){var w=i,N=w.alternate,O=w.stateNode;if(w=w.tag,N!==null&&N===o)break;w!==5&&w!==26&&w!==27||O===null||(N=O,d?(O=_o(i,p),O!=null&&v.unshift(or(i,O,N))):d||(O=_o(i,p),O!=null&&v.push(or(i,O,N)))),i=i.return}v.length!==0&&t.push({event:a,listeners:v})}var $k=/\r\n?/g,Gk=/\u0000|\uFFFD/g;function H1(t){return(typeof t=="string"?t:""+t).replace($k,`
10
+ `).replace(Gk,"")}function K1(t,a){return a=H1(a),H1(t)===a}function it(t,a,i,o,d,p){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||ds(t,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&ds(t,""+o);break;case"className":cs(t,"class",o);break;case"tabIndex":cs(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":cs(t,i,o);break;case"style":H0(t,o,p);break;case"data":if(a!=="object"){cs(t,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Jr(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"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}else typeof p=="function"&&(i==="formAction"?(a!=="input"&&it(t,a,"name",d.name,d,null),it(t,a,"formEncType",d.formEncType,d,null),it(t,a,"formMethod",d.formMethod,d,null),it(t,a,"formTarget",d.formTarget,d,null)):(it(t,a,"encType",d.encType,d,null),it(t,a,"method",d.method,d,null),it(t,a,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Jr(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=pn);break;case"onScroll":o!=null&&Le("scroll",t);break;case"onScrollEnd":o!=null&&Le("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Jr(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Le("beforetoggle",t),Le("toggle",t),Ri(t,"popover",o);break;case"xlinkActuate":ea(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ea(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ea(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ea(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ea(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ea(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ea(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ea(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ea(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ri(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=b3.get(i)||i,Ri(t,i,o))}}function am(t,a,i,o,d,p){switch(i){case"style":H0(t,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"children":typeof o=="string"?ds(t,o):(typeof o=="number"||typeof o=="bigint")&&ds(t,""+o);break;case"onScroll":o!=null&&Le("scroll",t);break;case"onScrollEnd":o!=null&&Le("scrollend",t);break;case"onClick":o!=null&&(t.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Re.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),a=i.slice(2,d?i.length-7:void 0),p=t[wt]||null,p=p!=null?p[i]:null,typeof p=="function"&&t.removeEventListener(a,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,o,d);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):Ri(t,i,o)}}}function Ht(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",t),Le("load",t);var o=!1,d=!1,p;for(p in i)if(i.hasOwnProperty(p)){var v=i[p];if(v!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:it(t,a,p,v,i,null)}}d&&it(t,a,"srcSet",i.srcSet,i,null),o&&it(t,a,"src",i.src,i,null);return;case"input":Le("invalid",t);var w=p=v=d=null,N=null,O=null;for(o in i)if(i.hasOwnProperty(o)){var H=i[o];if(H!=null)switch(o){case"name":d=H;break;case"type":v=H;break;case"checked":N=H;break;case"defaultChecked":O=H;break;case"value":p=H;break;case"defaultValue":w=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,a));break;default:it(t,a,o,H,i,null)}}I0(t,p,w,N,O,v,d,!1);return;case"select":Le("invalid",t),o=v=p=null;for(d in i)if(i.hasOwnProperty(d)&&(w=i[d],w!=null))switch(d){case"value":p=w;break;case"defaultValue":v=w;break;case"multiple":o=w;default:it(t,a,d,w,i,null)}a=p,i=v,t.multiple=!!o,a!=null?us(t,!!o,a,!1):i!=null&&us(t,!!o,i,!0);return;case"textarea":Le("invalid",t),p=d=o=null;for(v in i)if(i.hasOwnProperty(v)&&(w=i[v],w!=null))switch(v){case"value":o=w;break;case"defaultValue":d=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:it(t,a,v,w,i,null)}$0(t,o,d,p);return;case"option":for(N in i)i.hasOwnProperty(N)&&(o=i[N],o!=null)&&(N==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":it(t,a,N,o,i,null));return;case"dialog":Le("beforetoggle",t),Le("toggle",t),Le("cancel",t),Le("close",t);break;case"iframe":case"object":Le("load",t);break;case"video":case"audio":for(o=0;o<sr.length;o++)Le(sr[o],t);break;case"image":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"embed":case"source":case"link":Le("error",t),Le("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in i)if(i.hasOwnProperty(O)&&(o=i[O],o!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:it(t,a,O,o,i,null)}return;default:if(gu(a)){for(H in i)i.hasOwnProperty(H)&&(o=i[H],o!==void 0&&am(t,a,H,o,i,void 0));return}}for(w in i)i.hasOwnProperty(w)&&(o=i[w],o!=null&&it(t,a,w,o,i,null))}function Hk(t,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,v=null,w=null,N=null,O=null,H=null;for(G in i){var X=i[G];if(i.hasOwnProperty(G)&&X!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":N=X;default:o.hasOwnProperty(G)||it(t,a,G,null,o,X)}}for(var M in o){var G=o[M];if(X=i[M],o.hasOwnProperty(M)&&(G!=null||X!=null))switch(M){case"type":p=G;break;case"name":d=G;break;case"checked":O=G;break;case"defaultChecked":H=G;break;case"value":v=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,a));break;default:G!==X&&it(t,a,M,G,o,X)}}hu(t,v,w,N,O,H,p,d);return;case"select":G=v=w=M=null;for(p in i)if(N=i[p],i.hasOwnProperty(p)&&N!=null)switch(p){case"value":break;case"multiple":G=N;default:o.hasOwnProperty(p)||it(t,a,p,null,o,N)}for(d in o)if(p=o[d],N=i[d],o.hasOwnProperty(d)&&(p!=null||N!=null))switch(d){case"value":M=p;break;case"defaultValue":w=p;break;case"multiple":v=p;default:p!==N&&it(t,a,d,p,o,N)}a=w,i=v,o=G,M!=null?us(t,!!i,M,!1):!!o!=!!i&&(a!=null?us(t,!!i,a,!0):us(t,!!i,i?[]:"",!1));return;case"textarea":G=M=null;for(w in i)if(d=i[w],i.hasOwnProperty(w)&&d!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:it(t,a,w,null,o,d)}for(v in o)if(d=o[v],p=i[v],o.hasOwnProperty(v)&&(d!=null||p!=null))switch(v){case"value":M=d;break;case"defaultValue":G=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&it(t,a,v,d,o,p)}V0(t,M,G);return;case"option":for(var fe in i)M=i[fe],i.hasOwnProperty(fe)&&M!=null&&!o.hasOwnProperty(fe)&&(fe==="selected"?t.selected=!1:it(t,a,fe,null,o,M));for(N in o)M=o[N],G=i[N],o.hasOwnProperty(N)&&M!==G&&(M!=null||G!=null)&&(N==="selected"?t.selected=M&&typeof M!="function"&&typeof M!="symbol":it(t,a,N,M,o,G));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ze in i)M=i[ze],i.hasOwnProperty(ze)&&M!=null&&!o.hasOwnProperty(ze)&&it(t,a,ze,null,o,M);for(O in o)if(M=o[O],G=i[O],o.hasOwnProperty(O)&&M!==G&&(M!=null||G!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,a));break;default:it(t,a,O,M,o,G)}return;default:if(gu(a)){for(var st in i)M=i[st],i.hasOwnProperty(st)&&M!==void 0&&!o.hasOwnProperty(st)&&am(t,a,st,void 0,o,M);for(H in o)M=o[H],G=i[H],!o.hasOwnProperty(H)||M===G||M===void 0&&G===void 0||am(t,a,H,M,o,G);return}}for(var E in i)M=i[E],i.hasOwnProperty(E)&&M!=null&&!o.hasOwnProperty(E)&&it(t,a,E,null,o,M);for(X in o)M=o[X],G=i[X],!o.hasOwnProperty(X)||M===G||M==null&&G==null||it(t,a,X,M,o,G)}function Q1(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kk(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var d=i[o],p=d.transferSize,v=d.initiatorType,w=d.duration;if(p&&w&&Q1(v)){for(v=0,w=d.responseEnd,o+=1;o<i.length;o++){var N=i[o],O=N.startTime;if(O>w)break;var H=N.transferSize,X=N.initiatorType;H&&Q1(X)&&(N=N.responseEnd,v+=H*(N<w?1:(w-O)/(N-O)))}if(--o,a+=8*(p+v)/(d.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var nm=null,im=null;function Ql(t){return t.nodeType===9?t:t.ownerDocument}function Z1(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function F1(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function sm(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var om=null;function Qk(){var t=window.event;return t&&t.type==="popstate"?t===om?!1:(om=t,!0):(om=null,!1)}var Y1=typeof setTimeout=="function"?setTimeout:void 0,Zk=typeof clearTimeout=="function"?clearTimeout:void 0,X1=typeof Promise=="function"?Promise:void 0,Fk=typeof queueMicrotask=="function"?queueMicrotask:typeof X1<"u"?function(t){return X1.resolve(null).then(t).catch(Yk)}:Y1;function Yk(t){setTimeout(function(){throw t})}function oi(t){return t==="head"}function J1(t,a){var i=a,o=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(o===0){t.removeChild(d),Vs(a);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")rr(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,rr(i);for(var p=i.firstChild;p;){var v=p.nextSibling,w=p.nodeName;p[Ti]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||i.removeChild(p),p=v}}else i==="body"&&rr(t.ownerDocument.body);i=d}while(i);Vs(a)}function W1(t,a){var i=t;t=0;do{var o=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=o}while(i)}function rm(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":rm(i),ls(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function Xk(t,a,i,o){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Ti])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Pa(t.nextSibling),t===null)break}return null}function Jk(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Pa(t.nextSibling),t===null))return null;return t}function eg(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Pa(t.nextSibling),t===null))return null;return t}function lm(t){return t.data==="$?"||t.data==="$~"}function cm(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Wk(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function Pa(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var um=null;function tg(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return Pa(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function ag(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function ng(t,a,i){switch(a=Ql(i),t){case"html":if(t=a.documentElement,!t)throw Error(r(452));return t;case"head":if(t=a.head,!t)throw Error(r(453));return t;case"body":if(t=a.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function rr(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ls(t)}var Ua=new Map,ig=new Set;function Zl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zn=ie.d;ie.d={f:ew,r:tw,D:aw,C:nw,L:iw,m:sw,X:rw,S:ow,M:lw};function ew(){var t=zn.f(),a=Ul();return t||a}function tw(t){var a=nn(t);a!==null&&a.tag===5&&a.type==="form"?kf(a):zn.r(t)}var Us=typeof document>"u"?null:document;function sg(t,a,i){var o=Us;if(o&&typeof a=="string"&&a){var d=Da(a);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),ig.has(d)||(ig.add(d),t={rel:t,crossOrigin:i,href:a},o.querySelector(d)===null&&(a=o.createElement("link"),Ht(a,"link",t),Ct(a),o.head.appendChild(a)))}}function aw(t){zn.D(t),sg("dns-prefetch",t,null)}function nw(t,a){zn.C(t,a),sg("preconnect",t,a)}function iw(t,a,i){zn.L(t,a,i);var o=Us;if(o&&t&&a){var d='link[rel="preload"][as="'+Da(a)+'"]';a==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Da(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Da(i.imageSizes)+'"]')):d+='[href="'+Da(t)+'"]';var p=d;switch(a){case"style":p=Ls(t);break;case"script":p=Is(t)}Ua.has(p)||(t=j({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),Ua.set(p,t),o.querySelector(d)!==null||a==="style"&&o.querySelector(lr(p))||a==="script"&&o.querySelector(cr(p))||(a=o.createElement("link"),Ht(a,"link",t),Ct(a),o.head.appendChild(a)))}}function sw(t,a){zn.m(t,a);var i=Us;if(i&&t){var o=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Da(o)+'"][href="'+Da(t)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Is(t)}if(!Ua.has(p)&&(t=j({rel:"modulepreload",href:t},a),Ua.set(p,t),i.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(cr(p)))return}o=i.createElement("link"),Ht(o,"link",t),Ct(o),i.head.appendChild(o)}}}function ow(t,a,i){zn.S(t,a,i);var o=Us;if(o&&t){var d=Vn(o).hoistableStyles,p=Ls(t);a=a||"default";var v=d.get(p);if(!v){var w={loading:0,preload:null};if(v=o.querySelector(lr(p)))w.loading=5;else{t=j({rel:"stylesheet",href:t,"data-precedence":a},i),(i=Ua.get(p))&&dm(t,i);var N=v=o.createElement("link");Ct(N),Ht(N,"link",t),N._p=new Promise(function(O,H){N.onload=O,N.onerror=H}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Fl(v,a,o)}v={type:"stylesheet",instance:v,count:1,state:w},d.set(p,v)}}}function rw(t,a){zn.X(t,a);var i=Us;if(i&&t){var o=Vn(i).hoistableScripts,d=Is(t),p=o.get(d);p||(p=i.querySelector(cr(d)),p||(t=j({src:t,async:!0},a),(a=Ua.get(d))&&mm(t,a),p=i.createElement("script"),Ct(p),Ht(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function lw(t,a){zn.M(t,a);var i=Us;if(i&&t){var o=Vn(i).hoistableScripts,d=Is(t),p=o.get(d);p||(p=i.querySelector(cr(d)),p||(t=j({src:t,async:!0,type:"module"},a),(a=Ua.get(d))&&mm(t,a),p=i.createElement("script"),Ct(p),Ht(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function og(t,a,i,o){var d=(d=se.current)?Zl(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Ls(i.href),i=Vn(d).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ls(i.href);var p=Vn(d).hoistableStyles,v=p.get(t);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,v),(p=d.querySelector(lr(t)))&&!p._p&&(v.instance=p,v.state.loading=5),Ua.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ua.set(t,i),p||cw(d,t,i,v.state))),a&&o===null)throw Error(r(528,""));return v}if(a&&o!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Is(i),i=Vn(d).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Ls(t){return'href="'+Da(t)+'"'}function lr(t){return'link[rel="stylesheet"]['+t+"]"}function rg(t){return j({},t,{"data-precedence":t.precedence,precedence:null})}function cw(t,a,i,o){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=t.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Ht(a,"link",i),Ct(a),t.head.appendChild(a))}function Is(t){return'[src="'+Da(t)+'"]'}function cr(t){return"script[async]"+t}function lg(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=t.querySelector('style[data-href~="'+Da(i.href)+'"]');if(o)return a.instance=o,Ct(o),o;var d=j({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Ct(o),Ht(o,"style",d),Fl(o,i.precedence,t),a.instance=o;case"stylesheet":d=Ls(i.href);var p=t.querySelector(lr(d));if(p)return a.state.loading|=4,a.instance=p,Ct(p),p;o=rg(i),(d=Ua.get(d))&&dm(o,d),p=(t.ownerDocument||t).createElement("link"),Ct(p);var v=p;return v._p=new Promise(function(w,N){v.onload=w,v.onerror=N}),Ht(p,"link",o),a.state.loading|=4,Fl(p,i.precedence,t),a.instance=p;case"script":return p=Is(i.src),(d=t.querySelector(cr(p)))?(a.instance=d,Ct(d),d):(o=i,(d=Ua.get(p))&&(o=j({},i),mm(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),Ct(d),Ht(d,"link",o),t.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Fl(o,i.precedence,t));return a.instance}function Fl(t,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,v=0;v<o.length;v++){var w=o[v];if(w.dataset.precedence===a)p=w;else if(p!==d)break}p?p.parentNode.insertBefore(t,p.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function dm(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function mm(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Yl=null;function cg(t,a,i){if(Yl===null){var o=new Map,d=Yl=new Map;d.set(i,o)}else d=Yl,o=d.get(i),o||(o=new Map,d.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var p=i[d];if(!(p[Ti]||p[ht]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var v=p.getAttribute(a)||"";v=t+v;var w=o.get(v);w?w.push(p):o.set(v,[p])}}return o}function ug(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function uw(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(t=a.disabled,typeof a.precedence=="string"&&t==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function dg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function dw(t,a,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Ls(o.href),p=a.querySelector(lr(d));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Xl.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=p,Ct(p);return}p=a.ownerDocument||a,o=rg(o),(d=Ua.get(d))&&dm(o,d),p=p.createElement("link"),Ct(p);var v=p;v._p=new Promise(function(w,N){v.onload=w,v.onerror=N}),Ht(p,"link",o),i.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Xl.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var pm=0;function mw(t,a){return t.stylesheets&&t.count===0&&Wl(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var o=setTimeout(function(){if(t.stylesheets&&Wl(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+a);0<t.imgBytes&&pm===0&&(pm=62500*Kk());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Wl(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>pm?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function Xl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Jl=null;function Wl(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Jl=new Map,a.forEach(pw,t),Jl=null,Xl.call(t))}function pw(t,a){if(!(a.state.loading&4)){var i=Jl.get(t);if(i)var o=i.get(null);else{i=new Map,Jl.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var v=d[p];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),o=v)}o&&i.set(null,o)}d=a.instance,v=d.getAttribute("data-precedence"),p=i.get(v)||o,p===o&&i.set(null,d),i.set(v,d),this.count++,o=Xl.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),a.state.loading|=4}}var ur={$$typeof:J,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function hw(t,a,i,o,d,p,v,w,N){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Di(0),this.hiddenUpdates=Di(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function mg(t,a,i,o,d,p,v,w,N,O,H,X){return t=new hw(t,a,i,v,N,O,H,X,w),a=1,p===!0&&(a|=24),p=ka(3,null,null,a),t.current=p,p.stateNode=t,a=Ku(),a.refCount++,t.pooledCache=a,a.refCount++,p.memoizedState={element:o,isDehydrated:i,cache:a},Yu(p),t}function pg(t){return t?(t=bs,t):bs}function hg(t,a,i,o,d,p){d=pg(d),o.context===null?o.context=d:o.pendingContext=d,o=Fn(a),o.payload={element:i},p=p===void 0?null:p,p!==null&&(o.callback=p),i=Yn(t,o,a),i!==null&&(fa(i,t,a),Vo(i,t,a))}function fg(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function hm(t,a){fg(t,a),(t=t.alternate)&&fg(t,a)}function gg(t){if(t.tag===13||t.tag===31){var a=Mi(t,67108864);a!==null&&fa(a,t,67108864),hm(t,67108864)}}function yg(t){if(t.tag===13||t.tag===31){var a=Na();a=Ha(a);var i=Mi(t,a);i!==null&&fa(i,t,a),hm(t,a)}}var ec=!0;function fw(t,a,i,o){var d=I.T;I.T=null;var p=ie.p;try{ie.p=2,fm(t,a,i,o)}finally{ie.p=p,I.T=d}}function gw(t,a,i,o){var d=I.T;I.T=null;var p=ie.p;try{ie.p=8,fm(t,a,i,o)}finally{ie.p=p,I.T=d}}function fm(t,a,i,o){if(ec){var d=gm(o);if(d===null)tm(t,a,o,tc,i),vg(t,o);else if(bw(d,t,a,i,o))o.stopPropagation();else if(vg(t,o),a&4&&-1<yw.indexOf(t)){for(;d!==null;){var p=nn(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=Ga(p.pendingLanes);if(v!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;v;){var N=1<<31-Zt(v);w.entanglements[1]|=N,v&=~N}ln(p),(Xe&6)===0&&(Ml=Kt()+500,ir(0))}}break;case 31:case 13:w=Mi(p,2),w!==null&&fa(w,p,2),Ul(),hm(p,2)}if(p=gm(o),p===null&&tm(t,a,o,tc,i),p===d)break;d=p}d!==null&&o.stopPropagation()}else tm(t,a,o,null,i)}}function gm(t){return t=bu(t),ym(t)}var tc=null;function ym(t){if(tc=null,t=Wt(t),t!==null){var a=f(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=g(a),t!==null)return t;t=null}else if(i===31){if(t=b(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return tc=t,null}function bg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ou()){case bo:return 2;case vo:return 8;case _i:case Hr:return 32;case xo:return 268435456;default:return 32}default:return 32}}var bm=!1,ri=null,li=null,ci=null,dr=new Map,mr=new Map,ui=[],yw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vg(t,a){switch(t){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":dr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":mr.delete(a.pointerId)}}function pr(t,a,i,o,d,p){return t===null||t.nativeEvent!==p?(t={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},a!==null&&(a=nn(a),a!==null&&gg(a)),t):(t.eventSystemFlags|=o,a=t.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),t)}function bw(t,a,i,o,d){switch(a){case"focusin":return ri=pr(ri,t,a,i,o,d),!0;case"dragenter":return li=pr(li,t,a,i,o,d),!0;case"mouseover":return ci=pr(ci,t,a,i,o,d),!0;case"pointerover":var p=d.pointerId;return dr.set(p,pr(dr.get(p)||null,t,a,i,o,d)),!0;case"gotpointercapture":return p=d.pointerId,mr.set(p,pr(mr.get(p)||null,t,a,i,o,d)),!0}return!1}function xg(t){var a=Wt(t.target);if(a!==null){var i=f(a);if(i!==null){if(a=i.tag,a===13){if(a=g(i),a!==null){t.blockedOn=a,Ln(t.priority,function(){yg(i)});return}}else if(a===31){if(a=b(i),a!==null){t.blockedOn=a,Ln(t.priority,function(){yg(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ac(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=gm(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);yu=o,i.target.dispatchEvent(o),yu=null}else return a=nn(i),a!==null&&gg(a),t.blockedOn=i,!1;a.shift()}return!0}function kg(t,a,i){ac(t)&&i.delete(a)}function vw(){bm=!1,ri!==null&&ac(ri)&&(ri=null),li!==null&&ac(li)&&(li=null),ci!==null&&ac(ci)&&(ci=null),dr.forEach(kg),mr.forEach(kg)}function nc(t,a){t.blockedOn===a&&(t.blockedOn=null,bm||(bm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,vw)))}var ic=null;function wg(t){ic!==t&&(ic=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ic===t&&(ic=null);for(var a=0;a<t.length;a+=3){var i=t[a],o=t[a+1],d=t[a+2];if(typeof o!="function"){if(ym(o||i)===null)continue;break}var p=nn(i);p!==null&&(t.splice(a,3),a-=3,gd(p,{pending:!0,data:d,method:i.method,action:o},o,d))}}))}function Vs(t){function a(N){return nc(N,t)}ri!==null&&nc(ri,t),li!==null&&nc(li,t),ci!==null&&nc(ci,t),dr.forEach(a),mr.forEach(a);for(var i=0;i<ui.length;i++){var o=ui[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<ui.length&&(i=ui[0],i.blockedOn===null);)xg(i),i.blockedOn===null&&ui.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var d=i[o],p=i[o+1],v=d[wt]||null;if(typeof p=="function")v||wg(i);else if(v){var w=null;if(p&&p.hasAttribute("formAction")){if(d=p,v=p[wt]||null)w=v.formAction;else if(ym(d)!==null)continue}else w=v.action;typeof w=="function"?i[o+1]=w:(i.splice(o,3),o-=3),wg(i)}}}function Sg(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function vm(t){this._internalRoot=t}sc.prototype.render=vm.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,o=Na();hg(i,o,t,a,null,null)},sc.prototype.unmount=vm.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;hg(t.current,2,null,t,null,null),Ul(),a[Ka]=null}};function sc(t){this._internalRoot=t}sc.prototype.unstable_scheduleHydration=function(t){if(t){var a=mn();t={blockedOn:null,target:t,priority:a};for(var i=0;i<ui.length&&a!==0&&a<ui[i].priority;i++);ui.splice(i,0,t),i===0&&xg(t)}};var jg=n.version;if(jg!=="19.2.4")throw Error(r(527,jg,"19.2.4"));ie.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=k(a),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var xw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{Ci=oc.inject(xw),Qt=oc}catch{}}return hr.createRoot=function(t,a){if(!c(t))throw Error(r(299));var i=!1,o="",d=Df,p=Tf,v=Rf;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=mg(t,1,!1,null,null,i,o,null,d,p,v,Sg),t[Ka]=a.current,em(t),new vm(a)},hr.hydrateRoot=function(t,a,i){if(!c(t))throw Error(r(299));var o=!1,d="",p=Df,v=Tf,w=Rf,N=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),a=mg(t,1,!0,a,i??null,o,d,N,p,v,w,Sg),a.context=pg(null),i=a.current,o=Na(),o=Ha(o),d=Fn(o),d.callback=null,Yn(i,d,o),i=o,a.current.lanes=i,Un(a,i),ln(a),t[Ka]=a.current,em(t),new sc(a)},hr.version="19.2.4",hr}var Eg;function rS(){if(Eg)return xm.exports;Eg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xm.exports=oS(),xm.exports}var lS=rS();const cS={bodySerializer:e=>JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString():s)},uS=({onRequest:e,onSseError:n,onSseEvent:s,responseTransformer:r,responseValidator:c,sseDefaultRetryDelay:f,sseMaxRetryAttempts:g,sseMaxRetryDelay:b,sseSleepFn:x,url:k,...S})=>{let j;const A=x??(L=>new Promise(P=>setTimeout(P,L)));return{stream:async function*(){let L=f??3e3,P=0;const V=S.signal??new AbortController().signal;for(;!V.aborted;){P++;const ne=S.headers instanceof Headers?S.headers:new Headers(S.headers);j!==void 0&&ne.set("Last-Event-ID",j);try{const J={redirect:"follow",...S,body:S.serializedBody,headers:ne,signal:V};let ee=new Request(k,J);e&&(ee=await e(k,J));const he=await(S.fetch??globalThis.fetch)(ee);if(!he.ok)throw new Error(`SSE failed: ${he.status} ${he.statusText}`);if(!he.body)throw new Error("No body in SSE response");const q=he.body.pipeThrough(new TextDecoderStream).getReader();let ae="";const Ae=()=>{try{q.cancel()}catch{}};V.addEventListener("abort",Ae);try{for(;;){const{done:de,value:ge}=await q.read();if(de)break;ae+=ge;const qe=ae.split(`
11
+
12
+ `);ae=qe.pop()??"";for(const De of qe){const at=De.split(`
13
+ `),pe=[];let I;for(const _e of at)if(_e.startsWith("data:"))pe.push(_e.replace(/^data:\s*/,""));else if(_e.startsWith("event:"))I=_e.replace(/^event:\s*/,"");else if(_e.startsWith("id:"))j=_e.replace(/^id:\s*/,"");else if(_e.startsWith("retry:")){const le=Number.parseInt(_e.replace(/^retry:\s*/,""),10);Number.isNaN(le)||(L=le)}let ie,ue=!1;if(pe.length){const _e=pe.join(`
14
+ `);try{ie=JSON.parse(_e),ue=!0}catch{ie=_e}}ue&&(c&&await c(ie),r&&(ie=await r(ie))),s?.({data:ie,event:I,id:j,retry:L}),pe.length&&(yield ie)}}}finally{V.removeEventListener("abort",Ae),q.releaseLock()}break}catch(J){if(n?.(J),g!==void 0&&P>=g)break;const ee=Math.min(L*2**(P-1),b??3e4);await A(ee)}}}()}},dS=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},mS=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},pS=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ub=({allowReserved:e,explode:n,name:s,style:r,value:c})=>{if(!n){const b=(e?c:c.map(x=>encodeURIComponent(x))).join(mS(r));switch(r){case"label":return`.${b}`;case"matrix":return`;${s}=${b}`;case"simple":return b;default:return`${s}=${b}`}}const f=dS(r),g=c.map(b=>r==="label"||r==="simple"?e?b:encodeURIComponent(b):Bc({allowReserved:e,name:s,value:b})).join(f);return r==="label"||r==="matrix"?f+g:g},Bc=({allowReserved:e,name:n,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${n}=${e?s:encodeURIComponent(s)}`},Lb=({allowReserved:e,explode:n,name:s,style:r,value:c,valueOnly:f})=>{if(c instanceof Date)return f?c.toISOString():`${s}=${c.toISOString()}`;if(r!=="deepObject"&&!n){let x=[];Object.entries(c).forEach(([S,j])=>{x=[...x,S,e?j:encodeURIComponent(j)]});const k=x.join(",");switch(r){case"form":return`${s}=${k}`;case"label":return`.${k}`;case"matrix":return`;${s}=${k}`;default:return k}}const g=pS(r),b=Object.entries(c).map(([x,k])=>Bc({allowReserved:e,name:r==="deepObject"?`${s}[${x}]`:x,value:k})).join(g);return r==="label"||r==="matrix"?g+b:b},hS=/\{[^{}]+\}/g,fS=({path:e,url:n})=>{let s=n;const r=n.match(hS);if(r)for(const c of r){let f=!1,g=c.substring(1,c.length-1),b="simple";g.endsWith("*")&&(f=!0,g=g.substring(0,g.length-1)),g.startsWith(".")?(g=g.substring(1),b="label"):g.startsWith(";")&&(g=g.substring(1),b="matrix");const x=e[g];if(x==null)continue;if(Array.isArray(x)){s=s.replace(c,Ub({explode:f,name:g,style:b,value:x}));continue}if(typeof x=="object"){s=s.replace(c,Lb({explode:f,name:g,style:b,value:x,valueOnly:!0}));continue}if(b==="matrix"){s=s.replace(c,`;${Bc({name:g,value:x})}`);continue}const k=encodeURIComponent(b==="label"?`.${x}`:x);s=s.replace(c,k)}return s},gS=({baseUrl:e,path:n,query:s,querySerializer:r,url:c})=>{const f=c.startsWith("/")?c:`/${c}`;let g=(e??"")+f;n&&(g=fS({path:n,url:g}));let b=s?r(s):"";return b.startsWith("?")&&(b=b.substring(1)),b&&(g+=`?${b}`),g};function yS(e){const n=e.body!==void 0;if(n&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(n)return e.body}const bS=async(e,n)=>{const s=typeof n=="function"?await n(e):n;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s},Ib=({allowReserved:e,array:n,object:s}={})=>c=>{const f=[];if(c&&typeof c=="object")for(const g in c){const b=c[g];if(b!=null)if(Array.isArray(b)){const x=Ub({allowReserved:e,explode:!0,name:g,style:"form",value:b,...n});x&&f.push(x)}else if(typeof b=="object"){const x=Lb({allowReserved:e,explode:!0,name:g,style:"deepObject",value:b,...s});x&&f.push(x)}else{const x=Bc({allowReserved:e,name:g,value:b});x&&f.push(x)}}return f.join("&")},vS=e=>{if(!e)return"stream";const n=e.split(";")[0]?.trim();if(n){if(n.startsWith("application/json")||n.endsWith("+json"))return"json";if(n==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>n.startsWith(s)))return"blob";if(n.startsWith("text/"))return"text"}},xS=(e,n)=>n?!!(e.headers.has(n)||e.query?.[n]||e.headers.get("Cookie")?.includes(`${n}=`)):!1,kS=async({security:e,...n})=>{for(const s of e){if(xS(n,s.name))continue;const r=await bS(s,n.auth);if(!r)continue;const c=s.name??"Authorization";switch(s.in){case"query":n.query||(n.query={}),n.query[c]=r;break;case"cookie":n.headers.append("Cookie",`${c}=${r}`);break;default:n.headers.set(c,r);break}}},Dg=e=>gS({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:Ib(e.querySerializer),url:e.url}),Tg=(e,n)=>{const s={...e,...n};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=Vb(e.headers,n.headers),s},wS=e=>{const n=[];return e.forEach((s,r)=>{n.push([r,s])}),n},Vb=(...e)=>{const n=new Headers;for(const s of e){if(!s)continue;const r=s instanceof Headers?wS(s):Object.entries(s);for(const[c,f]of r)if(f===null)n.delete(c);else if(Array.isArray(f))for(const g of f)n.append(c,g);else f!==void 0&&n.set(c,typeof f=="object"?JSON.stringify(f):f)}return n};class Sm{fns=[];clear(){this.fns=[]}eject(n){const s=this.getInterceptorIndex(n);this.fns[s]&&(this.fns[s]=null)}exists(n){const s=this.getInterceptorIndex(n);return!!this.fns[s]}getInterceptorIndex(n){return typeof n=="number"?this.fns[n]?n:-1:this.fns.indexOf(n)}update(n,s){const r=this.getInterceptorIndex(n);return this.fns[r]?(this.fns[r]=s,n):!1}use(n){return this.fns.push(n),this.fns.length-1}}const SS=()=>({error:new Sm,request:new Sm,response:new Sm}),jS=Ib({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),AS={"Content-Type":"application/json"},$b=(e={})=>({...cS,headers:AS,parseAs:"auto",querySerializer:jS,...e}),Gb=(e={})=>{let n=Tg($b(),e);const s=()=>({...n}),r=k=>(n=Tg(n,k),s()),c=SS(),f=async k=>{const S={...n,...k,fetch:k.fetch??n.fetch??globalThis.fetch,headers:Vb(n.headers,k.headers),serializedBody:void 0};S.security&&await kS({...S,security:S.security}),S.requestValidator&&await S.requestValidator(S),S.body!==void 0&&S.bodySerializer&&(S.serializedBody=S.bodySerializer(S.body)),(S.body===void 0||S.serializedBody==="")&&S.headers.delete("Content-Type");const j=Dg(S);return{opts:S,url:j}},g=async k=>{const{opts:S,url:j}=await f(k),A={redirect:"follow",...S,body:yS(S)};let z=new Request(j,A);for(const re of c.request.fns)re&&(z=await re(z,S));const $=S.fetch;let L=await $(z);for(const re of c.response.fns)re&&(L=await re(L,z,S));const P={request:z,response:L};if(L.ok){const re=(S.parseAs==="auto"?vS(L.headers.get("Content-Type")):S.parseAs)??"json";if(L.status===204||L.headers.get("Content-Length")==="0"){let q;switch(re){case"arrayBuffer":case"blob":case"text":q=await L[re]();break;case"formData":q=new FormData;break;case"stream":q=L.body;break;default:q={};break}return S.responseStyle==="data"?q:{data:q,...P}}let he;switch(re){case"arrayBuffer":case"blob":case"formData":case"json":case"text":he=await L[re]();break;case"stream":return S.responseStyle==="data"?L.body:{data:L.body,...P}}return re==="json"&&(S.responseValidator&&await S.responseValidator(he),S.responseTransformer&&(he=await S.responseTransformer(he))),S.responseStyle==="data"?he:{data:he,...P}}const V=await L.text();let ne;try{ne=JSON.parse(V)}catch{}const J=ne??V;let ee=J;for(const re of c.error.fns)re&&(ee=await re(J,L,z,S));if(ee=ee||{},S.throwOnError)throw ee;return S.responseStyle==="data"?void 0:{error:ee,...P}},b=k=>S=>g({...S,method:k}),x=k=>async S=>{const{opts:j,url:A}=await f(S);return uS({...j,body:j.body,headers:j.headers,method:k,onRequest:async(z,$)=>{let L=new Request(z,$);for(const P of c.request.fns)P&&(L=await P(L,j));return L},url:A})};return{buildUrl:Dg,connect:b("CONNECT"),delete:b("DELETE"),get:b("GET"),getConfig:s,head:b("HEAD"),interceptors:c,options:b("OPTIONS"),patch:b("PATCH"),post:b("POST"),put:b("PUT"),request:g,setConfig:r,sse:{connect:x("CONNECT"),delete:x("DELETE"),get:x("GET"),head:x("HEAD"),options:x("OPTIONS"),patch:x("PATCH"),post:x("POST"),put:x("PUT"),trace:x("TRACE")},trace:b("TRACE")}},B=Gb($b()),NS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/sitemaps/submit",...e,headers:{"Content-Type":"application/json",...e.headers}}),_S=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}",...e}),Hb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}",...e}),CS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),zS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan",...e}),ES=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-report",...e}),DS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-setup",...e}),bP=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft",...e}),vP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/create",...e,headers:{"Content-Type":"application/json",...e.headers}}),xP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/import-sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),kP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-sitemap-selection",...e,headers:{"Content-Type":"application/json",...e.headers}}),wP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/upsert-target",...e,headers:{"Content-Type":"application/json",...e.headers}}),SP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/exclude-target",...e,headers:{"Content-Type":"application/json",...e.headers}}),jP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),AP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/preview-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),NP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/replace-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),_P=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-paired-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),CP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/remove-assignment",...e,headers:{"Content-Type":"application/json",...e.headers}}),zP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/upsert-group",...e,headers:{"Content-Type":"application/json",...e.headers}}),EP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/remove-group",...e,headers:{"Content-Type":"application/json",...e.headers}}),DP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/preview-group-membership",...e,headers:{"Content-Type":"application/json",...e.headers}}),TP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-group-membership",...e,headers:{"Content-Type":"application/json",...e.headers}}),RP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/upsert-competitor",...e,headers:{"Content-Type":"application/json",...e.headers}}),OP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/remove-competitor",...e,headers:{"Content-Type":"application/json",...e.headers}}),qP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/compile-preview",...e}),BP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/diff-preview",...e}),MP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/publish",...e,headers:{"Content-Type":"application/json",...e.headers}}),PP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/discard",...e}),Kb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-overview",...e}),TS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-property-evidence",...e}),RS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-question-result",...e}),OS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-property-competitors",...e}),qS=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects",...e}),BS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/research/runs",...e}),MS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/research/runs",...e,headers:{"Content-Type":"application/json",...e.headers}}),PS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/research/runs/{runId}",...e}),US=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/locations",...e,headers:{"Content-Type":"application/json",...e.headers}}),LS=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/locations/{label}",...e}),IS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/locations/default",...e,headers:{"Content-Type":"application/json",...e.headers}}),VS=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e}),$S=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e,headers:{"Content-Type":"application/json",...e.headers}}),GS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e,headers:{"Content-Type":"application/json",...e.headers}}),HS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries/generate",...e,headers:{"Content-Type":"application/json",...e.headers}}),KS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors",...e}),QS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors",...e,headers:{"Content-Type":"application/json",...e.headers}}),ZS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors",...e,headers:{"Content-Type":"application/json",...e.headers}}),FS=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors/{id}",...e}),Zb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/runs",...e}),YS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/runs",...e,headers:{"Content-Type":"application/json",...e.headers}}),XS=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/runs",...e}),JS=e=>(e?.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/runs",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/runs/{id}",...e}),WS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/apply",...e,headers:{"Content-Type":"application/json",...e.headers}}),ej=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/history",...e}),tj=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/history",...e}),aj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/timeline",...e}),nj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/analytics/metrics",...e}),ij=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/snapshots/diff",...e}),Yb=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings",...e}),sj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/providers/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),oj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/google",...e,headers:{"Content-Type":"application/json",...e.headers}}),rj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/bing",...e,headers:{"Content-Type":"application/json",...e.headers}}),lj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/cdp",...e,headers:{"Content-Type":"application/json",...e.headers}}),cj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/schedule",...e}),Xb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/schedule",...e}),uj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/schedule",...e,headers:{"Content-Type":"application/json",...e.headers}}),dj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications",...e}),mj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications",...e,headers:{"Content-Type":"application/json",...e.headers}}),pj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications/{id}",...e}),hj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications/{id}/test",...e}),fj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/telemetry/onboarding",...e,headers:{"Content-Type":"application/json",...e.headers}}),gj=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/cdp/status",...e}),yj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections",...e}),bj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connect",...e,headers:{"Content-Type":"application/json",...e.headers}}),vj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections/{type}",...e}),xj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/properties",...e}),kj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections/{type}/property",...e,headers:{"Content-Type":"application/json",...e.headers}}),wj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections/{type}/sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),Sj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),jj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/performance",...e}),Aj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/performance/daily",...e}),Nj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/inspect",...e,headers:{"Content-Type":"application/json",...e.headers}}),_j=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/inspections",...e}),Cj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/deindexed",...e}),Jb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/coverage",...e}),zj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/coverage/history",...e}),Ej=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/sitemaps",...e}),Dj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/inspect-sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/indexing/request",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/locations",...e}),Oj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/locations/{locationName}/selection",...e,headers:{"Content-Type":"application/json",...e.headers}}),qj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/keywords",...e}),Mj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/place-actions",...e}),Pj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/lodging",...e}),Uj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/places",...e}),Lj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/summary",...e}),Ij=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/connect",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/disconnect",...e}),$j=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/status",...e}),Gj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/sites",...e}),Hj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/set-site",...e,headers:{"Content-Type":"application/json",...e.headers}}),Wb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/coverage",...e}),Kj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/inspections",...e}),Qj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/inspect-url",...e,headers:{"Content-Type":"application/json",...e.headers}}),Zj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/inspect-sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/request-indexing",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/performance",...e}),Xj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/connect",...e,headers:{"Content-Type":"application/json",...e.headers}}),Jj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/disconnect",...e}),Wj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/status",...e}),e4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),t4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/traffic",...e}),a4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/ai-referral-daily",...e}),n4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/social-referral-history",...e}),i4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/session-history",...e}),s4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/insights",...e}),o4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/report",...e}),r4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/health/history",...e}),l4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/citations/visibility",...e}),c4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/content/dismissals",...e,headers:{"Content-Type":"application/json",...e.headers}}),u4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/overview",...e}),d4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/status",...e}),m4=e=>(e?.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/install",...e}),p4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/syncs",...e}),h4=e=>(e?.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/syncs",...e,headers:{"Content-Type":"application/json",...e?.headers}}),f4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/syncs/latest",...e}),g4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/releases",...e}),y4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/latest-release",...e}),b4=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/cache/{release}",...e}),v4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/extract",...e,headers:{"Content-Type":"application/json",...e.headers}}),x4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/summary",...e}),k4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/domains",...e}),w4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/history",...e}),S4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/connect/cloud-run",...e,headers:{"Content-Type":"application/json",...e.headers}}),j4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/connect/wordpress",...e,headers:{"Content-Type":"application/json",...e.headers}}),A4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/connect/vercel",...e,headers:{"Content-Type":"application/json",...e.headers}}),N4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources/{id}/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),_4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources/{id}/backfill",...e,headers:{"Content-Type":"application/json",...e.headers}}),C4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources",...e}),z4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/status",...e}),E4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources/{id}",...e}),D4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/events",...e}),T4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/run",...e,headers:{"Content-Type":"application/json",...e.headers}}),R4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions",...e}),O4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions/{id}",...e}),q4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions/{id}/promote",...e}),B4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions/{id}/promote",...e,headers:{"Content-Type":"application/json",...e.headers}}),M4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo",...e}),P4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo/pages",...e}),U4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo/trend",...e}),L4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo/runs",...e,headers:{"Content-Type":"application/json",...e.headers}}),I4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/agent/providers",...e});function V4(e){const n={baseUrl:e.baseUrl,fetch:e.fetch,headers:{...e.headers??{}}};return Gb(n)}class _a extends Error{code;statusCode;details;constructor(n,s,r,c){super(n),this.name="ApiError",this.code=r??"UNKNOWN",this.statusCode=s,this.details=c}}function $4(){if(typeof window>"u")return;const e=window.__CANONRY_CONFIG__?.embed?.renderToken;return typeof e=="string"&&e.length>0?e:void 0}function Np(e){const n=$4();if(!n)return e;let s;const r=typeof window<"u"&&window.location?window.location.href:"http://localhost/";try{s=new URL(e,r)}catch{return e}const c=new URL(r).origin;if(s.origin!==c)return e;const g=`${Cp().replace(/\/$/,"")}/api/v1`;return s.pathname!==g&&!s.pathname.startsWith(`${g}/`)?e:(s.searchParams.set("token",n),/^[a-z][a-z\d+.-]*:/i.test(e)?s.toString():`${s.pathname}${s.search}${s.hash}`)}function G4(e,n){const s={method:e.method,headers:e.headers,cache:e.cache,credentials:e.credentials,integrity:e.integrity,keepalive:e.keepalive,mode:e.mode,redirect:e.redirect,referrer:e.referrer,referrerPolicy:e.referrerPolicy,signal:e.signal};return e.body&&(s.body=e.body,s.duplex="half"),new Request(n,s)}function ev(){if(typeof window>"u")return null;const e=window.__CANONRY_CONFIG__?.embed;return e?.enabled?e:null}function H4(){return typeof window>"u"?!0:window.__CANONRY_CONFIG__?.dashboard?.showResourceLinks!==!1}function K4(){return typeof window>"u"?!0:window.__CANONRY_CONFIG__?.dashboard?.showAgentBar!==!1}function Q4(){return typeof window>"u"?!0:window.__CANONRY_CONFIG__?.dashboard?.showUpdateNotification!==!1}function Z4(){return ev()!==null}function F4(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath.replace(/\/$/,"")+"/api/v1":"/api/v1"}const _p=F4();function Y4(){const e=typeof window<"u"&&window.location?window.location.origin:"";return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?e+window.__CANONRY_CONFIG__.basePath.replace(/\/$/,""):e}function Cp(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath.replace(/\/$/,""):""}function X4(e){const n=e.trim().toLowerCase().replace(/^\[|\]$/g,"");return n==="localhost"||n==="::1"?!0:/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n)}function J4(e,n){if(e.protocol!=="http:"&&e.protocol!=="https:"||!X4(e.hostname))return;const s=e.port?`:${e.port}`:"",r=n?n.replace(/\/$/,""):"";return`${e.protocol}//localhost${s}${r}`}function UP(e){return`${e.replace(/\/$/,"")}/api/v1/google/callback`}function W4(){if(!(typeof window>"u"))return J4(window.location,Cp())}function e5(e){return`${Cp()}${e}`}function t5(e,n){if(n===404)return"Health endpoint returned 404. Check basePath or reverse-proxy configuration and make sure the dashboard reaches /health instead of an API-prefixed route."}function a5(){return""}function jm(){return!!a5()}let tv=null;function Rg(e){tv=e}function zp(){tv?.()}const oe=V4({baseUrl:Y4()});oe.interceptors.response.use((e,n)=>(e.status===401&&!n.url.includes("/api/v1/session")&&zp(),e));oe.interceptors.request.use(e=>{const n=Np(e.url);return n===e.url?e:G4(e,n)});async function ce(e){const n=await e();if(n.error!==void 0&&n.error!==null){const s=n.response.status;let r=`API ${s}: ${n.response.statusText}`,c,f;if(typeof n.error=="object"&&n.error!==null){const g=n.error.error;if(typeof g=="string")r=g;else if(g&&typeof g=="object"){const b=g;b.message&&(r=b.message),b.code&&(c=b.code),b.details&&(f=b.details)}else{const b=n.error;b.message&&(r=b.message),b.code&&(c=b.code),b.details&&(f=b.details)}}else typeof n.error=="string"&&(r=n.error);throw new _a(r,s,c,f)}if(n.response.status!==204)return n.data}async function lo(e,n){const s=n?.body!=null,r=await fetch(Np(`${_p}${e}`),{...n,credentials:n?.credentials??"same-origin",headers:{...s?{"Content-Type":"application/json"}:{},...n?.headers}});if(!r.ok){const c=await r.text();let f=`API ${r.status}: ${r.statusText}`,g,b;if(c)try{const x=JSON.parse(c);typeof x.error=="string"?f=x.error:x.error?.message?(f=x.error.message,g=x.error.code,b=x.error.details):x.message&&(f=x.message)}catch{f=c}throw r.status===401&&!e.startsWith("/session")&&!e.startsWith("/auth/")&&zp(),new _a(f,r.status,g,b)}if(r.status!==204)return r.json()}function n5(e){return ce(()=>Hb({client:oe,path:{name:e}}))}function LP(e){return ce(()=>Zb({client:oe,path:{name:e}}))}function bc(e){return ce(()=>Fb({client:oe,path:{id:e}}))}function av(e){return ce(()=>Qb({client:oe,path:{name:e}}))}function i5(e){return ce(()=>KS({client:oe,path:{name:e}}))}function s5(e,n,s){return ce(()=>aj({client:oe,path:{name:e},query:{location:n,limit:s}}))}function nv(e,n){return ce(()=>u4({client:oe,path:{name:e},query:{location:n?.location,since:n?.since}}))}function Ep(e,n){return ce(()=>CS({client:oe,path:{name:e},body:n}))}function o5(e,n){return ce(()=>GS({client:oe,path:{name:e},body:{queries:n}}))}function r5(e,n){return ce(()=>$S({client:oe,path:{name:e},body:{queries:n}}))}function IP(e,n){return ce(()=>VS({client:oe,path:{name:e},body:{queries:n}}))}function l5(e,n){return ce(()=>c4({client:oe,path:{name:e},body:n}))}function c5(e,n){return ce(()=>ZS({client:oe,path:{name:e},body:{competitors:n}}))}function VP(e,n){return ce(()=>QS({client:oe,path:{name:e},body:{competitors:n}}))}function $P(e,n){return ce(()=>FS({client:oe,path:{name:e,id:n}}))}async function GP(e,n){const s=await n5(e);return Ep(e,{displayName:n.displayName??s.displayName??s.name,canonicalDomain:n.canonicalDomain??s.canonicalDomain,ownedDomains:n.ownedDomains??s.ownedDomains,aliases:n.aliases??s.aliases,country:n.country??s.country,language:n.language??s.language,tags:s.tags,labels:s.labels,providers:n.providers??s.providers,providerModels:n.providerModels??s.providerModels??{},locations:n.locations??s.locations,defaultLocation:n.defaultLocation!==void 0?n.defaultLocation:s.defaultLocation,autoExtractBacklinks:s.autoExtractBacklinks})}function u5(e,n){const s={};return n?.location&&(s.location=n.location),n?.allLocations&&(s.allLocations=!0),n?.noLocation&&(s.noLocation=!0),ce(()=>YS({client:oe,path:{name:e},body:s}))}function HP(e,n){return ce(()=>US({client:oe,path:{name:e},body:n}))}async function KP(e,n){await ce(()=>LS({client:oe,path:{name:e,label:n}}))}function QP(e,n){return ce(()=>IS({client:oe,path:{name:e},body:{label:n}}))}async function ZP(e){await ce(()=>_S({client:oe,path:{name:e}}))}function FP(){return ce(()=>Yb({client:oe}))}function Og(){return lo("/session")}function d5(e){return lo("/session/setup",{method:"POST",body:JSON.stringify({password:e})})}function m5(e){return lo("/session",{method:"POST",body:JSON.stringify({password:e})})}function qg(){return lo("/auth/session")}function p5(e,n){return lo("/auth/login",{method:"POST",body:JSON.stringify({name:e,password:n})})}function Bg(){return lo("/auth/logout",{method:"POST"})}function h5(e,n){return ce(()=>sj({client:oe,path:{name:e},body:n}))}async function f5(e){for(let n=0;n<2;n+=1)try{await ce(()=>fj({client:oe,body:e}));return}catch(s){if(!(!(s instanceof _a)||s.statusCode>=500)||n===1)return}}function YP(e){return ce(()=>oj({client:oe,body:e}))}async function XP(e){try{return await ce(()=>Xb({client:oe,path:{name:e}}))}catch(n){if(n instanceof _a&&n.statusCode===404)return null;throw n}}function JP(e,n){return ce(()=>uj({client:oe,path:{name:e},body:n}))}async function WP(e){await ce(()=>cj({client:oe,path:{name:e}}))}function eU(e){return ce(()=>dj({client:oe,path:{name:e}}))}function tU(e,n){return ce(()=>mj({client:oe,path:{name:e},body:n}))}async function aU(e,n){await ce(()=>pj({client:oe,path:{name:e,id:n}}))}function nU(e,n){return ce(()=>hj({client:oe,path:{name:e,id:n}}))}function g5(e,n,s){return ce(()=>HS({client:oe,path:{name:e},body:{provider:n,count:s}}))}function y5(e){return ce(()=>WS({client:oe,body:e}))}function b5(e){return ce(()=>JS({client:oe,body:e??{}}))}function iU(e,n){const s=W4();return ce(()=>bj({client:oe,path:{name:e},body:{type:n,...s?{publicUrl:s}:{}}}))}function sU(e,n){return ce(()=>vj({client:oe,path:{name:e,type:n}}))}function oU(e,n,s){return ce(()=>kj({client:oe,path:{name:e,type:n},body:{propertyId:s}}))}function rU(e,n,s){return ce(()=>wj({client:oe,path:{name:e,type:n},body:{sitemapUrl:s}}))}function v5(e,n){return ce(()=>Sj({client:oe,path:{name:e},body:n??{}}))}function lU(e,n){const s={};return n&&n!=="all"&&(s.window=n),ce(()=>nj({client:oe,path:{name:e},query:s}))}function cU(e,n){return ce(()=>Nj({client:oe,path:{name:e},body:{url:n}}))}function x5(e){return ce(()=>Jb({client:oe,path:{name:e}}))}function k5(e,n){return ce(()=>Dj({client:oe,path:{name:e},body:n??{}}))}function uU(e,n){return ce(()=>Ej({client:oe,path:{name:e},query:n?{sitemapIndex:n}:void 0}))}function dU(e,n){return ce(()=>NS({client:oe,path:{name:e},body:{sitemapUrls:n}}))}function w5(e,n){return ce(()=>L4({client:oe,path:{name:e},body:n??{}}))}function mU(e,n){return ce(()=>T4({client:oe,path:{name:e},body:n??{}}))}function pU(e,n,s){return ce(()=>B4({client:oe,path:{name:e,id:n},body:s??{}}))}function hU(){return ce(()=>gj({client:oe}))}function fU(e,n){return ce(()=>lj({client:oe,body:{host:e,port:n}}))}function gU(e,n){return ce(()=>Tj({client:oe,path:{name:e},body:n}))}function yU(e,n){return ce(()=>Ij({client:oe,path:{name:e},body:{apiKey:n}}))}function bU(e){return ce(()=>Vj({client:oe,path:{name:e}}))}function vU(e,n){return ce(()=>Hj({client:oe,path:{name:e},body:{siteUrl:n}}))}function S5(e){return ce(()=>Wb({client:oe,path:{name:e}}))}function xU(e,n){return ce(()=>Qj({client:oe,path:{name:e},body:{url:n}}))}function kU(e,n){return ce(()=>Zj({client:oe,path:{name:e},body:{}}))}function wU(e,n){return ce(()=>Fj({client:oe,path:{name:e},body:n}))}function SU(e){return ce(()=>rj({client:oe,body:{apiKey:e}}))}function iv(e){return e?/filename\s*=\s*"?([^";]+)"?/i.exec(e)?.[1]??null:null}async function jU(e,n="agency",s){const r=new URLSearchParams({audience:n});s!==void 0&&r.set("period",String(s));const c=await fetch(Np(`${_p}/projects/${encodeURIComponent(e)}/report.html?${r.toString()}`),{credentials:"same-origin",headers:{}});if(!c.ok)throw new _a(`Failed to download report: ${c.status}`,c.status);const f=await c.blob(),g=URL.createObjectURL(f),b=iv(c.headers.get("Content-Disposition"))??`canonry-report-${e}.html`,x=document.createElement("a");x.href=g,x.download=b,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(g)}async function AU(e,n){const s=await fetch(`${_p}/projects/${encodeURIComponent(e)}/results/export?format=${n}`,{credentials:"same-origin",headers:{}});if(!s.ok)throw new _a(`Failed to download results: ${s.status}`,s.status);const r=await s.blob(),c=URL.createObjectURL(r),f=iv(s.headers.get("Content-Disposition"))??`canonry-results-${e}.${n}`,g=document.createElement("a");g.href=c,g.download=f,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(c)}function NU(e,n){return ce(()=>e4({client:oe,path:{name:e},body:{}}))}function _U(e,n){return ce(()=>Xj({client:oe,path:{name:e},body:n}))}function CU(e){return ce(()=>Jj({client:oe,path:{name:e}}))}function zU(e,n){return ce(()=>S4({client:oe,path:{name:e},body:n}))}function EU(e,n){return ce(()=>j4({client:oe,path:{name:e},body:n}))}function DU(e,n){return ce(()=>A4({client:oe,path:{name:e},body:n}))}function TU(e,n,s){return ce(()=>N4({client:oe,path:{name:e,id:n},body:s??{}}))}function RU(e,n,s){return ce(()=>_4({client:oe,path:{name:e,id:n},body:{}}))}function j5(e,n){return ce(()=>s4({client:oe,path:{name:e},query:{runId:n}}))}function A5(e){if(!e||typeof e!="object")return;const n=e;if(!(typeof n.current!="string"||typeof n.latest!="string"||typeof n.url!="string"||typeof n.upgradeCommand!="string"))return{current:n.current,latest:n.latest,url:n.url,upgradeCommand:n.upgradeCommand}}async function N5(e,n){const s=e5(e);try{const r=await fetch(s,{credentials:"same-origin"});if(!r.ok)return{label:n,state:"error",detail:`${n} ${r.status}: ${r.statusText}`,statusCode:r.status,hint:t5(e,r.status)};const c=await r.json(),f=typeof c.version=="string"?c.version:"unknown",g=typeof c.databaseUrlConfigured=="boolean"?c.databaseUrlConfigured:void 0,b=typeof c.lastHeartbeatAt=="string"?c.lastHeartbeatAt:void 0,x=A5(c.updateAvailable),k=[f,g===!1?"database not configured":"database configured",b?`heartbeat ${b}`:void 0].filter(Boolean).join(" · ");return{label:n,state:"ok",detail:k,version:f,databaseConfigured:g,lastHeartbeatAt:b,...x?{updateAvailable:x}:{}}}catch(r){return{label:n,state:"error",detail:r instanceof Error?r.message:"unreachable",hint:e==="/health"?`Request failed while checking ${s}. If this instance is served behind a sub-path, verify the dashboard basePath and reverse-proxy rewrites.`:void 0}}}function OU(){return ce(()=>d4({client:oe}))}function qU(){return ce(()=>m4({client:oe}))}function BU(){return ce(()=>f4({client:oe}))}function MU(){return ce(()=>p4({client:oe}))}function PU(e){return ce(()=>h4({client:oe,body:e?{release:e}:{}}))}function UU(){return ce(()=>g4({client:oe}))}function LU(){return ce(()=>y4({client:oe}))}function IU(e){return ce(()=>b4({client:oe,path:{release:e}}))}function VU(e,n={}){return ce(()=>x4({client:oe,path:{name:e},query:{release:n.release,excludeCrawlers:n.excludeCrawlers?"1":void 0,source:n.source}}))}function $U(e,n={}){return ce(()=>k4({client:oe,path:{name:e},query:{limit:n.limit!==void 0?String(n.limit):void 0,offset:n.offset!==void 0?String(n.offset):void 0,release:n.release,excludeCrawlers:n.excludeCrawlers?"1":void 0,source:n.source}}))}function GU(e,n={}){return ce(()=>w4({client:oe,path:{name:e},query:{source:n.source}}))}function HU(e,n){return ce(()=>v4({client:oe,path:{name:e},body:{release:void 0}}))}const sv={account:null,canWrite:!0,isAdmin:!0},ov=T.createContext(sv);function _5({account:e,children:n}){const s=e?{account:e,canWrite:e.role==="admin",isAdmin:e.role==="admin"}:sv;return u.jsx(ov.Provider,{value:s,children:n})}function Rr(){return T.useContext(ov)}const rv="View only — your account cannot change this.";function Yt(e){return(...n)=>{e(...n)}}const C5=6e3,z5=5,E5=180;let Xt=[],D5=0;const Qm=new Set,Zm=new Map,Fm=new Map;function vc(){const e=[...Xt];for(const n of Qm)n(e)}function Dp(e){const n=Zm.get(e);n&&(clearTimeout(n),Zm.delete(e));const s=Fm.get(e);s&&(clearTimeout(s),Fm.delete(e))}function lv(e){Dp(e);const n=Xt.length;Xt=Xt.filter(s=>s.id!==e),Xt.length!==n&&vc()}function Mg(e){Dp(e.id),Zm.set(e.id,setTimeout(()=>{Ym(e.id)},e.durationMs))}function T5(e,n,s){return typeof e=="string"?{title:e,tone:n,durationMs:s}:e}function sa(e,n="negative",s=C5){const r=T5(e,n,s),c={id:String(++D5),title:r.title,detail:r.detail,tone:r.tone??n,durationMs:r.durationMs??s,dedupeKey:r.dedupeKey,cta:r.cta,state:"open"};if(r.dedupeKey){const f=Xt.find(g=>g.dedupeKey===r.dedupeKey);if(f){if((r.dedupeMode??"drop")==="drop")return f.id;const g={...f,title:c.title,detail:c.detail,tone:c.tone,durationMs:c.durationMs,cta:c.cta,state:"open"};return Xt=Xt.map(b=>b.id===f.id?g:b),vc(),Mg(g),f.id}}return Xt.length>=z5&&lv(Xt[0].id),Xt=[...Xt,c],vc(),Mg(c),c.id}function Ym(e){const n=Xt.find(s=>s.id===e);!n||n.state==="closing"||(Dp(e),Xt=Xt.map(s=>s.id===e?{...s,state:"closing"}:s),vc(),Fm.set(e,setTimeout(()=>{lv(e)},E5)))}function R5(e){return Qm.add(e),()=>{Qm.delete(e)}}function Pg(){return Xt}const O5=5*6e4,Xm=30*6e4,KU=3e4,QU=6e4,Js=3e4,q5=2e3,B5=3e4;function M5(){return new jw({defaultOptions:{queries:{staleTime:O5,retry:1,refetchOnWindowFocus:!1}},mutationCache:new Aw({onError:(n,s,r,c)=>{c.meta?.skipGlobalErrorToast||sa({title:n instanceof Error?n.message:"An unexpected error occurred",tone:"negative"})}})})}const P5="modulepreload",U5=function(e,n){return new URL(e,n).href},Ug={},vi=function(n,s,r){let c=Promise.resolve();if(s&&s.length>0){let k=function(S){return Promise.all(S.map(j=>Promise.resolve(j).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};const g=document.getElementsByTagName("link"),b=document.querySelector("meta[property=csp-nonce]"),x=b?.nonce||b?.getAttribute("nonce");c=k(s.map(S=>{if(S=U5(S,r),S in Ug)return;Ug[S]=!0;const j=S.endsWith(".css"),A=j?'[rel="stylesheet"]':"";if(r)for(let $=g.length-1;$>=0;$--){const L=g[$];if(L.href===S&&(!j||L.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${S}"]${A}`))return;const z=document.createElement("link");if(z.rel=j?"stylesheet":P5,j||(z.as="script"),z.crossOrigin="",z.href=S,x&&z.setAttribute("nonce",x),document.head.appendChild(z),j)return new Promise(($,L)=>{z.addEventListener("load",$),z.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${S}`)))})}))}function f(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return c.then(g=>{for(const b of g||[])b.status==="rejected"&&f(b.reason);return n().catch(f)})};function Z(e,n,s){function r(b,x){if(b._zod||Object.defineProperty(b,"_zod",{value:{def:x,constr:g,traits:new Set},enumerable:!1}),b._zod.traits.has(e))return;b._zod.traits.add(e),n(b,x);const k=g.prototype,S=Object.keys(k);for(let j=0;j<S.length;j++){const A=S[j];A in b||(b[A]=k[A].bind(b))}}const c=s?.Parent??Object;class f extends c{}Object.defineProperty(f,"name",{value:e});function g(b){var x;const k=s?.Parent?new f:this;r(k,b),(x=k._zod).deferred??(x.deferred=[]);for(const S of k._zod.deferred)S();return k}return Object.defineProperty(g,"init",{value:r}),Object.defineProperty(g,Symbol.hasInstance,{value:b=>s?.Parent&&b instanceof s.Parent?!0:b?._zod?.traits?.has(e)}),Object.defineProperty(g,"name",{value:e}),g}class Fs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class cv extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const uv={};function fi(e){return uv}function dv(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,c])=>n.indexOf(+r)===-1).map(([r,c])=>c)}function Jm(e,n){return typeof n=="bigint"?n.toString():n}function Mc(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Tp(e){return e==null}function Rp(e){const n=e.startsWith("^")?1:0,s=e.endsWith("$")?e.length-1:e.length;return e.slice(n,s)}function L5(e,n){const s=(e.toString().split(".")[1]||"").length,r=n.toString();let c=(r.split(".")[1]||"").length;if(c===0&&/\d?e-\d?/.test(r)){const x=r.match(/\d?e-(\d?)/);x?.[1]&&(c=Number.parseInt(x[1]))}const f=s>c?s:c,g=Number.parseInt(e.toFixed(f).replace(".","")),b=Number.parseInt(n.toFixed(f).replace(".",""));return g%b/10**f}const Lg=Symbol("evaluating");function We(e,n,s){let r;Object.defineProperty(e,n,{get(){if(r!==Lg)return r===void 0&&(r=Lg,r=s()),r},set(c){Object.defineProperty(e,n,{value:c})},configurable:!0})}function ts(e,n,s){Object.defineProperty(e,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}function xi(...e){const n={};for(const s of e){const r=Object.getOwnPropertyDescriptors(s);Object.assign(n,r)}return Object.defineProperties({},n)}function Ig(e){return JSON.stringify(e)}function I5(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const mv="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const V5=Mc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ws(e){if(Cr(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const s=n.prototype;return!(Cr(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function pv(e){return Ws(e)?{...e}:Array.isArray(e)?[...e]:e}const $5=new Set(["string","number","symbol"]);function eo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ki(e,n,s){const r=new e._zod.constr(n??e._zod.def);return(!n||s?.parent)&&(r._zod.parent=e),r}function we(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function G5(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const H5={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function K5(e,n){const s=e._zod.def,r=s.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=xi(e._zod.def,{get shape(){const g={};for(const b in n){if(!(b in s.shape))throw new Error(`Unrecognized key: "${b}"`);n[b]&&(g[b]=s.shape[b])}return ts(this,"shape",g),g},checks:[]});return ki(e,f)}function Q5(e,n){const s=e._zod.def,r=s.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=xi(e._zod.def,{get shape(){const g={...e._zod.def.shape};for(const b in n){if(!(b in s.shape))throw new Error(`Unrecognized key: "${b}"`);n[b]&&delete g[b]}return ts(this,"shape",g),g},checks:[]});return ki(e,f)}function Z5(e,n){if(!Ws(n))throw new Error("Invalid input to extend: expected a plain object");const s=e._zod.def.checks;if(s&&s.length>0){const f=e._zod.def.shape;for(const g in n)if(Object.getOwnPropertyDescriptor(f,g)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const c=xi(e._zod.def,{get shape(){const f={...e._zod.def.shape,...n};return ts(this,"shape",f),f}});return ki(e,c)}function F5(e,n){if(!Ws(n))throw new Error("Invalid input to safeExtend: expected a plain object");const s=xi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...n};return ts(this,"shape",r),r}});return ki(e,s)}function Y5(e,n){const s=xi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...n._zod.def.shape};return ts(this,"shape",r),r},get catchall(){return n._zod.def.catchall},checks:[]});return ki(e,s)}function X5(e,n,s){const c=n._zod.def.checks;if(c&&c.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const g=xi(n._zod.def,{get shape(){const b=n._zod.def.shape,x={...b};if(s)for(const k in s){if(!(k in b))throw new Error(`Unrecognized key: "${k}"`);s[k]&&(x[k]=e?new e({type:"optional",innerType:b[k]}):b[k])}else for(const k in b)x[k]=e?new e({type:"optional",innerType:b[k]}):b[k];return ts(this,"shape",x),x},checks:[]});return ki(n,g)}function J5(e,n,s){const r=xi(n._zod.def,{get shape(){const c=n._zod.def.shape,f={...c};if(s)for(const g in s){if(!(g in f))throw new Error(`Unrecognized key: "${g}"`);s[g]&&(f[g]=new e({type:"nonoptional",innerType:c[g]}))}else for(const g in c)f[g]=new e({type:"nonoptional",innerType:c[g]});return ts(this,"shape",f),f}});return ki(n,r)}function Ks(e,n=0){if(e.aborted===!0)return!0;for(let s=n;s<e.issues.length;s++)if(e.issues[s]?.continue!==!0)return!0;return!1}function Qs(e,n){return n.map(s=>{var r;return(r=s).path??(r.path=[]),s.path.unshift(e),s})}function rc(e){return typeof e=="string"?e:e?.message}function gi(e,n,s){const r={...e,path:e.path??[]};if(!e.message){const c=rc(e.inst?._zod.def?.error?.(e))??rc(n?.error?.(e))??rc(s.customError?.(e))??rc(s.localeError?.(e))??"Invalid input";r.message=c}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Op(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function zr(...e){const[n,s,r]=e;return typeof n=="string"?{message:n,code:"custom",input:s,inst:r}:{...n}}const hv=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Jm,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fv=Z("$ZodError",hv),gv=Z("$ZodError",hv,{Parent:Error});function W5(e,n=s=>s.message){const s={},r=[];for(const c of e.issues)c.path.length>0?(s[c.path[0]]=s[c.path[0]]||[],s[c.path[0]].push(n(c))):r.push(n(c));return{formErrors:r,fieldErrors:s}}function e6(e,n=s=>s.message){const s={_errors:[]},r=c=>{for(const f of c.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(g=>r({issues:g}));else if(f.code==="invalid_key")r({issues:f.issues});else if(f.code==="invalid_element")r({issues:f.issues});else if(f.path.length===0)s._errors.push(n(f));else{let g=s,b=0;for(;b<f.path.length;){const x=f.path[b];b===f.path.length-1?(g[x]=g[x]||{_errors:[]},g[x]._errors.push(n(f))):g[x]=g[x]||{_errors:[]},g=g[x],b++}}};return r(e),s}const qp=e=>(n,s,r,c)=>{const f=r?Object.assign(r,{async:!1}):{async:!1},g=n._zod.run({value:s,issues:[]},f);if(g instanceof Promise)throw new Fs;if(g.issues.length){const b=new(c?.Err??e)(g.issues.map(x=>gi(x,f,fi())));throw mv(b,c?.callee),b}return g.value},Bp=e=>async(n,s,r,c)=>{const f=r?Object.assign(r,{async:!0}):{async:!0};let g=n._zod.run({value:s,issues:[]},f);if(g instanceof Promise&&(g=await g),g.issues.length){const b=new(c?.Err??e)(g.issues.map(x=>gi(x,f,fi())));throw mv(b,c?.callee),b}return g.value},Pc=e=>(n,s,r)=>{const c=r?{...r,async:!1}:{async:!1},f=n._zod.run({value:s,issues:[]},c);if(f instanceof Promise)throw new Fs;return f.issues.length?{success:!1,error:new(e??fv)(f.issues.map(g=>gi(g,c,fi())))}:{success:!0,data:f.value}},t6=Pc(gv),Uc=e=>async(n,s,r)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let f=n._zod.run({value:s,issues:[]},c);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new e(f.issues.map(g=>gi(g,c,fi())))}:{success:!0,data:f.value}},a6=Uc(gv),n6=e=>(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return qp(e)(n,s,c)},i6=e=>(n,s,r)=>qp(e)(n,s,r),s6=e=>async(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Bp(e)(n,s,c)},o6=e=>async(n,s,r)=>Bp(e)(n,s,r),r6=e=>(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Pc(e)(n,s,c)},l6=e=>(n,s,r)=>Pc(e)(n,s,r),c6=e=>async(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Uc(e)(n,s,c)},u6=e=>async(n,s,r)=>Uc(e)(n,s,r),d6=/^[cC][^\s-]{8,}$/,m6=/^[0-9a-z]+$/,p6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,h6=/^[0-9a-vA-V]{20}$/,f6=/^[A-Za-z0-9]{27}$/,g6=/^[a-zA-Z0-9_-]{21}$/,y6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,b6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Vg=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,v6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,x6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function k6(){return new RegExp(x6,"u")}const w6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,S6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,j6=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,A6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,N6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yv=/^[A-Za-z0-9_-]*$/,_6=/^\+[1-9]\d{6,14}$/,bv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",C6=new RegExp(`^${bv}$`);function vv(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function z6(e){return new RegExp(`^${vv(e)}$`)}function E6(e){const n=vv({precision:e.precision}),s=["Z"];e.local&&s.push(""),e.offset&&s.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${n}(?:${s.join("|")})`;return new RegExp(`^${bv}T(?:${r})$`)}const D6=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},T6=/^-?\d+$/,xv=/^-?\d+(?:\.\d+)?$/,R6=/^(?:true|false)$/i,O6=/^null$/i,q6=/^[^A-Z]*$/,B6=/^[^a-z]*$/,ba=Z("$ZodCheck",(e,n)=>{var s;e._zod??(e._zod={}),e._zod.def=n,(s=e._zod).onattach??(s.onattach=[])}),kv={number:"number",bigint:"bigint",object:"date"},wv=Z("$ZodCheckLessThan",(e,n)=>{ba.init(e,n);const s=kv[typeof n.value];e._zod.onattach.push(r=>{const c=r._zod.bag,f=(n.inclusive?c.maximum:c.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<f&&(n.inclusive?c.maximum=n.value:c.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:s,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Sv=Z("$ZodCheckGreaterThan",(e,n)=>{ba.init(e,n);const s=kv[typeof n.value];e._zod.onattach.push(r=>{const c=r._zod.bag,f=(n.inclusive?c.minimum:c.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>f&&(n.inclusive?c.minimum=n.value:c.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:s,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),M6=Z("$ZodCheckMultipleOf",(e,n)=>{ba.init(e,n),e._zod.onattach.push(s=>{var r;(r=s._zod.bag).multipleOf??(r.multipleOf=n.value)}),e._zod.check=s=>{if(typeof s.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof s.value=="bigint"?s.value%n.value===BigInt(0):L5(s.value,n.value)===0)||s.issues.push({origin:typeof s.value,code:"not_multiple_of",divisor:n.value,input:s.value,inst:e,continue:!n.abort})}}),P6=Z("$ZodCheckNumberFormat",(e,n)=>{ba.init(e,n),n.format=n.format||"float64";const s=n.format?.includes("int"),r=s?"int":"number",[c,f]=H5[n.format];e._zod.onattach.push(g=>{const b=g._zod.bag;b.format=n.format,b.minimum=c,b.maximum=f,s&&(b.pattern=T6)}),e._zod.check=g=>{const b=g.value;if(s){if(!Number.isInteger(b)){g.issues.push({expected:r,format:n.format,code:"invalid_type",continue:!1,input:b,inst:e});return}if(!Number.isSafeInteger(b)){b>0?g.issues.push({input:b,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!n.abort}):g.issues.push({input:b,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!n.abort});return}}b<c&&g.issues.push({origin:"number",input:b,code:"too_small",minimum:c,inclusive:!0,inst:e,continue:!n.abort}),b>f&&g.issues.push({origin:"number",input:b,code:"too_big",maximum:f,inclusive:!0,inst:e,continue:!n.abort})}}),U6=Z("$ZodCheckMaxLength",(e,n)=>{var s;ba.init(e,n),(s=e._zod.def).when??(s.when=r=>{const c=r.value;return!Tp(c)&&c.length!==void 0}),e._zod.onattach.push(r=>{const c=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<c&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const c=r.value;if(c.length<=n.maximum)return;const g=Op(c);r.issues.push({origin:g,code:"too_big",maximum:n.maximum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),L6=Z("$ZodCheckMinLength",(e,n)=>{var s;ba.init(e,n),(s=e._zod.def).when??(s.when=r=>{const c=r.value;return!Tp(c)&&c.length!==void 0}),e._zod.onattach.push(r=>{const c=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>c&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const c=r.value;if(c.length>=n.minimum)return;const g=Op(c);r.issues.push({origin:g,code:"too_small",minimum:n.minimum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),I6=Z("$ZodCheckLengthEquals",(e,n)=>{var s;ba.init(e,n),(s=e._zod.def).when??(s.when=r=>{const c=r.value;return!Tp(c)&&c.length!==void 0}),e._zod.onattach.push(r=>{const c=r._zod.bag;c.minimum=n.length,c.maximum=n.length,c.length=n.length}),e._zod.check=r=>{const c=r.value,f=c.length;if(f===n.length)return;const g=Op(c),b=f>n.length;r.issues.push({origin:g,...b?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),Lc=Z("$ZodCheckStringFormat",(e,n)=>{var s,r;ba.init(e,n),e._zod.onattach.push(c=>{const f=c._zod.bag;f.format=n.format,n.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(n.pattern))}),n.pattern?(s=e._zod).check??(s.check=c=>{n.pattern.lastIndex=0,!n.pattern.test(c.value)&&c.issues.push({origin:"string",code:"invalid_format",format:n.format,input:c.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),V6=Z("$ZodCheckRegex",(e,n)=>{Lc.init(e,n),e._zod.check=s=>{n.pattern.lastIndex=0,!n.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:"regex",input:s.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),$6=Z("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=q6),Lc.init(e,n)}),G6=Z("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=B6),Lc.init(e,n)}),H6=Z("$ZodCheckIncludes",(e,n)=>{ba.init(e,n);const s=eo(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${s}`:s);n.pattern=r,e._zod.onattach.push(c=>{const f=c._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(r)}),e._zod.check=c=>{c.value.includes(n.includes,n.position)||c.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:c.value,inst:e,continue:!n.abort})}}),K6=Z("$ZodCheckStartsWith",(e,n)=>{ba.init(e,n);const s=new RegExp(`^${eo(n.prefix)}.*`);n.pattern??(n.pattern=s),e._zod.onattach.push(r=>{const c=r._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),Q6=Z("$ZodCheckEndsWith",(e,n)=>{ba.init(e,n);const s=new RegExp(`.*${eo(n.suffix)}$`);n.pattern??(n.pattern=s),e._zod.onattach.push(r=>{const c=r._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}}),Z6=Z("$ZodCheckOverwrite",(e,n)=>{ba.init(e,n),e._zod.check=s=>{s.value=n.tx(s.value)}});class F6{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const r=n.split(`
15
+ `).filter(g=>g),c=Math.min(...r.map(g=>g.length-g.trimStart().length)),f=r.map(g=>g.slice(c)).map(g=>" ".repeat(this.indent*2)+g);for(const g of f)this.content.push(g)}compile(){const n=Function,s=this?.args,c=[...(this?.content??[""]).map(f=>` ${f}`)];return new n(...s,c.join(`
16
+ `))}}const Y6={major:4,minor:3,patch:6},yt=Z("$ZodType",(e,n)=>{var s;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Y6;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const c of r)for(const f of c._zod.onattach)f(e);if(r.length===0)(s=e._zod).deferred??(s.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const c=(g,b,x)=>{let k=Ks(g),S;for(const j of b){if(j._zod.def.when){if(!j._zod.def.when(g))continue}else if(k)continue;const A=g.issues.length,z=j._zod.check(g);if(z instanceof Promise&&x?.async===!1)throw new Fs;if(S||z instanceof Promise)S=(S??Promise.resolve()).then(async()=>{await z,g.issues.length!==A&&(k||(k=Ks(g,A)))});else{if(g.issues.length===A)continue;k||(k=Ks(g,A))}}return S?S.then(()=>g):g},f=(g,b,x)=>{if(Ks(g))return g.aborted=!0,g;const k=c(b,r,x);if(k instanceof Promise){if(x.async===!1)throw new Fs;return k.then(S=>e._zod.parse(S,x))}return e._zod.parse(k,x)};e._zod.run=(g,b)=>{if(b.skipChecks)return e._zod.parse(g,b);if(b.direction==="backward"){const k=e._zod.parse({value:g.value,issues:[]},{...b,skipChecks:!0});return k instanceof Promise?k.then(S=>f(S,g,b)):f(k,g,b)}const x=e._zod.parse(g,b);if(x instanceof Promise){if(b.async===!1)throw new Fs;return x.then(k=>c(k,r,b))}return c(x,r,b)}}We(e,"~standard",()=>({validate:c=>{try{const f=t6(e,c);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return a6(e,c).then(g=>g.success?{value:g.data}:{issues:g.error?.issues})}},vendor:"zod",version:1}))}),Mp=Z("$ZodString",(e,n)=>{yt.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??D6(e._zod.bag),e._zod.parse=(s,r)=>{if(n.coerce)try{s.value=String(s.value)}catch{}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:e}),s}}),bt=Z("$ZodStringFormat",(e,n)=>{Lc.init(e,n),Mp.init(e,n)}),X6=Z("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=b6),bt.init(e,n)}),J6=Z("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Vg(r))}else n.pattern??(n.pattern=Vg());bt.init(e,n)}),W6=Z("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=v6),bt.init(e,n)}),e8=Z("$ZodURL",(e,n)=>{bt.init(e,n),e._zod.check=s=>{try{const r=s.value.trim(),c=new URL(r);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(c.hostname)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:s.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(c.protocol.endsWith(":")?c.protocol.slice(0,-1):c.protocol)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:s.value,inst:e,continue:!n.abort})),n.normalize?s.value=c.href:s.value=r;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:e,continue:!n.abort})}}}),t8=Z("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=k6()),bt.init(e,n)}),a8=Z("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=g6),bt.init(e,n)}),n8=Z("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=d6),bt.init(e,n)}),i8=Z("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=m6),bt.init(e,n)}),s8=Z("$ZodULID",(e,n)=>{n.pattern??(n.pattern=p6),bt.init(e,n)}),o8=Z("$ZodXID",(e,n)=>{n.pattern??(n.pattern=h6),bt.init(e,n)}),r8=Z("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=f6),bt.init(e,n)}),l8=Z("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=E6(n)),bt.init(e,n)}),c8=Z("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=C6),bt.init(e,n)}),u8=Z("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=z6(n)),bt.init(e,n)}),d8=Z("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=y6),bt.init(e,n)}),m8=Z("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=w6),bt.init(e,n),e._zod.bag.format="ipv4"}),p8=Z("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=S6),bt.init(e,n),e._zod.bag.format="ipv6",e._zod.check=s=>{try{new URL(`http://[${s.value}]`)}catch{s.issues.push({code:"invalid_format",format:"ipv6",input:s.value,inst:e,continue:!n.abort})}}}),h8=Z("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=j6),bt.init(e,n)}),f8=Z("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=A6),bt.init(e,n),e._zod.check=s=>{const r=s.value.split("/");try{if(r.length!==2)throw new Error;const[c,f]=r;if(!f)throw new Error;const g=Number(f);if(`${g}`!==f)throw new Error;if(g<0||g>128)throw new Error;new URL(`http://[${c}]`)}catch{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:e,continue:!n.abort})}}});function jv(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const g8=Z("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=N6),bt.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=s=>{jv(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst:e,continue:!n.abort})}});function y8(e){if(!yv.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),s=n.padEnd(Math.ceil(n.length/4)*4,"=");return jv(s)}const b8=Z("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=yv),bt.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=s=>{y8(s.value)||s.issues.push({code:"invalid_format",format:"base64url",input:s.value,inst:e,continue:!n.abort})}}),v8=Z("$ZodE164",(e,n)=>{n.pattern??(n.pattern=_6),bt.init(e,n)});function x8(e,n=null){try{const s=e.split(".");if(s.length!==3)return!1;const[r]=s;if(!r)return!1;const c=JSON.parse(atob(r));return!("typ"in c&&c?.typ!=="JWT"||!c.alg||n&&(!("alg"in c)||c.alg!==n))}catch{return!1}}const k8=Z("$ZodJWT",(e,n)=>{bt.init(e,n),e._zod.check=s=>{x8(s.value,n.alg)||s.issues.push({code:"invalid_format",format:"jwt",input:s.value,inst:e,continue:!n.abort})}}),Av=Z("$ZodNumber",(e,n)=>{yt.init(e,n),e._zod.pattern=e._zod.bag.pattern??xv,e._zod.parse=(s,r)=>{if(n.coerce)try{s.value=Number(s.value)}catch{}const c=s.value;if(typeof c=="number"&&!Number.isNaN(c)&&Number.isFinite(c))return s;const f=typeof c=="number"?Number.isNaN(c)?"NaN":Number.isFinite(c)?void 0:"Infinity":void 0;return s.issues.push({expected:"number",code:"invalid_type",input:c,inst:e,...f?{received:f}:{}}),s}}),w8=Z("$ZodNumberFormat",(e,n)=>{P6.init(e,n),Av.init(e,n)}),S8=Z("$ZodBoolean",(e,n)=>{yt.init(e,n),e._zod.pattern=R6,e._zod.parse=(s,r)=>{if(n.coerce)try{s.value=!!s.value}catch{}const c=s.value;return typeof c=="boolean"||s.issues.push({expected:"boolean",code:"invalid_type",input:c,inst:e}),s}}),j8=Z("$ZodNull",(e,n)=>{yt.init(e,n),e._zod.pattern=O6,e._zod.values=new Set([null]),e._zod.parse=(s,r)=>{const c=s.value;return c===null||s.issues.push({expected:"null",code:"invalid_type",input:c,inst:e}),s}}),A8=Z("$ZodUnknown",(e,n)=>{yt.init(e,n),e._zod.parse=s=>s}),N8=Z("$ZodNever",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:e}),s)});function $g(e,n,s){e.issues.length&&n.issues.push(...Qs(s,e.issues)),n.value[s]=e.value}const _8=Z("$ZodArray",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{const c=s.value;if(!Array.isArray(c))return s.issues.push({expected:"array",code:"invalid_type",input:c,inst:e}),s;s.value=Array(c.length);const f=[];for(let g=0;g<c.length;g++){const b=c[g],x=n.element._zod.run({value:b,issues:[]},r);x instanceof Promise?f.push(x.then(k=>$g(k,s,g))):$g(x,s,g)}return f.length?Promise.all(f).then(()=>s):s}});function xc(e,n,s,r,c){if(e.issues.length){if(c&&!(s in r))return;n.issues.push(...Qs(s,e.issues))}e.value===void 0?s in r&&(n.value[s]=void 0):n.value[s]=e.value}function Nv(e){const n=Object.keys(e.shape);for(const r of n)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const s=G5(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(s)}}function _v(e,n,s,r,c,f){const g=[],b=c.keySet,x=c.catchall._zod,k=x.def.type,S=x.optout==="optional";for(const j in n){if(b.has(j))continue;if(k==="never"){g.push(j);continue}const A=x.run({value:n[j],issues:[]},r);A instanceof Promise?e.push(A.then(z=>xc(z,s,j,n,S))):xc(A,s,j,n,S)}return g.length&&s.issues.push({code:"unrecognized_keys",keys:g,input:n,inst:f}),e.length?Promise.all(e).then(()=>s):s}const C8=Z("$ZodObject",(e,n)=>{if(yt.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const b=n.shape;Object.defineProperty(n,"shape",{get:()=>{const x={...b};return Object.defineProperty(n,"shape",{value:x}),x}})}const r=Mc(()=>Nv(n));We(e._zod,"propValues",()=>{const b=n.shape,x={};for(const k in b){const S=b[k]._zod;if(S.values){x[k]??(x[k]=new Set);for(const j of S.values)x[k].add(j)}}return x});const c=Cr,f=n.catchall;let g;e._zod.parse=(b,x)=>{g??(g=r.value);const k=b.value;if(!c(k))return b.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),b;b.value={};const S=[],j=g.shape;for(const A of g.keys){const z=j[A],$=z._zod.optout==="optional",L=z._zod.run({value:k[A],issues:[]},x);L instanceof Promise?S.push(L.then(P=>xc(P,b,A,k,$))):xc(L,b,A,k,$)}return f?_v(S,k,b,x,r.value,e):S.length?Promise.all(S).then(()=>b):b}}),z8=Z("$ZodObjectJIT",(e,n)=>{C8.init(e,n);const s=e._zod.parse,r=Mc(()=>Nv(n)),c=A=>{const z=new F6(["shape","payload","ctx"]),$=r.value,L=J=>{const ee=Ig(J);return`shape[${ee}]._zod.run({ value: input[${ee}], issues: [] }, ctx)`};z.write("const input = payload.value;");const P=Object.create(null);let V=0;for(const J of $.keys)P[J]=`key_${V++}`;z.write("const newResult = {};");for(const J of $.keys){const ee=P[J],re=Ig(J),q=A[J]?._zod?.optout==="optional";z.write(`const ${ee} = ${L(J)};`),q?z.write(`
17
+ if (${ee}.issues.length) {
18
+ if (${re} in input) {
19
+ payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
20
+ ...iss,
21
+ path: iss.path ? [${re}, ...iss.path] : [${re}]
22
+ })));
23
+ }
24
+ }
25
+
26
+ if (${ee}.value === undefined) {
27
+ if (${re} in input) {
28
+ newResult[${re}] = undefined;
29
+ }
30
+ } else {
31
+ newResult[${re}] = ${ee}.value;
32
+ }
33
+
34
+ `):z.write(`
35
+ if (${ee}.issues.length) {
36
+ payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
37
+ ...iss,
38
+ path: iss.path ? [${re}, ...iss.path] : [${re}]
39
+ })));
40
+ }
41
+
42
+ if (${ee}.value === undefined) {
43
+ if (${re} in input) {
44
+ newResult[${re}] = undefined;
45
+ }
46
+ } else {
47
+ newResult[${re}] = ${ee}.value;
48
+ }
49
+
50
+ `)}z.write("payload.value = newResult;"),z.write("return payload;");const ne=z.compile();return(J,ee)=>ne(A,J,ee)};let f;const g=Cr,b=!uv.jitless,k=b&&V5.value,S=n.catchall;let j;e._zod.parse=(A,z)=>{j??(j=r.value);const $=A.value;return g($)?b&&k&&z?.async===!1&&z.jitless!==!0?(f||(f=c(n.shape)),A=f(A,z),S?_v([],$,A,z,j,e):A):s(A,z):(A.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),A)}});function Gg(e,n,s,r){for(const f of e)if(f.issues.length===0)return n.value=f.value,n;const c=e.filter(f=>!Ks(f));return c.length===1?(n.value=c[0].value,c[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:s,errors:e.map(f=>f.issues.map(g=>gi(g,r,fi())))}),n)}const Cv=Z("$ZodUnion",(e,n)=>{yt.init(e,n),We(e._zod,"optin",()=>n.options.some(c=>c._zod.optin==="optional")?"optional":void 0),We(e._zod,"optout",()=>n.options.some(c=>c._zod.optout==="optional")?"optional":void 0),We(e._zod,"values",()=>{if(n.options.every(c=>c._zod.values))return new Set(n.options.flatMap(c=>Array.from(c._zod.values)))}),We(e._zod,"pattern",()=>{if(n.options.every(c=>c._zod.pattern)){const c=n.options.map(f=>f._zod.pattern);return new RegExp(`^(${c.map(f=>Rp(f.source)).join("|")})$`)}});const s=n.options.length===1,r=n.options[0]._zod.run;e._zod.parse=(c,f)=>{if(s)return r(c,f);let g=!1;const b=[];for(const x of n.options){const k=x._zod.run({value:c.value,issues:[]},f);if(k instanceof Promise)b.push(k),g=!0;else{if(k.issues.length===0)return k;b.push(k)}}return g?Promise.all(b).then(x=>Gg(x,c,e,f)):Gg(b,c,e,f)}}),E8=Z("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,Cv.init(e,n);const s=e._zod.parse;We(e._zod,"propValues",()=>{const c={};for(const f of n.options){const g=f._zod.propValues;if(!g||Object.keys(g).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(f)}"`);for(const[b,x]of Object.entries(g)){c[b]||(c[b]=new Set);for(const k of x)c[b].add(k)}}return c});const r=Mc(()=>{const c=n.options,f=new Map;for(const g of c){const b=g._zod.propValues?.[n.discriminator];if(!b||b.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(g)}"`);for(const x of b){if(f.has(x))throw new Error(`Duplicate discriminator value "${String(x)}"`);f.set(x,g)}}return f});e._zod.parse=(c,f)=>{const g=c.value;if(!Cr(g))return c.issues.push({code:"invalid_type",expected:"object",input:g,inst:e}),c;const b=r.value.get(g?.[n.discriminator]);return b?b._zod.run(c,f):n.unionFallback?s(c,f):(c.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,input:g,path:[n.discriminator],inst:e}),c)}}),D8=Z("$ZodIntersection",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{const c=s.value,f=n.left._zod.run({value:c,issues:[]},r),g=n.right._zod.run({value:c,issues:[]},r);return f instanceof Promise||g instanceof Promise?Promise.all([f,g]).then(([x,k])=>Hg(s,x,k)):Hg(s,f,g)}});function Wm(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Ws(e)&&Ws(n)){const s=Object.keys(n),r=Object.keys(e).filter(f=>s.indexOf(f)!==-1),c={...e,...n};for(const f of r){const g=Wm(e[f],n[f]);if(!g.valid)return{valid:!1,mergeErrorPath:[f,...g.mergeErrorPath]};c[f]=g.data}return{valid:!0,data:c}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let r=0;r<e.length;r++){const c=e[r],f=n[r],g=Wm(c,f);if(!g.valid)return{valid:!1,mergeErrorPath:[r,...g.mergeErrorPath]};s.push(g.data)}return{valid:!0,data:s}}return{valid:!1,mergeErrorPath:[]}}function Hg(e,n,s){const r=new Map;let c;for(const b of n.issues)if(b.code==="unrecognized_keys"){c??(c=b);for(const x of b.keys)r.has(x)||r.set(x,{}),r.get(x).l=!0}else e.issues.push(b);for(const b of s.issues)if(b.code==="unrecognized_keys")for(const x of b.keys)r.has(x)||r.set(x,{}),r.get(x).r=!0;else e.issues.push(b);const f=[...r].filter(([,b])=>b.l&&b.r).map(([b])=>b);if(f.length&&c&&e.issues.push({...c,keys:f}),Ks(e))return e;const g=Wm(n.value,s.value);if(!g.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(g.mergeErrorPath)}`);return e.value=g.data,e}const T8=Z("$ZodRecord",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{const c=s.value;if(!Ws(c))return s.issues.push({expected:"record",code:"invalid_type",input:c,inst:e}),s;const f=[],g=n.keyType._zod.values;if(g){s.value={};const b=new Set;for(const k of g)if(typeof k=="string"||typeof k=="number"||typeof k=="symbol"){b.add(typeof k=="number"?k.toString():k);const S=n.valueType._zod.run({value:c[k],issues:[]},r);S instanceof Promise?f.push(S.then(j=>{j.issues.length&&s.issues.push(...Qs(k,j.issues)),s.value[k]=j.value})):(S.issues.length&&s.issues.push(...Qs(k,S.issues)),s.value[k]=S.value)}let x;for(const k in c)b.has(k)||(x=x??[],x.push(k));x&&x.length>0&&s.issues.push({code:"unrecognized_keys",input:c,inst:e,keys:x})}else{s.value={};for(const b of Reflect.ownKeys(c)){if(b==="__proto__")continue;let x=n.keyType._zod.run({value:b,issues:[]},r);if(x instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof b=="string"&&xv.test(b)&&x.issues.length){const j=n.keyType._zod.run({value:Number(b),issues:[]},r);if(j instanceof Promise)throw new Error("Async schemas not supported in object keys currently");j.issues.length===0&&(x=j)}if(x.issues.length){n.mode==="loose"?s.value[b]=c[b]:s.issues.push({code:"invalid_key",origin:"record",issues:x.issues.map(j=>gi(j,r,fi())),input:b,path:[b],inst:e});continue}const S=n.valueType._zod.run({value:c[b],issues:[]},r);S instanceof Promise?f.push(S.then(j=>{j.issues.length&&s.issues.push(...Qs(b,j.issues)),s.value[x.value]=j.value})):(S.issues.length&&s.issues.push(...Qs(b,S.issues)),s.value[x.value]=S.value)}}return f.length?Promise.all(f).then(()=>s):s}}),R8=Z("$ZodEnum",(e,n)=>{yt.init(e,n);const s=dv(n.entries),r=new Set(s);e._zod.values=r,e._zod.pattern=new RegExp(`^(${s.filter(c=>$5.has(typeof c)).map(c=>typeof c=="string"?eo(c):c.toString()).join("|")})$`),e._zod.parse=(c,f)=>{const g=c.value;return r.has(g)||c.issues.push({code:"invalid_value",values:s,input:g,inst:e}),c}}),O8=Z("$ZodLiteral",(e,n)=>{if(yt.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");const s=new Set(n.values);e._zod.values=s,e._zod.pattern=new RegExp(`^(${n.values.map(r=>typeof r=="string"?eo(r):r?eo(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,c)=>{const f=r.value;return s.has(f)||r.issues.push({code:"invalid_value",values:n.values,input:f,inst:e}),r}}),q8=Z("$ZodTransform",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{if(r.direction==="backward")throw new cv(e.constructor.name);const c=n.transform(s.value,s);if(r.async)return(c instanceof Promise?c:Promise.resolve(c)).then(g=>(s.value=g,s));if(c instanceof Promise)throw new Fs;return s.value=c,s}});function Kg(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const zv=Z("$ZodOptional",(e,n)=>{yt.init(e,n),e._zod.optin="optional",e._zod.optout="optional",We(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),We(e._zod,"pattern",()=>{const s=n.innerType._zod.pattern;return s?new RegExp(`^(${Rp(s.source)})?$`):void 0}),e._zod.parse=(s,r)=>{if(n.innerType._zod.optin==="optional"){const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>Kg(f,s.value)):Kg(c,s.value)}return s.value===void 0?s:n.innerType._zod.run(s,r)}}),B8=Z("$ZodExactOptional",(e,n)=>{zv.init(e,n),We(e._zod,"values",()=>n.innerType._zod.values),We(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(s,r)=>n.innerType._zod.run(s,r)}),M8=Z("$ZodNullable",(e,n)=>{yt.init(e,n),We(e._zod,"optin",()=>n.innerType._zod.optin),We(e._zod,"optout",()=>n.innerType._zod.optout),We(e._zod,"pattern",()=>{const s=n.innerType._zod.pattern;return s?new RegExp(`^(${Rp(s.source)}|null)$`):void 0}),We(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(s,r)=>s.value===null?s:n.innerType._zod.run(s,r)}),P8=Z("$ZodDefault",(e,n)=>{yt.init(e,n),e._zod.optin="optional",We(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(s,r)=>{if(r.direction==="backward")return n.innerType._zod.run(s,r);if(s.value===void 0)return s.value=n.defaultValue,s;const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>Qg(f,n)):Qg(c,n)}});function Qg(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const U8=Z("$ZodPrefault",(e,n)=>{yt.init(e,n),e._zod.optin="optional",We(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(s,r)=>(r.direction==="backward"||s.value===void 0&&(s.value=n.defaultValue),n.innerType._zod.run(s,r))}),L8=Z("$ZodNonOptional",(e,n)=>{yt.init(e,n),We(e._zod,"values",()=>{const s=n.innerType._zod.values;return s?new Set([...s].filter(r=>r!==void 0)):void 0}),e._zod.parse=(s,r)=>{const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>Zg(f,e)):Zg(c,e)}});function Zg(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const I8=Z("$ZodCatch",(e,n)=>{yt.init(e,n),We(e._zod,"optin",()=>n.innerType._zod.optin),We(e._zod,"optout",()=>n.innerType._zod.optout),We(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(s,r)=>{if(r.direction==="backward")return n.innerType._zod.run(s,r);const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>(s.value=f.value,f.issues.length&&(s.value=n.catchValue({...s,error:{issues:f.issues.map(g=>gi(g,r,fi()))},input:s.value}),s.issues=[]),s)):(s.value=c.value,c.issues.length&&(s.value=n.catchValue({...s,error:{issues:c.issues.map(f=>gi(f,r,fi()))},input:s.value}),s.issues=[]),s)}}),V8=Z("$ZodPipe",(e,n)=>{yt.init(e,n),We(e._zod,"values",()=>n.in._zod.values),We(e._zod,"optin",()=>n.in._zod.optin),We(e._zod,"optout",()=>n.out._zod.optout),We(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(s,r)=>{if(r.direction==="backward"){const f=n.out._zod.run(s,r);return f instanceof Promise?f.then(g=>lc(g,n.in,r)):lc(f,n.in,r)}const c=n.in._zod.run(s,r);return c instanceof Promise?c.then(f=>lc(f,n.out,r)):lc(c,n.out,r)}});function lc(e,n,s){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},s)}const $8=Z("$ZodReadonly",(e,n)=>{yt.init(e,n),We(e._zod,"propValues",()=>n.innerType._zod.propValues),We(e._zod,"values",()=>n.innerType._zod.values),We(e._zod,"optin",()=>n.innerType?._zod?.optin),We(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(s,r)=>{if(r.direction==="backward")return n.innerType._zod.run(s,r);const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(Fg):Fg(c)}});function Fg(e){return e.value=Object.freeze(e.value),e}const G8=Z("$ZodCustom",(e,n)=>{ba.init(e,n),yt.init(e,n),e._zod.parse=(s,r)=>s,e._zod.check=s=>{const r=s.value,c=n.fn(r);if(c instanceof Promise)return c.then(f=>Yg(f,s,r,e));Yg(c,s,r,e)}});function Yg(e,n,s,r){if(!e){const c={code:"custom",input:s,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(c.params=r._zod.def.params),n.issues.push(zr(c))}}var Xg;class H8{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...s){const r=s[0];return this._map.set(n,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const s=this._map.get(n);return s&&typeof s=="object"&&"id"in s&&this._idmap.delete(s.id),this._map.delete(n),this}get(n){const s=n._zod.parent;if(s){const r={...this.get(s)??{}};delete r.id;const c={...r,...this._map.get(n)};return Object.keys(c).length?c:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function K8(){return new H8}(Xg=globalThis).__zod_globalRegistry??(Xg.__zod_globalRegistry=K8());const wr=globalThis.__zod_globalRegistry;function Q8(e,n){return new e({type:"string",...we(n)})}function Z8(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...we(n)})}function Jg(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...we(n)})}function F8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...we(n)})}function Y8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...we(n)})}function X8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...we(n)})}function J8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...we(n)})}function W8(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...we(n)})}function eA(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...we(n)})}function tA(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...we(n)})}function aA(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...we(n)})}function nA(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...we(n)})}function iA(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...we(n)})}function sA(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...we(n)})}function oA(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...we(n)})}function rA(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...we(n)})}function lA(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...we(n)})}function cA(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...we(n)})}function uA(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...we(n)})}function dA(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...we(n)})}function mA(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...we(n)})}function pA(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...we(n)})}function hA(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...we(n)})}function fA(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...we(n)})}function gA(e,n){return new e({type:"string",format:"date",check:"string_format",...we(n)})}function yA(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...we(n)})}function bA(e,n){return new e({type:"string",format:"duration",check:"string_format",...we(n)})}function vA(e,n){return new e({type:"number",checks:[],...we(n)})}function xA(e,n){return new e({type:"number",coerce:!0,checks:[],...we(n)})}function kA(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...we(n)})}function wA(e,n){return new e({type:"boolean",...we(n)})}function SA(e,n){return new e({type:"null",...we(n)})}function jA(e){return new e({type:"unknown"})}function AA(e,n){return new e({type:"never",...we(n)})}function Wg(e,n){return new wv({check:"less_than",...we(n),value:e,inclusive:!1})}function Am(e,n){return new wv({check:"less_than",...we(n),value:e,inclusive:!0})}function ey(e,n){return new Sv({check:"greater_than",...we(n),value:e,inclusive:!1})}function Nm(e,n){return new Sv({check:"greater_than",...we(n),value:e,inclusive:!0})}function ty(e,n){return new M6({check:"multiple_of",...we(n),value:e})}function Ev(e,n){return new U6({check:"max_length",...we(n),maximum:e})}function kc(e,n){return new L6({check:"min_length",...we(n),minimum:e})}function Dv(e,n){return new I6({check:"length_equals",...we(n),length:e})}function NA(e,n){return new V6({check:"string_format",format:"regex",...we(n),pattern:e})}function _A(e){return new $6({check:"string_format",format:"lowercase",...we(e)})}function CA(e){return new G6({check:"string_format",format:"uppercase",...we(e)})}function zA(e,n){return new H6({check:"string_format",format:"includes",...we(n),includes:e})}function EA(e,n){return new K6({check:"string_format",format:"starts_with",...we(n),prefix:e})}function DA(e,n){return new Q6({check:"string_format",format:"ends_with",...we(n),suffix:e})}function co(e){return new Z6({check:"overwrite",tx:e})}function TA(e){return co(n=>n.normalize(e))}function RA(){return co(e=>e.trim())}function OA(){return co(e=>e.toLowerCase())}function qA(){return co(e=>e.toUpperCase())}function BA(){return co(e=>I5(e))}function MA(e,n,s){return new e({type:"array",element:n,...we(s)})}function PA(e,n,s){return new e({type:"custom",check:"custom",fn:n,...we(s)})}function UA(e){const n=LA(s=>(s.addIssue=r=>{if(typeof r=="string")s.issues.push(zr(r,s.value,n._zod.def));else{const c=r;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=s.value),c.inst??(c.inst=n),c.continue??(c.continue=!n._zod.def.abort),s.issues.push(zr(c))}},e(s.value,s)));return n}function LA(e,n){const s=new ba({check:"custom",...we(n)});return s._zod.check=e,s}function Tv(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??wr,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ot(e,n,s={path:[],schemaPath:[]}){var r;const c=e._zod.def,f=n.seen.get(e);if(f)return f.count++,s.schemaPath.includes(e)&&(f.cycle=s.path),f.schema;const g={schema:{},count:1,cycle:void 0,path:s.path};n.seen.set(e,g);const b=e._zod.toJSONSchema?.();if(b)g.schema=b;else{const S={...s,schemaPath:[...s.schemaPath,e],path:s.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,g.schema,S);else{const A=g.schema,z=n.processors[c.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${c.type}`);z(e,n,A,S)}const j=e._zod.parent;j&&(g.ref||(g.ref=j),Ot(j,n,S),n.seen.get(j).isParent=!0)}const x=n.metadataRegistry.get(e);return x&&Object.assign(g.schema,x),n.io==="input"&&aa(e)&&(delete g.schema.examples,delete g.schema.default),n.io==="input"&&g.schema._prefault&&((r=g.schema).default??(r.default=g.schema._prefault)),delete g.schema._prefault,n.seen.get(e).schema}function Rv(e,n){const s=e.seen.get(n);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const g of e.seen.entries()){const b=e.metadataRegistry.get(g[0])?.id;if(b){const x=r.get(b);if(x&&x!==g[0])throw new Error(`Duplicate schema id "${b}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(b,g[0])}}const c=g=>{const b=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const j=e.external.registry.get(g[0])?.id,A=e.external.uri??($=>$);if(j)return{ref:A(j)};const z=g[1].defId??g[1].schema.id??`schema${e.counter++}`;return g[1].defId=z,{defId:z,ref:`${A("__shared")}#/${b}/${z}`}}if(g[1]===s)return{ref:"#"};const k=`#/${b}/`,S=g[1].schema.id??`__schema${e.counter++}`;return{defId:S,ref:k+S}},f=g=>{if(g[1].schema.$ref)return;const b=g[1],{ref:x,defId:k}=c(g);b.def={...b.schema},k&&(b.defId=k);const S=b.schema;for(const j in S)delete S[j];S.$ref=x};if(e.cycles==="throw")for(const g of e.seen.entries()){const b=g[1];if(b.cycle)throw new Error(`Cycle detected: #/${b.cycle?.join("/")}/<root>
51
+
52
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const g of e.seen.entries()){const b=g[1];if(n===g[0]){f(g);continue}if(e.external){const k=e.external.registry.get(g[0])?.id;if(n!==g[0]&&k){f(g);continue}}if(e.metadataRegistry.get(g[0])?.id){f(g);continue}if(b.cycle){f(g);continue}if(b.count>1&&e.reused==="ref"){f(g);continue}}}function Ov(e,n){const s=e.seen.get(n);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=g=>{const b=e.seen.get(g);if(b.ref===null)return;const x=b.def??b.schema,k={...x},S=b.ref;if(b.ref=null,S){r(S);const A=e.seen.get(S),z=A.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(x.allOf=x.allOf??[],x.allOf.push(z)):Object.assign(x,z),Object.assign(x,k),g._zod.parent===S)for(const L in x)L==="$ref"||L==="allOf"||L in k||delete x[L];if(z.$ref&&A.def)for(const L in x)L==="$ref"||L==="allOf"||L in A.def&&JSON.stringify(x[L])===JSON.stringify(A.def[L])&&delete x[L]}const j=g._zod.parent;if(j&&j!==S){r(j);const A=e.seen.get(j);if(A?.schema.$ref&&(x.$ref=A.schema.$ref,A.def))for(const z in x)z==="$ref"||z==="allOf"||z in A.def&&JSON.stringify(x[z])===JSON.stringify(A.def[z])&&delete x[z]}e.override({zodSchema:g,jsonSchema:x,path:b.path??[]})};for(const g of[...e.seen.entries()].reverse())r(g[0]);const c={};if(e.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?c.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?c.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const g=e.external.registry.get(n)?.id;if(!g)throw new Error("Schema is missing an `id` property");c.$id=e.external.uri(g)}Object.assign(c,s.def??s.schema);const f=e.external?.defs??{};for(const g of e.seen.entries()){const b=g[1];b.def&&b.defId&&(f[b.defId]=b.def)}e.external||Object.keys(f).length>0&&(e.target==="draft-2020-12"?c.$defs=f:c.definitions=f);try{const g=JSON.parse(JSON.stringify(c));return Object.defineProperty(g,"~standard",{value:{...n["~standard"],jsonSchema:{input:wc(n,"input",e.processors),output:wc(n,"output",e.processors)}},enumerable:!1,writable:!1}),g}catch{throw new Error("Error converting schema to JSON.")}}function aa(e,n){const s=n??{seen:new Set};if(s.seen.has(e))return!1;s.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return aa(r.element,s);if(r.type==="set")return aa(r.valueType,s);if(r.type==="lazy")return aa(r.getter(),s);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return aa(r.innerType,s);if(r.type==="intersection")return aa(r.left,s)||aa(r.right,s);if(r.type==="record"||r.type==="map")return aa(r.keyType,s)||aa(r.valueType,s);if(r.type==="pipe")return aa(r.in,s)||aa(r.out,s);if(r.type==="object"){for(const c in r.shape)if(aa(r.shape[c],s))return!0;return!1}if(r.type==="union"){for(const c of r.options)if(aa(c,s))return!0;return!1}if(r.type==="tuple"){for(const c of r.items)if(aa(c,s))return!0;return!!(r.rest&&aa(r.rest,s))}return!1}const IA=(e,n={})=>s=>{const r=Tv({...s,processors:n});return Ot(e,r),Rv(r,e),Ov(r,e)},wc=(e,n,s={})=>r=>{const{libraryOptions:c,target:f}=r??{},g=Tv({...c??{},target:f,io:n,processors:s});return Ot(e,g),Rv(g,e),Ov(g,e)},VA={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},$A=(e,n,s,r)=>{const c=s;c.type="string";const{minimum:f,maximum:g,format:b,patterns:x,contentEncoding:k}=e._zod.bag;if(typeof f=="number"&&(c.minLength=f),typeof g=="number"&&(c.maxLength=g),b&&(c.format=VA[b]??b,c.format===""&&delete c.format,b==="time"&&delete c.format),k&&(c.contentEncoding=k),x&&x.size>0){const S=[...x];S.length===1?c.pattern=S[0].source:S.length>1&&(c.allOf=[...S.map(j=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:j.source}))])}},GA=(e,n,s,r)=>{const c=s,{minimum:f,maximum:g,format:b,multipleOf:x,exclusiveMaximum:k,exclusiveMinimum:S}=e._zod.bag;typeof b=="string"&&b.includes("int")?c.type="integer":c.type="number",typeof S=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.minimum=S,c.exclusiveMinimum=!0):c.exclusiveMinimum=S),typeof f=="number"&&(c.minimum=f,typeof S=="number"&&n.target!=="draft-04"&&(S>=f?delete c.minimum:delete c.exclusiveMinimum)),typeof k=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.maximum=k,c.exclusiveMaximum=!0):c.exclusiveMaximum=k),typeof g=="number"&&(c.maximum=g,typeof k=="number"&&n.target!=="draft-04"&&(k<=g?delete c.maximum:delete c.exclusiveMaximum)),typeof x=="number"&&(c.multipleOf=x)},HA=(e,n,s,r)=>{s.type="boolean"},KA=(e,n,s,r)=>{n.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},QA=(e,n,s,r)=>{s.not={}},ZA=(e,n,s,r)=>{},FA=(e,n,s,r)=>{const c=e._zod.def,f=dv(c.entries);f.every(g=>typeof g=="number")&&(s.type="number"),f.every(g=>typeof g=="string")&&(s.type="string"),s.enum=f},YA=(e,n,s,r)=>{const c=e._zod.def,f=[];for(const g of c.values)if(g===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof g=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(g))}else f.push(g);if(f.length!==0)if(f.length===1){const g=f[0];s.type=g===null?"null":typeof g,n.target==="draft-04"||n.target==="openapi-3.0"?s.enum=[g]:s.const=g}else f.every(g=>typeof g=="number")&&(s.type="number"),f.every(g=>typeof g=="string")&&(s.type="string"),f.every(g=>typeof g=="boolean")&&(s.type="boolean"),f.every(g=>g===null)&&(s.type="null"),s.enum=f},XA=(e,n,s,r)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},JA=(e,n,s,r)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},WA=(e,n,s,r)=>{const c=s,f=e._zod.def,{minimum:g,maximum:b}=e._zod.bag;typeof g=="number"&&(c.minItems=g),typeof b=="number"&&(c.maxItems=b),c.type="array",c.items=Ot(f.element,n,{...r,path:[...r.path,"items"]})},e7=(e,n,s,r)=>{const c=s,f=e._zod.def;c.type="object",c.properties={};const g=f.shape;for(const k in g)c.properties[k]=Ot(g[k],n,{...r,path:[...r.path,"properties",k]});const b=new Set(Object.keys(g)),x=new Set([...b].filter(k=>{const S=f.shape[k]._zod;return n.io==="input"?S.optin===void 0:S.optout===void 0}));x.size>0&&(c.required=Array.from(x)),f.catchall?._zod.def.type==="never"?c.additionalProperties=!1:f.catchall?f.catchall&&(c.additionalProperties=Ot(f.catchall,n,{...r,path:[...r.path,"additionalProperties"]})):n.io==="output"&&(c.additionalProperties=!1)},t7=(e,n,s,r)=>{const c=e._zod.def,f=c.inclusive===!1,g=c.options.map((b,x)=>Ot(b,n,{...r,path:[...r.path,f?"oneOf":"anyOf",x]}));f?s.oneOf=g:s.anyOf=g},a7=(e,n,s,r)=>{const c=e._zod.def,f=Ot(c.left,n,{...r,path:[...r.path,"allOf",0]}),g=Ot(c.right,n,{...r,path:[...r.path,"allOf",1]}),b=k=>"allOf"in k&&Object.keys(k).length===1,x=[...b(f)?f.allOf:[f],...b(g)?g.allOf:[g]];s.allOf=x},n7=(e,n,s,r)=>{const c=s,f=e._zod.def;c.type="object";const g=f.keyType,x=g._zod.bag?.patterns;if(f.mode==="loose"&&x&&x.size>0){const S=Ot(f.valueType,n,{...r,path:[...r.path,"patternProperties","*"]});c.patternProperties={};for(const j of x)c.patternProperties[j.source]=S}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(c.propertyNames=Ot(f.keyType,n,{...r,path:[...r.path,"propertyNames"]})),c.additionalProperties=Ot(f.valueType,n,{...r,path:[...r.path,"additionalProperties"]});const k=g._zod.values;if(k){const S=[...k].filter(j=>typeof j=="string"||typeof j=="number");S.length>0&&(c.required=S)}},i7=(e,n,s,r)=>{const c=e._zod.def,f=Ot(c.innerType,n,r),g=n.seen.get(e);n.target==="openapi-3.0"?(g.ref=c.innerType,s.nullable=!0):s.anyOf=[f,{type:"null"}]},s7=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType},o7=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType,s.default=JSON.parse(JSON.stringify(c.defaultValue))},r7=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType,n.io==="input"&&(s._prefault=JSON.parse(JSON.stringify(c.defaultValue)))},l7=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType;let g;try{g=c.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}s.default=g},c7=(e,n,s,r)=>{const c=e._zod.def,f=n.io==="input"?c.in._zod.def.type==="transform"?c.out:c.in:c.out;Ot(f,n,r);const g=n.seen.get(e);g.ref=f},u7=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType,s.readOnly=!0},qv=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType},d7=Z("ZodISODateTime",(e,n)=>{l8.init(e,n),kt.init(e,n)});function Bv(e){return fA(d7,e)}const m7=Z("ZodISODate",(e,n)=>{c8.init(e,n),kt.init(e,n)});function Mv(e){return gA(m7,e)}const p7=Z("ZodISOTime",(e,n)=>{u8.init(e,n),kt.init(e,n)});function h7(e){return yA(p7,e)}const f7=Z("ZodISODuration",(e,n)=>{d8.init(e,n),kt.init(e,n)});function g7(e){return bA(f7,e)}const y7=(e,n)=>{fv.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:s=>e6(e,s)},flatten:{value:s=>W5(e,s)},addIssue:{value:s=>{e.issues.push(s),e.message=JSON.stringify(e.issues,Jm,2)}},addIssues:{value:s=>{e.issues.push(...s),e.message=JSON.stringify(e.issues,Jm,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ia=Z("ZodError",y7,{Parent:Error}),b7=qp(Ia),v7=Bp(Ia),x7=Pc(Ia),k7=Uc(Ia),w7=n6(Ia),S7=i6(Ia),j7=s6(Ia),A7=o6(Ia),N7=r6(Ia),_7=l6(Ia),C7=c6(Ia),z7=u6(Ia),vt=Z("ZodType",(e,n)=>(yt.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:wc(e,"input"),output:wc(e,"output")}}),e.toJSONSchema=IA(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...s)=>e.clone(xi(n,{checks:[...n.checks??[],...s.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(s,r)=>ki(e,s,r),e.brand=()=>e,e.register=((s,r)=>(s.add(e,r),e)),e.parse=(s,r)=>b7(e,s,r,{callee:e.parse}),e.safeParse=(s,r)=>x7(e,s,r),e.parseAsync=async(s,r)=>v7(e,s,r,{callee:e.parseAsync}),e.safeParseAsync=async(s,r)=>k7(e,s,r),e.spa=e.safeParseAsync,e.encode=(s,r)=>w7(e,s,r),e.decode=(s,r)=>S7(e,s,r),e.encodeAsync=async(s,r)=>j7(e,s,r),e.decodeAsync=async(s,r)=>A7(e,s,r),e.safeEncode=(s,r)=>N7(e,s,r),e.safeDecode=(s,r)=>_7(e,s,r),e.safeEncodeAsync=async(s,r)=>C7(e,s,r),e.safeDecodeAsync=async(s,r)=>z7(e,s,r),e.refine=(s,r)=>e.check(wN(s,r)),e.superRefine=s=>e.check(SN(s)),e.overwrite=s=>e.check(co(s)),e.optional=()=>iy(e),e.exactOptional=()=>cN(e),e.nullable=()=>sy(e),e.nullish=()=>iy(sy(e)),e.nonoptional=s=>fN(e,s),e.array=()=>y(e),e.or=s=>Ge([e,s]),e.and=s=>iN(e,s),e.transform=s=>tp(e,Lv(s)),e.default=s=>mN(e,s),e.prefault=s=>hN(e,s),e.catch=s=>yN(e,s),e.pipe=s=>tp(e,s),e.readonly=()=>xN(e),e.describe=s=>{const r=e.clone();return wr.add(r,{description:s}),r},Object.defineProperty(e,"description",{get(){return wr.get(e)?.description},configurable:!0}),e.meta=(...s)=>{if(s.length===0)return wr.get(e);const r=e.clone();return wr.add(r,s[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=s=>s(e),e)),Pv=Z("_ZodString",(e,n)=>{Mp.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(r,c,f)=>$A(e,r,c);const s=e._zod.bag;e.format=s.format??null,e.minLength=s.minimum??null,e.maxLength=s.maximum??null,e.regex=(...r)=>e.check(NA(...r)),e.includes=(...r)=>e.check(zA(...r)),e.startsWith=(...r)=>e.check(EA(...r)),e.endsWith=(...r)=>e.check(DA(...r)),e.min=(...r)=>e.check(kc(...r)),e.max=(...r)=>e.check(Ev(...r)),e.length=(...r)=>e.check(Dv(...r)),e.nonempty=(...r)=>e.check(kc(1,...r)),e.lowercase=r=>e.check(_A(r)),e.uppercase=r=>e.check(CA(r)),e.trim=()=>e.check(RA()),e.normalize=(...r)=>e.check(TA(...r)),e.toLowerCase=()=>e.check(OA()),e.toUpperCase=()=>e.check(qA()),e.slugify=()=>e.check(BA())}),E7=Z("ZodString",(e,n)=>{Mp.init(e,n),Pv.init(e,n),e.email=s=>e.check(Z8(D7,s)),e.url=s=>e.check(W8(T7,s)),e.jwt=s=>e.check(hA(Q7,s)),e.emoji=s=>e.check(eA(R7,s)),e.guid=s=>e.check(Jg(ay,s)),e.uuid=s=>e.check(F8(cc,s)),e.uuidv4=s=>e.check(Y8(cc,s)),e.uuidv6=s=>e.check(X8(cc,s)),e.uuidv7=s=>e.check(J8(cc,s)),e.nanoid=s=>e.check(tA(O7,s)),e.guid=s=>e.check(Jg(ay,s)),e.cuid=s=>e.check(aA(q7,s)),e.cuid2=s=>e.check(nA(B7,s)),e.ulid=s=>e.check(iA(M7,s)),e.base64=s=>e.check(dA(G7,s)),e.base64url=s=>e.check(mA(H7,s)),e.xid=s=>e.check(sA(P7,s)),e.ksuid=s=>e.check(oA(U7,s)),e.ipv4=s=>e.check(rA(L7,s)),e.ipv6=s=>e.check(lA(I7,s)),e.cidrv4=s=>e.check(cA(V7,s)),e.cidrv6=s=>e.check(uA($7,s)),e.e164=s=>e.check(pA(K7,s)),e.datetime=s=>e.check(Bv(s)),e.date=s=>e.check(Mv(s)),e.time=s=>e.check(h7(s)),e.duration=s=>e.check(g7(s))});function l(e){return Q8(E7,e)}const kt=Z("ZodStringFormat",(e,n)=>{bt.init(e,n),Pv.init(e,n)}),D7=Z("ZodEmail",(e,n)=>{W6.init(e,n),kt.init(e,n)}),ay=Z("ZodGUID",(e,n)=>{X6.init(e,n),kt.init(e,n)}),cc=Z("ZodUUID",(e,n)=>{J6.init(e,n),kt.init(e,n)}),T7=Z("ZodURL",(e,n)=>{e8.init(e,n),kt.init(e,n)}),R7=Z("ZodEmoji",(e,n)=>{t8.init(e,n),kt.init(e,n)}),O7=Z("ZodNanoID",(e,n)=>{a8.init(e,n),kt.init(e,n)}),q7=Z("ZodCUID",(e,n)=>{n8.init(e,n),kt.init(e,n)}),B7=Z("ZodCUID2",(e,n)=>{i8.init(e,n),kt.init(e,n)}),M7=Z("ZodULID",(e,n)=>{s8.init(e,n),kt.init(e,n)}),P7=Z("ZodXID",(e,n)=>{o8.init(e,n),kt.init(e,n)}),U7=Z("ZodKSUID",(e,n)=>{r8.init(e,n),kt.init(e,n)}),L7=Z("ZodIPv4",(e,n)=>{m8.init(e,n),kt.init(e,n)}),I7=Z("ZodIPv6",(e,n)=>{p8.init(e,n),kt.init(e,n)}),V7=Z("ZodCIDRv4",(e,n)=>{h8.init(e,n),kt.init(e,n)}),$7=Z("ZodCIDRv6",(e,n)=>{f8.init(e,n),kt.init(e,n)}),G7=Z("ZodBase64",(e,n)=>{g8.init(e,n),kt.init(e,n)}),H7=Z("ZodBase64URL",(e,n)=>{b8.init(e,n),kt.init(e,n)}),K7=Z("ZodE164",(e,n)=>{v8.init(e,n),kt.init(e,n)}),Q7=Z("ZodJWT",(e,n)=>{k8.init(e,n),kt.init(e,n)}),Pp=Z("ZodNumber",(e,n)=>{Av.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(r,c,f)=>GA(e,r,c),e.gt=(r,c)=>e.check(ey(r,c)),e.gte=(r,c)=>e.check(Nm(r,c)),e.min=(r,c)=>e.check(Nm(r,c)),e.lt=(r,c)=>e.check(Wg(r,c)),e.lte=(r,c)=>e.check(Am(r,c)),e.max=(r,c)=>e.check(Am(r,c)),e.int=r=>e.check(ny(r)),e.safe=r=>e.check(ny(r)),e.positive=r=>e.check(ey(0,r)),e.nonnegative=r=>e.check(Nm(0,r)),e.negative=r=>e.check(Wg(0,r)),e.nonpositive=r=>e.check(Am(0,r)),e.multipleOf=(r,c)=>e.check(ty(r,c)),e.step=(r,c)=>e.check(ty(r,c)),e.finite=()=>e;const s=e._zod.bag;e.minValue=Math.max(s.minimum??Number.NEGATIVE_INFINITY,s.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(s.maximum??Number.POSITIVE_INFINITY,s.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(s.format??"").includes("int")||Number.isSafeInteger(s.multipleOf??.5),e.isFinite=!0,e.format=s.format??null});function m(e){return vA(Pp,e)}const Z7=Z("ZodNumberFormat",(e,n)=>{w8.init(e,n),Pp.init(e,n)});function ny(e){return kA(Z7,e)}const F7=Z("ZodBoolean",(e,n)=>{S8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>HA(e,s,r)});function D(e){return wA(F7,e)}const Y7=Z("ZodNull",(e,n)=>{j8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>KA(e,s,r)});function me(e){return SA(Y7,e)}const X7=Z("ZodUnknown",(e,n)=>{A8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>ZA()});function ya(){return jA(X7)}const J7=Z("ZodNever",(e,n)=>{N8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>QA(e,s,r)});function W7(e){return AA(J7,e)}const eN=Z("ZodArray",(e,n)=>{_8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>WA(e,s,r,c),e.element=n.element,e.min=(s,r)=>e.check(kc(s,r)),e.nonempty=s=>e.check(kc(1,s)),e.max=(s,r)=>e.check(Ev(s,r)),e.length=(s,r)=>e.check(Dv(s,r)),e.unwrap=()=>e.element});function y(e,n){return MA(eN,e,n)}const tN=Z("ZodObject",(e,n)=>{z8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>e7(e,s,r,c),We(e,"shape",()=>n.shape),e.keyof=()=>_(Object.keys(e._zod.def.shape)),e.catchall=s=>e.clone({...e._zod.def,catchall:s}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ya()}),e.loose=()=>e.clone({...e._zod.def,catchall:ya()}),e.strict=()=>e.clone({...e._zod.def,catchall:W7()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=s=>Z5(e,s),e.safeExtend=s=>F5(e,s),e.merge=s=>Y5(e,s),e.pick=s=>K5(e,s),e.omit=s=>Q5(e,s),e.partial=(...s)=>X5(Iv,e,s[0]),e.required=(...s)=>J5(Vv,e,s[0])});function h(e,n){const s={type:"object",shape:e??{},...we(n)};return new tN(s)}const Uv=Z("ZodUnion",(e,n)=>{Cv.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>t7(e,s,r,c),e.options=n.options});function Ge(e,n){return new Uv({type:"union",options:e,...we(n)})}const aN=Z("ZodDiscriminatedUnion",(e,n)=>{Uv.init(e,n),E8.init(e,n)});function rt(e,n,s){return new aN({type:"union",options:n,discriminator:e,...we(s)})}const nN=Z("ZodIntersection",(e,n)=>{D8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>a7(e,s,r,c)});function iN(e,n){return new nN({type:"intersection",left:e,right:n})}const sN=Z("ZodRecord",(e,n)=>{T8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>n7(e,s,r,c),e.keyType=n.keyType,e.valueType=n.valueType});function Me(e,n,s){return new sN({type:"record",keyType:e,valueType:n,...we(s)})}const ep=Z("ZodEnum",(e,n)=>{R8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(r,c,f)=>FA(e,r,c),e.enum=n.entries,e.options=Object.values(n.entries);const s=new Set(Object.keys(n.entries));e.extract=(r,c)=>{const f={};for(const g of r)if(s.has(g))f[g]=n.entries[g];else throw new Error(`Key ${g} not found in enum`);return new ep({...n,checks:[],...we(c),entries:f})},e.exclude=(r,c)=>{const f={...n.entries};for(const g of r)if(s.has(g))delete f[g];else throw new Error(`Key ${g} not found in enum`);return new ep({...n,checks:[],...we(c),entries:f})}});function _(e,n){const s=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ep({type:"enum",entries:s,...we(n)})}const oN=Z("ZodLiteral",(e,n)=>{O8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>YA(e,s,r),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function Q(e,n){return new oN({type:"literal",values:Array.isArray(e)?e:[e],...we(n)})}const rN=Z("ZodTransform",(e,n)=>{q8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>JA(e,s),e._zod.parse=(s,r)=>{if(r.direction==="backward")throw new cv(e.constructor.name);s.addIssue=f=>{if(typeof f=="string")s.issues.push(zr(f,s.value,n));else{const g=f;g.fatal&&(g.continue=!1),g.code??(g.code="custom"),g.input??(g.input=s.value),g.inst??(g.inst=e),s.issues.push(zr(g))}};const c=n.transform(s.value,s);return c instanceof Promise?c.then(f=>(s.value=f,s)):(s.value=c,s)}});function Lv(e){return new rN({type:"transform",transform:e})}const Iv=Z("ZodOptional",(e,n)=>{zv.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>qv(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function iy(e){return new Iv({type:"optional",innerType:e})}const lN=Z("ZodExactOptional",(e,n)=>{B8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>qv(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function cN(e){return new lN({type:"optional",innerType:e})}const uN=Z("ZodNullable",(e,n)=>{M8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>i7(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function sy(e){return new uN({type:"nullable",innerType:e})}const dN=Z("ZodDefault",(e,n)=>{P8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>o7(e,s,r,c),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mN(e,n){return new dN({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():pv(n)}})}const pN=Z("ZodPrefault",(e,n)=>{U8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>r7(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function hN(e,n){return new pN({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():pv(n)}})}const Vv=Z("ZodNonOptional",(e,n)=>{L8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>s7(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function fN(e,n){return new Vv({type:"nonoptional",innerType:e,...we(n)})}const gN=Z("ZodCatch",(e,n)=>{I8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>l7(e,s,r,c),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function yN(e,n){return new gN({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const bN=Z("ZodPipe",(e,n)=>{V8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>c7(e,s,r,c),e.in=n.in,e.out=n.out});function tp(e,n){return new bN({type:"pipe",in:e,out:n})}const vN=Z("ZodReadonly",(e,n)=>{$8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>u7(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function xN(e){return new vN({type:"readonly",innerType:e})}const kN=Z("ZodCustom",(e,n)=>{G8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>XA(e,s)});function wN(e,n={}){return PA(kN,e,n)}function SN(e){return UA(e)}function jN(e,n){return tp(Lv(e),n)}const pt={custom:"custom"};function $v(e){return xA(Pp,e)}const Gv=h({id:l(),name:l(),keyPrefix:l(),scopes:y(l()),projectId:l().nullable(),projectName:l().nullable(),readOnly:D(),createdAt:l(),lastUsedAt:l().nullable(),revokedAt:l().nullable()});h({keys:y(Gv)});h({name:l().min(1).max(100),scopes:y(l()).min(1).optional(),projectId:l().optional()});Gv.extend({key:l()});const AN=h({maxConcurrency:m().int().positive(),maxRequestsPerMinute:m().int().positive(),maxRequestsPerDay:m().int().positive()}),ut=l().min(1),Up=Me(l(),l().trim().min(1));l().min(1);const ra=h({label:l().min(1),city:l().min(1),region:l().min(1),country:l().length(2),timezone:l().optional()}),Lp=_(["citation.lost","citation.gained","run.completed","run.failed","insight.critical","insight.high","health.degraded","health.recovered"]);h({id:l(),projectId:l(),channel:Q("webhook"),url:l().url(),urlDisplay:l(),urlHost:l(),events:y(Lp),enabled:D().default(!0),source:l().optional(),webhookSecret:l().optional(),createdAt:l(),updatedAt:l()});h({channel:Q("webhook"),url:l().url(),events:y(Lp).min(1),source:l().optional()});function _m(e,n=!1){const s=new Set,r=[];for(const c of e){const f=n?c.toLowerCase():c;s.has(f)||(s.add(f),r.push(c))}return r}function oy(e){try{const n=e.includes("://"),s=new URL(n?e:`https://${e}`);if(!n&&(s.pathname!=="/"||s.search||s.hash)||s.username||s.password||s.port)return null;const r=s.hostname.trim().toLowerCase().replace(/^www\./,"");return!r||r.includes("/")||r.includes("?")||r.includes("#")?null:r}catch{return null}}const NN=l().trim().min(1).refine(e=>oy(e)!==null,{message:"Marketing hosts must be valid hostnames without credentials or ports"}).overwrite(e=>oy(e)??e),_N=l().trim().min(1),CN=l().trim().regex(/^[a-z]\w{0,39}$/i,{message:"GA4 event names must start with a letter and contain only letters, numbers, or underscores"}),Ip=h({marketingHosts:y(NN).overwrite(e=>_m(e,!0)),brandTerms:y(_N).overwrite(e=>_m(e,!0)),leadEventNames:y(CN).overwrite(e=>_m(e))});function zN(){return{marketingHosts:[],brandTerms:[],leadEventNames:["generate_lead"]}}const Cm=Object.freeze({marketingHosts:Object.freeze([]),brandTerms:Object.freeze([]),leadEventNames:Object.freeze(["generate_lead"])}),Hv=()=>zN(),ry=_(["never-synced","ready","error"]),EN=_(["landing-page","channel"]),DN=_(["30d","60d","90d"]),TN=_(["marketing","all"]),Sr=Mv(),Or=h({label:_(["earliest","middle","previous","latest"]),startDate:Sr,endDate:Sr}),zm=Or.extend({sessions:m().int().nonnegative()}),ly=Or.extend({eventCount:m().int().nonnegative()}),cy=Or.extend({clicks:m().int().nonnegative(),impressions:m().int().nonnegative()}),RN=Or.extend({propertyClicks:m().int().nonnegative(),propertyImpressions:m().int().nonnegative(),reportedQueryClicks:m().int().nonnegative(),reportedQueryImpressions:m().int().nonnegative(),brandedClicks:m().int().nonnegative(),brandedImpressions:m().int().nonnegative(),nonBrandedClicks:m().int().nonnegative(),nonBrandedImpressions:m().int().nonnegative(),unreportedClicks:m().int().nonnegative(),unreportedImpressions:m().int().nonnegative()}),ON=Or.extend({sessions:m().int().nonnegative(),engagementRate:m().min(0).max(1).nullable(),dailyTotalUsers:m().int().nonnegative().nullable(),dailyNewUsers:m().int().nonnegative().nullable(),metricsAvailable:D(),daysInPeriod:m().int().nonnegative(),daysWithEngagementRate:m().int().nonnegative(),daysWithUserSplit:m().int().nonnegative()}),qN=h({window:DN,bucketDays:Q(30),filters:h({hostScope:TN,marketingHosts:y(l()),pathPrefix:l().nullable(),brandTerms:y(l()),queryMixScope:Q("property")}),acquisition:h({status:ry,error:l().nullable(),syncedAt:l().datetime().nullable(),periods:y(zm),channels:y(h({channelGroup:l(),periods:y(zm)})),pages:y(h({hostName:l(),landingPage:l(),periods:y(zm)}))}),leads:h({status:ry,error:l().nullable(),syncedAt:l().datetime().nullable(),attributionScope:EN.nullable(),hostAndPathFiltersApplied:D(),periods:y(ly),channels:y(h({channelGroup:l(),periods:y(ly)}))}),engagement:h({status:_(["ready","unavailable"]),availableFromDate:Sr.nullable(),latestDate:Sr.nullable(),periods:y(ON)}),searchDemand:h({status:_(["ready","unavailable"]),periods:y(RN),queries:y(h({query:l(),classification:_(["branded","non-branded"]),periods:y(cy)})),pages:y(h({hostName:l(),landingPage:l(),periods:y(cy)})),latestDate:Sr.nullable()})}),BN=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,MN=/[\0-\x1F\x7F-\x9F]/,PN=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,UN=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var LN=class{src_Any=BN.source;src_Cc=MN.source;src_Z=UN.source;src_P=PN.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,n,s=4){const r=this.escapeRE(e),c=this.escapeRE(n),f=`(?:(?!${this.src_ZCc}|${r}|${c}).)`;let g=`${r}${f}{0,1000}${c}`;for(let b=2;b<=s;b++)g=`${r}(?:${f}|${g}){0,1000}${c}`;return g}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){const e="[0-9A-Fa-f]{1,4}",n=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${n}|::(?:${e}:){5}${n}|(?:${e})?::(?:${e}:){4}${n}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${n}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${n}|(?:(?:${e}:){0,3}${e})?::${e}:${n}|(?:(?:${e}:){0,4}${e})?::${n}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},Em={validate:(e,n,s)=>{const r=s.re.get_http_validator();r.lastIndex=n;const c=r.exec(e);return c?c[0].length:0},normalize:(e,n)=>n.normalize(e)},IN={"http:":Em,"https:":Em,"ftp:":Em,"//":{validate:function(e,n,s){const r=s.re.get_relative_proto_validator();r.lastIndex=n;const c=r.exec(e);return c?n>=3&&e[n-3]===":"||n>=3&&e[n-3]==="/"?0:c[0].length:0},normalize:(e,n)=>n.normalize(e)},"mailto:":{validate:function(e,n,s){const r=s.re.get_mailto_validator();r.lastIndex=n;const c=r.exec(e);return c?c[0].length:0},normalize:(e,n)=>n.normalize(e)}},VN="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",$N="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function GN(){const e=$N.split("|");return VN.split("|").forEach(n=>{const s=n.indexOf(":"),r=n.slice(0,s);for(const c of n.slice(s+1))e.push(r+c)}),e}var HN={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:GN(),urlAuth:!1,maxLength:1e4},uy=class{schema;index;lastIndex;raw;text;url;constructor(e,n,s,r){const c=e.slice(s,r);this.schema=n.toLowerCase(),this.index=s,this.lastIndex=r,this.raw=c,this.text=c,this.url=c}},KN=class{__opts__;__schemas__;re;constructor(e={}){const{rebuilder:n,...s}=e;this.__opts__={...HN,...s},this.__schemas__={...IN},this.re=n||new LN,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,n=null){if(!n)delete this.__schemas__[e];else{const s={normalize:(r,c)=>c.normalize(r),...n};this.__schemas__[e]=s}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let n,s;for(s=this.re.get_schema_search(),s.lastIndex=0;(n=s.exec(e))!==null;)if(this.testSchemaAt(e,n[2],s.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(s=this.re.get_fuzzy_link_search(),s.lastIndex=0,s.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const r=this.re.get_fuzzy_mail_host_search(),c=this.re.get_mail_name_validator();for(r.lastIndex=0;(n=r.exec(e))!==null;){const f=e.slice(Math.max(0,n.index-65),n.index);if(c.test(f))return!0}}return!1}testSchemaAt(e,n,s){return this.__schemas__[n.toLowerCase()]?this.__schemas__[n.toLowerCase()].validate(e.slice(0,s+this.__opts__.maxLength),s,this):0}match(e){const n=[],s=this.re.get_schema_search();let r,c,f,g,b,x,k=!1,S=!1,j=!1,A=0;if(!e.length)return null;for(s.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(c=this.re.get_fuzzy_mail_host_search(),c.lastIndex=0,f=this.re.get_mail_name_validator());;){const z=Math.max(A-1,0);if(c&&f&&!j&&(!b||b.index<A))for(c.lastIndex<z&&(c.lastIndex=z);;){const ne=c.exec(e);if(!ne){j=!0,b=void 0;break}const J=f.exec(e.slice(Math.max(0,ne.index-65),ne.index));if(J){if(b={schema:"mailto:",index:ne.index-J[1].length,lastIndex:ne.index+ne[0].length},b.index>=A)break;c.lastIndex<z&&(c.lastIndex=z)}}if(r&&!S&&(!g||g.index<A))for(r.lastIndex<z&&(r.lastIndex=z);;){const ne=r.exec(e);if(!ne){S=!0,g=void 0;break}if(g={schema:"",index:ne.index+ne[1].length,lastIndex:ne.index+ne[0].length},g.index>=A)break;r.lastIndex<z&&(r.lastIndex=z)}let $=b;(!$||g&&(g.index<$.index||g.index===$.index&&g.lastIndex>$.lastIndex))&&($=g);let L;if(!k)for(;;){if(!x){s.lastIndex<z&&(s.lastIndex=z);const ee=s.exec(e);if(!ee){k=!0;break}x={schema:ee[2],index:ee.index+ee[1].length,lastIndex:ee.index+ee[0].length}}if(x.index<A){x=void 0;continue}if($&&x.index>$.index)break;const ne=x;x=void 0;const J=this.testSchemaAt(e,ne.schema,ne.lastIndex);if(J){L={schema:ne.schema,index:ne.index,lastIndex:ne.lastIndex+J};break}}let P=L;if((!P||b&&(b.index<P.index||b.index===P.index&&b.lastIndex>P.lastIndex))&&(P=b),(!P||g&&(g.index<P.index||g.index===P.index&&g.lastIndex>P.lastIndex))&&(P=g),!P)break;P===b?b=void 0:P===g&&(g=void 0);const V=new uy(e,P.schema,P.index,P.lastIndex);V.schema?this.__schemas__[V.schema].normalize(V,this):this.normalize(V),n.push(V),A=P.lastIndex}return n.length?n:null}matchAtStart(e){if(!e.length)return null;const n=this.re.get_schema_at_start().exec(e);if(!n)return null;const s=this.testSchemaAt(e,n[2],n[0].length);if(!s)return null;const r=new uy(e,n[2],n.index+n[1].length,n.index+n[0].length+s);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,n=!1){return e=Array.isArray(e)?e:[e],n?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const QN=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');function ZN(e,n){return e.endsWith(n)?e.length===n.length||e[e.length-n.length-1]===".":!1}function FN(e,n){const s=e.length-n.length-2,r=e.lastIndexOf(".",s);return r===-1?e:e.slice(r+1)}function YN(e,n,s){if(s.validHosts!==null){const c=s.validHosts;for(const f of c)if(ZN(n,f))return f}let r=0;if(n.startsWith("."))for(;r<n.length&&n[r]===".";)r+=1;return e.length===n.length-r?null:FN(n,e)}function XN(e,n){return e.slice(0,-n.length-1)}const Dm=/[\t\n\r]/g;let ap=!1;function dy(e){return e>=97&&e<=122||e>=48&&e<=57||e>127||e>=65&&e<=90||e===45||e===95}function my(e,n,s){const r=s-n,c=e.charCodeAt(n)|32;if(r===2)return c===119&&(e.charCodeAt(n+1)|32)===115?1:0;if(r===3){const f=e.charCodeAt(n+1)|32,g=e.charCodeAt(n+2)|32;return c===119&&f===115&&g===115||c===102&&f===116&&g===112?1:0}else if(r===4){const f=e.charCodeAt(n+1)|32,g=e.charCodeAt(n+2)|32,b=e.charCodeAt(n+3)|32;return c===104&&f===116&&g===116&&b===112?1:c===102&&f===105&&g===108&&b===101?2:0}else if(r===5)return c===104&&(e.charCodeAt(n+1)|32)===116&&(e.charCodeAt(n+2)|32)===116&&(e.charCodeAt(n+3)|32)===112&&(e.charCodeAt(n+4)|32)===115?1:0;return 0}function jr(e,n,s=!1){let r=0,c=e.length,f=!1,g=!1;if(ap=!1,!n){if(e.startsWith("data:"))return null;for(;r<e.length&&e.charCodeAt(r)<=32;)r+=1;for(;c>r+1&&e.charCodeAt(c-1)<=32;)c-=1;if(e.charCodeAt(r)===47&&e.charCodeAt(r+1)===47)r+=2;else{const P=e.indexOf(":/",r);if(P!==-1){const V=my(e,r,P);if(V===1)for(g=!0,r=P+2;e.charCodeAt(r)===47||e.charCodeAt(r)===92;)r+=1;else if(V===2){g=!0,r=P+1;let ne=0;for(;(e.charCodeAt(r)===47||e.charCodeAt(r)===92)&&ne<2;)r+=1,ne+=1;if(ne<2)return null}else{for(let ne=r;ne<P;ne+=1){const J=e.charCodeAt(ne)|32;if(!(J>=97&&J<=122||J>=48&&J<=57||J===46||J===45||J===43)){const ee=e.charCodeAt(ne);return ee===9||ee===10||ee===13?jr(e.replace(Dm,""),n,s):null}}if(e.charCodeAt(P+2)===47)r=P+3;else return null}}else if(e.charCodeAt(r)!==91){let V=-1;for(let ne=r;ne<c;ne+=1){const J=e.charCodeAt(ne);if(J===9||J===10||J===13)return jr(e.replace(Dm,""),n,s);if(J===58){V=ne;break}if(J===47||J===92||J===63||J===35)break}if(V!==-1){let ne=!1;for(let J=V+1;J<c;J+=1){const ee=e.charCodeAt(J);if(ee===47||ee===92||ee===63||ee===35)break;if(ee===64){ne=!0;break}}if(!ne){let J=!0,ee=V+1;for(;ee<c;ee+=1){const re=e.charCodeAt(ee);if(re===47||re===92||re===63||re===35)break;if(re<48||re>57){J=!1;break}}if(ee===V+1&&(J=!1),!J){const re=my(e,r,V);if(re===0){let he=!1;for(let q=V+1;q<c;q+=1){const ae=e.charCodeAt(q);if(ae===47||ae===92||ae===63||ae===35)break;if(ae===58){he=!0;break}}if(!he)return null}else if(g=!0,r=V+1,re===2){let he=0;for(;(e.charCodeAt(r)===47||e.charCodeAt(r)===92)&&he<2;)r+=1,he+=1;if(he<2)return null}else for(;e.charCodeAt(r)===47||e.charCodeAt(r)===92;)r+=1}}}}}let x=-1,k=-1,S=-1,j=-1,A=!1,z=s,$=r-1,L=-1;if(s&&r<c){const P=e.charCodeAt(r);(!(dy(P)||P===46||P===95)||P===45)&&(z=!1)}for(let P=r;P<c;P+=1){const V=e.charCodeAt(P);if(V<64)if(V===47||V===35||V===63){c=P;break}else V===58?(j===-1&&(j=P),S=P):V===9||V===10||V===13?A=!0:s&&(V===46?((P-$>64||L===46||L===45)&&(z=!1),$=P):(V<48||V>57)&&(V!==45||L===46)&&(z=!1));else if(g&&V===92){c=P;break}else V===64?(x=P,j=-1):V===93?k=P:V>=65&&V<=90?f=!0:s&&!dy(V)&&(z=!1);s&&(L=V)}if(A)return jr(e.replace(Dm,""),n,s);if(x!==-1&&x>=r&&x<c&&(r=x+1),e.charCodeAt(r)===91)return k!==-1?e.slice(r+1,k).toLowerCase():null;if(S!==-1&&S>r&&S<c&&j===S&&(c=S),r>=c)return null;s&&z&&x===-1&&S===-1&&k===-1&&e.charCodeAt(c-1)!==46&&c-r<=255&&c-$-1<=63&&L!==45&&(ap=!0)}for(;c>r+1&&e.charCodeAt(c-1)===46;)c-=1;const b=r!==0||c!==e.length?e.slice(r,c):e;return f?b.toLowerCase():b}function JN(e){if(e.length<7||e.length>15)return!1;let n=0;for(let s=0;s<e.length;s+=1){const r=e.charCodeAt(s);if(r===46)n+=1;else if(r<48||r>57)return!1}return n===3&&e.charCodeAt(0)!==46&&e.charCodeAt(e.length-1)!==46}function WN(e){if(e.length<3)return!1;let n=e.startsWith("[")?1:0,s=e.length;if(e[s-1]==="]"&&(s-=1),s-n>39)return!1;let r=!1;for(;n<s;n+=1){const c=e.charCodeAt(n);if(c===58)r=!0;else if(!(c>=48&&c<=57||c>=97&&c<=102||c>=65&&c<=70))return!1}return r}function e_(e){return WN(e)||JN(e)}const t_=["test","localhost","invalid","example","example.com","example.net","example.org","local","onion","alt","home.arpa","ipv4only.arpa","resolver.arpa","service.arpa","6tisch.arpa","eap.arpa"];function a_(e){for(const n of t_)if(e.endsWith(n)&&(e.length===n.length||e.charCodeAt(e.length-n.length-1)===46))return!0;return!1}function py(e){return e>=97&&e<=122||e>=48&&e<=57||e>127}function hy(e){if(e.length>255||e.length===0||!py(e.charCodeAt(0))&&e.charCodeAt(0)!==46&&e.charCodeAt(0)!==95)return!1;let n=-1,s=-1;const r=e.length;for(let c=0;c<r;c+=1){const f=e.charCodeAt(c);if(f===46){if(c-n>64||s===46||s===45)return!1;n=c}else if(!(py(f)||f===45||f===95)||f===45&&s===46)return!1;s=f}return r-n-1<=63&&s!==45}function Kv({allowIcannDomains:e=!0,allowPrivateDomains:n=!1,detectIp:s=!0,detectSpecialUse:r=!1,extractHostname:c=!0,mixedInputs:f=!0,validHosts:g=null,validateHostname:b=!0}){return{allowIcannDomains:e,allowPrivateDomains:n,detectIp:s,detectSpecialUse:r,extractHostname:c,mixedInputs:f,validHosts:g,validateHostname:b}}const n_=Kv({});function i_(e){return e===void 0?n_:Kv(e)}function s_(e,n){return n.length===e.length?"":e.slice(0,-n.length-1)}function o_(){return{domain:null,domainWithoutSuffix:null,hostname:null,isIcann:null,isIp:null,isPrivate:null,isSpecialUse:null,publicSuffix:null,subdomain:null}}function Qv(e){e.domain=null,e.domainWithoutSuffix=null,e.hostname=null,e.isIcann=null,e.isIp=null,e.isPrivate=null,e.isSpecialUse=null,e.publicSuffix=null,e.subdomain=null}function Zv(e,n,s,r,c){const f=i_(r);if(typeof e!="string")return c;let g=!1;return f.extractHostname?f.mixedInputs?(g=hy(e),c.hostname=jr(e,g,f.validateHostname)):c.hostname=jr(e,!1,f.validateHostname):c.hostname=e,f.detectIp&&c.hostname!==null&&(c.isIp=e_(c.hostname),c.isIp)?c:f.validateHostname&&f.extractHostname&&c.hostname!==null&&!(g&&c.hostname===e)&&!ap&&!hy(c.hostname)?(c.hostname=null,c):(n===0||c.hostname===null||(n===5&&f.detectSpecialUse&&(c.isSpecialUse=a_(c.hostname)),s(c.hostname,f,c),n===2||c.publicSuffix===null)||(c.domain=YN(c.publicSuffix,c.hostname,f),n===3||c.domain===null)||(c.subdomain=s_(c.hostname,c.domain),n===4)||(c.domainWithoutSuffix=XN(c.domain,c.publicSuffix)),c)}function r_(e,n,s){if(!n.allowPrivateDomains&&e.length>3){const r=e.length-1,c=e.charCodeAt(r),f=e.charCodeAt(r-1),g=e.charCodeAt(r-2),b=e.charCodeAt(r-3);if(c===109&&f===111&&g===99&&b===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="com",!0;if(c===103&&f===114&&g===111&&b===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="org",!0;if(c===117&&f===100&&g===101&&b===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="edu",!0;if(c===118&&f===111&&g===103&&b===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="gov",!0;if(c===116&&f===101&&g===110&&b===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="net",!0;if(c===101&&f===100&&g===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="de",!0}return!1}const Xi=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),Sc=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),jc=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),fy=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),np="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",l_=621,c_=625,Fv=Xi.length,Yv=jc.length,Xv=new Uint32Array(Yv),gc=new Uint32Array(Yv),ip=new Int32Array(Fv).fill(-1);for(let e=0,n=0;e<Fv;e+=1)for(let s=Sc[e];s<Sc[e+1];s+=1){Xv[s]=n;const r=n+jc[s];let c=5381;for(let f=r-1;f>=n;f-=1)c=c*33^np.charCodeAt(f);gc[s]=c>>>0,jc[s]===1&&np.charCodeAt(n)===42&&(ip[e]=s),n=r}let Dn=-1,sp=0,op=0;function gy(e,n,s,r){if(jc[e]!==r)return!1;const c=Xv[e];for(let f=0;f<r;f+=1)if(np.charCodeAt(c+f)!==n.charCodeAt(s+f))return!1;return!0}function yy(e,n,s,r,c){let f=Sc[e],g=Sc[e+1];for(;f<g;){const b=f+g>>>1,x=gc[b];if(x<n)f=b+1;else if(x>n)g=b;else{for(let k=b;k>=f&&gc[k]===n;k-=1)if(gy(k,s,r,c))return k;for(let k=b+1;k<g&&gc[k]===n;k+=1)if(gy(k,s,r,c))return k;return-1}}return-1}function by(e,n,s){let r=n,c=e.length,f=5381;Dn=-1;for(let b=e.length-1;b>=0;b-=1){const x=e.charCodeAt(b);if(x===46){const k=b+1;let S=yy(r,f>>>0,e,k,c-k);if(S===-1&&(S=ip[r]),S===-1)return Dn!==-1;r=fy[S],(Xi[r]&s)!==0&&(Dn=r,sp=k,op=c),c=b,f=5381}else f=f*33^x}let g=yy(r,f>>>0,e,0,c);return g===-1&&(g=ip[r]),g!==-1&&(r=fy[g],(Xi[r]&s)!==0&&(Dn=r,sp=0,op=c)),Dn!==-1}function Jv(e,n,s){if(r_(e,n,s))return;const r=(n.allowPrivateDomains?2:0)|(n.allowIcannDomains?1:0);if(by(e,c_,r)){s.isIcann=(Xi[Dn]&1)!==0,s.isPrivate=(Xi[Dn]&2)!==0,s.publicSuffix=e.slice(op+1);return}if(by(e,l_,r)){s.isIcann=(Xi[Dn]&1)!==0,s.isPrivate=(Xi[Dn]&2)!==0,s.publicSuffix=e.slice(sp);return}s.isIcann=!1,s.isPrivate=!1;const c=e.lastIndexOf(".");s.publicSuffix=c===-1?e:e.slice(c+1)}const Ac=o_();function u_(e,n){return Qv(Ac),Zv(e,0,Jv,n,Ac).hostname}function d_(e,n){return Qv(Ac),Zv(e,5,Jv,n,Ac).domainWithoutSuffix}const m_={allowPrivateDomains:!0};new KN({fuzzyLink:!0,fuzzyEmail:!1}).tlds(QN);function Vp(e){if(e==null)return null;const n=e.trim();if(!n)return null;const s=u_(n);return s?s.replace(/^www\./i,"").toLowerCase():null}function p_(e){return e==null||e.trim()===""?"":d_(e,m_)?.toLowerCase()??""}const h_=new Intl.Segmenter("en",{granularity:"word"}),f_=/[\p{L}\p{N}]+/gu;function g_(e){return e.normalize("NFKC").toLocaleLowerCase("en")}function y_(e){const n=[];for(const s of h_.segment(e))if(s.isWordLike)for(const r of s.segment.match(f_)??[])n.push(r);return n}function b_(e){return y_(g_(e))}function Ji(e){return b_(e).join("")}const Wv=_(["cli","api","config-file"]);function v_(e){const n=new Set,s=new Set;for(const r of e){if(n.has(r.label)){s.add(r.label);continue}n.add(r.label)}return[...s]}function x_(e,n){return n?e.some(s=>s.label===n):!0}h({displayName:l().min(1),canonicalDomain:l().min(1),ownedDomains:y(l().min(1)).optional(),aliases:y(l()).optional(),country:l().length(2),language:l().min(2),tags:y(l()).optional(),labels:Me(l(),l()).optional(),providers:y(ut).optional(),providerModels:Up.optional(),locations:y(ra).optional(),defaultLocation:l().nullable().optional(),measurement:Ip.optional(),autoExtractBacklinks:D().optional(),configSource:Wv.optional()});const k_=h({id:l(),name:l(),displayName:l().optional(),canonicalDomain:l(),ownedDomains:y(l()).default([]),aliases:y(l()).default([]),country:l().length(2),language:l().min(2),tags:y(l()).default([]),labels:Me(l(),l()).default({}),providers:y(l()).default([]),providerModels:Up.default({}),locations:y(ra).default([]),defaultLocation:l().nullable().optional(),measurement:Ip.default(Hv),autoExtractBacklinks:D().default(!1),configSource:Wv.default("cli"),configRevision:m().int().positive().default(1),createdAt:l().optional(),updatedAt:l().optional()});h({id:l(),query:l(),createdAt:l()});h({id:l(),keyword:l(),createdAt:l()});h({queries:y(l().trim().min(1)).min(1)});h({keywords:y(l().trim().min(1)).min(1)});h({provider:ut,count:m().int().min(1).max(20).optional()});h({id:l(),domain:l(),createdAt:l()});h({competitors:y(l().trim().min(1)).min(1)});function rp(e){return Vp(e)??e.trim().toLowerCase().replace(/^www\./,"")}function w_(e){const n=[e.canonicalDomain,...e.ownedDomains??[]],s=new Set,r=[];for(const c of n){const f=c.trim();if(!f)continue;const g=rp(f);s.has(g)||(s.add(g),r.push(f))}return r}const S_=h({name:l().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,{message:"Name must be a lowercase slug (letters, numbers, hyphens)"}),labels:Me(l(),l()).optional().default({})}),j_=h({preset:l().optional(),cron:l().optional(),timezone:l().optional().default("UTC"),providers:y(ut).optional().default([]),enabled:D().optional()}).refine(e=>e.preset&&!e.cron||!e.preset&&e.cron,{message:'Exactly one of "preset" or "cron" must be provided'}).optional(),A_=h({channel:Q("webhook"),url:l().url(),events:y(Lp).min(1)}),N_=h({gsc:h({propertyUrl:l()}).optional(),syncSchedule:h({preset:l().optional(),cron:l().optional()}).optional()}).optional(),vy=y(l().min(1)),__=h({displayName:l().min(1),canonicalDomain:l().min(1),ownedDomains:y(l().min(1)).optional().default([]),aliases:y(l().min(1)).optional().default([]),country:l().length(2),language:l().min(2),queries:vy.optional(),keywords:vy.optional(),competitors:y(l().min(1)).optional().default([]),providers:y(ut).optional().default([]),providerModels:Up.optional().default({}),locations:y(ra).optional().default([]),defaultLocation:l().optional(),measurement:Ip.optional().default(Hv),schedule:j_,notifications:y(A_).optional().default([]),google:N_,autoExtractBacklinks:D().optional().default(!1)}).superRefine((e,n)=>{e.queries!==void 0&&e.keywords!==void 0&&n.addIssue({code:"custom",message:"Use spec.queries; spec.keywords is accepted only as a legacy alias when spec.queries is omitted",path:["keywords"]});const s=v_(e.locations);s.length>0&&n.addIssue({code:"custom",message:`Duplicate location labels are not allowed: ${s.join(", ")}`,path:["locations"]}),x_(e.locations,e.defaultLocation)||n.addIssue({code:"custom",message:`defaultLocation "${e.defaultLocation}" must match a configured location label`,path:["defaultLocation"]})});h({apiVersion:Q("canonry/v1"),kind:Q("Project"),metadata:S_,spec:__});const C_=2,z_=l().regex(/^[a-f0-9]{64}$/),Ic=l().trim().min(1).max(256),xy=_(["sensitive","insensitive"]),be=l().trim().min(1).max(128).regex(/^[a-z0-9][\w.~-]*$/i,"Must be a URL-safe stable key"),E_=l().trim().min(1).refine(e=>Vp(e)!==null,"A competitor domain must be a valid hostname"),D_=rt("kind",[h({kind:Q("exact"),url:l().min(1),pathCase:xy}).strict(),h({kind:Q("prefix"),host:l().min(1),pathPrefix:l().min(1),pathCase:xy}).strict(),h({kind:Q("host"),host:l().min(1)}).strict()]),T_=h({canonicalHost:l().min(1),ownedHosts:y(l().min(1)),names:y(l().min(1))}).strict(),R_=h({projectBrand:T_}).strict(),O_=h({stableKey:be,label:l().trim().min(1),aliases:y(l().min(1)),urlMatchers:y(D_),mentionNotApplicable:D(),discoveryIdentity:l().min(1).nullable()}).strict(),e2=h({stableKey:be,label:l().trim().min(1),domain:E_,aliases:y(l().min(1))}).strict(),q_=h({stableKey:be,label:l().trim().min(1),targetKeys:y(be),competitors:y(e2)}).strict(),B_=_(["manual","query-set","template","discovery"]),M_=h({source:B_,sourceId:l().min(1).nullable(),capturedAt:l().datetime()}).strict(),P_=h({queryId:Ic,queryText:l().min(1),provenance:M_}).strict(),U_=h({providers:y(ut).min(1),models:Me(ut,l().min(1)),location:ra.nullable()}).strict(),L_=h({stableKey:l().min(1),queryId:Ic,queryText:l().min(1),context:U_,expectedSnapshots:m().int().nonnegative()}).strict(),$p=_(["branded","non-brand"]),I_=h({targetKey:be,queryId:Ic,queryClass:$p,executionNodeKey:l().min(1)}).strict(),V_=h({executionNodeKey:l().min(1),targetKey:be,queryId:Ic}).strict(),Vc=h({schemaVersion:Q(C_),identities:R_,targets:y(O_),groups:y(q_),querySnapshots:y(P_),assignments:y(I_),executionNodes:y(L_),usageEdges:y(V_),compiledChecksum:z_}).strict().superRefine((e,n)=>{const s=new Set;for(const c of e.executionNodes)s.has(c.stableKey)&&n.addIssue({code:pt.custom,path:["executionNodes"],message:`Duplicate execution node key "${c.stableKey}"`}),s.add(c.stableKey);const r=new Set(e.targets.map(c=>c.stableKey));e.usageEdges.forEach((c,f)=>{s.has(c.executionNodeKey)||n.addIssue({code:pt.custom,path:["usageEdges",f,"executionNodeKey"],message:`Usage edge references unknown execution node "${c.executionNodeKey}"`}),r.has(c.targetKey)||n.addIssue({code:pt.custom,path:["usageEdges",f,"targetKey"],message:`Usage edge references unknown Target "${c.targetKey}"`})}),e.assignments.forEach((c,f)=>{r.has(c.targetKey)||n.addIssue({code:pt.custom,path:["assignments",f,"targetKey"],message:`Assignment references unknown Target "${c.targetKey}"`})});for(const c of e.groups)for(const f of c.targetKeys)r.has(f)||n.addIssue({code:pt.custom,path:["groups"],message:`Group "${c.stableKey}" references unknown Target "${f}"`})}),Gp=100;function to(e){return h({items:y(e),nextCursor:l().min(1).nullable(),totalEstimate:m().int().nonnegative().optional()}).strict()}const Hp=_(["no_completed_run","plan_v1","no_population","evidence_incomplete","not_applicable"]),Mt=rt("state",[h({state:Q("available"),value:m(),numerator:m().int().nonnegative().optional(),denominator:m().int().positive().optional()}).strict(),h({state:Q("unavailable"),reason:Hp}).strict()]),Kp=_(["all","group","property"]),Wa=_(["all","branded","non-brand"]),$_=_(["label-asc","label-desc","citationCoverage-asc","citationCoverage-desc","mentionCoverage-asc","mentionCoverage-desc"]),Qp=_(["not_measured","queued","running","complete","partial","failed"]),G_=_(["run_measurement","review_flags","complete_setup","republish_setup","none"]);h({scope:Kp,groupKey:be.optional(),targetKey:be.optional(),queryClass:Wa.optional(),provider:ut.optional(),location:l().trim().min(1).optional(),from:l().trim().min(1).optional(),to:l().trim().min(1).optional(),runId:l().trim().min(1).optional(),search:l().optional(),sort:$_.optional(),cursor:l().trim().min(1).optional(),limit:m().int().positive().max(Gp).optional()}).strict();const H_=h({provider:ut,mentionCoverage:Mt,citationCoverage:Mt}).strict(),K_=h({bothSignals:m().int().nonnegative(),mentionedOnly:m().int().nonnegative(),citedOnly:m().int().nonnegative(),neither:m().int().nonnegative(),notMeasured:m().int().nonnegative(),total:m().int().nonnegative()}).strict(),Q_=h({targetKey:be,label:l().min(1),mentionCoverage:Mt,citationCoverage:Mt,providers:y(H_),flags:m().int().nonnegative()}).strict(),Z_=h({kind:_(["project","competitor"]),stableKey:l().min(1),label:l().min(1),domain:l().min(1),credits:m().int().nonnegative(),share:m().min(0).max(1)}).strict(),F_=h({groupKey:be,queryClass:Q("non-brand"),denominator:m().int().positive(),entries:y(Z_)}).strict();h({mode:_(["active-v1","active-v2"]),scope:h({kind:Kp,key:l().min(1).optional(),label:l().min(1)}).strict(),queryClass:Wa,measurement:h({state:Qp,currentRunId:l().min(1).optional(),displayedRunId:l().min(1).optional(),completed:m().int().nonnegative(),expected:m().int().nonnegative(),completedAt:l().datetime().optional(),includesHistoricalData:D().optional()}).strict(),nextAction:h({kind:G_,count:m().int().nonnegative().optional()}).strict(),metrics:h({propertiesMentioned:Mt,mentionCoverage:Mt,citationCoverage:Mt,brandPresence:Mt,sov:Mt.describe("Deprecated alias of brandPresence carrying the identical value. Remove once the browser migrates.")}).strict(),properties:to(Q_),outcomes:K_,flags:h({total:m().int().nonnegative()}).strict(),namedShareOfVoice:F_.optional()}).strict();const t2=_(["sources","answers"]),Y_=t2.enum;Y_.sources;h({targetKey:be,queryClass:Wa.optional(),provider:ut.optional(),location:l().trim().min(1).optional(),runId:l().trim().min(1).optional(),shape:t2.optional(),cursor:l().trim().min(1).optional(),limit:m().int().positive().max(Gp).optional()}).strict();const a2=1,qr=m().int().positive(),Pt=l().trim().min(1).max(128).regex(/^[a-z0-9][\w.~-]*$/i,"Must be a URL-safe stable key"),Br=l().trim().min(1).max(256),ky=_(["sensitive","insensitive"]);function Nc(e){const n=Vp(e);if(!n)throw new Error(`Invalid measurement host: ${e}`);return n}function X_(e){const n=[];let s=!1;for(let r=0;r<e.length;r++){const c=e[r];c==="/"?(s||n.push(c),s=!0):(n.push(c),s=!1)}for(;n.length>1&&n.at(-1)==="/";)n.pop();return n.length?n.join(""):"/"}function wy(e){try{return decodeURI(e).normalize("NFC").toLowerCase()}catch{return e.normalize("NFC").toLowerCase()}}function n2(e){const n=new URL(`https://measurement.invalid${e}`).pathname;return X_(n.replace(/%[0-9a-f]{2}/gi,s=>s.toUpperCase()))}function lp(e){const n=e.trim();if(!n||n.includes("?")||n.includes("#")||n.includes("://")||n.includes("\\"))throw new Error(`Invalid measurement path prefix: ${e}`);const s=n.startsWith("/")?n:`/${n}`;for(const r of s.split("/")){let c;try{c=decodeURIComponent(r)}catch{throw new Error(`Invalid measurement path prefix: ${e}`)}if(c==="."||c==="..")throw new Error(`Invalid measurement path prefix: ${e}`)}try{return n2(s)}catch{throw new Error(`Invalid measurement path prefix: ${e}`)}}function J_(e){const n=/^[a-z][a-z0-9+.-]*:\/\/[^/?#]*/i.exec(e);if(!n)throw new Error(`Invalid exact measurement URL: ${e}`);return e.slice(n[0].length).split(/[?#]/,1)[0]||"/"}function Sy(e){const n=e.trim();if(!n||n.includes("\\"))throw new Error(`Invalid exact measurement URL: ${e}`);let s;try{s=new URL(n)}catch{throw new Error(`Invalid exact measurement URL: ${e}`)}if(s.protocol!=="http:"&&s.protocol!=="https:"||s.username||s.password||s.port||s.search||s.hash)throw new Error(`Invalid exact measurement URL: ${e}`);const r=Nc(s.hostname),c=lp(J_(n));return`https://${r}${c}`}const Er=l().trim().min(1).refine(e=>{try{return Nc(e),!0}catch{return!1}},"A target URL matcher host must be a valid hostname").overwrite(e=>Nc(e)),W_=l().trim().min(1).refine(e=>{try{return lp(e),!0}catch{return!1}},"A target URL matcher pathPrefix must be an absolute path without query or fragment").overwrite(e=>lp(e)),eC=l().trim().min(1).refine(e=>{try{return Sy(e),!0}catch{return!1}},"A target exact matcher must be an HTTP(S) URL without credentials, port, query, or fragment").overwrite(e=>Sy(e)),tC=rt("kind",[h({kind:Q("exact"),url:eC,pathCase:ky}).strict(),h({kind:Q("prefix"),host:Er,pathPrefix:W_,pathCase:ky}).strict(),h({kind:Q("host"),host:Er}).strict()]),i2=l().trim().min(1).max(256).refine(e=>Ji(e).length>0,"A target alias must contain mention text"),aC=Me(l().trim().min(1),l()),nC=Er,s2=h({stableKey:Pt,label:l().trim().min(1),urls:y(tC).min(1),aliases:y(i2),metadata:aC.optional()}).strict(),Zp=h({stableKey:Pt,label:l().trim().min(1),targetKeys:y(Pt).min(1),competitors:y(nC).optional()}).strict(),o2=h({targetKey:Pt,queryIds:y(Br).min(1),context:ra.nullable().optional()}).strict();function iC(e,n){return e<n?-1:e>n?1:0}function sC(e,n=s=>s){const s=new Set,r=new Set;for(const c of e){const f=n(c);s.has(f)&&r.add(f),s.add(f)}return r}function Tm(e,n,s,r,c){for(const f of sC(n,c))e.addIssue({code:"custom",path:[...s],message:`Duplicate ${r}: ${f}`})}function jy(e){if(e.kind==="host")return{host:e.host,pathname:null};if(e.kind==="prefix")return{host:e.host,pathname:e.pathPrefix};const n=new URL(e.url);return{host:Nc(n.hostname),pathname:n2(n.pathname||"/")}}function oC(e,n,s,r){return e===s||(n==="insensitive"||r==="insensitive")&&wy(e)===wy(s)}function rC(e,n){if(e.kind!==n.kind)return!1;const s=jy(e),r=jy(n);return s.host!==r.host?!1:e.kind==="host"||n.kind==="host"?!0:oC(s.pathname,e.pathCase,r.pathname,n.pathCase)}function lC(e){const n=new Set;return[...e].sort(iC).filter(s=>{const r=Ji(s);return n.has(r)?!1:(n.add(r),!0)})}const r2=h({schemaVersion:Q(a2),targets:y(s2).min(1),groups:y(Zp).optional(),targetQuerySelections:y(o2).optional()}).strict().superRefine((e,n)=>{const s=e.groups??[],r=e.targetQuerySelections??[];Tm(n,e.targets.map(x=>x.stableKey),["targets"],"target stable key"),Tm(n,s.map(x=>x.stableKey),["groups"],"group stable key");const c=new Set(e.targets.map(x=>x.stableKey)),f=new Set(s.map(x=>x.stableKey));for(const x of c)f.has(x)&&n.addIssue({code:"custom",path:["groups"],message:`Target and group stable keys must be globally unique: ${x}`});const g=new Map,b=[];e.targets.forEach((x,k)=>{for(const S of lC(x.aliases)){const j=Ji(S),A=g.get(j);A&&A!==x.stableKey&&n.addIssue({code:"custom",path:["targets",k,"aliases"],message:`Target alias is already assigned to target ${A}: ${S}`}),g.set(j,x.stableKey)}x.urls.forEach((S,j)=>{b.find(z=>z.targetKey!==x.stableKey&&rC(z.matcher,S))&&n.addIssue({code:"custom",path:["targets",k,"urls",j],message:"Target URL matcher has an equal-specificity cross-target tie"}),b.push({targetKey:x.stableKey,matcher:S})})}),s.forEach((x,k)=>{Tm(n,x.targetKeys,["groups",k,"targetKeys"],"group target key");for(let S=0;S<x.targetKeys.length;S++){const j=x.targetKeys[S];c.has(j)||n.addIssue({code:"custom",path:["groups",k,"targetKeys",S],message:`Unknown target: ${j}`})}}),r.forEach((x,k)=>{c.has(x.targetKey)||n.addIssue({code:"custom",path:["targetQuerySelections",k,"targetKey"],message:`Unknown target: ${x.targetKey}`})})});r2.transform(e=>({...e,groups:e.groups??[],targetQuerySelections:e.targetQuerySelections??[]}));h({expectedActiveRevision:qr.nullable(),plan:r2}).strict();const cC=h({queryId:Br,queryText:l().min(1)}).strict(),Fp=h({stableKey:l().min(1),queryText:l().min(1),context:ra.nullable(),expectedSnapshots:m().int().nonnegative()}).strict(),uC=h({kind:Q("baseline"),executionNodeKey:l().min(1),queryId:Br}).strict(),dC=h({kind:Q("target"),executionNodeKey:l().min(1),queryId:Br,targetKey:Pt}).strict(),cp=rt("kind",[uC,dC]),l2=h({code:Q("target-alias-prefix-overlap"),message:l().min(1),targetKeys:y(Pt).min(1),aliases:y(l().min(1)).min(1)}).strict(),c2=s2.extend({mentionNotApplicable:D()}),u2=h({schemaVersion:Q(a2),defaultContext:ra.nullable(),effectiveOwnedHosts:y(Er),projectCanonicalHost:Er,projectBrandNames:y(i2),targets:y(c2),groups:y(Zp),targetQuerySelections:y(o2),querySnapshots:y(cC),executionNodes:y(Fp),usageEdges:y(cp),warnings:y(l2)}).strict(),mC=u2,d2=rt("schemaVersion",[u2,Vc]),Yp=l().regex(/^[a-f0-9]{64}$/),Xp=l().datetime(),m2=h({schemaVersion:Q(1),providers:y(l().min(1)).min(1),models:Me(l().min(1),l().min(1)),checksum:l().regex(/^[a-f0-9]{64}$/)}).strict(),pC=h({groups:y(Pt).optional(),targets:y(Pt).optional()}).strict(),hC=h({groups:y(Pt),targets:y(Pt),queries:y(l().min(1)),resolvedTargets:y(Pt)}).strict().superRefine((e,n)=>{e.resolvedTargets.length===0&&e.queries.length===0&&n.addIssue({code:"custom",path:["resolvedTargets"],message:"A recorded scope must name something it measured"})});h({stableKey:Pt,retiredAt:l().datetime()});h({active:h({revision:qr,checksum:Yp,createdAt:Xp,plan:d2}).nullable()});h({versions:y(h({revision:qr,checksum:Yp,createdAt:Xp,active:D()}))});h({version:h({revision:qr,checksum:Yp,createdAt:Xp,active:D(),plan:d2})});const yc=h({targets:m().int(),groups:m().int(),queries:m().int(),executionNodes:m().int(),usageEdges:m().int(),baselineEdges:m().int(),targetEdges:m().int(),dedupSavings:m().int()}).strict(),fC=_(["invalid-authoring","duplicate-identity","unknown-target","unknown-query","invalid-project-context","unowned-target-url","owned-competitor","target-query-context-conflict","target-url-ownership-tie","target-alias-cross-target-collision","target-alias-project-brand-collision","target-alias-prefix-overlap"]),p2=h({id:fC,severity:_(["fail","warn"]),message:l().min(1),path:y(Ge([l(),m().int()]))}).strict(),gC=h({baseline:m().int().nonnegative(),target:m().int().nonnegative()}).strict(),h2=h({ok:Q(!0),checks:y(p2),executionNodes:y(Fp),dedupSaved:m().int().nonnegative(),usageEdges:gC,estCostUsd:me(),plan:mC,warnings:y(l2),counts:yc}).strict(),f2=h({ok:Q(!1),checks:y(p2).min(1),executionNodes:y(Fp).length(0),dedupSaved:Q(0),usageEdges:h({baseline:Q(0),target:Q(0)}).strict(),estCostUsd:me()}).strict();rt("ok",[h2,f2]);const uc=h({targetKey:Pt,context:ra.nullable(),queryIds:y(Br)}).strict();function Ay(e){return h({added:y(e),removed:y(e),changed:y(h({stableKey:Pt,before:e,after:e}).strict()),unchanged:y(Pt)}).strict()}const yC=h2.extend({diff:h({activeRevision:qr.nullable(),targets:Ay(c2),groups:Ay(Zp),querySelections:h({added:y(uc),removed:y(uc),changed:y(h({targetKey:Pt,before:uc,after:uc}).strict()),unchanged:y(h({targetKey:Pt,context:ra.nullable()}).strict())}).strict(),execution:h({addedNodeKeys:y(l().min(1)),removedNodeKeys:y(l().min(1)),addedUsageEdges:y(cp),removedUsageEdges:y(cp),counts:h({before:yc.nullable(),after:yc,delta:yc.nullable()}).strict()}).strict()}).strict()}).strict(),bC=f2.extend({diff:me()}).strict();rt("ok",[yC,bC]);const $c=_(["complete","partial","failed","unsupported"]);$c.enum;_(["proposed","alias","shared","unmatched","excluded"]);_(["primary-match","exact-slug-match","excluded-slug","shared-path","unmatched-path","alias-without-primary","unsupported-slug"]);const vC=_(["invalid-url","unowned-host","duplicate-url","url-cap-reached"]),xC=h({kind:_(["exact","prefix","suffix","contains"]),value:l().trim().min(1)}).strict(),Ny=h({host:l().trim().min(1),pathTemplate:l().trim().min(1)}).strict(),Jp=h({primary:Ny,aliases:y(Ny).optional(),excludedSlugSuffixes:y(l().trim().min(1)).optional(),excludedSlugPatterns:y(xC).optional()}).strict();h({sitemapUrl:l().url().refine(e=>{try{const n=new URL(e).protocol;return n==="http:"||n==="https:"}catch{return!1}},"Sitemap URL must use http or https"),rule:Jp,maxUrls:m().int().positive().max(1e4).optional()}).strict();const Rm=h({url:l(),canonicalUrl:l().nullable(),classification:_(["shared","unmatched","excluded"]),reason:_(["excluded-slug","shared-path","unmatched-path","alias-without-primary","unsupported-slug"])}).strict().superRefine((e,n)=>{({shared:["shared-path"],unmatched:["unmatched-path","alias-without-primary","unsupported-slug"],excluded:["excluded-slug"]})[e.classification].includes(e.reason)||n.addIssue({code:"custom",message:"Discovery classification and reason do not match"})}),kC=h({classification:Q("proposed"),reason:Q("primary-match"),stableKey:Pt,slug:l().trim().min(1),label:l().trim().min(1),primaryUrl:l().url(),aliasCoverageUrls:y(l().url())}).strict(),wC=h({classification:Q("alias"),reason:Q("exact-slug-match"),slug:l().trim().min(1),url:l().url(),targetStableKey:Pt}).strict(),SC=h({kind:vC,url:l(),canonicalUrl:l().nullable(),duplicateOf:l().optional()}).strict();h({proposed:y(kC),aliases:y(wC),shared:y(Rm),unmatched:y(Rm),excluded:y(Rm),diagnostics:y(SC)}).strict().superRefine((e,n)=>{const s=[["shared",["shared"]],["unmatched",["unmatched"]],["excluded",["excluded"]]];for(const[r,c]of s)for(const f of e[r])c.includes(f.classification)||n.addIssue({code:"custom",path:[r],message:"Discovery item is in the wrong result bucket"})});const Wp=_(["assigned","sibling","ownedUnmapped","external","ambiguous","invalid"]),g2=_(["baseline","target"]),y2=_(["incomplete","evidence-incomplete","no-population","aliasless","no-competitors","no-project-aliases"]),Wi=Ge([h({numerator:m().int().nonnegative(),denominator:m().int().positive(),rate:m().min(0).max(1)}).strict(),h({numerator:me(),denominator:me(),rate:me(),reason:y2}).strict()]).superRefine((e,n)=>{e.numerator!==null&&e.numerator>e.denominator&&n.addIssue({code:"custom",path:["numerator"],message:"Rate numerator cannot exceed denominator"})}),jC=l().trim().min(1).overwrite(e=>e.toLocaleLowerCase("en")),AC=h({executionId:l().trim().min(1),queryText:l().trim().min(1),provider:jC,context:ra.nullable(),requestedModel:l().trim().min(1).optional()}).strict();h({schemaVersion:Q(1),expectedSlots:y(AC)}).strict().superRefine((e,n)=>{const s=new Set;for(const[r,c]of e.expectedSlots.entries()){const f=[c.executionId,c.provider].join("\0");s.has(f)&&n.addIssue({code:"custom",path:["expectedSlots",r],message:"Duplicate expected provider slot"}),s.add(f)}});const Gc=h({executed:m().int().nonnegative(),expected:m().int().nonnegative(),complete:D(),sourceComplete:D(),sourceCompleteObservations:m().int().nonnegative(),answerComplete:D()}).strict(),_y=Ge([h({domain:l().trim().min(1),own:D(),presentIn:m().int().nonnegative(),of:m().int().positive()}).strict(),h({domain:l().trim().min(1),own:D(),presentIn:me(),of:me(),reason:y2}).strict()]),NC=h({domains:y(_y),providers:y(h({provider:ut,domains:y(_y)}).strict())}).strict(),_C=h({provider:ut,completeness:Gc,answerCoverage:Wi}).strict(),CC=h({id:l().trim().min(1),label:l().trim().min(1),targetIds:y(l().trim().min(1)),completeness:Gc,answerCoverage:Wi,targetCoverage:Wi,sov:NC,providers:y(_C)}).strict(),zC=h({provider:ut,completeness:Gc,citationCoverage:Wi,mentionCoverage:Wi}).strict(),EC=h({id:l().trim().min(1),label:l().trim().min(1),completeness:Gc,citationCoverage:Wi,mentionCoverage:Wi,providers:y(zC)}).strict(),b2=h({observationId:l().trim().min(1),expectedSlotId:l().trim().min(1),executionId:l().trim().min(1),usageEdgeId:l().trim().min(1),usageEdgeType:g2,provider:ut,queryText:l().trim().min(1),location:l().nullable(),sourceUrl:l(),bridged:D(),historical:D(),evidenceComplete:D(),classification:Wp,normalizedUrl:l().nullable(),matchedTargetIds:y(l().trim().min(1)),matchedUrlIds:y(l().trim().min(1))}).strict(),DC=h({sourceUrl:l(),normalizedUrl:l().nullable(),classification:Wp,matchedTargetIds:y(l().trim().min(1)),matchedUrlIds:y(l().trim().min(1))}).strict(),TC=h({observationId:l().trim().min(1),expectedSlotId:l().trim().min(1),executionId:l().trim().min(1),usageEdgeId:l().trim().min(1),usageEdgeType:g2,provider:ut,queryText:l().trim().min(1),location:l().nullable(),queryClass:Ge([_(["branded","non-brand"]),me()]),mentioned:D().nullable(),cited:D().nullable(),sources:y(DC),sourceCount:m().int().nonnegative(),sourcesTruncated:D(),bridged:D(),historical:D(),evidenceComplete:D()}).strict(),RC=h({bridgedObservationIds:y(l()),historicalObservationIds:y(l()),evidenceIncompleteObservationIds:y(l()),ambiguousObservationIds:y(l()),unmatchedObservationIds:y(l())}).strict(),OC=h({id:l().trim().min(1),status:_(["completed","partial"]),createdAt:l().datetime(),startedAt:l().datetime().nullable(),finishedAt:l().datetime().nullable()}).strict();h({revision:m().int().positive(),run:OC.nullable(),groups:y(CC),targets:y(EC),evidence:y(b2),diagnostics:RC}).strict();h({property:h({targetKey:be,label:l().min(1)}).strict(),queryClass:Wa,measurement:h({state:Qp,displayedRunId:l().min(1).optional(),completedAt:l().datetime().optional()}).strict(),evidence:to(b2).optional(),answers:to(TC).optional()}).strict().refine(e=>e.evidence===void 0!=(e.answers===void 0),{message:"Exactly one of evidence or answers is present, naming the shape that was served."});const e0=_(["used","not-used","unknown","not-applicable"]);e0.enum;const t0=_(["native-auto-v1","search-required-v1"]);t0.enum;const Xa=l().trim().min(1),Mr=l().trim().min(1),qC=l().trim().min(1),Fe=m().int().nonnegative(),Pr=h({state:Qp,displayedRunId:Xa.nullable(),planRevision:m().int().positive(),completedAt:l().datetime().nullable()}).strict(),Ur=h({targetKey:be,label:Mr}).strict(),Ca={runId:Xa.optional(),provider:ut.optional(),location:qC.optional()},Dr=l().trim().min(1);h({runId:Ca.runId,groupKey:be.optional(),queryClass:Wa.default("non-brand"),provider:Ca.provider,location:Ca.location,limit:m().int().positive().max(50).optional()}).strict();const BC=Ur.extend({mentionCoverage:Mt,citationCoverage:Mt,flags:Fe,recommendedInstead:y(h({name:Dr,occurrences:Fe}).strict()).max(5),recommendedInsteadTotal:Fe,recommendedInsteadTruncated:D()}).strict().superRefine((e,n)=>{e.recommendedInstead.length>e.recommendedInsteadTotal&&n.addIssue({code:pt.custom,path:["recommendedInsteadTotal"],message:"Total cannot be smaller than the returned replacements"}),e.recommendedInsteadTruncated!==e.recommendedInstead.length<e.recommendedInsteadTotal&&n.addIssue({code:pt.custom,path:["recommendedInsteadTruncated"],message:"Truncation must agree with the replacement total"})}),MC=h({groupKey:be,label:Mr,propertyCount:Fe,propertiesMentioned:Mt,mentionCoverage:Mt,citationCoverage:Mt}).strict();h({portfolio:h({groupKey:be.nullable(),label:Mr.nullable(),measurementScope:Ge([_(["full","spot_check"]),me()])}).strict(),measurement:Pr,queryClass:Wa,metrics:h({propertiesMentioned:Mt,mentionCoverage:Mt,citationCoverage:Mt}).strict(),weakestProperties:y(BC),markets:y(MC),totalProperties:Fe,truncated:D()}).strict();h({targetKey:be,runId:Ca.runId,provider:Ca.provider,location:Ca.location,queryClass:Wa.optional(),offset:m().int().nonnegative().optional(),limit:m().int().positive().max(100).optional()}).strict();_(["answered","missing"]);const up={queryId:Xa,text:Mr,class:$p,provider:ut,requestedModel:l().nullable(),servedModel:l().nullable(),location:l().nullable()},PC=rt("status",[h({resultId:Xa,...up,status:Q("answered"),mentioned:D().nullable(),cited:D().nullable(),recommendedInstead:y(Dr),answerExcerpt:l().nullable()}).strict(),h({resultId:me(),...up,status:Q("missing"),mentioned:me(),cited:me(),recommendedInstead:y(Dr).length(0),answerExcerpt:me()}).strict()]);h({property:Ur,measurement:Pr,queryClass:Wa,questions:y(PC),total:Fe,truncated:D()}).strict();h({targetKey:be,resultId:Xa}).strict();const UC=h({url:Xa,classification:Wp,matchedTargetKeys:y(be),assigned:D(),historical:D(),evidenceComplete:D()}).strict().superRefine((e,n)=>{e.assigned!==(e.classification==="assigned")&&n.addIssue({code:pt.custom,path:["assigned"],message:"Assigned must agree with the source attribution classification"})});h({property:Ur,measurement:Pr,question:h({resultId:Xa,...up,status:Q("answered")}).strict(),mentioned:D().nullable(),cited:D().nullable(),recommendedInstead:y(Dr),answer:l().nullable(),sources:y(UC),captureStatus:Ge([$c,me()]),retrievalStatus:Ge([e0,me()]),retrievalContract:Ge([t0,me()])}).strict();h({targetKey:be,runId:Ca.runId,provider:Ca.provider,location:Ca.location,queryClass:Wa.optional(),limit:m().int().positive().max(50).optional()}).strict();const LC=rt("state",[h({state:Q("available"),answeredResults:Fe,targetMissResults:Fe,recommendationOccurrences:Fe}).strict(),h({state:Q("unavailable"),reason:Hp}).strict()]),IC=h({name:Dr,occurrences:Fe,providers:y(ut).max(5),providerTotal:Fe,providersTruncated:D(),questions:y(Mr).max(5),questionTotal:Fe,questionsTruncated:D()}).strict().superRefine((e,n)=>{(e.providers.length>e.providerTotal||e.questions.length>e.questionTotal)&&n.addIssue({code:pt.custom,message:"Evidence totals cannot be smaller than returned evidence"}),e.providersTruncated!==e.providers.length<e.providerTotal&&n.addIssue({code:pt.custom,path:["providersTruncated"],message:"Provider truncation must agree with its total"}),e.questionsTruncated!==e.questions.length<e.questionTotal&&n.addIssue({code:pt.custom,path:["questionsTruncated"],message:"Question truncation must agree with its total"})});h({property:Ur,measurement:Pr,queryClass:Wa,basis:LC,competitors:y(IC),total:Fe,truncated:D()}).strict();h({runId:Ca.runId,scope:Kp.default("all"),groupKey:be.optional(),targetKey:be.optional(),queryClass:Wa.default("all"),provider:Ca.provider,location:Ca.location,limit:m().int().positive().max(50).optional()}).strict().superRefine((e,n)=>{e.scope==="all"&&(e.groupKey!==void 0||e.targetKey!==void 0)&&n.addIssue({code:pt.custom,path:["scope"],message:"All scope cannot name a group or Property"}),e.scope==="group"&&(e.groupKey===void 0||e.targetKey!==void 0)&&n.addIssue({code:pt.custom,path:["groupKey"],message:"Group scope requires groupKey only"}),e.scope==="property"&&(e.targetKey===void 0||e.groupKey!==void 0)&&n.addIssue({code:pt.custom,path:["targetKey"],message:"Property scope requires targetKey only"})});const v2=_(["no_previous_run","execution_identity_changed","incomplete","not_comparable"]),x2=Pr.extend({executionIdentity:Xa.nullable(),measurementScope:Ge([_(["full","spot_check"]),me()])}).strict(),fr=rt("state",[h({state:Q("available"),previous:Mt,current:Mt,delta:m()}).strict().superRefine((e,n)=>{if(e.previous.state!=="available"||e.current.state!=="available"){n.addIssue({code:pt.custom,message:"Available deltas require two available metrics"});return}Math.abs(e.delta-(e.current.value-e.previous.value))>Number.EPSILON&&n.addIssue({code:pt.custom,path:["delta"],message:"Delta must equal current minus previous"})}),h({state:Q("unavailable"),reason:Hp}).strict()]);h({current:x2,comparison:rt("state",[h({state:Q("available"),previous:h({displayedRunId:Xa,planRevision:m().int().positive(),completedAt:l().datetime().nullable(),executionIdentity:Xa,measurementScope:_(["full","spot_check"])}).strict(),metrics:h({propertiesMentioned:fr,mentionCoverage:fr,citationCoverage:fr}).strict(),changedProperties:y(Ur.extend({mentionCoverage:fr,citationCoverage:fr,flags:Fe}).strict()),totalProperties:Fe,truncated:D()}).strict(),h({state:Q("unavailable"),reason:v2}).strict()])}).strict().superRefine((e,n)=>{if(e.comparison.state==="available"){if(e.current.displayedRunId===null||e.current.executionIdentity===null){n.addIssue({code:pt.custom,path:["current"],message:"A comparison requires an identified current run"});return}e.comparison.previous.planRevision!==e.current.planRevision&&n.addIssue({code:pt.custom,path:["comparison","previous","planRevision"],message:"Comparisons cannot cross plan revisions"}),e.comparison.previous.executionIdentity!==e.current.executionIdentity&&n.addIssue({code:pt.custom,path:["comparison","previous","executionIdentity"],message:"Comparisons cannot cross execution identities"})}});h({runId:Ca.runId}).strict();const VC=_(["no_completed_run","incomplete","evidence_incomplete","no_population","not_applicable"]),Hc=h({state:Q("unavailable"),reason:VC}).strict(),$C=h({state:Q("available"),expected:Fe,executed:Fe,answered:Fe,missing:Fe}).strict(),GC=rt("state",[$C,Hc]).superRefine((e,n)=>{e.state==="available"&&(e.executed+e.missing!==e.expected&&n.addIssue({code:pt.custom,message:"Expected must equal executed plus missing"}),e.answered>e.executed&&n.addIssue({code:pt.custom,path:["answered"],message:"Answered cannot exceed executed"}))}),HC=h({state:Q("available"),complete:Fe,partial:Fe,failed:Fe,unsupported:Fe,notRecorded:Fe}).strict(),KC=rt("state",[HC,Hc]),QC=h({state:Q("available"),used:Fe,notUsed:Fe,unknown:Fe,notApplicable:Fe,notRecorded:Fe}).strict(),ZC=rt("state",[QC,Hc]),FC=h({state:Q("available"),expectedQuestions:Fe,answeredQuestions:Fe,missingQuestions:Fe}).strict(),YC=rt("state",[FC,Hc]).superRefine((e,n)=>{e.state==="available"&&e.answeredQuestions+e.missingQuestions!==e.expectedQuestions&&n.addIssue({code:pt.custom,message:"Expected questions must equal answered plus missing"})});h({run:x2,completeness:GC,capture:KC,retrieval:ZC,population:YC,comparison:rt("state",[h({state:Q("available"),previousDisplayedRunId:Xa}).strict(),h({state:Q("unavailable"),reason:v2}).strict()])}).strict().superRefine((e,n)=>{if(e.completeness.state!=="available")return;const s=e.completeness.executed;e.capture.state==="available"&&e.capture.complete+e.capture.partial+e.capture.failed+e.capture.unsupported+e.capture.notRecorded!==s&&n.addIssue({code:pt.custom,path:["capture"],message:"Capture counts must total executed snapshots"}),e.retrieval.state==="available"&&e.retrieval.used+e.retrieval.notUsed+e.retrieval.unknown+e.retrieval.notApplicable+e.retrieval.notRecorded!==s&&n.addIssue({code:pt.custom,path:["retrieval"],message:"Retrieval counts must total executed snapshots"})});const ao=l().regex(/^[a-f0-9]{64}$/),Ja=l().trim().min(1).max(256),wi=m().int().positive(),Cy=h({kind:_(["user","api-key","system"]),id:l().trim().min(1),label:l().trim().min(1)}).strict(),XC=_(["proposed","included","excluded"]),JC=_(["manual","sitemap"]),a0=h({stableKey:be,label:l().trim().min(1),status:XC,aliases:y(l().trim().min(1)),urlMatchers:y(l().trim().min(1)),source:JC,discoveredUrl:l().trim().min(1).optional(),discoveryIdentity:l().trim().min(1).optional()}).strict(),Kc=h({providers:y(ut).optional(),models:Me(ut,l().trim().min(1)).optional(),locations:y(l().trim().min(1)).optional()}).strict(),WC=_(["branded","non-brand","unclassified"]),e9=_(["rule","operator"]),k2=h({targetKey:be,queryId:Ja,contextOverride:Kc.optional(),queryClass:WC,classificationSource:e9}).strict(),n0=e2,w2=h({stableKey:be,label:l().trim().min(1),targetKeys:y(be),competitors:y(n0)}).strict(),t9=h({sitemapUrl:l().url(),rule:Jp,exclusions:y(l().trim().min(1)),inputChecksum:ao,reviewedAt:l().datetime().optional()}).strict(),a9=h({providers:y(ut),models:Me(ut,l().trim().min(1)).optional(),locations:y(l().trim().min(1))}).strict(),n9=h({defaultContext:a9,targets:y(a0),assignments:y(k2),groups:y(w2),discovery:t9.optional()}).strict(),i9=h({id:l().trim().min(1),projectId:l().trim().min(1),schemaVersion:Q(2),baseActiveVersionId:l().trim().min(1).nullable(),baseActiveRevision:wi.nullable(),authoring:n9,createdBy:Cy,updatedBy:Cy,createdAt:l().datetime(),updatedAt:l().datetime()}).strict(),i0=h({targets:m().int().nonnegative(),includedTargets:m().int().nonnegative(),assignments:m().int().nonnegative(),unclassifiedAssignments:m().int().nonnegative(),groups:m().int().nonnegative(),competitors:m().int().nonnegative()}).strict(),s9=h({code:l().trim().min(1),message:l().trim().min(1),path:y(Ge([l(),m().int()]))}).strict(),o9=h({etag:l().trim().min(1),changed:D(),warnings:y(s9),counts:i0}).strict();h({draft:i9.nullable(),etag:l().trim().min(1).nullable()}).strict();to(a0);to(k2);to(w2);h({search:l().optional(),cursor:l().trim().min(1).optional(),limit:m().int().positive().max(Gp).optional()}).strict();h({expectedActiveRevision:wi.nullable()}).strict();h({sitemapUrl:l().url(),rule:Jp,exclusions:y(l().trim().min(1)).optional()}).strict();const r9=h({discoveryIdentity:l().trim().min(1),action:_(["create","rebind","ignore"]),targetKey:be.optional(),label:l().trim().min(1).optional()}).strict();h({selections:y(r9),selectedTargetKeys:y(be).optional()}).strict().superRefine((e,n)=>{e.selections.length===0&&e.selectedTargetKeys===void 0&&n.addIssue({code:"custom",message:"A proposal or reviewed Property selection is required."}),e.selectedTargetKeys&&new Set(e.selectedTargetKeys).size!==e.selectedTargetKeys.length&&n.addIssue({code:"custom",path:["selectedTargetKeys"],message:"Property keys must be unique."})});h({target:a0}).strict();h({targetKey:be,label:l().trim().min(1)}).strict();h({targetKey:be,mergedKeys:y(be).min(1)}).strict();h({targetKey:be,cleanup:Q("assignments-and-group-memberships").optional()}).strict();h({targetKey:be,discoveryIdentity:l().trim().min(1),discoveredUrl:l().url()}).strict();const S2={targetKeys:y(be).optional(),groupKeys:y(be).optional()};function j2(e,n){(e.targetKeys?.length??0)===0&&(e.groupKeys?.length??0)===0&&n.addIssue({code:"custom",message:"At least one Target or group selector is required."})}h(S2).strict().superRefine(j2);const l9=h({...S2,queryIds:y(Ja).min(1),contextOverride:Kc.optional()}).strict().superRefine(j2);Ge([h({targetKey:be,queryIds:y(Ja).min(1),contextOverride:Kc.optional()}).strict(),l9]);const c9=h({groupKey:be,label:l().trim().min(1),memberCount:m().int().positive()}).strict();h({draftEtag:l().trim().min(1),groups:y(c9),resolvedTargetKeys:y(be),overlapCount:m().int().nonnegative(),assignments:h({requested:m().int().nonnegative(),added:m().int().nonnegative(),alreadyPresent:m().int().nonnegative()}).strict(),execution:h({addedNodes:m().int().nonnegative(),addedProviderCalls:m().int().nonnegative(),fullRunNodes:m().int().nonnegative(),fullRunProviderCalls:m().int().nonnegative()}).strict()}).strict();h({pairs:y(h({targetKey:be,queryId:Ja}).strict()).min(1),contextOverride:Kc.optional()}).strict();Ge([h({targetKey:be,queryId:Ja}).strict(),h({targetKeys:y(be).min(1),queryId:Ja}).strict()]);h({targetKey:be}).strict();h({queryClass:$p,assignments:y(h({targetKey:be,queryId:Ja}).strict()).min(1)}).strict();h({group:h({stableKey:be,label:l().trim().min(1),targetKeys:y(be),competitors:y(n0).optional()}).strict()}).strict();h({groupKey:be}).strict();h({groupKey:be,competitor:n0}).strict();h({groupKey:be,competitorKey:be}).strict();const _c=h({ruleId:l().trim().min(1),severity:_(["fail","warn"]),message:l().trim().min(1),path:y(Ge([l(),m().int()]))}).strict();rt("ok",[h({ok:Q(!0),compiledChecksum:ao,checks:y(_c),counts:i0,plan:Vc}).strict(),h({ok:Q(!1),compiledChecksum:me(),checks:y(_c).min(1)}).strict()]);const zy=h({added:y(l().trim().min(1)),removed:y(l().trim().min(1)),changed:y(l().trim().min(1)),unchanged:y(l().trim().min(1))}).strict(),u9=h({activeRevision:wi.nullable(),targets:zy,groups:zy,assignments:h({added:m().int().nonnegative(),removed:m().int().nonnegative(),reclassified:m().int().nonnegative()}).strict(),execution:h({addedNodeKeys:y(l().trim().min(1)),removedNodeKeys:y(l().trim().min(1))}).strict()}).strict();rt("ok",[h({ok:Q(!0),compiledChecksum:ao,checks:y(_c),counts:i0,plan:Vc,diff:u9}).strict(),h({ok:Q(!1),compiledChecksum:me(),checks:y(_c).min(1),diff:me()}).strict()]);h({expectedActiveRevision:wi.nullable(),expectedCompiledChecksum:ao}).strict();h({published:D(),active:h({revision:wi,checksum:ao,compiledChecksum:ao,createdAt:l().datetime(),plan:Vc}).strict()}).strict();h({discarded:D()}).strict();h({expectedActiveRevision:wi}).strict();h({deactivated:D(),previousRevision:wi.nullable()}).strict();const d9=_(["republish_required","setup_in_progress","awaiting_first_run","operational","simple"]),m9=_(["republish_setup","continue_setup","run_measurement","view_measurement","start_setup"]),p9=_(["simple","draft-only","active-v1","active-v2"]);h({state:d9,nextAction:m9,mode:p9,activeRevision:wi.nullable(),activeSchemaVersion:Ge([Q(1),Q(2)]).nullable(),draft:h({etag:l().trim().min(1),updatedAt:l().datetime()}).strict().nullable()}).strict();const A2=h({id:l().trim().min(1),projectId:l().trim().min(1),name:l().trim().min(1),description:l().nullable(),itemCount:m().int().nonnegative(),createdAt:l().datetime(),updatedAt:l().datetime()}).strict(),h9=h({queryId:Ja,queryText:l().min(1),position:m().int().nonnegative()}).strict();A2.extend({items:y(h9)}).strict();h({querySets:y(A2)}).strict();h({name:l().trim().min(1),description:l().nullable().optional(),queryIds:y(Ja)}).strict();const f9=h({id:l().trim().min(1),projectId:l().trim().min(1),name:l().trim().min(1),description:l().nullable(),pattern:l().trim().min(1),variables:y(l().trim().min(1)),createdAt:l().datetime(),updatedAt:l().datetime()}).strict();h({templates:y(f9)}).strict();h({name:l().trim().min(1),description:l().nullable().optional(),pattern:l().trim().min(1),variables:y(l().trim().min(1))}).strict();h({bindings:y(Me(l().trim().min(1),l().trim().min(1))).min(1),querySetId:l().trim().min(1).optional()}).strict();h({created:y(h({queryId:Ja,queryText:l().min(1)}).strict()),existing:y(h({queryId:Ja,queryText:l().min(1)}).strict())}).strict();const Cc=l().regex(/^[a-f0-9]{64}$/),Qc=m().int().positive();h({stableKey:be,kind:_(["target","group"]),retiredAt:l().datetime().nullable()}).strict();h({csv:l()}).strict();_(["matched","ambiguous","unmatched","invalid","duplicate","proposed","excluded"]);const g9=_(["column-count","missing-property","missing-group","invalid-url","property-not-found","property-label-ambiguous","url-not-exact-match","target-proposed","target-excluded","group-label-ambiguous","group-key-conflict"]),dp=h({dataRow:Qc,property:l(),group:l(),url:l().nullable(),normalizedProperty:l(),normalizedGroupLabel:l()}).strict(),gr=dp.extend({reason:g9}),y9=h({source:_(["draft-target","draft-group","persisted-segment","retired-segment","proposed-group"]),stableKey:be,kind:_(["target","group"]).optional(),retiredAt:l().datetime().nullable().optional(),normalizedGroupLabel:l().optional()}).strict(),b9=h({proposedGroupKey:be,evidence:y(y9).min(1)}).strict(),v9=rt("status",[dp.extend({status:Q("matched"),targetKey:be,groupKey:be}).strict(),gr.extend({status:Q("ambiguous"),candidateTargetKeys:y(be).min(1).optional(),candidateGroupKeys:y(be).min(1).optional()}).strict(),gr.extend({status:Q("unmatched")}).strict(),gr.extend({status:Q("invalid"),groupKeyConflict:b9.optional()}).strict(),dp.extend({status:Q("duplicate"),duplicateOfRow:Qc,targetKey:be,groupKey:be}).strict(),gr.extend({status:Q("proposed"),targetKey:be}).strict(),gr.extend({status:Q("excluded"),targetKey:be}).strict()]),x9=h({normalizedGroupLabel:l(),groupKey:be,label:l().trim().min(1),action:_(["create","extend"]),matchedRows:y(Qc),targetKeys:y(be),addedTargetKeys:y(be),unchangedTargetKeys:y(be)}).strict(),k9=h({dataRows:m().int().nonnegative(),matchedRows:m().int().nonnegative(),ambiguousRows:m().int().nonnegative(),unmatchedRows:m().int().nonnegative(),invalidRows:m().int().nonnegative(),duplicateRows:m().int().nonnegative(),proposedRows:m().int().nonnegative(),excludedRows:m().int().nonnegative(),needsAttention:m().int().nonnegative(),groupsReady:m().int().nonnegative(),groupsToCreate:m().int().nonnegative(),groupsToExtend:m().int().nonnegative(),membershipsReady:m().int().nonnegative(),addedMemberships:m().int().nonnegative(),unchangedMemberships:m().int().nonnegative()}).strict();h({draftEtag:l().trim().min(1),sourceChecksum:Cc,previewChecksum:Cc,rows:y(v9),groupChanges:y(x9),counts:k9}).strict();h({csv:l(),sourceChecksum:Cc,previewChecksum:Cc,acceptedRows:y(Qc).min(1)}).strict().superRefine((e,n)=>{new Set(e.acceptedRows).size!==e.acceptedRows.length&&n.addIssue({code:"custom",path:["acceptedRows"],message:"Accepted CSV data rows must be unique."})});o9.extend({appliedRows:m().int().nonnegative(),addedMemberships:m().int().nonnegative(),unchangedMemberships:m().int().nonnegative()}).strict();const N2=_(["introduced","repointed","retired"]),w9=N2.enum;h({modelId:l().trim().min(1),date:l().regex(/^\d{4}-\d{2}-\d{2}$/,"date must be YYYY-MM-DD"),kind:N2,confirmed:D(),sourceUrl:l().url(),note:l().min(1)});const S9=[{modelId:"chatgpt-4o-latest",date:"2024-08-15",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Released dynamic model for chatgpt-4o-latest—this model will point to the latest GPT-4o model used by ChatGPT." First moving id in the lineage.'},{modelId:"chatgpt-4o-latest",date:"2026-02-17",kind:"retired",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/deprecations.md",note:'Shutdown 2026-02-17, replacement gpt-5.1-chat-latest. Announced under the heading "2025-11-18: chatgpt-4o-latest snapshot".'},{modelId:"gpt-5.1-chat-latest",date:"2025-11-13",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:"Introduced inside the GPT-5.1 launch entry, not as a standalone entry."},{modelId:"gpt-5.2-chat-latest",date:"2025-12-11",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:"Introduced inside the GPT-5.2 launch entry."},{modelId:"gpt-5.2-chat-latest",date:"2026-02-10",kind:"repointed",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Updated the gpt-5.2-chat-latest slug to point to the latest model currently used in ChatGPT." Target model NOT named.'},{modelId:"gpt-5.3-chat-latest",date:"2026-03-03",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Released gpt-5.3-chat-latest to the Chat Completions and Responses API. This model points to the GPT-5.3 Instant snapshot currently used in ChatGPT."'},{modelId:"gpt-5.3-chat-latest",date:"2026-03-16",kind:"repointed",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Updated the gpt-5.3-chat-latest slug to point to the latest model currently used in ChatGPT." Target model NOT named.'},{modelId:"chat-latest",date:"2026-05-05",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Released chat-latest snapshot which points to the latest Instant model currently used in ChatGPT... The underlying model snapshot will be regularly updated."'},{modelId:"chat-latest",date:"2026-05-28",kind:"repointed",confirmed:!1,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'UNCONFIRMED. The entry reads "Released chat-latest snapshot..." — the verb is "Released", the same boilerplate as the 2026-05-05 entry, not "Updated" as used on 2026-06-24. Only "the latest improvements" vs "our latest improvements" differs. Either a real change logged with copy-pasted text, or a duplicated entry; the record does not disambiguate.'},{modelId:"chat-latest",date:"2026-06-24",kind:"repointed",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim (re-read at source 2026-07-20): "Updated the chat-latest snapshot, which points to the latest Instant model currently used in ChatGPT." The verb is "Updated", unlike the "Released" boilerplate of 2026-05-05 and 2026-05-28, which is the wording the changelog reserves for a real change. Target model NOT named. The only unambiguous chat-latest change on record.'}];w9.repointed;new Set(S9.map(e=>e.modelId.toLowerCase()));const j9=_(["not-exposed","no-known-change","known-change"]);j9.enum;const A9=h({modelId:l().trim().min(1),date:l().regex(/^\d{4}-\d{2}-\d{2}$/),confirmed:D(),sourceUrl:l().url()}),N9=h({status:_(["no-known-change","known-change"]),modelIds:y(l().trim().min(1)).min(1),changes:y(A9),changeCount:m().int().nonnegative(),unverifiedChangeCount:m().int().nonnegative(),firstChangeDate:l().optional(),lastChangeDate:l().optional(),knownGoodAsOf:l(),checkedThroughPeriodEnd:D()}),_9={openai:"ChatGPT",chatgpt:"ChatGPT",anthropic:"Claude",claude:"Claude",google:"Gemini",gemini:"Gemini",perplexity:"Perplexity"};function C9(e){const n=e.trim().toLowerCase();return _9[n]??e.charAt(0).toUpperCase()+e.slice(1)}function Om(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?Math.floor(e):0}function yr(e){return typeof e=="string"&&e.trim().length>=10?e.trim().slice(0,10):null}function qm(e){return[...new Set(e.filter(n=>n!==null))].sort()}function z9(e,n){const s=C9(e),r=Array.isArray(n.changes)?n.changes:[],c=Om(n.changeCount)||r.length,f=Math.min(c,Om(n.unverifiedChangeCount)||Om(n.unconfirmedChangeCount)||r.filter(S=>S.confirmed===!1).length),g=yr(n.knownGoodAsOf),b=n.checkedThroughPeriodEnd!==!1,x={engine:s,confirmedCount:c-f,unconfirmedCount:f,knownGoodAsOf:g,checkedThroughPeriodEnd:b};if(r.length>0)return{...x,confirmedDates:qm(r.filter(S=>S.confirmed!==!1).map(S=>yr(S.date))),unconfirmedDates:qm(r.filter(S=>S.confirmed===!1).map(S=>yr(S.date)))};const k=qm([yr(n.firstChangeDate),yr(n.lastChangeDate)]);return c===0?{...x,confirmedDates:[],unconfirmedDates:[]}:f===0?{...x,confirmedDates:k,unconfirmedDates:[]}:x.confirmedCount===0?{...x,confirmedDates:[],unconfirmedDates:k}:{...x,confirmedDates:[],unconfirmedDates:[]}}function E9(e){return e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`}function Ey(e,n){return e.length===0?null:e.length===1&&n<=1?`on ${e[0]}`:`more than once between ${e[0]} and ${e[e.length-1]}`}function D9(e){const n=Ey(e.confirmedDates,e.confirmedCount),s=Ey(e.unconfirmedDates,e.unconfirmedCount),r=`The model behind ${e.engine}`;if(e.confirmedCount>0&&e.unconfirmedCount===0)return n?`${r} was updated ${n}, inside this period.`:`${r} was updated inside this period.`;if(e.confirmedCount===0)return s?`${r} may have been updated ${s}, inside this period, though that is not confirmed.`:`${r} may have been updated inside this period, though that is not confirmed.`;if(n&&s)return`${r} was updated ${n}, inside this period, and may also have been updated ${s}.`;const c=e.unconfirmedCount>1?"more times":"once more";return`${r} was updated inside this period, and may have been updated ${c}, though that is not confirmed.`}function Dy(e){const n=e.filter(r=>!r.checkedThroughPeriodEnd&&r.knownGoodAsOf!==null);return n.length===0?null:`We last checked for model updates on ${n.map(r=>r.knownGoodAsOf).sort()[0]}, and this period runs past that date, so there may be later updates we do not know about.`}function ZU(e){const n=Object.entries(e??{}).map(([x,k])=>z9(x,k??{})).sort((x,k)=>x.engine.localeCompare(k.engine));if(n.length===0)return null;const s=n.filter(x=>x.confirmedCount+x.unconfirmedCount>0);if(s.length===0){const x=[...new Set(n.map(z=>z.engine))],k=x.length>1,S=Dy(n),j=[...new Set(n.map(z=>z.knownGoodAsOf).filter(z=>z!==null))].sort(),A=S??(j.length>0?`We last checked for model updates on ${j[0]}.`:null);return{kind:"no-known-change",text:`No model updates are on record for ${E9(x)} in this period.`,detail:`${k?"These engines":"This engine"} can be moved onto a different underlying model without the data ever showing a different model name, so we check each period against a record of known updates. Nothing is listed inside this one.${A?` ${A}`:""}`}}const r=s.reduce((x,k)=>x+k.confirmedCount+k.unconfirmedCount,0),c=s.some(x=>x.confirmedCount>0),f=r===1?"this update":"these updates",g=c?`Some of the movement in these numbers may come from ${f} rather than from a real change in how AI answers about you, so compare periods carefully.`:`If so, some of the movement in these numbers may come from ${f} rather than from a real change in how AI answers about you, so compare periods carefully.`,b=Dy(n);return{kind:"change",text:`${s.map(D9).join(" ")} ${g}${b?` ${b}`:""}`}}const T9=_(["gsc","ga4","gbp"]);h({id:l(),domain:l(),connectionType:T9,propertyId:l().nullable().optional(),sitemapUrl:l().nullable().optional(),scopes:y(l()).default([]),createdAt:l(),updatedAt:l()});const R9=h({date:l(),query:l(),page:l(),country:l().nullable().optional(),device:l().nullable().optional(),clicks:m(),impressions:m(),ctr:m(),position:m()});_(["clicks","impressions","date"]);h({rows:y(R9),totalMatching:m(),truncated:D(),latestAvailableDate:l().nullable()});const O9=h({date:l(),clicks:m(),impressions:m(),ctr:m()});h({totals:h({clicks:m(),impressions:m(),ctr:m(),days:m()}),daily:y(O9)});const q9=h({page:l(),clicks:m(),impressions:m(),ctr:m()});h({rows:y(q9),totals:h({clicks:m(),impressions:m(),ctr:m(),days:m(),coveredFrom:l().nullable(),coveredThrough:l().nullable(),complete:D()}).nullable(),totalsSource:Q("property-daily"),rankedFrom:l().nullable(),rankedThrough:l().nullable()});const mp=h({id:l(),url:l(),indexingState:l().nullable().optional(),verdict:l().nullable().optional(),coverageState:l().nullable().optional(),pageFetchState:l().nullable().optional(),robotsTxtState:l().nullable().optional(),crawlTime:l().nullable().optional(),lastCrawlResult:l().nullable().optional(),isMobileFriendly:D().nullable().optional(),richResults:y(l()).default([]),referringUrls:y(l()).default([]),inspectedAt:l()});_(["stable","reindexed","deindexed","still-missing","new"]);const B9=h({url:l(),previousState:l().nullable(),currentState:l().nullable(),transitionDate:l()}),M9=h({reason:l(),count:m(),urls:y(mp).default([])});h({summary:h({total:m(),indexed:m(),notIndexed:m(),deindexed:m(),percentage:m()}),lastInspectedAt:l().nullable(),lastSyncedAt:l().nullable(),indexed:y(mp).default([]),notIndexed:y(mp).default([]),deindexed:y(B9).default([]),reasonGroups:y(M9).default([])});h({url:l(),type:_(["URL_UPDATED","URL_DELETED"]),notifiedAt:l()});const P9=h({url:l(),type:_(["URL_UPDATED","URL_DELETED"]),notifiedAt:l(),status:_(["success","error"]),error:l().optional()});h({summary:h({total:m().int().nonnegative(),succeeded:m().int().nonnegative(),failed:m().int().nonnegative()}),results:y(P9).default([])});h({date:l(),indexed:m(),notIndexed:m(),unknownPages:m().default(0),verifiedByInspection:m().default(0),derivedFromImpressions:m().default(0),reasonBreakdown:Me(l(),m()).default({})});const U9=h({siteUrl:l(),permissionLevel:l()});h({sites:y(U9).default([])});const L9=h({type:l(),submitted:l(),indexed:l().optional().describe("Deprecated compatibility field.")}),_2=h({path:l(),parentSitemapUrl:l().optional(),lastSubmitted:l().optional(),isPending:D().optional(),isSitemapsIndex:D().optional(),type:l().optional(),lastDownloaded:l().optional(),warnings:l().optional(),errors:l().optional(),contents:y(L9).optional()});h({sitemaps:y(_2).default([]),summary:h({total:m().int().nonnegative(),indexes:m().int().nonnegative(),files:m().int().nonnegative()}),preferredSubmissionUrls:y(l()).default([])});h({sitemapUrls:y(l().url().refine(e=>{const n=new URL(e).protocol;return n==="http:"||n==="https:"},{message:"Sitemap URL must use http or https."})).min(1).max(50)});const I9=h({sitemapUrl:l(),status:_(["accepted","error"]),submittedAt:l().optional(),error:l().optional()});h({summary:h({total:m().int().nonnegative(),accepted:m().int().nonnegative(),failed:m().int().nonnegative()}),results:y(I9)});h({sitemaps:y(_2),primarySitemapUrl:l(),run:h({id:l(),projectId:l(),kind:l(),status:l(),trigger:l(),createdAt:l()}).nullable()});const V9=h({name:l(),accountName:l().nullable(),type:l().nullable(),role:l().nullable()});h({accounts:y(V9),total:m().int().nonnegative()});const $9=h({id:l(),projectId:l(),accountName:l(),locationName:l(),displayName:l(),primaryCategoryDisplayName:l().nullable(),storefrontAddress:l().nullable(),websiteUri:l().nullable(),placeId:l().nullable(),mapsUri:l().nullable(),additionalCategories:y(l()),description:l().nullable(),serviceArea:Me(l(),ya()).nullable(),regularHours:Me(l(),ya()).nullable(),primaryPhone:l().nullable(),openStatus:l().nullable(),openingDate:l().nullable(),selected:D(),syncedAt:l().nullable(),createdAt:l(),updatedAt:l()});h({locations:y($9),totalDiscovered:m().int().nonnegative(),totalSelected:m().int().nonnegative()});h({selectAllNew:D().default(!0),accountName:l().optional(),switchAccount:D().default(!1)});h({selected:D()});h({locationNames:y(l()).optional(),daysOfMetrics:m().int().positive().max(540).optional(),monthsOfKeywords:m().int().positive().max(18).optional()});h({runId:l(),status:l()});const G9=h({locationName:l(),date:l(),metric:l(),value:m().int()});h({metrics:y(G9),total:m().int().nonnegative()});const H9=h({locationName:l(),periodStart:l(),periodEnd:l(),keyword:l(),valueCount:m().int().nullable(),valueThreshold:m().int().nullable()});h({keywords:y(H9),total:m().int().nonnegative(),thresholdedPct:m().int().min(0).max(100)});const K9=h({locationName:l(),placeActionLinkName:l(),placeActionType:l(),uri:l().nullable(),isPreferred:D(),providerType:l().nullable()});h({placeActions:y(K9),total:m().int().nonnegative()});const Q9=h({locationName:l(),populatedGroupCount:m().int().nonnegative(),syncedAt:l(),attributes:Me(l(),ya())});h({lodging:y(Q9),total:m().int().nonnegative()});const Z9=h({name:l(),valueType:l(),values:y(Ge([D(),l()])),unsetValues:y(l()),uris:y(l())}),F9=h({locationName:l(),attributeCount:m().int().nonnegative(),syncedAt:l(),attributes:y(Z9)});h({attributes:y(F9),total:m().int().nonnegative()});const Y9=h({locationName:l(),placeId:l(),tier:l(),amenities:y(l()),syncedAt:l(),place:Me(l(),ya())});h({places:y(Y9),total:m().int().nonnegative()});h({scope:h({locationName:l().nullable(),locationCount:m().int().nonnegative()}),performance:h({totals:Me(l(),m()),recent7d:Me(l(),m()),prior7d:Me(l(),m()),deltaPct:Me(l(),m().nullable())}),freshness:h({dataThroughDate:l().nullable(),latestStoredDate:l().nullable(),pendingDays:m().int().nonnegative()}),timeseries:y(h({date:l(),pending:D(),metrics:Me(l(),m())})),keywords:h({total:m().int().nonnegative(),thresholdedCount:m().int().nonnegative(),thresholdedPct:m().int().min(0).max(100)}),placeActions:h({total:m().int().nonnegative(),hasReservationCta:D(),hasBookingCta:D(),hasDirectMerchantCta:D()}),lodging:h({lodgingLocationCount:m().int().nonnegative(),populatedLodgingCount:m().int().nonnegative(),emptyLodgingCount:m().int().nonnegative()}),profileCompleteness:h({locationCount:m().int().nonnegative(),withSecondaryCategories:m().int().nonnegative(),secondaryCategoryTotal:m().int().nonnegative(),withDescription:m().int().nonnegative(),withServiceArea:m().int().nonnegative(),withHours:m().int().nonnegative(),withPrimaryPhone:m().int().nonnegative(),permanentlyClosed:m().int().nonnegative(),temporarilyClosed:m().int().nonnegative()})});const X9={BUSINESS_DIRECTION_REQUESTS:"Direction requests",WEBSITE_CLICKS:"Website clicks",CALL_CLICKS:"Call clicks",BUSINESS_BOOKINGS:"Bookings",BUSINESS_CONVERSATIONS:"Conversations",BUSINESS_FOOD_ORDERS:"Food orders",BUSINESS_FOOD_MENU_CLICKS:"Food menu clicks",BUSINESS_IMPRESSIONS_DESKTOP_SEARCH:"Search impressions (desktop)",BUSINESS_IMPRESSIONS_MOBILE_SEARCH:"Search impressions (mobile)",BUSINESS_IMPRESSIONS_DESKTOP_MAPS:"Maps impressions (desktop)",BUSINESS_IMPRESSIONS_MOBILE_MAPS:"Maps impressions (mobile)"};function J9(e){const n=e.replace(/^BUSINESS_/,"").split("_").filter(Boolean).map(r=>r.toLowerCase());if(n.length===0)return e;const s=n.join(" ");return s.charAt(0).toUpperCase()+s.slice(1)}function FU(e){return X9[e]??J9(e)}const W9=["BUSINESS_DIRECTION_REQUESTS","WEBSITE_CLICKS","CALL_CLICKS"],ez=["BUSINESS_IMPRESSIONS_DESKTOP_SEARCH","BUSINESS_IMPRESSIONS_MOBILE_SEARCH","BUSINESS_IMPRESSIONS_DESKTOP_MAPS","BUSINESS_IMPRESSIONS_MOBILE_MAPS"];function YU(e){return W9.includes(e)?"conversion":ez.includes(e)?"reach":"other"}h({id:l(),domain:l(),siteUrl:l().nullable().optional(),createdAt:l(),updatedAt:l()});const Bm=h({id:l(),url:l(),httpCode:m().nullable().optional(),inIndex:D().nullable().optional(),lastCrawledDate:l().nullable().optional(),inIndexDate:l().nullable().optional(),inspectedAt:l(),documentSize:m().nullable().optional(),anchorCount:m().nullable().optional(),discoveryDate:l().nullable().optional()});h({summary:h({total:m(),indexed:m(),notIndexed:m(),unknown:m().optional(),percentage:m()}),lastInspectedAt:l().nullable(),indexed:y(Bm).default([]),notIndexed:y(Bm).default([]),unknown:y(Bm).default([]).optional()});h({query:l(),impressions:m(),clicks:m(),ctr:m(),averagePosition:m()});h({date:l(),indexed:m(),notIndexed:m(),unknown:m()});const tz=h({url:l(),status:_(["success","error"]),submittedAt:l(),error:l().optional()});h({summary:h({total:m().int().nonnegative(),succeeded:m().int().nonnegative(),failed:m().int().nonnegative()}),results:y(tz).default([])});const C2=h({url:l(),verified:D()});h({sites:y(C2).default([])});h({connected:D(),domain:l(),siteUrl:l().nullable(),createdAt:l().nullable(),updatedAt:l().nullable()});h({connected:D(),domain:l(),siteUrl:l().nullable(),availableSites:y(C2).default([])});h({siteUrl:l()});const az=h({name:l(),alive:D(),lastUsed:l().nullable()});h({connected:D(),endpoint:l(),version:l().optional(),browserVersion:l().optional(),targets:y(az).default([])});const uo=_(["live","staging"]);h({projectName:l(),url:l(),stagingUrl:l().optional(),username:l(),defaultEnv:uo,createdAt:l(),updatedAt:l()});const Ty=h({url:l(),reachable:D(),pageCount:m().nullable().optional(),version:l().nullable().optional(),error:l().nullable().optional(),plugins:y(l()).optional(),authenticatedUser:h({id:m(),slug:l()}).nullable().optional()});h({connected:D(),projectName:l(),defaultEnv:uo,live:Ty.nullable(),staging:Ty.nullable(),adminUrl:l().nullable().optional()});const nz=h({id:m(),slug:l(),title:l(),status:l(),modifiedAt:l().nullable().optional(),link:l().nullable().optional()}),z2=h({title:l().nullable(),description:l().nullable(),noindex:D().nullable(),writable:D().default(!1),writeTargets:y(l()).default([])}),iz=h({type:l(),json:Me(l(),ya())}),sz=nz.extend({env:uo,content:l(),seo:z2,schemaBlocks:y(iz).default([])}),Ry=sz.extend({contentHash:l(),contentSnippet:l()}),E2=h({manualRequired:Q(!0),targetUrl:l(),adminUrl:l().nullable().optional(),content:l(),nextSteps:y(l()).default([])}),oz=h({slug:l(),severity:_(["high","medium","low"]),code:_(["noindex","missing-seo-title","missing-meta-description","missing-schema","thin-content"]),message:l()});h({slug:l(),title:l(),status:l(),wordCount:m(),seo:z2,schemaPresent:D(),issues:y(oz).default([])});const rz=h({slug:l(),status:_(["applied","skipped","manual"]),error:l().optional(),manualAssist:E2.optional()});h({env:uo,strategy:_(["plugin","manual"]),results:y(rz)});const lz=h({slug:l(),status:_(["deployed","stripped","skipped","failed"]),schemasInjected:y(l()).optional(),manualAssist:E2.optional(),error:l().optional()});h({env:uo,results:y(lz)});const cz=h({slug:l(),title:l(),canonrySchemas:y(l()),thirdPartySchemas:y(l()),hasCanonrySchema:D()});h({env:uo,pages:y(cz)});const uz=h({name:l(),status:_(["completed","skipped","failed"]),summary:l().optional(),error:l().optional()});h({projectName:l(),steps:y(uz)});h({slug:l(),live:Ry,staging:Ry,hasDifferences:D(),differences:h({title:D(),slug:D(),content:D(),seoTitle:D(),seoDescription:D(),noindex:D(),schema:D()})});const dz=h({name:l(),displayName:l().optional(),keyUrl:l().optional(),modelHint:l().optional(),model:l().optional(),defaultModel:l().optional(),configured:D(),quota:AN.optional(),vertexConfigured:D().optional()}),mz=h({name:l(),displayName:l(),mode:_(["api","browser"]),modelConfigurable:D(),defaultModel:l(),knownModels:y(h({id:l(),displayName:l(),tier:_(["flagship","standard","fast","economy"])})).default([]),modelValidationPattern:h({source:l(),flags:l()}),modelValidationHint:l()}),Oy=h({configured:D()});h({providers:y(dz).default([]),providerCatalog:y(mz).default([]),google:Oy,bing:Oy});const Si=_(["queued","running","completed","partial","failed","cancelled"]),na=Si.enum,D2=_(["answer-visibility","site-audit","gsc-sync","inspect-sitemap","ga-sync","bing-inspect","bing-inspect-sitemap","backlink-extract","traffic-sync","aeo-discover-seed","aeo-discover-probe","gbp-sync","ads-sync"]),Te=D2.enum,s0=_(["manual","scheduled","config-apply","backfill","probe"]),Ys=s0.enum,Rn=_(["cited","not-cited"]),zc=Rn.enum,Ec=_(["visible","not-visible"]);Ec.enum;const Tr=_(["mentioned","not-mentioned"]);Tr.enum;const T2=_(["new","cited","lost","emerging","not-cited"]);T2.enum;const pz=_(["new","mentioned","lost","emerging","not-mentioned"]);pz.enum;const hz=_([Ys.manual,Ys.probe]);h({kind:Q(Te["answer-visibility"]).optional(),trigger:hz.optional(),providers:y(ut).optional(),queries:y(l().min(1)).min(1).optional(),measurementScope:pC.optional(),location:l().min(1).optional(),allLocations:D().optional(),noLocation:D().optional()}).refine(e=>+!!e.location+ +!!e.allLocations+ +!!e.noLocation<=1,{message:'Only one of "location", "allLocations", or "noLocation" may be provided'});const fz=h({message:l(),raw:ya().optional()}),gz=h({message:l().optional(),providers:Me(l(),fz).optional()}),yz=h({id:l(),projectId:l(),kind:D2,status:Si,trigger:s0.default("manual"),measurementPlanVersionId:l().nullable().optional(),measurementManifest:Me(l(),ya()).nullable().optional(),measurementScope:hC.nullable().optional(),measurementExecutionIdentity:m2.nullable().optional(),location:l().nullable().optional(),queries:y(l()).nullable().optional(),startedAt:l().nullable().optional(),finishedAt:l().nullable().optional(),error:gz.nullable().optional(),queryBasketRevision:m().int().nullable().optional(),createdAt:l()});function o0(e){if(e.providers){const n=Object.entries(e.providers);if(n.length===1){const[s,r]=n[0];return`${s}: ${r.message}`}if(n.length>1)return n.map(([s,r])=>`${s}: ${r.message}`).join(" • ")}return e.message??"Run failed."}const Zc=h({uri:l(),title:l()}),bz=h({status:_(["applied","ignored","browser-implicit","unknown"]),resolved:ra.nullable().optional()}),R2=h({id:l(),runId:l(),queryId:l(),query:l().optional(),provider:ut,citationState:Rn,answerMentioned:D().optional(),visibilityState:Ec.optional(),mentionState:Tr.optional(),transition:T2.optional(),answerText:l().nullable().optional(),citedDomains:y(l()).default([]),citedUrls:y(l()).nullable().default(null),captureStatus:Ge([$c,me()]).default(null),sourceCount:m().int().nonnegative().nullable().default(null),resolvedCount:m().int().nonnegative().nullable().default(null),captureVersion:m().int().positive().nullable().default(null),retrievalStatus:Ge([e0,me()]).default(null),retrievalContract:Ge([t0,me()]).default(null),competitorOverlap:y(l()).default([]),recommendedCompetitors:y(l()).default([]),matchedTerms:y(l()).default([]),groundingSources:y(Zc).default([]),searchQueries:y(l()).default([]),model:l().nullable().optional(),servedModel:l().nullable().optional(),location:l().nullable().optional(),requestedContext:ra.nullable().optional(),supportedContext:bz.nullable().optional(),createdAt:l()});h({snapshots:y(R2),total:m().int().nonnegative()});const vz=h({queryId:l().nullable(),query:l().nullable(),run1State:Rn.nullable(),run2State:Rn.nullable(),run1AnswerMentioned:D().nullable(),run2AnswerMentioned:D().nullable(),run1VisibilityState:Ec.nullable(),run2VisibilityState:Ec.nullable(),run1MentionState:Tr.nullable().optional(),run2MentionState:Tr.nullable().optional(),changed:D(),visibilityChanged:D()});h({run1:l(),run2:l(),diff:y(vz)});const xz=yz.extend({snapshots:y(R2).optional()}),kz=h({totalRuns:m().int().nonnegative(),run:xz.nullable()});h({id:l(),projectId:l().nullable().optional(),actor:l(),action:l(),entityType:l(),entityId:l().nullable().optional(),diff:ya().optional(),userAgent:l().nullable().optional(),actorSession:l().nullable().optional(),createdAt:l()});const wz=_(["yes","no","unknown","not-mentioned"]),qy=y(l().min(1));h({companyName:l().min(1),domain:l().min(1),queries:qy.optional(),phrases:qy.optional(),competitors:y(l().min(1)).optional().default([])}).superRefine((e,n)=>{e.queries!==void 0&&e.phrases!==void 0&&n.addIssue({code:"custom",message:"Use queries; phrases is accepted only as a legacy alias when queries is omitted",path:["phrases"]})});const Sz=h({name:l(),count:m().int().nonnegative()}),jz=h({id:l(),name:l(),weight:m(),score:m(),findings:y(h({type:l(),message:l()})).default([]),recommendations:y(l()).default([])}),Az=h({url:l(),finalUrl:l(),auditedAt:l(),overallScore:m(),summary:l(),factors:y(jz).default([])}),Nz=h({industry:l(),summary:l(),services:y(l()).default([]),categoryTerms:y(l()).default([])}),_z=h({provider:l(),displayName:l(),model:l().nullable().optional(),mentioned:D(),cited:D(),describedAccurately:wz,accuracyNotes:l().nullable().optional(),incorrectClaims:y(l()).default([]),recommendedCompetitors:y(l()).default([]),citedDomains:y(l()).default([]),groundingSources:y(Zc).default([]),searchQueries:y(l()).default([]),answerText:l(),error:l().nullable().optional()}),Cz=h({query:l(),providerResults:y(_z).default([])}),zz=h({totalQueries:m().int().nonnegative(),totalProviders:m().int().nonnegative(),totalComparisons:m().int().nonnegative(),mentionCount:m().int().nonnegative(),citationCount:m().int().nonnegative(),topCompetitors:y(Sz).default([]),visibilityGap:l(),whatThisMeans:y(l()).default([]),recommendedActions:y(l()).default([])});h({companyName:l(),domain:l(),homepageUrl:l(),generatedAt:l(),queries:y(l()).default([]),competitors:y(l()).default([]),profile:Nz,audit:Az,queryResults:y(Cz).default([]),summary:zz});const O2=Ge([Si,me()]),q2=_(["pass","partial","fail"]);q2.enum;const B2=_(["up","down","flat"]);B2.enum;const Ez=h({id:l(),name:l(),weight:m(),avgScore:m(),status:q2,pagesPassing:m().int().nonnegative(),pagesPartial:m().int().nonnegative(),pagesFailing:m().int().nonnegative()}),Dz=h({factorId:l(),factorName:l(),avgScore:m(),affectedPages:m().int().nonnegative(),totalPages:m().int().nonnegative(),affectedPct:m().int().nonnegative(),topRecommendations:y(l()).default([])});h({project:l(),hasData:D(),runId:l().nullable(),runStatus:O2,sitemapUrl:l().nullable(),auditedAt:l().nullable(),aggregateScore:m(),pagesDiscovered:m().int().nonnegative(),pagesAudited:m().int().nonnegative(),pagesSkipped:m().int().nonnegative(),pagesErrored:m().int().nonnegative(),deltaScore:m().nullable(),trend:B2.nullable(),previousScore:m().nullable(),previousAuditedAt:l().nullable(),factors:y(Ez).default([]),crossCuttingIssues:y(Dz).default([]),prioritizedFixes:y(l()).default([])});const Tz=h({id:l(),name:l(),weight:m(),score:m()}),Rz=h({url:l(),overallScore:m(),status:_(["success","error"]),error:l().nullable().optional(),factors:y(Tz).default([])});h({project:l(),runId:l().nullable(),auditedAt:l().nullable(),total:m().int().nonnegative(),pages:y(Rz).default([])});const Oz=h({runId:l(),auditedAt:l(),aggregateScore:m(),pagesAudited:m().int().nonnegative()});h({project:l(),points:y(Oz).default([])});const qz=_(["disabled","complete","partial","unavailable"]);qz.enum;const Bz=h({pagesDiscovered:m().int().nonnegative(),pagesFetched:m().int().nonnegative(),pagesEligible:m().int().nonnegative(),edges:m().int().nonnegative(),findings:m().int().nonnegative()}),Mz=rt("state",[h({state:Q("unavailable")}),h({state:Q("disabled")}),h({state:Q("complete"),checked:m().int().nonnegative(),found:m().int().nonnegative()}),h({state:Q("partial"),checked:m().int().nonnegative(),found:m().int().nonnegative()})]);h({project:l(),hasCrawlData:D(),legacyAuditAvailable:D(),runId:l().nullable(),runStatus:O2,rootUrl:l().nullable(),crawlSchemaVersion:l().nullable().optional(),engineVersion:l().nullable().optional(),normalizationVersion:l().nullable().optional(),indexabilityVersion:l().nullable().optional(),linkScoreVersion:l().nullable().optional(),effectiveOptions:Me(l(),ya()).default({}),complete:D(),termination:l().nullable(),detailsAvailable:D(),counts:Bz,deadLinks:Mz});const Pz=h({nodeKey:l(),url:l(),finalUrl:l().nullable(),path:l(),parentPath:l(),discoverySource:l(),fetchState:l(),httpStatus:m().int().nullable(),canonicalUrl:l().nullable(),indexabilityState:l(),indexabilityReasons:y(l()).default([]),auditState:l(),auditScore:m().nullable(),inventoryEligible:D(),depth:m().int().nullable(),inboundUniqueEdges:m().int().nonnegative(),outboundUniqueEdges:m().int().nonnegative(),inboundOccurrences:m().int().nonnegative(),outboundOccurrences:m().int().nonnegative(),linkScoreRaw:m().nullable(),linkScoreNormalized:m().nullable()});h({project:l(),hasCrawlData:D(),runId:l().nullable(),total:m().int().nonnegative(),nextCursor:l().nullable(),pages:y(Pz).default([])});const Uz=h({path:l(),url:l().nullable(),hasPage:D(),pageCount:m().int().positive(),inventoryEligibleCount:m().int().nonnegative(),fetchedCount:m().int().nonnegative()});h({project:l(),hasCrawlData:D(),runId:l().nullable(),parentPath:l(),nextCursor:l().nullable(),children:y(Uz).default([])});const pp=h({edgeKey:l(),sourceNodeKey:l(),sourceUrl:l(),targetNodeKey:l().nullable(),targetUrl:l(),relation:l(),internal:D(),followable:D(),occurrences:m().int().positive(),followableOccurrences:m().int().nonnegative(),nofollowOccurrences:m().int().nonnegative(),anchors:y(l()).default([])});h({project:l(),hasCrawlData:D(),runId:l().nullable(),total:m().int().nonnegative(),nextCursor:l().nullable(),edges:y(pp).default([])});h({project:l(),hasCrawlData:D(),runId:l().nullable(),nodeKey:l().nullable(),url:l().nullable(),inbound:y(pp).default([]),outbound:y(pp).default([]),inboundTruncated:D(),outboundTruncated:D()});const By=h({findingKey:l(),severity:l(),sourceNodeKey:l().nullable(),sourceUrl:l().nullable(),targetNodeKey:l().nullable(),targetUrl:l().nullable(),evidence:Me(l(),ya()).default({})});rt("state",[h({project:l(),runId:l().nullable(),state:Q("unavailable"),legacyAuditAvailable:D()}),h({project:l(),runId:l(),state:Q("disabled"),checkDeadLinks:Q(!1)}),h({project:l(),runId:l(),state:Q("complete"),checkDeadLinks:Q(!0),checked:m().int().nonnegative(),found:m().int().nonnegative(),total:m().int().nonnegative(),nextCursor:l().nullable(),deadLinks:y(By).default([])}),h({project:l(),runId:l(),state:Q("partial"),checkDeadLinks:Q(!0),checked:m().int().nonnegative(),found:m().int().nonnegative(),total:m().int().nonnegative(),nextCursor:l().nullable(),deadLinks:y(By).default([])})]);h({sitemapUrl:l().url().optional(),limit:m().int().positive().max(2e3).optional(),maxPages:m().int().positive().max(5e4).optional(),maxEdges:m().int().positive().max(1e6).optional(),maxDepth:m().int().min(0).max(100).optional(),checkDeadLinks:D().default(!1)});h({runId:l(),status:Si});const r0=_(["answer-visibility","traffic-sync","gbp-sync","data-refresh","backlinks-sync","site-audit","ads-sync","doctor"]);r0.enum;h({id:l(),projectId:l(),kind:r0,cronExpr:l(),preset:l().nullable().optional(),timezone:l().default("UTC"),enabled:D().default(!0),providers:y(ut).default([]),sourceId:l().nullable().optional(),lastRunAt:l().nullable().optional(),nextRunAt:l().nullable().optional(),createdAt:l(),updatedAt:l()});h({kind:r0.optional(),preset:l().optional(),cron:l().optional(),timezone:l().optional().default("UTC"),enabled:D().optional().default(!0),providers:y(ut).optional().default([]),sourceId:l().optional()}).refine(e=>e.preset&&!e.cron||!e.preset&&e.cron,{message:'Exactly one of "preset" or "cron" must be provided'});const l0=_(["competitor","directory","social","forum","news","reference","blog","ecommerce","video","academic","other"]);l0.enum;const c0=_(["cited","aspirational","wasted-surface"]),My=c0.enum;My.cited,My.aspirational;const Fc=_(["direct-competitor","ota-aggregator","editorial-media","other","unknown"]),Lz=Fc.enum;Lz["direct-competitor"];const Yc=_(["queued","seeding","probing","completed","failed"]);Yc.enum;const M2=h({domain:l().min(1),hits:m().int().positive(),competitorType:Fc.default("unknown")}),Iz=h({id:l(),sessionId:l(),projectId:l(),query:l(),bucket:c0.nullable().default(null),citationState:Rn,citedDomains:y(l()).default([]),answerMentioned:D().nullable().default(null),createdAt:l()}),Vz=h({id:l(),projectId:l(),status:Yc,icpDescription:l().nullable().optional(),seedProvider:l().nullable().optional(),seedCountRaw:m().int().nullable().optional(),seedCount:m().int().nullable().optional(),seedFromAnswerCount:m().int().nullable().optional(),seedFromGroundingCount:m().int().nullable().optional(),seedBrandFilteredCount:m().int().nullable().optional(),buyerDescription:l().nullable().optional(),locations:y(ra).nullable().optional(),seedRawCandidates:y(l()).nullable().optional(),dedupClusterMinSims:y(m()).nullable().optional(),dedupBandPairFraction:m().nullable().optional(),dedupPairsTotal:m().int().nullable().optional(),seedProviders:y(l()).nullable().optional(),seedProviderCounts:Me(l(),m().int()).nullable().optional(),canonicalCount:m().int().nullable().optional(),dedupThreshold:m().nullable().optional(),probeCount:m().int().nullable().optional(),citedCount:m().int().nullable().default(null),aspirationalCount:m().int().nullable().default(null),wastedCount:m().int().nullable().default(null),competitorMap:y(M2).default([]),warning:l().nullable().optional(),error:l().nullable().optional(),startedAt:l().nullable().optional(),finishedAt:l().nullable().optional(),createdAt:l()});Vz.extend({probes:y(Iz).default([])});const $z=500,Gz=8,Hz=["gemini","openai"],Kz=_(Hz);h({icpDescription:l().min(1).optional(),buyerDescription:l().min(1).optional(),seedProviders:y(Kz).min(1).transform(e=>[...new Set(e)].sort()).optional(),dedupThreshold:m().min(0).max(1).optional(),maxProbes:m().int().positive().max($z).optional(),probeConcurrency:m().int().min(1).max(Gz).optional(),locations:y(l().min(1)).optional()});h({buckets:y(c0).min(1).optional(),includeCompetitors:D().optional(),competitorTypes:y(Fc).min(1).optional()});h({sessionId:l(),projectId:l(),status:Yc,queriesByBucket:h({cited:y(l()),aspirational:y(l()),"wasted-surface":y(l())}),suggestedCompetitors:y(M2)});h({sessionId:l(),projectId:l(),promoted:h({queries:y(l()),competitors:y(l())}),skipped:h({queries:y(l()),competitors:y(l())})});Ge([Q("cli"),l().regex(/^discovery:.+$/)]);const Qz=h({query:l().min(1),probeHits:m().int().positive()}),Zz=h({rawCandidates:m().int().nonnegative(),admitted:m().int().nonnegative(),rejected:h({belowFloor:m().int().nonnegative(),length:m().int().nonnegative(),navigational:m().int().nonnegative(),duplicate:m().int().nonnegative(),offAnchor:m().int().nonnegative(),semanticDuplicate:m().int().nonnegative()})});h({sessionId:l(),projectId:l(),provider:l(),status:Yc,minProbeHits:m().int().positive(),anchorApplied:D(),semanticNoveltyApplied:D(),candidates:y(Qz),stats:Zz});const u0=_(["own","direct-competitor","ota-aggregator","editorial-media","other"]);u0.enum;const P2=_(["7d","30d","90d","all"]),Py=_(["improving","declining","stable"]),Fz=_(["mentioned","cited"]);Fz.enum;const hp=h({citationRate:m(),cited:m().int(),total:m().int(),mentionRate:m(),mentionedCount:m().int()}),d0=l().trim().min(1),Yz=y(d0).min(1).superRefine((e,n)=>{for(let s=1;s<e.length;s+=1)e[s-1]>=e[s]&&n.addIssue({code:"custom",message:"mixed model IDs must be sorted and unique",path:[s]})}),no=rt("status",[h({status:Q("known"),model:d0}),h({status:Q("unknown")}),h({status:Q("mixed"),models:Yz,includesUnknown:D()})]),Xz=h({observedAt:l(),bucketStartDate:l(),from:no,to:no,fromPreWindowAnchor:D().optional(),anchorObservedAt:l().optional()}),U2=h({latestObservation:h({observedAt:l(),state:no}),events:y(Xz),eventTotal:m().int().nonnegative().optional(),anchorUnavailable:D().optional()}),Jz=Me(l(),U2),Wz=U2.extend({latestServedModelIds:y(d0).default([])}),eE=Me(l(),Wz),tE=h({observedAt:l(),configured:no,served:no}),aE=h({rate:m().nullable(),projectMentionSnapshots:m().int().nonnegative(),competitorMentionSnapshots:m().int().nonnegative()}),nE=h({startDate:l(),endDate:l(),dataStartDate:l(),dataEndDate:l(),sweepCount:m().int().nonnegative(),citationRate:m(),cited:m().int(),total:m().int(),queryCount:m().int(),mentionRate:m(),mentionedCount:m().int(),mentionShare:aE,byProvider:Me(l(),hp),modelEvidenceByProvider:Me(l(),no).default({}),basketRevision:m().int().nullable().default(null)}),iE=h({revision:m().int(),at:l(),added:y(l()),removed:y(l())}),sE=h({date:l(),delta:m().int(),label:l()}),oE=h({at:l(),identity:m2});h({window:P2,buckets:y(nE),overall:hp,byProvider:Me(l(),hp),trend:Py,mentionTrend:Py,queryChanges:y(sE),basketChanges:y(iE).default([]),executionIdentityChanges:y(oE).default([]),referenceBasketRevision:m().int().nullable().default(null),modelAttribution:Jz.default({}),servedModelAttribution:eE.default({}),modelServiceMismatch:Me(l(),tE).default({}),modelPointerChanges:Me(l(),N9).default({})});const Uy=h({category:l0,label:l(),count:m().int(),percentage:m(),topDomains:y(h({domain:l(),count:m().int()}))}),rE=h({domain:l(),count:m().int(),percentage:m(),category:l0,label:l(),surfaceClass:u0}),lE=h({surfaceClass:u0,label:l(),count:m().int(),percentage:m(),domainCount:m().int()}),Ly=h({totalCitedSlots:m().int(),domainTotal:m().int(),entries:y(rE),truncatedDomainCount:m().int(),truncatedCitedSlots:m().int(),bySurfaceClass:y(lE)});h({overall:y(Uy),byQuery:Me(l(),y(Uy)),ranked:Ly,byProvider:Me(l(),Ly),runId:l(),window:P2,limit:m().int().nullable()});const m0=h({total:m().int(),checked:m().int(),mentioned:m().int(),cited:m().int(),mentionRate:m().nullable(),citedRate:m().nullable()}),L2=m0.extend({provider:l(),firstObserved:l(),lastObserved:l()}),cE=m0.extend({queryId:l().nullable(),query:l(),firstObserved:l(),lastObserved:l(),providers:y(L2).optional()}),uE=h({since:l().nullable(),until:l().nullable(),lastRuns:m().int().nullable(),runCount:m().int()}),dE=_(["provider"]),fp=h({domain:l(),mentions:m().int()}),mE=h({percent:m().nullable(),projectMentions:m().int(),competitorMentions:m().int(),snapshotsWithAnswerText:m().int(),perCompetitor:y(fp)});h({project:l(),groupBy:dE.optional(),window:uE,totals:m0,byProvider:y(L2).optional(),queries:y(cE),shareOfVoice:mE.optional()});const pE=_(["within-noise","moved","insufficient-data","model-discontinuous","model-unknown"]),hE=_(["up","down","flat"]),Iy=h({point:m().nullable(),ciLow:m().nullable(),ciHigh:m().nullable(),numerator:m().int(),denominator:m().int()}),fE=_(["mention-share-of-voice","cited-share-of-voice","mention-rate","cited-rate"]),gE=h({key:fE,label:l(),driftRobust:D(),from:Iy,to:Iy,rateRatio:m().nullable(),direction:Ge([hE,me()]),verdict:pE}),Vy=h({month:l(),since:l(),until:l(),runCount:m().int(),lowRunCount:D()}),yE=h({queryCount:m().int(),excludedFromOnly:m().int(),excludedToOnly:m().int(),providers:y(l()),excludedProviders:y(l())}),bE=h({provider:l(),fromModels:y(l()),toModels:y(l())}),vE=_(["included","model-discontinuous","model-unknown"]),xE=h({provider:l(),status:vE,fromModels:y(l()),toModels:y(l())}),kE=_(["comparable","model-discontinuous","model-unknown","insufficient-data"]),wE=h({status:kE,comparedProviders:y(l()),providers:y(xE)}),SE=h({provider:l(),from:h({checked:m().int(),mentioned:m().int(),cited:m().int()}),to:h({checked:m().int(),mentioned:m().int(),cited:m().int()})}),jE=h({from:h({count:m().int(),of:m().int()}),to:h({count:m().int(),of:m().int()})});h({project:l(),from:Vy,to:Vy,basket:yE,metrics:y(gE),queriesMentioned:jE,byProvider:y(SE),modelChanges:y(bE),continuity:wE,competitors:h({from:y(fp),to:y(fp)})});_(["json","csv"]);const AE=h({runId:l(),runKind:Q("answer-visibility"),runStatus:Si,runTrigger:s0,runCreatedAt:l(),runStartedAt:l().nullable(),runFinishedAt:l().nullable(),snapshotId:l(),snapshotCreatedAt:l(),queryId:l().nullable(),query:l().nullable(),provider:l(),model:l().nullable(),location:l().nullable(),citationState:Rn,cited:D(),answerMentioned:D().nullable(),mentionState:Ge([Tr,me()]),citedDomains:y(l()),citedUrls:y(l()).nullable(),captureStatus:Ge([$c,me()]),sourceCount:m().int().nonnegative().nullable(),resolvedCount:m().int().nonnegative().nullable(),captureVersion:m().int().positive().nullable(),competitorOverlap:y(l()),recommendedCompetitors:y(l()),answerText:l().nullable(),groundingSources:y(Zc),searchQueries:y(l())}),NE=h({since:l().nullable(),until:l().nullable(),includeProbes:D()});h({schemaVersion:Q("canonry.results-export/v1"),generatedAt:l(),project:h({id:l(),name:l(),displayName:l(),canonicalDomain:l(),country:l(),language:l()}),filters:NE,recordCount:m().int().nonnegative(),records:y(AE)});const Xc=_(["organic","paid"]);Xc.enum;h({id:l(),projectId:l(),propertyId:l(),clientEmail:l(),connected:D(),createdAt:l(),updatedAt:l()});h({date:l(),landingPage:l(),sessions:m(),organicSessions:m(),users:m()});const p0=_(["session","first_user","manual_utm"]),_E=h({source:l(),medium:l(),trafficClass:Xc,sessions:m(),users:m().optional(),sourceDimension:p0}),CE=h({source:l(),medium:l(),trafficClass:Xc,sourceDimension:p0,landingPage:l(),sessions:m(),users:m().optional()}),zE=h({source:l(),medium:l(),sessions:m(),users:m(),channelGroup:l()}),br=h({sessions:m(),sharePct:m(),sharePctDisplay:l()}),EE=h({organic:br,social:br,direct:br,ai:br,other:br});h({totalSessions:m(),totalOrganicSessions:m(),totalDirectSessions:m(),totalUsers:m().nullable(),topPages:y(h({landingPage:l(),sessions:m(),organicSessions:m(),directSessions:m(),users:m()})),aiReferrals:y(_E),aiReferralLandingPages:y(CE),aiSessionsDeduped:m(),aiUsersDeduped:m().optional(),paidAiSessionsDeduped:m(),paidAiUsersDeduped:m().optional(),organicAiSessionsDeduped:m(),organicAiUsersDeduped:m().optional(),aiSessionsBySession:m(),aiUsersBySession:m().optional(),paidAiSessionsBySession:m(),paidAiUsersBySession:m().optional(),organicAiSessionsBySession:m(),organicAiUsersBySession:m().optional(),socialReferrals:y(zE),socialSessions:m(),socialUsers:m(),channelBreakdown:EE,organicSharePct:m(),aiSharePct:m(),aiSharePctBySession:m(),paidAiSharePct:m(),paidAiSharePctBySession:m(),organicAiSharePct:m(),organicAiSharePctBySession:m(),directSharePct:m(),socialSharePct:m(),organicSharePctDisplay:l(),aiSharePctDisplay:l(),aiSharePctBySessionDisplay:l(),paidAiSharePctDisplay:l(),paidAiSharePctBySessionDisplay:l(),organicAiSharePctDisplay:l(),organicAiSharePctBySessionDisplay:l(),directSharePctDisplay:l(),socialSharePctDisplay:l(),otherSessions:m(),otherSharePct:m(),otherSharePctDisplay:l(),lastSyncedAt:l().nullable()});h({connected:D(),propertyId:l().nullable(),clientEmail:l().nullable(),authMethod:_(["service-account","oauth"]).nullable(),lastSyncedAt:l().nullable(),createdAt:l().nullable().optional(),updatedAt:l().nullable().optional()});h({synced:D(),rowCount:m().int().nonnegative(),aiReferralCount:m().int().nonnegative(),socialReferralCount:m().int().nonnegative(),days:m().int().nonnegative(),syncedAt:l(),measurement:h({acquisition:h({days:m().int().nonnegative(),status:_(["ready","error"]),rowCount:m().int().nonnegative(),error:l().optional()}),leads:h({days:m().int().nonnegative(),status:_(["ready","error","not-configured"]),rowCount:m().int().nonnegative(),attributionScope:_(["landing-page","channel"]).optional(),error:l().optional()})}),syncedComponents:y(l()).optional()});h({date:l(),source:l(),medium:l(),trafficClass:Xc,landingPage:l(),sessions:m(),users:m(),sourceDimension:p0});const DE=h({source:l(),sessions:m(),paidSessions:m(),organicSessions:m()}),TE=h({date:l(),sessions:m(),paidSessions:m(),organicSessions:m(),bySource:y(DE)});h({days:y(TE),sources:y(l()),totalSessions:m(),totalPaidSessions:m(),totalOrganicSessions:m()});h({date:l(),source:l(),medium:l(),sessions:m(),users:m(),channelGroup:l()});h({date:l(),sessions:m(),organicSessions:m(),users:m(),usersSource:_(["deduplicated","landing-page-sum"])});h({id:l(),projectId:l(),runId:l().nullable(),overallCitedRate:m(),overallMentionRate:m(),totalPairs:m().int().nonnegative(),citedPairs:m().int().nonnegative(),mentionedPairs:m().int().nonnegative(),providerBreakdown:Me(l(),h({citedRate:m(),mentionRate:m(),cited:m().int().nonnegative(),mentioned:m().int().nonnegative(),total:m().int().nonnegative()})),createdAt:l(),status:_(["ready","no-data"]),reason:Q("no-runs-yet").optional()});const I2=_(["claude","openai","gemini","zai","deepinfra"]),RE=h({id:I2,label:l(),defaultModel:l(),configured:D(),keySource:_(["config","env"]).nullable()});h({providers:y(RE).default([]),defaultProvider:I2.nullable()});const OE=_(["aero","user","compaction"]);OE.enum;const V2=128;h({key:l().min(1).max(V2),value:l().min(1)});h({key:l().min(1).max(V2)});const mo=_(["commoncrawl","bing-webmaster"]);mo.enum;const h0=_(["queued","downloading","querying","ready","failed"]);h0.enum;h({id:l(),release:l(),status:h0,phaseDetail:l().nullable().optional(),vertexPath:l().nullable().optional(),edgesPath:l().nullable().optional(),vertexSha256:l().nullable().optional(),edgesSha256:l().nullable().optional(),vertexBytes:m().int().nullable().optional(),edgesBytes:m().int().nullable().optional(),projectsProcessed:m().int().nullable().optional(),domainsDiscovered:m().int().nullable().optional(),downloadStartedAt:l().nullable().optional(),downloadFinishedAt:l().nullable().optional(),queryStartedAt:l().nullable().optional(),queryFinishedAt:l().nullable().optional(),error:l().nullable().optional(),createdAt:l(),updatedAt:l()});const qE=h({linkingDomain:l(),numHosts:m().int(),source:mo}),BE=h({projectId:l(),release:l(),targetDomain:l(),totalLinkingDomains:m().int(),totalHosts:m().int(),top10HostsShare:l(),queriedAt:l(),source:mo,excludedLinkingDomains:m().int().optional(),excludedHosts:m().int().optional()});h({source:mo,summary:BE.nullable(),total:m().int(),rows:y(qE)});h({release:l(),totalLinkingDomains:m().int(),totalHosts:m().int(),top10HostsShare:l(),queriedAt:l(),source:mo});const ME=h({source:mo,connected:D(),hasData:D(),latestRelease:l().nullable(),totalLinkingDomains:m().int(),lastSyncedAt:l().nullable()});h({projectId:l(),targetDomain:l(),sources:y(ME),anyConnected:D(),anyData:D()});h({duckdbInstalled:D(),duckdbVersion:l().nullable().optional(),duckdbSpec:l(),pluginDir:l()});h({installed:D(),version:l(),path:l(),alreadyPresent:D()});h({release:l(),vertexUrl:l(),edgesUrl:l(),vertexBytes:m().int().nullable(),edgesBytes:m().int().nullable(),lastModified:l().nullable()});h({release:l(),syncStatus:h0.nullable(),bytes:m().int(),lastUsedAt:l().nullable()});const f0=_(["positive","caution","negative","neutral"]),hi=h({label:l(),value:l(),delta:l(),tone:f0,description:l(),tooltip:l().optional(),trend:y(m()),progress:m().optional(),providerCoverage:l().optional()}),PE=hi.extend({breakdown:h({projectMentionSnapshots:m().int().nonnegative(),competitorMentionSnapshots:m().int().nonnegative(),perCompetitor:y(h({domain:l(),mentionSnapshots:m().int().nonnegative(),shareOfCompetitiveTotal:m()})),snapshotsWithAnswerText:m().int().nonnegative(),snapshotsTotal:m().int().nonnegative()})}),Mm=h({gained:m().int().nonnegative(),lost:m().int().nonnegative(),tone:f0,hasPreviousRun:D(),gainedQueries:y(l()).optional(),lostQueries:y(l()).optional()}),UE=h({hasPreviousRun:D(),comparable:D(),querySetChanged:D(),previousRunAt:l().nullable(),currentQueryCount:m().int().nonnegative(),previousQueryCount:m().int().nonnegative(),comparableQueryCount:m().int().nonnegative(),addedQueryCount:m().int().nonnegative(),removedQueryCount:m().int().nonnegative(),addedQueries:y(l()),removedQueries:y(l())}),LE=h({id:l(),projectId:l(),runId:l().nullable(),type:_(["regression","gain","opportunity","first-citation","provider-pickup","persistent-gap","competitor-gained","competitor-lost","gbp-lodging-gap","gbp-listing-discrepancy","gbp-cta-gap","gbp-description-missing","gbp-metric-drop","gbp-keyword-drop"]),severity:_(["critical","high","medium","low"]),title:l(),query:l(),provider:l(),recommendation:h({action:l(),target:l().optional(),reason:l()}).optional(),cause:h({cause:l(),competitorDomain:l().optional(),details:l().optional()}).optional(),dismissed:D(),createdAt:l()}),IE=h({id:l(),projectId:l(),runId:l().nullable(),overallCitedRate:m(),overallMentionRate:m(),totalPairs:m().int().nonnegative(),citedPairs:m().int().nonnegative(),mentionedPairs:m().int().nonnegative(),providerBreakdown:Me(l(),h({citedRate:m(),mentionRate:m(),cited:m().int().nonnegative(),mentioned:m().int().nonnegative(),total:m().int().nonnegative()})),createdAt:l(),status:_(["ready","no-data"]),reason:Q("no-runs-yet").optional()});h({project:k_,latestRun:kz,health:IE.nullable(),topInsights:y(LE),queryCounts:h({totalQueries:m().int().nonnegative(),citedQueries:m().int().nonnegative(),notCitedQueries:m().int().nonnegative(),citedRate:m(),mentionedQueries:m().int().nonnegative(),notMentionedQueries:m().int().nonnegative(),mentionRate:m()}),providers:y(h({provider:l(),citedRate:m(),cited:m().int().nonnegative(),total:m().int().nonnegative()})),transitions:h({since:l().nullable(),gained:m().int().nonnegative(),lost:m().int().nonnegative(),emerging:m().int().nonnegative()}),scores:h({mention:hi,visibility:hi,mentionShare:PE,gapQueries:hi,mentionGaps:hi,indexCoverage:hi,competitorPressure:hi,runStatus:hi}),movementSummary:Mm,citationMovement:Mm,mentionMovement:Mm,movementComparison:UE,competitors:y(h({id:l(),domain:l(),citationCount:m().int().nonnegative(),totalQueries:m().int().nonnegative(),pressureLabel:_(["None","Low","Moderate","High"]),citedQueries:y(l())})),providerScores:y(h({provider:l(),model:l().nullable(),score:m(),cited:m().int().nonnegative(),total:m().int().nonnegative(),trend:y(m()).optional()})),attentionItems:y(h({id:l(),tone:f0,title:l(),detail:l(),actionLabel:l(),href:l()})),runHistory:y(h({runId:l(),createdAt:l(),citedCount:m().int().nonnegative(),totalCount:m().int().nonnegative(),citationRate:m(),mentionedCount:m().int().nonnegative(),mentionRate:m(),status:l()})),suggestedQueries:h({rows:y(h({query:l(),impressions:m(),clicks:m(),avgPosition:m(),reason:l()})),totalCandidates:m().int().nonnegative(),skippedAlreadyTracked:m().int().nonnegative()}),dateRangeLabel:l(),contextLabel:l()});_(["snapshot","insight"]);const VE=h({kind:Q("snapshot"),id:l(),runId:l(),query:l(),provider:l(),model:l().nullable(),citationState:Rn,matchedField:_(["answerText","citedDomains","citedUrls","searchQueries","query"]),snippet:l(),createdAt:l()}),$E=h({kind:Q("insight"),id:l(),runId:l().nullable(),type:_(["regression","gain","opportunity","first-citation","provider-pickup","persistent-gap","competitor-gained","competitor-lost","gbp-lodging-gap","gbp-listing-discrepancy","gbp-cta-gap","gbp-description-missing","gbp-metric-drop","gbp-keyword-drop"]),severity:_(["critical","high","medium","low"]),title:l(),query:l(),provider:l(),matchedField:_(["title","query","recommendation","cause"]),snippet:l(),dismissed:D(),createdAt:l()}),GE=rt("kind",[VE,$E]);h({query:l(),totalHits:m().int().nonnegative(),truncated:D(),hits:y(GE)});const $2=_(["create","expand","refresh","add-schema"]);$2.enum;function XU(e){switch(e){case"create":return"Create";case"expand":return"Expand";case"refresh":return"Refresh";case"add-schema":return"Add schema"}}const G2=_(["gsc","competitor-evidence","both"]);G2.enum;const H2=_(["high","medium","low"]);H2.enum;const HE=_(["blog-post","comparison","listicle","how-to","guide","glossary"]);HE.enum;const K2=_(["proposed","briefed","payload-generated","draft-created","published","validated","dismissed"]);K2.enum;const g0=_(["ownable","ceded"]);g0.enum;const KE=h({url:l(),gscImpressions:m().nonnegative(),gscClicks:m().nonnegative(),gscAvgPosition:m().nonnegative().nullable(),organicSessions:m().nonnegative()}),QE=h({domain:l(),url:l(),title:l(),citationCount:m().int().nonnegative()}),ZE=h({demand:m(),competitor:m(),absence:m(),gapSeverity:m()}),FE=h({actionId:l(),state:K2,lastUpdated:l()}),Q2=h({targetRef:l(),query:l(),action:$2,ourBestPage:KE.nullable(),winningCompetitor:QE.nullable(),score:m(),scoreBreakdown:ZE,drivers:y(l()),demandSource:G2,actionConfidence:H2,existingAction:FE.nullable(),winnabilityClass:g0,winnability:m().min(0).max(1).nullable()});h({targets:y(Q2),contextMetrics:h({totalAiReferralSessions:m().int().nonnegative(),latestRunId:l(),runTimestamp:l()})});const YE=h({targetRef:l(),addressedUrl:l().nullable(),note:l().nullable(),dismissedAt:l()});h({dismissals:y(YE)});h({targetRef:l().min(1),addressedUrl:l().url().optional(),note:l().max(500).optional()});h({targetRef:l(),promptVersion:l(),provider:l(),model:l(),responseText:l(),costMillicents:m().int().nonnegative(),generatedAt:l()});h({provider:l().optional(),model:l().optional(),forceRefresh:D().optional()});const XE=h({targetQuery:l().trim().min(1),winnabilityClass:g0,angle:l().trim().min(1),whyWinnable:l().trim().min(1),schemaHookup:l().trim().min(1),controllableSurfaceRationale:l().trim().min(1)});h({targetRef:l(),promptVersion:l(),provider:l(),model:l(),brief:XE,costMillicents:m().int().nonnegative(),generatedAt:l()});const JE=h({domain:l(),competitorType:Fc,hits:m().int().nonnegative(),updatedAt:l()});h({classifications:y(JE)});const WE=h({uri:l(),title:l(),domain:l(),isOurDomain:D(),isCompetitor:D(),citationCount:m().int().nonnegative(),providers:y(ut)}),Z2=h({query:l(),groundingSources:y(WE)});h({sources:y(Z2),latestRunId:l()});const F2=h({query:l(),competitorDomains:y(l()),competitorCount:m().int().nonnegative(),missRate:m().min(0).max(1),lastSeenInRunId:l()});h({gaps:y(F2),latestRunId:l()});const Y2=_(["ok","warn","fail","skipped"]);Y2.enum;const y0=_(["global","project"]);y0.enum;const X2=_(["auth","config","providers","integrations","database","schedules","agent"]);X2.enum;const eD=h({id:l(),category:X2,scope:y0,title:l(),status:Y2,code:l().describe('Stable machine-readable code (e.g. "google.token.refresh-failed"). Use this for filtering and remediation logic.'),summary:l(),remediation:l().nullable().optional().describe('Operator-facing next step. Null when status is "ok" or no specific remediation applies.'),details:Me(l(),ya()).optional().describe("Structured context — principal email, redirect URI, missing scopes, etc. Stable per check id."),durationMs:m().int().nonnegative().describe("How long the check took to execute.")});h({scope:y0,project:l().nullable().describe('Project name when scope is "project", null otherwise.'),generatedAt:l().describe("ISO-8601 timestamp when this doctor run started."),durationMs:m().int().nonnegative(),summary:h({total:m().int().nonnegative(),ok:m().int().nonnegative(),warn:m().int().nonnegative(),fail:m().int().nonnegative(),skipped:m().int().nonnegative()}),checks:y(eD)});const tD=h({provider:l(),citationState:Rn,cited:D(),mentioned:D(),runId:l(),runCreatedAt:l()}),aD=h({queryId:l(),query:l(),providers:y(tD),citedCount:m().int().nonnegative(),mentionedCount:m().int().nonnegative(),totalProviders:m().int().nonnegative()}),nD=h({queryId:l(),query:l(),provider:l(),citingCompetitors:y(l()),runId:l(),runCreatedAt:l()}),iD=h({providersConfigured:m().int().nonnegative(),providersCiting:m().int().nonnegative(),providersMentioning:m().int().nonnegative(),totalQueries:m().int().nonnegative(),queriesCitedAndMentioned:m().int().nonnegative(),queriesCitedOnly:m().int().nonnegative(),queriesMentionedOnly:m().int().nonnegative(),queriesInvisible:m().int().nonnegative(),latestRunId:l().nullable(),latestRunAt:l().nullable()});h({summary:iD,byQuery:y(aD),competitorGaps:y(nD),status:_(["ready","no-data"]),reason:_(["no-runs-yet","no-queries"]).optional()});const JU=[7,14,30,90],WU=30;Ge([Q(7),Q(14),Q(30),Q(90)]).describe("Report window in days (7, 14, 30, or 90). Defaults to 30 when omitted.");const sD=_(["prompt","request-param","browser-geo","ignored"]),oD=h({label:l(),city:l(),region:l(),country:l(),otherConfiguredLabels:y(l())}),rD=h({provider:l(),treatment:sD,description:l()}),lD=h({generatedAt:l(),project:h({id:l(),name:l(),displayName:l(),canonicalDomain:l(),country:l(),language:l()}),location:oD.nullable(),providerLocationHandling:y(rD),periodStart:l().nullable(),periodEnd:l().nullable(),periodDays:m().int().positive()}),cD=h({citationRate:m(),citedQueryCount:m(),totalQueryCount:m(),mentionRate:m(),mentionedQueryCount:m(),trend:_(["up","down","flat","unknown"]),queryCount:m(),competitorCount:m(),providerCount:m(),gsc:h({clicks:m(),impressions:m(),ctr:m(),avgPosition:m(),periodStart:l(),periodEnd:l()}).nullable(),ga:h({sessions:m(),users:m(),periodStart:l(),periodEnd:l()}).nullable(),findings:y(h({title:l(),detail:l(),tone:_(["positive","caution","negative","neutral"])}))}),uD=h({citationState:_(["cited","not-cited","pending"]),answerMentioned:D().nullable(),model:l().nullable()}),dD=h({queries:y(l()),providers:y(l()),matrix:y(y(uD.nullable())),providerRates:y(h({provider:l(),citedCount:m(),mentionedCount:m(),totalCount:m(),citationRate:m(),mentionRate:m()}))}),mD=h({domain:l(),citationCount:m(),totalCount:m(),pressureLabel:_(["High","Moderate","Low","None"]),citedQueries:y(l()),sharePct:m(),theirCitedPages:y(h({url:l(),citedFor:y(l())}))}),pD=h({projectCitationCount:m(),competitors:y(mD)}),hD=h({domain:l(),mentionCount:m(),totalCount:m(),pressureLabel:_(["High","Moderate","Low","None"]),mentionedQueries:y(l()),sharePct:m()}),fD=h({projectMentionCount:m(),totalAnswerSnapshots:m(),competitors:y(hD)}),gD=h({category:l(),label:l(),count:m(),sharePct:m()}),yD=h({categories:y(gD),topDomains:y(h({domain:l(),count:m(),isCompetitor:D()}))}),bD=h({query:l(),clicks:m(),impressions:m(),ctr:m(),avgPosition:m(),category:_(["brand","lead-gen","industry","other"])}),vD=h({periodStart:l(),periodEnd:l(),totalClicks:m(),totalImpressions:m(),ctr:m(),avgPosition:m(),topQueries:y(bD),categoryBreakdown:y(h({category:_(["brand","lead-gen","industry","other"]),clicks:m(),impressions:m(),sharePct:m()})),trend:y(h({date:l(),clicks:m(),impressions:m()})),trackedButNoGsc:y(l()),gscButNotTracked:y(l())}),xD=h({totalSessions:m(),totalUsers:m(),totalOrganicSessions:m(),periodStart:l(),periodEnd:l(),topLandingPages:y(h({page:l(),sessions:m(),users:m(),organicSessions:m()})),channelBreakdown:y(h({channel:l(),sessions:m(),sharePct:m()}))}),kD=h({totalSessions:m(),organicSessions:m(),paidSessions:m(),channels:y(h({channelGroup:l(),sessions:m(),sharePct:m()})),topCampaigns:y(h({source:l(),medium:l(),sessions:m()}))}),wD=h({totalSessions:m(),paidSessions:m(),organicSessions:m(),totalUsers:m().optional(),paidUsers:m().optional(),organicUsers:m().optional(),bySource:y(h({source:l(),sessions:m(),users:m().optional(),paidSessions:m(),organicSessions:m(),sharePct:m()})),trend:y(h({date:l(),sessions:m()})),topLandingPages:y(h({page:l(),sessions:m(),users:m().optional()}))}),SD=h({windowStart:l(),windowEnd:l(),hasData:D(),verifiedCrawlerHits:h({current:m(),prior:m(),deltaPct:m().nullable()}),unverifiedCrawlerHits:h({current:m(),prior:m(),deltaPct:m().nullable()}),aiUserFetchHits:h({current:m(),prior:m(),deltaPct:m().nullable()}),referralArrivals:h({current:m(),prior:m(),deltaPct:m().nullable()}),referralArrivalsByClass:h({paid:h({current:m(),prior:m(),deltaPct:m().nullable()}),organic:h({current:m(),prior:m(),deltaPct:m().nullable()}),unclassified:h({current:m(),prior:m(),deltaPct:m().nullable()})}),referralArrivalsClassSummary:l(),byOperator:y(h({operator:l(),verifiedHits:m(),unverifiedHits:m(),userFetchHits:m(),referralArrivals:m(),deltaPct:m().nullable()})),topCrawledPaths:y(h({path:l(),verifiedHits:m(),distinctOperators:m()})),referralProducts:y(h({product:l(),arrivals:m(),distinctLandingPaths:m()})),dailyTrend:y(h({date:l(),verifiedCrawlerHits:m(),userFetchHits:m(),referralArrivals:m()})),topReferralLandingPaths:y(h({path:l(),arrivals:m(),distinctProducts:m()}))}),jD=h({provider:_(["google","bing"]).nullable(),total:m(),indexed:m(),notIndexed:m(),deindexed:m(),unknown:m(),indexedPct:m()}),AD=h({runId:l(),date:l(),citationRate:m(),citedQueryCount:m(),totalQueryCount:m(),mentionRate:m(),mentionedQueryCount:m(),providerRates:y(h({provider:l(),citationRate:m(),mentionRate:m()}))}),gp=h({id:l(),type:_(["regression","gain","opportunity"]),severity:_(["critical","high","medium","low"]),title:l(),query:l(),provider:l(),recommendation:l().nullable(),createdAt:l(),instanceCount:m()}),ND=h({horizon:_(["immediate","short-term","medium-term"]),title:l(),rationale:l()}),Gs=h({current:m(),prior:m(),deltaAbs:m(),deltaPct:m().nullable(),direction:_(["up","down","flat"]),window:m().optional()}),_D=h({provider:l(),current:m(),prior:m(),deltaAbs:m(),direction:_(["up","down","flat"])}),CD=h({enoughHistory:D(),headline:l(),citationRate:Gs.nullable(),mentionRate:Gs.nullable(),citedQueryCount:Gs.nullable(),mentionedQueryCount:Gs.nullable(),gscClicksDelta:Gs.nullable(),aiReferralsDelta:Gs.nullable(),comparisonWindowDays:m().int().positive(),providerMovements:y(_D),wins:y(gp),regressions:y(gp)});_(["agency","client"]);const zD=_(["agency","client","both"]),ED=_(["immediate","short-term","medium-term"]),DD=_(["high","medium","low"]);_(["positive","caution","negative","neutral"]);const TD=_(["content","competitors","provider","search-demand","indexing","location","monitoring"]),b0=h({audience:zD,priority:m(),horizon:ED,category:TD,title:l(),action:l(),why:y(l()),evidence:y(l()),successMetric:l(),confidence:DD,targetRef:l().optional()}),RD=h({headline:l(),overview:l(),actionItems:y(b0),confidenceNotes:y(l())}),OD=h({title:l(),detail:l(),severity:_(["positive","caution","negative","neutral"]),evidence:y(l())}),qD=h({priorities:y(b0),diagnostics:y(OD)});function eL(e){return e.horizon==="immediate"?"negative":e.confidence==="high"?"caution":e.confidence==="low"?"neutral":"caution"}function tL(e){switch(e){case"critical":return"Critical";case"high":return"High";case"medium":return"Medium";case"low":return"Low"}}function aL(e){switch(e){case"immediate":return"Immediate";case"short-term":return"Short term";case"medium-term":return"Medium term"}}function nL(e){switch(e){case"content":return"Content";case"competitors":return"Competitors";case"provider":return"Provider";case"search-demand":return"Search demand";case"indexing":return"Indexing";case"location":return"Location";case"monitoring":return"Monitoring"}}function iL(e){switch(e){case"high":return"High";case"medium":return"Medium";case"low":return"Low"}}h({meta:lD,executiveSummary:cD,citationScorecard:dD,competitorLandscape:pD,mentionLandscape:fD,aiSourceOrigin:yD,gsc:vD.nullable(),ga:xD.nullable(),socialReferrals:kD.nullable(),aiReferrals:wD.nullable(),serverActivity:SD.nullable(),indexingHealth:jD.nullable(),citationsTrend:y(AD),whatsChanged:CD,insights:y(gp),recommendedNextSteps:y(ND),actionPlan:y(b0),clientSummary:RD,agencyDiagnostics:qD,contentOpportunities:y(Q2),contentGaps:y(F2),groundingSources:y(Z2)});const BD=Ge([Q(60),Q(90)]),MD=_(["earliest","middle","prior","latest"]),Hs=h({clicks:m().int().nonnegative(),impressions:m().int().nonnegative()}),J2=h({name:MD,startDate:l(),endDate:l()}),PD=J2.extend({totals:Hs}),UD=J2.extend({organicSessions:m().int().nonnegative()}),Pm=h({startDate:l(),endDate:l(),observedDays:m().int().nonnegative()}),dc=h({verified:m().int().nonnegative(),claimedUnverified:m().int().nonnegative(),unknownAiLike:m().int().nonnegative()}),$y=h({total:m().int().nonnegative(),paid:m().int().nonnegative(),organic:m().int().nonnegative(),unknown:m().int().nonnegative()});h({contractVersion:Q("organic-evidence/v1"),periodDays:BD,asOfDate:l().nullable(),coverage:h({gsc:D(),ga4:D(),server:D(),visibility:D()}),sourceCoverage:h({gsc:Pm.nullable(),ga4:Pm.nullable(),server:Pm.nullable(),visibility:h({completedAt:l(),ageDays:m().nonnegative()}).nullable()}),gsc:h({propertyTotals:Hs,namedBrand:Hs,namedNonBrand:Hs,suppressedOrUnreportedResidual:Hs,cohorts:y(PD)}).nullable(),ga4:h({organicSessions:m().int().nonnegative(),cohorts:y(UD)}).nullable(),gaAiReferrals:h({paidSessions:m().int().nonnegative(),organicSessions:m().int().nonnegative()}).nullable(),server:h({crawlerHits:dc,userFetchHits:dc,referralSessions:$y}).nullable(),visibility:h({runId:l(),completedAt:l(),ageDays:m().nonnegative(),answerPairs:m().int().nonnegative(),mentionedPairs:m().int().nonnegative(),citedPairs:m().int().nonnegative()}).nullable(),measurement:qN,pages:y(h({path:l(),gsc:Hs,ga4OrganicSessions:m().int().nonnegative(),server:h({crawlerHits:dc,userFetchHits:dc,referralSessions:$y})})),findings:y(h({tone:_(["positive","caution","neutral"]),title:l(),detail:l()})),limitations:y(h({code:l(),detail:l()}))});const LD=_(["claude","codex"]);LD.enum;const ID=_(["claude","codex","all"]);ID.enum;const W2=h({content:m().int().nonnegative(),sitemap:m().int().nonnegative(),robots:m().int().nonnegative(),asset:m().int().nonnegative(),other:m().int().nonnegative()}),VD=_(["content","sitemap","robots","asset","other"]),v0=_(["cloud-run","wordpress","cloudflare","vercel","generic-log"]);v0.enum;const $D=_(["raw-request-events","aggregate-request-metrics","request-url","status-code","user-agent","remote-ip","referer","cursor-pull"]);$D.enum;const GD=_(["raw-request","aggregate-bucket"]),HD=GD.enum,KD=_(["observed","provider-aggregated","inferred"]),QD=KD.enum,ZD=h({type:l().nullable(),labels:Me(l(),l())}),FD=h({sourceType:v0,evidenceKind:Q(HD["raw-request"]),confidence:Q(QD.observed),eventId:l().min(1),observedAt:l().min(1),method:l().nullable(),requestUrl:l().nullable(),host:l().nullable(),path:l().min(1),queryString:l().nullable(),status:m().int().nullable(),userAgent:l().nullable(),remoteIp:l().nullable(),referer:l().nullable(),latencyMs:m().nullable(),requestSizeBytes:m().int().nullable(),responseSizeBytes:m().int().nullable(),providerResource:ZD,providerLabels:Me(l(),l())});h({events:y(FD),rawEntryCount:m().int().nonnegative(),skippedEntryCount:m().int().nonnegative(),nextPageToken:l().optional(),filter:l()});const ex=_(["connected","paused","error","archived"]),sL=ex.enum,tx=_(["oauth","service-account"]);tx.enum;const YD=_(["verified","claimed_unverified","unknown_ai_like"]),oL=YD.enum;h({gcpProjectId:l().min(1),serviceName:l().nullable().optional(),location:l().nullable().optional(),authMode:tx});h({baseUrl:l().url(),username:l().min(1)});const x0=_(["production","preview"]);x0.enum;h({projectId:l().min(1),teamId:l().min(1),environment:x0});const ax=h({id:l(),projectId:l(),sourceType:v0,displayName:l(),status:ex,lastSyncedAt:l().nullable(),lastCursor:l().nullable(),lastError:l().nullable(),skippedThroughAt:l().nullable(),archivedAt:l().nullable(),config:Me(l(),ya()),createdAt:l(),updatedAt:l()});h({gcpProjectId:l().min(1),serviceName:l().min(1).optional(),location:l().min(1).optional(),displayName:l().min(1).optional(),keyJson:l().optional()});h({baseUrl:l().url(),username:l().min(1),applicationPassword:l().min(1),displayName:l().min(1).optional()});h({projectId:l().min(1),teamId:l().min(1),token:l().min(1),environment:x0.optional(),displayName:l().min(1).optional()});h({sourceId:l(),runId:l(),syncedAt:l(),pulledEvents:m().int().nonnegative(),selfTrafficExcluded:m().int().nonnegative(),crawlerHits:m().int().nonnegative(),aiUserFetchHits:m().int().nonnegative(),aiReferralHits:m().int().nonnegative(),unknownHits:m().int().nonnegative(),crawlerBucketRows:m().int().nonnegative(),aiUserFetchBucketRows:m().int().nonnegative(),aiReferralBucketRows:m().int().nonnegative(),sampleRows:m().int().nonnegative(),windowStart:l(),windowEnd:l()});h({days:m().int().positive().optional()});h({advanceToNow:Q(!0)});h({sourceId:l(),runId:l(),status:Si,windowStart:l(),windowEnd:l(),daysRequested:m().int().positive(),daysApplied:m().int().positive()});const XD=h({crawlerHits:m().int().nonnegative(),crawlerContentHits:m().int().nonnegative(),crawlerInfraHits:m().int().nonnegative(),crawlerSegments:W2,aiUserFetchHits:m().int().nonnegative(),aiReferralHits:m().int().nonnegative(),sampleCount:m().int().nonnegative()});h({sources:y(ax)});const JD=ax.extend({totals24h:XD,latestRun:h({runId:l(),status:Si,startedAt:l().nullable(),finishedAt:l().nullable(),error:l().nullable()}).nullable()});h({sources:y(JD)});const WD=_(["crawler","ai-user-fetch","ai-referral"]),k0=WD.enum,nx=_(["hour","day"]);nx.enum;const eT=h({bucket:l(),crawlerHits:m().int().nonnegative(),aiUserFetchHits:m().int().nonnegative(),aiReferralHits:m().int().nonnegative()}),tT=h({kind:Q(k0.crawler),sourceId:l(),tsHour:l(),botId:l(),operator:l(),verificationStatus:l(),pathNormalized:l(),pathClass:VD,status:m().int(),hits:m().int().nonnegative()}),aT=h({kind:Q(k0["ai-user-fetch"]),sourceId:l(),tsHour:l(),botId:l(),operator:l(),verificationStatus:l(),pathNormalized:l(),status:m().int(),hits:m().int().nonnegative()}),nT=h({kind:Q(k0["ai-referral"]),sourceId:l(),tsHour:l(),product:l(),operator:l(),sourceDomain:l(),evidenceType:l(),landingPathNormalized:l(),status:m().int(),hits:m().int().nonnegative(),paidHits:m().int().nonnegative(),organicHits:m().int().nonnegative(),unknownHits:m().int().nonnegative()}),iT=rt("kind",[tT,aT,nT]);h({windowStart:l(),windowEnd:l(),series:h({granularity:nx,points:y(eT)}),totals:h({crawlerHits:m().int().nonnegative(),crawlerContentHits:m().int().nonnegative(),crawlerInfraHits:m().int().nonnegative(),crawlerSegments:W2,aiUserFetchHits:m().int().nonnegative(),aiReferralHits:m().int().nonnegative(),aiReferralPaidHits:m().int().nonnegative(),aiReferralOrganicHits:m().int().nonnegative(),aiReferralUnknownHits:m().int().nonnegative()}),eventRows:h({total:m().int().nonnegative(),returned:m().int().nonnegative(),truncated:D()}),events:y(iT)});const ix=_(["queued","running","completed","partial","failed"]),rL=ix.enum,sx=_(["queued","running","completed","failed"]),lL=sx.enum;h({queries:y(l().trim().min(1).max(4e3)).min(1).max(50),provider:l().trim().min(1).optional(),model:l().trim().min(1).max(200).optional(),location:ra.nullable().optional(),idempotencyKey:l().trim().min(1).max(128).optional()}).superRefine((e,n)=>{e.model&&!e.provider&&n.addIssue({code:pt.custom,path:["provider"],message:"provider is required when model is supplied"})});const ox=h({id:l(),projectId:l(),status:ix,provider:l(),requestedModel:l().nullable(),resolvedModel:l(),location:ra.nullable(),totalQueries:m().int(),completedQueries:m().int(),failedQueries:m().int(),error:l().nullable(),startedAt:l().nullable(),finishedAt:l().nullable(),createdAt:l()}),sT=h({id:l(),position:m().int(),query:l(),status:sx,requestedModel:l().nullable(),resolvedModel:l(),servedModel:l().nullable(),answerText:l().nullable(),groundingSources:y(Zc),citedDomains:y(l()),searchQueries:y(l()),namedCompetitors:y(l()).default([]),citedCompetitorDomains:y(l()).default([]),answerMentioned:D().nullable(),citationState:Rn.nullable(),error:l().nullable(),startedAt:l().nullable(),finishedAt:l().nullable(),createdAt:l()});ox.extend({queries:y(sT)});h({runs:y(ox)});h({apiKey:l().min(1)});h({id:l(),name:l(),status:l(),currencyCode:l().nullable(),timezone:l().nullable(),url:l().nullable(),reviewStatus:l().nullable(),integrityReviewStatus:l().nullable(),integrityDecision:l().nullable()});h({q:l().trim().min(1).max(200),limit:m().int().min(1).max(100).default(20)});const oT=h({id:l(),type:l(),canonicalName:l(),countryCode:l(),name:l(),regionCode:l().nullable()});h({count:m().int().nonnegative(),query:l(),results:y(oT)});const rT=h({id:l(),clientType:l().optional(),name:l().optional(),pixelId:l().optional()});h({pixels:y(rT)});const lT=h({id:l(),name:l().optional()}),cT=h({id:l(),name:l().optional(),eventType:l().optional(),customEventName:l().nullable().optional(),attributionWindowDays:m().int().positive().optional(),adAccountId:l().optional(),sourceIds:y(l()).optional(),sources:y(lT).optional(),archived:D().optional(),version:m().int().nonnegative().optional()});h({eventSettings:y(cT)});h({connected:D(),adAccountId:l().nullable().optional(),displayName:l().nullable().optional(),currencyCode:l().nullable().optional(),timezone:l().nullable().optional(),status:l().nullable().optional(),reviewStatus:l().nullable().optional(),integrityReviewStatus:l().nullable().optional(),integrityDecision:l().nullable().optional(),lastSyncedAt:l().nullable().optional(),conversionTrackingConfigured:D().optional()});h({disconnected:D()});h({runId:l(),status:l()});const uT=h({type:l().nullable().optional(),title:l().nullable().optional(),body:l().nullable().optional(),targetUrl:l().nullable().optional(),fileId:l().nullable().optional()}),Lr=_(["impressions","clicks"]),dT=Lr.enum,Ir=_(["impression","click"]);Ir.enum;const mT=h({id:l(),adGroupId:l(),name:l(),status:l(),reviewStatus:l().nullable().optional(),creative:uT.nullable().optional(),upstreamUpdatedAt:m().int().nullable().optional(),syncedAt:l().optional()}),pT=h({id:l(),campaignId:l(),name:l(),description:l().nullable().optional(),status:l(),billingEventType:Ge([Ir,me()]).optional(),maxBidMicros:m().int().nullable().optional(),contextHints:y(l()).default([]),ads:y(mT).default([]),upstreamUpdatedAt:m().int().nullable().optional(),syncedAt:l().optional()}),hT=h({id:l(),name:l(),description:l().nullable().optional(),status:l(),startTime:m().int().nullable().optional(),endTime:m().int().nullable().optional(),biddingType:Ge([Lr,me()]).optional(),dailySpendLimitMicros:m().int().nullable().optional(),lifetimeSpendLimitMicros:m().int().nullable().optional(),conversionEventSettingIds:y(l()).default([]),locationIds:y(l()).optional(),adGroups:y(pT).default([]),upstreamUpdatedAt:m().int().nullable().optional(),syncedAt:l().optional()});h({campaigns:y(hT)});const rx=_(["campaign","ad_group"]);rx.enum;const fT=h({level:rx,entityId:l(),date:l(),impressions:m().int(),clicks:m().int(),spendMicros:m().int(),conversions:m().int(),ctr:m().nullable(),cpcMicros:m().int().nullable(),inProgress:D()});h({rows:y(fT),currencyCode:l().nullable().optional()});const lx=h({from:l().nullable(),to:l().nullable(),inProgressDate:l().nullable()}),cx=h({impressions:m().int(),clicks:m().int(),spendMicros:m().int(),conversions:m().int(),ctr:m().nullable(),cpcMicros:m().int().nullable()});h({connected:D(),displayName:l().nullable().optional(),currencyCode:l().nullable().optional(),lastSyncedAt:l().nullable().optional(),campaignCount:m().int(),adGroupCount:m().int(),adCount:m().int(),window:lx,totals:cx});const ux=_(["unavailable","partial","complete"]);ux.enum;const dx=_(["no_ads_connection","connection_not_synced","no_ads_sync","entity_rows_missing_sync_run_id","entity_rows_span_multiple_sync_runs","source_sync_missing","source_sync_not_ads_sync","source_sync_not_completed"]);dx.enum;const mx=_(["unavailable","reported"]);mx.enum;const gT={storedSnapshot:"stored_ads_snapshot"},px=_(["unavailable","partial_snapshot","metrics_unavailable","observed_activity","no_observed_activity"]);px.enum;const yT=h({id:l(),name:l(),status:l(),reviewStatus:l().nullable()}),bT=h({id:l(),name:l(),status:l(),billingEventType:Ge([Ir,me()]),maxBidMicros:m().int().nullable(),contextHints:y(l()),ads:y(yT)}),vT=h({id:l(),name:l(),status:l(),biddingType:Ge([Lr,me()]),dailySpendLimitMicros:m().int().nullable(),lifetimeSpendLimitMicros:m().int().nullable(),conversionEventSettingIds:y(l()),adGroups:y(bT)});h({snapshot:h({status:ux,issue:Ge([dx,me()]),lastSyncedAt:l().nullable(),campaignCount:m().int().nonnegative(),adGroupCount:m().int().nonnegative(),adCount:m().int().nonnegative(),sourceSync:h({runId:l(),status:Si}).nullable()}),historicalCampaignRollups:h({status:mx,window:lx,totals:cx.nullable()}),storedConfiguration:h({basis:Q(gT.storedSnapshot),connection:h({status:l().nullable(),reviewStatus:l().nullable(),integrityReviewStatus:l().nullable(),integrityDecision:l().nullable(),conversionTrackingConfigured:D()}).nullable(),campaigns:y(vT)}),assessment:h({state:px})});const qn=l().min(8).max(128).regex(/^[\w.:-]+$/,"operationKey may contain letters, numbers, dot, underscore, colon, and hyphen"),gt=l().min(1).max(200),as=l().min(3).max(1e3).refine(e=>e.trim().length>0),io=m().int().min(946684800).max(4102444800),so=m().int().positive().max(Number.MAX_SAFE_INTEGER),w0=l().regex(/^[a-f0-9]{64}$/),hx=y(gt).max(100).refine(e=>new Set(e).size===e.length,"conversionEventSettingIds must be unique"),fx=l().url().refine(e=>new URL(e).protocol==="https:",{message:"URL must use https"}),gx=_(["image_upload","campaign_create","campaign_update","campaign_pause","campaign_tree_activate","ad_group_create","ad_group_update","ad_group_pause","ad_create","ad_update","ad_pause"]);gx.enum;const yx=_(["pending","reconciling","succeeded","failed","unknown"]),Xs=yx.enum,bx=_(["known_entity","create_fingerprint","manual_only"]);bx.enum;const vx=_([Xs.pending,Xs.unknown,Xs.reconciling]);vx.enum;const xx=_(["active","paused","archived"]);xx.enum;const kx=_(["file","campaign","ad_group","ad"]);kx.enum;const wx=_(["campaign","ad_group","ad"]);wx.enum;const S0=h({id:gt,expectedUpdatedAt:m().int().nonnegative()}).strict(),xT=S0,Dc=100,kT=S0.extend({ads:y(xT).min(1).max(Dc-1)}).strict(),wT=S0.extend({adGroups:y(kT).min(1).max(Dc-1)}).strict();function ST(e,n){return e<n?-1:e>n?1:0}function Gy(e,n,s){for(let r=1;r<e.length;r+=1)if(ST(e[r-1].id,e[r].id)>=0){s.addIssue({code:"custom",path:n,message:"Activation manifest entities must be uniquely sorted by id"});return}}const Sx=h({campaign:wT}).strict().superRefine((e,n)=>{1+e.campaign.adGroups.reduce((c,f)=>c+1+f.ads.length,0)>Dc&&n.addIssue({code:"custom",path:["campaign"],message:`Activation manifests may contain at most ${Dc} entities`}),Gy(e.campaign.adGroups,["campaign","adGroups"],n);const r=new Set;for(let c=0;c<e.campaign.adGroups.length;c+=1){const f=e.campaign.adGroups[c];Gy(f.ads,["campaign","adGroups",c,"ads"],n);for(let g=0;g<f.ads.length;g+=1){const b=f.ads[g];r.has(b.id)&&n.addIssue({code:"custom",path:["campaign","adGroups",c,"ads",g,"id"],message:"An ad may appear only once in an activation manifest"}),r.add(b.id)}}}),jx=w0,jT=_(["approved","executing","consumed","revoked","expired","unknown"]),Tn=jT.enum,AT=_(["pending","executing","active","failed","rollback_executing","rolled_back","rollback_failed","unknown"]),ji=AT.enum,NT=h({name:as.optional(),description:l().max(4e3).nullable().optional(),status:xx.optional(),startTime:io.nullable().optional(),endTime:io.nullable().optional(),lifetimeSpendLimitMicros:so.min(1e6).optional(),locationIds:y(gt).max(100).optional(),biddingType:Lr.optional(),conversionEventSettingIds:hx.optional(),campaignId:gt.optional(),contextHints:y(l().min(1).max(1e3)).max(100).optional(),maxBidMicros:so.max(1e8).optional(),billingEventType:Ir.optional(),adGroupId:gt.optional(),creativeFingerprint:w0.optional()}).strict();h({operationKey:qn,imageUrl:fx});h({operationKey:qn,name:as,description:l().max(4e3).optional(),startTime:io.optional(),endTime:io.optional(),lifetimeSpendLimitMicros:so.min(1e6),locationIds:y(gt).min(1).max(100),biddingType:Lr.optional(),conversionEventSettingIds:hx.optional()}).superRefine((e,n)=>{e.startTime!==void 0&&e.endTime!==void 0&&e.endTime<=e.startTime&&n.addIssue({code:"custom",path:["endTime"],message:"endTime must be after startTime"}),e.biddingType===dT.clicks&&(e.conversionEventSettingIds===void 0||e.conversionEventSettingIds.length===0)&&n.addIssue({code:"custom",path:["conversionEventSettingIds"],message:"conversionEventSettingIds must be non-empty when biddingType is clicks"})});h({operationKey:qn,campaignId:gt,name:as,description:l().max(4e3).optional(),contextHints:y(l().min(1).max(1e3)).min(1).max(100),maxBidMicros:so.max(1e8),billingEventType:Ir.optional()});const Ax=h({title:l().min(3).max(50),body:l().min(1).max(100),targetUrl:fx,fileId:gt});h({operationKey:qn,adGroupId:gt,name:as,creative:Ax});function j0(e){return Object.keys(e).some(n=>n!=="operationKey"&&n!=="expectedUpdatedAt")}h({operationKey:qn,expectedUpdatedAt:m().int().nonnegative(),name:as.optional(),description:l().max(4e3).nullable().optional(),startTime:io.nullable().optional(),endTime:io.nullable().optional(),lifetimeSpendLimitMicros:so.min(1e6).optional(),locationIds:y(gt).min(1).max(100).optional()}).refine(j0,{message:"At least one campaign field must be updated"});h({operationKey:qn,expectedUpdatedAt:m().int().nonnegative(),name:as.optional(),description:l().max(4e3).nullable().optional(),contextHints:y(l().min(1).max(1e3)).min(1).max(100).optional(),maxBidMicros:so.max(1e8).optional()}).refine(j0,{message:"At least one ad group field must be updated"});h({operationKey:qn,expectedUpdatedAt:m().int().nonnegative(),name:as.optional(),creative:Ax.optional()}).refine(j0,{message:"At least one ad field must be updated"});h({operationKey:qn});const Jc=h({id:l(),adAccountId:l().nullable(),operationKey:l(),kind:gx,state:yx,entityType:Ge([kx,me()]),entityId:l().nullable(),upstreamUpdatedAt:m().int().nullable(),errorCode:l().nullable(),errorMessage:l().nullable(),reconcileStrategy:Ge([bx,me()]),reconcileParentId:gt.nullable(),reconcileFingerprint:w0.nullable(),reconcileFields:NT.nullable(),reconcileAttempts:m().int().nonnegative(),lastReconciledAt:l().nullable(),createdAt:l(),updatedAt:l()});h({operation:Jc,replayed:D()});const ct=Bv({offset:!0}),po={id:gt,projectId:gt,adAccountId:gt,manifestHash:jx,manifest:Sx,executorApiKeyId:gt,approverApiKeyId:gt,expiresAt:ct,approvedAt:ct,createdAt:ct,updatedAt:ct,revocationRequestedAt:ct.nullable()},_T=h({...po,state:Q(Tn.approved),operationId:me(),executionStartedAt:me(),consumedAt:me(),revokedAt:me(),expiredAt:me()}).strict(),CT=h({...po,state:Q(Tn.executing),operationId:gt,executionStartedAt:ct,consumedAt:me(),revokedAt:me(),expiredAt:me()}).strict(),zT=h({...po,state:Q(Tn.consumed),operationId:gt,executionStartedAt:ct,consumedAt:ct,revokedAt:me(),expiredAt:me()}).strict(),ET=h({...po,state:Q(Tn.revoked),operationId:me(),executionStartedAt:me(),consumedAt:me(),revokedAt:ct,expiredAt:me()}).strict(),DT=h({...po,state:Q(Tn.expired),operationId:me(),executionStartedAt:me(),consumedAt:me(),revokedAt:me(),expiredAt:ct}).strict(),TT=h({...po,state:Q(Tn.unknown),operationId:gt,executionStartedAt:ct,consumedAt:me(),revokedAt:me(),expiredAt:me()}).strict(),Nx=rt("state",[_T,CT,zT,ET,DT,TT]).superRefine((e,n)=>{e.executorApiKeyId===e.approverApiKeyId&&n.addIssue({code:"custom",path:["executorApiKeyId"],message:"The activation executor must use a different API key from the approver"}),e.revocationRequestedAt!==null&&e.state!==Tn.executing&&e.state!==Tn.unknown&&e.state!==Tn.consumed&&n.addIssue({code:"custom",path:["revocationRequestedAt"],message:"Only an executing, cancelled, or unresolved activation can carry a cancellation request"})}),Ai={id:gt,operationId:gt,ordinal:m().int().nonnegative(),entityType:wx,entityId:gt,expectedUpdatedAt:m().int().nonnegative(),createdAt:ct,updatedAt:ct},Vr={errorCode:me(),errorMessage:me()},A0={errorCode:l().min(1).max(100),errorMessage:l().min(1).max(500),remediation:l().min(1).max(500)},RT=h({...Ai,...Vr,state:Q(ji.pending),providerUpdatedAt:me(),remediation:me(),startedAt:me(),finishedAt:me()}).strict(),OT=h({...Ai,...Vr,state:Q(ji.executing),providerUpdatedAt:me(),remediation:me(),startedAt:ct,finishedAt:me()}).strict(),qT=h({...Ai,...Vr,state:Q(ji.active),providerUpdatedAt:m().int().nonnegative(),remediation:me(),startedAt:ct,finishedAt:ct}).strict(),BT=h({...Ai,...A0,state:Q(ji.failed),providerUpdatedAt:Ge([m().int().nonnegative(),me()]),startedAt:ct,finishedAt:ct}).strict(),MT=h({...Ai,...Vr,state:Q(ji.rollback_executing),providerUpdatedAt:m().int().nonnegative(),remediation:l().min(1).max(500),startedAt:ct,finishedAt:me()}).strict(),PT=h({...Ai,...Vr,state:Q(ji.rolled_back),providerUpdatedAt:m().int().nonnegative(),remediation:l().min(1).max(500),startedAt:ct,finishedAt:ct}).strict(),UT=h({...Ai,...A0,state:Q(ji.rollback_failed),providerUpdatedAt:m().int().nonnegative(),startedAt:ct,finishedAt:ct}).strict(),LT=h({...Ai,...A0,state:Q(ji.unknown),providerUpdatedAt:Ge([m().int().nonnegative(),me()]),startedAt:ct,finishedAt:ct}).strict(),IT=rt("state",[RT,OT,qT,BT,MT,PT,UT,LT]),yp={exact:"exact",refreshSemanticallyUnchanged:"refresh_semantically_unchanged"},VT=_([yp.exact,yp.refreshSemanticallyUnchanged]);h({manifest:Sx,executorApiKeyId:gt,expiresAt:ct,versionPolicy:VT.default(yp.exact)}).strict();h({grant:Nx}).strict();h({}).strict();h({operationKey:qn,grantId:gt,manifestHash:jx}).strict();h({grant:Nx,operation:Jc,steps:y(IT)}).strict();const $T=[Xs.pending,Xs.unknown,Xs.reconciling];function GT(e){if(e===void 0||e==="")return $T;if(Array.isArray(e)){const n=[];for(const s of e)typeof s=="string"?n.push(...s.split(",")):n.push(s);return n}return typeof e=="string"?e.split(",").filter(Boolean):e}h({state:jN(GT,y(vx).min(1).max(3).refine(e=>new Set(e).size===e.length,"state values must be unique")),limit:$v().int().min(1).max(200).default(100),cursor:l().min(1).max(1e3).optional()});h({operations:y(Jc),count:m().int().nonnegative(),nextCursor:l().nullable()});h({}).strict();h({operation:Jc,resolved:D()});h({campaignId:l().min(1).max(200).optional(),lookbackDays:$v().int().min(1).max(30).default(7)});const _x=_(["campaign","ad_group","ad"]);_x.enum;const Cx=_(["both","live-only","stored-only"]);Cx.enum;const HT=Q("live-provider-read"),KT=h({date:l().nullable(),startTime:m().nullable(),endTime:m().nullable(),impressions:m().nullable(),clicks:m().nullable(),spend:m().nullable(),conversions:m().nullable(),ctr:m().nullable(),cpc:m().nullable(),cpm:m().nullable()}),Hy=h({impressions:m().int(),clicks:m().int(),spendMicros:m().int(),conversions:m().int()}),QT=h({date:l(),live:Hy.nullable(),stored:Hy.nullable(),drifted:D()}),ZT=h({field:l(),live:l().nullable(),stored:l().nullable()}),FT=h({name:l().nullable(),status:l(),reviewStatus:l().nullable(),mode:l().nullable(),updatedAt:m().nullable()}),YT=h({name:l(),status:l(),reviewStatus:l().nullable(),upstreamUpdatedAt:m().nullable(),syncedAt:l()}),XT=h({entityType:_x,id:l(),parentId:l().nullable(),presence:Cx,live:FT.nullable(),stored:YT.nullable(),fieldDeltas:y(ZT),liveMetrics:y(KT).nullable(),metricDeltas:y(QT).nullable(),drifted:D()}),JT=h({surface:l(),entityId:l().nullable(),upstreamStatus:m().int().nullable()});h({basis:HT,fetchedAt:l(),adAccountId:l(),storedSnapshotSyncedAt:l().nullable(),metricsWindow:h({lookbackDays:m().int().positive()}),bounds:h({maxCampaigns:m().int().positive(),maxAdGroupsPerCampaign:m().int().positive(),maxAdsPerAdGroup:m().int().positive(),maxReaderCalls:m().int().positive(),readerCalls:m().int().nonnegative(),maxPagesPerReaderCall:m().int().positive(),maxUpstreamHttpRequests:m().int().positive(),truncated:D()}),entities:y(XT),drift:h({entitiesCompared:m().int().nonnegative(),driftedEntities:m().int().nonnegative(),statusDrifted:m().int().nonnegative(),metricsDrifted:m().int().nonnegative()}),errors:y(JT)});const zx=_(["admin","viewer"]),WT=/^[a-z\d][\w.-]{0,63}$/i,eR=l().regex(WT,"A name may use letters, digits, dots, dashes and underscores, and must start with a letter or digit."),Ky=12,tR=l().min(Ky,`A password must be at least ${Ky} characters.`),Ex=h({id:l(),name:l(),role:zx,createdAt:l(),lastLoginAt:l().nullable()});h({users:y(Ex)});h({name:eR,password:tR,role:zx});h({name:l().min(1),password:l().min(1)});h({authRequired:D(),user:Ex.pick({name:!0,role:!0}).nullable()});const At=1,Um=_(["system","project","queries","competitors","run"]),Lm=_(["0","1","2-3","4-5","6-10","11+"]);function cn(e){return!Number.isFinite(e)||e<=0?"0":e<2?"1":e<4?"2-3":e<6?"4-5":e<11?"6-10":"11+"}const Qy=_(["api_unavailable","database_unavailable","worker_unavailable","no_provider","no_queries","provider_save_failed","project_create_failed","query_save_failed","run_rejected","run_failed","run_cancelled","unknown"]),mc=h({eventId:l().uuid(),flowVersion:Q(At),onboardingSessionId:l().uuid()});rt("event",[mc.extend({event:Q("onboarding.started"),step:Um,resumed:D()}).strict(),mc.extend({event:Q("onboarding.step_completed"),step:Um,method:_(["existing","inline","manual","generated","skipped","automatic"]),countBucket:Lm.optional()}).strict(),mc.extend({event:Q("onboarding.blocked"),step:Um,action:_(["continue","configure_provider","generate_queries","save","launch_run","retry_run"]),reasonCode:Qy}).strict(),mc.extend({event:Q("run.requested"),origin:Q("dashboard_setup"),result:_(["queued","rejected"]),providerCountBucket:Lm,queryCountBucket:Lm,reasonCode:Qy.optional()}).strict()]);h({accepted:D()});const aR=4;function nR(e){return e.length<aR}var iR=(e=>(e.Clicks="clicks",e.Impressions="impressions",e.CTR="ctr",e.Position="position",e))(iR||{});const cL={clicks:"Clicks",impressions:"Impressions",ctr:"CTR",position:"Position"},uL={clicks:"Clicks",impressions:"Impr",ctr:"CTR",position:"Pos"},sR=o0;function oR(e){const n=[];if(e.message&&n.push(e.message),e.providers)for(const[s,r]of Object.entries(e.providers)){const c=`[${s}] ${r.message}`;r.raw!==void 0?n.push(`${c}
53
+
54
+ ${JSON.stringify(r.raw,null,2)}`):n.push(c)}return n.length>0?n.join(`
55
+
56
+ `):"Run failed."}function rR(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}function dL(e){if(!e)return"—";try{return new Date(e).toLocaleString()}catch{return e}}function mL(e){return e===null?"Unknown":e?"Pass":"Fail"}function Zy(e){return e===0?"12:00 AM":e<12?`${e}:00 AM`:e===12?"12:00 PM":`${e-12}:00 PM`}function pL(e,n){return e==="twice-daily"?"twice-daily":e.startsWith("weekly@")?`${e}@${n}`:`daily@${n}`}function hL(e,n){if(!e)return{freq:"custom",hour:6,customCron:n};if(e==="twice-daily")return{freq:"twice-daily",hour:6,customCron:""};const s=e.match(/^daily(?:@(\d+))?$/);if(s)return{freq:"daily",hour:s[1]?parseInt(s[1]):6,customCron:""};const r=e.match(/^(weekly@(?:mon|tue|wed|thu|fri|sat|sun))(?:@(\d+))?$/);return r?{freq:r[1],hour:r[2]?parseInt(r[2]):6,customCron:""}:{freq:"custom",hour:6,customCron:n}}function fL(e,n,s){const r=s==="UTC"?"UTC":s.split("/").pop()?.replace(/_/g," ")??s;if(!e)return`Custom: ${n} · ${r}`;if(e==="twice-daily")return`Twice a day (6am & 6pm) · ${r}`;const c=e.match(/^daily(?:@(\d+))?$/);if(c){const g=c[1]?parseInt(c[1]):6;return`Every day at ${Zy(g)} · ${r}`}const f=e.match(/^weekly@(mon|tue|wed|thu|fri|sat|sun)(?:@(\d+))?$/);if(f){const g={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"},b=f[2]?parseInt(f[2]):6;return`Every ${g[f[1]]} at ${Zy(b)} · ${r}`}return`${e} · ${r}`}function lR(e,n){return n&&n!==e?`${e} · ${n}`:e}function gL(){const e=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Intl.DateTimeFormat("en-US",{timeZoneName:"short"}).formatToParts().find(s=>s.type==="timeZoneName")?.value;return lR(e,n)}function cR(e){const n=e.replace(/\/+$/,"")||"/";return n==="/"?"overview":n==="/projects"?"projects":n.startsWith("/projects/")?"project":n==="/runs"?"runs":n==="/traffic"||n.startsWith("/traffic/")?"traffic":n==="/backlinks"?"backlinks":n==="/settings"?"settings":n==="/setup"?"setup":"other"}function uR(e,n){return!n||n.includes(e)}const Dx=["overview","search-console","local","discovery","report","activity","backlinks","technical-aeo","history","settings"],dR=new Set(Dx);function yL(e){const n=e??Dx,s=[...new Set(n.filter(r=>dR.has(r)))];return s.length>0?s:["overview"]}function bL(e,n){return uR(e,n)||!n?e:n.includes("overview")?"overview":n[0]??"overview"}const Fy={bg:"--canonry-embed-bg",fg:"--canonry-embed-fg",accent:"--color-link"},mR=/^(?:#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})|rgba?\([0-9.,%\s/]+\)|hsla?\([0-9.,%\s/a-z]+\))$/i,pR=/^[a-z0-9][a-z0-9 -]{0,48}$/i;function Tx(e){const n=e?.font?.trim();return n&&pR.test(n)?n:void 0}function hR(e){const n=e?.mode?.trim();return n==="light"||n==="dark"?n:void 0}function fR(e){if(!e)return{};const n={};for(const[r,c]of Object.entries(e)){const f=Object.hasOwn(Fy,r)?Fy[r]:void 0;if(!f||typeof c!="string")continue;const g=c.trim();mR.test(g)&&(n[f]=g)}const s=Tx(e);return s&&(n["--font-sans"]=`"${s}", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif`),n}function gR(e){const n=Tx(e);if(n)return`https://fonts.googleapis.com/css2?family=${n.replace(/ /g,"+")}:wght@400;500;600;700&display=swap`}const ke=(e,n,s,r)=>{const c={_id:e,baseUrl:n?.baseUrl||(n?.client??B).getConfig().baseUrl};return s&&(c._infinite=s),n?.body&&(c.body=n.body),n?.headers&&(c.headers=n.headers),n?.path&&(c.path=n.path),n?.query&&(c.query=n.query),[c]},yR=e=>ke("getApiV1ProjectsByName",e),bR=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Hb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:yR(e)}),vR=e=>ke("getApiV1ProjectsByNameMeasurementPlan",e),vL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await zS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:vR(e)}),xR=e=>ke("getApiV1ProjectsByNameMeasurementReport",e),xL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await ES({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:xR(e)}),kR=e=>ke("getApiV1ProjectsByNameMeasurementSetup",e),kL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await DS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:kR(e)}),Rx=(e,n)=>{const s={...e[0]};return n.body&&(s.body={...e[0].body,...n.body}),n.headers&&(s.headers={...e[0].headers,...n.headers}),n.path&&(s.path={...e[0].path,...n.path}),n.query&&(s.query={...e[0].query,...n.query}),s},wR=e=>ke("getApiV1ProjectsByNameMeasurementOverview",e),wL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Kb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:wR(e)}),SR=e=>ke("getApiV1ProjectsByNameMeasurementOverview",e,!0),SL=e=>Nb({queryFn:async({pageParam:n,queryKey:s,signal:r})=>{const f=Rx(s,typeof n=="object"?n:{query:{cursor:n}}),{data:g}=await Kb({...e,...f,signal:r,throwOnError:!0});return g},queryKey:SR(e)}),jR=e=>ke("getApiV1ProjectsByNameMeasurementPropertyEvidence",e,!0),jL=e=>Nb({queryFn:async({pageParam:n,queryKey:s,signal:r})=>{const f=Rx(s,typeof n=="object"?n:{query:{cursor:n}}),{data:g}=await TS({...e,...f,signal:r,throwOnError:!0});return g},queryKey:jR(e)}),AR=e=>ke("getApiV1ProjectsByNameMeasurementQuestionResult",e),AL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await RS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:AR(e)}),NR=e=>ke("getApiV1ProjectsByNameMeasurementPropertyCompetitors",e),NL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await OS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:NR(e)}),ho=e=>ke("getApiV1Projects",e),Wc=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await qS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:ho(e)}),_R=e=>ke("getApiV1ProjectsByNameResearchRuns",e),_L=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await BS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:_R(e)}),CL=e=>({mutationFn:async s=>{const{data:r}=await MS({...e,...s,throwOnError:!0});return r}}),CR=e=>ke("getApiV1ProjectsByNameResearchRunsByRunId",e),zL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await PS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:CR(e)}),zR=e=>ke("getApiV1ProjectsByNameQueries",e),EL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Qb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:zR(e)}),ER=e=>ke("getApiV1ProjectsByNameRuns",e),DR=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Zb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:ER(e)}),N0=e=>ke("getApiV1Runs",e),_0=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await XS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:N0(e)}),TR=e=>ke("getApiV1RunsById",e),Ox=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Fb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:TR(e)}),RR=e=>ke("getApiV1ProjectsByNameHistory",e),DL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await ej({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:RR(e)}),OR=e=>ke("getApiV1History",e),TL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await tj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:OR(e)}),qR=e=>ke("getApiV1ProjectsByNameSnapshotsDiff",e),RL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await ij({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:qR(e)}),BR=e=>ke("getApiV1Settings",e),MR=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Yb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:BR(e)}),PR=e=>ke("getApiV1ProjectsByNameSchedule",e),OL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Xb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:PR(e)}),UR=e=>ke("getApiV1ProjectsByNameGoogleConnections",e),qL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await yj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:UR(e)}),LR=e=>ke("getApiV1ProjectsByNameGoogleProperties",e),BL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await xj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:LR(e)}),IR=e=>ke("getApiV1ProjectsByNameGoogleGscPerformance",e),ML=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await jj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:IR(e)}),VR=e=>ke("getApiV1ProjectsByNameGoogleGscPerformanceDaily",e),PL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Aj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:VR(e)}),$R=e=>ke("getApiV1ProjectsByNameGoogleGscInspections",e),UL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await _j({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:$R(e)}),GR=e=>ke("getApiV1ProjectsByNameGoogleGscDeindexed",e),LL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Cj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:GR(e)}),HR=e=>ke("getApiV1ProjectsByNameGoogleGscCoverage",e),IL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Jb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:HR(e)}),KR=e=>ke("getApiV1ProjectsByNameGoogleGscCoverageHistory",e),VL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await zj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:KR(e)}),$L=e=>ke("getApiV1ProjectsByNameGoogleGscSitemaps",e),QR=e=>ke("getApiV1ProjectsByNameGbpLocations",e),GL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Rj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:QR(e)}),HL=e=>({mutationFn:async s=>{const{data:r}=await Oj({...e,...s,throwOnError:!0});return r}}),KL=e=>({mutationFn:async s=>{const{data:r}=await qj({...e,...s,throwOnError:!0});return r}}),ZR=e=>ke("getApiV1ProjectsByNameGbpKeywords",e),QL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Bj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:ZR(e)}),FR=e=>ke("getApiV1ProjectsByNameGbpPlaceActions",e),ZL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Mj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:FR(e)}),YR=e=>ke("getApiV1ProjectsByNameGbpLodging",e),FL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Pj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:YR(e)}),XR=e=>ke("getApiV1ProjectsByNameGbpPlaces",e),YL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Uj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:XR(e)}),JR=e=>ke("getApiV1ProjectsByNameGbpSummary",e),XL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Lj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:JR(e)}),WR=e=>ke("getApiV1ProjectsByNameBingStatus",e),JL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await $j({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:WR(e)}),eO=e=>ke("getApiV1ProjectsByNameBingSites",e),WL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Gj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:eO(e)}),tO=e=>ke("getApiV1ProjectsByNameBingCoverage",e),eI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Wb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:tO(e)}),aO=e=>ke("getApiV1ProjectsByNameBingInspections",e),tI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Kj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:aO(e)}),nO=e=>ke("getApiV1ProjectsByNameBingPerformance",e),aI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Yj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:nO(e)}),iO=e=>ke("getApiV1ProjectsByNameGaStatus",e),nI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Wj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:iO(e)}),sO=e=>ke("getApiV1ProjectsByNameGaTraffic",e),iI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await t4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:sO(e)}),oO=e=>ke("getApiV1ProjectsByNameGaAiReferralDaily",e),sI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await a4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:oO(e)}),rO=e=>ke("getApiV1ProjectsByNameGaSocialReferralHistory",e),oI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await n4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:rO(e)}),lO=e=>ke("getApiV1ProjectsByNameGaSessionHistory",e),rI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await i4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:lO(e)}),cO=e=>ke("getApiV1ProjectsByNameReport",e),lI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await o4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:cO(e)}),uO=e=>ke("getApiV1ProjectsByNameHealthHistory",e),cI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await r4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:uO(e)}),dO=e=>ke("getApiV1ProjectsByNameCitationsVisibility",e),uI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await l4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:dO(e)}),mO=e=>ke("getApiV1ProjectsByNameTrafficSources",e),dI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await C4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:mO(e)}),pO=e=>ke("getApiV1ProjectsByNameTrafficStatus",e),mI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await z4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:pO(e)}),hO=e=>ke("getApiV1ProjectsByNameTrafficSourcesById",e),pI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await E4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:hO(e)}),fO=e=>ke("getApiV1ProjectsByNameTrafficEvents",e),hI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await D4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:fO(e)}),gO=e=>ke("getApiV1ProjectsByNameDiscoverSessions",e),fI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await R4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:gO(e)}),yO=e=>ke("getApiV1ProjectsByNameDiscoverSessionsById",e),gI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await O4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:yO(e)}),bO=e=>ke("getApiV1ProjectsByNameDiscoverSessionsByIdPromote",e),yI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await q4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:bO(e)}),vO=e=>ke("getApiV1ProjectsByNameTechnicalAeo",e),bI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await M4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:vO(e)}),xO=e=>ke("getApiV1ProjectsByNameTechnicalAeoPages",e),vI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await P4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:xO(e)}),kO=e=>ke("getApiV1ProjectsByNameTechnicalAeoTrend",e),xI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await U4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:kO(e)}),wO=e=>ke("getApiV1ProjectsByNameAgentProviders",e),SO=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await I4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:wO(e)});function Yy(e){return e.state==="ok"?"positive":e.state==="checking"?"neutral":"negative"}function qx(e){switch(e){case"completed":return"positive";case"partial":return"caution";case"failed":return"negative";case"cancelled":return"caution";case"queued":case"running":return"neutral";default:return"neutral"}}function kI(e){switch(e){case"cited":return"positive";case"emerging":return"caution";case"not-cited":return"caution";case"lost":return"negative";case"pending":return"neutral";default:return"neutral"}}function wI(e){return e==="High"?"negative":e==="Moderate"?"caution":"neutral"}const SI={positive:"text-positive-400",caution:"text-caution-400",negative:"text-negative-400",neutral:"text-secondary"};function jO(e){return e.displayName??e.name.charAt(0).toUpperCase()+e.name.slice(1)}function oo(e){const n=[e.detail,e.hint].filter(Boolean);return n.length>0?n.join(`
57
+ `):void 0}function AO(e,n,s){return e.map(r=>{if(r.id==="api")return{...r,tone:Yy(n.apiStatus),detail:n.apiStatus.state==="ok"?"Healthy":"Needs attention",meta:n.apiStatus.detail};if(r.id==="worker")return{...r,tone:Yy(n.workerStatus),detail:n.workerStatus.state==="ok"?"Healthy":"Needs attention",meta:n.workerStatus.detail};const c=s.providerStatuses.filter(x=>x.state==="ready").length,f=s.providerStatuses.length,g=c>0,b=s.providerStatuses.filter(x=>x.state==="ready").map(x=>jO(x)).join(" · ");return{...r,label:"Providers",tone:g?"positive":"caution",detail:`${c} of ${f} configured`,meta:b||"None configured"}})}function NO(e,n){if(e.apiStatus.state!=="ok")return"Launch is blocked until the API responds cleanly.";if(e.apiStatus.databaseConfigured===!1)return"Launch is blocked until the API has a database connection configured.";if(e.workerStatus.state!=="ok")return"Launch is blocked until the worker is healthy and heartbeats are current.";if(!n.providerStatuses.some(s=>s.state==="ready"))return"Launch is blocked until at least one provider is configured."}function _O(e,n,s){const r=NO(n,s),c=structuredClone(e);return c.healthChecks=c.healthChecks.map(f=>{if(f.id==="api")return{...f,detail:n.apiStatus.detail,state:n.apiStatus.state==="ok"?"ready":"attention"};if(f.id==="worker")return{...f,detail:n.workerStatus.detail,state:n.workerStatus.state==="ok"?"ready":"attention"};const g=s.providerStatuses.some(b=>b.state==="ready");return{...f,detail:g?"At least one provider configured.":"No providers configured.",state:g?"ready":"attention"}}),c.launchState.enabled=r===void 0,c.launchState.blockedReason=r,c.launchState.summary=r??"Queue a visibility sweep first, then follow with a site audit to explain movement.",c}const Bx="canonry.run-tracker",bp=new Set;let Xy=!1,CO=0,eu={runs:{},batches:{}};function zO(){const e=On();for(const n of bp)n(e)}function EO(e){if(!e)return{runs:{},batches:{}};try{const n=JSON.parse(e);return{runs:n.runs??{},batches:n.batches??{}}}catch{return{runs:{},batches:{}}}}function DO(){typeof window>"u"||window.sessionStorage.setItem(Bx,JSON.stringify(eu))}function Mx(){Xy||(Xy=!0,!(typeof window>"u")&&(eu=EO(window.sessionStorage.getItem(Bx))))}function tu(e){eu=e,DO(),zO()}function On(){return Mx(),eu}function Px(e){return Mx(),bp.add(e),()=>{bp.delete(e)}}function C0(e){const n=On();tu({...n,runs:{...n.runs,[e.id]:{runId:e.id,projectId:e.projectId,projectLabel:e.projectLabel,kind:e.kind,sourceAction:e.sourceAction,lastAnnouncedStatus:e.lastAnnouncedStatus??"queued",trackedAt:e.trackedAt??Date.now()}}})}function Im(e){const n=On();if(!n.runs[e])return;const{[e]:s,...r}=n.runs;tu({...n,runs:r})}function TO(e){const n=On(),s=`batch_${Date.now()}_${++CO}`;return tu({...n,batches:{...n.batches,[s]:{batchId:s,runIds:e.runIds,queuedCount:e.queuedCount,skippedCount:e.skippedCount}}}),s}function RO(e){const n=On();if(!n.batches[e])return;const{[e]:s,...r}=n.batches;tu({...n,batches:r})}function OO(e){return e==="completed"||e==="partial"||e==="failed"||e==="cancelled"}const qO=10*6e4;function BO(e,n,s,r){return e.filter(c=>!n.has(c.runId)&&s-(c.trackedAt??0)>=r)}function MO(e,n){let s=0,r=0,c=0,f=0,g=0;for(const b of e){const x=n[b]?.status;x==="completed"?s+=1:x==="partial"?r+=1:x==="failed"?c+=1:x==="cancelled"?f+=1:g+=1}return{completed:s,partial:r,failed:c,cancelled:f,pending:g,finished:g===0}}const Jy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wy=Rb,Ux=(e,n)=>s=>{var r;if(n?.variants==null)return Wy(e,s?.class,s?.className);const{variants:c,defaultVariants:f}=n,g=Object.keys(c).map(k=>{const S=s?.[k],j=f?.[k];if(S===null)return null;const A=Jy(S)||Jy(j);return c[k][A]}),b=s&&Object.entries(s).reduce((k,S)=>{let[j,A]=S;return A===void 0||(k[j]=A),k},{}),x=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((k,S)=>{let{class:j,className:A,...z}=S;return Object.entries(z).every($=>{let[L,P]=$;return Array.isArray(P)?P.includes({...f,...b}[L]):{...f,...b}[L]===P})?[...k,j,A]:k},[]);return Wy(e,g,x,s?.class,s?.className)},PO=(e,n)=>{const s=new Array(e.length+n.length);for(let r=0;r<e.length;r++)s[r]=e[r];for(let r=0;r<n.length;r++)s[e.length+r]=n[r];return s},UO=(e,n)=>({classGroupId:e,validator:n}),Lx=(e=new Map,n=null,s)=>({nextPart:e,validators:n,classGroupId:s}),Tc="-",eb=[],LO="arbitrary..",IO=e=>{const n=$O(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:g=>{if(g.startsWith("[")&&g.endsWith("]"))return VO(g);const b=g.split(Tc),x=b[0]===""&&b.length>1?1:0;return Ix(b,x,n)},getConflictingClassGroupIds:(g,b)=>{if(b){const x=r[g],k=s[g];return x?k?PO(k,x):x:k||eb}return s[g]||eb}}},Ix=(e,n,s)=>{if(e.length-n===0)return s.classGroupId;const c=e[n],f=s.nextPart.get(c);if(f){const k=Ix(e,n+1,f);if(k)return k}const g=s.validators;if(g===null)return;const b=n===0?e.join(Tc):e.slice(n).join(Tc),x=g.length;for(let k=0;k<x;k++){const S=g[k];if(S.validator(b))return S.classGroupId}},VO=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),s=n.indexOf(":"),r=n.slice(0,s);return r?LO+r:void 0})(),$O=e=>{const{theme:n,classGroups:s}=e;return GO(s,n)},GO=(e,n)=>{const s=Lx();for(const r in e){const c=e[r];z0(c,s,r,n)}return s},z0=(e,n,s,r)=>{const c=e.length;for(let f=0;f<c;f++){const g=e[f];HO(g,n,s,r)}},HO=(e,n,s,r)=>{if(typeof e=="string"){KO(e,n,s);return}if(typeof e=="function"){QO(e,n,s,r);return}ZO(e,n,s,r)},KO=(e,n,s)=>{const r=e===""?n:Vx(n,e);r.classGroupId=s},QO=(e,n,s,r)=>{if(FO(e)){z0(e(r),n,s,r);return}n.validators===null&&(n.validators=[]),n.validators.push(UO(s,e))},ZO=(e,n,s,r)=>{const c=Object.entries(e),f=c.length;for(let g=0;g<f;g++){const[b,x]=c[g];z0(x,Vx(n,b),s,r)}},Vx=(e,n)=>{let s=e;const r=n.split(Tc),c=r.length;for(let f=0;f<c;f++){const g=r[f];let b=s.nextPart.get(g);b||(b=Lx(),s.nextPart.set(g,b)),s=b}return s},FO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,YO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),r=Object.create(null);const c=(f,g)=>{s[f]=g,n++,n>e&&(n=0,r=s,s=Object.create(null))};return{get(f){let g=s[f];if(g!==void 0)return g;if((g=r[f])!==void 0)return c(f,g),g},set(f,g){f in s?s[f]=g:c(f,g)}}},vp="!",tb=":",XO=[],ab=(e,n,s,r,c)=>({modifiers:e,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:r,isExternal:c}),JO=e=>{const{prefix:n,experimentalParseClassName:s}=e;let r=c=>{const f=[];let g=0,b=0,x=0,k;const S=c.length;for(let L=0;L<S;L++){const P=c[L];if(g===0&&b===0){if(P===tb){f.push(c.slice(x,L)),x=L+1;continue}if(P==="/"){k=L;continue}}P==="["?g++:P==="]"?g--:P==="("?b++:P===")"&&b--}const j=f.length===0?c:c.slice(x);let A=j,z=!1;j.endsWith(vp)?(A=j.slice(0,-1),z=!0):j.startsWith(vp)&&(A=j.slice(1),z=!0);const $=k&&k>x?k-x:void 0;return ab(f,z,A,$)};if(n){const c=n+tb,f=r;r=g=>g.startsWith(c)?f(g.slice(c.length)):ab(XO,!1,g,void 0,!0)}if(s){const c=r;r=f=>s({className:f,parseClassName:c})}return r},WO=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((s,r)=>{n.set(s,1e6+r)}),s=>{const r=[];let c=[];for(let f=0;f<s.length;f++){const g=s[f],b=g[0]==="[",x=n.has(g);b||x?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(g)):c.push(g)}return c.length>0&&(c.sort(),r.push(...c)),r}},eq=e=>({cache:YO(e.cacheSize),parseClassName:JO(e),sortModifiers:WO(e),...IO(e)}),tq=/\s+/,aq=(e,n)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=n,g=[],b=e.trim().split(tq);let x="";for(let k=b.length-1;k>=0;k-=1){const S=b[k],{isExternal:j,modifiers:A,hasImportantModifier:z,baseClassName:$,maybePostfixModifierPosition:L}=s(S);if(j){x=S+(x.length>0?" "+x:x);continue}let P=!!L,V=r(P?$.substring(0,L):$);if(!V){if(!P){x=S+(x.length>0?" "+x:x);continue}if(V=r($),!V){x=S+(x.length>0?" "+x:x);continue}P=!1}const ne=A.length===0?"":A.length===1?A[0]:f(A).join(":"),J=z?ne+vp:ne,ee=J+V;if(g.indexOf(ee)>-1)continue;g.push(ee);const re=c(V,P);for(let he=0;he<re.length;++he){const q=re[he];g.push(J+q)}x=S+(x.length>0?" "+x:x)}return x},nq=(...e)=>{let n=0,s,r,c="";for(;n<e.length;)(s=e[n++])&&(r=$x(s))&&(c&&(c+=" "),c+=r);return c},$x=e=>{if(typeof e=="string")return e;let n,s="";for(let r=0;r<e.length;r++)e[r]&&(n=$x(e[r]))&&(s&&(s+=" "),s+=n);return s},iq=(e,...n)=>{let s,r,c,f;const g=x=>{const k=n.reduce((S,j)=>j(S),e());return s=eq(k),r=s.cache.get,c=s.cache.set,f=b,b(x)},b=x=>{const k=r(x);if(k)return k;const S=aq(x,s);return c(x,S),S};return f=g,(...x)=>f(nq(...x))},sq=[],Bt=e=>{const n=s=>s[e]||sq;return n.isThemeGetter=!0,n},Gx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oq=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lq=/\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$/,cq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mi=e=>oq.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),pi=e=>!!e&&Number.isInteger(Number(e)),Vm=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),En=e=>rq.test(e),Kx=()=>!0,mq=e=>lq.test(e)&&!cq.test(e),E0=()=>!1,pq=e=>uq.test(e),hq=e=>dq.test(e),fq=e=>!ye(e)&&!ve(e),gq=e=>Ni(e,Fx,E0),ye=e=>Gx.test(e),Yi=e=>Ni(e,Yx,mq),nb=e=>Ni(e,jq,Pe),yq=e=>Ni(e,Jx,Kx),bq=e=>Ni(e,Xx,E0),ib=e=>Ni(e,Qx,E0),vq=e=>Ni(e,Zx,hq),pc=e=>Ni(e,Wx,pq),ve=e=>Hx.test(e),vr=e=>ns(e,Yx),xq=e=>ns(e,Xx),sb=e=>ns(e,Qx),kq=e=>ns(e,Fx),wq=e=>ns(e,Zx),hc=e=>ns(e,Wx,!0),Sq=e=>ns(e,Jx,!0),Ni=(e,n,s)=>{const r=Gx.exec(e);return r?r[1]?n(r[1]):s(r[2]):!1},ns=(e,n,s=!1)=>{const r=Hx.exec(e);return r?r[1]?n(r[1]):s:!1},Qx=e=>e==="position"||e==="percentage",Zx=e=>e==="image"||e==="url",Fx=e=>e==="length"||e==="size"||e==="bg-size",Yx=e=>e==="length",jq=e=>e==="number",Xx=e=>e==="family-name",Jx=e=>e==="number"||e==="weight",Wx=e=>e==="shadow",Aq=()=>{const e=Bt("color"),n=Bt("font"),s=Bt("text"),r=Bt("font-weight"),c=Bt("tracking"),f=Bt("leading"),g=Bt("breakpoint"),b=Bt("container"),x=Bt("spacing"),k=Bt("radius"),S=Bt("shadow"),j=Bt("inset-shadow"),A=Bt("text-shadow"),z=Bt("drop-shadow"),$=Bt("blur"),L=Bt("perspective"),P=Bt("aspect"),V=Bt("ease"),ne=Bt("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],re=()=>[...ee(),ve,ye],he=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],ae=()=>[ve,ye,x],Ae=()=>[mi,"full","auto",...ae()],de=()=>[pi,"none","subgrid",ve,ye],ge=()=>["auto",{span:["full",pi,ve,ye]},pi,ve,ye],qe=()=>[pi,"auto",ve,ye],De=()=>["auto","min","max","fr",ve,ye],at=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...ae()],ie=()=>[mi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ae()],ue=()=>[mi,"screen","full","dvw","lvw","svw","min","max","fit",...ae()],_e=()=>[mi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...ae()],le=()=>[e,ve,ye],He=()=>[...ee(),sb,ib,{position:[ve,ye]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",kq,gq,{size:[ve,ye]}],K=()=>[Vm,vr,Yi],te=()=>["","none","full",k,ve,ye],se=()=>["",Pe,vr,Yi],Ce=()=>["solid","dashed","dotted","double"],lt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>[Pe,Vm,sb,ib],Ke=()=>["","none",$,ve,ye],Ye=()=>["none",Pe,ve,ye],Ut=()=>["none",Pe,ve,ye],Ea=()=>[Pe,ve,ye],It=()=>[mi,"full",...ae()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[En],breakpoint:[En],color:[Kx],container:[En],"drop-shadow":[En],ease:["in","out","in-out"],font:[fq],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[En],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[En],shadow:[En],spacing:["px",Pe],text:[En],"text-shadow":[En],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mi,ye,ve,P]}],container:["container"],columns:[{columns:[Pe,ye,ve,b]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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:re()}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Ae()}],"inset-x":[{"inset-x":Ae()}],"inset-y":[{"inset-y":Ae()}],start:[{"inset-s":Ae(),start:Ae()}],end:[{"inset-e":Ae(),end:Ae()}],"inset-bs":[{"inset-bs":Ae()}],"inset-be":[{"inset-be":Ae()}],top:[{top:Ae()}],right:[{right:Ae()}],bottom:[{bottom:Ae()}],left:[{left:Ae()}],visibility:["visible","invisible","collapse"],z:[{z:[pi,"auto",ve,ye]}],basis:[{basis:[mi,"full","auto",b,...ae()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,mi,"auto","initial","none",ye]}],grow:[{grow:["",Pe,ve,ye]}],shrink:[{shrink:["",Pe,ve,ye]}],order:[{order:[pi,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":qe()}],"col-end":[{"col-end":qe()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":qe()}],"row-end":[{"row-end":qe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:ae()}],"gap-x":[{"gap-x":ae()}],"gap-y":[{"gap-y":ae()}],"justify-content":[{justify:[...at(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...at()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":at()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:ae()}],px:[{px:ae()}],py:[{py:ae()}],ps:[{ps:ae()}],pe:[{pe:ae()}],pbs:[{pbs:ae()}],pbe:[{pbe:ae()}],pt:[{pt:ae()}],pr:[{pr:ae()}],pb:[{pb:ae()}],pl:[{pl:ae()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":ae()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ae()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",..._e()]}],"min-block-size":[{"min-block":["auto",..._e()]}],"max-block-size":[{"max-block":["none",..._e()]}],w:[{w:[b,"screen",...ie()]}],"min-w":[{"min-w":[b,"screen","none",...ie()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[g]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",s,vr,Yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Sq,yq]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vm,ye]}],"font-family":[{font:[xq,bq,n]}],"font-features":[{"font-features":[ye]}],"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:[c,ve,ye]}],"line-clamp":[{"line-clamp":[Pe,"none",ve,nb]}],leading:[{leading:[f,...ae()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:le()}],"text-color":[{text:le()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ve,Yi]}],"text-decoration-color":[{decoration:le()}],"underline-offset":[{"underline-offset":[Pe,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],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",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:He()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pi,ve,ye],radial:["",ve,ye],conic:[pi,ve,ye]},wq,vq]}],"bg-color":[{bg:le()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:le()}],"gradient-via":[{via:le()}],"gradient-to":[{to:le()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:le()}],"border-color-x":[{"border-x":le()}],"border-color-y":[{"border-y":le()}],"border-color-s":[{"border-s":le()}],"border-color-e":[{"border-e":le()}],"border-color-bs":[{"border-bs":le()}],"border-color-be":[{"border-be":le()}],"border-color-t":[{"border-t":le()}],"border-color-r":[{"border-r":le()}],"border-color-b":[{"border-b":le()}],"border-color-l":[{"border-l":le()}],"divide-color":[{divide:le()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ve,ye]}],"outline-w":[{outline:["",Pe,vr,Yi]}],"outline-color":[{outline:le()}],shadow:[{shadow:["","none",S,hc,pc]}],"shadow-color":[{shadow:le()}],"inset-shadow":[{"inset-shadow":["none",j,hc,pc]}],"inset-shadow-color":[{"inset-shadow":le()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:le()}],"ring-offset-w":[{"ring-offset":[Pe,Yi]}],"ring-offset-color":[{"ring-offset":le()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":le()}],"text-shadow":[{"text-shadow":["none",A,hc,pc]}],"text-shadow-color":[{"text-shadow":le()}],opacity:[{opacity:[Pe,ve,ye]}],"mix-blend":[{"mix-blend":[...lt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":lt()}],"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":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ne()}],"mask-image-linear-from-color":[{"mask-linear-from":le()}],"mask-image-linear-to-color":[{"mask-linear-to":le()}],"mask-image-t-from-pos":[{"mask-t-from":Ne()}],"mask-image-t-to-pos":[{"mask-t-to":Ne()}],"mask-image-t-from-color":[{"mask-t-from":le()}],"mask-image-t-to-color":[{"mask-t-to":le()}],"mask-image-r-from-pos":[{"mask-r-from":Ne()}],"mask-image-r-to-pos":[{"mask-r-to":Ne()}],"mask-image-r-from-color":[{"mask-r-from":le()}],"mask-image-r-to-color":[{"mask-r-to":le()}],"mask-image-b-from-pos":[{"mask-b-from":Ne()}],"mask-image-b-to-pos":[{"mask-b-to":Ne()}],"mask-image-b-from-color":[{"mask-b-from":le()}],"mask-image-b-to-color":[{"mask-b-to":le()}],"mask-image-l-from-pos":[{"mask-l-from":Ne()}],"mask-image-l-to-pos":[{"mask-l-to":Ne()}],"mask-image-l-from-color":[{"mask-l-from":le()}],"mask-image-l-to-color":[{"mask-l-to":le()}],"mask-image-x-from-pos":[{"mask-x-from":Ne()}],"mask-image-x-to-pos":[{"mask-x-to":Ne()}],"mask-image-x-from-color":[{"mask-x-from":le()}],"mask-image-x-to-color":[{"mask-x-to":le()}],"mask-image-y-from-pos":[{"mask-y-from":Ne()}],"mask-image-y-to-pos":[{"mask-y-to":Ne()}],"mask-image-y-from-color":[{"mask-y-from":le()}],"mask-image-y-to-color":[{"mask-y-to":le()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ne()}],"mask-image-radial-from-color":[{"mask-radial-from":le()}],"mask-image-radial-to-color":[{"mask-radial-to":le()}],"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":ee()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ne()}],"mask-image-conic-from-color":[{"mask-conic-from":le()}],"mask-image-conic-to-color":[{"mask-conic-to":le()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:He()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:Ke()}],brightness:[{brightness:[Pe,ve,ye]}],contrast:[{contrast:[Pe,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",z,hc,pc]}],"drop-shadow-color":[{"drop-shadow":le()}],grayscale:[{grayscale:["",Pe,ve,ye]}],"hue-rotate":[{"hue-rotate":[Pe,ve,ye]}],invert:[{invert:["",Pe,ve,ye]}],saturate:[{saturate:[Pe,ve,ye]}],sepia:[{sepia:["",Pe,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ae()}],"border-spacing-x":[{"border-spacing-x":ae()}],"border-spacing-y":[{"border-spacing-y":ae()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ve,ye]}],ease:[{ease:["linear","initial",V,ve,ye]}],delay:[{delay:[Pe,ve,ye]}],animate:[{animate:["none",ne,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[L,ve,ye]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:Ye()}],"rotate-x":[{"rotate-x":Ye()}],"rotate-y":[{"rotate-y":Ye()}],"rotate-z":[{"rotate-z":Ye()}],scale:[{scale:Ut()}],"scale-x":[{"scale-x":Ut()}],"scale-y":[{"scale-y":Ut()}],"scale-z":[{"scale-z":Ut()}],"scale-3d":["scale-3d"],skew:[{skew:Ea()}],"skew-x":[{"skew-x":Ea()}],"skew-y":[{"skew-y":Ea()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:It()}],"translate-x":[{"translate-x":It()}],"translate-y":[{"translate-y":It()}],"translate-z":[{"translate-z":It()}],"translate-none":["translate-none"],accent:[{accent:le()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:le()}],"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",ve,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mbs":[{"scroll-mbs":ae()}],"scroll-mbe":[{"scroll-mbe":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pbs":[{"scroll-pbs":ae()}],"scroll-pbe":[{"scroll-pbe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"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",ve,ye]}],fill:[{fill:["none",...le()]}],"stroke-w":[{stroke:[Pe,vr,Yi,nb]}],stroke:[{stroke:["none",...le()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["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-r","border-w-l"],"border-w-y":["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-r","border-color-l"],"border-color-y":["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-mr","scroll-ml"],"scroll-my":["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-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Nq=iq(Aq);function Va(...e){return Nq(Rb(e))}const _q=Ux("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400 focus-visible:ring-offset-2 focus-visible:ring-offset-overlay-scrim disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-accent text-on-inverse hover:bg-mono-200",secondary:"border border-base bg-bg text-heading hover:bg-bg-elevated",ghost:"text-secondary hover:bg-bg-elevated hover:text-primary",outline:"border border-base bg-transparent text-heading hover:bg-bg-elevated",destructive:"bg-negative-600 text-on-emphasis hover:bg-negative-700"},size:{default:"h-10 px-4 md:h-9",sm:"h-9 px-3 text-xs md:h-8",icon:"size-10 md:size-9"}},defaultVariants:{variant:"default",size:"default"}}),Ee=T.forwardRef(({className:e,variant:n,size:s,asChild:r=!1,...c},f)=>{const g=r?Ow:"button";return u.jsx(g,{ref:f,className:Va(_q({variant:n,size:s,className:e})),...c})});Ee.displayName="Button";const Cq=Ux("inline-flex items-center rounded-md border px-2 py-0.5 text-[11px] font-medium tracking-wide",{variants:{variant:{neutral:"border-base bg-bg text-neutral",success:"border-positive bg-positive-soft text-positive",warning:"border-caution-500/25 bg-caution-soft text-caution",destructive:"border-negative bg-negative-soft text-negative"}},defaultVariants:{variant:"neutral"}});function e3({className:e,variant:n,...s}){return u.jsx("div",{className:Va(Cq({variant:n}),e),...s})}const zq=220;function ob({compact:e=!1,version:n,updateAvailable:s,onDismissUpdate:r}){const c=!e&&n&&n!=="unknown",[f,g]=T.useState(!1),b=!e&&s&&r,x=()=>{g(!0),window.setTimeout(()=>{r?.(),g(!1)},zq)};return e?u.jsxs(Je,{to:"/",className:"brand-lockup brand-lockup-compact","aria-label":"Canonry home",children:[u.jsx("img",{className:"brand-icon",src:"./favicon.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{className:"brand-copy",children:u.jsx("span",{className:"brand-mark",children:"Canonry"})})]}):u.jsxs("div",{className:"brand-lockup brand-lockup-wrapper",children:[u.jsx(Je,{to:"/",className:"brand-icon-link","aria-label":"Canonry home",tabIndex:-1,children:u.jsx("img",{className:"brand-icon",src:"./favicon.svg",alt:"","aria-hidden":"true"})}),u.jsxs("div",{className:"brand-copy",children:[u.jsx(Je,{to:"/",className:"brand-mark",children:"Canonry"}),!b&&c?u.jsxs("span",{className:"brand-version",children:["v",n]}):null]}),b?u.jsxs("span",{className:`brand-update-bubble ${f?"brand-update-bubble-closing":""}`,role:"status","aria-live":"polite",children:[u.jsxs("a",{className:"brand-update-bubble-link",href:s.url,target:"_blank",rel:"noopener noreferrer",title:`Open release: ${s.upgradeCommand}`,"aria-label":`New version v${s.latest} available — open release page`,children:[u.jsxs("span",{className:"brand-update-bubble-from",children:["v",s.current]}),u.jsx(qw,{className:"brand-update-bubble-arrow size-3","aria-hidden":"true"}),u.jsxs("span",{className:"brand-update-bubble-to",children:["v",s.latest]})]}),u.jsx("button",{type:"button",className:"brand-update-bubble-dismiss",onClick:x,"aria-label":`Dismiss update notification for v${s.latest}`,children:u.jsx(ro,{className:"size-3","aria-hidden":"true"})})]}):null]})}function Eq({provider:e}){const n={gemini:"border-blue-800/50 bg-blue-950/40 text-blue-300",openai:"border-green-800/50 bg-green-950/40 text-green-300",claude:"border-amber-800/50 bg-amber-950/40 text-amber-300",perplexity:"border-teal-800/50 bg-teal-950/40 text-teal-300",local:"border-purple-800/50 bg-purple-950/40 text-purple-300"},r=Object.hasOwn(n,e)?`provider-badge--${e} ${n[e]}`:"border-zinc-700 bg-zinc-800 text-zinc-300";return u.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide ${r}`,children:e})}function ga({tone:e,children:n,...s}){const r=e==="positive"?"success":e==="caution"?"warning":e==="negative"?"destructive":"neutral";return u.jsx(e3,{variant:r,...s,children:n})}function D0({status:e}){return u.jsx(ga,{tone:qx(e),children:rR(e)})}const Dq=Tb,Tq=zb,t3=T.forwardRef(({className:e,...n},s)=>u.jsx(wp,{ref:s,className:Va("fixed inset-0 z-50 bg-overlay-scrim/70 backdrop-blur-sm",e),...n}));t3.displayName=wp.displayName;const Rq=400,Oq=1200,qq=720,a3=T.forwardRef(({className:e,children:n,...s},r)=>{const[c,f]=T.useState(qq),g=T.useRef(!1),b=T.useRef(0),x=T.useRef(0),k=T.useCallback(A=>{g.current=!0,b.current=A.clientX,x.current=c,A.target.setPointerCapture(A.pointerId),A.preventDefault()},[c]),S=T.useCallback(A=>{if(!g.current)return;const z=b.current-A.clientX,$=Math.min(Oq,Math.max(Rq,x.current+z));f($)},[]),j=T.useCallback(()=>{g.current=!1},[]);return u.jsxs(Tq,{children:[u.jsx(t3,{}),u.jsxs(Sp,{ref:r,className:Va("fixed z-50 flex flex-col bg-bg px-5 py-4 shadow-2xl overflow-hidden","max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:max-h-[88vh] max-md:rounded-t-2xl max-md:border-t","md:inset-y-0 md:right-0 md:h-full md:border-l","border-base",e),style:{width:`min(${c}px, 100vw)`},...s,children:[u.jsx("div",{className:"absolute inset-y-0 left-0 w-1.5 cursor-col-resize hover:bg-mono-700/50 active:bg-mono-600/50 transition-colors max-md:hidden",onPointerDown:k,onPointerMove:S,onPointerUp:j}),n,u.jsxs(Eb,{className:"absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-muted transition hover:bg-bg-elevated hover:text-heading focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400",children:[u.jsx(ro,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});a3.displayName=Sp.displayName;const Bq=({className:e,...n})=>u.jsx("div",{className:Va("flex flex-col gap-1.5 pr-10",e),...n}),n3=T.forwardRef(({className:e,...n},s)=>u.jsx(jp,{ref:s,className:Va("text-lg font-medium text-primary",e),...n}));n3.displayName=jp.displayName;const i3=T.forwardRef(({className:e,...n},s)=>u.jsx(Db,{ref:s,className:Va("text-sm text-muted",e),...n}));i3.displayName=Db.displayName;function $m({title:e,subtitle:n,children:s,open:r,onClose:c}){return u.jsx(Dq,{open:r,onOpenChange:f=>f?void 0:c(),children:u.jsxs(a3,{children:[u.jsxs(Bq,{className:"drawer-head",children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:n}),u.jsx(n3,{id:"drawer-title",children:e}),u.jsx(i3,{className:"sr-only",children:n})]}),u.jsx("div",{className:"drawer-body",children:s})]})})}function xr({text:e}){const[n,s]=T.useState(null),r=T.useRef(null),c=T.useCallback(()=>{if(!r.current)return;const b=r.current.getBoundingClientRect();s({top:b.top,left:b.left+b.width/2})},[]),f=T.useCallback(()=>s(null),[]),g=T.useCallback(()=>{n===null?c():f()},[n,c,f]);return u.jsxs("span",{className:"info-tooltip-wrapper",onMouseEnter:c,onMouseLeave:f,children:[u.jsx("button",{ref:r,type:"button",className:"info-tooltip-trigger","aria-label":e,"aria-expanded":n!==null,onFocus:c,onBlur:f,onClick:g,onKeyDown:b=>{b.key==="Escape"&&f()},children:u.jsxs("svg",{className:"info-tooltip-icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[u.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M8 7v4M8 5.5v0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),n!==null&&Nw.createPortal(u.jsx("span",{"aria-hidden":"true",style:{position:"fixed",top:n.top,left:n.left,transform:"translateX(-50%) translateY(calc(-100% - 8px))",zIndex:9999,pointerEvents:"none",width:"14rem",padding:"0.5rem 0.75rem",fontSize:"11px",fontWeight:400,textTransform:"none",letterSpacing:"normal",lineHeight:"1rem",color:"var(--color-neutral-text)",backgroundColor:"var(--color-bg-elevated)",border:"1px solid color-mix(in oklab, var(--color-border-strong) 60%, transparent)",borderRadius:"0.5rem",boxShadow:"0 10px 15px -3px var(--color-shadow-tooltip), 0 4px 6px -4px var(--color-shadow-tooltip)"},children:e}),document.body)]})}const Mq=/[\s\-_]+/;function Pq(e){const n=e.split(Mq).filter(Boolean);return n.length===0?null:n.map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("[\\s\\-_]*")}function rb(e,n){const s=Uq(n),r=e.split(/(\*\*[^*]+\*\*)/).filter(Boolean).map(k=>k.startsWith("**")&&k.endsWith("**")?{type:"bold",value:k.slice(2,-2)}:{type:"text",value:k}),c=s.flatMap(k=>k.terms).filter(k=>k.trim().length>1);if(c.length===0)return r.map((k,S)=>k.type==="bold"?$s.createElement("strong",{key:`b-${S}`,className:"text-strong font-semibold"},k.value):k.value).filter(Boolean);const g=[...c].sort((k,S)=>S.length-k.length).map(Pq).filter(k=>!!k);if(g.length===0)return r.map((k,S)=>k.type==="bold"?$s.createElement("strong",{key:`b-${S}`,className:"text-strong font-semibold"},k.value):k.value).filter(Boolean);const b=new RegExp(`(${g.join("|")})`,"gi"),x=new Map;for(const k of s)for(const S of k.terms){const j=Ji(S);j&&!x.has(j)&&x.set(j,k.className)}return r.flatMap((k,S)=>k.value.split(b).map((A,z)=>{if(!A)return null;if(z%2===1){const L=x.get(Ji(A))??"answer-highlight";return k.type==="bold"?$s.createElement("mark",{key:`hl-${S}-${z}`,className:L},$s.createElement("strong",{className:"text-strong font-semibold"},A)):$s.createElement("mark",{key:`hl-${S}-${z}`,className:L},A)}return k.type==="bold"?$s.createElement("strong",{key:`b-${S}-${z}`,className:"text-strong font-semibold"},A):A})).filter(Boolean)}function Uq(e){return e.length===0?[]:typeof e[0]=="string"?[{terms:e,className:"answer-highlight"}]:e}function xp(e){const n=(e??"").trim();return n&&(n.startsWith("/")||/^https?:\/\//i.test(n)||/^mailto:/i.test(n))?n:null}function Gm(e,n){switch(e){case"new":return"First observation";case"emerging":return"First mention";case"lost":return"Lost since last run";default:return n==="mentioned"||n==="visible"?"Mentioned in latest run":n==="pending"?"Awaiting first run":"Not mentioned in latest run"}}function Lq({evidence:e,project:n,onClose:s}){const[r,c]=T.useState(!1),[f,g]=T.useState("mentions"),[b,x]=T.useState(-1),[k,S]=T.useState(null),[j,A]=T.useState(!1),[z,$]=T.useState({}),L=w_(n.project),P=new Set(L.map(rp)),V=e.runHistory,ne=V.length>1,[J,ee]=T.useState(null),re=T.useRef(!1);T.useEffect(()=>{if(re.current||e.answerSnippet&&(e.visibilityState!=null||e.answerMentioned!=null))return;const K=V.at(-1);K&&(re.current=!0,bc(K.runId).then(te=>{const se=te.snapshots?.find(Ce=>Ce.query===e.query&&Ce.provider===e.provider);se&&ee({citationState:se.citationState,answerMentioned:se.answerMentioned,visibilityState:se.visibilityState,visibilityTransition:K.visibilityTransition,provider:se.provider,model:se.model??e.model,answerSnippet:se.answerText??e.answerSnippet,citedDomains:se.citedDomains??e.citedDomains,competitorDomains:se.competitorOverlap??e.competitorDomains,recommendedCompetitors:se.recommendedCompetitors??e.recommendedCompetitors??[],matchedTerms:se.matchedTerms??e.matchedTerms??[],groundingSources:se.groundingSources??e.groundingSources,searchQueries:se.searchQueries,evidenceUrls:[],changeLabel:e.visibilityChangeLabel??e.changeLabel,summary:e.summary})}).catch(()=>{}))},[e,V]);const he=b>=0&&k!==null,q=he?k:J||{citationState:e.citationState,answerMentioned:e.answerMentioned,visibilityState:e.visibilityState,visibilityTransition:V.at(-1)?.visibilityTransition,provider:e.provider,model:e.model,answerSnippet:e.answerSnippet,citedDomains:e.citedDomains,competitorDomains:e.competitorDomains,recommendedCompetitors:e.recommendedCompetitors??[],matchedTerms:e.matchedTerms??[],groundingSources:e.groundingSources,searchQueries:e.searchQueries??[],evidenceUrls:e.evidenceUrls,changeLabel:e.visibilityChangeLabel??e.changeLabel,summary:e.summary},ae=q.visibilityState==="pending"||q.citationState==="pending",Ae=ae?!1:q.visibilityState!=null?q.visibilityState==="visible":q.answerMentioned!=null?q.answerMentioned:q.citationState===zc.cited||q.citationState==="emerging",de=q.answerMentioned!=null||q.visibilityState!=null||q.recommendedCompetitors.length>0,ge=q.citedDomains.length>0||q.groundingSources.length>0||q.evidenceUrls.length>0,qe=n.project.displayName||n.project.name,De=[...L.map(rp),qe,qe.split(" ").slice(0,2).join(" "),...q.matchedTerms].filter(K=>K.trim().length>2),at=[...q.competitorDomains.flatMap(K=>{const te=p_(K);return te.length>=4?[te]:[]}),...q.recommendedCompetitors].filter(K=>K.trim().length>2),pe=[{terms:De,className:"answer-highlight-brand"},...at.length>0?[{terms:at,className:"answer-highlight-competitor"}]:[]],I=ae?"pending":q.visibilityTransition==="lost"?"lost":Ae?"mentioned":"not-mentioned",ie=T.useRef(0),ue=T.useCallback(async K=>{const te=++ie.current;if(K===-1||K===V.length-1){x(-1),S(null),c(!1);return}x(K),c(!1);const se=V[K],Ce=`${se.runId}::${e.query}::${e.provider}`;if(z[Ce]){S(z[Ce]);return}A(!0);try{const lt=await bc(se.runId);if(te!==ie.current)return;const Ne=lt.snapshots?.find(Ye=>Ye.query===e.query&&Ye.provider===e.provider)??lt.snapshots?.find(Ye=>Ye.query===e.query),Ke=Ne?{citationState:Ne.citationState,answerMentioned:Ne.answerMentioned,visibilityState:Ne.visibilityState,visibilityTransition:se.visibilityTransition,provider:Ne.provider,model:Ne.model??null,answerSnippet:Ne.answerText??"",citedDomains:Ne.citedDomains,competitorDomains:Ne.competitorOverlap,recommendedCompetitors:Ne.recommendedCompetitors??[],matchedTerms:Ne.matchedTerms??[],groundingSources:Ne.groundingSources,searchQueries:Ne.searchQueries,evidenceUrls:[],changeLabel:Gm(se.mentionTransition??se.visibilityTransition,se.mentionState??se.visibilityState),summary:""}:{citationState:se.citationState,answerMentioned:se.answerMentioned,visibilityState:se.visibilityState,visibilityTransition:se.visibilityTransition,provider:e.provider,model:se.model??null,answerSnippet:"",citedDomains:[],competitorDomains:[],recommendedCompetitors:[],matchedTerms:[],groundingSources:[],searchQueries:[],evidenceUrls:[],changeLabel:Gm(se.mentionTransition??se.visibilityTransition,se.mentionState??se.visibilityState),summary:"Snapshot data not available for this run."};$(Ye=>({...Ye,[Ce]:Ke})),S(Ke)}catch{if(te!==ie.current)return;S({citationState:se.citationState,answerMentioned:se.answerMentioned,visibilityState:se.visibilityState,visibilityTransition:se.visibilityTransition,provider:e.provider,model:se.model??null,answerSnippet:"",citedDomains:[],competitorDomains:[],recommendedCompetitors:[],matchedTerms:[],groundingSources:[],searchQueries:[],evidenceUrls:[],changeLabel:Gm(se.mentionTransition??se.visibilityTransition,se.mentionState??se.visibilityState),summary:"Failed to load historical run data."})}finally{te===ie.current&&A(!1)}},[V,e.query,e.provider,z]),le=(he||e.historyScope!=="provider")&&q.model?`${q.provider} (${q.model}) · ${q.changeLabel.toLowerCase()}`:`${q.provider} · ${q.changeLabel.toLowerCase()}`,He=!he&&e.historyScope==="provider"?[e.model?`Current model: ${e.model}`:null,e.modelsSeen&&e.modelsSeen.length>1?`History spans ${e.modelsSeen.length} models`:null].filter(Boolean).join(" · "):"",W=Ae?{label:"Mentioned in answer",title:"Your brand or domain is mentioned in this answer",meta:le}:q.visibilityTransition==="lost"?{label:"Mention lost",title:"Your brand no longer appears in this answer",meta:le}:ae?{label:"Pending",title:"Awaiting first run",meta:"No provider data yet"}:{label:"Not mentioned in answer",title:"Your brand or domain was not mentioned in this answer",meta:le},U=()=>{if(!q.answerSnippet)return null;const K=q.answerSnippet.split(`
58
+ `),te=[];let se=[],Ce=0;const lt=()=>{if(se.length===0)return;const Ne=se.join(" ").trim();Ne&&te.push(u.jsx("p",{className:te.length>0?"mt-2.5":"",children:rb(Ne,pe)},Ce++)),se=[]};for(const Ne of K){const Ke=Ne.trim();if(/^[-\u2013\u2014]{3,}$/.test(Ke)){lt(),te.push(u.jsx("hr",{className:"border-default my-3"},Ce++));continue}const Ye=Ke.match(/^(#{1,3})\s+(\S.*)$/);if(Ye){lt();const Ut=Ye[1].length,Ea=Ye[2].replace(/^[\p{Emoji}\p{Emoji_Component}\s]+/u,"").trim()||Ye[2],It=Ut===1?"text-[13px] font-semibold text-heading mt-4 mb-1":Ut===2?"text-xs font-semibold text-strong mt-3 mb-0.5":"text-xs font-medium text-neutral mt-2";te.push(u.jsx("p",{className:It,children:rb(Ea,pe)},Ce++));continue}if(Ke===""){lt();continue}se.push(Ke)}return lt(),te};return u.jsx(Tb,{open:!0,onOpenChange:K=>{K||s()},children:u.jsxs(zb,{children:[u.jsx(wp,{className:"fixed inset-0 z-50 bg-overlay-scrim/80 backdrop-blur-sm"}),u.jsxs(Sp,{className:"evidence-modal","aria-describedby":void 0,children:[u.jsxs("div",{className:"evidence-modal-header",children:[u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("p",{className:"eyebrow eyebrow-soft",children:[n.project.name," ","·"," ",q.provider||"All providers"]}),u.jsx(jp,{className:"text-lg font-semibold text-primary truncate",children:e.query})]}),u.jsxs(Eb,{className:"inline-flex size-8 items-center justify-center rounded-md text-muted transition hover:bg-mono-800 hover:text-heading focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400 shrink-0",children:[u.jsx(ro,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]}),ne&&u.jsxs("div",{className:"evidence-modal-timeline",children:[u.jsx("p",{className:"drawer-section-label mb-1.5",children:"Run history"}),u.jsx("div",{className:"flex items-center gap-1 overflow-x-auto pb-1",children:V.map((K,te)=>{const se=b===-1&&te===V.length-1||b===te,Ce=K.visibilityState??(K.answerMentioned?"visible":"not-visible"),lt=K.visibilityTransition??Ce,Ne=Ce==="visible"?"bg-positive-400":lt==="emerging"?"bg-caution-400":lt==="lost"?"bg-negative-400":"bg-mono-600",Ye=new Date(K.createdAt).toLocaleDateString(void 0,{month:"short",day:"numeric"}),Ut=!!(K.model&&te>0&&V[te-1]?.model&&V[te-1].model!==K.model);return u.jsxs("button",{type:"button",className:`evidence-run-dot ${se?"evidence-run-dot--selected":""}`,onClick:()=>{ue(te===V.length-1?-1:te)},"aria-label":[`Run ${Ye}: ${Ce}`,K.model?`model ${K.model}`:null,Ut?"model changed":null].filter(Boolean).join(" — "),"aria-pressed":se,children:[u.jsx("span",{className:`size-2 rounded-full ${Ne} ${Ut?"ring-1 ring-caution-300/80 ring-offset-2 ring-offset-bg":""}`,"aria-hidden":"true"}),u.jsx("span",{className:"text-[10px] text-muted",children:Ye})]},te)})}),b>=0&&b<V.length&&u.jsxs("p",{className:"text-[11px] text-muted mt-1",children:["Viewing run from ",new Date(V[b].createdAt).toLocaleString()," ","—"," ",u.jsx("span",{className:"capitalize",children:V[b].visibilityState??(V[b].answerMentioned?"visible":"not-visible")}),u.jsxs("button",{type:"button",className:"text-secondary hover:text-strong ml-2",onClick:()=>{ue(-1)},children:["←"," Back to latest"]})]}),!he&&(e.modelTransitions?.length??0)>0&&u.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.modelTransitions.map(K=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-caution-400/30 bg-caution-400/10 px-2 py-1 text-[10px] text-caution-100",children:`${K.fromModel??"unknown"} -> ${K.toModel??"unknown"} on ${new Date(K.createdAt).toLocaleDateString()}`},`${K.runId}:${K.toModel??"unknown"}`))})]}),u.jsxs("div",{className:"evidence-modal-body",children:[j&&u.jsxs("div",{className:"md:col-span-2 flex items-center justify-center py-12 text-muted text-sm",children:["Loading historical run data","…"]}),!j&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"evidence-modal-main",children:[u.jsxs("div",{className:`evidence-position-hero evidence-position-hero--${I}`,children:[u.jsx("p",{className:`evidence-position-label evidence-position-label--${I}`,children:W.label}),u.jsx("p",{className:`evidence-position-title evidence-position-title--${I}`,children:W.title}),u.jsx("p",{className:"evidence-position-meta",children:W.meta}),He&&u.jsx("p",{className:"mt-1 text-[11px] text-muted",children:He})]}),q.answerSnippet&&u.jsxs("div",{children:[u.jsx("p",{className:"drawer-section-label",children:"What the AI said"}),u.jsx("div",{className:`answer-snippet-block ${r?"evidence-answer-expanded":"evidence-answer-collapsed"}`,children:U()}),q.answerSnippet.length>280&&u.jsx("button",{type:"button",className:"mt-1.5 text-xs text-muted hover:text-neutral transition-colors",onClick:()=>c(!r),children:r?"↑ Collapse":"↓ Show full answer"})]}),!q.answerSnippet&&!j&&u.jsx("div",{className:"rounded-lg border border-subtle bg-surface-subtle px-4 py-8 text-center text-faint text-sm",children:"No answer text recorded for this run"}),q.searchQueries.length>0&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Web searches the model ran"}),u.jsx(xr,{text:"The search queries this AI model issued while researching your prompt. They reveal how the model reformulated your query — the phrasings worth optimizing your content for. Distinct from grounding sources (what it found) and citations (what it linked)."})]}),u.jsx("ul",{className:"grid gap-1",children:q.searchQueries.map((K,te)=>u.jsxs("li",{className:"flex items-start gap-2 text-sm text-neutral",children:[u.jsx(Bw,{className:"size-3.5 mt-0.5 shrink-0 text-faint","aria-hidden":"true"}),u.jsx("span",{className:"break-words",children:K})]},`${te}-${K}`))})]}),!he&&e.relatedTechnicalSignals.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"drawer-section-label",children:Ae?"Why you're visible":"What to fix"}),u.jsx("div",{className:"action-items-list",children:e.relatedTechnicalSignals.map((K,te)=>u.jsxs("div",{className:"action-item",children:[u.jsx("svg",{className:`action-item-icon ${Ae?"text-positive-400":"text-caution-400"}`,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:Ae?u.jsx("path",{d:"M3 8l3.5 3.5L13 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}):u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M8 5v3.5M8 10.5v0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),u.jsx("span",{className:"action-item-text",children:K})]},te))})]}),q.summary&&u.jsx("p",{className:"text-xs text-faint border-t border-subtle pt-3 mt-1",children:q.summary})]}),u.jsxs("div",{className:"evidence-modal-sidebar",children:[(de||ge)&&u.jsxs("div",{className:"sidebar-tabs",children:[u.jsx("button",{className:`sidebar-tab ${f==="mentions"?"sidebar-tab--active":""}`,onClick:()=>g("mentions"),type:"button",title:"Canonry's answer-level visibility assessment and any company names extracted from the answer text.",children:"Mentions"}),u.jsx("button",{className:`sidebar-tab ${f==="sources"?"sidebar-tab--active":""}`,onClick:()=>g("sources"),type:"button",title:"Grounding links the model used to build the answer. These are supporting sources, not the primary visibility signal.",children:"Sources"})]}),f==="mentions"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Mention in answer"}),u.jsx(xr,{text:"Canonry scans the AI answer for your owned domains and project name. This is independent from grounding or citation sources."})]}),u.jsxs("div",{className:`mention-status mention-status--${Ae?"mentioned":"not-mentioned"}`,children:[u.jsx("span",{className:"mention-status-icon",children:ae?"…":Ae?"✓":"—"}),u.jsx("span",{className:"mention-status-label",children:ae?"Pending":Ae?"Mentioned":"Not mentioned"})]}),q.matchedTerms.length>0&&u.jsxs("div",{className:"mt-2",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted mb-1.5",children:"Matched in answer"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:q.matchedTerms.map(K=>u.jsx("span",{className:"mention-chip mention-chip--brand",children:K},K))})]}),!ae&&!Ae&&q.matchedTerms.length===0&&u.jsxs("div",{className:"mt-2",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted mb-1.5",children:"Searched for"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:De.map(K=>u.jsx("span",{className:"mention-chip mention-chip--muted",children:K},K))}),u.jsx("p",{className:"text-[11px] text-faint mt-1.5",children:"None of these appear in the answer text."})]})]}),(q.recommendedCompetitors.length>0||q.competitorDomains.length>0)&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Competitors in answer"}),u.jsx(xr,{text:"Competitors detected in the answer text or cited source links. Includes both tracked competitors and names extracted by Canonry."})]}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:(()=>{const K=q.competitorDomains.map(Ce=>Ce.replace(/^www\./,"")),te=new Set(K.map(Ce=>Ji(Ce.replace(/\.[^.]+$/,""))));return[...q.recommendedCompetitors.filter(Ce=>!te.has(Ji(Ce))),...K].map(Ce=>u.jsx("span",{className:"mention-chip mention-chip--competitor",children:Ce},Ce))})()})]})]}),f==="sources"&&u.jsxs(u.Fragment,{children:[q.citedDomains.length>0&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Domains from source links"}),u.jsx(xr,{text:"These domains were extracted from grounding or citation URLs. They are supporting-source metadata, not proof that the answer text mentioned them."})]}),u.jsx("div",{className:"citation-leaderboard",children:q.citedDomains.map((K,te)=>{const se=K.toLowerCase().replace(/^www\./,""),Ce=P.has(se),lt=!Ce&&q.competitorDomains.some(Ke=>Ke.toLowerCase().replace(/^www\./,"")===se),Ne=Ce?"you":lt?"competitor":"other";return u.jsxs("div",{className:`citation-leaderboard-item citation-leaderboard-item--${Ne}`,children:[u.jsxs("span",{className:"citation-leaderboard-rank",children:["#",te+1]}),u.jsx("span",{className:"citation-leaderboard-domain",children:K}),Ce&&u.jsx("span",{className:"citation-leaderboard-tag",children:"You"}),lt&&u.jsx("span",{className:"citation-leaderboard-tag",children:"Competitor"})]},K)})})]}),q.groundingSources.length>0&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsxs("span",{children:["Grounding source links (",q.groundingSources.length,")"]}),u.jsx(xr,{text:"Links the model used as grounding or supporting context while producing the answer. These are not the same thing as answer visibility."})]}),u.jsx("ul",{className:"grid gap-0.5",children:q.groundingSources.map((K,te)=>{const se=xp(K.uri),Ce=K.title||K.uri;return u.jsx("li",{className:"truncate text-sm",children:se?u.jsx("a",{href:se,target:"_blank",rel:"noopener noreferrer",className:"text-secondary hover:text-strong transition-colors",children:Ce}):u.jsx("span",{className:"text-secondary",children:Ce})},te)})})]}),q.evidenceUrls.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"drawer-section-label",children:"Evidence URLs"}),u.jsx("ul",{className:"grid gap-1",children:q.evidenceUrls.map(K=>{const te=xp(K);return u.jsx("li",{className:"truncate text-sm",children:te?u.jsx("a",{href:te,target:"_blank",rel:"noopener noreferrer",className:"text-secondary hover:text-strong transition-colors",children:K}):u.jsx("span",{className:"text-secondary",children:K})},K)})})]}),q.citedDomains.length===0&&q.groundingSources.length===0&&q.evidenceUrls.length===0&&u.jsxs("div",{className:"flex items-center justify-center h-24 text-faint text-sm",children:["No source data ",he?"for this run":"yet"]})]}),!de&&!ge&&u.jsxs("div",{className:"flex items-center justify-center h-24 text-faint text-sm",children:["No answer visibility data ",he?"for this run":"yet"]})]})]})]})]})]})})}function Iq(e){const n=e.match(/^\/projects\/([^/]+)/);if(!n)return null;try{return decodeURIComponent(n[1])}catch{return n[1]}}function Vq(e,n){return e?n?.projects.find(r=>r.project.name===e||r.project.id===e)?.project.name??e:null}function $q(e,n){return Vq(Iq(e),n)}function Ya(e){const n=new Date("2026-02-20");return e.map((s,r)=>({runId:`run_mock_${r+1}`,citationState:s,createdAt:new Date(n.getTime()+r*2*24*60*60*1e3).toISOString()}))}const Hm=[{id:"project_citypoint",name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",ownedDomains:[],aliases:[],country:"US",language:"en",tags:["local intent","priority"],labels:{},providers:[],providerModels:{},measurement:Cm,locations:[],defaultLocation:null,autoExtractBacklinks:!1,configSource:"cli",configRevision:1},{id:"project_harbor",name:"Harbor Legal Group",canonicalDomain:"harborlegal.com",ownedDomains:[],aliases:[],country:"US",language:"en",tags:["lead gen"],labels:{},providers:[],providerModels:{},measurement:Cm,locations:[],defaultLocation:null,autoExtractBacklinks:!1,configSource:"cli",configRevision:1},{id:"project_northstar",name:"Northstar Orthopedics",canonicalDomain:"northstarortho.com",ownedDomains:[],aliases:[],country:"US",language:"en",tags:["multi-location"],labels:{},providers:[],providerModels:{},measurement:Cm,locations:[],defaultLocation:null,autoExtractBacklinks:!1,configSource:"cli",configRevision:1}];function au(e){return{id:e.id,projectId:e.projectId,projectName:e.projectName,kind:e.kind,kindLabel:e.kindLabel,status:e.status,trigger:e.trigger??"manual",createdAt:e.createdAt,startedAt:e.startedAt,duration:e.duration,statusDetail:e.statusDetail,summary:e.summary,triggerLabel:e.triggerLabel}}const Gq=au({id:"run_citypoint_visibility_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T12:15:00.000Z",startedAt:"Mar 8, 12:15 PM",duration:"6m 12s",statusDetail:"18 tracked queries checked; 3 citation losses detected on emergency-intent prompts.",summary:"Citation losses on emergency-intent prompts",triggerLabel:"Scheduled"}),Hq=au({id:"run_citypoint_queued_20260309",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"queued",createdAt:"2026-03-09T08:05:00.000Z",startedAt:"Mar 9, 8:05 AM",duration:"Waiting for slot",statusDetail:"Ready to enqueue after the next provider rate window clears.",summary:"Queued follow-up after local ranking movement",triggerLabel:"Manual"}),Kq=au({id:"run_harbor_visibility_20260308",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T11:05:00.000Z",startedAt:"Mar 8, 11:05 AM",duration:"5m 07s",statusDetail:"12 tracked queries checked; local-intent visibility held steady across branded prompts.",summary:"Branded prompts remain stable",triggerLabel:"Scheduled"}),Qq=au({id:"run_northstar_visibility_20260308",projectId:"project_northstar",projectName:"Northstar Orthopedics",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"running",createdAt:"2026-03-08T13:40:00.000Z",startedAt:"Mar 8, 1:40 PM",duration:"3m 10s",statusDetail:"Provider responses still in flight for 9 multi-location prompts.",summary:"Mid-run on treatment-location prompts",triggerLabel:"Manual"}),Zq=[{id:"evidence_citypoint_emergency_gemini",query:"emergency dentist brooklyn",provider:"gemini",model:"gemini-2.5-flash",location:null,citationState:"lost",changeLabel:"Lost since Mar 5",answerSnippet:"For urgent dental care in Brooklyn, Downtown Smiles and Harbor Dental are now cited first for emergency availability and same-day booking.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:["https://downtownsmiles.com/emergency-dentist-brooklyn","https://harbordental.com/same-day-emergency-care"],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing on the emergency service page","llms.txt not found during latest site audit","Location pages link weakly into the emergency care hub"],summary:"AI answers now cite two competitors while your emergency page is no longer grounded.",runHistory:Ya(["cited","cited","cited","cited","cited","cited","cited","not-cited","not-cited"])},{id:"evidence_citypoint_emergency_openai",query:"emergency dentist brooklyn",provider:"openai",model:"gpt-5.4",location:null,citationState:"cited",changeLabel:"Cited for 6 runs",answerSnippet:"Citypoint Dental is listed as a top emergency dentist in Brooklyn for same-day appointments and walk-in availability.",citedDomains:["citypointdental.com","downtownsmiles.com"],evidenceUrls:["https://citypointdental.com/emergency-dentist-brooklyn"],competitorDomains:["downtownsmiles.com"],groundingSources:[],relatedTechnicalSignals:["Emergency page indexed with structured data"],summary:"OpenAI cites your emergency page consistently alongside one competitor.",runHistory:Ya(["not-cited","cited","cited","cited","cited","cited","cited"])},{id:"evidence_citypoint_emergency_claude",query:"emergency dentist brooklyn",provider:"claude",model:"claude-sonnet-4-6",location:null,citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"Based on the search results, top-rated emergency dental practices in Brooklyn include Downtown Smiles and Harbor Dental.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:[],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing","llms.txt not found"],summary:"Claude does not cite your domain for this emergency query.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_invisalign_openai",query:"best invisalign dentist downtown brooklyn",provider:"openai",model:"gpt-5.4",location:null,citationState:"emerging",changeLabel:"First citation in 7 days",answerSnippet:"Citypoint Dental appears as an emerging recommendation for Invisalign in Downtown Brooklyn, supported by recent before-and-after case pages.",citedDomains:["citypointdental.com","clearlineortho.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn","https://citypointdental.com/case-studies/invisalign-open-bite"],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["Structured data now present on two case-study pages","Internal links from service pages to case studies improved crawl depth"],summary:"Fresh case-study content is starting to earn citations on Invisalign prompts.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","cited"])},{id:"evidence_citypoint_invisalign_gemini",query:"best invisalign dentist downtown brooklyn",provider:"gemini",model:"gemini-2.5-flash",location:null,citationState:"cited",changeLabel:"Cited for 8 runs",answerSnippet:"Citypoint Dental in Downtown Brooklyn is highlighted for its Invisalign expertise and patient outcomes.",citedDomains:["citypointdental.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn"],competitorDomains:[],groundingSources:[],relatedTechnicalSignals:["Case study pages well-indexed"],summary:"Gemini consistently cites your Invisalign page with no competitor overlap.",runHistory:Ya(["cited","cited","cited","cited","cited","cited","cited","cited"])},{id:"evidence_citypoint_invisalign_claude",query:"best invisalign dentist downtown brooklyn",provider:"claude",model:"claude-sonnet-4-6",location:null,citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For Invisalign in Downtown Brooklyn, Clear Line Ortho and Brooklyn Smiles are frequently recommended for their experienced orthodontists.",citedDomains:["clearlineortho.com","brooklynsmiles.com"],evidenceUrls:[],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["No before/after schema on case study pages"],summary:"Claude does not surface your Invisalign content despite strong page quality.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_claude",query:"pediatric dentist brooklyn heights",provider:"claude",model:"claude-sonnet-4-6",location:null,citationState:"not-cited",changeLabel:"No citation across 4 runs",answerSnippet:"Answers cite neighborhood-specific pediatric practices with stronger family-focused FAQ content and clearer insurance details.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:["https://brightkidsdental.com/pediatric-dentist-brooklyn-heights","https://parkpediatricdental.com/insurance"],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric service page exists for Brooklyn Heights","Insurance content is buried three clicks deep"],summary:"Coverage gap is content-driven, not purely technical.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_gemini",query:"pediatric dentist brooklyn heights",provider:"gemini",model:"gemini-2.5-flash",location:null,citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For pediatric dentistry in Brooklyn Heights, Bright Kids Dental and Park Pediatric Dental are cited for family-friendly care.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:[],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric page for Brooklyn Heights"],summary:"Gemini does not surface your domain for pediatric queries in this area.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_openai",query:"pediatric dentist brooklyn heights",provider:"openai",model:"gpt-5.4",location:null,citationState:"cited",changeLabel:"First citation this month",answerSnippet:"Citypoint Dental is mentioned as offering pediatric services in Brooklyn, though specialized pediatric-only practices are also highlighted.",citedDomains:["citypointdental.com","brightkidsdental.com"],evidenceUrls:["https://citypointdental.com/family-dentistry"],competitorDomains:["brightkidsdental.com"],groundingSources:[],relatedTechnicalSignals:["Family dentistry page recently updated"],summary:"OpenAI recently started citing your family dentistry page for this query.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","cited"])}];Hm[0],Math.round(1/9*100),Math.round(2/9*100),Hm[1],Ya(["cited","cited","cited","cited","cited"]),Hm[2],Math.round(2/7*100),Math.round(3/7*100),Ya(["not-cited","not-cited","not-cited","cited"]);function Fq(e,n){return e.runs.find(s=>s.id===n)}function Yq(e,n){for(const s of e.projects){const r=s.visibilityEvidence.find(c=>c.id===n);if(r)return{project:s,evidence:r}}}function Xq(e,n,s){if(e){const r=e.visibilityEvidence.find(c=>c.id===s);if(r)return{project:e,evidence:r}}if(n)return Yq(n,s)}const Jq={regression:"negative",gain:"positive",opportunity:"caution","first-citation":"positive","provider-pickup":"positive","persistent-gap":"caution","competitor-gained":"negative","competitor-lost":"neutral","gbp-lodging-gap":"negative","gbp-listing-discrepancy":"negative","gbp-cta-gap":"caution","gbp-description-missing":"caution","gbp-metric-drop":"negative","gbp-keyword-drop":"negative"},Wq={opportunity:"write","persistent-gap":"write","competitor-gained":"write","competitor-lost":"write",regression:"investigate",gain:"monitor","first-citation":"monitor","provider-pickup":"monitor","gbp-lodging-gap":"write","gbp-listing-discrepancy":"write","gbp-cta-gap":"write","gbp-description-missing":"write","gbp-metric-drop":"investigate","gbp-keyword-drop":"investigate"},eB={regression:"lost",gain:"emerging",opportunity:"not-cited","first-citation":"emerging","provider-pickup":"emerging","persistent-gap":"not-cited","competitor-gained":"cited","competitor-lost":"not-cited","gbp-lodging-gap":"not-cited","gbp-listing-discrepancy":"not-cited","gbp-cta-gap":"not-cited","gbp-description-missing":"not-cited","gbp-metric-drop":"lost","gbp-keyword-drop":"lost"},tB={regression:"Regression",gain:"Gain",opportunity:"Opportunity","first-citation":"First citation","provider-pickup":"Pickup","persistent-gap":"Gap","competitor-gained":"Competitor","competitor-lost":"Competitor","gbp-lodging-gap":"Lodging gap","gbp-listing-discrepancy":"Listing gap","gbp-cta-gap":"Booking CTA","gbp-description-missing":"Description gap","gbp-metric-drop":"Metric drop","gbp-keyword-drop":"Keyword drop"};function aB(e){return{id:e.id,tone:Jq[e.type],title:e.title,detail:e.cause?.details??e.cause?.cause??"",actionLabel:e.recommendation?.action??tB[e.type],actionGroup:Wq[e.type],affectedPhrases:[{query:e.query,evidenceId:"",provider:e.provider,citationState:eB[e.type]}]}}function nB(e){return e.filter(n=>!n.dismissed).map(aB)}function s3(e){return{id:e.id,name:e.name,displayName:e.displayName,canonicalDomain:e.canonicalDomain,ownedDomains:e.ownedDomains??[],aliases:e.aliases??[],country:e.country,language:e.language,tags:e.tags,labels:e.labels,providers:e.providers??[],providerModels:e.providerModels??{},measurement:e.measurement,locations:e.locations??[],defaultLocation:e.defaultLocation??null,autoExtractBacklinks:e.autoExtractBacklinks??!1,configSource:e.configSource,configRevision:e.configRevision,createdAt:e.createdAt,updatedAt:e.updatedAt}}function lb(e){try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}catch{return e}}function iB(e,n){if(!e)return"Waiting";if(!n)return"Running";const s=new Date(n).getTime()-new Date(e).getTime();if(s<1e3)return"<1s";const r=Math.floor(s/1e3);if(r<60)return`${r}s`;const c=Math.floor(r/60),f=r%60;return`${c}m ${f}s`}function o3(e){switch(e){case Te["answer-visibility"]:return"Answer visibility sweep";case Te["gsc-sync"]:return"GSC sync";case Te["inspect-sitemap"]:return"Sitemap inspection";case Te["ga-sync"]:return"GA sync";case Te["traffic-sync"]:return"Traffic sync";case Te["bing-inspect"]:return"Bing URL inspection";case Te["bing-inspect-sitemap"]:return"Bing sitemap inspection";case Te["site-audit"]:return"Site audit";case Te["backlink-extract"]:return"Backlink extract";case Te["aeo-discover-seed"]:return"Discovery (seed phase)";case Te["aeo-discover-probe"]:return"Discovery (probe phase)";case Te["gbp-sync"]:return"Business Profile sync";case Te["ads-sync"]:return"ChatGPT ads sync"}}function sB(e){return e===Ys.manual?"Manual":e===Ys.scheduled?"Scheduled":e===Ys["config-apply"]?"Config apply":e}function nu(e,n){return{id:e.id,projectId:e.projectId,projectName:n,kind:e.kind,kindLabel:o3(e.kind),status:e.status,trigger:e.trigger??"manual",location:e.location??null,createdAt:e.createdAt,startedAt:e.startedAt?lb(e.startedAt):lb(e.createdAt),duration:iB(e.startedAt??null,e.finishedAt??null),statusDetail:e.error?r3(e.error):oB(e),summary:rB(e),triggerLabel:sB(e.trigger)}}function r3(e){const n=o0(e);return n.length>200?n.slice(0,200)+"…":n}function oB(e){switch(e.status){case na.queued:return"Waiting for execution slot.";case na.running:return"Provider queries in progress.";case na.completed:return"All queries checked.";case na.partial:return"Run completed with some queries skipped.";case na.failed:return e.error?r3(e.error):"Run failed.";case na.cancelled:return"Run was cancelled.";default:return""}}function rB(e){const n=o3(e.kind);switch(e.status){case na.queued:return`${n} queued`;case na.running:return`${n} in progress`;case na.completed:return`${n} completed`;case na.partial:return`${n} partially completed`;case na.failed:return`${n} failed`;case na.cancelled:return`${n} cancelled`;default:return e.status}}function lB(e,n,s,r){const c=[];let f=0;const g=new Set;if(s.length>0){const b=s.flatMap($=>$.snapshots??[]),x=new Map;for(const $ of b)if($.query){const L=`${$.query}::${$.provider}::${$.location??""}`;x.set(L,$)}const k=new Set(b.map($=>$.location??null));k.size===0&&k.add(null);const S=new Set(b.map($=>$.provider)),j=new Set(n.flatMap($=>Object.keys($.providerRuns??{}))),A=[...new Set([...S,...j])].sort(),z=A.length>0?A:["gemini"];for(const $ of n){if($.runs.length===0)continue;g.add($.query);const L=$.runs.at(-1),P=L?.transition??"not-cited";for(const V of z){const ne=[...k].filter(re=>x.has(`${$.query}::${V}::${re??""}`)),J=($.providerRuns?.[V]?.length??0)>0,ee=ne.length>0?ne:J?[null]:[];for(const re of ee){const he=re??"",q=x.get(`${$.query}::${V}::${he}`),ae=q?.model??null,Ae=ae?`${V}:${ae}`:null,de=$.providerRuns?.[V],ge=Ae?$.modelRuns?.[Ae]:void 0,qe=Ke=>Ke?.filter(Ye=>(Ye.location??null)===re),De=ne.length>0?qe(de):de,at=ne.length>0?qe(ge):ge,pe=(De?.length?De:null)??(at?.length?at:null),I=De?.length?"provider":at?.length?"model":"query",ie=pe?pe.at(-1).transition:P,ue=pe?pe.at(-1).visibilityTransition??(pe.at(-1).visibilityState==="visible"?"visible":"not-visible"):L?.visibilityTransition??(L?.visibilityState==="visible"?"visible":"not-visible"),_e=pe?.at(-1)?.citationState,le=pe?.at(-1)?.visibilityState,He=q?ie==="lost"?"lost":ie==="emerging"?"emerging":q.citationState===zc.cited?"cited":"not-cited":_e===zc.cited?"cited":"not-cited",W=q?.visibilityState??(le==="visible"?"visible":le==="pending"?"pending":"not-visible"),U=cb(pe||$.runs),K=ub(pe||$.runs),te=cB($,V),se=(pe??$.runs).map(Ke=>({runId:Ke.runId,citationState:Ke.citationState,createdAt:Ke.createdAt,model:te.get(Ke.runId)??null,answerMentioned:Ke.answerMentioned,visibilityState:Ke.visibilityState,visibilityTransition:Ke.visibilityTransition,mentionState:Ke.mentionState,mentionTransition:Ke.mentionTransition})),Ce=uB(se),lt=I==="provider"&&Ce.length<=1?"model":I,Ne=dB(se);c.push({id:`evidence_${e}_${f++}`,query:$.query,provider:q?.provider??V,model:q?.model??null,location:q?.location??re,citationState:He,answerMentioned:q?.answerMentioned,visibilityState:W,visibilityChangeLabel:db(ue,K,{positive:"visible",negative:"not visible",first:"first visibility"}),changeLabel:db(ie,U),answerSnippet:q?.answerText??"",citedDomains:q?.citedDomains??[],evidenceUrls:[],competitorDomains:q?.competitorOverlap??[],recommendedCompetitors:q?.recommendedCompetitors??[],matchedTerms:q?.matchedTerms??[],relatedTechnicalSignals:[],groundingSources:q?.groundingSources??[],searchQueries:q?.searchQueries??[],summary:mB(W,ue,$.query),runHistory:se,historyScope:lt,modelsSeen:Ce,modelTransitions:Ne})}}}}for(const b of r)g.has(b.query)||c.push({id:`evidence_${e}_${f++}`,query:b.query,provider:"",model:null,location:null,citationState:"pending",visibilityState:"pending",visibilityChangeLabel:"Awaiting first run",changeLabel:"Awaiting first run",answerSnippet:"",citedDomains:[],evidenceUrls:[],competitorDomains:[],recommendedCompetitors:[],matchedTerms:[],relatedTechnicalSignals:[],groundingSources:[],searchQueries:[],summary:`"${b.query}" has been added but no visibility run has been triggered yet.`,runHistory:[],historyScope:"query",modelsSeen:[],modelTransitions:[]});return c}function cB(e,n){const s=new Map,r=`${n}:`;for(const[c,f]of Object.entries(e.modelRuns??{})){if(!c.startsWith(r))continue;const g=c.slice(r.length),b=g==="unknown"?null:g;for(const x of f)s.set(x.runId,b)}return s}function uB(e){const n=new Set;for(const s of e)s.model&&n.add(s.model);return[...n]}function dB(e){const n=[];let s=null;for(const r of e){const c=r.model??null;c!==s&&s!==null&&n.push({runId:r.runId,createdAt:r.createdAt,fromModel:s,toModel:c}),s=c}return n}function cb(e){if(e.length===0)return 0;const n=e[e.length-1].citationState;let s=0;for(let r=e.length-1;r>=0&&e[r].citationState===n;r--)s++;return s}function ub(e){if(e.length===0)return 0;const n=e[e.length-1].visibilityState??"not-visible";let s=0;for(let r=e.length-1;r>=0&&(e[r].visibilityState??"not-visible")===n;r--)s++;return s}function db(e,n,s){const r={positive:s?.positive??"cited",negative:s?.negative??"not cited",first:s?.first??"first citation"};switch(e){case"new":return"First observation";case"cited":case"visible":return n<=1?`${kr(r.positive)} in latest run`:`${kr(r.positive)} for ${n} runs`;case"lost":return"Lost since last run";case"emerging":return kr(r.first);case"not-cited":case"not-visible":return n<=1?`${kr(r.negative)} in latest run`:`${kr(r.negative)} across ${n} runs`;default:return e}}function kr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function mB(e,n,s){switch(n){case"lost":return`Mention was lost for "${s}". Your brand no longer appeared in the latest answer.`;case"emerging":return`Your brand started appearing in AI answers for "${s}".`}switch(e){case"visible":return`Your brand or domain is mentioned in AI answers for "${s}".`;case"pending":return`"${s}" has been added but no run has been triggered yet.`;default:return`Your brand or domain was not mentioned in AI answers for "${s}".`}}function l3(e){const n=s3(e.project),s=lB(n.name,e.timeline,e.latestRunDetails,e.queries),c=[...e.runs].sort((f,g)=>g.createdAt.localeCompare(f.createdAt)).map(f=>nu(f,e.project.displayName||e.project.name));return e.overview?pB(n,e.overview,s,c):hB(n,s,c)}function pB(e,n,s,r){const c=nB(n.topInsights);for(const f of n.attentionItems)f.id.startsWith("insight_")||c.push({id:f.id,tone:f.tone,title:f.title,detail:f.detail,actionLabel:f.actionLabel,actionGroup:"investigate",affectedPhrases:[]});return{project:e,dateRangeLabel:n.dateRangeLabel,contextLabel:n.contextLabel,mentionSummary:n.scores.mention,visibilitySummary:n.scores.visibility,mentionShareSummary:n.scores.mentionShare,queryCounts:{cited:n.queryCounts.citedQueries,total:n.queryCounts.totalQueries},gapQueries:n.scores.gapQueries,mentionGaps:n.scores.mentionGaps,indexCoverage:n.scores.indexCoverage,providerScores:n.providerScores,competitorPressure:n.scores.competitorPressure,runStatus:n.scores.runStatus,citationMovement:n.citationMovement,mentionMovement:n.mentionMovement,movementComparison:n.movementComparison,insights:c,visibilityEvidence:s,competitors:n.competitors.map(f=>({id:f.id,domain:f.domain,citationCount:f.citationCount,totalQueries:f.totalQueries,pressureLabel:f.pressureLabel,citedQueries:f.citedQueries,movement:"",notes:""})),recentRuns:r.slice(0,5),suggestedQueries:n.suggestedQueries}}function hB(e,n,s){const r={label:"",value:"No data",delta:"Loading…",tone:"neutral",description:"",tooltip:"",trend:[]};return{project:e,dateRangeLabel:"All time",contextLabel:`${e.country} / ${e.language.toUpperCase()}`,mentionSummary:{...r,label:"Mention Coverage"},visibilitySummary:{...r,label:"Citation Coverage"},mentionShareSummary:{...r,label:"Mention Share",breakdown:{projectMentionSnapshots:0,competitorMentionSnapshots:0,perCompetitor:[],snapshotsWithAnswerText:0,snapshotsTotal:0}},queryCounts:{cited:0,total:0},gapQueries:{...r,label:"Citation Gaps"},mentionGaps:{...r,label:"Mention Gaps"},indexCoverage:{...r,label:"Index Coverage"},providerScores:[],competitorPressure:{...r,label:"Competitor Pressure"},runStatus:{...r,label:"Run Status"},citationMovement:{gained:0,lost:0,tone:"neutral",hasPreviousRun:!1},mentionMovement:{gained:0,lost:0,tone:"neutral",hasPreviousRun:!1},movementComparison:{hasPreviousRun:!1,comparable:!1,querySetChanged:!1,previousRunAt:null,currentQueryCount:0,previousQueryCount:0,comparableQueryCount:0,addedQueryCount:0,removedQueryCount:0,addedQueries:[],removedQueries:[]},insights:[],visibilityEvidence:n,competitors:[],recentRuns:s.slice(0,5),suggestedQueries:{rows:[],totalCandidates:0,skippedAlreadyTracked:0}}}function fB(e){const n=s3(e.project),s=[...e.runs].sort((A,z)=>z.createdAt.localeCompare(A.createdAt)),r=s.find(A=>A.kind===Te["answer-visibility"])??s[0]??e.overview?.latestRun?.run??void 0,c=e.project.displayName||e.project.name,f=r?nu(r,c):gB(e.project.id,c),g=e.overview;if(!g)return{project:n,mentionScore:0,mentionDelta:"No data",mentionTone:"neutral",lastRun:f,insight:"No runs completed yet.",trend:[],competitorPressureLabel:"None"};const b=g.scores.mention,x=b.progress??0,k=g.queryCounts.mentionedQueries,S=g.queryCounts.totalQueries,j=g.providers.length;return{project:n,mentionScore:x,mentionDelta:S>0?`${k} of ${S} queries`:"No data",mentionTone:b.tone,providerCoverage:b.providerCoverage,lastRun:f,insight:S>0?`${k} of ${S} queries mentioned across ${j} provider${j===1?"":"s"}.`:"No runs completed yet.",trend:b.trend??[],competitorPressureLabel:g.scores.competitorPressure.value}}function gB(e,n){return{id:"none",projectId:e,projectName:n,kind:Te["answer-visibility"],kindLabel:"No runs yet",status:na.queued,trigger:Ys.manual,createdAt:"",startedAt:"",duration:"",statusDetail:"",summary:"No runs yet",triggerLabel:""}}function yB(e,n){const s=[],r=[],c=[];for(const g of e){r.push(l3(g)),c.push(fB(g));const b=[...g.runs].sort((x,k)=>k.createdAt.localeCompare(x.createdAt));for(const x of b)s.push(nu(x,g.project.displayName||g.project.name))}s.sort((g,b)=>b.createdAt.localeCompare(g.createdAt));const f=e.length>0;return{portfolioOverview:{projects:c,attentionItems:f?bB(r):[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Create your first project using the setup wizard, CLI, or API.",actionLabel:"Open setup",href:"/setup"}],recentRuns:s.slice(0,5),systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Connected",meta:"Real-time data"},{id:"provider",label:"Gemini",tone:"positive",detail:"Configured",meta:"Provider active"}],...f?{}:{emptyState:{title:"No projects yet",detail:"Canonry becomes useful after one project, a small query set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}}},projects:r,runs:s,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"API is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"provider",label:"Provider configured",detail:"Gemini key is configured.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"",canonicalDomain:"",country:"US",language:"en"},queryImportState:{mode:"paste",queryCount:0,preview:[]},competitorDraft:{domains:[],notes:"Use the CLI to add competitors."},launchState:{enabled:f,ctaLabel:f?"Trigger run":"Create a project first",summary:f?"Ready to run.":"Create a project first to launch a run."}},settings:{providerStatuses:(n?.providers??[]).map(g=>({name:g.name,displayName:g.displayName,keyUrl:g.keyUrl,modelHint:g.modelHint,model:g.model,defaultModel:g.defaultModel,state:g.configured?"ready":"needs-config",detail:g.configured?"Provider is configured.":"API key is missing.",quota:g.quota})),google:{state:n?.google?.configured?"ready":"needs-config",detail:n?.google?.configured?"Google OAuth app credentials are configured. Project-level GSC connections can be created from the dashboard.":"Google OAuth client ID and client secret are not configured yet."},bing:{state:n?.bing?.configured?"ready":"needs-config",detail:n?.bing?.configured?"Bing Webmaster Tools API key is configured. Project-level Bing connections can be created from the dashboard.":"Bing Webmaster Tools API key is not configured yet."},selfHostNotes:["Configuration is stored in ~/.canonry/config.yaml.","The local config file is the source of truth for authentication credentials.","Google OAuth app credentials and per-domain Google tokens are stored in local config, not the database.","Database is SQLite at ~/.canonry/data.db.","API key was auto-generated during canonry init."],bootstrapNote:"Use the UI, CLI, or ~/.canonry/config.yaml to manage settings. Authentication credentials persist to local config."}}}function bB(e){const n=[];for(const s of e){const r=s.visibilityEvidence.filter(f=>f.citationState==="lost");r.length>0&&n.push({id:`attention_${s.project.id}_lost`,tone:"negative",title:`${s.project.displayName||s.project.name} lost citations`,detail:`${r.length} quer${r.length>1?"ies":"y"} lost citation.`,actionLabel:"Open project",href:`/projects/${encodeURIComponent(s.project.name)}`});const c=s.recentRuns.filter(f=>f.status===na.running||f.status===na.queued);c.length>0&&n.push({id:`attention_${s.project.id}_active`,tone:"neutral",title:`${s.project.displayName||s.project.name} has active runs`,detail:`${c.length} run${c.length>1?"s":""} in progress.`,actionLabel:"View runs",href:"/runs"})}return n.length===0&&n.push({id:"attention_stable",tone:"positive",title:"All projects stable",detail:"No citation losses or active runs to flag."}),n}const c3=T.createContext(null);c3.Provider;function $r(){return T.useContext(c3)}function iu(e,n={}){const r=$r()?.dashboard??null,c=n.includeSettings??!0,{isAdmin:f}=Rr(),g=ia({..._0({client:oe,query:{kind:"answer-visibility"}}),enabled:!r,staleTime:Js,refetchInterval:V=>V.state.data?.some(ee=>ee.status==="running"||ee.status==="queued")?3e3:Js}),b=ia({...Wc({client:oe}),enabled:!r,refetchInterval:V=>{const ne=V.state.data,J=g.data?.some(re=>re.status==="running"||re.status==="queued");return(ne?.length??0)===0||!!J?q5:B5}}),x=ia({...MR({client:oe}),enabled:!r&&c&&f}),k=b.data??[],S=g.data??[],j=_w({queries:k.map(V=>{const ne=S.filter(re=>re.projectId===V.id),J=ne.filter(re=>(re.status==="completed"||re.status==="partial")&&re.kind==="answer-visibility"&&re.trigger!=="probe").sort((re,he)=>he.createdAt.localeCompare(re.createdAt)),ee=J.length>0?J[0].id:"no-run";return{queryKey:["project-overview-slim",V.id,ee],queryFn:async()=>{const re=await nv(V.name).catch(()=>null);return{project:V,runs:ne,queries:[],competitors:[],timeline:[],latestRunDetails:[],previousRunDetails:[],gscCoverage:null,bingCoverage:null,dbInsights:null,overview:re}},enabled:!r&&b.isSuccess&&g.isSuccess,staleTime:Xm}})}),A=j.every(V=>V.isSuccess),z=T.useMemo(()=>{if(r)return r;if(!b.data||!g.data||k.length>0&&!A)return null;const V=j.map(ne=>ne.data?{...ne.data,runs:S.filter(J=>J.projectId===ne.data.project.id)}:null).filter(ne=>ne!=null);return yB(V,x.data??null)},[r,b.data,g.data,x.data,A,j,k.length,S]),$=!r&&(b.isError||g.isError),L=!r&&!z&&!$,P=T.useCallback(async()=>{const V=[b.refetch(),g.refetch(),...j.map(ne=>ne.refetch())];c&&V.push(x.refetch()),await Promise.all(V)},[c,j,b.refetch,g.refetch,x.refetch]);return{dashboard:z,isLoading:L,isError:$,refetch:P}}const vB=20;function xB(e){const n=$r(),s=T.useMemo(()=>!n||!e?null:n.dashboard.projects.find(L=>L.project.name===e)??null,[n,e]),r=ia({...bR({client:oe,path:{name:e??""}}),enabled:!!e&&!s,staleTime:Xm,refetchOnWindowFocus:"always"}),c=ia({...DR({client:oe,path:{name:e??""},query:{kind:"answer-visibility"}}),enabled:!!e,staleTime:Js,refetchOnWindowFocus:"always",refetchInterval:L=>L.state.data?.some(ne=>ne.projectId===r.data?.id&&(ne.status==="running"||ne.status==="queued"))?3e3:Js}),f=r.data??null,g=T.useMemo(()=>f?(c.data??[]).filter(L=>L.projectId===f.id):[],[f,c.data]),{latestRunIds:b,previousRunIds:x,latestRunIdsKey:k,latestVisibilityRevision:S}=T.useMemo(()=>{const L=g.filter(ee=>(ee.status==="completed"||ee.status==="partial")&&ee.kind==="answer-visibility"&&ee.trigger!=="probe").sort((ee,re)=>re.createdAt.localeCompare(ee.createdAt)),P=L[0]?.createdAt??null,V=P?L.filter(ee=>ee.createdAt===P).map(ee=>ee.id):[],ne=L.find(ee=>ee.createdAt!==P)?.createdAt??null,J=ne?L.filter(ee=>ee.createdAt===ne).map(ee=>ee.id):[];return{latestRunIds:V,previousRunIds:J,latestRunIdsKey:[...V].sort().join(","),latestVisibilityRevision:P?`${P}:${[...V].sort().join(",")}`:"none"}},[g]),j=ia({queryKey:["project-dashboard-full",f?.id??null,k||"none"],queryFn:async()=>{if(!f||!e)return null;const[L,P,V,ne,J,ee,re,he,q]=await Promise.all([av(e).catch(()=>[]),i5(e).catch(()=>[]),s5(e,void 0,vB).catch(()=>[]),b.length?Promise.all(b.map(ae=>bc(ae).catch(()=>null))).then(ae=>ae.filter(Ae=>Ae!=null)):Promise.resolve([]),x.length?Promise.all(x.map(ae=>bc(ae).catch(()=>null))).then(ae=>ae.filter(Ae=>Ae!=null)):Promise.resolve([]),x5(e).catch(()=>null),S5(e).catch(()=>null),j5(e).catch(()=>null),nv(e).catch(()=>null)]);return{project:f,runs:g,queries:L,competitors:P,timeline:V,latestRunDetails:ne,previousRunDetails:J,gscCoverage:ee,bingCoverage:re,dbInsights:he,overview:q}},enabled:!!f&&!!e&&c.isSuccess,staleTime:Xm,refetchOnWindowFocus:"always"}),A=T.useMemo(()=>j.data?l3({...j.data,runs:g}):s||null,[j.data,g,s]),z=T.useCallback(async()=>{await Promise.all([r.refetch(),c.refetch(),j.refetch()])},[r.refetch,c.refetch,j.refetch]),$=!A&&(r.isLoading||c.isLoading||j.isLoading);return{commandCenter:A,project:f,isLoading:$,isError:r.isError||c.isError||j.isError,latestVisibilityRevision:S,refetch:z}}const kB=["health"];async function wB(){const e=await N5("/health","API"),n=e.state==="ok"?{label:"Worker",state:"ok",detail:"In-process job runner"}:{label:"Worker",state:e.state,detail:`Depends on API health check · ${e.detail}`,statusCode:e.statusCode,hint:e.hint?`Worker status is inferred from API health in this deployment mode. ${e.hint}`:"Worker status is inferred from API health in this deployment mode."};return{apiStatus:e,workerStatus:n}}function T0(e,n){return ia({queryKey:kB,queryFn:wB,enabled:e,refetchInterval:15e3,initialData:n})}function SB(e){return ia({...Ox({client:oe,path:{id:e??""}}),enabled:!!e,refetchInterval:n=>{const s=n.state.data?.status;return s==="running"||s==="queued"?3e3:!1}})}function R0(){const e=qc(),n=Cw({strict:!1}),s=zw({select:x=>x.location.pathname}),r=n.runId??null,c=n.evidenceId??null;return{runId:r,evidenceId:c,openRun:x=>{e({to:s,from:oa.to,search:k=>({...k,runId:x,evidenceId:void 0})})},openEvidence:x=>{e({to:s,from:oa.to,search:k=>({...k,evidenceId:x,runId:void 0})})},closeDrawer:()=>{e({to:s,from:oa.to,search:x=>({...x,runId:void 0,evidenceId:void 0})})}}}const jB={negative:"toast-card-negative",caution:"toast-card-caution",positive:"toast-card-positive",neutral:"toast-card-neutral"};function AB(e){if(e.cta)return`${e.cta.label}: ${e.title}`}function NB(){const e=T.useSyncExternalStore(R5,Pg,Pg),n=qc(),{openRun:s}=R0(),r=T.useCallback(f=>{Ym(f)},[]),c=T.useCallback(f=>{f.cta&&(f.cta.intent==="open-run-drawer"?s(f.cta.runId):n({to:"/runs"}),Ym(f.id))},[n,s]);return e.length===0?null:u.jsx("div",{className:"toast-viewport","aria-label":"Notifications",children:e.map(f=>u.jsxs("section",{role:f.tone==="negative"?"alert":"status","aria-live":f.tone==="negative"?"assertive":"polite","data-state":f.state,className:`toast-card ${jB[f.tone]}`,children:[u.jsxs("div",{className:"toast-copy",children:[u.jsx("p",{className:"toast-title",children:f.title}),f.detail?u.jsx("p",{className:"toast-detail",children:f.detail}):null,f.cta?u.jsx("button",{type:"button",className:"toast-action",onClick:()=>c(f),"aria-label":AB(f),children:f.cta.label}):null]}),u.jsx("button",{type:"button",onClick:()=>r(f.id),className:"toast-dismiss","aria-label":"Dismiss",children:u.jsx(ro,{className:"size-3.5"})})]},f.id))})}function Ar(e){switch(e){case Te["answer-visibility"]:return"Visibility sweep";case Te["gsc-sync"]:return"GSC sync";case Te["inspect-sitemap"]:return"Sitemap inspection";case Te["ga-sync"]:return"GA sync";case Te["traffic-sync"]:return"Traffic sync";case Te["bing-inspect"]:return"Bing URL inspection";case Te["bing-inspect-sitemap"]:return"Bing sitemap inspection";case Te["site-audit"]:return"Technical audit";case Te["backlink-extract"]:return"Backlink extract";case Te["aeo-discover-seed"]:return"Discovery (seed phase)";case Te["aeo-discover-probe"]:return"Discovery (probe phase)";case Te["gbp-sync"]:return"Business Profile sync";case Te["ads-sync"]:return"ChatGPT ads sync"}}function mb(e){return e==="running"?"Running":e==="queued"?"Queued":e==="partial"?"Partial":e==="completed"?"Completed":e==="failed"?"Failed":e==="cancelled"?"Cancelled":"Starting"}function _B(){const e=T.useSyncExternalStore(Px,On,On),n=T.useMemo(()=>Object.values(e.runs),[e.runs]),s=n.length>0,r=ia({..._0({client:oe}),enabled:s,staleTime:Js}),c=T.useMemo(()=>new Map((r.data??[]).map(b=>[b.id,b.status])),[r.data]);if(!s)return null;const f=n.map(b=>({...b,status:c.get(b.runId)??b.lastAnnouncedStatus})),g=f.length===1?Ar(f[0].kind):`${f.length} active tasks`;return u.jsxs("div",{className:"task-center",children:[u.jsxs("p",{className:"sr-only",role:"status","aria-live":"polite",children:[f.length," active ",f.length===1?"task":"tasks","."," ",f.map(b=>`${Ar(b.kind)} ${mb(b.status)}`).join(". "),"."]}),u.jsxs("details",{className:"task-center-details",children:[u.jsxs("summary",{className:"task-center-trigger",children:[u.jsx(Ob,{className:"size-3.5 shrink-0 motion-safe:animate-spin","aria-hidden":"true"}),u.jsx("span",{className:"task-center-summary",children:g}),u.jsx("span",{className:"task-center-count","aria-hidden":"true",children:f.length}),u.jsx(qb,{className:"task-center-chevron size-3.5 shrink-0","aria-hidden":"true"})]}),u.jsxs("div",{className:"task-center-panel",children:[u.jsxs("div",{className:"task-center-heading",children:[u.jsx("span",{children:"Active tasks"}),u.jsx("span",{className:"tabular-nums text-faint",children:f.length})]}),u.jsx("ul",{className:"task-center-list",children:f.map(b=>u.jsxs("li",{className:"task-center-item",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"truncate text-[13px] font-medium text-strong",children:Ar(b.kind)}),u.jsx("p",{className:"mt-0.5 truncate text-xs text-muted",children:b.projectLabel??b.projectId})]}),u.jsx(ga,{tone:b.status==="failed"?"negative":b.status==="partial"?"caution":"neutral",children:mb(b.status)})]},b.runId))}),u.jsx(Je,{to:"/runs",className:"task-center-footer-link",children:"View all runs"})]})]})]})}function CB(e,n={}){const{threshold:s=80}=n,r=T.useRef(null),c=T.useRef({scrollHeight:0,wasAtEnd:!0});function f(x){return x.scrollHeight-x.scrollTop-x.clientHeight}function g(){const x=r.current;return x?f(x)<=s:!0}function b(){const x=r.current;x&&(x.scrollTop=x.scrollHeight,c.current.wasAtEnd=!0,c.current.scrollHeight=x.scrollHeight)}return T.useEffect(()=>{const x=r.current;if(!x)return;const k=()=>{c.current.wasAtEnd=f(x)<=s};return x.addEventListener("scroll",k,{passive:!0}),()=>x.removeEventListener("scroll",k)},[s]),T.useLayoutEffect(()=>{const x=r.current;if(!x)return;const k=x.scrollHeight;k>c.current.scrollHeight&&c.current.wasAtEnd&&(x.scrollTop=k),c.current.scrollHeight=k},e),T.useEffect(()=>{const x=r.current;if(!x||typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{const S=x.scrollHeight;S>c.current.scrollHeight&&c.current.wasAtEnd&&(x.scrollTop=S),c.current.scrollHeight=S});return k.observe(x),x.firstElementChild&&k.observe(x.firstElementChild),()=>k.disconnect()},[]),{ref:r,scrollToEnd:b,isAtEnd:g}}async function O0(e){try{return await e.json()}catch{return{}}}function zB(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath.replace(/\/$/,"")+"/api/v1":"/api/v1"}const q0=zB();function B0(e){e===401&&zp()}async function pb(e){const n=await fetch(`${q0}/projects/${encodeURIComponent(e)}/agent/transcript`,{credentials:"include"});if(!n.ok){B0(n.status);const s=await O0(n);throw new _a(s.error?.message??`transcript fetch failed: ${n.status}`,n.status,s.error?.code)}return await n.json()}async function EB(e){const n=await fetch(`${q0}/projects/${encodeURIComponent(e)}/agent/transcript`,{method:"DELETE",credentials:"include"});if(!n.ok){B0(n.status);const s=await O0(n);throw new _a(s.error?.message??`reset failed: ${n.status}`,n.status,s.error?.code)}}async function DB({project:e,prompt:n,provider:s,modelId:r,scope:c,profile:f,signal:g,onEvent:b}){const x={prompt:n};s&&(x.provider=s),r&&(x.modelId=r),c&&(x.scope=c),f&&(x.profile=f);const k=await fetch(`${q0}/projects/${encodeURIComponent(e)}/agent/prompt`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:g});if(!k.ok||!k.body){B0(k.status);const $=await O0(k);throw new _a($.error?.message??`prompt failed: ${k.status}`,k.status,$.error?.code)}const S=k.body.getReader(),j=new TextDecoder;let A="";const z=()=>{S.cancel().catch(()=>{})};g?.addEventListener("abort",z,{once:!0});try{for(;;){const{value:$,done:L}=await S.read();if(L)break;A+=j.decode($,{stream:!0});let P=A.indexOf(`
59
+
60
+ `);for(;P!==-1;){const V=A.slice(0,P);A=A.slice(P+2);for(const ne of V.split(`
61
+ `)){if(!ne.startsWith("data:"))continue;const J=ne.slice(5).trim();if(J)try{b(JSON.parse(J))}catch{}}P=A.indexOf(`
62
+
63
+ `)}}}finally{g?.removeEventListener("abort",z);try{S.releaseLock()}catch{}}}function u3(e){return!e||e.role!=="assistant"?"":e.content.filter(n=>n.type==="text").map(n=>n.text).join("")}const TB=[{label:"Status",prompt:"Quick status overview for this project — latest runs, current health, anything unusual."},{label:"Top insights",prompt:"Walk me through the 3 most severe active insights and what to do about each."},{label:"Last failed run",prompt:"If the latest run failed, dig into it and tell me what went wrong plus how to fix it."},{label:"Schedule",prompt:"What is the current sweep schedule, and is it appropriate given recent volatility?"}],RB=[{command:"/status",label:"Status",prompt:"Quick status overview for this project — latest runs, current health, anything unusual."},{command:"/insights",label:"Top insights",prompt:"Walk me through the 3 most severe active insights and what to do about each."},{command:"/last-run",label:"Last run",prompt:"Summarize the latest run for this project — provider mix, visibility changes, and anything that moved."},{command:"/last-failed",label:"Last failed run",prompt:"If the latest run failed, dig into it and tell me what went wrong plus how to fix it."},{command:"/run-sweep",label:"Run sweep now",prompt:"Run a new answer-visibility sweep for this project now and tell me when it lands."},{command:"/schedule",label:"Schedule",prompt:"What is the current sweep schedule, and is it appropriate given recent volatility?"},{command:"/queries",label:"Queries",prompt:"List the tracked queries for this project and flag any that are obvious duplicates or underperformers."},{command:"/competitors",label:"Competitors",prompt:"List this project's tracked competitors and call out which ones are showing up in answer citations."},{command:"/clear",label:"Clear conversation",action:"clear"}],fc=e=>`canonry:aero:provider:${e}`,hb=e=>`canonry:aero:scope:${e}`;function OB({projectName:e}){const[n,s]=T.useState(!1),[r,c]=T.useState(!1),[f,g]=T.useState([]),[b,x]=T.useState(""),[k,S]=T.useState(!1),[j,A]=T.useState([]),[z,$]=T.useState(""),[L,P]=T.useState(null),[V,ne]=T.useState(()=>typeof window>"u"?null:window.localStorage.getItem(fc(e))??null),[J,ee]=T.useState(()=>typeof window>"u"?"read-only":window.localStorage.getItem(hb(e))==="all"?"all":"read-only"),re=T.useRef(null),{ref:he}=CB([f,z,j]),q=T.useRef(null),[ae,Ae]=T.useState(0),de=T.useMemo(()=>{const W=b.trimStart();if(!W.startsWith("/"))return[];if(/\s/.test(W))return[];const U=W.toLowerCase();return RB.filter(K=>K.command.startsWith(U)||K.label.toLowerCase().includes(U.slice(1)))},[b]);T.useEffect(()=>{Ae(W=>de.length===0?0:Math.min(W,de.length-1))},[de.length]);const ge=ia({...SO({client:oe,path:{name:e}}),enabled:n,staleTime:6e4}),qe=T.useMemo(()=>{const W=ge.data?.providers??[];if(V){const K=W.find(te=>te.id===V&&te.configured);if(K)return K}const U=ge.data?.defaultProvider;return U?W.find(K=>K.id===U)??null:null},[V,ge.data]);T.useEffect(()=>{if(!ge.data||!V)return;ge.data.providers.find(U=>U.id===V&&U.configured)||(ne(null),window.localStorage.removeItem(fc(e)))},[ge.data,V,e]);const De=T.useCallback(W=>{ne(W),!(typeof window>"u")&&(W?window.localStorage.setItem(fc(e),W):window.localStorage.removeItem(fc(e)))},[e]),at=T.useCallback(()=>{ee(W=>{const U=W==="all"?"read-only":"all";return typeof window<"u"&&window.localStorage.setItem(hb(e),U),U})},[e]);T.useEffect(()=>{if(!n)return;const W=U=>{U.key==="Escape"&&(r?c(!1):s(!1))};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[n,r]),T.useEffect(()=>{if(!n)return;let W=!1;P(null);const U=()=>{W||k||pb(e).then(se=>{W||g(se.messages)}).catch(se=>{W||P(se instanceof Error?se.message:"Failed to load transcript")})};U();const te=window.setInterval(U,15e3);return()=>{W=!0,window.clearInterval(te)}},[n,e,k]),T.useEffect(()=>()=>{re.current?.abort()},[e]);async function pe(W){const U=W.trim();if(!U||k)return;P(null),x(""),S(!0),$(""),A([]);const K={role:"user",content:U,timestamp:Date.now()};g(se=>[...se,K]);const te=new AbortController;re.current=te;try{await DB({project:e,prompt:U,provider:V??void 0,scope:J,signal:te.signal,onEvent:I});const se=await pb(e);g(se.messages)}catch(se){se.name!=="AbortError"&&P(se instanceof Error?se.message:"Prompt failed")}finally{S(!1),$(""),re.current=null}}function I(W){switch(W.type){case"message_update":$(u3(W.message));break;case"message_end":W.message.role==="assistant"&&$("");break;case"tool_execution_start":A(U=>[...U,{id:W.toolCallId,name:W.toolName,args:W.args,startedAt:Date.now()}]);break;case"tool_execution_end":A(U=>U.map(K=>K.id===W.toolCallId?{...K,endedAt:Date.now(),isError:W.isError,result:W.result}:K));break;case"error":P(W.message);break}}async function ie(){re.current?.abort();try{await EB(e),g([]),P(null)}catch(W){P(W instanceof Error?W.message:"Reset failed")}}const ue=f.length===0,_e=n&&r?"pointer-events-auto fixed inset-0 z-40 flex items-stretch justify-center bg-bg/70 p-4 sm:p-8 backdrop-blur-sm":"pointer-events-none fixed inset-x-0 bottom-0 z-40 flex justify-center p-3",le=r?"pointer-events-auto flex h-full w-full max-w-5xl flex-col overflow-hidden rounded-2xl border border-mono-800/80 bg-bg/95 shadow-2xl":"pointer-events-auto w-full max-w-3xl",He=r?"flex-1 overflow-y-auto px-6 py-5 text-sm text-strong":"max-h-[40vh] min-h-[120px] overflow-y-auto px-4 py-3 text-sm text-strong";return u.jsx("div",{className:_e,onClick:W=>{r&&W.target===W.currentTarget&&c(!1)},children:u.jsx("div",{className:le,children:n?u.jsxs("div",{className:r?"flex h-full flex-col":"flex flex-col overflow-hidden rounded-2xl border border-mono-800/80 bg-bg/95 shadow-xl backdrop-blur",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-mono-800/70 px-4 py-2.5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ag,{className:"h-4 w-4 text-positive-400","aria-hidden":"true"}),u.jsx("span",{className:"text-sm font-medium text-heading",children:"Aero"}),u.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted",children:k?"working…":e})]}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(qB,{providers:ge.data?.providers??[],active:qe,override:V,onPick:De,disabled:k}),u.jsx("button",{type:"button",onClick:Yt(ie),className:"rounded-md p-1.5 text-muted transition hover:bg-surface-inset hover:text-strong","aria-label":"Reset conversation",title:"Reset conversation",children:u.jsx(Bb,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),u.jsx("button",{type:"button",onClick:()=>c(W=>!W),className:"rounded-md p-1.5 text-muted transition hover:bg-surface-inset hover:text-strong","aria-label":r?"Collapse":"Expand",title:r?"Collapse":"Expand",children:r?u.jsx(Mw,{className:"h-3.5 w-3.5","aria-hidden":"true"}):u.jsx(Pw,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),u.jsx("button",{type:"button",onClick:()=>{c(!1),s(!1)},className:"rounded-md p-1.5 text-muted transition hover:bg-surface-inset hover:text-strong","aria-label":"Close Aero",children:u.jsx(ro,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),u.jsxs("div",{ref:he,className:He,children:[L&&u.jsx("div",{className:"mb-2 rounded-md border border-negative-700/40 bg-negative-950/40 px-3 py-2 text-xs text-negative-200",children:L}),ue&&!k&&u.jsxs("div",{className:"flex flex-col gap-3 py-2",children:[u.jsxs("p",{className:"text-sm text-secondary",children:["Ask about ",u.jsx("span",{className:"text-strong",children:e})," or choose a starting point."]}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:TB.map(W=>u.jsx("button",{type:"button",onClick:()=>{pe(W.prompt)},className:"rounded-md border border-base bg-bg-elevated/70 px-3 py-1.5 text-sm text-neutral transition hover:border-strong hover:bg-mono-800/70 hover:text-heading",children:W.label},W.label))})]}),LB(f,e,V,J),j.length>0&&u.jsx("div",{className:"mt-3 space-y-1.5",children:j.map(W=>u.jsx(d3,{trail:W},W.id))}),k&&z&&u.jsxs("div",{className:"mt-3",children:[u.jsx("div",{className:"mb-0.5 text-[10px] uppercase tracking-wider text-positive-400",children:"Aero"}),u.jsx(m3,{content:z})]}),k&&!z&&j.every(W=>W.endedAt!==void 0)&&u.jsx(GB,{})]}),u.jsx(BB,{projectName:e,activeProvider:qe,scope:J,onToggleScope:at,disabled:k}),u.jsxs("div",{className:"relative",children:[de.length>0&&u.jsx(MB,{matches:de,selectedIndex:ae,onHover:Ae,onPick:W=>{x(""),q.current?.focus(),W.action==="clear"?ie():pe(W.prompt)}}),u.jsxs("form",{className:"flex items-end gap-2 border-t border-mono-800/70 bg-bg/80 px-3 py-2.5",onSubmit:W=>{if(W.preventDefault(),de.length>0){const U=de[ae];x(""),U.action==="clear"?ie():pe(U.prompt);return}pe(b)},children:[u.jsx("textarea",{ref:q,value:b,onChange:W=>x(W.target.value),onKeyDown:W=>{if(de.length>0){if(W.key==="ArrowDown"){W.preventDefault(),Ae(U=>(U+1)%de.length);return}if(W.key==="ArrowUp"){W.preventDefault(),Ae(U=>(U-1+de.length)%de.length);return}if(W.key==="Tab"){W.preventDefault();const U=de[ae];x(`${U.command} `);return}if(W.key==="Escape"){W.preventDefault(),x("");return}}if(W.key==="Enter"&&!W.shiftKey)if(W.preventDefault(),de.length>0){const U=de[ae];x(""),U.action==="clear"?ie():pe(U.prompt)}else pe(b)},placeholder:"Ask Aero, or / for commands…",disabled:k,rows:r?3:1,className:"flex-1 resize-none bg-transparent text-sm text-heading placeholder:text-mono-600 focus:outline-none disabled:opacity-60"}),u.jsx("button",{type:"submit",disabled:k||!b.trim(),className:"inline-flex h-7 w-7 items-center justify-center rounded-md bg-positive-500 text-accent-fg transition hover:bg-positive-400 disabled:opacity-40","aria-label":"Send",children:u.jsx(Uw,{className:"h-3.5 w-3.5","aria-hidden":"true"})})]})]})]}):u.jsx("button",{type:"button",onClick:()=>s(!0),className:"flex w-full items-center justify-between rounded-lg border border-mono-800/80 bg-bg/95 px-4 py-2 text-left text-sm text-secondary shadow-lg transition hover:border-strong hover:bg-bg-elevated/90 hover:text-strong",children:u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(Ag,{className:"h-4 w-4 text-positive-400","aria-hidden":"true"}),"Ask Aero about ",e,"…"]})})})})}function qB({providers:e,active:n,override:s,onPick:r,disabled:c}){const[f,g]=T.useState(!1),b=T.useRef(null);if(T.useEffect(()=>{if(!f)return;const k=j=>{b.current?.contains(j.target)||g(!1)},S=j=>{j.key==="Escape"&&g(!1)};return window.addEventListener("mousedown",k),window.addEventListener("keydown",S),()=>{window.removeEventListener("mousedown",k),window.removeEventListener("keydown",S)}},[f]),e.length===0)return null;const x=n?.label.replace(/\s+\(.+\)$/,"")??"No provider";return u.jsxs("div",{ref:b,className:"relative",children:[u.jsxs("button",{type:"button",onClick:()=>g(k=>!k),disabled:c,className:"flex items-center gap-1 rounded-md px-2 py-1 text-sm text-secondary transition hover:bg-surface-inset hover:text-strong disabled:opacity-50","aria-label":"Switch agent model","aria-haspopup":"listbox","aria-expanded":f,title:n?`${n.label} · ${n.defaultModel}`:"Pick a provider",children:[u.jsx("span",{className:"font-medium text-strong",children:x}),u.jsx(qb,{className:"h-3 w-3","aria-hidden":"true"})]}),f&&u.jsxs("div",{role:"listbox",className:"absolute right-0 top-full z-50 mt-1 w-64 overflow-hidden rounded-lg border border-base bg-bg shadow-xl",children:[u.jsx("div",{className:"border-b border-default px-3 py-2 text-sm font-medium text-secondary",children:"Answer engine"}),u.jsx("ul",{className:"max-h-72 overflow-y-auto py-1",children:e.map(k=>{const S=n?.id===k.id,j=s===k.id;return u.jsx("li",{children:u.jsxs("button",{type:"button",role:"option","aria-selected":S,disabled:!k.configured,onClick:()=>{k.configured&&(r(j?null:k.id),g(!1))},className:"flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm transition enabled:hover:bg-bg-elevated disabled:cursor-not-allowed disabled:opacity-60",title:k.configured?k.defaultModel:`Add ${PB(k.id)} in Settings or your environment`,children:[u.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center",children:S?u.jsx(Mb,{className:"h-3 w-3 text-positive-400","aria-hidden":"true"}):null}),u.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-heading",children:k.label.replace(/\s+\(.+\)$/,"")}),j&&u.jsx("span",{className:"rounded-md border border-positive-800/60 bg-positive-950/60 px-2 py-0.5 text-[11px] text-positive",children:"Pinned"}),!k.configured&&u.jsx("span",{className:"rounded-md border border-base px-2 py-0.5 text-[11px] text-secondary",children:"Needs setup"})]})},k.id)})}),s&&u.jsx("button",{type:"button",onClick:()=>{r(null),g(!1)},className:"w-full border-t border-default px-3 py-2 text-left text-[11px] text-secondary transition hover:bg-bg-elevated hover:text-heading",children:"Reset to auto-detected default"})]})]})}function BB({projectName:e,activeProvider:n,scope:s,onToggleScope:r,disabled:c}){const f=n?.label.replace(/\s+\(.+\)$/,"")??null,g=s==="all";return u.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-t border-mono-800/70 bg-bg/80 px-3 pt-2 text-sm text-secondary",children:[u.jsx("span",{className:"font-medium text-strong",children:e}),f&&u.jsxs(u.Fragment,{children:[u.jsx("span",{"aria-hidden":"true",children:"·"}),u.jsx("span",{children:f})]}),u.jsx("button",{type:"button",onClick:r,disabled:c,className:`ml-auto inline-flex items-center rounded-md border px-2 py-1 text-sm font-medium transition disabled:opacity-50 ${g?"border-caution-800/60 bg-caution-950/40 text-caution hover:border-caution-700 hover:text-caution-200":"border-base bg-bg-elevated/70 text-secondary hover:border-strong hover:text-strong"}`,title:g?"Aero can invoke write tools (run sweep, dismiss insight, etc). Click to restrict.":"Aero is restricted to read-only tools. Click to allow writes.",children:g?"Can make changes":"Read only"})]})}function MB({matches:e,selectedIndex:n,onHover:s,onPick:r}){return u.jsxs("div",{className:"absolute inset-x-3 bottom-full mb-2 overflow-hidden rounded-lg border border-base bg-bg/98 shadow-2xl",children:[u.jsx("div",{className:"border-b border-default px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted",children:"Commands"}),u.jsx("ul",{role:"listbox",className:"max-h-72 overflow-y-auto py-1",children:e.map((c,f)=>{const g=f===n;return u.jsx("li",{children:u.jsxs("button",{type:"button",role:"option","aria-selected":g,onMouseEnter:()=>s(f),onClick:()=>r(c),className:`flex w-full items-center gap-3 px-3 py-2 text-left text-sm transition ${g?"bg-bg-elevated text-heading":"text-neutral hover:bg-bg-elevated/60"}`,children:[u.jsx("span",{className:"font-medium",children:c.label}),u.jsx("span",{className:"ml-auto font-mono text-[11px] text-secondary",children:c.command})]})},c.command)})})]})}function PB(e){switch(e){case"claude":return"ANTHROPIC_API_KEY";case"openai":return"OPENAI_API_KEY";case"gemini":return"GOOGLE_API_KEY";case"zai":return"ZAI_API_KEY";case"deepinfra":return"DEEPINFRA_TOKEN"}}function UB(e,n){const s=e.timestamp??0;return`${e.role}:${s}:${n}`}function LB(e,n,s,r){const c=[];for(let f=0;f<e.length;f++){const g=e[f],b=UB(g,f);if(g.role==="user"){const x=typeof g.content=="string"?g.content:JSON.stringify(g.content);if(x.startsWith("[system]"))continue;c.push(u.jsx(IB,{text:x,projectName:n,providerOverride:s,scope:r},b));continue}if(g.role==="assistant"){const x=new Map;let k=f+1;for(;k<e.length&&e[k].role==="toolResult";){const A=e[k];x.set(A.toolCallId,A),k++}const S=$B(g,x,g.timestamp??0),j=u3(g);c.push(u.jsxs(T.Fragment,{children:[S.length>0&&u.jsx("div",{className:"mt-3 space-y-1.5",children:S.map(A=>u.jsx(d3,{trail:A},A.id))}),j.trim()&&u.jsxs("div",{className:"mt-3",children:[u.jsx("div",{className:"mb-0.5 text-[10px] uppercase tracking-wider text-positive-400",children:"Aero"}),u.jsx(m3,{content:j})]})]},b)),f=k-1;continue}}return c}function IB({text:e,projectName:n,providerOverride:s,scope:r}){const[c,f]=T.useState(!1),g=T.useMemo(()=>VB(n,e,s,r),[n,e,s,r]);async function b(){try{await navigator.clipboard.writeText(g),f(!0),window.setTimeout(()=>f(!1),1500)}catch{}}return u.jsxs("div",{className:"group relative mt-3 rounded-md bg-bg-elevated/60 px-3 py-2 text-strong",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted",children:"You"}),u.jsx("button",{type:"button",onClick:Yt(b),className:"inline-flex items-center gap-1 rounded border border-mono-800/70 bg-bg/60 px-1.5 py-0.5 text-[10px] text-secondary opacity-0 transition hover:border-strong hover:text-heading group-hover:opacity-100 focus:opacity-100","aria-label":"Copy as CLI command",title:g,children:c?u.jsxs(u.Fragment,{children:[u.jsx(Mb,{className:"h-2.5 w-2.5 text-positive-400","aria-hidden":"true"}),"Copied"]}):u.jsxs(u.Fragment,{children:[u.jsx(Iw,{className:"h-2.5 w-2.5","aria-hidden":"true"}),"Copy as CLI"]})})]}),u.jsx("div",{className:"whitespace-pre-wrap",children:e})]})}function VB(e,n,s,r){const c=["canonry","agent","ask",fb(e),fb(n)];return s&&c.push("--provider",s),r==="read-only"&&c.push("--scope","read-only"),c.join(" ")}function fb(e){return`'${e.replace(/'/g,"'\\''")}'`}function $B(e,n,s){const r=[];for(const c of e.content){if(c.type!=="toolCall")continue;const f=c,g=n.get(f.id);r.push({id:f.id,name:f.name,args:f.arguments,startedAt:s,endedAt:g?.timestamp,isError:g?.isError,result:g?.content})}return r}function d3({trail:e}){const[n,s]=T.useState(!1),r=e.endedAt===void 0,c=!r&&e.isError===!0,f=e.endedAt!=null?e.endedAt-e.startedAt:null,g=f==null||f<0?null:f<1e3?`${f}ms`:`${(f/1e3).toFixed(1)}s`,b=c?"border-negative-800/50":r?"border-positive-800/50":"border-mono-800/70",x=c?"bg-negative-950/20":r?"bg-positive-950/20":"bg-surface-hover";return u.jsxs("div",{className:`rounded-md border ${b} ${x} font-mono`,children:[u.jsxs("button",{type:"button",onClick:()=>s(k=>!k),className:"flex w-full items-center gap-2 px-2.5 py-1.5 text-left","aria-expanded":n,children:[u.jsx("span",{className:"flex h-3.5 w-3.5 shrink-0 items-center justify-center",children:r?u.jsx(Ob,{className:"h-3 w-3 animate-spin text-positive-400","aria-hidden":"true"}):c?u.jsx(Pb,{className:"h-3 w-3 text-negative-400","aria-hidden":"true"}):u.jsx(Lw,{className:"h-3 w-3 text-muted","aria-hidden":"true"})}),u.jsx("span",{className:"text-[11px] font-semibold text-heading",children:e.name}),u.jsxs("span",{className:"ml-auto flex items-center gap-2 text-[10px] text-muted",children:[r?u.jsx("span",{className:"text-positive-400",children:"running…"}):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:c?"failed":"ok"}),g&&u.jsx("span",{children:g})]}),u.jsx(Ap,{className:`h-3 w-3 transition-transform ${n?"rotate-90":""}`,"aria-hidden":"true"})]})]}),n&&u.jsxs("div",{className:"border-t border-default px-2.5 py-2 text-[11px] text-secondary",children:[u.jsx("div",{className:"mb-1 text-[9px] uppercase tracking-wider text-faint",children:"Args"}),u.jsx("pre",{className:"mb-2 overflow-x-auto whitespace-pre-wrap break-all text-[10px] text-neutral",children:gb(e.args)}),!r&&e.result!==void 0&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"mb-1 text-[9px] uppercase tracking-wider text-faint",children:c?"Error":"Result"}),u.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap break-all text-[10px] text-neutral",children:gb(e.result)})]})]})]})}function gb(e){try{const n=typeof e=="string"?e:JSON.stringify(e,null,2);return n.length>2e3?`${n.slice(0,2e3)}
64
+ … (${n.length-2e3} more chars)`:n}catch{return String(e)}}function m3({content:e}){return u.jsx("div",{className:"text-heading",children:u.jsx(aS,{components:{h1:n=>u.jsx("h1",{...n,className:"mt-3 mb-2 text-base font-semibold text-primary"}),h2:n=>u.jsx("h2",{...n,className:"mt-3 mb-2 text-sm font-semibold text-primary"}),h3:n=>u.jsx("h3",{...n,className:"mt-3 mb-1.5 text-sm font-semibold text-heading"}),h4:n=>u.jsx("h4",{...n,className:"mt-2 mb-1 text-xs font-semibold uppercase tracking-wide text-neutral"}),p:n=>u.jsx("p",{...n,className:"mb-2 leading-relaxed"}),ul:n=>u.jsx("ul",{...n,className:"mb-2 ml-4 list-disc space-y-1"}),ol:n=>u.jsx("ol",{...n,className:"mb-2 ml-4 list-decimal space-y-1"}),li:n=>u.jsx("li",{...n,className:"marker:text-mono-600"}),strong:n=>u.jsx("strong",{...n,className:"font-semibold text-primary"}),em:n=>u.jsx("em",{...n,className:"text-strong"}),code:({children:n,...s})=>u.jsx("code",{...s,className:"rounded bg-mono-800/70 px-1 py-0.5 font-mono text-[12px] text-positive-200",children:n}),pre:n=>u.jsx("pre",{...n,className:"mb-2 overflow-x-auto rounded-md border border-base bg-bg-elevated/70 p-3 font-mono text-xs text-strong"}),a:n=>u.jsx("a",{...n,className:"text-positive-400 underline decoration-positive-700 hover:decoration-positive-400",target:"_blank",rel:"noopener noreferrer"}),table:n=>u.jsx("div",{className:"mb-2 overflow-x-auto",children:u.jsx("table",{...n,className:"w-full border-collapse text-xs"})}),thead:n=>u.jsx("thead",{...n,className:"border-b border-base"}),th:n=>u.jsx("th",{...n,className:"px-2 py-1 text-left font-semibold text-neutral"}),tr:n=>u.jsx("tr",{...n,className:"border-b border-mono-900"}),td:n=>u.jsx("td",{...n,className:"px-2 py-1 text-strong"}),blockquote:n=>u.jsx("blockquote",{...n,className:"mb-2 border-l-2 border-strong pl-3 italic text-secondary"}),hr:()=>u.jsx("hr",{className:"my-3 border-base"})},children:e})})}function GB(){return u.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-positive-400",children:"Aero"}),u.jsxs("div",{className:"flex items-center gap-1","aria-label":"Aero is thinking",children:[u.jsx("span",{className:"aero-dot h-1.5 w-1.5 rounded-full bg-positive-400/80"}),u.jsx("span",{className:"aero-dot aero-dot-2 h-1.5 w-1.5 rounded-full bg-positive-400/60"}),u.jsx("span",{className:"aero-dot aero-dot-3 h-1.5 w-1.5 rounded-full bg-positive-400/40"})]})]})}function HB(){const e=_b(),n=/^\/projects\/([^/]+)/.exec(e.pathname),s=n?decodeURIComponent(n[1]):null,r=ia({...Wc({client:oe}),enabled:s!==null,staleTime:6e4});if(!s)return null;const c=r.data??[],f=c.find(g=>g.id===s)??c.find(g=>g.name===s);return f?u.jsx(OB,{projectName:f.name},f.name):null}const KB={project:"getApiV1ProjectsByName",google:"getApiV1ProjectsByNameGoogle",gsc:"getApiV1ProjectsByNameGoogleGsc",bing:"getApiV1ProjectsByNameBing",ga:"getApiV1ProjectsByNameGa",gbp:"getApiV1ProjectsByNameGbp",ads:"getApiV1ProjectsByNameAds",traffic:"getApiV1ProjectsByNameTraffic",discovery:"getApiV1ProjectsByNameDiscover",researchRuns:"getApiV1ProjectsByNameResearchRuns",technicalAeo:"getApiV1ProjectsByNameTechnicalAeo",runs:"getApiV1ProjectsByNameRuns"};function un(e,n){const s=KB[n];return e.invalidateQueries({predicate:r=>{const c=r.queryKey[0];return typeof c?._id=="string"&&c._id.startsWith(s)}})}function Rc(e,n,s){switch(e.invalidateQueries({queryKey:N0({client:oe})}),e.invalidateQueries({queryKey:ho({client:oe})}),un(e,"runs"),n){case Te["answer-visibility"]:return;case Te["backlink-extract"]:return;case Te["site-audit"]:un(e,"technicalAeo");return;case Te["gsc-sync"]:case Te["inspect-sitemap"]:un(e,"gsc");return;case Te["ga-sync"]:un(e,"ga");return;case Te["traffic-sync"]:un(e,"ga"),un(e,"traffic");return;case Te["bing-inspect"]:case Te["bing-inspect-sitemap"]:un(e,"bing");return;case Te["aeo-discover-seed"]:case Te["aeo-discover-probe"]:return;case Te["gbp-sync"]:un(e,"gbp");return;case Te["ads-sync"]:un(e,"ads");return;default:return n}}const yb=[{label:"GitHub",href:"https://github.com/Canonry/canonry",Icon:Yw},{label:"Docs",href:"https://github.com/Canonry/canonry/tree/main/docs",Icon:Xw},{label:"Changelog",href:"https://github.com/Canonry/canonry/releases",Icon:Jw}],bb=e=>({label:e,state:"checking",detail:"Checking service health"}),QB={apiStatus:bb("API"),workerStatus:bb("Worker")};function ZB(e){return e==="completed"?"positive":e==="partial"?"caution":"negative"}function FB(e){const n=Ar(e.kind);return e.status==="completed"?`${n} completed`:e.status==="partial"?`${n} completed with partial results`:e.status==="cancelled"?`${n} cancelled`:`${n} failed`}function YB(e,n){return e.error?`${n}: ${o0(e.error)}`:e.location?`${n} · ${e.location}`:n}function vb(e,n,s){if(n)return n;const r=s.find(c=>c.id===e);return r?.displayName||r?.name||e}function XB(e,n){return[e.completed>0?`${e.completed} completed`:null,e.partial>0?`${e.partial} partial`:null,e.failed>0?`${e.failed} failed`:null,e.cancelled>0?`${e.cancelled} cancelled`:null,n>0?`${n} skipped at queue time`:null].filter(Boolean).join(", ")}function JB(e){return e.failed>0||e.cancelled>0?"negative":e.partial>0?"caution":"positive"}function WB(){const e=yi(),n=T.useSyncExternalStore(Px,On,On),s=Object.keys(n.runs).length>0||Object.keys(n.batches).length>0,r=ia({..._0({client:oe}),enabled:s,staleTime:Js,refetchInterval:3e3}),c=ia({...Wc({client:oe}),enabled:s}),f=T.useRef({}),g=T.useCallback(()=>{r.refetch()},[r.refetch]);return T.useEffect(()=>{s&&g()},[s,g]),T.useEffect(()=>{if(!s||typeof window>"u")return;const b=()=>{document.visibilityState==="visible"&&g()};return window.addEventListener("focus",g),document.addEventListener("visibilitychange",b),()=>{window.removeEventListener("focus",g),document.removeEventListener("visibilitychange",b)}},[s,g]),T.useEffect(()=>{const b=r.data??[],x=c.data??[],k=Object.fromEntries(b.map(j=>[j.id,j])),S=Object.fromEntries(b.map(j=>[j.id,j.status]));for(const j of Object.values(n.runs)){const A=k[j.runId];if(!A||!OO(A.status)||(f.current[A.id]??j.lastAnnouncedStatus)===A.status)continue;const $=x.find(P=>P.id===A.projectId);if($&&Rc(e,A.kind,$.name),j.sourceAction==="run-all"){Im(A.id);continue}const L=vb(A.projectId,j.projectLabel,x);sa({title:FB(A),detail:YB(A,L),tone:ZB(A.status),dedupeKey:`run:${A.id}`,dedupeMode:"replace",cta:{label:"View run",intent:"open-run-drawer",runId:A.id}}),Im(A.id)}if(r.data!==void 0){const j=new Set(b.map(z=>z.id)),A=BO(Object.values(n.runs),j,Date.now(),qO);for(const z of A){const $=x.find(L=>L.id===z.projectId);$&&Rc(e,z.kind,$.name),z.sourceAction!=="run-all"&&sa({title:`${Ar(z.kind)} status unavailable`,detail:vb(z.projectId,z.projectLabel,x),tone:"neutral",dedupeKey:`run-stale:${z.runId}`,dedupeMode:"replace"}),Im(z.runId)}}for(const j of Object.values(n.batches)){const A=MO(j.runIds,k);A.finished&&(sa({title:"Run-all batch finished",detail:XB(A,j.skippedCount),tone:JB(A),dedupeKey:`batch:${j.batchId}`,dedupeMode:"replace",cta:{label:"View runs",intent:"go-to-runs"}}),RO(j.batchId))}f.current=S},[c.data,r.data,n,e]),null}function eM(){const{account:e,isAdmin:n}=Rr(),s=$r(),r=T.useMemo(()=>ev(),[]),c=T.useMemo(H4,[]),f=T.useMemo(K4,[]),g=T.useMemo(Q4,[]),{dashboard:b,isLoading:x,refetch:k}=iu(void 0,{includeSettings:!r}),A=T0(!s,s?.health).data??s?.health??QB,z=_b(),{runId:$,evidenceId:L,closeDrawer:P}=R0(),[V,ne]=T.useState(!1),[J,ee]=T.useState(()=>{if(typeof window>"u")return!1;try{return window.localStorage.getItem("canonry:sidebarHidden")==="true"}catch{return!1}}),[re,he]=T.useState(()=>{if(typeof window>"u")return null;try{return window.localStorage.getItem("canonry:dismissedUpdateVersion")}catch{return null}}),[q]=T.useState(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("force-update")),ae=q?{current:A.apiStatus.version??"0.0.0",latest:q,url:"https://www.npmjs.com/package/@canonry/canonry",upgradeCommand:"npm install -g @canonry/canonry"}:A.apiStatus.updateAvailable,Ae=g&&ae&&ae.latest!==re,de=()=>{if(ae){try{window.localStorage.setItem("canonry:dismissedUpdateVersion",ae.latest)}catch{}he(ae.latest)}},ge=()=>{const U=!J;try{U?window.localStorage.setItem("canonry:sidebarHidden","true"):window.localStorage.removeItem("canonry:sidebarHidden")}catch{}ee(U)},qe=SB($),De=qe.data??null,at=qe.isLoading;T.useEffect(()=>{De&&De.status!=="running"&&De.status!=="queued"&&k()},[De?.status,k]),T.useEffect(()=>{ne(!1)},[z.pathname]),T.useEffect(()=>{if(typeof window>"u"||!$&&!L)return;const U=K=>{K.key==="Escape"&&P()};return window.addEventListener("keydown",U),()=>{window.removeEventListener("keydown",U)}},[$,L,P]);const pe=b??s?.dashboard??null,I=z.pathname==="/setup"&&pe!==null&&pe.portfolioOverview.projects.length===0,ie=I?"app-shell-focus":J?"app-shell-sidebar-hidden":"",ue=$?(pe?Fq(pe,$):void 0)??(De?nu(De,pe?.projects.find(U=>U.project.id===De.projectId)?.project.displayName??pe?.projects.find(U=>U.project.id===De.projectId)?.project.name??"Unknown project"):void 0):void 0,_e=T.useMemo(()=>$q(z.pathname,pe),[z.pathname,pe]),{commandCenter:le}=xB(_e),He=T.useMemo(()=>{if(L)return Xq(le,pe,L)},[L,le,pe]),W=(()=>{const U=z.pathname;if(U==="/")return"Portfolio";if(U==="/projects")return"Projects";if(U==="/runs")return"Runs";if(U==="/history")return"History";if(U==="/settings")return"Settings";if(U==="/setup")return"Setup";if(U==="/backlinks")return"Backlink data";if(U==="/traffic"||U.startsWith("/traffic/"))return"Traffic sources";if(U.startsWith("/projects/")){const te=U.split("/").filter(Boolean)[1];if(te&&pe){const se=pe.projects.find(Ce=>Ce.project.id===te);if(se)return se.project.name}return"Project"}return"Not found"})();if(T.useEffect(()=>{const U=gR(r?.theme);if(!U)return;const K=document.createElement("link");return K.rel="stylesheet",K.href=U,document.head.appendChild(K),()=>{document.head.removeChild(K)}},[r]),r){const U=!r.views||r.views.includes(cR(z.pathname));return u.jsxs("div",{className:"app-shell app-shell-embed","data-theme":hR(r.theme),style:fR(r.theme),children:[u.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),u.jsx("main",{id:"content",className:"page-shell",children:U?u.jsx(Km,{}):u.jsx("div",{className:"embed-view-unavailable",role:"status",children:"This view is not available in embed mode."})})]})}return u.jsxs("div",{className:`app-shell ${ie}`,children:[u.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),!I&&!J&&u.jsxs("aside",{id:"desktop-sidebar",className:"sidebar","aria-label":"Primary navigation",children:[u.jsx("div",{className:"sidebar-brand",children:u.jsx(ob,{version:A.apiStatus.version,updateAvailable:Ae?ae:null,onDismissUpdate:de})}),u.jsxs("nav",{className:"sidebar-nav",children:[u.jsxs(Je,{to:"/",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Vw,{className:"sidebar-icon"}),u.jsx("span",{children:"Portfolio"})]}),u.jsxs(Je,{to:"/projects",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!1},children:[u.jsx($w,{className:"sidebar-icon"}),u.jsx("span",{children:"Projects"})]}),u.jsxs(Je,{to:"/runs",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Gw,{className:"sidebar-icon"}),u.jsx("span",{children:"Runs"})]}),u.jsxs(Je,{to:"/history",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Hw,{className:"sidebar-icon"}),u.jsx("span",{children:"History"})]}),u.jsxs(Je,{to:"/traffic",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!1},children:[u.jsx(Kw,{className:"sidebar-icon"}),u.jsx("span",{children:"Traffic sources"})]}),u.jsxs(Je,{to:"/backlinks",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Qw,{className:"sidebar-icon"}),u.jsx("span",{children:"Backlink data"})]}),n&&u.jsxs(Je,{to:"/settings",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Zw,{className:"sidebar-icon"}),u.jsx("span",{children:"Settings"})]}),x?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Tracked projects"}),[1,2,3].map(U=>u.jsxs("div",{className:"sidebar-skeleton-item",children:[u.jsx("span",{className:"skeleton-circle size-2"}),u.jsx("span",{className:"skeleton-text flex-1",style:{width:`${50+U*15}%`}})]},U))]}):pe&&pe.projects.length>0?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Tracked projects"}),pe.projects.map(U=>{const K=U.visibilitySummary.tone;return u.jsxs(Je,{to:"/projects/$projectName",params:{projectName:U.project.name},className:"sidebar-project",activeProps:{className:"sidebar-project sidebar-project-active"},children:[u.jsx("span",{className:`sidebar-dot sidebar-dot-${K}`}),u.jsx("span",{children:U.project.displayName||U.project.name})]},U.project.id)})]}):x?null:u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Resources"}),n&&u.jsxs(Je,{to:"/setup",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Fw,{className:"sidebar-icon"}),u.jsx("span",{children:"Setup"})]})]})]}),e&&u.jsxs("div",{className:"sidebar-account",children:[u.jsxs("div",{className:"sidebar-account-identity",children:[u.jsx("span",{className:"sidebar-account-name",children:e.name}),e.role==="viewer"?u.jsx("span",{className:"sidebar-account-role",children:"View only"}):null]}),u.jsx(Ee,{type:"button",variant:"ghost",size:"sm",onClick:Yt(async()=>{await Bg(),window.location.reload()}),children:"Sign out"})]}),c?u.jsx("div",{className:"sidebar-footer",children:yb.map(({label:U,href:K,Icon:te})=>u.jsx("a",{className:"sidebar-footer-icon",href:K,target:"_blank",rel:"noopener noreferrer",title:U,"aria-label":U,children:u.jsx(te,{className:"size-4"})},K))}):null]}),u.jsxs("div",{className:"main-area",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-left",children:[!I&&u.jsx(Ee,{className:"sidebar-privacy-toggle",variant:"ghost",size:"icon",type:"button","aria-label":J?"Show sidebar":"Hide sidebar","aria-controls":J?void 0:"desktop-sidebar","aria-expanded":!J,title:J?"Show sidebar":"Hide sidebar",onClick:ge,children:J?u.jsx(Ww,{className:"size-4"}):u.jsx(eS,{className:"size-4"})}),u.jsx("div",{className:"topbar-brand-mobile",children:u.jsx(ob,{compact:!0})}),u.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[u.jsx(Je,{to:"/",children:"Home"}),u.jsx(Ap,{className:"breadcrumb-sep size-3"}),u.jsx("span",{className:"breadcrumb-current",children:W})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsx(_B,{}),u.jsxs("div",{className:"health-pill-row",children:[u.jsxs("span",{className:`health-pill health-pill-${A.apiStatus.state}`,title:oo(A.apiStatus),children:["API ",A.apiStatus.state==="ok"?"ok":A.apiStatus.state]}),u.jsxs("span",{className:`health-pill health-pill-${A.workerStatus.state}`,title:oo(A.workerStatus),children:["Worker ",A.workerStatus.state==="ok"?"ok":A.workerStatus.state]})]}),u.jsxs(Ee,{className:"nav-toggle",variant:"secondary",size:"icon",type:"button","aria-expanded":V,"aria-controls":"mobile-nav",onClick:()=>ne(U=>!U),children:[u.jsx(tS,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Open navigation"})]})]})]}),u.jsxs("div",{id:"mobile-nav",className:`mobile-nav ${V?"mobile-nav-open":""}`,children:[u.jsxs(Ee,{className:"mobile-nav-close",variant:"ghost",size:"icon",type:"button",onClick:()=>ne(!1),children:[u.jsx(ro,{className:"size-5"}),u.jsx("span",{className:"sr-only",children:"Close navigation"})]}),u.jsx(Je,{to:"/",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Portfolio"}),u.jsx(Je,{to:"/projects",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!1},children:"Projects"}),u.jsx(Je,{to:"/runs",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Runs"}),u.jsx(Je,{to:"/history",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"History"}),u.jsx(Je,{to:"/traffic",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!1},children:"Traffic sources"}),u.jsx(Je,{to:"/backlinks",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Backlink data"}),n&&u.jsx(Je,{to:"/settings",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Settings"}),pe&&pe.projects.length>0?u.jsxs("div",{className:"mobile-nav-section",children:[u.jsx("p",{className:"mobile-nav-section-title",children:"Tracked projects"}),pe.projects.map(U=>u.jsx(Je,{to:"/projects/$projectName",params:{projectName:U.project.name},className:"mobile-nav-link",children:U.project.name},U.project.id))]}):null,e&&u.jsxs("div",{className:"mobile-nav-section",children:[u.jsx("p",{className:"mobile-nav-section-title",children:"Signed in"}),u.jsxs("div",{className:"sidebar-account",children:[u.jsxs("div",{className:"sidebar-account-identity",children:[u.jsx("span",{className:"sidebar-account-name",children:e.name}),e.role==="viewer"?u.jsx("span",{className:"sidebar-account-role",children:"View only"}):null]}),u.jsx(Ee,{type:"button",variant:"ghost",size:"sm","data-testid":"mobile-sign-out",onClick:Yt(async()=>{await Bg(),window.location.reload()}),children:"Sign out"})]})]})]}),u.jsx("main",{id:"content",className:"page-shell",children:x&&!s?u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-40"}),u.jsx("div",{className:"skeleton-text-sm w-72"})]}),u.jsx("div",{className:"page-skeleton-grid",children:[1,2,3].map(U=>u.jsxs("div",{className:"page-skeleton-card",children:[u.jsx("div",{className:"skeleton-text w-24"}),u.jsx("div",{className:"skeleton-text w-full"}),u.jsx("div",{className:"skeleton-text-sm w-3/4"})]},U))}),u.jsx("div",{className:"page-skeleton-grid",style:{gridTemplateColumns:"1fr 1fr"},children:[1,2].map(U=>u.jsxs("div",{className:"page-skeleton-card",children:[u.jsx("div",{className:"skeleton-text w-20"}),u.jsx("div",{className:"space-y-2",children:[1,2,3].map(K=>u.jsx("div",{className:"skeleton-text-sm w-full"},K))})]},U))})]}):u.jsx(Km,{})}),u.jsxs("footer",{className:"footer",children:[u.jsxs("span",{className:"footer-brand",children:[u.jsx("span",{children:u.jsx("a",{href:"https://canonry.ai",children:"Canonry"})}),A.apiStatus.version&&A.apiStatus.version!=="unknown"?u.jsxs("span",{className:"footer-version",children:["v",A.apiStatus.version]}):null]}),c?u.jsx("div",{className:"footer-links",children:yb.map(({label:U,href:K,Icon:te})=>u.jsx("a",{href:K,target:"_blank",rel:"noopener noreferrer",title:U,"aria-label":U,className:"footer-icon",children:u.jsx(te,{className:"size-3.5"})},K))}):null]})]}),$&&!ue&&at?u.jsx($m,{open:!0,title:"Loading run details",subtitle:"Fetching the durable run record",onClose:P,children:u.jsx("p",{className:"text-sm text-muted",role:"status",children:"Loading run details…"})}):null,$&&!ue&&qe.isError?u.jsx($m,{open:!0,title:"Run unavailable",subtitle:"The run could not be loaded",onClose:P,children:u.jsx("p",{className:"text-sm text-negative",children:qe.error instanceof Error?qe.error.message:"Run details are unavailable."})}):null,ue?u.jsxs($m,{open:!0,title:ue.summary,subtitle:`${ue.projectName} · ${ue.kindLabel}`,onClose:P,children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-1 text-sm",children:[u.jsx(D0,{status:ue.status}),u.jsx("span",{className:"text-secondary",children:ue.startedAt}),u.jsx("span",{className:"text-muted",children:ue.duration}),u.jsx("span",{className:"text-faint",children:ue.triggerLabel})]}),ue.status==="failed"&&ue.statusDetail&&u.jsx("p",{className:"mt-2 text-sm text-negative",children:ue.statusDetail}),u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted mb-2",children:"Activity Log"}),at?u.jsx("p",{className:"text-sm text-muted",children:"Loading run details..."}):De?.snapshots&&De.snapshots.length>0?u.jsxs("div",{className:"space-y-2",children:[De.snapshots.map(U=>u.jsxs("div",{className:"rounded-lg border border-default bg-surface p-3",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[u.jsx("p",{className:"text-sm font-medium text-strong truncate",children:U.query??"Unknown query"}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(Eq,{provider:U.provider}),u.jsx(e3,{variant:U.citationState===zc.cited?"success":"neutral",children:U.citationState})]})]}),U.model&&u.jsx("p",{className:"text-[11px] text-muted font-mono",children:U.model}),U.citedDomains.length>0&&u.jsxs("p",{className:"text-xs text-muted mt-1",children:[u.jsx("span",{className:"text-secondary",children:"Sources:"})," ",U.citedDomains.join(", ")]}),U.competitorOverlap.length>0&&u.jsxs("p",{className:"text-xs text-negative-400/80 mt-0.5",children:["Competitor cited: ",U.competitorOverlap.join(", ")]}),U.groundingSources&&U.groundingSources.length>0&&u.jsxs("details",{className:"mt-2",children:[u.jsxs("summary",{className:"text-xs text-muted cursor-pointer hover:text-secondary",children:[U.groundingSources.length," grounding source",U.groundingSources.length!==1?"s":""]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:U.groundingSources.map((K,te)=>{const se=xp(K.uri),Ce=K.title||K.uri;return u.jsx("li",{className:"text-xs text-muted truncate",children:se?u.jsx("a",{href:se,target:"_blank",rel:"noopener noreferrer",className:"hover:text-neutral",children:Ce}):u.jsx("span",{children:Ce})},te)})})]}),U.answerText&&u.jsxs("details",{className:"mt-1",children:[u.jsx("summary",{className:"text-xs text-muted cursor-pointer hover:text-secondary",children:"Answer preview"}),u.jsx("p",{className:"mt-1 text-xs text-secondary leading-relaxed whitespace-pre-wrap",children:U.answerText})]})]},U.id)),De.status==="running"&&u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-caution-500 animate-pulse"}),"Running remaining queries..."]})]}):De&&De.status==="running"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-caution-500 animate-pulse"}),"Waiting for first query result..."]}):De&&De.status==="queued"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-mono-500 animate-pulse"}),"Run queued, waiting for execution slot..."]}):De&&De.error?u.jsxs("div",{className:"rounded-lg border border-negative-800/40 bg-negative-950/20 p-3",children:[u.jsx("p",{className:"text-sm font-medium text-negative mb-2",children:"Run failed"}),u.jsx("pre",{className:"max-h-48 overflow-y-auto whitespace-pre-wrap break-words font-mono text-xs leading-5 text-negative",children:oR(De.error)})]}):u.jsx("p",{className:"text-sm text-muted",children:"No snapshot data available."})]})]}):null,He?u.jsx(Lq,{evidence:He.evidence,project:He.project,onClose:P}):null,u.jsx(WB,{}),u.jsx(NB,{}),f?u.jsx(HB,{}):null]})}class tM extends T.Component{state={error:null};static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,s){console.error("[ErrorBoundary]",n,s.componentStack)}handleReset=()=>{this.setState({error:null})};render(){return this.state.error?u.jsx("div",{className:"page-container",children:u.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-20 text-center",children:[u.jsx("div",{className:"rounded-full bg-negative-950/40 p-3",children:u.jsx(Pb,{className:"size-6 text-negative-400"})}),u.jsx("h2",{className:"text-lg font-semibold text-heading",children:"Something went wrong"}),u.jsx("p",{className:"text-sm text-secondary max-w-md",children:this.state.error.message||"An unexpected error occurred while rendering this page."}),u.jsxs("div",{className:"flex gap-3 mt-2",children:[u.jsxs(Ee,{variant:"secondary",size:"sm",onClick:this.handleReset,children:[u.jsx(Bb,{className:"size-3.5 mr-1.5"}),"Try again"]}),u.jsx(Ee,{variant:"secondary",size:"sm",onClick:()=>{const n=window.__CANONRY_CONFIG__?.basePath?.replace(/\/$/,"")??"";window.location.href=n||"/"},children:"Go home"})]})]})}):this.props.children}}const La=T.forwardRef(({className:e,...n},s)=>u.jsx("div",{ref:s,className:Va("rounded-xl border border-base bg-bg/75 shadow-[0_0_0_1px_var(--color-shadow-hairline)]",e),...n}));La.displayName="Card";const Nr=T.forwardRef(({className:e,...n},s)=>u.jsx("div",{ref:s,className:Va("flex flex-col gap-1.5 p-5",e),...n}));Nr.displayName="CardHeader";const _r=T.forwardRef(({className:e,...n},s)=>u.jsx("h3",{ref:s,className:Va("font-medium tracking-tight text-primary",e),...n}));_r.displayName="CardTitle";const Oc=T.forwardRef(({className:e,...n},s)=>u.jsx("p",{ref:s,className:Va("text-sm text-muted",e),...n}));Oc.displayName="CardDescription";const Zs=T.forwardRef(({className:e,...n},s)=>u.jsx("div",{ref:s,className:Va("p-5 pt-0",e),...n}));Zs.displayName="CardContent";const aM=20,nM=6;function iM({points:e,tone:n}){const s=T.useId();if(e.length===0)return null;const r=42,c=132,f=5,g=c-f*2,b=r-f*2,x=b-nM,k=P=>f+P/Math.max(e.length-1,1)*g,S=nR(e),j=Math.min(...e),A=Math.max(...e),z=Math.max(A-j,aM),$=(A+j)/2-z/2,L=e.map((P,V)=>`${k(V)},${f+(1-(P-$)/z)*x}`).join(" ");return u.jsxs("svg",{className:`sparkline sparkline-${n}${S?" sparkline-provisional":""}`,viewBox:`0 0 ${c} ${r}`,"aria-hidden":"true",children:[u.jsx("defs",{children:u.jsx("clipPath",{id:s,children:u.jsx("rect",{x:f,y:f,width:g,height:b,rx:"8"})})}),u.jsx("line",{className:"sparkline-guide",x1:f,x2:c-f,y1:r-f,y2:r-f}),u.jsx("polyline",{clipPath:`url(#${s})`,points:L,vectorEffect:"non-scaling-stroke"})]})}function sM({project:e}){return u.jsxs(Je,{to:"/projects/$projectName",params:{projectName:e.project.name},className:"project-row cursor-pointer",children:[u.jsx("div",{className:"project-row-chart",children:u.jsx(iM,{points:e.trend,tone:qx(e.lastRun.status)})}),u.jsxs("div",{className:"project-row-primary",children:[u.jsxs("div",{children:[u.jsx("p",{className:"project-name",children:e.project.name}),u.jsx("p",{className:"project-domain",children:e.project.canonicalDomain})]}),u.jsx("p",{className:"project-insight",children:e.insight})]}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Mentioned"}),u.jsx("p",{className:`metric-inline-value ${e.mentionTone==="caution"?"text-caution-400":""}`,children:e.mentionScore}),u.jsx("p",{className:`metric-inline-caption${e.providerCoverage?" text-caution":""}`,title:e.providerCoverage,children:e.providerCoverage?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"sr-only",children:"Partial sweep: "}),e.providerCoverage]}):e.mentionDelta})]})}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsxs("p",{className:"metric-inline-label",children:[u.jsx("span",{"aria-hidden":"true",children:"Pressure"}),u.jsx("span",{className:"sr-only",children:"Competitor pressure"})]}),u.jsx("p",{className:"metric-inline-value",children:e.competitorPressureLabel}),u.jsx("p",{className:"metric-inline-caption","aria-hidden":"true"})]})}),u.jsx("span",{className:"project-row-link",children:u.jsx(Ap,{className:"h-4 w-4 text-muted"})})]})}function oM(){const e=$r(),{dashboard:n,isLoading:s}=iu(),r=n??e?.dashboard,f=T0(!e,e?.health),{openRun:g}=R0();if(!r||s)return u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-32"}),u.jsx("div",{className:"skeleton-text-sm w-64"})]}),u.jsx("div",{className:"space-y-3",children:[1,2,3].map(S=>u.jsxs("div",{className:"rounded-xl border border-default bg-surface p-4 flex items-center gap-4",children:[u.jsxs("div",{className:"flex-1 space-y-2",children:[u.jsx("div",{className:"skeleton-text w-36"}),u.jsx("div",{className:"skeleton-text-sm w-48"})]}),u.jsx("div",{className:"skeleton-text w-16"}),u.jsx("div",{className:"skeleton-text w-16"}),u.jsx("div",{className:"skeleton h-8 w-20 rounded"})]},S))})]});const b=r.portfolioOverview,x=f.data??e?.health??{apiStatus:{label:"API",state:"checking",detail:"Checking service health"},workerStatus:{label:"Worker",state:"checking",detail:"Checking service health"}},k=AO(b.systemHealth,x,r.settings);return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Portfolio"}),u.jsx("p",{className:"page-subtitle",children:"Visibility across all projects."})]})}),b.projects.length>0?u.jsx("div",{className:"project-list project-list-scrollable",children:b.projects.map(S=>u.jsx(sM,{project:S},S.project.id))}):u.jsxs(La,{className:"surface-card empty-card",children:[u.jsx("h3",{children:b.emptyState?.title??"No projects yet"}),u.jsx("p",{className:"supporting-copy",children:b.emptyState?.detail}),u.jsx(Ee,{size:"sm",asChild:!0,children:u.jsx(Je,{to:b.emptyState?.ctaHref==="/setup"||!b.emptyState?.ctaHref?"/setup":"/",children:b.emptyState?.ctaLabel??"Launch setup"})})]}),u.jsxs("div",{className:"overview-secondary-grid",children:[b.attentionItems.length>0&&u.jsxs("section",{className:"overview-secondary-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Needs attention"}),u.jsx("h2",{className:"section-title-sm",children:"What changed"})]})}),u.jsx("div",{className:"attention-list attention-list-scrollable",children:b.attentionItems.map(S=>S.href?u.jsxs(Je,{to:S.href,className:`attention-item attention-item-${S.tone}`,children:[u.jsxs("div",{children:[u.jsx("p",{className:"attention-title",children:S.title}),u.jsx("p",{className:"attention-detail",children:S.detail})]}),S.actionLabel&&u.jsx("span",{className:"attention-action",children:S.actionLabel})]},S.id):u.jsxs("div",{className:`attention-item attention-item-static attention-item-${S.tone}`,children:[u.jsxs("div",{children:[u.jsx("p",{className:"attention-title",children:S.title}),u.jsx("p",{className:"attention-detail",children:S.detail})]}),S.actionLabel&&u.jsx("span",{className:"attention-action",children:S.actionLabel})]},S.id))})]}),u.jsxs("section",{className:"overview-secondary-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Recent runs"}),u.jsx("h2",{className:"section-title-sm",children:"Activity"})]})}),u.jsx("div",{className:"compact-stack compact-stack-scrollable",children:b.recentRuns.length>0?b.recentRuns.map(S=>u.jsxs("button",{className:"compact-run",type:"button",onClick:()=>g(S.id),children:[u.jsxs("div",{children:[u.jsx("p",{className:"compact-run-title",children:S.projectName}),u.jsx("p",{className:"compact-run-detail",children:S.summary})]}),u.jsx(D0,{status:S.status})]},S.id)):u.jsx("p",{className:"supporting-copy",children:"Run history appears here after the first launch."})})]})]}),u.jsxs("section",{className:"page-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"System health"}),u.jsx("h2",{className:"section-title-sm",children:"Infrastructure"})]})}),u.jsx("div",{className:"divide-y divide-default border-y border-default",children:k.map(S=>{const j=S.id==="api"?x.apiStatus:S.id==="worker"?x.workerStatus:void 0,A=j?j.state==="ok"?void 0:oo(j):S.tone==="positive"?void 0:S.meta;return u.jsxs("div",{className:"flex items-start justify-between gap-4 py-3",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-heading",children:S.label}),A&&u.jsx("p",{className:"mt-1 text-sm text-secondary",children:A})]}),u.jsx(ga,{tone:S.tone,title:j?oo(j):S.meta,children:S.detail})]},S.id)})})]})]})}function rM({onApplied:e}){const[n,s]=T.useState(""),[r,c]=T.useState(!1),[f,g]=T.useState([]),[b,x]=T.useState([]);if(Z4())return null;const k=async()=>{if(!n.trim())return;c(!0),g([]),x([]);const S=nS(n),j=[],A=[];for(let z=0;z<S.length;z++){const $=S[z];if($.errors.length>0){j.push(`Document ${z+1}: ${$.errors[0]?.message}`);continue}const L=$.toJSON();if(!(!L||typeof L!="object"))try{const P=await y5(L);A.push(`Applied "${P.displayName||P.name}" (revision ${P.configRevision})`)}catch(P){j.push(`Document ${z+1}: ${P instanceof Error?P.message:String(P)}`)}}g(A),x(j),c(!1),A.length>0&&(sa({title:"YAML applied",detail:`Applied ${A.length} document${A.length===1?"":"s"} successfully.`,tone:j.length>0?"caution":"positive",dedupeKey:"yaml:apply",dedupeMode:"replace"}),e())};return u.jsxs("section",{className:"mt-8",children:[u.jsx("div",{className:"page-section-divider"}),u.jsx("div",{className:"section-head mt-6",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Config as code"}),u.jsx("h2",{className:"text-sm font-medium text-strong",children:"Apply YAML"})]})}),u.jsxs("p",{className:"text-muted text-sm mb-3",children:["Paste a ",u.jsx("code",{className:"text-secondary",children:"canonry.yaml"})," config (multi-document YAML with ",u.jsx("code",{className:"text-secondary",children:"---"})," separators supported)."]}),u.jsx("textarea",{className:"setup-input w-full font-mono text-xs",rows:10,placeholder:`apiVersion: canonry/v1
65
+ kind: Project
66
+ metadata:
67
+ name: my-project
68
+ spec:
69
+ canonicalDomain: example.com
70
+ country: US
71
+ language: en
72
+ queries: []`,value:n,onChange:S=>s(S.target.value)}),f.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:f.map((S,j)=>u.jsx("li",{className:"text-positive-400 text-sm",children:S},j))}),b.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:b.map((S,j)=>u.jsx("li",{className:"text-negative-400 text-sm",children:S},j))}),u.jsx("div",{className:"mt-3",children:u.jsx(Ee,{type:"button",disabled:!n.trim()||r,onClick:Yt(k),children:r?"Applying...":"Apply"})})]})}function lM(){const{dashboard:e,isLoading:n,refetch:s}=iu(),r=qc(),[c,f]=T.useState(!1),[g,b]=T.useState(""),[x,k]=T.useState(""),[S,j]=T.useState(""),[A,z]=T.useState("US"),[$,L]=T.useState("en"),[P,V]=T.useState(!1),[ne,J]=T.useState(null);if(!e||n)return u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-28"}),u.jsx("div",{className:"skeleton-text-sm w-40"})]}),u.jsxs("div",{className:"rounded-xl border border-default bg-surface overflow-hidden",children:[u.jsx("div",{className:"p-3 border-b border-default flex gap-8",children:["Name","Domain","Mentions","Last run","Country"].map(q=>u.jsx("div",{className:"skeleton-text-sm w-16"},q))}),[1,2,3].map(q=>u.jsxs("div",{className:"p-3 border-b border-subtle flex gap-8 items-center",children:[u.jsxs("div",{className:"flex-1 space-y-1",children:[u.jsx("div",{className:"skeleton-text w-28"}),u.jsx("div",{className:"skeleton-text-sm w-16"})]}),u.jsx("div",{className:"skeleton-text w-24"}),u.jsx("div",{className:"skeleton h-5 w-14 rounded-full"}),u.jsx("div",{className:"skeleton h-5 w-16 rounded-full"}),u.jsx("div",{className:"skeleton-text-sm w-8"})]},q))]})]});const ee=e.projects,re=g.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),he=async()=>{if(!(!re||!S)){V(!0),J(null);try{const q=await Ep(re,{displayName:x||g,canonicalDomain:S,country:A,language:$});sa({title:"Project created",detail:`${q.displayName||q.name} is ready to configure.`,tone:"positive",dedupeKey:`project:create:${q.name}`,dedupeMode:"drop"}),s(),b(""),k(""),j(""),z("US"),L("en"),f(!1),r({to:"/projects/$projectName",params:{projectName:q.name}})}catch(q){J(q instanceof Error?q.message:"Failed to create project")}finally{V(!1)}}};return u.jsxs("div",{className:"page-container",children:[u.jsxs("div",{className:"page-header",children:[u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Projects"}),u.jsxs("p",{className:"page-subtitle",children:[ee.length," project",ee.length!==1?"s":""," tracked"]})]}),u.jsx("div",{className:"page-header-right",children:u.jsxs(Ee,{type:"button",onClick:()=>f(q=>!q),children:[u.jsx(Ng,{className:"size-4 mr-1.5"}),"Add project"]})})]}),c?u.jsxs(La,{className:"surface-card mb-6",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"New project"}),u.jsx("h2",{className:"text-sm font-medium text-strong",children:"Create a new monitoring project"})]})}),u.jsxs("div",{className:"compact-stack mt-4",children:[u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-project-name",children:"Project name"}),u.jsx("input",{id:"new-project-name",className:"setup-input",type:"text",placeholder:"my-project",value:g,onChange:q=>b(q.target.value)}),re&&re!==g?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",re]}):null]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-display-name",children:"Display name"}),u.jsx("input",{id:"new-display-name",className:"setup-input",type:"text",placeholder:"My Project",value:x,onChange:q=>k(q.target.value)})]})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-domain",children:"Canonical domain"}),u.jsx("input",{id:"new-domain",className:"setup-input",type:"text",placeholder:"example.com",value:S,onChange:q=>j(q.target.value)})]}),u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-country",children:"Country"}),u.jsx("input",{id:"new-country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:A,onChange:q=>z(q.target.value.toUpperCase())})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-language",children:"Language"}),u.jsx("input",{id:"new-language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:$,onChange:q=>L(q.target.value.toLowerCase())})]})]})]}),ne?u.jsx("p",{className:"text-negative-400 text-sm mt-3",children:ne}):null,u.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[u.jsx(Ee,{type:"button",disabled:!re||!S||P,onClick:Yt(he),children:P?"Creating...":"Create project"}),u.jsx(Ee,{type:"button",variant:"ghost",onClick:()=>f(!1),children:"Cancel"})]})]}):null,ee.length>0?u.jsx("div",{className:"data-table-wrapper",children:u.jsxs("table",{className:"data-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Name"}),u.jsx("th",{children:"Domain"}),u.jsx("th",{children:"Mentions"}),u.jsx("th",{children:"Last run"}),u.jsx("th",{className:"text-right",children:"Country"})]})}),u.jsx("tbody",{children:ee.map(q=>{const ae=q.recentRuns[0];return u.jsxs("tr",{className:"cursor-pointer",onClick:()=>{r({to:"/projects/$projectName",params:{projectName:q.project.name}})},children:[u.jsxs("td",{children:[u.jsx(Je,{to:"/projects/$projectName",params:{projectName:q.project.name},className:"text-heading font-medium hover:underline",onClick:Ae=>Ae.stopPropagation(),children:q.project.displayName||q.project.name}),u.jsx("p",{className:"text-[11px] text-muted",children:q.project.name})]}),u.jsx("td",{className:"text-secondary",children:q.project.canonicalDomain}),u.jsx("td",{children:u.jsx(ga,{tone:q.mentionSummary.tone,children:q.mentionSummary.value})}),u.jsx("td",{className:"text-muted text-sm",children:ae?u.jsx(D0,{status:ae.status}):u.jsx("span",{className:"text-faint",children:"No runs"})}),u.jsx("td",{className:"text-right text-muted",children:q.project.country})]},q.project.id)})})]})}):c?null:u.jsxs(La,{className:"surface-card empty-card",children:[u.jsx("h3",{children:"No projects yet"}),u.jsx("p",{className:"supporting-copy",children:"Create your first monitoring project to start tracking AI visibility."}),u.jsxs(Ee,{type:"button",onClick:()=>f(!0),children:[u.jsx(Ng,{className:"size-4 mr-1.5"}),"Add project"]})]}),u.jsx(rM,{onApplied:()=>{s()}})]})}function jI({disabled:e,title:n,...s}){const{canWrite:r}=Rr();return r?u.jsx(Ee,{disabled:e,title:n,...s}):u.jsx(Ee,{...s,disabled:!0,title:rv})}function cM({title:e,children:n}){const{isAdmin:s}=Rr();return s?u.jsx(u.Fragment,{children:n}):u.jsxs(La,{className:"surface-card mx-auto mt-8 max-w-lg",children:[u.jsxs(Nr,{children:[u.jsxs(_r,{children:[e," is for administrators"]}),u.jsx(Oc,{children:"Your account has view-only access. You can read everything this install has measured; changing how it is set up needs an administrator account."})]}),u.jsx(Zs,{children:u.jsx("p",{className:"supporting-copy",children:"If you need to make a change here, ask an administrator on this install."})})]})}class uM extends Error{constructor(){super(rv),this.name="ViewOnlyError"}}function dM(e){if(!e.canWrite)throw new uM}function M0(e){e.invalidateQueries({queryKey:N0({client:oe})}),e.invalidateQueries({queryKey:ho({client:oe})})}function is(){const e=Rr();return()=>{dM(e)}}function mM(e){return e==="gsc-sync"?"GSC sync queued":e==="inspect-sitemap"?"Sitemap inspection queued":"Visibility sweep queued"}function pM(e,n){const s=e??"Project";return n==="gsc-sync"?`${s} will refresh after the sync completes.`:n==="inspect-sitemap"?`${s} will notify you when sitemap inspection finishes.`:`${s} will notify you when the run finishes.`}function P0(e,n){C0({id:e.id,projectId:e.projectId,kind:e.kind,projectLabel:n.projectLabel,sourceAction:n.sourceAction,lastAnnouncedStatus:"queued"}),sa({title:mM(e.kind),detail:pM(n.projectLabel,e.kind),tone:"neutral",dedupeKey:`run:${e.id}`,dedupeMode:"replace"})}function hM(e){const n=e.filter(g=>g.status!=="conflict"&&g.status!=="error"),s=e.filter(g=>g.status==="conflict"),r=e.filter(g=>g.status==="error"),c=s.length+r.length;if(n.length===0){const g=[r.length>0?`${r.length} need provider or query setup`:null,s.length>0?`${s.length} already have an active run`:null].filter(b=>b!==null);sa({title:"No runs queued",detail:g.length>0?`${g.join("; ")}.`:"No projects were available to queue.",tone:"caution",durationMs:8e3,dedupeKey:"run-all:conflict",dedupeMode:"replace"});return}for(const g of n)C0({id:g.id,projectId:g.projectId,kind:g.kind,projectLabel:g.projectName,sourceAction:"run-all",lastAnnouncedStatus:"queued"});const f=TO({runIds:n.map(g=>g.id),queuedCount:n.length,skippedCount:c});sa({title:"Run-all batch queued",detail:c>0?`${n.length} project${n.length===1?"":"s"} queued; ${c} need attention or already have an active run.`:`${n.length} project${n.length===1?"":"s"} queued.`,tone:c>0?"caution":"neutral",dedupeKey:`batch:${f}`,dedupeMode:"replace"})}function su(e,n){if(e instanceof _a&&e.code==="RUN_IN_PROGRESS"){sa({title:"Run already in progress",detail:n?.projectLabel?`${n.projectLabel} already has an active run. Wait for it to finish, then retry.`:"This project already has an active run. Wait for it to finish, then retry.",tone:"caution",durationMs:8e3,dedupeKey:`run-in-progress:${n?.projectKey??"project"}:${n?.sourceAction??"run"}`,dedupeMode:"replace"});return}sa({title:e instanceof Error?e.message:"Failed to queue run",tone:"negative"})}function fM(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,opts:r})=>u5(s,r),onSuccess:(s,r)=>{M0(n),P0(s,{projectLabel:r.projectLabel??r.projectName,sourceAction:r.sourceAction})},onError:(s,r)=>{r.sourceAction!=="setup-launch"&&su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:r.sourceAction})}})}function AI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:s=>b5(s),onSuccess:s=>{M0(n),hM(s)},onError:s=>{sa({title:s instanceof Error?s.message:"Failed to queue runs",tone:"negative"})}})}function NI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,body:r})=>w5(s,r),onSuccess:(s,r)=>{M0(n),C0({id:s.runId,projectId:r.projectId,kind:Te["site-audit"],projectLabel:r.projectLabel??r.projectName,sourceAction:"site-audit",lastAnnouncedStatus:s.status}),sa({title:s.status==="running"?"Technical audit already running":"Technical audit queued",detail:`${r.projectLabel??r.projectName} will refresh automatically when the audit finishes.`,tone:"neutral",dedupeKey:`run:${s.runId}`,dedupeMode:"replace"})},onError:(s,r)=>{su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:"site-audit"})}})}function _I(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,opts:r})=>v5(s,r),onSuccess:(s,r)=>{Rc(n,Te["gsc-sync"],r.projectName),P0(s,{projectLabel:r.projectLabel??r.projectName,sourceAction:"gsc-sync"})},onError:(s,r)=>{su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:"gsc-sync"})}})}function CI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,opts:r})=>k5(s,r),onSuccess:(s,r)=>{Rc(n,Te["inspect-sitemap"],r.projectName),P0(s,{projectLabel:r.projectLabel??r.projectName,sourceAction:"inspect-sitemap"})},onError:(s,r)=>{su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:"inspect-sitemap"})}})}function p3(e){if(!Array.isArray(e.queryKey)||e.queryKey.length<=1)return!1;const n=e.queryKey[0];return n==="projects"||n==="project-dashboard-full"}function zI(){const e=is(),n=yi();return es({onMutate:e,mutationFn:({projectName:s,queries:r})=>r5(s,r),onSuccess:()=>{n.invalidateQueries({queryKey:ho({client:oe})}),n.invalidateQueries({predicate:p3})}})}function EI(){const e=is(),n=yi();return es({onMutate:e,mutationFn:({projectName:s,body:r})=>l5(s,r),onSuccess:()=>{un(n,"project"),n.invalidateQueries({predicate:p3})}})}const xb="canonry.onboarding-session.v1",gM=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,yM=["system","project","queries","competitors","run"];function bM(e){return yM[e]??"system"}function vM(e){if(!e.apiReady)return"api_unavailable";if(e.databaseConfigured===!1)return"database_unavailable";if(!e.workerReady)return"worker_unavailable";if(!e.providerReady)return"no_provider"}function xM(e){return e.apiStatus.state!=="checking"&&e.workerStatus.state!=="checking"}function kb(e,n){const s=e&&typeof e=="object"&&"code"in e?String(e.code):"";return s==="NO_PROVIDER"?"no_provider":s==="NO_QUERIES"?"no_queries":n}function kM(){try{const e=typeof window<"u"?window.sessionStorage.getItem(xb):null;if(e&&gM.test(e))return e;const n=kp();return typeof window<"u"&&window.sessionStorage.setItem(xb,n),n}catch{return kp()}}function wM(){return kp()}function kp(){const e=globalThis.crypto;if(e.randomUUID)return e.randomUUID();const n=new Uint8Array(16);if(e.getRandomValues)e.getRandomValues(n);else for(let r=0;r<n.length;r+=1)n[r]=Math.floor(Math.random()*256);n[6]=n[6]&15|64,n[8]=n[8]&63|128;const s=[...n].map(r=>r.toString(16).padStart(2,"0")).join("");return`${s.slice(0,8)}-${s.slice(8,12)}-${s.slice(12,16)}-${s.slice(16,20)}-${s.slice(20)}`}const SM=[{label:"System check",description:"Verify your instance is ready"},{label:"Create project",description:"Name, domain, and locale"},{label:"Queries",description:"Add queries to track"},{label:"Competitors",description:"Add competitor domains"},{label:"Launch",description:"Start your first visibility sweep"}];function wb(e,n){return(e==="completed"||e==="partial")&&n>0}function Sb(e){return e.launchReady?e.hasProject?e.queryCount===0?2:e.competitorCount===0&&!e.hasRunAttempt?3:4:1:0}function jb(e){return e.queryCounts.total>0}function jM({current:e,labels:n}){return u.jsx("div",{className:"setup-steps",role:"list","aria-label":"Setup progress",children:n.map((s,r)=>{const c=r<e,f=r===e;return u.jsxs("div",{className:`setup-step ${c?"setup-step-done":""} ${f?"setup-step-active":""}`,role:"listitem","aria-current":f?"step":void 0,children:[u.jsx("span",{className:"setup-step-number",children:c?"✓":r+1}),u.jsx("span",{children:s.label})]},s.label)})})}function AM(){return u.jsx(cM,{title:"Setup",children:u.jsx(NM,{})})}function NM(){const e=$r(),{dashboard:n,isLoading:s,refetch:r}=iu(),c=n??e?.dashboard;return!c||s?u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-24"}),u.jsx("div",{className:"skeleton-text-sm w-80"})]}),u.jsxs("div",{className:"page-skeleton-card",children:[u.jsx("div",{className:"skeleton-text w-32"}),u.jsx("div",{className:"space-y-3 mt-3",children:[1,2,3].map(f=>u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-1 flex-1",children:[u.jsx("div",{className:"skeleton-text w-24"}),u.jsx("div",{className:"skeleton-text-sm w-48"})]}),u.jsx("div",{className:"skeleton h-6 w-16 rounded-full"})]},f))})]})]}):u.jsx(_M,{dashboard:c,initialHealth:e?.health,enableLiveStatus:!e,refetch:r})}function _M({dashboard:e,initialHealth:n,enableLiveStatus:s,refetch:r}){const c=e.settings,g=T0(s,n).data??n??{apiStatus:{label:"API",state:"checking",detail:"Checking service health"},workerStatus:{label:"Worker",state:"checking",detail:"Checking service health"}},b=_O(e.setup,g,c),x=qc(),k=T.useRef(kM()).current,S=T.useRef(new Set),j=T.useCallback((F,Re)=>{if(Re){if(S.current.has(Re))return;S.current.add(Re)}f5({...F,eventId:wM()})},[]),A=e.projects.find(F=>!jb(F))??e.projects.at(0)??null,z=A?e.runs.filter(F=>F.projectId===A.project.id).sort((F,Re)=>Re.createdAt.localeCompare(F.createdAt)):[],$=A?.queryCounts.total??0,L=A?.project.name,P=ia({queryKey:["setup","resume-queries",L],queryFn:()=>L?av(L):Promise.resolve([]),enabled:!!L}),V=P.data??[],ne=P.data?.length??$,J=A?.competitors.map(F=>F.domain)??[],ee=z.at(0)??null,re=!!A&&jb(A),he=!!A&&P.isPending,q=Sb({launchReady:b.launchState.enabled,hasProject:!!A,queryCount:ne,competitorCount:J.length,hasRunAttempt:z.length>0||re}),ae=Sb({launchReady:!0,hasProject:!!A,queryCount:ne,competitorCount:J.length,hasRunAttempt:z.length>0||re}),[Ae,de]=T.useState(q),[ge,qe]=T.useState(!he),[De,at]=T.useState(A?.project.name??""),[pe,I]=T.useState(A?.project.displayName??""),[ie,ue]=T.useState(A?.project.canonicalDomain??""),[_e,le]=T.useState(A?.project.country??"US"),[He,W]=T.useState(A?.project.language??"en"),[U,K]=T.useState(A?.project.autoExtractBacklinks??!1),[te,se]=T.useState(A?.project.name??null),[Ce,lt]=T.useState(null),[Ne,Ke]=T.useState(!1),[Ye,Ut]=T.useState(V.map(F=>F.query).join(`
73
+ `)),[Ea,It]=T.useState(ne>0),[ss,os]=T.useState(null),[Gr,fo]=T.useState(!1),[go,yo]=T.useState(!1),Jt=c.providerStatuses.filter(F=>F.state==="ready"),[Bn,rs]=T.useState(Jt[0]?.name??""),[Kt,ou]=T.useState(5),[bo,vo]=T.useState(!1),[_i,Hr]=T.useState(null),[xo,ru]=T.useState(J.join(`
74
+ `)),[Kr,Ci]=T.useState(J.length>0),[Qt,$a]=T.useState(null),[Zt,Qr]=T.useState(!1),[Mn,lu]=T.useState(!!ee&&!re),[dn,zi]=T.useState(!1),[tn,Ga]=T.useState(null),[Pn,Ei]=T.useState(re?null:ee?.id??null),cu=fM(),an=ia({...Ox({client:oe,path:{id:Pn??""}}),enabled:!!Pn,refetchInterval:({state:F})=>{const Re=F.data?.status;return Re==="completed"||Re==="partial"||Re==="failed"||Re==="cancelled"?!1:2e3},refetchIntervalInBackground:!0}),[Di,Un]=T.useState(""),[ko,wo]=T.useState(!1),[So,jo]=T.useState(null),Ha=De.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),la=Ye.split(`
75
+ `).map(F=>F.trim()).filter(Boolean),mn=xo.split(`
76
+ `).map(F=>F.trim()).filter(Boolean),Ln=Math.max(ne,Ea?la.length:0),Ft=b.launchState.blockedReason??(te?Ln===0?"Add at least one query before launching the first sweep.":void 0:"Create a project before launching the first sweep."),ht=vM({apiReady:g.apiStatus.state==="ok",databaseConfigured:g.apiStatus.databaseConfigured,workerReady:g.workerStatus.state==="ok",providerReady:Jt.length>0});T.useEffect(()=>{ge||he||(de(q),V.length>0&&(Ut(V.map(F=>F.query).join(`
77
+ `)),It(!0)),qe(!0))},[V,q,ge,he]),T.useEffect(()=>{if(Jt.length===0){rs("");return}Jt.some(F=>F.name===Bn)||rs(Jt[0].name)},[Jt,Bn]),T.useEffect(()=>{ge&&(j({flowVersion:At,onboardingSessionId:k,event:"onboarding.started",step:bM(q),resumed:!!A},"onboarding.started"),!A&&q>0&&j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"system",method:"automatic"},"onboarding.step_completed:system"))},[j,q,k,ge,A]),T.useEffect(()=>{!xM(g)||!ht||j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"system",action:ht==="no_provider"?"configure_provider":"continue",reasonCode:ht},`onboarding.blocked:system:${ht}`)},[j,g,k,ht]);const wt=an.data?.status,Ka=an.data?.snapshots?.length??0;T.useEffect(()=>{if(!Mn||!wt)return;if(wb(wt,Ka)){j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"run",method:"automatic",countBucket:cn(Ka)},"onboarding.step_completed:run");return}const F=wt==="cancelled"?"run_cancelled":wt==="failed"||(wt==="completed"||wt==="partial")&&Ka===0?"run_failed":void 0;F&&j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"run",action:"retry_run",reasonCode:F},`onboarding.blocked:run:${F}`)},[j,k,wt,Ka,Mn]);const Ao=async()=>{if(!(!Ha||!ie)){Ke(!0),lt(null);try{const F=await Ep(Ha,{displayName:pe||De,canonicalDomain:ie,country:_e,language:He,autoExtractBacklinks:U});se(Ha),sa({title:"Project created",detail:`${F.displayName||F.name} is ready for setup.`,tone:"positive",dedupeKey:`project:create:${F.name}`,dedupeMode:"drop"}),await r(),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"project",method:"manual"},"onboarding.step_completed:project"),de(2)}catch(F){lt(F instanceof Error?F.message:"Failed to create project"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"project",action:"save",reasonCode:"project_create_failed"},"onboarding.blocked:project:project_create_failed")}finally{Ke(!1)}}},uu=async()=>{if(!te)return;const F=la;if(F.length!==0){fo(!0),os(null);try{await o5(te,F),It(!0),await r(),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"queries",method:go?"generated":"manual",countBucket:cn(F.length)},"onboarding.step_completed:queries"),de(3)}catch(Re){os(Re instanceof Error?Re.message:"Failed to save queries"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"queries",action:"save",reasonCode:"query_save_failed"},"onboarding.blocked:queries:query_save_failed")}finally{fo(!1)}}},du=async()=>{if(!(!te||!Bn)){vo(!0),Hr(null);try{const F=await g5(te,Bn,Kt);if(F.queries.length>0){const Re=Ye?Ye.trimEnd()+`
78
+ `+F.queries.join(`
79
+ `):F.queries.join(`
80
+ `);Ut(Re),yo(!0)}}catch(F){Hr(F instanceof Error?F.message:"Failed to generate queries"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"queries",action:"generate_queries",reasonCode:kb(F,"unknown")},"onboarding.blocked:queries:generate")}finally{vo(!1)}}},Zr=async()=>{if(!te)return;const F=mn;if(F.length!==0){Qr(!0),$a(null);try{await c5(te,F),Ci(!0),await r(),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"competitors",method:"manual",countBucket:cn(F.length)},"onboarding.step_completed:competitors"),de(4)}catch(Re){$a(Re instanceof Error?Re.message:"Failed to save competitors"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"competitors",action:"save",reasonCode:"unknown"},"onboarding.blocked:competitors:save")}finally{Qr(!1)}}},Ti=async()=>{const F=Di.trim();if(F){wo(!0),jo(null);try{await h5("gemini",{apiKey:F}),sa({title:"Gemini configured",detail:"Provider is ready — continuing setup.",tone:"positive",dedupeKey:"setup:gemini:configured",dedupeMode:"drop"}),Un(""),await r(),rs(c.providerStatuses.find(Re=>Re.name.toLowerCase()==="gemini")?.name??"gemini"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"system",method:"inline"},"onboarding.step_completed:system")}catch(Re){jo(Re instanceof Error?Re.message:"Failed to save Gemini key"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"system",action:"configure_provider",reasonCode:"provider_save_failed"},"onboarding.blocked:system:provider_save_failed")}finally{wo(!1)}}},ls=async()=>{if(!te||Ft){Ga(Ft??"Complete setup before launching the first sweep.");const F=ht??(te?Ln===0?"no_queries":"run_rejected":"unknown");j({flowVersion:At,onboardingSessionId:k,event:"run.requested",origin:"dashboard_setup",result:"rejected",providerCountBucket:cn(Jt.length),queryCountBucket:cn(Ln),reasonCode:F});return}zi(!0),Ga(null);try{const F=await cu.mutateAsync({projectName:te,projectLabel:pe||De||te,sourceAction:"setup-launch"});Ei(F.id),lu(!0),j({flowVersion:At,onboardingSessionId:k,event:"run.requested",origin:"dashboard_setup",result:"queued",providerCountBucket:cn(Jt.length),queryCountBucket:cn(Ln)}),await r()}catch(F){Ga(F instanceof Error?F.message:"Failed to queue the visibility sweep. Retry when the instance is ready."),j({flowVersion:At,onboardingSessionId:k,event:"run.requested",origin:"dashboard_setup",result:"rejected",providerCountBucket:cn(Jt.length),queryCountBucket:cn(Ln),reasonCode:kb(F,"run_rejected")})}finally{zi(!1)}},Wt=()=>de(F=>Math.max(0,F-1)),nn=(F,Re,ca)=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:F,method:"existing",...ca===void 0?{}:{countBucket:cn(ca)}},`onboarding.step_completed:${F}`),de(Re)},In=()=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"queries",method:"skipped",countBucket:"0"},"onboarding.step_completed:queries"),de(3)},Vn=()=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"competitors",method:"skipped",countBucket:"0"},"onboarding.step_completed:competitors"),de(4)},Ct=(()=>{switch(Ae){case 0:return u.jsxs(La,{className:"surface-card step-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 1 of 5"}),u.jsx("h2",{children:"System check"})]})}),u.jsx("p",{className:"supporting-copy",children:"Checking that your Canonry instance is configured and reachable."}),u.jsx("div",{className:"compact-stack",children:b.healthChecks.map(F=>u.jsxs("div",{className:"health-check-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:F.label}),u.jsx("p",{className:"supporting-copy",children:F.detail}),F.id==="provider"&&F.state!=="ready"&&u.jsxs("div",{className:"mt-3 rounded-md border border-default bg-bg-elevated/40 p-3 space-y-2",children:[u.jsxs("p",{className:"text-xs text-secondary",children:["Paste a Gemini key to enable visibility checks (free at"," ",u.jsx("a",{href:"https://aistudio.google.com/apikey",target:"_blank",rel:"noreferrer",className:"text-positive-400 hover:text-positive underline underline-offset-2",children:"aistudio.google.com"}),")."]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"password",value:Di,onChange:Re=>Un(Re.target.value),placeholder:"AI... (paste here)",className:"flex-1 rounded-md border border-base bg-bg px-2.5 py-1.5 text-sm text-heading placeholder:text-faint focus:border-mono-600 focus:outline-none font-mono",disabled:ko}),u.jsx(Ee,{type:"button",size:"sm",disabled:ko||!Di.trim(),onClick:Yt(Ti),children:ko?"Saving...":"Save"})]}),So&&u.jsxs("div",{role:"alert",className:"space-y-1 text-xs text-negative",children:[u.jsx("p",{children:So}),u.jsx("p",{children:"Check that the key is complete, then retry Save."})]}),u.jsxs("p",{className:"text-sm text-secondary",children:["Connect more answer engines later in"," ",u.jsx(Je,{to:"/settings",className:"text-link hover:underline",children:"Settings"}),"."]})]})]}),u.jsx(ga,{tone:F.state==="ready"?"positive":"caution",title:F.id==="api"?oo(g.apiStatus):F.id==="worker"?oo(g.workerStatus):F.detail,children:F.state==="ready"?"Ready":"Attention"})]},F.id))}),u.jsxs("div",{className:"setup-nav",children:[b.launchState.blockedReason?u.jsx("p",{role:"status",className:"supporting-copy text-negative",children:b.launchState.blockedReason}):u.jsx("span",{}),u.jsx(Ee,{type:"button",disabled:!b.launchState.enabled,title:b.launchState.blockedReason,onClick:()=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"system",method:"automatic"},"onboarding.step_completed:system"),de(ae)},children:"Continue"})]})]});case 1:return u.jsxs(La,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 2 of 5"}),u.jsx("h2",{children:"Create project"})]}),te?u.jsx(ga,{tone:"positive",children:"Created"}):null]}),te?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-neutral",children:["Project ",u.jsx("span",{className:"text-heading font-medium",children:te})," created successfully."]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>nn("project",2),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"project-name",children:"Project name"}),u.jsx("input",{id:"project-name",className:"setup-input",type:"text",placeholder:"my-website",value:De,onChange:F=>at(F.target.value)}),Ha&&Ha!==De?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",Ha]}):null]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"display-name",children:"Display name (optional)"}),u.jsx("input",{id:"display-name",className:"setup-input",type:"text",placeholder:"My Website",value:pe,onChange:F=>I(F.target.value)})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"domain",children:"Canonical domain"}),u.jsx("input",{id:"domain",className:"setup-input",type:"text",placeholder:"example.com",value:ie,onChange:F=>ue(F.target.value)})]}),u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"country",children:"Country"}),u.jsx("input",{id:"country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:_e,onChange:F=>le(F.target.value.toUpperCase())})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"language",children:"Language"}),u.jsx("input",{id:"language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:He,onChange:F=>W(F.target.value.toLowerCase())})]})]}),u.jsxs("label",{className:"flex items-start gap-3 rounded-md border border-default bg-surface p-3 cursor-pointer hover:border-strong",children:[u.jsx("input",{type:"checkbox",className:"mt-0.5 h-4 w-4 rounded border-strong bg-bg",checked:U,onChange:F=>K(F.target.checked)}),u.jsxs("span",{className:"flex-1",children:[u.jsx("span",{className:"block text-sm text-heading",children:"Auto-extract backlinks"}),u.jsxs("span",{className:"block text-xs text-muted mt-0.5",children:["When a new Common Crawl release syncs, automatically extract backlinks for this project."," ",u.jsx(Je,{to:"/backlinks",className:"text-positive-400 hover:text-positive underline underline-offset-2",children:"Manage backlinks"})]})]})]}),Ce?u.jsx("p",{className:"text-negative-400 text-sm",children:Ce}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",disabled:!Ha||!ie||Ne,onClick:Yt(Ao),children:Ne?"Creating...":"Create project"})]})]})]});case 2:return u.jsxs(La,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 3 of 5"}),u.jsx("h2",{children:"Add queries"})]}),P.isError?u.jsx(ga,{tone:"negative",children:"Load failed"}):Ea?u.jsxs(ga,{tone:"positive",children:[la.length," saved"]}):u.jsxs(ga,{tone:"neutral",children:[la.length," quer",la.length!==1?"ies":"y"]})]}),u.jsx("p",{className:"supporting-copy",children:"Enter the queries you want to track, one per line. A rough first list is fine: you can edit them, research more, and add to them at any time from the project."}),u.jsxs("div",{className:"rounded-md border border-base bg-bg-elevated p-3 text-sm",children:[u.jsx("p",{className:"m-0 font-medium text-heading",children:"Tracking more than one location or property?"}),u.jsx("p",{className:"mt-1 mb-2 text-secondary",children:"Queries attach to each property separately in Advanced measurement, so there is nothing useful to add here. Skip this and set it up on the project."}),u.jsx(Ee,{type:"button",variant:"outline",size:"sm",onClick:()=>{In(),x({to:te?`/projects/${encodeURIComponent(te)}/portfolio`:"/"})},children:"Set up Advanced measurement instead"})]}),P.isError?u.jsxs("div",{className:"compact-stack",children:[u.jsx("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:"Saved queries could not be loaded. Retry before changing the query basket."}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>{P.refetch()},children:"Retry loading queries"})]})]}):Ea?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:la.map(F=>u.jsx("li",{children:F},F))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>nn("queries",3,la.length),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[Jt.length>0?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"flex items-center gap-2 text-muted text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-base"}),"auto-generate",u.jsx("span",{className:"flex-1 border-t border-base"})]}),u.jsxs("div",{className:"flex items-end gap-2",children:[u.jsxs("div",{className:"setup-field flex-1",children:[u.jsx("label",{className:"setup-label",htmlFor:"gen-provider",children:"Provider"}),u.jsx("select",{id:"gen-provider",className:"setup-input",value:Bn,onChange:F=>rs(F.target.value),children:Jt.map(F=>u.jsxs("option",{value:F.name,children:[F.displayName??F.name,F.model?` (${F.model})`:""]},F.name))})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"gen-count",children:"Count"}),u.jsx("select",{id:"gen-count",className:"setup-input",value:Kt,onChange:F=>ou(Number(F.target.value)),children:[3,5,10,15,20].map(F=>u.jsx("option",{value:F,children:F},F))})]}),u.jsx(Ee,{type:"button",variant:"outline",disabled:bo||!Bn,onClick:Yt(du),children:bo?"Analyzing site...":"Generate"})]}),_i?u.jsx("p",{className:"text-negative-400 text-sm",children:_i}):null]}):null,u.jsxs("div",{className:"flex items-center gap-2 text-muted text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-base"}),"or type manually",u.jsx("span",{className:"flex-1 border-t border-base"})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"queries",children:"Queries (one per line)"}),u.jsx("textarea",{id:"queries",className:"setup-textarea",rows:6,placeholder:`emergency dentist brooklyn
81
+ best invisalign downtown brooklyn
82
+ pediatric dentist brooklyn heights`,value:Ye,onChange:F=>Ut(F.target.value)})]}),ss?u.jsx("p",{className:"text-negative-400 text-sm",children:ss}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",variant:"ghost",onClick:In,children:"Skip for now"}),u.jsx(Ee,{type:"button",disabled:la.length===0||Gr,onClick:Yt(uu),children:Gr?"Saving...":`Save ${la.length} quer${la.length!==1?"ies":"y"}`})]})]})]});case 3:return u.jsxs(La,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 4 of 5"}),u.jsx("h2",{children:"Add competitors"})]}),Kr?u.jsx(ga,{tone:"positive",children:"Saved"}):null]}),u.jsx("p",{className:"supporting-copy",children:"Domains that compete for the same queries. One per line."}),Kr?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:mn.map(F=>u.jsx("li",{children:F},F))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>nn("competitors",4,mn.length),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"competitors",children:"Competitor domains (one per line)"}),u.jsx("textarea",{id:"competitors",className:"setup-textarea",rows:4,placeholder:`competitor1.com
83
+ competitor2.com`,value:xo,onChange:F=>ru(F.target.value)})]}),Qt?u.jsx("p",{className:"text-negative-400 text-sm",children:Qt}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Vn,children:"Skip"}),u.jsx(Ee,{type:"button",disabled:mn.length===0||Zt,onClick:Yt(Zr),children:Zt?"Saving...":`Save ${mn.length} competitor${mn.length!==1?"s":""}`})]})]})]})]});case 4:{const F=an.data,Re=F?.status??(Pn===ee?.id?ee.status:void 0),ca=Re==="completed"||Re==="partial"||Re==="failed"||Re==="cancelled",va=F?.snapshots??[],mu=va.filter(zt=>zt.citationState==="cited").length,Fr=va.filter(zt=>zt.answerMentioned===!0).length,No=new Set(va.map(zt=>zt.query).filter(zt=>!!zt)).size,Yr=Re?wb(Re,va.length):!1,Ri=re&&!Mn,cs=tn??(F?.error?sR(F.error):Re==="cancelled"?"The sweep was cancelled before it produced a baseline.":(Re==="completed"||Re==="partial")&&va.length===0?"The sweep finished without producing any snapshots. Confirm the query set and provider configuration, then retry.":ee?.statusDetail||"The sweep did not produce a baseline. Review provider configuration, then retry.");let ea=null;return Ri||Yr?ea=u.jsx(ga,{tone:"positive",children:"Complete"}):tn&&!Mn?ea=u.jsx(ga,{tone:"negative",children:"Failed"}):ca?ea=u.jsx(ga,{tone:"negative",children:Re==="cancelled"?"Cancelled":"Failed"}):Mn&&(ea=u.jsx(ga,{tone:"caution",children:"Running"})),u.jsxs(La,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 5 of 5"}),u.jsx("h2",{children:"Launch first run"})]}),ea]}),Ri?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-secondary",children:["Setup is complete. ",u.jsx("span",{className:"text-strong font-medium",children:te})," already has a successful answer-visibility baseline."]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(Ee,{type:"button",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Open project dashboard →"})]})]}):Mn?ca?Yr?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-neutral",children:["Sweep complete. Your first answer-visibility snapshot for"," ",u.jsx("span",{className:"text-heading font-medium",children:te}),":"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2 mt-1",children:[u.jsxs("div",{className:"rounded-md border border-default bg-surface p-3",children:[u.jsx("p",{className:"text-xs font-medium text-secondary",children:"Mentioned"}),u.jsxs("p",{className:"text-2xl font-bold tabular-nums text-primary mt-1",children:[Fr,u.jsxs("span",{className:"text-faint text-lg",children:[" / ",No]})]}),u.jsx("p",{className:"mt-0.5 text-sm text-secondary",children:"queries naming your brand"})]}),u.jsxs("div",{className:"rounded-md border border-default bg-surface p-3",children:[u.jsx("p",{className:"text-xs font-medium text-secondary",children:"Cited"}),u.jsxs("p",{className:"text-2xl font-bold tabular-nums text-primary mt-1",children:[mu,u.jsxs("span",{className:"text-faint text-lg",children:[" / ",No]})]}),u.jsx("p",{className:"mt-0.5 text-sm text-secondary",children:"queries citing your site"})]}),u.jsxs("div",{className:"rounded-md border border-default bg-surface p-3",children:[u.jsx("p",{className:"text-xs font-medium text-secondary",children:"Results"}),u.jsx("p",{className:"text-2xl font-bold tabular-nums text-primary mt-1",children:va.length}),u.jsx("p",{className:"mt-0.5 text-sm text-secondary",children:"completed engine checks"})]})]}),u.jsx("p",{className:"mt-1 text-sm text-secondary",children:"Open the project to review the evidence."}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(Ee,{type:"button",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Open project dashboard →"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:[u.jsx("p",{children:cs}),u.jsx("p",{className:"mt-1 text-xs text-secondary",children:"Fix provider or query configuration if needed, then retry without leaving setup."})]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",asChild:!0,children:u.jsx(Je,{to:"/settings",children:"Configure providers"})}),u.jsx(Ee,{type:"button",disabled:dn||!!Ft,onClick:Yt(ls),children:dn?"Retrying...":"Retry visibility sweep"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsx("p",{className:"text-neutral",children:"Sweep running — typically 30-60s. Polling every 2s…"}),u.jsx("div",{className:"rounded-md border border-default bg-surface p-3 text-xs text-muted",children:u.jsxs("p",{children:["Status: ",u.jsx("span",{className:"text-neutral",children:Re??"queued"})]})}),an.isError&&u.jsxs("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:[u.jsx("p",{children:an.error instanceof Error?an.error.message:"Could not refresh the sweep status."}),u.jsx(Ee,{type:"button",variant:"outline",size:"sm",className:"mt-2",onClick:()=>{an.refetch()},children:"Retry status check"})]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(Ee,{type:"button",variant:"outline",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Watch on project page"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"supporting-copy",children:["Setup is done. You can run a first sweep now to get a baseline for"," ",u.jsx("span",{className:"text-heading font-medium",children:te}),", or finish and run it later from the project. A sweep calls the answer engines, so it costs provider usage."]}),(Ft||tn)&&u.jsxs("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:[u.jsx("p",{children:tn??Ft}),u.jsx("p",{className:"mt-1 text-xs text-secondary",children:"Resolve the blocker above, then retry the sweep here."})]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",variant:"ghost",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Finish without running"}),u.jsx(Ee,{type:"button",disabled:dn||!!Ft,title:Ft,onClick:Yt(ls),children:dn?"Launching...":tn?"Retry visibility sweep":"Launch visibility sweep"})]})]})]})}default:return null}})();return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Setup"}),u.jsx("p",{className:"page-subtitle",children:"Create a project and run its first visibility check."})]})}),u.jsx(jM,{current:Ae,labels:SM}),u.jsx("section",{className:"setup-wizard",children:Ct})]})}function CM(){return u.jsx("div",{className:"page-container",children:u.jsx("section",{className:"page-section",children:u.jsxs(La,{className:"surface-card empty-card",children:[u.jsx("h1",{children:"Route not found"}),u.jsx("p",{children:"The current path does not map to a dashboard view."}),u.jsx(Ee,{asChild:!0,children:u.jsx(Je,{to:"/",children:"Return to overview"})})]})})})}const en=bi(()=>vi(()=>import("./ProjectPage-CsDbgp_0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),"ProjectPage"),zM=bi(()=>vi(()=>import("./RunsPage-T89Y_yS8.js"),__vite__mapDeps([12,1,2,9,6,3,10,11]),import.meta.url),"RunsPage"),EM=bi(()=>vi(()=>import("./HistoryPage-BTrIHjMQ.js"),__vite__mapDeps([13,1,7,9,6,3,10,11]),import.meta.url),"HistoryPage"),DM=bi(()=>vi(()=>import("./SettingsPage-DnmEq3F9.js"),__vite__mapDeps([14,1,9,6,3,10,11]),import.meta.url),"SettingsPage"),TM=bi(()=>vi(()=>import("./BacklinksPage-DA9EaV9q.js"),__vite__mapDeps([15,1,3,9,6,10,11]),import.meta.url),"BacklinksPage"),RM=bi(()=>vi(()=>import("./TrafficPage-CW1UhaJt.js"),__vite__mapDeps([16,1,5,3,9,6,10,11]),import.meta.url),"TrafficPage"),OM=bi(()=>vi(()=>import("./TrafficSourceDetailPage-r4Ji3wJm.js"),__vite__mapDeps([17,1,5,4,3,6,9,10,11]),import.meta.url),"TrafficSourceDetailPage"),qM=bi(()=>vi(()=>import("./MeasurementPropertyPage-CN6o5xFg.js"),__vite__mapDeps([18,1,4,8,3,9,6,10,11]),import.meta.url),"MeasurementPropertyPage");function BM(){return u.jsx(tM,{children:u.jsx(eM,{})})}const oa=Ew()({component:BM,validateSearch:e=>({manageQueries:e.manageQueries===!0||e.manageQueries==="true"?!0:void 0,runId:typeof e.runId=="string"?e.runId:void 0,evidenceId:typeof e.evidenceId=="string"?e.evidenceId:void 0,runStatus:typeof e.runStatus=="string"?e.runStatus:void 0,runKind:typeof e.runKind=="string"?e.runKind:void 0,runProject:typeof e.runProject=="string"?e.runProject:void 0,runWindow:typeof e.runWindow=="string"?e.runWindow:void 0,runQuery:typeof e.runQuery=="string"?e.runQuery:void 0,scope:typeof e.scope=="string"?e.scope:void 0,class:typeof e.class=="string"?e.class:void 0})}),MM=xt({getParentRoute:()=>oa,path:"/",component:oM,beforeLoad:({context:e})=>{const n=e.queryClient.getQueryData(ho({client:oe}));if(n&&n.length===0)throw Cb({to:"/setup"})}}),PM=xt({getParentRoute:()=>oa,path:"/projects",component:lM}),UM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,za=xt({getParentRoute:()=>oa,path:"/projects/$projectName",component:()=>u.jsx(Km,{}),beforeLoad:async({context:e,params:n,location:s})=>{const r=n.projectName;if(!UM.test(r))return;let c=e.queryClient.getQueryData(ho({client:oe}));if(!c)try{c=await e.queryClient.ensureQueryData(Wc({client:oe}))}catch{return}const f=c.find(g=>g.id===r);if(f)throw Cb({to:s.pathname.replace(`/projects/${r}`,`/projects/${encodeURIComponent(f.name)}`),replace:!0})}}),LM=xt({getParentRoute:()=>za,path:"/",component:()=>u.jsx(en,{tab:"overview"})}),IM=xt({getParentRoute:()=>za,path:"/portfolio",component:()=>u.jsx(en,{tab:"portfolio"})}),VM=xt({getParentRoute:()=>za,path:"/search-console",component:()=>u.jsx(en,{tab:"search-console"})}),$M=xt({getParentRoute:()=>za,path:"/local",component:()=>u.jsx(en,{tab:"local"})}),GM=xt({getParentRoute:()=>za,path:"/discovery",component:()=>u.jsx(en,{tab:"discovery"})}),HM=xt({getParentRoute:()=>za,path:"/properties/$targetKey",component:()=>u.jsx(qM,{})}),KM=xt({getParentRoute:()=>za,path:"/report",component:()=>u.jsx(en,{tab:"report"})}),QM=xt({getParentRoute:()=>za,path:"/activity",component:()=>u.jsx(en,{tab:"activity"})}),ZM=xt({getParentRoute:()=>za,path:"/backlinks",component:()=>u.jsx(en,{tab:"backlinks"})}),FM=xt({getParentRoute:()=>za,path:"/technical-aeo",component:()=>u.jsx(en,{tab:"technical-aeo"})}),YM=xt({getParentRoute:()=>za,path:"/history",component:()=>u.jsx(en,{tab:"history"})}),XM=xt({getParentRoute:()=>za,path:"/settings",component:()=>u.jsx(en,{tab:"settings"})}),JM=xt({getParentRoute:()=>oa,path:"/runs",component:zM}),WM=xt({getParentRoute:()=>oa,path:"/history",component:EM}),eP=xt({getParentRoute:()=>oa,path:"/settings",component:DM,beforeLoad:({context:e})=>{}}),tP=xt({getParentRoute:()=>oa,path:"/setup",component:AM}),aP=xt({getParentRoute:()=>oa,path:"/backlinks",component:TM}),nP=xt({getParentRoute:()=>oa,path:"/traffic",component:RM}),iP=xt({getParentRoute:()=>oa,path:"/traffic/$projectName/$sourceId",component:OM}),sP=xt({getParentRoute:()=>oa,path:"*",component:CM}),oP=oa.addChildren([MM,PM,za.addChildren([LM,IM,VM,$M,GM,HM,KM,QM,ZM,FM,YM,XM]),JM,WM,eP,tP,aP,nP,iP,sP]);function rP(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath:"/"}const Ab=rP(),lP=Ab==="/"?"":Ab.replace(/\/$/,"");function cP(e,n){return Dw({routeTree:oP,basepath:lP||"/",context:{queryClient:e},...n?.initialEntries})}const uP=6e4;function dP(){const[e,n]=T.useState(jm()?"ready":"checking"),[s,r]=T.useState(null),[c,f]=T.useState(!1),[g,b]=T.useState(""),[x,k]=T.useState(""),[S,j]=T.useState(""),[A,z]=T.useState(null),[$,L]=T.useState(!1),[P,V]=T.useState(!1),ne=T.useRef(null),J=T.useRef(null),ee=T.useRef(null),re=()=>{const de=s?`${s.name}:${s.role}`:"no-accounts";if(!ne.current||ee.current!==de){J.current?.clear();const ge=M5();J.current=ge,ne.current=cP(ge),ee.current=de}return{queryClient:J.current,router:ne.current}},he=de=>de.authRequired?(f(!0),r(de.user),n(de.user?"ready":"account-login"),!0):!1;T.useEffect(()=>{if(jm())return;let de=!1;return Promise.allSettled([qg(),Og()]).then(([ge,qe])=>{if(de||ge.status==="fulfilled"&&he(ge.value))return;if(qe.status==="rejected"){const at=qe.reason;z(at instanceof Error?at.message:"Failed to reach the Canonry API"),n("login");return}const De=qe.value;De.authenticated?n("ready"):n(De.setupRequired?"setup":"login")}),()=>{de=!0}},[]),T.useEffect(()=>{if(e!=="ready"||jm())return;const de=setInterval(()=>{if(c){qg().then(ge=>{ge.authRequired&&!ge.user&&(V(!0),r(null),n("account-login"))}).catch(()=>{});return}Og().then(ge=>{ge.authenticated||(V(!0),n(ge.setupRequired?"setup":"login"))}).catch(()=>{})},uP);return Rg(()=>{V(!0),r(null),n(c?"account-login":"login")}),()=>{clearInterval(de),Rg(null)}},[e,c]);const q=async de=>{if(de.preventDefault(),!x.trim()||x.trim().length<8){z("Password must be at least 8 characters");return}if(x!==S){z("Passwords do not match");return}L(!0),z(null);try{if(!(await d5(x.trim())).authenticated){z("Setup failed");return}k(""),j(""),V(!1),n("ready")}catch(ge){z(ge instanceof _a||ge instanceof Error?ge.message:"Setup failed")}finally{L(!1)}},ae=async de=>{if(de.preventDefault(),!!x.trim()){L(!0),z(null);try{if(!(await m5(x.trim())).authenticated){z("Incorrect password");return}k(""),V(!1),n("ready")}catch(ge){z(ge instanceof _a||ge instanceof Error?ge.message:"Authentication failed")}finally{L(!1)}}},Ae=async de=>{if(de.preventDefault(),!(!g.trim()||!x)){L(!0),z(null);try{const ge=await p5(g.trim(),x);if(!ge.user){z("Incorrect name or password.");return}k(""),V(!1),r(ge.user),n("ready")}catch(ge){z(ge instanceof _a?ge.message:"Incorrect name or password.")}finally{L(!1)}}};if(e==="ready"){const{queryClient:de,router:ge}=re();return u.jsx(_5,{account:s,children:u.jsx(Tw,{client:de,children:u.jsx(Rw,{router:ge})})})}return u.jsx("div",{className:"min-h-screen bg-bg px-4 py-8",children:u.jsxs("div",{className:"mx-auto flex min-h-[calc(100vh-4rem)] max-w-md flex-col items-center justify-center gap-5",children:[u.jsxs("div",{"data-testid":"auth-brand",className:"flex items-center gap-2.5",children:[u.jsx("img",{className:"size-7",src:"./favicon.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{className:"text-lg font-semibold tracking-tight text-heading",children:"Canonry"})]}),u.jsx(La,{className:"surface-card w-full",children:e==="checking"?u.jsx(Zs,{className:"py-8",children:u.jsx("p",{className:"supporting-copy text-center",children:"Connecting to Canonry…"})}):e==="account-login"?u.jsxs(u.Fragment,{children:[u.jsxs(Nr,{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Dashboard access"}),u.jsx(_r,{children:"Sign in to Canonry"})]}),u.jsxs(Zs,{children:[P?u.jsx("p",{className:"mb-4 rounded-md border border-caution bg-caution-soft px-3 py-2 text-sm text-caution",children:"You were signed out — please sign in again."}):null,u.jsxs("form",{className:"space-y-4",onSubmit:Yt(Ae),children:[u.jsxs("label",{className:"block space-y-1.5",htmlFor:"account-name",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Name"}),u.jsx("input",{autoFocus:!0,id:"account-name",className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"text",autoComplete:"username",value:g,onChange:de=>b(de.target.value)})]}),u.jsxs("label",{className:"block space-y-1.5",htmlFor:"account-password",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Password"}),u.jsx("input",{id:"account-password",className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",autoComplete:"current-password",value:x,onChange:de=>k(de.target.value)})]}),A?u.jsx("p",{className:"text-sm text-negative-400",children:A}):null,u.jsx(Ee,{type:"submit",disabled:$||!g.trim()||!x,children:$?"Signing in…":"Sign in"})]})]})]}):e==="setup"?u.jsxs(u.Fragment,{children:[u.jsxs(Nr,{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"First-time setup"}),u.jsx(_r,{children:"Create a dashboard password"}),u.jsx(Oc,{children:"Choose a password to protect the Canonry dashboard. You will use this to sign in on future visits."})]}),u.jsx(Zs,{children:u.jsxs("form",{className:"space-y-4",onSubmit:Yt(q),children:[u.jsxs("label",{className:"block space-y-1.5",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Password"}),u.jsx("input",{autoFocus:!0,className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",value:x,onChange:de=>k(de.target.value),placeholder:"At least 8 characters"})]}),u.jsxs("label",{className:"block space-y-1.5",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Confirm password"}),u.jsx("input",{className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",value:S,onChange:de=>j(de.target.value),placeholder:"Re-enter password"})]}),A?u.jsx("p",{className:"text-sm text-negative-400",children:A}):null,u.jsx(Ee,{type:"submit",disabled:$||!x.trim()||!S.trim(),children:$?"Setting up…":"Create password & open dashboard"})]})})]}):u.jsxs(u.Fragment,{children:[u.jsxs(Nr,{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Dashboard access"}),u.jsx(_r,{children:"Sign in to Canonry"}),u.jsx(Oc,{children:"Enter your dashboard password to continue."})]}),u.jsxs(Zs,{children:[P?u.jsx("p",{className:"mb-4 rounded-md border border-caution bg-caution-soft px-3 py-2 text-sm text-caution",children:"Your session expired — please sign in again."}):null,u.jsxs("form",{className:"space-y-4",onSubmit:Yt(ae),children:[u.jsxs("label",{className:"block space-y-1.5",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Password"}),u.jsx("input",{autoFocus:!0,className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",value:x,onChange:de=>k(de.target.value),placeholder:"Dashboard password"})]}),A?u.jsx("p",{className:"text-sm text-negative-400",children:A}):null,u.jsx(Ee,{type:"submit",disabled:$||!x.trim(),children:$?"Signing in…":"Open dashboard"})]})]})]})})]})})}const h3=document.getElementById("root");if(!h3)throw new Error("Expected #root element for web app bootstrap.");lS.createRoot(h3).render(u.jsx(T.StrictMode,{children:u.jsx(dP,{})}));export{XL as $,FP as A,Ee as B,zc as C,qL as D,ML as E,PL as F,QU as G,sU as H,xr as I,iU as J,gU as K,sa as L,IL as M,VL as N,uU as O,Eq as P,$L as Q,dU as R,iR as S,ga as T,rU as U,cU as V,UL as W,LL as X,BL as Y,oU as Z,GL as _,kI as a,SP as a$,QL as a0,FL as a1,ZL as a2,YL as a3,j5 as a4,C0 as a5,Te as a6,KL as a7,Px as a8,On as a9,lL as aA,fI as aB,gI as aC,yI as aD,mU as aE,ho as aF,pU as aG,N0 as aH,bI as aI,xI as aJ,vI as aK,DR as aL,NI as aM,cI as aN,RL as aO,ce as aP,PP as aQ,MP as aR,BP as aS,qP as aT,TP as aU,DP as aV,OP as aW,RP as aX,EP as aY,zP as aZ,wP as a_,HL as aa,jI as ab,W9 as ac,ez as ad,YU as ae,FU as af,BU as ag,VU as ah,$U as ai,_a as aj,GU as ak,LP as al,sR as am,OO as an,bc as ao,HU as ap,Xm as aq,uI as ar,lU as as,ZU as at,bR as au,MR as av,_L as aw,zL as ax,CL as ay,rL as az,p_ as b,eI as b$,CP as b0,_P as b1,NP as b2,jP as b3,AP as b4,kP as b5,xP as b6,vP as b7,bP as b8,DS as b9,$r as bA,Wc as bB,xB as bC,Rr as bD,ev as bE,yL as bF,bL as bG,zI as bH,fM as bI,EL as bJ,OL as bK,vL as bL,kL as bM,SL as bN,xL as bO,na as bP,s5 as bQ,uR as bR,SI as bS,VP as bT,$P as bU,IP as bV,r5 as bW,GP as bX,yR as bY,ZP as bZ,JL as b_,WU as ba,lI as bb,JU as bc,jU as bd,EI as be,aL as bf,eL as bg,nL as bh,iL as bi,XU as bj,tL as bk,QP as bl,KP as bm,HP as bn,AU as bo,XP as bp,fL as bq,Zy as br,hL as bs,JP as bt,WP as bu,pL as bv,eU as bw,tU as bx,nU as by,aU as bz,wI as c,v5 as c0,kU as c1,tI as c2,aI as c3,WL as c4,uL as c5,yU as c6,bU as c7,vU as c8,wU as c9,IU as cA,Dq as cB,a3 as cC,Bq as cD,n3 as cE,i3 as cF,RU as cG,pI as cH,oL as cI,k0 as cJ,gL as cK,dI as cL,hI as cM,TU as cN,sL as cO,EU as cP,DU as cQ,zU as cR,mI as cS,Y_ as cT,jL as cU,wL as cV,NL as cW,AL as cX,xU as ca,Js as cb,_0 as cc,AI as cd,nu as ce,D0 as cf,DL as cg,TL as ch,h5 as ci,J4 as cj,UP as ck,YP as cl,hU as cm,fU as cn,cM as co,iu as cp,T0 as cq,SU as cr,oo as cs,Yy as ct,OU as cu,MU as cv,UU as cw,LU as cx,qU as cy,PU as cz,La as d,un as e,Yt as f,KU as g,rb as h,Z4 as i,nI as j,oe as k,iI as l,sI as m,rI as n,oI as o,NU as p,CU as q,_U as r,_I as s,rR as t,R0 as u,CI as v,xp as w,dL as x,cL as y,mL as z};