@ainyc/canonry 1.3.0 → 1.4.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.
@@ -0,0 +1,204 @@
1
+ function tx(a,i){for(var s=0;s<i.length;s++){const r=i[s];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in a)){const f=Object.getOwnPropertyDescriptor(r,o);f&&Object.defineProperty(a,o,f.get?f:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();function Tg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var _u={exports:{}},$s={};var Mp;function nx(){if(Mp)return $s;Mp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:a,type:r,key:h,ref:o!==void 0?o:null,props:f}}return $s.Fragment=i,$s.jsx=s,$s.jsxs=s,$s}var Rp;function ax(){return Rp||(Rp=1,_u.exports=nx()),_u.exports}var u=ax(),zu={exports:{}},pe={};var Lp;function ix(){if(Lp)return pe;Lp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function k(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function H(A,$,ee){this.props=A,this.context=$,this.refs=E,this.updater=ee||O}H.prototype.isReactComponent={},H.prototype.setState=function(A,$){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,$,"setState")},H.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(A,$,ee){this.props=A,this.context=$,this.refs=E,this.updater=ee||O}var B=R.prototype=new G;B.constructor=R,j(B,H.prototype),B.isPureReactComponent=!0;var K=Array.isArray;function X(){}var Z={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function P(A,$,ee){var z=ee.ref;return{$$typeof:a,type:A,key:$,ref:z!==void 0?z:null,props:ee}}function Se(A,$){return P(A.type,$,A.props)}function W(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function le(A){var $={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return $[ee]})}var Ye=/\/+/g;function Ge(A,$){return typeof A=="object"&&A!==null&&A.key!=null?le(""+A.key):$.toString(36)}function ne(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(X,X):(A.status="pending",A.then(function($){A.status==="pending"&&(A.status="fulfilled",A.value=$)},function($){A.status==="pending"&&(A.status="rejected",A.reason=$)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,$,ee,z,F){var ae=typeof A;(ae==="undefined"||ae==="boolean")&&(A=null);var he=!1;if(A===null)he=!0;else switch(ae){case"bigint":case"string":case"number":he=!0;break;case"object":switch(A.$$typeof){case a:case i:he=!0;break;case S:return he=A._init,U(he(A._payload),$,ee,z,F)}}if(he)return F=F(A),he=z===""?"."+Ge(A,0):z,K(F)?(ee="",he!=null&&(ee=he.replace(Ye,"$&/")+"/"),U(F,$,ee,"",function(Pt){return Pt})):F!=null&&(W(F)&&(F=Se(F,ee+(F.key==null||A&&A.key===F.key?"":(""+F.key).replace(Ye,"$&/")+"/")+he)),$.push(F)),1;he=0;var qe=z===""?".":z+":";if(K(A))for(var me=0;me<A.length;me++)z=A[me],ae=qe+Ge(z,me),he+=U(z,$,ee,ae,F);else if(me=k(A),typeof me=="function")for(A=me.call(A),me=0;!(z=A.next()).done;)z=z.value,ae=qe+Ge(z,me++),he+=U(z,$,ee,ae,F);else if(ae==="object"){if(typeof A.then=="function")return U(ne(A),$,ee,z,F);throw $=String(A),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return he}function J(A,$,ee){if(A==null)return A;var z=[],F=0;return U(A,z,"","",function(ae){return $.call(ee,ae,F++)}),z}function oe(A){if(A._status===-1){var $=A._result;$=$(),$.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=$)}if(A._status===1)return A._result.default;throw A._result}var ve=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},I={map:J,forEach:function(A,$,ee){J(A,function(){$.apply(this,arguments)},ee)},count:function(A){var $=0;return J(A,function(){$++}),$},toArray:function(A){return J(A,function($){return $})||[]},only:function(A){if(!W(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return pe.Activity=b,pe.Children=I,pe.Component=H,pe.Fragment=s,pe.Profiler=o,pe.PureComponent=R,pe.StrictMode=r,pe.Suspense=y,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,pe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},pe.cache=function(A){return function(){return A.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(A,$,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var z=j({},A.props),F=A.key;if($!=null)for(ae in $.key!==void 0&&(F=""+$.key),$)!_.call($,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&$.ref===void 0||(z[ae]=$[ae]);var ae=arguments.length-2;if(ae===1)z.children=ee;else if(1<ae){for(var he=Array(ae),qe=0;qe<ae;qe++)he[qe]=arguments[qe+2];z.children=he}return P(A.type,F,z)},pe.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},pe.createElement=function(A,$,ee){var z,F={},ae=null;if($!=null)for(z in $.key!==void 0&&(ae=""+$.key),$)_.call($,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(F[z]=$[z]);var he=arguments.length-2;if(he===1)F.children=ee;else if(1<he){for(var qe=Array(he),me=0;me<he;me++)qe[me]=arguments[me+2];F.children=qe}if(A&&A.defaultProps)for(z in he=A.defaultProps,he)F[z]===void 0&&(F[z]=he[z]);return P(A,ae,F)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(A){return{$$typeof:m,render:A}},pe.isValidElement=W,pe.lazy=function(A){return{$$typeof:S,_payload:{_status:-1,_result:A},_init:oe}},pe.memo=function(A,$){return{$$typeof:g,type:A,compare:$===void 0?null:$}},pe.startTransition=function(A){var $=Z.T,ee={};Z.T=ee;try{var z=A(),F=Z.S;F!==null&&F(ee,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(X,ve)}catch(ae){ve(ae)}finally{$!==null&&ee.types!==null&&($.types=ee.types),Z.T=$}},pe.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},pe.use=function(A){return Z.H.use(A)},pe.useActionState=function(A,$,ee){return Z.H.useActionState(A,$,ee)},pe.useCallback=function(A,$){return Z.H.useCallback(A,$)},pe.useContext=function(A){return Z.H.useContext(A)},pe.useDebugValue=function(){},pe.useDeferredValue=function(A,$){return Z.H.useDeferredValue(A,$)},pe.useEffect=function(A,$){return Z.H.useEffect(A,$)},pe.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},pe.useId=function(){return Z.H.useId()},pe.useImperativeHandle=function(A,$,ee){return Z.H.useImperativeHandle(A,$,ee)},pe.useInsertionEffect=function(A,$){return Z.H.useInsertionEffect(A,$)},pe.useLayoutEffect=function(A,$){return Z.H.useLayoutEffect(A,$)},pe.useMemo=function(A,$){return Z.H.useMemo(A,$)},pe.useOptimistic=function(A,$){return Z.H.useOptimistic(A,$)},pe.useReducer=function(A,$,ee){return Z.H.useReducer(A,$,ee)},pe.useRef=function(A){return Z.H.useRef(A)},pe.useState=function(A){return Z.H.useState(A)},pe.useSyncExternalStore=function(A,$,ee){return Z.H.useSyncExternalStore(A,$,ee)},pe.useTransition=function(){return Z.H.useTransition()},pe.version="19.2.4",pe}var Up;function ff(){return Up||(Up=1,zu.exports=ix()),zu.exports}var w=ff();const sx=Tg(w),df=tx({__proto__:null,default:sx},[w]);var Du={exports:{}},Vs={},Mu={exports:{}},Ru={};var Bp;function lx(){return Bp||(Bp=1,(function(a){function i(U,J){var oe=U.length;U.push(J);e:for(;0<oe;){var ve=oe-1>>>1,I=U[ve];if(0<o(I,J))U[ve]=J,U[oe]=I,oe=ve;else break e}}function s(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var J=U[0],oe=U.pop();if(oe!==J){U[0]=oe;e:for(var ve=0,I=U.length,A=I>>>1;ve<A;){var $=2*(ve+1)-1,ee=U[$],z=$+1,F=U[z];if(0>o(ee,oe))z<I&&0>o(F,ee)?(U[ve]=F,U[z]=oe,ve=z):(U[ve]=ee,U[$]=oe,ve=$);else if(z<I&&0>o(F,oe))U[ve]=F,U[z]=oe,ve=z;else break e}}return J}function o(U,J){var oe=U.sortIndex-J.sortIndex;return oe!==0?oe:U.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var y=[],g=[],S=1,b=null,x=3,k=!1,O=!1,j=!1,E=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function B(U){for(var J=s(g);J!==null;){if(J.callback===null)r(g);else if(J.startTime<=U)r(g),J.sortIndex=J.expirationTime,i(y,J);else break;J=s(g)}}function K(U){if(j=!1,B(U),!O)if(s(y)!==null)O=!0,X||(X=!0,le());else{var J=s(g);J!==null&&ne(K,J.startTime-U)}}var X=!1,Z=-1,_=5,P=-1;function Se(){return E?!0:!(a.unstable_now()-P<_)}function W(){if(E=!1,X){var U=a.unstable_now();P=U;var J=!0;try{e:{O=!1,j&&(j=!1,G(Z),Z=-1),k=!0;var oe=x;try{t:{for(B(U),b=s(y);b!==null&&!(b.expirationTime>U&&Se());){var ve=b.callback;if(typeof ve=="function"){b.callback=null,x=b.priorityLevel;var I=ve(b.expirationTime<=U);if(U=a.unstable_now(),typeof I=="function"){b.callback=I,B(U),J=!0;break t}b===s(y)&&r(y),B(U)}else r(y);b=s(y)}if(b!==null)J=!0;else{var A=s(g);A!==null&&ne(K,A.startTime-U),J=!1}}break e}finally{b=null,x=oe,k=!1}J=void 0}}finally{J?le():X=!1}}}var le;if(typeof R=="function")le=function(){R(W)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,Ge=Ye.port2;Ye.port1.onmessage=W,le=function(){Ge.postMessage(null)}}else le=function(){H(W,0)};function ne(U,J){Z=H(function(){U(a.unstable_now())},J)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(U){U.callback=null},a.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<U?Math.floor(1e3/U):5},a.unstable_getCurrentPriorityLevel=function(){return x},a.unstable_next=function(U){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var oe=x;x=J;try{return U()}finally{x=oe}},a.unstable_requestPaint=function(){E=!0},a.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var oe=x;x=U;try{return J()}finally{x=oe}},a.unstable_scheduleCallback=function(U,J,oe){var ve=a.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ve+oe:ve):oe=ve,U){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=oe+I,U={id:S++,callback:J,priorityLevel:U,startTime:oe,expirationTime:I,sortIndex:-1},oe>ve?(U.sortIndex=oe,i(g,U),s(y)===null&&U===s(g)&&(j?(G(Z),Z=-1):j=!0,ne(K,oe-ve))):(U.sortIndex=I,i(y,U),O||k||(O=!0,X||(X=!0,le()))),U},a.unstable_shouldYield=Se,a.unstable_wrapCallback=function(U){var J=x;return function(){var oe=x;x=J;try{return U.apply(this,arguments)}finally{x=oe}}}})(Ru)),Ru}var qp;function rx(){return qp||(qp=1,Mu.exports=lx()),Mu.exports}var Lu={exports:{}},dt={};var Hp;function cx(){if(Hp)return dt;Hp=1;var a=ff();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)g+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(y,g,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:y,containerInfo:g,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dt.createPortal=function(y,g){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(y,g,null,S)},dt.flushSync=function(y){var g=h.T,S=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=g,r.p=S,r.d.f()}},dt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},dt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},dt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var S=g.as,b=m(S,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,k=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;S==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:k}):S==="script"&&r.d.X(y,{crossOrigin:b,integrity:x,fetchPriority:k,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},dt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var S=m(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},dt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var S=g.as,b=m(S,g.crossOrigin);r.d.L(y,S,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},dt.preloadModule=function(y,g){if(typeof y=="string")if(g){var S=m(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},dt.requestFormReset=function(y){r.d.r(y)},dt.unstable_batchedUpdates=function(y,g){return y(g)},dt.useFormState=function(y,g,S){return h.H.useFormState(y,g,S)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var Kp;function Og(){if(Kp)return Lu.exports;Kp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Lu.exports=cx(),Lu.exports}var Yp;function ox(){if(Yp)return Vs;Yp=1;var a=rx(),i=ff(),s=Og();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return y(c),e;if(d===l)return y(c),t;d=d.sibling}throw Error(r(188))}if(n.return!==l.return)n=c,l=d;else{for(var p=!1,v=c.child;v;){if(v===n){p=!0,n=c,l=d;break}if(v===l){p=!0,l=c,n=d;break}v=v.sibling}if(!p){for(v=d.child;v;){if(v===n){p=!0,n=d,l=c;break}if(v===l){p=!0,l=d,n=c;break}v=v.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),R=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Se=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Ye=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case H:return"Profiler";case E:return"StrictMode";case K:return"Suspense";case X:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case R:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var ne=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ve=[],I=-1;function A(e){return{current:e}}function $(e){0>I||(e.current=ve[I],ve[I]=null,I--)}function ee(e,t){I++,ve[I]=e.current,e.current=t}var z=A(null),F=A(null),ae=A(null),he=A(null);function qe(e,t){switch(ee(ae,t),ee(F,e),ee(z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ap(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ap(t),e=ip(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(z),ee(z,e)}function me(){$(z),$(F),$(ae)}function Pt(e){e.memoizedState!==null&&ee(he,e);var t=z.current,n=ip(t,e.type);t!==n&&(ee(F,e),ee(z,n))}function Rt(e){F.current===e&&($(z),$(F)),he.current===e&&($(he),Hs._currentValue=oe)}var Wt,pn;function yt(e){if(Wt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wt=t&&t[1]||"",pn=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Wt+e+pn}var Va=!1;function Qa(e,t){if(!e||Va)return"";Va=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var L=q}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(q){L=q}e.call(Q.prototype)}}else{try{throw Error()}catch(q){L=q}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&L&&typeof q.stack=="string")return[q.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),p=d[0],v=d[1];if(p&&v){var N=p.split(`
4
+ `),M=v.split(`
5
+ `);for(c=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;c<M.length&&!M[c].includes("DetermineComponentFrameRoot");)c++;if(l===N.length||c===M.length)for(l=N.length-1,c=M.length-1;1<=l&&0<=c&&N[l]!==M[c];)c--;for(;1<=l&&0<=c;l--,c--)if(N[l]!==M[c]){if(l!==1||c!==1)do if(l--,c--,0>c||N[l]!==M[c]){var Y=`
6
+ `+N[l].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=l&&0<=c);break}}}finally{Va=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?yt(n):""}function cl(e,t){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==t&&t!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return Qa(e.type,!1);case 11:return Qa(e.type.render,!1);case 1:return Qa(e.type,!0);case 31:return yt("Activity");default:return""}}function Fi(e){try{var t="",n=null;do t+=cl(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var en=Object.prototype.hasOwnProperty,Lt=a.unstable_scheduleCallback,gn=a.unstable_cancelCallback,mc=a.unstable_shouldYield,pc=a.unstable_requestPaint,ht=a.unstable_now,gc=a.unstable_getCurrentPriorityLevel,ol=a.unstable_ImmediatePriority,ul=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,yc=a.unstable_LowPriority,te=a.unstable_IdlePriority,yn=a.log,Bv=a.unstable_setDisableYieldValue,Pi=null,Et=null;function Hn(e){if(typeof yn=="function"&&Bv(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Pi,e)}catch{}}var At=Math.clz32?Math.clz32:Kv,qv=Math.log,Hv=Math.LN2;function Kv(e){return e>>>=0,e===0?32:31-(qv(e)/Hv|0)|0}var fl=256,dl=262144,hl=4194304;function va(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ml(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~d,l!==0?c=va(l):(p&=v,p!==0?c=va(p):n||(n=v&~e,n!==0&&(c=va(n))))):(v=l&~d,v!==0?c=va(v):p!==0?c=va(p):n||(n=l&~e,n!==0&&(c=va(n)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,n=t&-t,d>=n||d===32&&(n&4194048)!==0)?t:c}function Wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Bf(){var e=hl;return hl<<=1,(hl&62914560)===0&&(hl=4194304),e}function vc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function es(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gv(e,t,n,l,c,d){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,M=e.hiddenUpdates;for(n=p&~n;0<n;){var Y=31-At(n),Q=1<<Y;v[Y]=0,N[Y]=-1;var L=M[Y];if(L!==null)for(M[Y]=null,Y=0;Y<L.length;Y++){var q=L[Y];q!==null&&(q.lane&=-536870913)}n&=~Q}l!==0&&qf(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(p&~t))}function qf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Hf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-At(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function Kf(e,t){var n=t&-t;return n=(n&42)!==0?1:bc(n),(n&(e.suspendedLanes|t))!==0?0:n}function bc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function xc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Cp(e.type))}function Gf(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var Kn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Kn,vt="__reactProps$"+Kn,Xa="__reactContainer$"+Kn,Sc="__reactEvents$"+Kn,$v="__reactListeners$"+Kn,Vv="__reactHandles$"+Kn,$f="__reactResources$"+Kn,ts="__reactMarker$"+Kn;function jc(e){delete e[rt],delete e[vt],delete e[Sc],delete e[$v],delete e[Vv]}function Za(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xa]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fp(e);e!==null;){if(n=e[rt])return n;e=fp(e)}return t}e=n,n=e.parentNode}return null}function Ia(e){if(e=e[rt]||e[Xa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ns(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ja(e){var t=e[$f];return t||(t=e[$f]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[ts]=!0}var Vf=new Set,Qf={};function ba(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(Qf[e]=t,e=0;e<t.length;e++)Vf.add(t[e])}var Qv=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]*$"),Xf={},Zf={};function Xv(e){return en.call(Zf,e)?!0:en.call(Xf,e)?!1:Qv.test(e)?Zf[e]=!0:(Xf[e]=!0,!1)}function pl(e,t,n){if(Xv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function gl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function vn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function If(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zv(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,d=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(p){n=""+p,d.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wc(e){if(!e._valueTracker){var t=If(e)?"checked":"value";e._valueTracker=Zv(e,t,""+e[t])}}function Jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=If(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Iv=/[\n"\\]/g;function qt(e){return e.replace(Iv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nc(e,t,n,l,c,d,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Ec(e,p,Bt(t)):n!=null?Ec(e,p,Bt(n)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Bt(v):e.removeAttribute("name")}function Ff(e,t,n,l,c,d,p,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||n!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){wc(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),wc(e)}function Ec(e,t,n){t==="number"&&yl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pa(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Pf(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function Wf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ne(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),wc(e)}function Wa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jv=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 ed(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Jv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function td(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&ed(e,c,l)}else for(var d in t)t.hasOwnProperty(d)&&ed(e,d,t[d])}function Ac(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Fv=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"]]),Pv=/^[\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 vl(e){return Pv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}var Cc=null;function kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,ti=null;function nd(e){var t=Ia(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[vt]||null;if(!c)throw Error(r(90));Nc(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Jf(l)}break e;case"textarea":Pf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Pa(e,!!n.multiple,t,!1)}}}var Tc=!1;function ad(e,t,n){if(Tc)return e(t,n);Tc=!0;try{var l=e(t);return l}finally{if(Tc=!1,(ei!==null||ti!==null)&&(sr(),ei&&(t=ei,e=ti,ti=ei=null,nd(t),e)))for(t=0;t<e.length;t++)nd(e[t])}}function as(e,t){var n=e.stateNode;if(n===null)return null;var l=n[vt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=!1;if(xn)try{var is={};Object.defineProperty(is,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",is,is),window.removeEventListener("test",is,is)}catch{Oc=!1}var Yn=null,_c=null,bl=null;function id(){if(bl)return bl;var e,t=_c,n=t.length,l,c="value"in Yn?Yn.value:Yn.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var p=n-e;for(l=1;l<=p&&t[n-l]===c[d-l];l++);return bl=c.slice(e,1<l?1-l:void 0)}function xl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sl(){return!0}function sd(){return!1}function bt(e){function t(n,l,c,d,p){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Sl:sd,this.isPropagationStopped=sd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Sl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sl)},persist:function(){},isPersistent:Sl}),t}var xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jl=bt(xa),ss=b({},xa,{view:0,detail:0}),Wv=bt(ss),zc,Dc,ls,wl=b({},ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ls&&(ls&&e.type==="mousemove"?(zc=e.screenX-ls.screenX,Dc=e.screenY-ls.screenY):Dc=zc=0,ls=e),zc)},movementY:function(e){return"movementY"in e?e.movementY:Dc}}),ld=bt(wl),eb=b({},wl,{dataTransfer:0}),tb=bt(eb),nb=b({},ss,{relatedTarget:0}),Mc=bt(nb),ab=b({},xa,{animationName:0,elapsedTime:0,pseudoElement:0}),ib=bt(ab),sb=b({},xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lb=bt(sb),rb=b({},xa,{data:0}),rd=bt(rb),cb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ob={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"},ub={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ub[e])?!!t[e]:!1}function Rc(){return fb}var db=b({},ss,{key:function(e){if(e.key){var t=cb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ob[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(e){return e.type==="keypress"?xl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hb=bt(db),mb=b({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cd=bt(mb),pb=b({},ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),gb=bt(pb),yb=b({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),vb=bt(yb),bb=b({},wl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),xb=bt(bb),Sb=b({},xa,{newState:0,oldState:0}),jb=bt(Sb),wb=[9,13,27,32],Lc=xn&&"CompositionEvent"in window,rs=null;xn&&"documentMode"in document&&(rs=document.documentMode);var Nb=xn&&"TextEvent"in window&&!rs,od=xn&&(!Lc||rs&&8<rs&&11>=rs),ud=" ",fd=!1;function dd(e,t){switch(e){case"keyup":return wb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ni=!1;function Eb(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(fd=!0,ud);case"textInput":return e=t.data,e===ud&&fd?null:e;default:return null}}function Ab(e,t){if(ni)return e==="compositionend"||!Lc&&dd(e,t)?(e=id(),bl=_c=Yn=null,ni=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return od&&t.locale!=="ko"?null:t.data;default:return null}}var Cb={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 md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cb[e.type]:t==="textarea"}function pd(e,t,n,l){ei?ti?ti.push(l):ti=[l]:ei=l,t=dr(t,"onChange"),0<t.length&&(n=new jl("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var cs=null,os=null;function kb(e){Fm(e,0)}function Nl(e){var t=ns(e);if(Jf(t))return e}function gd(e,t){if(e==="change")return t}var yd=!1;if(xn){var Uc;if(xn){var Bc="oninput"in document;if(!Bc){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),Bc=typeof vd.oninput=="function"}Uc=Bc}else Uc=!1;yd=Uc&&(!document.documentMode||9<document.documentMode)}function bd(){cs&&(cs.detachEvent("onpropertychange",xd),os=cs=null)}function xd(e){if(e.propertyName==="value"&&Nl(os)){var t=[];pd(t,os,e,kc(e)),ad(kb,t)}}function Tb(e,t,n){e==="focusin"?(bd(),cs=t,os=n,cs.attachEvent("onpropertychange",xd)):e==="focusout"&&bd()}function Ob(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(os)}function _b(e,t){if(e==="click")return Nl(t)}function zb(e,t){if(e==="input"||e==="change")return Nl(t)}function Db(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Db;function us(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!en.call(t,c)||!Ct(e[c],t[c]))return!1}return!0}function Sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jd(e,t){var n=Sd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sd(n)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function qc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mb=xn&&"documentMode"in document&&11>=document.documentMode,ai=null,Hc=null,fs=null,Kc=!1;function Ed(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kc||ai==null||ai!==yl(l)||(l=ai,"selectionStart"in l&&qc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),fs&&us(fs,l)||(fs=l,l=dr(Hc,"onSelect"),0<l.length&&(t=new jl("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=ai)))}function Sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ii={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},Yc={},Ad={};xn&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function ja(e){if(Yc[e])return Yc[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ad)return Yc[e]=t[n];return e}var Cd=ja("animationend"),kd=ja("animationiteration"),Td=ja("animationstart"),Rb=ja("transitionrun"),Lb=ja("transitionstart"),Ub=ja("transitioncancel"),Od=ja("transitionend"),_d=new Map,Gc="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(" ");Gc.push("scrollEnd");function tn(e,t){_d.set(e,t),ba(t,[e])}var El=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],si=0,$c=0;function Al(){for(var e=si,t=$c=si=0;t<e;){var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var c=Ht[t];Ht[t++]=null;var d=Ht[t];if(Ht[t++]=null,l!==null&&c!==null){var p=l.pending;p===null?c.next=c:(c.next=p.next,p.next=c),l.pending=c}d!==0&&zd(n,c,d)}}function Cl(e,t,n,l){Ht[si++]=e,Ht[si++]=t,Ht[si++]=n,Ht[si++]=l,$c|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Vc(e,t,n,l){return Cl(e,t,n,l),kl(e)}function wa(e,t){return Cl(e,null,null,t),kl(e)}function zd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,d=e.return;d!==null;)d.childLanes|=n,l=d.alternate,l!==null&&(l.childLanes|=n),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-At(n),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),d):null}function kl(e){if(50<Ds)throw Ds=0,tu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function Bb(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,l){return new Bb(e,t,n,l)}function Qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Dd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Tl(e,t,n,l,c,d){var p=0;if(l=e,typeof e=="function")Qc(e)&&(p=1);else if(typeof e=="string")p=G0(e,n,z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=kt(31,n,t,c),e.elementType=P,e.lanes=d,e;case j:return Na(n.children,c,d,t);case E:p=8,c|=24;break;case H:return e=kt(12,n,t,c|2),e.elementType=H,e.lanes=d,e;case K:return e=kt(13,n,t,c),e.elementType=K,e.lanes=d,e;case X:return e=kt(19,n,t,c),e.elementType=X,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:p=10;break e;case G:p=9;break e;case B:p=11;break e;case Z:p=14;break e;case _:p=16,l=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=kt(p,n,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function Na(e,t,n,l){return e=kt(7,e,l,t),e.lanes=n,e}function Xc(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function Md(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Zc(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rd=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var n=Rd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Fi(t)},Rd.set(e,t),t)}return{value:e,source:t,stack:Fi(t)}}var ri=[],ci=0,Ol=null,ds=0,Yt=[],Gt=0,Gn=null,on=1,un="";function jn(e,t){ri[ci++]=ds,ri[ci++]=Ol,Ol=e,ds=t}function Ld(e,t,n){Yt[Gt++]=on,Yt[Gt++]=un,Yt[Gt++]=Gn,Gn=e;var l=on;e=un;var c=32-At(l)-1;l&=~(1<<c),n+=1;var d=32-At(t)+c;if(30<d){var p=c-c%5;d=(l&(1<<p)-1).toString(32),l>>=p,c-=p,on=1<<32-At(t)+c|n<<c|l,un=d+e}else on=1<<d|n<<c|l,un=e}function Ic(e){e.return!==null&&(jn(e,1),Ld(e,1,0))}function Jc(e){for(;e===Ol;)Ol=ri[--ci],ri[ci]=null,ds=ri[--ci],ri[ci]=null;for(;e===Gn;)Gn=Yt[--Gt],Yt[Gt]=null,un=Yt[--Gt],Yt[Gt]=null,on=Yt[--Gt],Yt[Gt]=null}function Ud(e,t){Yt[Gt++]=on,Yt[Gt++]=un,Yt[Gt++]=Gn,on=t.id,un=t.overflow,Gn=e}var ct=null,Ue=null,Ae=!1,$n=null,$t=!1,Fc=Error(r(519));function Vn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hs(Kt(t,e)),Fc}function Bd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[rt]=e,t[vt]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Rs.length;n++)we(Rs[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Ff(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Wf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||tp(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||Vn(e,!0)}function qd(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:ct=ct.return}}function oi(e){if(e!==ct)return!1;if(!Ae)return qd(e),Ae=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||gu(e.type,e.memoizedProps)),n=!n),n&&Ue&&Vn(e),qd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=up(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=up(e)}else t===27?(t=Ue,sa(e.type)?(e=Su,Su=null,Ue=e):Ue=t):Ue=ct?Qt(e.stateNode.nextSibling):null;return!0}function Ea(){Ue=ct=null,Ae=!1}function Pc(){var e=$n;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),$n=null),e}function hs(e){$n===null?$n=[e]:$n.push(e)}var Wc=A(null),Aa=null,wn=null;function Qn(e,t,n){ee(Wc,t._currentValue),t._currentValue=n}function Nn(e){e._currentValue=Wc.current,$(Wc)}function eo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function to(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var p=c.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=c;for(var N=0;N<t.length;N++)if(v.context===t[N]){d.lanes|=n,v=d.alternate,v!==null&&(v.lanes|=n),eo(d.return,n,e),l||(p=null);break e}d=v.next}}else if(c.tag===18){if(p=c.return,p===null)throw Error(r(341));p.lanes|=n,d=p.alternate,d!==null&&(d.lanes|=n),eo(p,n,e),p=null}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}}function ui(e,t,n,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var p=c.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var v=c.type;Ct(c.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(c===he.current){if(p=c.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Hs):e=[Hs])}c=c.return}e!==null&&to(t,e,n,l),t.flags|=262144}function _l(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ca(e){Aa=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Hd(Aa,e)}function zl(e,t){return Aa===null&&Ca(e),Hd(e,t)}function Hd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wn===null){if(e===null)throw Error(r(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return n}var qb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Hb=a.unstable_scheduleCallback,Kb=a.unstable_NormalPriority,Pe={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function no(){return{controller:new qb,data:new Map,refCount:0}}function ms(e){e.refCount--,e.refCount===0&&Hb(Kb,function(){e.controller.abort()})}var ps=null,ao=0,fi=0,di=null;function Yb(e,t){if(ps===null){var n=ps=[];ao=0,fi=ru(),di={status:"pending",value:void 0,then:function(l){n.push(l)}}}return ao++,t.then(Kd,Kd),t}function Kd(){if(--ao===0&&ps!==null){di!==null&&(di.status="fulfilled");var e=ps;ps=null,fi=0,di=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gb(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var Yd=U.S;U.S=function(e,t){Em=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Yb(e,t),Yd!==null&&Yd(e,t)};var ka=A(null);function io(){var e=ka.current;return e!==null?e:Re.pooledCache}function Dl(e,t){t===null?ee(ka,ka.current):ee(ka,t.pool)}function Gd(){var e=io();return e===null?null:{parent:Pe._currentValue,pool:e}}var hi=Error(r(460)),so=Error(r(474)),Ml=Error(r(542)),Rl={then:function(){}};function $d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(bn,bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(bn,bn);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw Oa=t,hi}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Oa=n,hi):n}}var Oa=null;function Qd(){if(Oa===null)throw Error(r(459));var e=Oa;return Oa=null,e}function Xd(e){if(e===hi||e===Ml)throw Error(r(483))}var mi=null,gs=0;function Ll(e){var t=gs;return gs+=1,mi===null&&(mi=[]),Vd(mi,e,t)}function ys(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ul(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zd(e){function t(T,C){if(e){var D=T.deletions;D===null?(T.deletions=[C],T.flags|=16):D.push(C)}}function n(T,C){if(!e)return null;for(;C!==null;)t(T,C),C=C.sibling;return null}function l(T){for(var C=new Map;T!==null;)T.key!==null?C.set(T.key,T):C.set(T.index,T),T=T.sibling;return C}function c(T,C){return T=Sn(T,C),T.index=0,T.sibling=null,T}function d(T,C,D){return T.index=D,e?(D=T.alternate,D!==null?(D=D.index,D<C?(T.flags|=67108866,C):D):(T.flags|=67108866,C)):(T.flags|=1048576,C)}function p(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function v(T,C,D,V){return C===null||C.tag!==6?(C=Xc(D,T.mode,V),C.return=T,C):(C=c(C,D),C.return=T,C)}function N(T,C,D,V){var ue=D.type;return ue===j?Y(T,C,D.props.children,V,D.key):C!==null&&(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===_&&Ta(ue)===C.type)?(C=c(C,D.props),ys(C,D),C.return=T,C):(C=Tl(D.type,D.key,D.props,null,T.mode,V),ys(C,D),C.return=T,C)}function M(T,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Zc(D,T.mode,V),C.return=T,C):(C=c(C,D.children||[]),C.return=T,C)}function Y(T,C,D,V,ue){return C===null||C.tag!==7?(C=Na(D,T.mode,V,ue),C.return=T,C):(C=c(C,D),C.return=T,C)}function Q(T,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Xc(""+C,T.mode,D),C.return=T,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return D=Tl(C.type,C.key,C.props,null,T.mode,D),ys(D,C),D.return=T,D;case O:return C=Zc(C,T.mode,D),C.return=T,C;case _:return C=Ta(C),Q(T,C,D)}if(ne(C)||le(C))return C=Na(C,T.mode,D,null),C.return=T,C;if(typeof C.then=="function")return Q(T,Ll(C),D);if(C.$$typeof===R)return Q(T,zl(T,C),D);Ul(T,C)}return null}function L(T,C,D,V){var ue=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ue!==null?null:v(T,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case k:return D.key===ue?N(T,C,D,V):null;case O:return D.key===ue?M(T,C,D,V):null;case _:return D=Ta(D),L(T,C,D,V)}if(ne(D)||le(D))return ue!==null?null:Y(T,C,D,V,null);if(typeof D.then=="function")return L(T,C,Ll(D),V);if(D.$$typeof===R)return L(T,C,zl(T,D),V);Ul(T,D)}return null}function q(T,C,D,V,ue){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return T=T.get(D)||null,v(C,T,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case k:return T=T.get(V.key===null?D:V.key)||null,N(C,T,V,ue);case O:return T=T.get(V.key===null?D:V.key)||null,M(C,T,V,ue);case _:return V=Ta(V),q(T,C,D,V,ue)}if(ne(V)||le(V))return T=T.get(D)||null,Y(C,T,V,ue,null);if(typeof V.then=="function")return q(T,C,D,Ll(V),ue);if(V.$$typeof===R)return q(T,C,D,zl(C,V),ue);Ul(C,V)}return null}function ie(T,C,D,V){for(var ue=null,Ce=null,ce=C,be=C=0,Ee=null;ce!==null&&be<D.length;be++){ce.index>be?(Ee=ce,ce=null):Ee=ce.sibling;var ke=L(T,ce,D[be],V);if(ke===null){ce===null&&(ce=Ee);break}e&&ce&&ke.alternate===null&&t(T,ce),C=d(ke,C,be),Ce===null?ue=ke:Ce.sibling=ke,Ce=ke,ce=Ee}if(be===D.length)return n(T,ce),Ae&&jn(T,be),ue;if(ce===null){for(;be<D.length;be++)ce=Q(T,D[be],V),ce!==null&&(C=d(ce,C,be),Ce===null?ue=ce:Ce.sibling=ce,Ce=ce);return Ae&&jn(T,be),ue}for(ce=l(ce);be<D.length;be++)Ee=q(ce,T,be,D[be],V),Ee!==null&&(e&&Ee.alternate!==null&&ce.delete(Ee.key===null?be:Ee.key),C=d(Ee,C,be),Ce===null?ue=Ee:Ce.sibling=Ee,Ce=Ee);return e&&ce.forEach(function(ua){return t(T,ua)}),Ae&&jn(T,be),ue}function de(T,C,D,V){if(D==null)throw Error(r(151));for(var ue=null,Ce=null,ce=C,be=C=0,Ee=null,ke=D.next();ce!==null&&!ke.done;be++,ke=D.next()){ce.index>be?(Ee=ce,ce=null):Ee=ce.sibling;var ua=L(T,ce,ke.value,V);if(ua===null){ce===null&&(ce=Ee);break}e&&ce&&ua.alternate===null&&t(T,ce),C=d(ua,C,be),Ce===null?ue=ua:Ce.sibling=ua,Ce=ua,ce=Ee}if(ke.done)return n(T,ce),Ae&&jn(T,be),ue;if(ce===null){for(;!ke.done;be++,ke=D.next())ke=Q(T,ke.value,V),ke!==null&&(C=d(ke,C,be),Ce===null?ue=ke:Ce.sibling=ke,Ce=ke);return Ae&&jn(T,be),ue}for(ce=l(ce);!ke.done;be++,ke=D.next())ke=q(ce,T,be,ke.value,V),ke!==null&&(e&&ke.alternate!==null&&ce.delete(ke.key===null?be:ke.key),C=d(ke,C,be),Ce===null?ue=ke:Ce.sibling=ke,Ce=ke);return e&&ce.forEach(function(ex){return t(T,ex)}),Ae&&jn(T,be),ue}function Me(T,C,D,V){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case k:e:{for(var ue=D.key;C!==null;){if(C.key===ue){if(ue=D.type,ue===j){if(C.tag===7){n(T,C.sibling),V=c(C,D.props.children),V.return=T,T=V;break e}}else if(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===_&&Ta(ue)===C.type){n(T,C.sibling),V=c(C,D.props),ys(V,D),V.return=T,T=V;break e}n(T,C);break}else t(T,C);C=C.sibling}D.type===j?(V=Na(D.props.children,T.mode,V,D.key),V.return=T,T=V):(V=Tl(D.type,D.key,D.props,null,T.mode,V),ys(V,D),V.return=T,T=V)}return p(T);case O:e:{for(ue=D.key;C!==null;){if(C.key===ue)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){n(T,C.sibling),V=c(C,D.children||[]),V.return=T,T=V;break e}else{n(T,C);break}else t(T,C);C=C.sibling}V=Zc(D,T.mode,V),V.return=T,T=V}return p(T);case _:return D=Ta(D),Me(T,C,D,V)}if(ne(D))return ie(T,C,D,V);if(le(D)){if(ue=le(D),typeof ue!="function")throw Error(r(150));return D=ue.call(D),de(T,C,D,V)}if(typeof D.then=="function")return Me(T,C,Ll(D),V);if(D.$$typeof===R)return Me(T,C,zl(T,D),V);Ul(T,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(n(T,C.sibling),V=c(C,D),V.return=T,T=V):(n(T,C),V=Xc(D,T.mode,V),V.return=T,T=V),p(T)):n(T,C)}return function(T,C,D,V){try{gs=0;var ue=Me(T,C,D,V);return mi=null,ue}catch(ce){if(ce===hi||ce===Ml)throw ce;var Ce=kt(29,ce,null,T.mode);return Ce.lanes=V,Ce.return=T,Ce}}}var _a=Zd(!0),Id=Zd(!1),Xn=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=kl(e),zd(e,null,n),t}return Cl(e,l,t,n),kl(e)}function vs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Hf(e,n)}}function co(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};d===null?c=d=p:d=d.next=p,n=n.next}while(n!==null);d===null?c=d=t:d=d.next=t}else c=d=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var oo=!1;function bs(){if(oo){var e=di;if(e!==null)throw e}}function xs(e,t,n,l){oo=!1;var c=e.updateQueue;Xn=!1;var d=c.firstBaseUpdate,p=c.lastBaseUpdate,v=c.shared.pending;if(v!==null){c.shared.pending=null;var N=v,M=N.next;N.next=null,p===null?d=M:p.next=M,p=N;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,v=Y.lastBaseUpdate,v!==p&&(v===null?Y.firstBaseUpdate=M:v.next=M,Y.lastBaseUpdate=N))}if(d!==null){var Q=c.baseState;p=0,Y=M=N=null,v=d;do{var L=v.lane&-536870913,q=L!==v.lane;if(q?(Ne&L)===L:(l&L)===L){L!==0&&L===fi&&(oo=!0),Y!==null&&(Y=Y.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ie=e,de=v;L=t;var Me=n;switch(de.tag){case 1:if(ie=de.payload,typeof ie=="function"){Q=ie.call(Me,Q,L);break e}Q=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=de.payload,L=typeof ie=="function"?ie.call(Me,Q,L):ie,L==null)break e;Q=b({},Q,L);break e;case 2:Xn=!0}}L=v.callback,L!==null&&(e.flags|=64,q&&(e.flags|=8192),q=c.callbacks,q===null?c.callbacks=[L]:q.push(L))}else q={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Y===null?(M=Y=q,N=Q):Y=Y.next=q,p|=L;if(v=v.next,v===null){if(v=c.shared.pending,v===null)break;q=v,v=q.next,q.next=null,c.lastBaseUpdate=q,c.shared.pending=null}}while(!0);Y===null&&(N=Q),c.baseState=N,c.firstBaseUpdate=M,c.lastBaseUpdate=Y,d===null&&(c.shared.lanes=0),ea|=p,e.lanes=p,e.memoizedState=Q}}function Jd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Fd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Jd(n[e],t)}var pi=A(null),Bl=A(0);function Pd(e,t){e=Dn,ee(Bl,e),ee(pi,t),Dn=e|t.baseLanes}function uo(){ee(Bl,Dn),ee(pi,pi.current)}function fo(){Dn=Bl.current,$(pi),$(Bl)}var Tt=A(null),Vt=null;function Jn(e){var t=e.alternate;ee(Xe,Xe.current&1),ee(Tt,e),Vt===null&&(t===null||pi.current!==null||t.memoizedState!==null)&&(Vt=e)}function ho(e){ee(Xe,Xe.current),ee(Tt,e),Vt===null&&(Vt=e)}function Wd(e){e.tag===22?(ee(Xe,Xe.current),ee(Tt,e),Vt===null&&(Vt=e)):Fn()}function Fn(){ee(Xe,Xe.current),ee(Tt,Tt.current)}function Ot(e){$(Tt),Vt===e&&(Vt=null),$(Xe)}var Xe=A(0);function ql(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||bu(n)||xu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var En=0,ye=null,ze=null,We=null,Hl=!1,gi=!1,za=!1,Kl=0,Ss=0,yi=null,$b=0;function $e(){throw Error(r(321))}function mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function po(e,t,n,l,c,d){return En=d,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Lh:Oo,za=!1,d=n(l,c),za=!1,gi&&(d=th(t,n,l,c)),eh(e),d}function eh(e){U.H=Ns;var t=ze!==null&&ze.next!==null;if(En=0,We=ze=ye=null,Hl=!1,Ss=0,yi=null,t)throw Error(r(300));e===null||et||(e=e.dependencies,e!==null&&_l(e)&&(et=!0))}function th(e,t,n,l){ye=e;var c=0;do{if(gi&&(yi=null),Ss=0,gi=!1,25<=c)throw Error(r(301));if(c+=1,We=ze=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}U.H=Uh,d=t(n,l)}while(gi);return d}function Vb(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?js(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ye.flags|=1024),t}function go(){var e=Kl!==0;return Kl=0,e}function yo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vo(e){if(Hl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hl=!1}En=0,We=ze=ye=null,gi=!1,Ss=Kl=0,yi=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ye.memoizedState=We=e:We=We.next=e,We}function Ze(){if(ze===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=We===null?ye.memoizedState:We.next;if(t!==null)We=t,ze=e;else{if(e===null)throw ye.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},We===null?ye.memoizedState=We=e:We=We.next=e}return We}function Yl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function js(e){var t=Ss;return Ss+=1,yi===null&&(yi=[]),e=Vd(yi,e,t),t=ye,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Lh:Oo),e}function Gl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return js(e);if(e.$$typeof===R)return ot(e)}throw Error(r(438,String(e)))}function bo(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Yl(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=Se;return t.index++,n}function An(e,t){return typeof t=="function"?t(e):t}function $l(e){var t=Ze();return xo(t,ze,e)}function xo(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var p=c.next;c.next=d.next,d.next=p}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var v=p=null,N=null,M=t,Y=!1;do{var Q=M.lane&-536870913;if(Q!==M.lane?(Ne&Q)===Q:(En&Q)===Q){var L=M.revertLane;if(L===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Q===fi&&(Y=!0);else if((En&L)===L){M=M.next,L===fi&&(Y=!0);continue}else Q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},N===null?(v=N=Q,p=d):N=N.next=Q,ye.lanes|=L,ea|=L;Q=M.action,za&&n(d,Q),d=M.hasEagerState?M.eagerState:n(d,Q)}else L={lane:Q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},N===null?(v=N=L,p=d):N=N.next=L,ye.lanes|=Q,ea|=Q;M=M.next}while(M!==null&&M!==t);if(N===null?p=d:N.next=v,!Ct(d,e.memoizedState)&&(et=!0,Y&&(n=di,n!==null)))throw n;e.memoizedState=d,e.baseState=p,e.baseQueue=N,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function So(e){var t=Ze(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,d=t.memoizedState;if(c!==null){n.pending=null;var p=c=c.next;do d=e(d,p.action),p=p.next;while(p!==c);Ct(d,t.memoizedState)||(et=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,l]}function nh(e,t,n){var l=ye,c=Ze(),d=Ae;if(d){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!Ct((ze||c).memoizedState,n);if(p&&(c.memoizedState=n,et=!0),c=c.queue,No(sh.bind(null,l,c,e),[e]),c.getSnapshot!==t||p||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,vi(9,{destroy:void 0},ih.bind(null,l,c,n,t),null),Re===null)throw Error(r(349));d||(En&127)!==0||ah(l,t,n)}return n}function ah(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Yl(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ih(e,t,n,l){t.value=n,t.getSnapshot=l,lh(t)&&rh(e)}function sh(e,t,n){return n(function(){lh(t)&&rh(e)})}function lh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function rh(e){var t=wa(e,2);t!==null&&Nt(t,e,2)}function jo(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),za){Hn(!0);try{n()}finally{Hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},t}function ch(e,t,n,l){return e.baseState=n,xo(e,ze,typeof l=="function"?l:An)}function Qb(e,t,n,l,c){if(Xl(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){d.listeners.push(p)}};U.T!==null?n(!0):d.isTransition=!1,l(d),n=t.pending,n===null?(d.next=t.pending=d,oh(t,d)):(d.next=n.next,t.pending=n.next=d)}}function oh(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=U.T,p={};U.T=p;try{var v=n(c,l),N=U.S;N!==null&&N(p,v),uh(e,t,v)}catch(M){wo(e,t,M)}finally{d!==null&&p.types!==null&&(d.types=p.types),U.T=d}}else try{d=n(c,l),uh(e,t,d)}catch(M){wo(e,t,M)}}function uh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){fh(e,t,l)},function(l){return wo(e,t,l)}):fh(e,t,n)}function fh(e,t,n){t.status="fulfilled",t.value=n,dh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,oh(e,n)))}function wo(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,dh(t),t=t.next;while(t!==l)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hh(e,t){return t}function mh(e,t){if(Ae){var n=Re.formState;if(n!==null){e:{var l=ye;if(Ae){if(Ue){t:{for(var c=Ue,d=$t;c.nodeType!==8;){if(!d){c=null;break t}if(c=Qt(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Ue=Qt(c.nextSibling),l=c.data==="F!";break e}}Vn(l)}l=!1}l&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:t},n.queue=l,n=Dh.bind(null,ye,l),l.dispatch=n,l=jo(!1),d=To.bind(null,ye,!1,l.queue),l=mt(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=Qb.bind(null,ye,c,d,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function ph(e){var t=Ze();return gh(t,ze,e)}function gh(e,t,n){if(t=xo(e,t,hh)[0],e=$l(An)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=js(t)}catch(p){throw p===hi?Ml:p}else l=t;t=Ze();var c=t.queue,d=c.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,vi(9,{destroy:void 0},Xb.bind(null,c,n),null)),[l,d,e]}function Xb(e,t){e.action=t}function yh(e){var t=Ze(),n=ze;if(n!==null)return gh(t,n,e);Ze(),t=t.memoizedState,n=Ze();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function vi(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Yl(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function vh(){return Ze().memoizedState}function Vl(e,t,n,l){var c=mt();ye.flags|=e,c.memoizedState=vi(1|t,{destroy:void 0},n,l===void 0?null:l)}function Ql(e,t,n,l){var c=Ze();l=l===void 0?null:l;var d=c.memoizedState.inst;ze!==null&&l!==null&&mo(l,ze.memoizedState.deps)?c.memoizedState=vi(t,d,n,l):(ye.flags|=e,c.memoizedState=vi(1|t,d,n,l))}function bh(e,t){Vl(8390656,8,e,t)}function No(e,t){Ql(2048,8,e,t)}function Zb(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Yl(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function xh(e){var t=Ze().memoizedState;return Zb({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Sh(e,t){return Ql(4,2,e,t)}function jh(e,t){return Ql(4,4,e,t)}function wh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nh(e,t,n){n=n!=null?n.concat([e]):null,Ql(4,4,wh.bind(null,t,e),n)}function Eo(){}function Eh(e,t){var n=Ze();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&mo(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Ah(e,t){var n=Ze();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&mo(t,l[1]))return l[0];if(l=e(),za){Hn(!0);try{e()}finally{Hn(!1)}}return n.memoizedState=[l,t],l}function Ao(e,t,n){return n===void 0||(En&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Cm(),ye.lanes|=e,ea|=e,n)}function Ch(e,t,n,l){return Ct(n,t)?n:pi.current!==null?(e=Ao(e,n,l),Ct(e,t)||(et=!0),e):(En&42)===0||(En&1073741824)!==0&&(Ne&261930)===0?(et=!0,e.memoizedState=n):(e=Cm(),ye.lanes|=e,ea|=e,t)}function kh(e,t,n,l,c){var d=J.p;J.p=d!==0&&8>d?d:8;var p=U.T,v={};U.T=v,To(e,!1,t,n);try{var N=c(),M=U.S;if(M!==null&&M(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Y=Gb(N,l);ws(e,t,Y,Dt(e))}else ws(e,t,l,Dt(e))}catch(Q){ws(e,t,{then:function(){},status:"rejected",reason:Q},Dt())}finally{J.p=d,p!==null&&v.types!==null&&(p.types=v.types),U.T=p}}function Ib(){}function Co(e,t,n,l){if(e.tag!==5)throw Error(r(476));var c=Th(e).queue;kh(e,c,t,oe,n===null?Ib:function(){return Oh(e),n(l)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Oh(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},Dt())}function ko(){return ot(Hs)}function _h(){return Ze().memoizedState}function zh(){return Ze().memoizedState}function Jb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dt();e=Zn(n);var l=In(t,e,n);l!==null&&(Nt(l,t,n),vs(l,t,n)),t={cache:no()},e.payload=t;return}t=t.return}}function Fb(e,t,n){var l=Dt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xl(e)?Mh(t,n):(n=Vc(e,t,n,l),n!==null&&(Nt(n,e,l),Rh(n,t,l)))}function Dh(e,t,n){var l=Dt();ws(e,t,n,l)}function ws(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xl(e))Mh(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var p=t.lastRenderedState,v=d(p,n);if(c.hasEagerState=!0,c.eagerState=v,Ct(v,p))return Cl(e,t,c,0),Re===null&&Al(),!1}catch{}if(n=Vc(e,t,c,l),n!==null)return Nt(n,e,l),Rh(n,t,l),!0}return!1}function To(e,t,n,l){if(l={lane:2,revertLane:ru(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xl(e)){if(t)throw Error(r(479))}else t=Vc(e,n,l,2),t!==null&&Nt(t,e,2)}function Xl(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Mh(e,t){gi=Hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Hf(e,n)}}var Ns={readContext:ot,use:Gl,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};Ns.useEffectEvent=$e;var Lh={readContext:ot,use:Gl,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:bh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Vl(4194308,4,wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vl(4194308,4,e,t)},useInsertionEffect:function(e,t){Vl(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var l=e();if(za){Hn(!0);try{e()}finally{Hn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=mt();if(n!==void 0){var c=n(t);if(za){Hn(!0);try{n(t)}finally{Hn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=Fb.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=jo(e);var t=e.queue,n=Dh.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Eo,useDeferredValue:function(e,t){var n=mt();return Ao(n,e,t)},useTransition:function(){var e=jo(!1);return e=kh.bind(null,ye,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ye,c=mt();if(Ae){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Re===null)throw Error(r(349));(Ne&127)!==0||ah(l,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,bh(sh.bind(null,l,d,e),[e]),l.flags|=2048,vi(9,{destroy:void 0},ih.bind(null,l,d,n,t),null),n},useId:function(){var e=mt(),t=Re.identifierPrefix;if(Ae){var n=un,l=on;n=(l&~(1<<32-At(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Kl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=$b++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ko,useFormState:mh,useActionState:mh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=To.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:bo,useCacheRefresh:function(){return mt().memoizedState=Jb.bind(null,ye)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Te&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Oo={readContext:ot,use:Gl,useCallback:Eh,useContext:ot,useEffect:No,useImperativeHandle:Nh,useInsertionEffect:Sh,useLayoutEffect:jh,useMemo:Ah,useReducer:$l,useRef:vh,useState:function(){return $l(An)},useDebugValue:Eo,useDeferredValue:function(e,t){var n=Ze();return Ch(n,ze.memoizedState,e,t)},useTransition:function(){var e=$l(An)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:js(e),t]},useSyncExternalStore:nh,useId:_h,useHostTransitionStatus:ko,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var n=Ze();return ch(n,ze,e,t)},useMemoCache:bo,useCacheRefresh:zh};Oo.useEffectEvent=xh;var Uh={readContext:ot,use:Gl,useCallback:Eh,useContext:ot,useEffect:No,useImperativeHandle:Nh,useInsertionEffect:Sh,useLayoutEffect:jh,useMemo:Ah,useReducer:So,useRef:vh,useState:function(){return So(An)},useDebugValue:Eo,useDeferredValue:function(e,t){var n=Ze();return ze===null?Ao(n,e,t):Ch(n,ze.memoizedState,e,t)},useTransition:function(){var e=So(An)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:js(e),t]},useSyncExternalStore:nh,useId:_h,useHostTransitionStatus:ko,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var n=Ze();return ze!==null?ch(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:bo,useCacheRefresh:zh};Uh.useEffectEvent=xh;function _o(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zo={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Dt(),c=Zn(l);c.payload=t,n!=null&&(c.callback=n),t=In(e,c,l),t!==null&&(Nt(t,e,l),vs(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Dt(),c=Zn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=In(e,c,l),t!==null&&(Nt(t,e,l),vs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),l=Zn(n);l.tag=2,t!=null&&(l.callback=t),t=In(e,l,n),t!==null&&(Nt(t,e,n),vs(t,e,n))}};function Bh(e,t,n,l,c,d,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,p):t.prototype&&t.prototype.isPureReactComponent?!us(n,l)||!us(c,d):!0}function qh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function Da(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Hh(e){El(e)}function Kh(e){console.error(e)}function Yh(e){El(e)}function Zl(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Gh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Do(e,t,n){return n=Zn(n),n.tag=3,n.payload={element:null},n.callback=function(){Zl(e,t)},n}function $h(e){return e=Zn(e),e.tag=3,e}function Vh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){Gh(t,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Gh(t,n,l),typeof c!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function Pb(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ui(t,n,c,!0),n=Tt.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?lr():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===Rl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),iu(e,l,c)),!1;case 22:return n.flags|=65536,l===Rl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),iu(e,l,c)),!1}throw Error(r(435,n.tag))}return iu(e,l,c),lr(),!1}if(Ae)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Fc&&(e=Error(r(422),{cause:l}),hs(Kt(e,n)))):(l!==Fc&&(t=Error(r(423),{cause:l}),hs(Kt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Kt(l,n),c=Do(e.stateNode,l,c),co(e,c),Ve!==4&&(Ve=2)),!1;var d=Error(r(520),{cause:l});if(d=Kt(d,n),zs===null?zs=[d]:zs.push(d),Ve!==4&&(Ve=2),t===null)return!0;l=Kt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Do(n.stateNode,l,e),co(n,e),!1;case 1:if(t=n.type,d=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ta===null||!ta.has(d))))return n.flags|=65536,c&=-c,n.lanes|=c,c=$h(c),Vh(c,e,n,l),co(n,c),!1}n=n.return}while(n!==null);return!1}var Mo=Error(r(461)),et=!1;function ut(e,t,n,l){t.child=e===null?Id(t,null,n,l):_a(t,e.child,n,l)}function Qh(e,t,n,l,c){n=n.render;var d=t.ref;if("ref"in l){var p={};for(var v in l)v!=="ref"&&(p[v]=l[v])}else p=l;return Ca(t),l=po(e,t,n,p,d,c),v=go(),e!==null&&!et?(yo(e,t,c),Cn(e,t,c)):(Ae&&v&&Ic(t),t.flags|=1,ut(e,t,l,c),t.child)}function Xh(e,t,n,l,c){if(e===null){var d=n.type;return typeof d=="function"&&!Qc(d)&&d.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=d,Zh(e,t,d,l,c)):(e=Tl(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Yo(e,c)){var p=d.memoizedProps;if(n=n.compare,n=n!==null?n:us,n(p,l)&&e.ref===t.ref)return Cn(e,t,c)}return t.flags|=1,e=Sn(d,l),e.ref=t.ref,e.return=t,t.child=e}function Zh(e,t,n,l,c){if(e!==null){var d=e.memoizedProps;if(us(d,l)&&e.ref===t.ref)if(et=!1,t.pendingProps=l=d,Yo(e,c))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Cn(e,t,c)}return Ro(e,t,n,l,c)}function Ih(e,t,n,l){var c=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~d}else l=0,t.child=null;return Jh(e,t,d,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Dl(t,d!==null?d.cachePool:null),d!==null?Pd(t,d):uo(),Wd(t);else return l=t.lanes=536870912,Jh(e,t,d!==null?d.baseLanes|n:n,n,l)}else d!==null?(Dl(t,d.cachePool),Pd(t,d),Fn(),t.memoizedState=null):(e!==null&&Dl(t,null),uo(),Fn());return ut(e,t,c,n),t.child}function Es(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jh(e,t,n,l,c){var d=io();return d=d===null?null:{parent:Pe._currentValue,pool:d},t.memoizedState={baseLanes:n,cachePool:d},e!==null&&Dl(t,null),uo(),Wd(t),e!==null&&ui(e,t,l,!0),t.childLanes=c,null}function Il(e,t){return t=Fl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fh(e,t,n){return _a(t,e.child,null,n),e=Il(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function Wb(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Il(t,l),t.lanes=536870912,Es(null,e);if(ho(t),(e=Ue)?(e=op(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:on,overflow:un}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Vn(t);return t.lanes=536870912,null}return Il(t,l)}var d=e.memoizedState;if(d!==null){var p=d.dehydrated;if(ho(t),c)if(t.flags&256)t.flags&=-257,t=Fh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(et||ui(e,t,n,!1),c=(n&e.childLanes)!==0,et||c){if(l=Re,l!==null&&(p=Kf(l,n),p!==0&&p!==d.retryLane))throw d.retryLane=p,wa(e,p),Nt(l,e,p),Mo;lr(),t=Fh(e,t,n)}else e=d.treeContext,Ue=Qt(p.nextSibling),ct=t,Ae=!0,$n=null,$t=!1,e!==null&&Ud(t,e),t=Il(t,l),t.flags|=4096;return t}return e=Sn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ro(e,t,n,l,c){return Ca(t),n=po(e,t,n,l,void 0,c),l=go(),e!==null&&!et?(yo(e,t,c),Cn(e,t,c)):(Ae&&l&&Ic(t),t.flags|=1,ut(e,t,n,c),t.child)}function Ph(e,t,n,l,c,d){return Ca(t),t.updateQueue=null,n=th(t,l,n,c),eh(e),l=go(),e!==null&&!et?(yo(e,t,d),Cn(e,t,d)):(Ae&&l&&Ic(t),t.flags|=1,ut(e,t,n,d),t.child)}function Wh(e,t,n,l,c){if(Ca(t),t.stateNode===null){var d=li,p=n.contextType;typeof p=="object"&&p!==null&&(d=ot(p)),d=new n(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=zo,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},lo(t),p=n.contextType,d.context=typeof p=="object"&&p!==null?ot(p):li,d.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(_o(t,n,p,l),d.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(p=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),p!==d.state&&zo.enqueueReplaceState(d,d.state,null),xs(t,l,d,c),bs(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var v=t.memoizedProps,N=Da(n,v);d.props=N;var M=d.context,Y=n.contextType;p=li,typeof Y=="object"&&Y!==null&&(p=ot(Y));var Q=n.getDerivedStateFromProps;Y=typeof Q=="function"||typeof d.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Y||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v||M!==p)&&qh(t,d,l,p),Xn=!1;var L=t.memoizedState;d.state=L,xs(t,l,d,c),bs(),M=t.memoizedState,v||L!==M||Xn?(typeof Q=="function"&&(_o(t,n,Q,l),M=t.memoizedState),(N=Xn||Bh(t,n,N,l,L,M,p))?(Y||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),d.props=l,d.state=M,d.context=p,l=N):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,ro(e,t),p=t.memoizedProps,Y=Da(n,p),d.props=Y,Q=t.pendingProps,L=d.context,M=n.contextType,N=li,typeof M=="object"&&M!==null&&(N=ot(M)),v=n.getDerivedStateFromProps,(M=typeof v=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==Q||L!==N)&&qh(t,d,l,N),Xn=!1,L=t.memoizedState,d.state=L,xs(t,l,d,c),bs();var q=t.memoizedState;p!==Q||L!==q||Xn||e!==null&&e.dependencies!==null&&_l(e.dependencies)?(typeof v=="function"&&(_o(t,n,v,l),q=t.memoizedState),(Y=Xn||Bh(t,n,Y,l,L,q,N)||e!==null&&e.dependencies!==null&&_l(e.dependencies))?(M||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,q,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,q,N)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),d.props=l,d.state=q,d.context=N,l=Y):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Jl(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=_a(t,e.child,null,c),t.child=_a(t,null,n,c)):ut(e,t,n,c),t.memoizedState=d.state,e=t.child):e=Cn(e,t,c),e}function em(e,t,n,l){return Ea(),t.flags|=256,ut(e,t,n,l),t.child}var Lo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uo(e){return{baseLanes:e,cachePool:Gd()}}function Bo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function tm(e,t,n){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,p;if((p=d)||(p=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),p&&(c=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(c?Jn(t):Fn(),(e=Ue)?(e=op(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:on,overflow:un}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Vn(t);return xu(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,c?(Fn(),c=t.mode,v=Fl({mode:"hidden",children:v},c),l=Na(l,c,n,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Uo(n),l.childLanes=Bo(e,p,n),t.memoizedState=Lo,Es(null,l)):(Jn(t),qo(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(d)t.flags&256?(Jn(t),t.flags&=-257,t=Ho(e,t,n)):t.memoizedState!==null?(Fn(),t.child=e.child,t.flags|=128,t=null):(Fn(),v=l.fallback,c=t.mode,l=Fl({mode:"visible",children:l.children},c),v=Na(v,c,n,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,_a(t,e.child,null,n),l=t.child,l.memoizedState=Uo(n),l.childLanes=Bo(e,p,n),t.memoizedState=Lo,t=Es(null,l));else if(Jn(t),xu(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var M=p.dgst;p=M,l=Error(r(419)),l.stack="",l.digest=p,hs({value:l,source:null,stack:null}),t=Ho(e,t,n)}else if(et||ui(e,t,n,!1),p=(n&e.childLanes)!==0,et||p){if(p=Re,p!==null&&(l=Kf(p,n),l!==0&&l!==N.retryLane))throw N.retryLane=l,wa(e,l),Nt(p,e,l),Mo;bu(v)||lr(),t=Ho(e,t,n)}else bu(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ue=Qt(v.nextSibling),ct=t,Ae=!0,$n=null,$t=!1,e!==null&&Ud(t,e),t=qo(t,l.children),t.flags|=4096);return t}return c?(Fn(),v=l.fallback,c=t.mode,N=e.child,M=N.sibling,l=Sn(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,M!==null?v=Sn(M,v):(v=Na(v,c,n,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,Es(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Uo(n):(c=v.cachePool,c!==null?(N=Pe._currentValue,c=c.parent!==N?{parent:N,pool:N}:c):c=Gd(),v={baseLanes:v.baseLanes|n,cachePool:c}),l.memoizedState=v,l.childLanes=Bo(e,p,n),t.memoizedState=Lo,Es(e.child,l)):(Jn(t),n=e.child,e=n.sibling,n=Sn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function qo(e,t){return t=Fl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fl(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function Ho(e,t,n){return _a(t,e.child,null,n),e=qo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),eo(e.return,t,n)}function Ko(e,t,n,l,c,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:d}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=n,p.tailMode=c,p.treeForkCount=d)}function am(e,t,n){var l=t.pendingProps,c=l.revealOrder,d=l.tail;l=l.children;var p=Xe.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,ee(Xe,p),ut(e,t,l,n),l=Ae?ds:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nm(e,n,t);else if(e.tag===19)nm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&ql(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Ko(t,!1,c,n,d,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&ql(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Ko(t,!0,n,null,d,l);break;case"together":Ko(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&_l(e)))}function e0(e,t,n){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),Qn(t,Pe,e.memoizedState.cache),Ea();break;case 27:case 5:Pt(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:Qn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ho(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Jn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?tm(e,t,n):(Jn(t),e=Cn(e,t,n),e!==null?e.sibling:null);Jn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ui(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return am(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Ih(e,t,n,t.pendingProps);case 24:Qn(t,Pe,e.memoizedState.cache)}return Cn(e,t,n)}function im(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Yo(e,n)&&(t.flags&128)===0)return et=!1,e0(e,t,n);et=(e.flags&131072)!==0}else et=!1,Ae&&(t.flags&1048576)!==0&&Ld(t,ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e=="function")Qc(e)?(l=Da(e,l),t.tag=1,t=Wh(null,t,e,l,n)):(t.tag=0,t=Ro(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===B){t.tag=11,t=Qh(null,t,e,l,n);break e}else if(c===Z){t.tag=14,t=Xh(null,t,e,l,n);break e}}throw t=Ge(e)||e,Error(r(306,t,""))}}return t;case 0:return Ro(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=Da(l,t.pendingProps),Wh(e,t,l,c,n);case 3:e:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,ro(e,t),xs(t,l,null,n);var p=t.memoizedState;if(l=p.cache,Qn(t,Pe,l),l!==d.cache&&to(t,[Pe],n,!0),bs(),l=p.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=em(e,t,l,n);break e}else if(l!==c){c=Kt(Error(r(424)),t),hs(c),t=em(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Qt(e.firstChild),ct=t,Ae=!0,$n=null,$t=!0,n=Id(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ea(),l===c){t=Cn(e,t,n);break e}ut(e,t,l,n)}t=t.child}return t;case 26:return Jl(e,t),e===null?(n=pp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ae||(n=t.type,e=t.pendingProps,l=hr(ae.current).createElement(n),l[rt]=t,l[vt]=e,ft(l,n,e),st(l),t.stateNode=l):t.memoizedState=pp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pt(t),e===null&&Ae&&(l=t.stateNode=dp(t.type,t.pendingProps,ae.current),ct=t,$t=!0,c=Ue,sa(t.type)?(Su=c,Ue=Qt(l.firstChild)):Ue=c),ut(e,t,t.pendingProps.children,n),Jl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((c=l=Ue)&&(l=O0(l,t.type,t.pendingProps,$t),l!==null?(t.stateNode=l,ct=t,Ue=Qt(l.firstChild),$t=!1,c=!0):c=!1),c||Vn(t)),Pt(t),c=t.type,d=t.pendingProps,p=e!==null?e.memoizedProps:null,l=d.children,gu(c,d)?l=null:p!==null&&gu(c,p)&&(t.flags|=32),t.memoizedState!==null&&(c=po(e,t,Vb,null,null,n),Hs._currentValue=c),Jl(e,t),ut(e,t,l,n),t.child;case 6:return e===null&&Ae&&((e=n=Ue)&&(n=_0(n,t.pendingProps,$t),n!==null?(t.stateNode=n,ct=t,Ue=null,e=!0):e=!1),e||Vn(t)),null;case 13:return tm(e,t,n);case 4:return qe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=_a(t,null,l,n):ut(e,t,l,n),t.child;case 11:return Qh(e,t,t.type,t.pendingProps,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Qn(t,t.type,l.value),ut(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Ca(t),c=ot(c),l=l(c),t.flags|=1,ut(e,t,l,n),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,n);case 15:return Zh(e,t,t.type,t.pendingProps,n);case 19:return am(e,t,n);case 31:return Wb(e,t,n);case 22:return Ih(e,t,n,t.pendingProps);case 24:return Ca(t),l=ot(Pe),e===null?(c=io(),c===null&&(c=Re,d=no(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=n),c=d),t.memoizedState={parent:l,cache:c},lo(t),Qn(t,Pe,c)):((e.lanes&n)!==0&&(ro(e,t),xs(t,null,null,n),bs()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Qn(t,Pe,l)):(l=d.cache,Qn(t,Pe,l),l!==c.cache&&to(t,[Pe],n,!0))),ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function kn(e){e.flags|=4}function Go(e,t,n,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(_m())e.flags|=8192;else throw Oa=Rl,so}else e.flags&=-16777217}function sm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xp(t))if(_m())e.flags|=8192;else throw Oa=Rl,so}function Pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bf():536870912,e.lanes|=t,ji|=t)}function As(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function t0(e,t,n){var l=t.pendingProps;switch(Jc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Nn(Pe),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oi(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pc())),Be(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(kn(t),d!==null?(Be(t),sm(t,d)):(Be(t),Go(t,c,null,l,n))):d?d!==e.memoizedState?(kn(t),Be(t),sm(t,d)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&kn(t),Be(t),Go(t,c,e,l,n)),null;case 27:if(Rt(t),n=ae.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=z.current,oi(t)?Bd(t):(e=dp(c,l,n),t.stateNode=e,kn(t))}return Be(t),null;case 5:if(Rt(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(d=z.current,oi(t))Bd(t);else{var p=hr(ae.current);switch(d){case 1:d=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=p.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?p.createElement(c,{is:l.is}):p.createElement(c)}}d[rt]=t,d[vt]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)d.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=d;e:switch(ft(d,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&kn(t)}}return Be(t),Go(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ae.current,oi(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=ct,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||tp(e.nodeValue,n)),e||Vn(t,!0)}else e=hr(e).createTextNode(l),e[rt]=t,t.stateNode=e}return Be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=oi(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[rt]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else n=Pc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=oi(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[rt]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),c=!1}else c=Pc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pl(t,t.updateQueue),Be(t),null);case 4:return me(),e===null&&fu(t.stateNode.containerInfo),Be(t),null;case 10:return Nn(t.type),Be(t),null;case 19:if($(Xe),l=t.memoizedState,l===null)return Be(t),null;if(c=(t.flags&128)!==0,d=l.rendering,d===null)if(c)As(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=ql(e),d!==null){for(t.flags|=128,As(l,!1),e=d.updateQueue,t.updateQueue=e,Pl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Dd(n,e),n=n.sibling;return ee(Xe,Xe.current&1|2),Ae&&jn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ht()>ar&&(t.flags|=128,c=!0,As(l,!1),t.lanes=4194304)}else{if(!c)if(e=ql(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Pl(t,e),As(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!Ae)return Be(t),null}else 2*ht()-l.renderingStartTime>ar&&n!==536870912&&(t.flags|=128,c=!0,As(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ht(),e.sibling=null,n=Xe.current,ee(Xe,c?n&1|2:n&1),Ae&&jn(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Ot(t),fo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),n=t.updateQueue,n!==null&&Pl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&$(ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Nn(Pe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function n0(e,t){switch(Jc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(Pe),me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rt(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(r(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Xe),null;case 4:return me(),null;case 10:return Nn(t.type),null;case 22:case 23:return Ot(t),fo(),e!==null&&$(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nn(Pe),null;case 25:return null;default:return null}}function lm(e,t){switch(Jc(t),t.tag){case 3:Nn(Pe),me();break;case 26:case 27:case 5:Rt(t);break;case 4:me();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:$(Xe);break;case 10:Nn(t.type);break;case 22:case 23:Ot(t),fo(),e!==null&&$(ka);break;case 24:Nn(Pe)}}function Cs(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var d=n.create,p=n.inst;l=d(),p.destroy=l}n=n.next}while(n!==c)}}catch(v){_e(t,t.return,v)}}function Pn(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var p=l.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,c=t;var N=n,M=v;try{M()}catch(Y){_e(c,N,Y)}}}l=l.next}while(l!==d)}}catch(Y){_e(t,t.return,Y)}}function rm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Fd(t,n)}catch(l){_e(e,e.return,l)}}}function cm(e,t,n){n.props=Da(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_e(e,t,l)}}function ks(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){_e(e,t,c)}}function fn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){_e(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){_e(e,t,c)}else n.current=null}function om(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){_e(e,e.return,c)}}function $o(e,t,n){try{var l=e.stateNode;N0(l,e.type,n,t),l[vt]=t}catch(c){_e(e,e.return,c)}}function um(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function Vo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||um(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qo(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bn));else if(l!==4&&(l===27&&sa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qo(e,t,n),e=e.sibling;e!==null;)Qo(e,t,n),e=e.sibling}function Wl(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&sa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Wl(e,t,n),e=e.sibling;e!==null;)Wl(e,t,n),e=e.sibling}function fm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ft(t,l,n),t[rt]=e,t[vt]=n}catch(d){_e(e,e.return,d)}}var Tn=!1,tt=!1,Xo=!1,dm=typeof WeakSet=="function"?WeakSet:Set,lt=null;function a0(e,t){if(e=e.containerInfo,mu=xr,e=Nd(e),qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var p=0,v=-1,N=-1,M=0,Y=0,Q=e,L=null;t:for(;;){for(var q;Q!==n||c!==0&&Q.nodeType!==3||(v=p+c),Q!==d||l!==0&&Q.nodeType!==3||(N=p+l),Q.nodeType===3&&(p+=Q.nodeValue.length),(q=Q.firstChild)!==null;)L=Q,Q=q;for(;;){if(Q===e)break t;if(L===n&&++M===c&&(v=p),L===d&&++Y===l&&(N=p),(q=Q.nextSibling)!==null)break;Q=L,L=Q.parentNode}Q=q}n=v===-1||N===-1?null:{start:v,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(pu={focusedElem:e,selectionRange:n},xr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,n=t,c=d.memoizedProps,d=d.memoizedState,l=n.stateNode;try{var ie=Da(n.type,c);e=l.getSnapshotBeforeUpdate(ie,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(de){_e(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)vu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function hm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:_n(e,n),l&4&&Cs(5,n);break;case 1:if(_n(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){_e(n,n.return,p)}else{var c=Da(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){_e(n,n.return,p)}}l&64&&rm(n),l&512&&ks(n,n.return);break;case 3:if(_n(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Fd(e,t)}catch(p){_e(n,n.return,p)}}break;case 27:t===null&&l&4&&fm(n);case 26:case 5:_n(e,n),t===null&&l&4&&om(n),l&512&&ks(n,n.return);break;case 12:_n(e,n);break;case 31:_n(e,n),l&4&&gm(e,n);break;case 13:_n(e,n),l&4&&ym(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=d0.bind(null,n),z0(e,n))));break;case 22:if(l=n.memoizedState!==null||Tn,!l){t=t!==null&&t.memoizedState!==null||tt,c=Tn;var d=tt;Tn=l,(tt=t)&&!d?zn(e,n,(n.subtreeFlags&8772)!==0):_n(e,n),Tn=c,tt=d}break;case 30:break;default:_n(e,n)}}function mm(e){var t=e.alternate;t!==null&&(e.alternate=null,mm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,xt=!1;function On(e,t,n){for(n=n.child;n!==null;)pm(e,t,n),n=n.sibling}function pm(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Pi,n)}catch{}switch(n.tag){case 26:tt||fn(n,t),On(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||fn(n,t);var l=He,c=xt;sa(n.type)&&(He=n.stateNode,xt=!1),On(e,t,n),Us(n.stateNode),He=l,xt=c;break;case 5:tt||fn(n,t);case 6:if(l=He,c=xt,He=null,On(e,t,n),He=l,xt=c,He!==null)if(xt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(n.stateNode)}catch(d){_e(n,t,d)}else try{He.removeChild(n.stateNode)}catch(d){_e(n,t,d)}break;case 18:He!==null&&(xt?(e=He,rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Oi(e)):rp(He,n.stateNode));break;case 4:l=He,c=xt,He=n.stateNode.containerInfo,xt=!0,On(e,t,n),He=l,xt=c;break;case 0:case 11:case 14:case 15:Pn(2,n,t),tt||Pn(4,n,t),On(e,t,n);break;case 1:tt||(fn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&cm(n,t,l)),On(e,t,n);break;case 21:On(e,t,n);break;case 22:tt=(l=tt)||n.memoizedState!==null,On(e,t,n),tt=l;break;default:On(e,t,n)}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oi(e)}catch(n){_e(t,t.return,n)}}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(n){_e(t,t.return,n)}}function i0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dm),t;default:throw Error(r(435,e.tag))}}function er(e,t){var n=i0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=h0.bind(null,e,l);l.then(c,c)}})}function St(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],d=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(sa(v.type)){He=v.stateNode,xt=!1;break e}break;case 5:He=v.stateNode,xt=!1;break e;case 3:case 4:He=v.stateNode.containerInfo,xt=!0;break e}v=v.return}if(He===null)throw Error(r(160));pm(d,p,c),He=null,xt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vm(t,e),t=t.sibling}var nn=null;function vm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),jt(e),l&4&&(Pn(3,e,e.return),Cs(3,e),Pn(5,e,e.return));break;case 1:St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),l&64&&Tn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=nn;if(St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),l&4){var d=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[ts]||d[rt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),ft(d,l,n),d[rt]=e,st(d),l=d;break e;case"link":var p=vp("link","href",c).get(l+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(d=p[v],d.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&d.getAttribute("rel")===(n.rel==null?null:n.rel)&&d.getAttribute("title")===(n.title==null?null:n.title)&&d.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(v,1);break t}}d=c.createElement(l),ft(d,l,n),c.head.appendChild(d);break;case"meta":if(p=vp("meta","content",c).get(l+(n.content||""))){for(v=0;v<p.length;v++)if(d=p[v],d.getAttribute("content")===(n.content==null?null:""+n.content)&&d.getAttribute("name")===(n.name==null?null:n.name)&&d.getAttribute("property")===(n.property==null?null:n.property)&&d.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&d.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(v,1);break t}}d=c.createElement(l),ft(d,l,n),c.head.appendChild(d);break;default:throw Error(r(468,l))}d[rt]=e,st(d),l=d}e.stateNode=l}else bp(c,e.type,e.stateNode);else e.stateNode=yp(c,l,e.memoizedProps);else d!==l?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,l===null?bp(c,e.type,e.stateNode):yp(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&$o(e,e.memoizedProps,n.memoizedProps)}break;case 27:St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),n!==null&&l&4&&$o(e,e.memoizedProps,n.memoizedProps);break;case 5:if(St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),e.flags&32){c=e.stateNode;try{Wa(c,"")}catch(ie){_e(e,e.return,ie)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,$o(e,c,n!==null?n.memoizedProps:c)),l&1024&&(Xo=!0);break;case 6:if(St(t,e),jt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){_e(e,e.return,ie)}}break;case 3:if(gr=null,c=nn,nn=mr(t.containerInfo),St(t,e),nn=c,jt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Oi(t.containerInfo)}catch(ie){_e(e,e.return,ie)}Xo&&(Xo=!1,bm(e));break;case 4:l=nn,nn=mr(e.stateNode.containerInfo),St(t,e),jt(e),nn=l;break;case 12:St(t,e),jt(e);break;case 31:St(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,er(e,l)));break;case 13:St(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nr=ht()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,er(e,l)));break;case 22:c=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,M=Tn,Y=tt;if(Tn=M||c,tt=Y||N,St(t,e),tt=Y,Tn=M,jt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||N||Tn||tt||Ma(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(d=N.stateNode,c)p=d.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=N.stateNode;var Q=N.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ie){_e(N,N.return,ie)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=c?"":N.memoizedProps}catch(ie){_e(N,N.return,ie)}}}else if(t.tag===18){if(n===null){N=t;try{var q=N.stateNode;c?cp(q,!0):cp(N.stateNode,!1)}catch(ie){_e(N,N.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,er(e,n))));break;case 19:St(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,er(e,l)));break;case 30:break;case 21:break;default:St(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(um(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,d=Vo(e);Wl(e,d,c);break;case 5:var p=n.stateNode;n.flags&32&&(Wa(p,""),n.flags&=-33);var v=Vo(e);Wl(e,v,p);break;case 3:case 4:var N=n.stateNode.containerInfo,M=Vo(e);Qo(e,M,N);break;default:throw Error(r(161))}}catch(Y){_e(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hm(e,t.alternate,t),t=t.sibling}function Ma(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),Ma(t);break;case 1:fn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&cm(t,t.return,n),Ma(t);break;case 27:Us(t.stateNode);case 26:case 5:fn(t,t.return),Ma(t);break;case 22:t.memoizedState===null&&Ma(t);break;case 30:Ma(t);break;default:Ma(t)}e=e.sibling}}function zn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,p=d.flags;switch(d.tag){case 0:case 11:case 15:zn(c,d,n),Cs(4,d);break;case 1:if(zn(c,d,n),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(M){_e(l,l.return,M)}if(l=d,c=l.updateQueue,c!==null){var v=l.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)Jd(N[c],v)}catch(M){_e(l,l.return,M)}}n&&p&64&&rm(d),ks(d,d.return);break;case 27:fm(d);case 26:case 5:zn(c,d,n),n&&l===null&&p&4&&om(d),ks(d,d.return);break;case 12:zn(c,d,n);break;case 31:zn(c,d,n),n&&p&4&&gm(c,d);break;case 13:zn(c,d,n),n&&p&4&&ym(c,d);break;case 22:d.memoizedState===null&&zn(c,d,n),ks(d,d.return);break;case 30:break;default:zn(c,d,n)}t=t.sibling}}function Zo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ms(n))}function Io(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e))}function an(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(e,t,n,l),t=t.sibling}function xm(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:an(e,t,n,l),c&2048&&Cs(9,t);break;case 1:an(e,t,n,l);break;case 3:an(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e)));break;case 12:if(c&2048){an(e,t,n,l),e=t.stateNode;try{var d=t.memoizedProps,p=d.id,v=d.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){_e(t,t.return,N)}}else an(e,t,n,l);break;case 31:an(e,t,n,l);break;case 13:an(e,t,n,l);break;case 23:break;case 22:d=t.stateNode,p=t.alternate,t.memoizedState!==null?d._visibility&2?an(e,t,n,l):Ts(e,t):d._visibility&2?an(e,t,n,l):(d._visibility|=2,bi(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Zo(p,t);break;case 24:an(e,t,n,l),c&2048&&Io(t.alternate,t);break;default:an(e,t,n,l)}}function bi(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,p=t,v=n,N=l,M=p.flags;switch(p.tag){case 0:case 11:case 15:bi(d,p,v,N,c),Cs(8,p);break;case 23:break;case 22:var Y=p.stateNode;p.memoizedState!==null?Y._visibility&2?bi(d,p,v,N,c):Ts(d,p):(Y._visibility|=2,bi(d,p,v,N,c)),c&&M&2048&&Zo(p.alternate,p);break;case 24:bi(d,p,v,N,c),c&&M&2048&&Io(p.alternate,p);break;default:bi(d,p,v,N,c)}t=t.sibling}}function Ts(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:Ts(n,l),c&2048&&Zo(l.alternate,l);break;case 24:Ts(n,l),c&2048&&Io(l.alternate,l);break;default:Ts(n,l)}t=t.sibling}}var Os=8192;function xi(e,t,n){if(e.subtreeFlags&Os)for(e=e.child;e!==null;)Sm(e,t,n),e=e.sibling}function Sm(e,t,n){switch(e.tag){case 26:xi(e,t,n),e.flags&Os&&e.memoizedState!==null&&$0(n,nn,e.memoizedState,e.memoizedProps);break;case 5:xi(e,t,n);break;case 3:case 4:var l=nn;nn=mr(e.stateNode.containerInfo),xi(e,t,n),nn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Os,Os=16777216,xi(e,t,n),Os=l):xi(e,t,n));break;default:xi(e,t,n)}}function jm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _s(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,Nm(l,e)}jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wm(e),e=e.sibling}function wm(e){switch(e.tag){case 0:case 11:case 15:_s(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:_s(e);break;case 12:_s(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tr(e)):_s(e);break;default:_s(e)}}function tr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,Nm(l,e)}jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),tr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,tr(t));break;default:tr(t)}e=e.sibling}}function Nm(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Pn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ms(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,lt=l;else e:for(n=e;lt!==null;){l=lt;var c=l.sibling,d=l.return;if(mm(l),l===n){lt=null;break e}if(c!==null){c.return=d,lt=c;break e}lt=d}}}var s0={getCacheForType:function(e){var t=ot(Pe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Pe).controller.signal}},l0=typeof WeakMap=="function"?WeakMap:Map,Te=0,Re=null,je=null,Ne=0,Oe=0,_t=null,Wn=!1,Si=!1,Jo=!1,Dn=0,Ve=0,ea=0,Ra=0,Fo=0,zt=0,ji=0,zs=null,wt=null,Po=!1,nr=0,Em=0,ar=1/0,ir=null,ta=null,at=0,na=null,wi=null,Mn=0,Wo=0,eu=null,Am=null,Ds=0,tu=null;function Dt(){return(Te&2)!==0&&Ne!==0?Ne&-Ne:U.T!==null?ru():Yf()}function Cm(){if(zt===0)if((Ne&536870912)===0||Ae){var e=dl;dl<<=1,(dl&3932160)===0&&(dl=262144),zt=e}else zt=536870912;return e=Tt.current,e!==null&&(e.flags|=32),zt}function Nt(e,t,n){(e===Re&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Ni(e,0),aa(e,Ne,zt,!1)),es(e,n),((Te&2)===0||e!==Re)&&(e===Re&&((Te&2)===0&&(Ra|=n),Ve===4&&aa(e,Ne,zt,!1)),dn(e))}function km(e,t,n){if((Te&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Wi(e,t),c=l?o0(e,t):au(e,t,!0),d=l;do{if(c===0){Si&&!l&&aa(e,t,0,!1);break}else{if(n=e.current.alternate,d&&!r0(n)){c=au(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;c=zs;var N=v.current.memoizedState.isDehydrated;if(N&&(Ni(v,p).flags|=256),p=au(v,p,!1),p!==2){if(Jo&&!N){v.errorRecoveryDisabledLanes|=d,Ra|=d,c=4;break e}d=wt,wt=c,d!==null&&(wt===null?wt=d:wt.push.apply(wt,d))}c=p}if(d=!1,c!==2)continue}}if(c===1){Ni(e,0),aa(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:aa(l,t,zt,!Wn);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=nr+300-ht(),10<c)){if(aa(l,t,zt,!Wn),ml(l,0,!0)!==0)break e;Mn=t,l.timeoutHandle=sp(Tm.bind(null,l,n,wt,ir,Po,t,zt,Ra,ji,Wn,d,"Throttled",-0,0),c);break e}Tm(l,n,wt,ir,Po,t,zt,Ra,ji,Wn,d,null,-0,0)}}break}while(!0);dn(e)}function Tm(e,t,n,l,c,d,p,v,N,M,Y,Q,L,q){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},Sm(t,d,Q);var ie=(d&62914560)===d?nr-ht():(d&4194048)===d?Em-ht():0;if(ie=V0(Q,ie),ie!==null){Mn=d,e.cancelPendingCommit=ie(Um.bind(null,e,t,d,n,l,c,p,v,N,Y,Q,null,L,q)),aa(e,d,p,!M);return}}Um(e,t,d,n,l,c,p,v,N)}function r0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],d=c.getSnapshot;c=c.value;try{if(!Ct(d(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function aa(e,t,n,l){t&=~Fo,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-At(c),p=1<<d;l[d]=-1,c&=~p}n!==0&&qf(e,n,t)}function sr(){return(Te&6)===0?(Ms(0),!1):!0}function nu(){if(je!==null){if(Oe===0)var e=je.return;else e=je,wn=Aa=null,vo(e),mi=null,gs=0,e=je;for(;e!==null;)lm(e.alternate,e),e=e.return;je=null}}function Ni(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,C0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Mn=0,nu(),Re=e,je=n=Sn(e.current,null),Ne=t,Oe=0,_t=null,Wn=!1,Si=Wi(e,t),Jo=!1,ji=zt=Fo=Ra=ea=Ve=0,wt=zs=null,Po=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-At(l),d=1<<c;t|=e[c],l&=~d}return Dn=t,Al(),n}function Om(e,t){ye=null,U.H=Ns,t===hi||t===Ml?(t=Qd(),Oe=3):t===so?(t=Qd(),Oe=4):Oe=t===Mo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,je===null&&(Ve=1,Zl(e,Kt(t,e.current)))}function _m(){var e=Tt.current;return e===null?!0:(Ne&4194048)===Ne?Vt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Vt:!1}function zm(){var e=U.H;return U.H=Ns,e===null?Ns:e}function Dm(){var e=U.A;return U.A=s0,e}function lr(){Ve=4,Wn||(Ne&4194048)!==Ne&&Tt.current!==null||(Si=!0),(ea&134217727)===0&&(Ra&134217727)===0||Re===null||aa(Re,Ne,zt,!1)}function au(e,t,n){var l=Te;Te|=2;var c=zm(),d=Dm();(Re!==e||Ne!==t)&&(ir=null,Ni(e,t)),t=!1;var p=Ve;e:do try{if(Oe!==0&&je!==null){var v=je,N=_t;switch(Oe){case 8:nu(),p=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var M=Oe;if(Oe=0,_t=null,Ei(e,v,N,M),n&&Si){p=0;break e}break;default:M=Oe,Oe=0,_t=null,Ei(e,v,N,M)}}c0(),p=Ve;break}catch(Y){Om(e,Y)}while(!0);return t&&e.shellSuspendCounter++,wn=Aa=null,Te=l,U.H=c,U.A=d,je===null&&(Re=null,Ne=0,Al()),p}function c0(){for(;je!==null;)Mm(je)}function o0(e,t){var n=Te;Te|=2;var l=zm(),c=Dm();Re!==e||Ne!==t?(ir=null,ar=ht()+500,Ni(e,t)):Si=Wi(e,t);e:do try{if(Oe!==0&&je!==null){t=je;var d=_t;t:switch(Oe){case 1:Oe=0,_t=null,Ei(e,t,d,1);break;case 2:case 9:if($d(d)){Oe=0,_t=null,Rm(t);break}t=function(){Oe!==2&&Oe!==9||Re!==e||(Oe=7),dn(e)},d.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:$d(d)?(Oe=0,_t=null,Rm(t)):(Oe=0,_t=null,Ei(e,t,d,7));break;case 5:var p=null;switch(je.tag){case 26:p=je.memoizedState;case 5:case 27:var v=je;if(p?xp(p):v.stateNode.complete){Oe=0,_t=null;var N=v.sibling;if(N!==null)je=N;else{var M=v.return;M!==null?(je=M,rr(M)):je=null}break t}}Oe=0,_t=null,Ei(e,t,d,5);break;case 6:Oe=0,_t=null,Ei(e,t,d,6);break;case 8:nu(),Ve=6;break e;default:throw Error(r(462))}}u0();break}catch(Y){Om(e,Y)}while(!0);return wn=Aa=null,U.H=l,U.A=c,Te=n,je!==null?0:(Re=null,Ne=0,Al(),Ve)}function u0(){for(;je!==null&&!mc();)Mm(je)}function Mm(e){var t=im(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?rr(e):je=t}function Rm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ph(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Ph(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:vo(t);default:lm(n,t),t=je=Dd(t,Dn),t=im(n,t,Dn)}e.memoizedProps=e.pendingProps,t===null?rr(e):je=t}function Ei(e,t,n,l){wn=Aa=null,vo(t),mi=null,gs=0;var c=t.return;try{if(Pb(e,c,t,n,Ne)){Ve=1,Zl(e,Kt(n,e.current)),je=null;return}}catch(d){if(c!==null)throw je=c,d;Ve=1,Zl(e,Kt(n,e.current)),je=null;return}t.flags&32768?(Ae||l===1?e=!0:Si||(Ne&536870912)!==0?e=!1:(Wn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lm(t,e)):rr(t)}function rr(e){var t=e;do{if((t.flags&32768)!==0){Lm(t,Wn);return}e=t.return;var n=t0(t.alternate,t,Dn);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Ve===0&&(Ve=5)}function Lm(e,t){do{var n=n0(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);Ve=6,je=null}function Um(e,t,n,l,c,d,p,v,N){e.cancelPendingCommit=null;do cr();while(at!==0);if((Te&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=$c,Gv(e,n,d,p,v,N),e===Re&&(je=Re=null,Ne=0),wi=t,na=e,Mn=n,Wo=d,eu=c,Am=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,m0(Ut,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,c=J.p,J.p=2,p=Te,Te|=4;try{a0(e,t,n)}finally{Te=p,J.p=c,U.T=l}}at=1,Bm(),qm(),Hm()}}function Bm(){if(at===1){at=0;var e=na,t=wi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=J.p;J.p=2;var c=Te;Te|=4;try{vm(t,e);var d=pu,p=Nd(e.containerInfo),v=d.focusedElem,N=d.selectionRange;if(p!==v&&v&&v.ownerDocument&&wd(v.ownerDocument.documentElement,v)){if(N!==null&&qc(v)){var M=N.start,Y=N.end;if(Y===void 0&&(Y=M),"selectionStart"in v)v.selectionStart=M,v.selectionEnd=Math.min(Y,v.value.length);else{var Q=v.ownerDocument||document,L=Q&&Q.defaultView||window;if(L.getSelection){var q=L.getSelection(),ie=v.textContent.length,de=Math.min(N.start,ie),Me=N.end===void 0?de:Math.min(N.end,ie);!q.extend&&de>Me&&(p=Me,Me=de,de=p);var T=jd(v,de),C=jd(v,Me);if(T&&C&&(q.rangeCount!==1||q.anchorNode!==T.node||q.anchorOffset!==T.offset||q.focusNode!==C.node||q.focusOffset!==C.offset)){var D=Q.createRange();D.setStart(T.node,T.offset),q.removeAllRanges(),de>Me?(q.addRange(D),q.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),q.addRange(D))}}}}for(Q=[],q=v;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var V=Q[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}xr=!!mu,pu=mu=null}finally{Te=c,J.p=l,U.T=n}}e.current=t,at=2}}function qm(){if(at===2){at=0;var e=na,t=wi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=J.p;J.p=2;var c=Te;Te|=4;try{hm(e,t.alternate,t)}finally{Te=c,J.p=l,U.T=n}}at=3}}function Hm(){if(at===4||at===3){at=0,pc();var e=na,t=wi,n=Mn,l=Am;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,wi=na=null,Km(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ta=null),xc(n),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Pi,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,c=J.p,J.p=2,U.T=null;try{for(var d=e.onRecoverableError,p=0;p<l.length;p++){var v=l[p];d(v.value,{componentStack:v.stack})}}finally{U.T=t,J.p=c}}(Mn&3)!==0&&cr(),dn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===tu?Ds++:(Ds=0,tu=e):Ds=0,Ms(0)}}function Km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ms(t)))}function cr(){return Bm(),qm(),Hm(),Ym()}function Ym(){if(at!==5)return!1;var e=na,t=Wo;Wo=0;var n=xc(Mn),l=U.T,c=J.p;try{J.p=32>n?32:n,U.T=null,n=eu,eu=null;var d=na,p=Mn;if(at=0,wi=na=null,Mn=0,(Te&6)!==0)throw Error(r(331));var v=Te;if(Te|=4,wm(d.current),xm(d,d.current,p,n),Te=v,Ms(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Pi,d)}catch{}return!0}finally{J.p=c,U.T=l,Km(e,t)}}function Gm(e,t,n){t=Kt(n,t),t=Do(e.stateNode,t,2),e=In(e,t,2),e!==null&&(es(e,2),dn(e))}function _e(e,t,n){if(e.tag===3)Gm(e,e,n);else for(;t!==null;){if(t.tag===3){Gm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ta===null||!ta.has(l))){e=Kt(n,e),n=$h(2),l=In(t,n,2),l!==null&&(Vh(n,l,t,e),es(l,2),dn(l));break}}t=t.return}}function iu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new l0;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(Jo=!0,c.add(n),e=f0.bind(null,e,t,n),t.then(e,e))}function f0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Re===e&&(Ne&n)===n&&(Ve===4||Ve===3&&(Ne&62914560)===Ne&&300>ht()-nr?(Te&2)===0&&Ni(e,0):Fo|=n,ji===Ne&&(ji=0)),dn(e)}function $m(e,t){t===0&&(t=Bf()),e=wa(e,t),e!==null&&(es(e,t),dn(e))}function d0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$m(e,n)}function h0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),$m(e,n)}function m0(e,t){return Lt(e,t)}var or=null,Ai=null,su=!1,ur=!1,lu=!1,ia=0;function dn(e){e!==Ai&&e.next===null&&(Ai===null?or=Ai=e:Ai=Ai.next=e),ur=!0,su||(su=!0,g0())}function Ms(e,t){if(!lu&&ur){lu=!0;do for(var n=!1,l=or;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var p=l.suspendedLanes,v=l.pingedLanes;d=(1<<31-At(42|e)+1)-1,d&=c&~(p&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Zm(l,d))}else d=Ne,d=ml(l,l===Re?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Wi(l,d)||(n=!0,Zm(l,d));l=l.next}while(n);lu=!1}}function p0(){Vm()}function Vm(){ur=su=!1;var e=0;ia!==0&&A0()&&(e=ia);for(var t=ht(),n=null,l=or;l!==null;){var c=l.next,d=Qm(l,t);d===0?(l.next=null,n===null?or=c:n.next=c,c===null&&(Ai=n)):(n=l,(e!==0||(d&3)!==0)&&(ur=!0)),l=c}at!==0&&at!==5||Ms(e),ia!==0&&(ia=0)}function Qm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var p=31-At(d),v=1<<p,N=c[p];N===-1?((v&n)===0||(v&l)!==0)&&(c[p]=Yv(v,t)):N<=t&&(e.expiredLanes|=v),d&=~v}if(t=Re,n=Ne,n=ml(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&gn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Wi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&gn(l),xc(n)){case 2:case 8:n=ul;break;case 32:n=Ut;break;case 268435456:n=te;break;default:n=Ut}return l=Xm.bind(null,e),n=Lt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&gn(l),e.callbackPriority=2,e.callbackNode=null,2}function Xm(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cr()&&e.callbackNode!==n)return null;var l=Ne;return l=ml(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(km(e,l,t),Qm(e,ht()),e.callbackNode!=null&&e.callbackNode===n?Xm.bind(null,e):null)}function Zm(e,t){if(cr())return null;km(e,t,!0)}function g0(){k0(function(){(Te&6)!==0?Lt(ol,p0):Vm()})}function ru(){if(ia===0){var e=fi;e===0&&(e=fl,fl<<=1,(fl&261888)===0&&(fl=256)),ia=e}return ia}function Im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vl(""+e)}function Jm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function y0(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var d=Im((c[vt]||null).action),p=l.submitter;p&&(t=(t=p[vt]||null)?Im(t.formAction):p.getAttribute("formAction"),t!==null&&(d=t,p=null));var v=new jl("action","action",null,l,c);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ia!==0){var N=p?Jm(c,p):new FormData(c);Co(n,{pending:!0,data:N,method:c.method,action:d},null,N)}}else typeof d=="function"&&(v.preventDefault(),N=p?Jm(c,p):new FormData(c),Co(n,{pending:!0,data:N,method:c.method,action:d},d,N))},currentTarget:c}]})}}for(var cu=0;cu<Gc.length;cu++){var ou=Gc[cu],v0=ou.toLowerCase(),b0=ou[0].toUpperCase()+ou.slice(1);tn(v0,"on"+b0)}tn(Cd,"onAnimationEnd"),tn(kd,"onAnimationIteration"),tn(Td,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(Rb,"onTransitionRun"),tn(Lb,"onTransitionStart"),tn(Ub,"onTransitionCancel"),tn(Od,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rs="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(" "),x0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rs));function Fm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var p=l.length-1;0<=p;p--){var v=l[p],N=v.instance,M=v.currentTarget;if(v=v.listener,N!==d&&c.isPropagationStopped())break e;d=v,c.currentTarget=M;try{d(c)}catch(Y){El(Y)}c.currentTarget=null,d=N}else for(p=0;p<l.length;p++){if(v=l[p],N=v.instance,M=v.currentTarget,v=v.listener,N!==d&&c.isPropagationStopped())break e;d=v,c.currentTarget=M;try{d(c)}catch(Y){El(Y)}c.currentTarget=null,d=N}}}}function we(e,t){var n=t[Sc];n===void 0&&(n=t[Sc]=new Set);var l=e+"__bubble";n.has(l)||(Pm(t,e,2,!1),n.add(l))}function uu(e,t,n){var l=0;t&&(l|=4),Pm(n,e,l,t)}var fr="_reactListening"+Math.random().toString(36).slice(2);function fu(e){if(!e[fr]){e[fr]=!0,Vf.forEach(function(n){n!=="selectionchange"&&(x0.has(n)||uu(n,!1,e),uu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fr]||(t[fr]=!0,uu("selectionchange",!1,t))}}function Pm(e,t,n,l){switch(Cp(t)){case 2:var c=Z0;break;case 8:c=I0;break;default:c=Au}n=c.bind(null,t,n,e),c=void 0,!Oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function du(e,t,n,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var v=l.stateNode.containerInfo;if(v===c)break;if(p===4)for(p=l.return;p!==null;){var N=p.tag;if((N===3||N===4)&&p.stateNode.containerInfo===c)return;p=p.return}for(;v!==null;){if(p=Za(v),p===null)return;if(N=p.tag,N===5||N===6||N===26||N===27){l=d=p;continue e}v=v.parentNode}}l=l.return}ad(function(){var M=d,Y=kc(n),Q=[];e:{var L=_d.get(e);if(L!==void 0){var q=jl,ie=e;switch(e){case"keypress":if(xl(n)===0)break e;case"keydown":case"keyup":q=hb;break;case"focusin":ie="focus",q=Mc;break;case"focusout":ie="blur",q=Mc;break;case"beforeblur":case"afterblur":q=Mc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=tb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=gb;break;case Cd:case kd:case Td:q=ib;break;case Od:q=vb;break;case"scroll":case"scrollend":q=Wv;break;case"wheel":q=xb;break;case"copy":case"cut":case"paste":q=lb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=cd;break;case"toggle":case"beforetoggle":q=jb}var de=(t&4)!==0,Me=!de&&(e==="scroll"||e==="scrollend"),T=de?L!==null?L+"Capture":null:L;de=[];for(var C=M,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||T===null||(V=as(C,T),V!=null&&de.push(Ls(C,V,D))),Me)break;C=C.return}0<de.length&&(L=new q(L,ie,null,n,Y),Q.push({event:L,listeners:de}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",L&&n!==Cc&&(ie=n.relatedTarget||n.fromElement)&&(Za(ie)||ie[Xa]))break e;if((q||L)&&(L=Y.window===Y?Y:(L=Y.ownerDocument)?L.defaultView||L.parentWindow:window,q?(ie=n.relatedTarget||n.toElement,q=M,ie=ie?Za(ie):null,ie!==null&&(Me=f(ie),de=ie.tag,ie!==Me||de!==5&&de!==27&&de!==6)&&(ie=null)):(q=null,ie=M),q!==ie)){if(de=ld,V="onMouseLeave",T="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(de=cd,V="onPointerLeave",T="onPointerEnter",C="pointer"),Me=q==null?L:ns(q),D=ie==null?L:ns(ie),L=new de(V,C+"leave",q,n,Y),L.target=Me,L.relatedTarget=D,V=null,Za(Y)===M&&(de=new de(T,C+"enter",ie,n,Y),de.target=D,de.relatedTarget=Me,V=de),Me=V,q&&ie)t:{for(de=S0,T=q,C=ie,D=0,V=T;V;V=de(V))D++;V=0;for(var ue=C;ue;ue=de(ue))V++;for(;0<D-V;)T=de(T),D--;for(;0<V-D;)C=de(C),V--;for(;D--;){if(T===C||C!==null&&T===C.alternate){de=T;break t}T=de(T),C=de(C)}de=null}else de=null;q!==null&&Wm(Q,L,q,de,!1),ie!==null&&Me!==null&&Wm(Q,Me,ie,de,!0)}}e:{if(L=M?ns(M):window,q=L.nodeName&&L.nodeName.toLowerCase(),q==="select"||q==="input"&&L.type==="file")var Ce=gd;else if(md(L))if(yd)Ce=zb;else{Ce=Ob;var ce=Tb}else q=L.nodeName,!q||q.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?M&&Ac(M.elementType)&&(Ce=gd):Ce=_b;if(Ce&&(Ce=Ce(e,M))){pd(Q,Ce,n,Y);break e}ce&&ce(e,L,M),e==="focusout"&&M&&L.type==="number"&&M.memoizedProps.value!=null&&Ec(L,"number",L.value)}switch(ce=M?ns(M):window,e){case"focusin":(md(ce)||ce.contentEditable==="true")&&(ai=ce,Hc=M,fs=null);break;case"focusout":fs=Hc=ai=null;break;case"mousedown":Kc=!0;break;case"contextmenu":case"mouseup":case"dragend":Kc=!1,Ed(Q,n,Y);break;case"selectionchange":if(Mb)break;case"keydown":case"keyup":Ed(Q,n,Y)}var be;if(Lc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ni?dd(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(od&&n.locale!=="ko"&&(ni||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ni&&(be=id()):(Yn=Y,_c="value"in Yn?Yn.value:Yn.textContent,ni=!0)),ce=dr(M,Ee),0<ce.length&&(Ee=new rd(Ee,e,null,n,Y),Q.push({event:Ee,listeners:ce}),be?Ee.data=be:(be=hd(n),be!==null&&(Ee.data=be)))),(be=Nb?Eb(e,n):Ab(e,n))&&(Ee=dr(M,"onBeforeInput"),0<Ee.length&&(ce=new rd("onBeforeInput","beforeinput",null,n,Y),Q.push({event:ce,listeners:Ee}),ce.data=be)),y0(Q,e,M,n,Y)}Fm(Q,t)})}function Ls(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dr(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=as(e,n),c!=null&&l.unshift(Ls(e,c,d)),c=as(e,t),c!=null&&l.push(Ls(e,c,d))),e.tag===3)return l;e=e.return}return[]}function S0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wm(e,t,n,l,c){for(var d=t._reactName,p=[];n!==null&&n!==l;){var v=n,N=v.alternate,M=v.stateNode;if(v=v.tag,N!==null&&N===l)break;v!==5&&v!==26&&v!==27||M===null||(N=M,c?(M=as(n,d),M!=null&&p.unshift(Ls(n,M,N))):c||(M=as(n,d),M!=null&&p.push(Ls(n,M,N)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var j0=/\r\n?/g,w0=/\u0000|\uFFFD/g;function ep(e){return(typeof e=="string"?e:""+e).replace(j0,`
9
+ `).replace(w0,"")}function tp(e,t){return t=ep(t),ep(e)===t}function De(e,t,n,l,c,d){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Wa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Wa(e,""+l);break;case"className":gl(e,"class",l);break;case"tabIndex":gl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":gl(e,n,l);break;case"style":td(e,l,d);break;case"data":if(t!=="object"){gl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=vl(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",c.name,c,null),De(e,t,"formEncType",c.formEncType,c,null),De(e,t,"formMethod",c.formMethod,c,null),De(e,t,"formTarget",c.formTarget,c,null)):(De(e,t,"encType",c.encType,c,null),De(e,t,"method",c.method,c,null),De(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=vl(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=bn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=vl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":we("beforetoggle",e),we("toggle",e),pl(e,"popover",l);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":pl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Fv.get(n)||n,pl(e,n,l))}}function hu(e,t,n,l,c,d){switch(n){case"style":td(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Wa(e,l):(typeof l=="number"||typeof l=="bigint")&&Wa(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),d=e[vt]||null,d=d!=null?d[n]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):pl(e,n,l)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,c=!1,d;for(d in n)if(n.hasOwnProperty(d)){var p=n[d];if(p!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,d,p,n,null)}}c&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var v=d=p=c=null,N=null,M=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":c=Y;break;case"type":p=Y;break;case"checked":N=Y;break;case"defaultChecked":M=Y;break;case"value":d=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,t));break;default:De(e,t,l,Y,n,null)}}Ff(e,d,v,N,M,p,c,!1);return;case"select":we("invalid",e),l=p=d=null;for(c in n)if(n.hasOwnProperty(c)&&(v=n[c],v!=null))switch(c){case"value":d=v;break;case"defaultValue":p=v;break;case"multiple":l=v;default:De(e,t,c,v,n,null)}t=d,n=p,e.multiple=!!l,t!=null?Pa(e,!!l,t,!1):n!=null&&Pa(e,!!l,n,!0);return;case"textarea":we("invalid",e),d=c=l=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":l=v;break;case"defaultValue":c=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:De(e,t,p,v,n,null)}Wf(e,l,c,d);return;case"option":for(N in n)n.hasOwnProperty(N)&&(l=n[N],l!=null)&&(N==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":De(e,t,N,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<Rs.length;l++)we(Rs[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(l=n[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,M,l,n,null)}return;default:if(Ac(t)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&hu(e,t,Y,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&De(e,t,v,l,n,null))}function N0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,p=null,v=null,N=null,M=null,Y=null;for(q in n){var Q=n[q];if(n.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=Q;default:l.hasOwnProperty(q)||De(e,t,q,null,l,Q)}}for(var L in l){var q=l[L];if(Q=n[L],l.hasOwnProperty(L)&&(q!=null||Q!=null))switch(L){case"type":d=q;break;case"name":c=q;break;case"checked":M=q;break;case"defaultChecked":Y=q;break;case"value":p=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==Q&&De(e,t,L,q,l,Q)}}Nc(e,p,v,N,M,Y,d,c);return;case"select":q=p=v=L=null;for(d in n)if(N=n[d],n.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":q=N;default:l.hasOwnProperty(d)||De(e,t,d,null,l,N)}for(c in l)if(d=l[c],N=n[c],l.hasOwnProperty(c)&&(d!=null||N!=null))switch(c){case"value":L=d;break;case"defaultValue":v=d;break;case"multiple":p=d;default:d!==N&&De(e,t,c,d,l,N)}t=v,n=p,l=q,L!=null?Pa(e,!!n,L,!1):!!l!=!!n&&(t!=null?Pa(e,!!n,t,!0):Pa(e,!!n,n?[]:"",!1));return;case"textarea":q=L=null;for(v in n)if(c=n[v],n.hasOwnProperty(v)&&c!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:De(e,t,v,null,l,c)}for(p in l)if(c=l[p],d=n[p],l.hasOwnProperty(p)&&(c!=null||d!=null))switch(p){case"value":L=c;break;case"defaultValue":q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==d&&De(e,t,p,c,l,d)}Pf(e,L,q);return;case"option":for(var ie in n)L=n[ie],n.hasOwnProperty(ie)&&L!=null&&!l.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:De(e,t,ie,null,l,L));for(N in l)L=l[N],q=n[N],l.hasOwnProperty(N)&&L!==q&&(L!=null||q!=null)&&(N==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":De(e,t,N,L,l,q));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 de in n)L=n[de],n.hasOwnProperty(de)&&L!=null&&!l.hasOwnProperty(de)&&De(e,t,de,null,l,L);for(M in l)if(L=l[M],q=n[M],l.hasOwnProperty(M)&&L!==q&&(L!=null||q!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:De(e,t,M,L,l,q)}return;default:if(Ac(t)){for(var Me in n)L=n[Me],n.hasOwnProperty(Me)&&L!==void 0&&!l.hasOwnProperty(Me)&&hu(e,t,Me,void 0,l,L);for(Y in l)L=l[Y],q=n[Y],!l.hasOwnProperty(Y)||L===q||L===void 0&&q===void 0||hu(e,t,Y,L,l,q);return}}for(var T in n)L=n[T],n.hasOwnProperty(T)&&L!=null&&!l.hasOwnProperty(T)&&De(e,t,T,null,l,L);for(Q in l)L=l[Q],q=n[Q],!l.hasOwnProperty(Q)||L===q||L==null&&q==null||De(e,t,Q,L,l,q)}function np(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],d=c.transferSize,p=c.initiatorType,v=c.duration;if(d&&v&&np(p)){for(p=0,v=c.responseEnd,l+=1;l<n.length;l++){var N=n[l],M=N.startTime;if(M>v)break;var Y=N.transferSize,Q=N.initiatorType;Y&&np(Q)&&(N=N.responseEnd,p+=Y*(N<v?1:(v-M)/(N-M)))}if(--l,t+=8*(d+p)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mu=null,pu=null;function hr(e){return e.nodeType===9?e:e.ownerDocument}function ap(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ip(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yu=null;function A0(){var e=window.event;return e&&e.type==="popstate"?e===yu?!1:(yu=e,!0):(yu=null,!1)}var sp=typeof setTimeout=="function"?setTimeout:void 0,C0=typeof clearTimeout=="function"?clearTimeout:void 0,lp=typeof Promise=="function"?Promise:void 0,k0=typeof queueMicrotask=="function"?queueMicrotask:typeof lp<"u"?function(e){return lp.resolve(null).then(e).catch(T0)}:sp;function T0(e){setTimeout(function(){throw e})}function sa(e){return e==="head"}function rp(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),Oi(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Us(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Us(n);for(var d=n.firstChild;d;){var p=d.nextSibling,v=d.nodeName;d[ts]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||n.removeChild(d),d=p}}else n==="body"&&Us(e.ownerDocument.body);n=c}while(n);Oi(t)}function cp(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function vu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vu(n),jc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function O0(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ts])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function _0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qt(e.nextSibling),e===null))return null;return e}function op(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function bu(e){return e.data==="$?"||e.data==="$~"}function xu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function z0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Su=null;function up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function fp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function dp(e,t,n){switch(t=hr(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Us(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jc(e)}var Xt=new Map,hp=new Set;function mr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rn=J.d;J.d={f:D0,r:M0,D:R0,C:L0,L:U0,m:B0,X:H0,S:q0,M:K0};function D0(){var e=Rn.f(),t=sr();return e||t}function M0(e){var t=Ia(e);t!==null&&t.tag===5&&t.type==="form"?Oh(t):Rn.r(e)}var Ci=typeof document>"u"?null:document;function mp(e,t,n){var l=Ci;if(l&&typeof t=="string"&&t){var c=qt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),hp.has(c)||(hp.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),ft(t,"link",e),st(t),l.head.appendChild(t)))}}function R0(e){Rn.D(e),mp("dns-prefetch",e,null)}function L0(e,t){Rn.C(e,t),mp("preconnect",e,t)}function U0(e,t,n){Rn.L(e,t,n);var l=Ci;if(l&&e&&t){var c='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+qt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+qt(n.imageSizes)+'"]')):c+='[href="'+qt(e)+'"]';var d=c;switch(t){case"style":d=ki(e);break;case"script":d=Ti(e)}Xt.has(d)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Xt.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Bs(d))||t==="script"&&l.querySelector(qs(d))||(t=l.createElement("link"),ft(t,"link",e),st(t),l.head.appendChild(t)))}}function B0(e,t){Rn.m(e,t);var n=Ci;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+qt(l)+'"][href="'+qt(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ti(e)}if(!Xt.has(d)&&(e=b({rel:"modulepreload",href:e},t),Xt.set(d,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(qs(d)))return}l=n.createElement("link"),ft(l,"link",e),st(l),n.head.appendChild(l)}}}function q0(e,t,n){Rn.S(e,t,n);var l=Ci;if(l&&e){var c=Ja(l).hoistableStyles,d=ki(e);t=t||"default";var p=c.get(d);if(!p){var v={loading:0,preload:null};if(p=l.querySelector(Bs(d)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Xt.get(d))&&ju(e,n);var N=p=l.createElement("link");st(N),ft(N,"link",e),N._p=new Promise(function(M,Y){N.onload=M,N.onerror=Y}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,pr(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:v},c.set(d,p)}}}function H0(e,t){Rn.X(e,t);var n=Ci;if(n&&e){var l=Ja(n).hoistableScripts,c=Ti(e),d=l.get(c);d||(d=n.querySelector(qs(c)),d||(e=b({src:e,async:!0},t),(t=Xt.get(c))&&wu(e,t),d=n.createElement("script"),st(d),ft(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function K0(e,t){Rn.M(e,t);var n=Ci;if(n&&e){var l=Ja(n).hoistableScripts,c=Ti(e),d=l.get(c);d||(d=n.querySelector(qs(c)),d||(e=b({src:e,async:!0,type:"module"},t),(t=Xt.get(c))&&wu(e,t),d=n.createElement("script"),st(d),ft(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function pp(e,t,n,l){var c=(c=ae.current)?mr(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ki(n.href),n=Ja(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ki(n.href);var d=Ja(c).hoistableStyles,p=d.get(e);if(p||(c=c.ownerDocument||c,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,p),(d=c.querySelector(Bs(e)))&&!d._p&&(p.instance=d,p.state.loading=5),Xt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Xt.set(e,n),d||Y0(c,e,n,p.state))),t&&l===null)throw Error(r(528,""));return p}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ti(n),n=Ja(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ki(e){return'href="'+qt(e)+'"'}function Bs(e){return'link[rel="stylesheet"]['+e+"]"}function gp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Y0(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ft(t,"link",n),st(t),e.head.appendChild(t))}function Ti(e){return'[src="'+qt(e)+'"]'}function qs(e){return"script[async]"+e}function yp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+qt(n.href)+'"]');if(l)return t.instance=l,st(l),l;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),ft(l,"style",c),pr(l,n.precedence,e),t.instance=l;case"stylesheet":c=ki(n.href);var d=e.querySelector(Bs(c));if(d)return t.state.loading|=4,t.instance=d,st(d),d;l=gp(n),(c=Xt.get(c))&&ju(l,c),d=(e.ownerDocument||e).createElement("link"),st(d);var p=d;return p._p=new Promise(function(v,N){p.onload=v,p.onerror=N}),ft(d,"link",l),t.state.loading|=4,pr(d,n.precedence,e),t.instance=d;case"script":return d=Ti(n.src),(c=e.querySelector(qs(d)))?(t.instance=c,st(c),c):(l=n,(c=Xt.get(d))&&(l=b({},n),wu(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),st(c),ft(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,pr(l,n.precedence,e));return t.instance}function pr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,p=0;p<l.length;p++){var v=l[p];if(v.dataset.precedence===t)d=v;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function wu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gr=null;function vp(e,t,n){if(gr===null){var l=new Map,c=gr=new Map;c.set(n,l)}else c=gr,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var d=n[c];if(!(d[ts]||d[rt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var p=d.getAttribute(t)||"";p=e+p;var v=l.get(p);v?v.push(d):l.set(p,[d])}}return l}function bp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function G0(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function xp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $0(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ki(l.href),d=t.querySelector(Bs(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=d,st(d);return}d=t.ownerDocument||t,l=gp(l),(c=Xt.get(c))&&ju(l,c),d=d.createElement("link"),st(d);var p=d;p._p=new Promise(function(v,N){p.onload=v,p.onerror=N}),ft(d,"link",l),n.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Nu=0;function V0(e,t){return e.stylesheets&&e.count===0&&br(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&br(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Nu===0&&(Nu=62500*E0());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&br(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Nu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)br(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vr=null;function br(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vr=new Map,t.forEach(Q0,e),vr=null,yr.call(e))}function Q0(e,t){if(!(t.state.loading&4)){var n=vr.get(e);if(n)var l=n.get(null);else{n=new Map,vr.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var p=c[d];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}c=t.instance,p=c.getAttribute("data-precedence"),d=n.get(p)||l,d===l&&n.set(null,c),n.set(p,c),this.count++,l=yr.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Hs={$$typeof:R,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function X0(e,t,n,l,c,d,p,v,N){this.tag=1,this.containerInfo=e,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=vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.hiddenUpdates=vc(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Sp(e,t,n,l,c,d,p,v,N,M,Y,Q){return e=new X0(e,t,n,p,N,M,Y,Q,v),t=1,d===!0&&(t|=24),d=kt(3,null,null,t),e.current=d,d.stateNode=e,t=no(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:n,cache:t},lo(d),e}function jp(e){return e?(e=li,e):li}function wp(e,t,n,l,c,d){c=jp(c),l.context===null?l.context=c:l.pendingContext=c,l=Zn(t),l.payload={element:n},d=d===void 0?null:d,d!==null&&(l.callback=d),n=In(e,l,t),n!==null&&(Nt(n,e,t),vs(n,e,t))}function Np(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Eu(e,t){Np(e,t),(e=e.alternate)&&Np(e,t)}function Ep(e){if(e.tag===13||e.tag===31){var t=wa(e,67108864);t!==null&&Nt(t,e,67108864),Eu(e,67108864)}}function Ap(e){if(e.tag===13||e.tag===31){var t=Dt();t=bc(t);var n=wa(e,t);n!==null&&Nt(n,e,t),Eu(e,t)}}var xr=!0;function Z0(e,t,n,l){var c=U.T;U.T=null;var d=J.p;try{J.p=2,Au(e,t,n,l)}finally{J.p=d,U.T=c}}function I0(e,t,n,l){var c=U.T;U.T=null;var d=J.p;try{J.p=8,Au(e,t,n,l)}finally{J.p=d,U.T=c}}function Au(e,t,n,l){if(xr){var c=Cu(l);if(c===null)du(e,t,l,Sr,n),kp(e,l);else if(F0(c,e,t,n,l))l.stopPropagation();else if(kp(e,l),t&4&&-1<J0.indexOf(e)){for(;c!==null;){var d=Ia(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var p=va(d.pendingLanes);if(p!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var N=1<<31-At(p);v.entanglements[1]|=N,p&=~N}dn(d),(Te&6)===0&&(ar=ht()+500,Ms(0))}}break;case 31:case 13:v=wa(d,2),v!==null&&Nt(v,d,2),sr(),Eu(d,2)}if(d=Cu(l),d===null&&du(e,t,l,Sr,n),d===c)break;c=d}c!==null&&l.stopPropagation()}else du(e,t,l,null,n)}}function Cu(e){return e=kc(e),ku(e)}var Sr=null;function ku(e){if(Sr=null,e=Za(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sr=e,null}function Cp(e){switch(e){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(gc()){case ol:return 2;case ul:return 8;case Ut:case yc:return 32;case te:return 268435456;default:return 32}default:return 32}}var Tu=!1,la=null,ra=null,ca=null,Ks=new Map,Ys=new Map,oa=[],J0="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 kp(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ca=null;break;case"pointerover":case"pointerout":Ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ys.delete(t.pointerId)}}function Gs(e,t,n,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Ia(t),t!==null&&Ep(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function F0(e,t,n,l,c){switch(t){case"focusin":return la=Gs(la,e,t,n,l,c),!0;case"dragenter":return ra=Gs(ra,e,t,n,l,c),!0;case"mouseover":return ca=Gs(ca,e,t,n,l,c),!0;case"pointerover":var d=c.pointerId;return Ks.set(d,Gs(Ks.get(d)||null,e,t,n,l,c)),!0;case"gotpointercapture":return d=c.pointerId,Ys.set(d,Gs(Ys.get(d)||null,e,t,n,l,c)),!0}return!1}function Tp(e){var t=Za(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Gf(e.priority,function(){Ap(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Gf(e.priority,function(){Ap(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Cc=l,n.target.dispatchEvent(l),Cc=null}else return t=Ia(n),t!==null&&Ep(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){jr(e)&&n.delete(t)}function P0(){Tu=!1,la!==null&&jr(la)&&(la=null),ra!==null&&jr(ra)&&(ra=null),ca!==null&&jr(ca)&&(ca=null),Ks.forEach(Op),Ys.forEach(Op)}function wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Tu||(Tu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,P0)))}var Nr=null;function _p(e){Nr!==e&&(Nr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Nr===e&&(Nr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(ku(l||n)===null)continue;break}var d=Ia(n);d!==null&&(e.splice(t,3),t-=3,Co(d,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function Oi(e){function t(N){return wr(N,e)}la!==null&&wr(la,e),ra!==null&&wr(ra,e),ca!==null&&wr(ca,e),Ks.forEach(t),Ys.forEach(t);for(var n=0;n<oa.length;n++){var l=oa[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<oa.length&&(n=oa[0],n.blockedOn===null);)Tp(n),n.blockedOn===null&&oa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],d=n[l+1],p=c[vt]||null;if(typeof d=="function")p||_p(n);else if(p){var v=null;if(d&&d.hasAttribute("formAction")){if(c=d,p=d[vt]||null)v=p.formAction;else if(ku(c)!==null)continue}else v=p.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),_p(n)}}}function zp(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(p){return c=p})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Ou(e){this._internalRoot=e}Er.prototype.render=Ou.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Dt();wp(n,l,e,t,null,null)},Er.prototype.unmount=Ou.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wp(e.current,2,null,e,null,null),sr(),t[Xa]=null}};function Er(e){this._internalRoot=e}Er.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<oa.length&&t!==0&&t<oa[n].priority;n++);oa.splice(n,0,e),n===0&&Tp(e)}};var Dp=i.version;if(Dp!=="19.2.4")throw Error(r(527,Dp,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var W0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ar.isDisabled&&Ar.supportsFiber)try{Pi=Ar.inject(W0),Et=Ar}catch{}}return Vs.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,l="",c=Hh,d=Kh,p=Yh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Sp(e,1,!1,null,null,n,l,null,c,d,p,zp),e[Xa]=t.current,fu(e),new Ou(t)},Vs.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var l=!1,c="",d=Hh,p=Kh,v=Yh,N=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=Sp(e,1,!0,t,n??null,l,c,N,d,p,v,zp),t.context=jp(null),n=t.current,l=Dt(),l=bc(l),c=Zn(l),c.callback=null,In(n,c,l),n=l,t.current.lanes=n,es(t,n),dn(t),e[Xa]=t.current,fu(e),new Er(t)},Vs.version="19.2.4",Vs}var Gp;function ux(){if(Gp)return Du.exports;Gp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Du.exports=ox(),Du.exports}var fx=ux();const hf=Symbol.for("yaml.alias"),Pu=Symbol.for("yaml.document"),pa=Symbol.for("yaml.map"),_g=Symbol.for("yaml.pair"),mn=Symbol.for("yaml.scalar"),Qi=Symbol.for("yaml.seq"),Jt=Symbol.for("yaml.node.type"),Ya=a=>!!a&&typeof a=="object"&&a[Jt]===hf,ec=a=>!!a&&typeof a=="object"&&a[Jt]===Pu,al=a=>!!a&&typeof a=="object"&&a[Jt]===pa,Fe=a=>!!a&&typeof a=="object"&&a[Jt]===_g,Le=a=>!!a&&typeof a=="object"&&a[Jt]===mn,il=a=>!!a&&typeof a=="object"&&a[Jt]===Qi;function Ie(a){if(a&&typeof a=="object")switch(a[Jt]){case pa:case Qi:return!0}return!1}function Je(a){if(a&&typeof a=="object")switch(a[Jt]){case hf:case pa:case mn:case Qi:return!0}return!1}const zg=a=>(Le(a)||Ie(a))&&!!a.anchor,Ua=Symbol("break visit"),dx=Symbol("skip children"),Js=Symbol("remove node");function Xi(a,i){const s=hx(i);ec(a)?Li(null,a.contents,s,Object.freeze([a]))===Js&&(a.contents=null):Li(null,a,s,Object.freeze([]))}Xi.BREAK=Ua;Xi.SKIP=dx;Xi.REMOVE=Js;function Li(a,i,s,r){const o=mx(a,i,s,r);if(Je(o)||Fe(o))return px(a,r,o),Li(a,o,s,r);if(typeof o!="symbol"){if(Ie(i)){r=Object.freeze(r.concat(i));for(let f=0;f<i.items.length;++f){const h=Li(f,i.items[f],s,r);if(typeof h=="number")f=h-1;else{if(h===Ua)return Ua;h===Js&&(i.items.splice(f,1),f-=1)}}}else if(Fe(i)){r=Object.freeze(r.concat(i));const f=Li("key",i.key,s,r);if(f===Ua)return Ua;f===Js&&(i.key=null);const h=Li("value",i.value,s,r);if(h===Ua)return Ua;h===Js&&(i.value=null)}}return o}function hx(a){return typeof a=="object"&&(a.Collection||a.Node||a.Value)?Object.assign({Alias:a.Node,Map:a.Node,Scalar:a.Node,Seq:a.Node},a.Value&&{Map:a.Value,Scalar:a.Value,Seq:a.Value},a.Collection&&{Map:a.Collection,Seq:a.Collection},a):a}function mx(a,i,s,r){if(typeof s=="function")return s(a,i,r);if(al(i))return s.Map?.(a,i,r);if(il(i))return s.Seq?.(a,i,r);if(Fe(i))return s.Pair?.(a,i,r);if(Le(i))return s.Scalar?.(a,i,r);if(Ya(i))return s.Alias?.(a,i,r)}function px(a,i,s){const r=i[i.length-1];if(Ie(r))r.items[a]=s;else if(Fe(r))a==="key"?r.key=s:r.value=s;else if(ec(r))r.contents=s;else{const o=Ya(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const gx={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},yx=a=>a.replace(/[!,[\]{}]/g,i=>gx[i]);class pt{constructor(i,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},pt.defaultYaml,i),this.tags=Object.assign({},pt.defaultTags,s)}clone(){const i=new pt(this.yaml,this.tags);return i.docStart=this.docStart,i}atDocument(){const i=new pt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:pt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},pt.defaultTags);break}return i}add(i,s){this.atNextDocument&&(this.yaml={explicit:pt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},pt.defaultTags),this.atNextDocument=!1);const r=i.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[f,h]=r;return this.tags[f]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;const[f]=r;if(f==="1.1"||f==="1.2")return this.yaml.version=f,!0;{const h=/^\d+\.\d+$/.test(f);return s(6,`Unsupported YAML version ${f}`,h),!1}}default:return s(0,`Unknown directive ${o}`,!0),!1}}tagName(i,s){if(i==="!")return"!";if(i[0]!=="!")return s(`Not a valid tag: ${i}`),null;if(i[1]==="<"){const h=i.slice(2,-1);return h==="!"||h==="!!"?(s(`Verbatim tags aren't resolved, so ${i} is invalid.`),null):(i[i.length-1]!==">"&&s("Verbatim tags must end with a >"),h)}const[,r,o]=i.match(/^(.*!)([^!]*)$/s);o||s(`The ${i} tag has no suffix`);const f=this.tags[r];if(f)try{return f+decodeURIComponent(o)}catch(h){return s(String(h)),null}return r==="!"?i:(s(`Could not resolve tag: ${i}`),null)}tagString(i){for(const[s,r]of Object.entries(this.tags))if(i.startsWith(r))return s+yx(i.substring(r.length));return i[0]==="!"?i:`!<${i}>`}toString(i){const s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(i&&r.length>0&&Je(i.contents)){const f={};Xi(i.contents,(h,m)=>{Je(m)&&m.tag&&(f[m.tag]=!0)}),o=Object.keys(f)}else o=[];for(const[f,h]of r)f==="!!"&&h==="tag:yaml.org,2002:"||(!i||o.some(m=>m.startsWith(h)))&&s.push(`%TAG ${f} ${h}`);return s.join(`
10
+ `)}}pt.defaultYaml={explicit:!1,version:"1.2"};pt.defaultTags={"!!":"tag:yaml.org,2002:"};function Dg(a){if(/[\x00-\x19\s,[\]{}]/.test(a)){const s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(a)}`;throw new Error(s)}return!0}function Mg(a){const i=new Set;return Xi(a,{Value(s,r){r.anchor&&i.add(r.anchor)}}),i}function Rg(a,i){for(let s=1;;++s){const r=`${a}${s}`;if(!i.has(r))return r}}function vx(a,i){const s=[],r=new Map;let o=null;return{onAnchor:f=>{s.push(f),o??(o=Mg(a));const h=Rg(i,o);return o.add(h),h},setAnchors:()=>{for(const f of s){const h=r.get(f);if(typeof h=="object"&&h.anchor&&(Le(h.node)||Ie(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=f,m}}},sourceObjects:r}}function Ui(a,i,s,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,f=r.length;o<f;++o){const h=r[o],m=Ui(a,r,String(o),h);m===void 0?delete r[o]:m!==h&&(r[o]=m)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const f=r.get(o),h=Ui(a,r,o,f);h===void 0?r.delete(o):h!==f&&r.set(o,h)}else if(r instanceof Set)for(const o of Array.from(r)){const f=Ui(a,r,o,o);f===void 0?r.delete(o):f!==o&&(r.delete(o),r.add(f))}else for(const[o,f]of Object.entries(r)){const h=Ui(a,r,o,f);h===void 0?delete r[o]:h!==f&&(r[o]=h)}return a.call(i,s,r)}function It(a,i,s){if(Array.isArray(a))return a.map((r,o)=>It(r,String(o),s));if(a&&typeof a.toJSON=="function"){if(!s||!zg(a))return a.toJSON(i,s);const r={aliasCount:0,count:1,res:void 0};s.anchors.set(a,r),s.onCreate=f=>{r.res=f,delete s.onCreate};const o=a.toJSON(i,s);return s.onCreate&&s.onCreate(o),o}return typeof a=="bigint"&&!s?.keep?Number(a):a}class mf{constructor(i){Object.defineProperty(this,Jt,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(i.range=this.range.slice()),i}toJS(i,{mapAsMap:s,maxAliasCount:r,onAnchor:o,reviver:f}={}){if(!ec(i))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:i,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},m=It(this,"",h);if(typeof o=="function")for(const{count:y,res:g}of h.anchors.values())o(g,y);return typeof f=="function"?Ui(f,{"":m},"",m):m}}class pf extends mf{constructor(i){super(hf),this.source=i,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i,s){let r;s?.aliasResolveCache?r=s.aliasResolveCache:(r=[],Xi(i,{Node:(f,h)=>{(Ya(h)||zg(h))&&r.push(h)}}),s&&(s.aliasResolveCache=r));let o;for(const f of r){if(f===this)break;f.anchor===this.source&&(o=f)}return o}toJSON(i,s){if(!s)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:f}=s,h=this.resolve(o,s);if(!h){const y=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(y)}let m=r.get(h);if(m||(It(h,null,s),m=r.get(h)),m?.res===void 0){const y="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(y)}if(f>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=Kr(o,h,r)),m.count*m.aliasCount>f)){const y="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(y)}return m.res}toString(i,s,r){const o=`*${this.source}`;if(i){if(Dg(this.source),i.options.verifyAliasOrder&&!i.anchors.has(this.source)){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(f)}if(i.implicitKey)return`${o} `}return o}}function Kr(a,i,s){if(Ya(i)){const r=i.resolve(a),o=s&&r&&s.get(r);return o?o.count*o.aliasCount:0}else if(Ie(i)){let r=0;for(const o of i.items){const f=Kr(a,o,s);f>r&&(r=f)}return r}else if(Fe(i)){const r=Kr(a,i.key,s),o=Kr(a,i.value,s);return Math.max(r,o)}return 1}const Lg=a=>!a||typeof a!="function"&&typeof a!="object";class ge extends mf{constructor(i){super(mn),this.value=i}toJSON(i,s){return s?.keep?this.value:It(this.value,i,s)}toString(){return String(this.value)}}ge.BLOCK_FOLDED="BLOCK_FOLDED";ge.BLOCK_LITERAL="BLOCK_LITERAL";ge.PLAIN="PLAIN";ge.QUOTE_DOUBLE="QUOTE_DOUBLE";ge.QUOTE_SINGLE="QUOTE_SINGLE";const bx="tag:yaml.org,2002:";function xx(a,i,s){if(i){const r=s.filter(f=>f.tag===i),o=r.find(f=>!f.format)??r[0];if(!o)throw new Error(`Tag ${i} not found`);return o}return s.find(r=>r.identify?.(a)&&!r.format)}function Ps(a,i,s){if(ec(a)&&(a=a.contents),Je(a))return a;if(Fe(a)){const b=s.schema[pa].createNode?.(s.schema,null,s);return b.items.push(a),b}(a instanceof String||a instanceof Number||a instanceof Boolean||typeof BigInt<"u"&&a instanceof BigInt)&&(a=a.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:f,schema:h,sourceObjects:m}=s;let y;if(r&&a&&typeof a=="object"){if(y=m.get(a),y)return y.anchor??(y.anchor=o(a)),new pf(y.anchor);y={anchor:null,node:null},m.set(a,y)}i?.startsWith("!!")&&(i=bx+i.slice(2));let g=xx(a,i,h.tags);if(!g){if(a&&typeof a.toJSON=="function"&&(a=a.toJSON()),!a||typeof a!="object"){const b=new ge(a);return y&&(y.node=b),b}g=a instanceof Map?h[pa]:Symbol.iterator in Object(a)?h[Qi]:h[pa]}f&&(f(g),delete s.onTagObj);const S=g?.createNode?g.createNode(s.schema,a,s):typeof g?.nodeClass?.from=="function"?g.nodeClass.from(s.schema,a,s):new ge(a);return i?S.tag=i:g.default||(S.tag=g.tag),y&&(y.node=S),S}function Qr(a,i,s){let r=s;for(let o=i.length-1;o>=0;--o){const f=i[o];if(typeof f=="number"&&Number.isInteger(f)&&f>=0){const h=[];h[f]=r,r=h}else r=new Map([[f,r]])}return Ps(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:a,sourceObjects:new Map})}const Is=a=>a==null||typeof a=="object"&&!!a[Symbol.iterator]().next().done;class Ug extends mf{constructor(i,s){super(i),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0})}clone(i){const s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return i&&(s.schema=i),s.items=s.items.map(r=>Je(r)||Fe(r)?r.clone(i):r),this.range&&(s.range=this.range.slice()),s}addIn(i,s){if(Is(i))this.add(s);else{const[r,...o]=i,f=this.get(r,!0);if(Ie(f))f.addIn(o,s);else if(f===void 0&&this.schema)this.set(r,Qr(this.schema,o,s));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(i){const[s,...r]=i;if(r.length===0)return this.delete(s);const o=this.get(s,!0);if(Ie(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}getIn(i,s){const[r,...o]=i,f=this.get(r,!0);return o.length===0?!s&&Le(f)?f.value:f:Ie(f)?f.getIn(o,s):void 0}hasAllNullValues(i){return this.items.every(s=>{if(!Fe(s))return!1;const r=s.value;return r==null||i&&Le(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(i){const[s,...r]=i;if(r.length===0)return this.has(s);const o=this.get(s,!0);return Ie(o)?o.hasIn(r):!1}setIn(i,s){const[r,...o]=i;if(o.length===0)this.set(r,s);else{const f=this.get(r,!0);if(Ie(f))f.setIn(o,s);else if(f===void 0&&this.schema)this.set(r,Qr(this.schema,o,s));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}const Sx=a=>a.replace(/^(?!$)(?: $)?/gm,"#");function Un(a,i){return/^\n+$/.test(a)?a.substring(1):i?a.replace(/^(?! *$)/gm,i):a}const Ba=(a,i,s)=>a.endsWith(`
11
+ `)?Un(s,i):s.includes(`
12
+ `)?`
13
+ `+Un(s,i):(a.endsWith(" ")?"":" ")+s,Bg="flow",Wu="block",Yr="quoted";function tc(a,i,s="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:f=20,onFold:h,onOverflow:m}={}){if(!o||o<0)return a;o<f&&(f=0);const y=Math.max(1+f,1+o-i.length);if(a.length<=y)return a;const g=[],S={};let b=o-i.length;typeof r=="number"&&(r>o-Math.max(2,f)?g.push(0):b=o-r);let x,k,O=!1,j=-1,E=-1,H=-1;s===Wu&&(j=$p(a,j,i.length),j!==-1&&(b=j+y));for(let R;R=a[j+=1];){if(s===Yr&&R==="\\"){switch(E=j,a[j+1]){case"x":j+=3;break;case"u":j+=5;break;case"U":j+=9;break;default:j+=1}H=j}if(R===`
14
+ `)s===Wu&&(j=$p(a,j,i.length)),b=j+i.length+y,x=void 0;else{if(R===" "&&k&&k!==" "&&k!==`
15
+ `&&k!==" "){const B=a[j+1];B&&B!==" "&&B!==`
16
+ `&&B!==" "&&(x=j)}if(j>=b)if(x)g.push(x),b=x+y,x=void 0;else if(s===Yr){for(;k===" "||k===" ";)k=R,R=a[j+=1],O=!0;const B=j>H+1?j-2:E-1;if(S[B])return a;g.push(B),S[B]=!0,b=B+y,x=void 0}else O=!0}k=R}if(O&&m&&m(),g.length===0)return a;h&&h();let G=a.slice(0,g[0]);for(let R=0;R<g.length;++R){const B=g[R],K=g[R+1]||a.length;B===0?G=`
17
+ ${i}${a.slice(0,K)}`:(s===Yr&&S[B]&&(G+=`${a[B]}\\`),G+=`
18
+ ${i}${a.slice(B+1,K)}`)}return G}function $p(a,i,s){let r=i,o=i+1,f=a[o];for(;f===" "||f===" ";)if(i<o+s)f=a[++i];else{do f=a[++i];while(f&&f!==`
19
+ `);r=i,o=i+1,f=a[o]}return r}const nc=(a,i)=>({indentAtStart:i?a.indent.length:a.indentAtStart,lineWidth:a.options.lineWidth,minContentWidth:a.options.minContentWidth}),ac=a=>/^(%|---|\.\.\.)/m.test(a);function jx(a,i,s){if(!i||i<0)return!1;const r=i-s,o=a.length;if(o<=r)return!1;for(let f=0,h=0;f<o;++f)if(a[f]===`
20
+ `){if(f-h>r)return!0;if(h=f+1,o-h<=r)return!1}return!0}function Fs(a,i){const s=JSON.stringify(a);if(i.options.doubleQuotedAsJSON)return s;const{implicitKey:r}=i,o=i.options.doubleQuotedMinMultiLineLength,f=i.indent||(ac(a)?" ":"");let h="",m=0;for(let y=0,g=s[y];g;g=s[++y])if(g===" "&&s[y+1]==="\\"&&s[y+2]==="n"&&(h+=s.slice(m,y)+"\\ ",y+=1,m=y,g="\\"),g==="\\")switch(s[y+1]){case"u":{h+=s.slice(m,y);const S=s.substr(y+2,4);switch(S){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:S.substr(0,2)==="00"?h+="\\x"+S.substr(2):h+=s.substr(y,6)}y+=5,m=y+1}break;case"n":if(r||s[y+2]==='"'||s.length<o)y+=1;else{for(h+=s.slice(m,y)+`
21
+
22
+ `;s[y+2]==="\\"&&s[y+3]==="n"&&s[y+4]!=='"';)h+=`
23
+ `,y+=2;h+=f,s[y+2]===" "&&(h+="\\"),y+=1,m=y+1}break;default:y+=1}return h=m?h+s.slice(m):s,r?h:tc(h,f,Yr,nc(i,!1))}function ef(a,i){if(i.options.singleQuote===!1||i.implicitKey&&a.includes(`
24
+ `)||/[ \t]\n|\n[ \t]/.test(a))return Fs(a,i);const s=i.indent||(ac(a)?" ":""),r="'"+a.replace(/'/g,"''").replace(/\n+/g,`$&
25
+ ${s}`)+"'";return i.implicitKey?r:tc(r,s,Bg,nc(i,!1))}function Bi(a,i){const{singleQuote:s}=i.options;let r;if(s===!1)r=Fs;else{const o=a.includes('"'),f=a.includes("'");o&&!f?r=ef:f&&!o?r=Fs:r=s?ef:Fs}return r(a,i)}let tf;try{tf=new RegExp(`(^|(?<!
26
+ ))
27
+ +(?!
28
+ |$)`,"g")}catch{tf=/\n+(?!\n|$)/g}function Gr({comment:a,type:i,value:s},r,o,f){const{blockQuote:h,commentString:m,lineWidth:y}=r.options;if(!h||/\n[\t ]+$/.test(s))return Bi(s,r);const g=r.indent||(r.forceBlockIndent||ac(s)?" ":""),S=h==="literal"?!0:h==="folded"||i===ge.BLOCK_FOLDED?!1:i===ge.BLOCK_LITERAL?!0:!jx(s,y,g.length);if(!s)return S?`|
29
+ `:`>
30
+ `;let b,x;for(x=s.length;x>0;--x){const K=s[x-1];if(K!==`
31
+ `&&K!==" "&&K!==" ")break}let k=s.substring(x);const O=k.indexOf(`
32
+ `);O===-1?b="-":s===k||O!==k.length-1?(b="+",f&&f()):b="",k&&(s=s.slice(0,-k.length),k[k.length-1]===`
33
+ `&&(k=k.slice(0,-1)),k=k.replace(tf,`$&${g}`));let j=!1,E,H=-1;for(E=0;E<s.length;++E){const K=s[E];if(K===" ")j=!0;else if(K===`
34
+ `)H=E;else break}let G=s.substring(0,H<E?H+1:E);G&&(s=s.substring(G.length),G=G.replace(/\n+/g,`$&${g}`));let B=(j?g?"2":"1":"")+b;if(a&&(B+=" "+m(a.replace(/ ?[\r\n]+/g," ")),o&&o()),!S){const K=s.replace(/\n+/g,`
35
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${g}`);let X=!1;const Z=nc(r,!0);h!=="folded"&&i!==ge.BLOCK_FOLDED&&(Z.onOverflow=()=>{X=!0});const _=tc(`${G}${K}${k}`,g,Wu,Z);if(!X)return`>${B}
36
+ ${g}${_}`}return s=s.replace(/\n+/g,`$&${g}`),`|${B}
37
+ ${g}${G}${s}${k}`}function wx(a,i,s,r){const{type:o,value:f}=a,{actualString:h,implicitKey:m,indent:y,indentStep:g,inFlow:S}=i;if(m&&f.includes(`
38
+ `)||S&&/[[\]{},]/.test(f))return Bi(f,i);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return m||S||!f.includes(`
39
+ `)?Bi(f,i):Gr(a,i,s,r);if(!m&&!S&&o!==ge.PLAIN&&f.includes(`
40
+ `))return Gr(a,i,s,r);if(ac(f)){if(y==="")return i.forceBlockIndent=!0,Gr(a,i,s,r);if(m&&y===g)return Bi(f,i)}const b=f.replace(/\n+/g,`$&
41
+ ${y}`);if(h){const x=j=>j.default&&j.tag!=="tag:yaml.org,2002:str"&&j.test?.test(b),{compat:k,tags:O}=i.doc.schema;if(O.some(x)||k?.some(x))return Bi(f,i)}return m?b:tc(b,y,Bg,nc(i,!1))}function gf(a,i,s,r){const{implicitKey:o,inFlow:f}=i,h=typeof a.value=="string"?a:Object.assign({},a,{value:String(a.value)});let{type:m}=a;m!==ge.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=ge.QUOTE_DOUBLE);const y=S=>{switch(S){case ge.BLOCK_FOLDED:case ge.BLOCK_LITERAL:return o||f?Bi(h.value,i):Gr(h,i,s,r);case ge.QUOTE_DOUBLE:return Fs(h.value,i);case ge.QUOTE_SINGLE:return ef(h.value,i);case ge.PLAIN:return wx(h,i,s,r);default:return null}};let g=y(m);if(g===null){const{defaultKeyType:S,defaultStringType:b}=i.options,x=o&&S||b;if(g=y(x),g===null)throw new Error(`Unsupported default string type ${x}`)}return g}function qg(a,i){const s=Object.assign({blockQuote:!0,commentString:Sx,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},a.schema.toStringOptions,i);let r;switch(s.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:a,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent=="number"?" ".repeat(s.indent):" ",inFlow:r,options:s}}function Nx(a,i){if(i.tag){const o=a.filter(f=>f.tag===i.tag);if(o.length>0)return o.find(f=>f.format===i.format)??o[0]}let s,r;if(Le(i)){r=i.value;let o=a.filter(f=>f.identify?.(r));if(o.length>1){const f=o.filter(h=>h.test);f.length>0&&(o=f)}s=o.find(f=>f.format===i.format)??o.find(f=>!f.format)}else r=i,s=a.find(o=>o.nodeClass&&r instanceof o.nodeClass);if(!s){const o=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${o} value`)}return s}function Ex(a,i,{anchors:s,doc:r}){if(!r.directives)return"";const o=[],f=(Le(a)||Ie(a))&&a.anchor;f&&Dg(f)&&(s.add(f),o.push(`&${f}`));const h=a.tag??(i.default?null:i.tag);return h&&o.push(r.directives.tagString(h)),o.join(" ")}function $i(a,i,s,r){if(Fe(a))return a.toString(i,s,r);if(Ya(a)){if(i.doc.directives)return a.toString(i);if(i.resolvedAliases?.has(a))throw new TypeError("Cannot stringify circular structure without alias nodes");i.resolvedAliases?i.resolvedAliases.add(a):i.resolvedAliases=new Set([a]),a=a.resolve(i.doc)}let o;const f=Je(a)?a:i.doc.createNode(a,{onTagObj:y=>o=y});o??(o=Nx(i.doc.schema.tags,f));const h=Ex(f,o,i);h.length>0&&(i.indentAtStart=(i.indentAtStart??0)+h.length+1);const m=typeof o.stringify=="function"?o.stringify(f,i,s,r):Le(f)?gf(f,i,s,r):f.toString(i,s,r);return h?Le(f)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
42
+ ${i.indent}${m}`:m}function Ax({key:a,value:i},s,r,o){const{allNullValues:f,doc:h,indent:m,indentStep:y,options:{commentString:g,indentSeq:S,simpleKeys:b}}=s;let x=Je(a)&&a.comment||null;if(b){if(x)throw new Error("With simple keys, key nodes cannot have comments");if(Ie(a)||!Je(a)&&typeof a=="object"){const Z="With simple keys, collection cannot be used as a key value";throw new Error(Z)}}let k=!b&&(!a||x&&i==null&&!s.inFlow||Ie(a)||(Le(a)?a.type===ge.BLOCK_FOLDED||a.type===ge.BLOCK_LITERAL:typeof a=="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!k&&(b||!f),indent:m+y});let O=!1,j=!1,E=$i(a,s,()=>O=!0,()=>j=!0);if(!k&&!s.inFlow&&E.length>1024){if(b)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(s.inFlow){if(f||i==null)return O&&r&&r(),E===""?"?":k?`? ${E}`:E}else if(f&&!b||i==null&&k)return E=`? ${E}`,x&&!O?E+=Ba(E,s.indent,g(x)):j&&o&&o(),E;O&&(x=null),k?(x&&(E+=Ba(E,s.indent,g(x))),E=`? ${E}
43
+ ${m}:`):(E=`${E}:`,x&&(E+=Ba(E,s.indent,g(x))));let H,G,R;Je(i)?(H=!!i.spaceBefore,G=i.commentBefore,R=i.comment):(H=!1,G=null,R=null,i&&typeof i=="object"&&(i=h.createNode(i))),s.implicitKey=!1,!k&&!x&&Le(i)&&(s.indentAtStart=E.length+1),j=!1,!S&&y.length>=2&&!s.inFlow&&!k&&il(i)&&!i.flow&&!i.tag&&!i.anchor&&(s.indent=s.indent.substring(2));let B=!1;const K=$i(i,s,()=>B=!0,()=>j=!0);let X=" ";if(x||H||G){if(X=H?`
44
+ `:"",G){const Z=g(G);X+=`
45
+ ${Un(Z,s.indent)}`}K===""&&!s.inFlow?X===`
46
+ `&&R&&(X=`
47
+
48
+ `):X+=`
49
+ ${s.indent}`}else if(!k&&Ie(i)){const Z=K[0],_=K.indexOf(`
50
+ `),P=_!==-1,Se=s.inFlow??i.flow??i.items.length===0;if(P||!Se){let W=!1;if(P&&(Z==="&"||Z==="!")){let le=K.indexOf(" ");Z==="&"&&le!==-1&&le<_&&K[le+1]==="!"&&(le=K.indexOf(" ",le+1)),(le===-1||_<le)&&(W=!0)}W||(X=`
51
+ ${s.indent}`)}}else(K===""||K[0]===`
52
+ `)&&(X="");return E+=X+K,s.inFlow?B&&r&&r():R&&!B?E+=Ba(E,s.indent,g(R)):j&&o&&o(),E}function Cx(a,i){(a==="debug"||a==="warn")&&console.warn(i)}const Cr="<<",Bn={identify:a=>a===Cr||typeof a=="symbol"&&a.description===Cr,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ge(Symbol(Cr)),{addToJSMap:Hg}),stringify:()=>Cr},kx=(a,i)=>(Bn.identify(i)||Le(i)&&(!i.type||i.type===ge.PLAIN)&&Bn.identify(i.value))&&a?.doc.schema.tags.some(s=>s.tag===Bn.tag&&s.default);function Hg(a,i,s){if(s=a&&Ya(s)?s.resolve(a.doc):s,il(s))for(const r of s.items)Uu(a,i,r);else if(Array.isArray(s))for(const r of s)Uu(a,i,r);else Uu(a,i,s)}function Uu(a,i,s){const r=a&&Ya(s)?s.resolve(a.doc):s;if(!al(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,a,Map);for(const[f,h]of o)i instanceof Map?i.has(f)||i.set(f,h):i instanceof Set?i.add(f):Object.prototype.hasOwnProperty.call(i,f)||Object.defineProperty(i,f,{value:h,writable:!0,enumerable:!0,configurable:!0});return i}function Kg(a,i,{key:s,value:r}){if(Je(s)&&s.addToJSMap)s.addToJSMap(a,i,r);else if(kx(a,s))Hg(a,i,r);else{const o=It(s,"",a);if(i instanceof Map)i.set(o,It(r,o,a));else if(i instanceof Set)i.add(o);else{const f=Tx(s,o,a),h=It(r,f,a);f in i?Object.defineProperty(i,f,{value:h,writable:!0,enumerable:!0,configurable:!0}):i[f]=h}}return i}function Tx(a,i,s){if(i===null)return"";if(typeof i!="object")return String(i);if(Je(a)&&s?.doc){const r=qg(s.doc,{});r.anchors=new Set;for(const f of s.anchors.keys())r.anchors.add(f.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=a.toString(r);if(!s.mapKeyWarned){let f=JSON.stringify(o);f.length>40&&(f=f.substring(0,36)+'..."'),Cx(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${f}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return o}return JSON.stringify(i)}function yf(a,i,s){const r=Ps(a,void 0,s),o=Ps(i,void 0,s);return new gt(r,o)}class gt{constructor(i,s=null){Object.defineProperty(this,Jt,{value:_g}),this.key=i,this.value=s}clone(i){let{key:s,value:r}=this;return Je(s)&&(s=s.clone(i)),Je(r)&&(r=r.clone(i)),new gt(s,r)}toJSON(i,s){const r=s?.mapAsMap?new Map:{};return Kg(s,r,this)}toString(i,s,r){return i?.doc?Ax(this,i,s,r):JSON.stringify(this)}}function Yg(a,i,s){return(i.inFlow??a.flow?_x:Ox)(a,i,s)}function Ox({comment:a,items:i},s,{blockItemPrefix:r,flowChars:o,itemIndent:f,onChompKeep:h,onComment:m}){const{indent:y,options:{commentString:g}}=s,S=Object.assign({},s,{indent:f,type:null});let b=!1;const x=[];for(let O=0;O<i.length;++O){const j=i[O];let E=null;if(Je(j))!b&&j.spaceBefore&&x.push(""),Xr(s,x,j.commentBefore,b),j.comment&&(E=j.comment);else if(Fe(j)){const G=Je(j.key)?j.key:null;G&&(!b&&G.spaceBefore&&x.push(""),Xr(s,x,G.commentBefore,b))}b=!1;let H=$i(j,S,()=>E=null,()=>b=!0);E&&(H+=Ba(H,f,g(E))),b&&E&&(b=!1),x.push(r+H)}let k;if(x.length===0)k=o.start+o.end;else{k=x[0];for(let O=1;O<x.length;++O){const j=x[O];k+=j?`
53
+ ${y}${j}`:`
54
+ `}}return a?(k+=`
55
+ `+Un(g(a),y),m&&m()):b&&h&&h(),k}function _x({items:a},i,{flowChars:s,itemIndent:r}){const{indent:o,indentStep:f,flowCollectionPadding:h,options:{commentString:m}}=i;r+=f;const y=Object.assign({},i,{indent:r,inFlow:!0,type:null});let g=!1,S=0;const b=[];for(let O=0;O<a.length;++O){const j=a[O];let E=null;if(Je(j))j.spaceBefore&&b.push(""),Xr(i,b,j.commentBefore,!1),j.comment&&(E=j.comment);else if(Fe(j)){const G=Je(j.key)?j.key:null;G&&(G.spaceBefore&&b.push(""),Xr(i,b,G.commentBefore,!1),G.comment&&(g=!0));const R=Je(j.value)?j.value:null;R?(R.comment&&(E=R.comment),R.commentBefore&&(g=!0)):j.value==null&&G?.comment&&(E=G.comment)}E&&(g=!0);let H=$i(j,y,()=>E=null);O<a.length-1&&(H+=","),E&&(H+=Ba(H,r,m(E))),!g&&(b.length>S||H.includes(`
56
+ `))&&(g=!0),b.push(H),S=b.length}const{start:x,end:k}=s;if(b.length===0)return x+k;if(!g){const O=b.reduce((j,E)=>j+E.length+2,2);g=i.options.lineWidth>0&&O>i.options.lineWidth}if(g){let O=x;for(const j of b)O+=j?`
57
+ ${f}${o}${j}`:`
58
+ `;return`${O}
59
+ ${o}${k}`}else return`${x}${h}${b.join(" ")}${h}${k}`}function Xr({indent:a,options:{commentString:i}},s,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const f=Un(i(r),a);s.push(f.trimStart())}}function qa(a,i){const s=Le(i)?i.value:i;for(const r of a)if(Fe(r)&&(r.key===i||r.key===s||Le(r.key)&&r.key.value===s))return r}class Zt extends Ug{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(pa,i),this.items=[]}static from(i,s,r){const{keepUndefined:o,replacer:f}=r,h=new this(i),m=(y,g)=>{if(typeof f=="function")g=f.call(s,y,g);else if(Array.isArray(f)&&!f.includes(y))return;(g!==void 0||o)&&h.items.push(yf(y,g,r))};if(s instanceof Map)for(const[y,g]of s)m(y,g);else if(s&&typeof s=="object")for(const y of Object.keys(s))m(y,s[y]);return typeof i.sortMapEntries=="function"&&h.items.sort(i.sortMapEntries),h}add(i,s){let r;Fe(i)?r=i:!i||typeof i!="object"||!("key"in i)?r=new gt(i,i?.value):r=new gt(i.key,i.value);const o=qa(this.items,r.key),f=this.schema?.sortMapEntries;if(o){if(!s)throw new Error(`Key ${r.key} already set`);Le(o.value)&&Lg(r.value)?o.value.value=r.value:o.value=r.value}else if(f){const h=this.items.findIndex(m=>f(r,m)<0);h===-1?this.items.push(r):this.items.splice(h,0,r)}else this.items.push(r)}delete(i){const s=qa(this.items,i);return s?this.items.splice(this.items.indexOf(s),1).length>0:!1}get(i,s){const o=qa(this.items,i)?.value;return(!s&&Le(o)?o.value:o)??void 0}has(i){return!!qa(this.items,i)}set(i,s){this.add(new gt(i,s),!0)}toJSON(i,s,r){const o=r?new r:s?.mapAsMap?new Map:{};s?.onCreate&&s.onCreate(o);for(const f of this.items)Kg(s,o,f);return o}toString(i,s,r){if(!i)return JSON.stringify(this);for(const o of this.items)if(!Fe(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!i.allNullValues&&this.hasAllNullValues(!1)&&(i=Object.assign({},i,{allNullValues:!0})),Yg(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:r,onComment:s})}}const Zi={collection:"map",default:!0,nodeClass:Zt,tag:"tag:yaml.org,2002:map",resolve(a,i){return al(a)||i("Expected a mapping for this tag"),a},createNode:(a,i,s)=>Zt.from(a,i,s)};class Ha extends Ug{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(Qi,i),this.items=[]}add(i){this.items.push(i)}delete(i){const s=kr(i);return typeof s!="number"?!1:this.items.splice(s,1).length>0}get(i,s){const r=kr(i);if(typeof r!="number")return;const o=this.items[r];return!s&&Le(o)?o.value:o}has(i){const s=kr(i);return typeof s=="number"&&s<this.items.length}set(i,s){const r=kr(i);if(typeof r!="number")throw new Error(`Expected a valid index, not ${i}.`);const o=this.items[r];Le(o)&&Lg(s)?o.value=s:this.items[r]=s}toJSON(i,s){const r=[];s?.onCreate&&s.onCreate(r);let o=0;for(const f of this.items)r.push(It(f,String(o++),s));return r}toString(i,s,r){return i?Yg(this,i,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(i.indent||"")+" ",onChompKeep:r,onComment:s}):JSON.stringify(this)}static from(i,s,r){const{replacer:o}=r,f=new this(i);if(s&&Symbol.iterator in Object(s)){let h=0;for(let m of s){if(typeof o=="function"){const y=s instanceof Set?m:String(h++);m=o.call(s,y,m)}f.items.push(Ps(m,void 0,r))}}return f}}function kr(a){let i=Le(a)?a.value:a;return i&&typeof i=="string"&&(i=Number(i)),typeof i=="number"&&Number.isInteger(i)&&i>=0?i:null}const Ii={collection:"seq",default:!0,nodeClass:Ha,tag:"tag:yaml.org,2002:seq",resolve(a,i){return il(a)||i("Expected a sequence for this tag"),a},createNode:(a,i,s)=>Ha.from(a,i,s)},ic={identify:a=>typeof a=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify(a,i,s,r){return i=Object.assign({actualString:!0},i),gf(a,i,s,r)}},sc={identify:a=>a==null,createNode:()=>new ge(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ge(null),stringify:({source:a},i)=>typeof a=="string"&&sc.test.test(a)?a:i.options.nullStr},vf={identify:a=>typeof a=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:a=>new ge(a[0]==="t"||a[0]==="T"),stringify({source:a,value:i},s){if(a&&vf.test.test(a)){const r=a[0]==="t"||a[0]==="T";if(i===r)return a}return i?s.options.trueStr:s.options.falseStr}};function ln({format:a,minFractionDigits:i,tag:s,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let f=Object.is(r,-0)?"-0":JSON.stringify(r);if(!a&&i&&(!s||s==="tag:yaml.org,2002:float")&&/^\d/.test(f)){let h=f.indexOf(".");h<0&&(h=f.length,f+=".");let m=i-(f.length-h-1);for(;m-- >0;)f+="0"}return f}const Gg={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a=>a.slice(-3).toLowerCase()==="nan"?NaN:a[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ln},$g={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:a=>parseFloat(a),stringify(a){const i=Number(a.value);return isFinite(i)?i.toExponential():ln(a)}},Vg={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(a){const i=new ge(parseFloat(a)),s=a.indexOf(".");return s!==-1&&a[a.length-1]==="0"&&(i.minFractionDigits=a.length-s-1),i},stringify:ln},lc=a=>typeof a=="bigint"||Number.isInteger(a),bf=(a,i,s,{intAsBigInt:r})=>r?BigInt(a):parseInt(a.substring(i),s);function Qg(a,i,s){const{value:r}=a;return lc(r)&&r>=0?s+r.toString(i):ln(a)}const Xg={identify:a=>lc(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(a,i,s)=>bf(a,2,8,s),stringify:a=>Qg(a,8,"0o")},Zg={identify:lc,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(a,i,s)=>bf(a,0,10,s),stringify:ln},Ig={identify:a=>lc(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(a,i,s)=>bf(a,2,16,s),stringify:a=>Qg(a,16,"0x")},zx=[Zi,Ii,ic,sc,vf,Xg,Zg,Ig,Gg,$g,Vg];function Vp(a){return typeof a=="bigint"||Number.isInteger(a)}const Tr=({value:a})=>JSON.stringify(a),Dx=[{identify:a=>typeof a=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify:Tr},{identify:a=>a==null,createNode:()=>new ge(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Tr},{identify:a=>typeof a=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:a=>a==="true",stringify:Tr},{identify:Vp,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(a,i,{intAsBigInt:s})=>s?BigInt(a):parseInt(a,10),stringify:({value:a})=>Vp(a)?a.toString():JSON.stringify(a)},{identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:a=>parseFloat(a),stringify:Tr}],Mx={default:!0,tag:"",test:/^/,resolve(a,i){return i(`Unresolved plain scalar ${JSON.stringify(a)}`),a}},Rx=[Zi,Ii].concat(Dx,Mx),xf={identify:a=>a instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(a,i){if(typeof atob=="function"){const s=atob(a.replace(/[\n\r]/g,"")),r=new Uint8Array(s.length);for(let o=0;o<s.length;++o)r[o]=s.charCodeAt(o);return r}else return i("This environment does not support reading binary tags; either Buffer or atob is required"),a},stringify({comment:a,type:i,value:s},r,o,f){if(!s)return"";const h=s;let m;if(typeof btoa=="function"){let y="";for(let g=0;g<h.length;++g)y+=String.fromCharCode(h[g]);m=btoa(y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(i??(i=ge.BLOCK_LITERAL),i!==ge.QUOTE_DOUBLE){const y=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),g=Math.ceil(m.length/y),S=new Array(g);for(let b=0,x=0;b<g;++b,x+=y)S[b]=m.substr(x,y);m=S.join(i===ge.BLOCK_LITERAL?`
60
+ `:" ")}return gf({comment:a,type:i,value:m},r,o,f)}};function Jg(a,i){if(il(a))for(let s=0;s<a.items.length;++s){let r=a.items[s];if(!Fe(r)){if(al(r)){r.items.length>1&&i("Each pair must have its own sequence indicator");const o=r.items[0]||new gt(new ge(null));if(r.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${r.commentBefore}
61
+ ${o.key.commentBefore}`:r.commentBefore),r.comment){const f=o.value??o.key;f.comment=f.comment?`${r.comment}
62
+ ${f.comment}`:r.comment}r=o}a.items[s]=Fe(r)?r:new gt(r)}}else i("Expected a sequence for this tag");return a}function Fg(a,i,s){const{replacer:r}=s,o=new Ha(a);o.tag="tag:yaml.org,2002:pairs";let f=0;if(i&&Symbol.iterator in Object(i))for(let h of i){typeof r=="function"&&(h=r.call(i,String(f++),h));let m,y;if(Array.isArray(h))if(h.length===2)m=h[0],y=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const g=Object.keys(h);if(g.length===1)m=g[0],y=h[m];else throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}else m=h;o.items.push(yf(m,y,s))}return o}const Sf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Jg,createNode:Fg};class qi extends Ha{constructor(){super(),this.add=Zt.prototype.add.bind(this),this.delete=Zt.prototype.delete.bind(this),this.get=Zt.prototype.get.bind(this),this.has=Zt.prototype.has.bind(this),this.set=Zt.prototype.set.bind(this),this.tag=qi.tag}toJSON(i,s){if(!s)return super.toJSON(i);const r=new Map;s?.onCreate&&s.onCreate(r);for(const o of this.items){let f,h;if(Fe(o)?(f=It(o.key,"",s),h=It(o.value,f,s)):f=It(o,"",s),r.has(f))throw new Error("Ordered maps must not include duplicate keys");r.set(f,h)}return r}static from(i,s,r){const o=Fg(i,s,r),f=new this;return f.items=o.items,f}}qi.tag="tag:yaml.org,2002:omap";const jf={collection:"seq",identify:a=>a instanceof Map,nodeClass:qi,default:!1,tag:"tag:yaml.org,2002:omap",resolve(a,i){const s=Jg(a,i),r=[];for(const{key:o}of s.items)Le(o)&&(r.includes(o.value)?i(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new qi,s)},createNode:(a,i,s)=>qi.from(a,i,s)};function Pg({value:a,source:i},s){return i&&(a?Wg:ey).test.test(i)?i:a?s.options.trueStr:s.options.falseStr}const Wg={identify:a=>a===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ge(!0),stringify:Pg},ey={identify:a=>a===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ge(!1),stringify:Pg},Lx={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a=>a.slice(-3).toLowerCase()==="nan"?NaN:a[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ln},Ux={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:a=>parseFloat(a.replace(/_/g,"")),stringify(a){const i=Number(a.value);return isFinite(i)?i.toExponential():ln(a)}},Bx={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(a){const i=new ge(parseFloat(a.replace(/_/g,""))),s=a.indexOf(".");if(s!==-1){const r=a.substring(s+1).replace(/_/g,"");r[r.length-1]==="0"&&(i.minFractionDigits=r.length)}return i},stringify:ln},sl=a=>typeof a=="bigint"||Number.isInteger(a);function rc(a,i,s,{intAsBigInt:r}){const o=a[0];if((o==="-"||o==="+")&&(i+=1),a=a.substring(i).replace(/_/g,""),r){switch(s){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`;break}const h=BigInt(a);return o==="-"?BigInt(-1)*h:h}const f=parseInt(a,s);return o==="-"?-1*f:f}function wf(a,i,s){const{value:r}=a;if(sl(r)){const o=r.toString(i);return r<0?"-"+s+o.substr(1):s+o}return ln(a)}const qx={identify:sl,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(a,i,s)=>rc(a,2,2,s),stringify:a=>wf(a,2,"0b")},Hx={identify:sl,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(a,i,s)=>rc(a,1,8,s),stringify:a=>wf(a,8,"0")},Kx={identify:sl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(a,i,s)=>rc(a,0,10,s),stringify:ln},Yx={identify:sl,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(a,i,s)=>rc(a,2,16,s),stringify:a=>wf(a,16,"0x")};class Hi extends Zt{constructor(i){super(i),this.tag=Hi.tag}add(i){let s;Fe(i)?s=i:i&&typeof i=="object"&&"key"in i&&"value"in i&&i.value===null?s=new gt(i.key,null):s=new gt(i,null),qa(this.items,s.key)||this.items.push(s)}get(i,s){const r=qa(this.items,i);return!s&&Fe(r)?Le(r.key)?r.key.value:r.key:r}set(i,s){if(typeof s!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);const r=qa(this.items,i);r&&!s?this.items.splice(this.items.indexOf(r),1):!r&&s&&this.items.push(new gt(i))}toJSON(i,s){return super.toJSON(i,s,Set)}toString(i,s,r){if(!i)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},i,{allNullValues:!0}),s,r);throw new Error("Set items must all have null values")}static from(i,s,r){const{replacer:o}=r,f=new this(i);if(s&&Symbol.iterator in Object(s))for(let h of s)typeof o=="function"&&(h=o.call(s,h,h)),f.items.push(yf(h,null,r));return f}}Hi.tag="tag:yaml.org,2002:set";const Nf={collection:"map",identify:a=>a instanceof Set,nodeClass:Hi,default:!1,tag:"tag:yaml.org,2002:set",createNode:(a,i,s)=>Hi.from(a,i,s),resolve(a,i){if(al(a)){if(a.hasAllNullValues(!0))return Object.assign(new Hi,a);i("Set items must all have null values")}else i("Expected a mapping for this tag");return a}};function Ef(a,i){const s=a[0],r=s==="-"||s==="+"?a.substring(1):a,o=h=>i?BigInt(h):Number(h),f=r.replace(/_/g,"").split(":").reduce((h,m)=>h*o(60)+o(m),o(0));return s==="-"?o(-1)*f:f}function ty(a){let{value:i}=a,s=h=>h;if(typeof i=="bigint")s=h=>BigInt(h);else if(isNaN(i)||!isFinite(i))return ln(a);let r="";i<0&&(r="-",i*=s(-1));const o=s(60),f=[i%o];return i<60?f.unshift(0):(i=(i-f[0])/o,f.unshift(i%o),i>=60&&(i=(i-f[0])/o,f.unshift(i))),r+f.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const ny={identify:a=>typeof a=="bigint"||Number.isInteger(a),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(a,i,{intAsBigInt:s})=>Ef(a,s),stringify:ty},ay={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:a=>Ef(a,!1),stringify:ty},cc={identify:a=>a instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(a){const i=a.match(cc.test);if(!i)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,s,r,o,f,h,m]=i.map(Number),y=i[7]?Number((i[7]+"00").substr(1,3)):0;let g=Date.UTC(s,r-1,o,f||0,h||0,m||0,y);const S=i[8];if(S&&S!=="Z"){let b=Ef(S,!1);Math.abs(b)<30&&(b*=60),g-=6e4*b}return new Date(g)},stringify:({value:a})=>a?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Qp=[Zi,Ii,ic,sc,Wg,ey,qx,Hx,Kx,Yx,Lx,Ux,Bx,xf,Bn,jf,Sf,Nf,ny,ay,cc],Xp=new Map([["core",zx],["failsafe",[Zi,Ii,ic]],["json",Rx],["yaml11",Qp],["yaml-1.1",Qp]]),Zp={binary:xf,bool:vf,float:Vg,floatExp:$g,floatNaN:Gg,floatTime:ay,int:Zg,intHex:Ig,intOct:Xg,intTime:ny,map:Zi,merge:Bn,null:sc,omap:jf,pairs:Sf,seq:Ii,set:Nf,timestamp:cc},Gx={"tag:yaml.org,2002:binary":xf,"tag:yaml.org,2002:merge":Bn,"tag:yaml.org,2002:omap":jf,"tag:yaml.org,2002:pairs":Sf,"tag:yaml.org,2002:set":Nf,"tag:yaml.org,2002:timestamp":cc};function Bu(a,i,s){const r=Xp.get(i);if(r&&!a)return s&&!r.includes(Bn)?r.concat(Bn):r.slice();let o=r;if(!o)if(Array.isArray(a))o=[];else{const f=Array.from(Xp.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${f} or define customTags array`)}if(Array.isArray(a))for(const f of a)o=o.concat(f);else typeof a=="function"&&(o=a(o.slice()));return s&&(o=o.concat(Bn)),o.reduce((f,h)=>{const m=typeof h=="string"?Zp[h]:h;if(!m){const y=JSON.stringify(h),g=Object.keys(Zp).map(S=>JSON.stringify(S)).join(", ");throw new Error(`Unknown custom tag ${y}; use one of ${g}`)}return f.includes(m)||f.push(m),f},[])}const $x=(a,i)=>a.key<i.key?-1:a.key>i.key?1:0;class Af{constructor({compat:i,customTags:s,merge:r,resolveKnownTags:o,schema:f,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(i)?Bu(i,"compat"):i?Bu(null,i):null,this.name=typeof f=="string"&&f||"core",this.knownTags=o?Gx:{},this.tags=Bu(s,this.name,r),this.toStringOptions=m??null,Object.defineProperty(this,pa,{value:Zi}),Object.defineProperty(this,mn,{value:ic}),Object.defineProperty(this,Qi,{value:Ii}),this.sortMapEntries=typeof h=="function"?h:h===!0?$x:null}clone(){const i=Object.create(Af.prototype,Object.getOwnPropertyDescriptors(this));return i.tags=this.tags.slice(),i}}function Vx(a,i){const s=[];let r=i.directives===!0;if(i.directives!==!1&&a.directives){const y=a.directives.toString(a);y?(s.push(y),r=!0):a.directives.docStart&&(r=!0)}r&&s.push("---");const o=qg(a,i),{commentString:f}=o.options;if(a.commentBefore){s.length!==1&&s.unshift("");const y=f(a.commentBefore);s.unshift(Un(y,""))}let h=!1,m=null;if(a.contents){if(Je(a.contents)){if(a.contents.spaceBefore&&r&&s.push(""),a.contents.commentBefore){const S=f(a.contents.commentBefore);s.push(Un(S,""))}o.forceBlockIndent=!!a.comment,m=a.contents.comment}const y=m?void 0:()=>h=!0;let g=$i(a.contents,o,()=>m=null,y);m&&(g+=Ba(g,"",f(m))),(g[0]==="|"||g[0]===">")&&s[s.length-1]==="---"?s[s.length-1]=`--- ${g}`:s.push(g)}else s.push($i(a.contents,o));if(a.directives?.docEnd)if(a.comment){const y=f(a.comment);y.includes(`
63
+ `)?(s.push("..."),s.push(Un(y,""))):s.push(`... ${y}`)}else s.push("...");else{let y=a.comment;y&&h&&(y=y.replace(/^\n+/,"")),y&&((!h||m)&&s[s.length-1]!==""&&s.push(""),s.push(Un(f(y),"")))}return s.join(`
64
+ `)+`
65
+ `}class oc{constructor(i,s,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Jt,{value:Pu});let o=null;typeof s=="function"||Array.isArray(s)?o=s:r===void 0&&s&&(r=s,s=void 0);const f=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=f;let{version:h}=f;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new pt({version:h}),this.setSchema(h,r),this.contents=i===void 0?null:this.createNode(i,o,r)}clone(){const i=Object.create(oc.prototype,{[Jt]:{value:Pu}});return i.commentBefore=this.commentBefore,i.comment=this.comment,i.errors=this.errors.slice(),i.warnings=this.warnings.slice(),i.options=Object.assign({},this.options),this.directives&&(i.directives=this.directives.clone()),i.schema=this.schema.clone(),i.contents=Je(this.contents)?this.contents.clone(i.schema):this.contents,this.range&&(i.range=this.range.slice()),i}add(i){_i(this.contents)&&this.contents.add(i)}addIn(i,s){_i(this.contents)&&this.contents.addIn(i,s)}createAlias(i,s){if(!i.anchor){const r=Mg(this);i.anchor=!s||r.has(s)?Rg(s||"a",r):s}return new pf(i.anchor)}createNode(i,s,r){let o;if(typeof s=="function")i=s.call({"":i},"",i),o=s;else if(Array.isArray(s)){const E=G=>typeof G=="number"||G instanceof String||G instanceof Number,H=s.filter(E).map(String);H.length>0&&(s=s.concat(H)),o=s}else r===void 0&&s&&(r=s,s=void 0);const{aliasDuplicateObjects:f,anchorPrefix:h,flow:m,keepUndefined:y,onTagObj:g,tag:S}=r??{},{onAnchor:b,setAnchors:x,sourceObjects:k}=vx(this,h||"a"),O={aliasDuplicateObjects:f??!0,keepUndefined:y??!1,onAnchor:b,onTagObj:g,replacer:o,schema:this.schema,sourceObjects:k},j=Ps(i,S,O);return m&&Ie(j)&&(j.flow=!0),x(),j}createPair(i,s,r={}){const o=this.createNode(i,null,r),f=this.createNode(s,null,r);return new gt(o,f)}delete(i){return _i(this.contents)?this.contents.delete(i):!1}deleteIn(i){return Is(i)?this.contents==null?!1:(this.contents=null,!0):_i(this.contents)?this.contents.deleteIn(i):!1}get(i,s){return Ie(this.contents)?this.contents.get(i,s):void 0}getIn(i,s){return Is(i)?!s&&Le(this.contents)?this.contents.value:this.contents:Ie(this.contents)?this.contents.getIn(i,s):void 0}has(i){return Ie(this.contents)?this.contents.has(i):!1}hasIn(i){return Is(i)?this.contents!==void 0:Ie(this.contents)?this.contents.hasIn(i):!1}set(i,s){this.contents==null?this.contents=Qr(this.schema,[i],s):_i(this.contents)&&this.contents.set(i,s)}setIn(i,s){Is(i)?this.contents=s:this.contents==null?this.contents=Qr(this.schema,Array.from(i),s):_i(this.contents)&&this.contents.setIn(i,s)}setSchema(i,s={}){typeof i=="number"&&(i=String(i));let r;switch(i){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new pt({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=i:this.directives=new pt({version:i}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(i);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(s.schema instanceof Object)this.schema=s.schema;else if(r)this.schema=new Af(Object.assign(r,s));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:i,jsonArg:s,mapAsMap:r,maxAliasCount:o,onAnchor:f,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!i,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},y=It(this.contents,s??"",m);if(typeof f=="function")for(const{count:g,res:S}of m.anchors.values())f(S,g);return typeof h=="function"?Ui(h,{"":y},"",y):y}toJSON(i,s){return this.toJS({json:!0,jsonArg:i,mapAsMap:!1,onAnchor:s})}toString(i={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in i&&(!Number.isInteger(i.indent)||Number(i.indent)<=0)){const s=JSON.stringify(i.indent);throw new Error(`"indent" option must be a positive integer, not ${s}`)}return Vx(this,i)}}function _i(a){if(Ie(a))return!0;throw new Error("Expected a YAML collection as document contents")}class iy extends Error{constructor(i,s,r,o){super(),this.name=i,this.code=r,this.message=o,this.pos=s}}class Or extends iy{constructor(i,s,r){super("YAMLParseError",i,s,r)}}class Qx extends iy{constructor(i,s,r){super("YAMLWarning",i,s,r)}}const Ip=(a,i)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map(m=>i.linePos(m));const{line:r,col:o}=s.linePos[0];s.message+=` at line ${r}, column ${o}`;let f=o-1,h=a.substring(i.lineStarts[r-1],i.lineStarts[r]).replace(/[\n\r]+$/,"");if(f>=60&&h.length>80){const m=Math.min(f-39,h.length-79);h="…"+h.substring(m),f-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),r>1&&/^ *$/.test(h.substring(0,f))){let m=a.substring(i.lineStarts[r-2],i.lineStarts[r-1]);m.length>80&&(m=m.substring(0,79)+`…
66
+ `),h=m+h}if(/[^ ]/.test(h)){let m=1;const y=s.linePos[1];y?.line===r&&y.col>o&&(m=Math.max(1,Math.min(y.col-o,80-f)));const g=" ".repeat(f)+"^".repeat(m);s.message+=`:
67
+
68
+ ${h}
69
+ ${g}
70
+ `}};function Vi(a,{flow:i,indicator:s,next:r,offset:o,onError:f,parentIndent:h,startOnNewline:m}){let y=!1,g=m,S=m,b="",x="",k=!1,O=!1,j=null,E=null,H=null,G=null,R=null,B=null,K=null;for(const _ of a)switch(O&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&f(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),O=!1),j&&(g&&_.type!=="comment"&&_.type!=="newline"&&f(j,"TAB_AS_INDENT","Tabs are not allowed as indentation"),j=null),_.type){case"space":!i&&(s!=="doc-start"||r?.type!=="flow-collection")&&_.source.includes(" ")&&(j=_),S=!0;break;case"comment":{S||f(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const P=_.source.substring(1)||" ";b?b+=x+P:b=P,x="",g=!1;break}case"newline":g?b?b+=_.source:(!B||s!=="seq-item-ind")&&(y=!0):x+=_.source,g=!0,k=!0,(E||H)&&(G=_),S=!0;break;case"anchor":E&&f(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&f(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),E=_,K??(K=_.offset),g=!1,S=!1,O=!0;break;case"tag":{H&&f(_,"MULTIPLE_TAGS","A node can have at most one tag"),H=_,K??(K=_.offset),g=!1,S=!1,O=!0;break}case s:(E||H)&&f(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),B&&f(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${i??"collection"}`),B=_,g=s==="seq-item-ind"||s==="explicit-key-ind",S=!1;break;case"comma":if(i){R&&f(_,"UNEXPECTED_TOKEN",`Unexpected , in ${i}`),R=_,g=!1,S=!1;break}default:f(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),g=!1,S=!1}const X=a[a.length-1],Z=X?X.offset+X.source.length:o;return O&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&f(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),j&&(g&&j.indent<=h||r?.type==="block-map"||r?.type==="block-seq")&&f(j,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:R,found:B,spaceBefore:y,comment:b,hasNewline:k,anchor:E,tag:H,newlineAfterProp:G,end:Z,start:K??Z}}function Ws(a){if(!a)return null;switch(a.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(a.source.includes(`
71
+ `))return!0;if(a.end){for(const i of a.end)if(i.type==="newline")return!0}return!1;case"flow-collection":for(const i of a.items){for(const s of i.start)if(s.type==="newline")return!0;if(i.sep){for(const s of i.sep)if(s.type==="newline")return!0}if(Ws(i.key)||Ws(i.value))return!0}return!1;default:return!0}}function nf(a,i,s){if(i?.type==="flow-collection"){const r=i.end[0];r.indent===a&&(r.source==="]"||r.source==="}")&&Ws(i)&&s(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function sy(a,i,s){const{uniqueKeys:r}=a.options;if(r===!1)return!1;const o=typeof r=="function"?r:(f,h)=>f===h||Le(f)&&Le(h)&&f.value===h.value;return i.some(f=>o(f.key,s))}const Jp="All mapping items must start at the same column";function Xx({composeNode:a,composeEmptyNode:i},s,r,o,f){const h=f?.nodeClass??Zt,m=new h(s.schema);s.atRoot&&(s.atRoot=!1);let y=r.offset,g=null;for(const S of r.items){const{start:b,key:x,sep:k,value:O}=S,j=Vi(b,{indicator:"explicit-key-ind",next:x??k?.[0],offset:y,onError:o,parentIndent:r.indent,startOnNewline:!0}),E=!j.found;if(E){if(x&&(x.type==="block-seq"?o(y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in x&&x.indent!==r.indent&&o(y,"BAD_INDENT",Jp)),!j.anchor&&!j.tag&&!k){g=j.end,j.comment&&(m.comment?m.comment+=`
72
+ `+j.comment:m.comment=j.comment);continue}(j.newlineAfterProp||Ws(x))&&o(x??b[b.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else j.found?.indent!==r.indent&&o(y,"BAD_INDENT",Jp);s.atKey=!0;const H=j.end,G=x?a(s,x,j,o):i(s,H,b,null,j,o);s.schema.compat&&nf(r.indent,x,o),s.atKey=!1,sy(s,m.items,G)&&o(H,"DUPLICATE_KEY","Map keys must be unique");const R=Vi(k??[],{indicator:"map-value-ind",next:O,offset:G.range[2],onError:o,parentIndent:r.indent,startOnNewline:!x||x.type==="block-scalar"});if(y=R.end,R.found){E&&(O?.type==="block-map"&&!R.hasNewline&&o(y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&j.start<R.found.offset-1024&&o(G.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const B=O?a(s,O,R,o):i(s,y,k,null,R,o);s.schema.compat&&nf(r.indent,O,o),y=B.range[2];const K=new gt(G,B);s.options.keepSourceTokens&&(K.srcToken=S),m.items.push(K)}else{E&&o(G.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),R.comment&&(G.comment?G.comment+=`
73
+ `+R.comment:G.comment=R.comment);const B=new gt(G);s.options.keepSourceTokens&&(B.srcToken=S),m.items.push(B)}}return g&&g<y&&o(g,"IMPOSSIBLE","Map comment with trailing content"),m.range=[r.offset,y,g??y],m}function Zx({composeNode:a,composeEmptyNode:i},s,r,o,f){const h=f?.nodeClass??Ha,m=new h(s.schema);s.atRoot&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let y=r.offset,g=null;for(const{start:S,value:b}of r.items){const x=Vi(S,{indicator:"seq-item-ind",next:b,offset:y,onError:o,parentIndent:r.indent,startOnNewline:!0});if(!x.found)if(x.anchor||x.tag||b)b?.type==="block-seq"?o(x.end,"BAD_INDENT","All sequence items must start at the same column"):o(y,"MISSING_CHAR","Sequence item without - indicator");else{g=x.end,x.comment&&(m.comment=x.comment);continue}const k=b?a(s,b,x,o):i(s,x.end,S,null,x,o);s.schema.compat&&nf(r.indent,b,o),y=k.range[2],m.items.push(k)}return m.range=[r.offset,y,g??y],m}function ll(a,i,s,r){let o="";if(a){let f=!1,h="";for(const m of a){const{source:y,type:g}=m;switch(g){case"space":f=!0;break;case"comment":{s&&!f&&r(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const S=y.substring(1)||" ";o?o+=h+S:o=S,h="";break}case"newline":o&&(h+=y),f=!0;break;default:r(m,"UNEXPECTED_TOKEN",`Unexpected ${g} at node end`)}i+=y.length}}return{comment:o,offset:i}}const qu="Block collections are not allowed within flow collections",Hu=a=>a&&(a.type==="block-map"||a.type==="block-seq");function Ix({composeNode:a,composeEmptyNode:i},s,r,o,f){const h=r.start.source==="{",m=h?"flow map":"flow sequence",y=f?.nodeClass??(h?Zt:Ha),g=new y(s.schema);g.flow=!0;const S=s.atRoot;S&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let b=r.offset+r.start.source.length;for(let E=0;E<r.items.length;++E){const H=r.items[E],{start:G,key:R,sep:B,value:K}=H,X=Vi(G,{flow:m,indicator:"explicit-key-ind",next:R??B?.[0],offset:b,onError:o,parentIndent:r.indent,startOnNewline:!1});if(!X.found){if(!X.anchor&&!X.tag&&!B&&!K){E===0&&X.comma?o(X.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):E<r.items.length-1&&o(X.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),X.comment&&(g.comment?g.comment+=`
74
+ `+X.comment:g.comment=X.comment),b=X.end;continue}!h&&s.options.strict&&Ws(R)&&o(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(E===0)X.comma&&o(X.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(X.comma||o(X.start,"MISSING_CHAR",`Missing , between ${m} items`),X.comment){let Z="";e:for(const _ of G)switch(_.type){case"comma":case"space":break;case"comment":Z=_.source.substring(1);break e;default:break e}if(Z){let _=g.items[g.items.length-1];Fe(_)&&(_=_.value??_.key),_.comment?_.comment+=`
75
+ `+Z:_.comment=Z,X.comment=X.comment.substring(Z.length+1)}}if(!h&&!B&&!X.found){const Z=K?a(s,K,X,o):i(s,X.end,B,null,X,o);g.items.push(Z),b=Z.range[2],Hu(K)&&o(Z.range,"BLOCK_IN_FLOW",qu)}else{s.atKey=!0;const Z=X.end,_=R?a(s,R,X,o):i(s,Z,G,null,X,o);Hu(R)&&o(_.range,"BLOCK_IN_FLOW",qu),s.atKey=!1;const P=Vi(B??[],{flow:m,indicator:"map-value-ind",next:K,offset:_.range[2],onError:o,parentIndent:r.indent,startOnNewline:!1});if(P.found){if(!h&&!X.found&&s.options.strict){if(B)for(const le of B){if(le===P.found)break;if(le.type==="newline"){o(le,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}X.start<P.found.offset-1024&&o(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else K&&("source"in K&&K.source?.[0]===":"?o(K,"MISSING_CHAR",`Missing space after : in ${m}`):o(P.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const Se=K?a(s,K,P,o):P.found?i(s,P.end,B,null,P,o):null;Se?Hu(K)&&o(Se.range,"BLOCK_IN_FLOW",qu):P.comment&&(_.comment?_.comment+=`
76
+ `+P.comment:_.comment=P.comment);const W=new gt(_,Se);if(s.options.keepSourceTokens&&(W.srcToken=H),h){const le=g;sy(s,le.items,_)&&o(Z,"DUPLICATE_KEY","Map keys must be unique"),le.items.push(W)}else{const le=new Zt(s.schema);le.flow=!0,le.items.push(W);const Ye=(Se??_).range;le.range=[_.range[0],Ye[1],Ye[2]],g.items.push(le)}b=Se?Se.range[2]:P.end}}const x=h?"}":"]",[k,...O]=r.end;let j=b;if(k?.source===x)j=k.offset+k.source.length;else{const E=m[0].toUpperCase()+m.substring(1),H=S?`${E} must end with a ${x}`:`${E} in block collection must be sufficiently indented and end with a ${x}`;o(b,S?"MISSING_CHAR":"BAD_INDENT",H),k&&k.source.length!==1&&O.unshift(k)}if(O.length>0){const E=ll(O,j,s.options.strict,o);E.comment&&(g.comment?g.comment+=`
77
+ `+E.comment:g.comment=E.comment),g.range=[r.offset,j,E.offset]}else g.range=[r.offset,j,j];return g}function Ku(a,i,s,r,o,f){const h=s.type==="block-map"?Xx(a,i,s,r,f):s.type==="block-seq"?Zx(a,i,s,r,f):Ix(a,i,s,r,f),m=h.constructor;return o==="!"||o===m.tagName?(h.tag=m.tagName,h):(o&&(h.tag=o),h)}function Jx(a,i,s,r,o){const f=r.tag,h=f?i.directives.tagName(f.source,x=>o(f,"TAG_RESOLVE_FAILED",x)):null;if(s.type==="block-seq"){const{anchor:x,newlineAfterProp:k}=r,O=x&&f?x.offset>f.offset?x:f:x??f;O&&(!k||k.offset<O.offset)&&o(O,"MISSING_CHAR","Missing newline after block sequence props")}const m=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!f||!h||h==="!"||h===Zt.tagName&&m==="map"||h===Ha.tagName&&m==="seq")return Ku(a,i,s,o,h);let y=i.schema.tags.find(x=>x.tag===h&&x.collection===m);if(!y){const x=i.schema.knownTags[h];if(x?.collection===m)i.schema.tags.push(Object.assign({},x,{default:!1})),y=x;else return x?o(f,"BAD_COLLECTION_TYPE",`${x.tag} used for ${m} collection, but expects ${x.collection??"scalar"}`,!0):o(f,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),Ku(a,i,s,o,h)}const g=Ku(a,i,s,o,h,y),S=y.resolve?.(g,x=>o(f,"TAG_RESOLVE_FAILED",x),i.options)??g,b=Je(S)?S:new ge(S);return b.range=g.range,b.tag=h,y?.format&&(b.format=y.format),b}function Fx(a,i,s){const r=i.offset,o=Px(i,a.options.strict,s);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const f=o.mode===">"?ge.BLOCK_FOLDED:ge.BLOCK_LITERAL,h=i.source?Wx(i.source):[];let m=h.length;for(let j=h.length-1;j>=0;--j){const E=h[j][1];if(E===""||E==="\r")m=j;else break}if(m===0){const j=o.chomp==="+"&&h.length>0?`
78
+ `.repeat(Math.max(1,h.length-1)):"";let E=r+o.length;return i.source&&(E+=i.source.length),{value:j,type:f,comment:o.comment,range:[r,E,E]}}let y=i.indent+o.indent,g=i.offset+o.length,S=0;for(let j=0;j<m;++j){const[E,H]=h[j];if(H===""||H==="\r")o.indent===0&&E.length>y&&(y=E.length);else{E.length<y&&s(g+E.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(y=E.length),S=j,y===0&&!a.atRoot&&s(g,"BAD_INDENT","Block scalar values in collections must be indented");break}g+=E.length+H.length+1}for(let j=h.length-1;j>=m;--j)h[j][0].length>y&&(m=j+1);let b="",x="",k=!1;for(let j=0;j<S;++j)b+=h[j][0].slice(y)+`
79
+ `;for(let j=S;j<m;++j){let[E,H]=h[j];g+=E.length+H.length+1;const G=H[H.length-1]==="\r";if(G&&(H=H.slice(0,-1)),H&&E.length<y){const B=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;s(g-H.length-(G?2:1),"BAD_INDENT",B),E=""}f===ge.BLOCK_LITERAL?(b+=x+E.slice(y)+H,x=`
80
+ `):E.length>y||H[0]===" "?(x===" "?x=`
81
+ `:!k&&x===`
82
+ `&&(x=`
83
+
84
+ `),b+=x+E.slice(y)+H,x=`
85
+ `,k=!0):H===""?x===`
86
+ `?b+=`
87
+ `:x=`
88
+ `:(b+=x+H,x=" ",k=!1)}switch(o.chomp){case"-":break;case"+":for(let j=m;j<h.length;++j)b+=`
89
+ `+h[j][0].slice(y);b[b.length-1]!==`
90
+ `&&(b+=`
91
+ `);break;default:b+=`
92
+ `}const O=r+o.length+i.source.length;return{value:b,type:f,comment:o.comment,range:[r,O,O]}}function Px({offset:a,props:i},s,r){if(i[0].type!=="block-scalar-header")return r(i[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=i[0],f=o[0];let h=0,m="",y=-1;for(let x=1;x<o.length;++x){const k=o[x];if(!m&&(k==="-"||k==="+"))m=k;else{const O=Number(k);!h&&O?h=O:y===-1&&(y=a+x)}}y!==-1&&r(y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let g=!1,S="",b=o.length;for(let x=1;x<i.length;++x){const k=i[x];switch(k.type){case"space":g=!0;case"newline":b+=k.source.length;break;case"comment":s&&!g&&r(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),b+=k.source.length,S=k.source.substring(1);break;case"error":r(k,"UNEXPECTED_TOKEN",k.message),b+=k.source.length;break;default:{const O=`Unexpected token in block scalar header: ${k.type}`;r(k,"UNEXPECTED_TOKEN",O);const j=k.source;j&&typeof j=="string"&&(b+=j.length)}}}return{mode:f,indent:h,chomp:m,comment:S,length:b}}function Wx(a){const i=a.split(/\n( *)/),s=i[0],r=s.match(/^( *)/),f=[r?.[1]?[r[1],s.slice(r[1].length)]:["",s]];for(let h=1;h<i.length;h+=2)f.push([i[h],i[h+1]]);return f}function eS(a,i,s){const{offset:r,type:o,source:f,end:h}=a;let m,y;const g=(x,k,O)=>s(r+x,k,O);switch(o){case"scalar":m=ge.PLAIN,y=tS(f,g);break;case"single-quoted-scalar":m=ge.QUOTE_SINGLE,y=nS(f,g);break;case"double-quoted-scalar":m=ge.QUOTE_DOUBLE,y=aS(f,g);break;default:return s(a,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+f.length,r+f.length]}}const S=r+f.length,b=ll(h,S,i,s);return{value:y,type:m,comment:b.comment,range:[r,S,b.offset]}}function tS(a,i){let s="";switch(a[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${a[0]}`;break}case"@":case"`":{s=`reserved character ${a[0]}`;break}}return s&&i(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),ly(a)}function nS(a,i){return(a[a.length-1]!=="'"||a.length===1)&&i(a.length,"MISSING_CHAR","Missing closing 'quote"),ly(a.slice(1,-1)).replace(/''/g,"'")}function ly(a){let i,s;try{i=new RegExp(`(.*?)(?<![ ])[ ]*\r?
93
+ `,"sy"),s=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
94
+ `,"sy")}catch{i=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=i.exec(a);if(!r)return a;let o=r[1],f=" ",h=i.lastIndex;for(s.lastIndex=h;r=s.exec(a);)r[1]===""?f===`
95
+ `?o+=f:f=`
96
+ `:(o+=f+r[1],f=" "),h=s.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,r=m.exec(a),o+f+(r?.[1]??"")}function aS(a,i){let s="";for(let r=1;r<a.length-1;++r){const o=a[r];if(!(o==="\r"&&a[r+1]===`
97
+ `))if(o===`
98
+ `){const{fold:f,offset:h}=iS(a,r);s+=f,r=h}else if(o==="\\"){let f=a[++r];const h=sS[f];if(h)s+=h;else if(f===`
99
+ `)for(f=a[r+1];f===" "||f===" ";)f=a[++r+1];else if(f==="\r"&&a[r+1]===`
100
+ `)for(f=a[++r+1];f===" "||f===" ";)f=a[++r+1];else if(f==="x"||f==="u"||f==="U"){const m={x:2,u:4,U:8}[f];s+=lS(a,r+1,m,i),r+=m}else{const m=a.substr(r-1,2);i(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),s+=m}}else if(o===" "||o===" "){const f=r;let h=a[r+1];for(;h===" "||h===" ";)h=a[++r+1];h!==`
101
+ `&&!(h==="\r"&&a[r+2]===`
102
+ `)&&(s+=r>f?a.slice(f,r+1):o)}else s+=o}return(a[a.length-1]!=='"'||a.length===1)&&i(a.length,"MISSING_CHAR",'Missing closing "quote'),s}function iS(a,i){let s="",r=a[i+1];for(;(r===" "||r===" "||r===`
103
+ `||r==="\r")&&!(r==="\r"&&a[i+2]!==`
104
+ `);)r===`
105
+ `&&(s+=`
106
+ `),i+=1,r=a[i+1];return s||(s=" "),{fold:s,offset:i}}const sS={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
107
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function lS(a,i,s,r){const o=a.substr(i,s),h=o.length===s&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(h)){const m=a.substr(i-2,s+2);return r(i-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function ry(a,i,s,r){const{value:o,type:f,comment:h,range:m}=i.type==="block-scalar"?Fx(a,i,r):eS(i,a.options.strict,r),y=s?a.directives.tagName(s.source,b=>r(s,"TAG_RESOLVE_FAILED",b)):null;let g;a.options.stringKeys&&a.atKey?g=a.schema[mn]:y?g=rS(a.schema,o,y,s,r):i.type==="scalar"?g=cS(a,o,i,r):g=a.schema[mn];let S;try{const b=g.resolve(o,x=>r(s??i,"TAG_RESOLVE_FAILED",x),a.options);S=Le(b)?b:new ge(b)}catch(b){const x=b instanceof Error?b.message:String(b);r(s??i,"TAG_RESOLVE_FAILED",x),S=new ge(o)}return S.range=m,S.source=o,f&&(S.type=f),y&&(S.tag=y),g.format&&(S.format=g.format),h&&(S.comment=h),S}function rS(a,i,s,r,o){if(s==="!")return a[mn];const f=[];for(const m of a.tags)if(!m.collection&&m.tag===s)if(m.default&&m.test)f.push(m);else return m;for(const m of f)if(m.test?.test(i))return m;const h=a.knownTags[s];return h&&!h.collection?(a.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),a[mn])}function cS({atKey:a,directives:i,schema:s},r,o,f){const h=s.tags.find(m=>(m.default===!0||a&&m.default==="key")&&m.test?.test(r))||s[mn];if(s.compat){const m=s.compat.find(y=>y.default&&y.test?.test(r))??s[mn];if(h.tag!==m.tag){const y=i.tagString(h.tag),g=i.tagString(m.tag),S=`Value may be parsed as either ${y} or ${g}`;f(o,"TAG_RESOLVE_FAILED",S,!0)}}return h}function oS(a,i,s){if(i){s??(s=i.length);for(let r=s-1;r>=0;--r){let o=i[r];switch(o.type){case"space":case"comment":case"newline":a-=o.source.length;continue}for(o=i[++r];o?.type==="space";)a+=o.source.length,o=i[++r];break}}return a}const uS={composeNode:cy,composeEmptyNode:Cf};function cy(a,i,s,r){const o=a.atKey,{spaceBefore:f,comment:h,anchor:m,tag:y}=s;let g,S=!0;switch(i.type){case"alias":g=fS(a,i,r),(m||y)&&r(i,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=ry(a,i,y,r),m&&(g.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":g=Jx(uS,a,i,s,r),m&&(g.anchor=m.source.substring(1));break;default:{const b=i.type==="error"?i.message:`Unsupported token (type: ${i.type})`;r(i,"UNEXPECTED_TOKEN",b),g=Cf(a,i.offset,void 0,null,s,r),S=!1}}return m&&g.anchor===""&&r(m,"BAD_ALIAS","Anchor cannot be an empty string"),o&&a.options.stringKeys&&(!Le(g)||typeof g.value!="string"||g.tag&&g.tag!=="tag:yaml.org,2002:str")&&r(y??i,"NON_STRING_KEY","With stringKeys, all keys must be strings"),f&&(g.spaceBefore=!0),h&&(i.type==="scalar"&&i.source===""?g.comment=h:g.commentBefore=h),a.options.keepSourceTokens&&S&&(g.srcToken=i),g}function Cf(a,i,s,r,{spaceBefore:o,comment:f,anchor:h,tag:m,end:y},g){const S={type:"scalar",offset:oS(i,s,r),indent:-1,source:""},b=ry(a,S,m,g);return h&&(b.anchor=h.source.substring(1),b.anchor===""&&g(h,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(b.spaceBefore=!0),f&&(b.comment=f,b.range[2]=y),b}function fS({options:a},{offset:i,source:s,end:r},o){const f=new pf(s.substring(1));f.source===""&&o(i,"BAD_ALIAS","Alias cannot be an empty string"),f.source.endsWith(":")&&o(i+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=i+s.length,m=ll(r,h,a.strict,o);return f.range=[i,h,m.offset],m.comment&&(f.comment=m.comment),f}function dS(a,i,{offset:s,start:r,value:o,end:f},h){const m=Object.assign({_directives:i},a),y=new oc(void 0,m),g={atKey:!1,atRoot:!0,directives:y.directives,options:y.options,schema:y.schema},S=Vi(r,{indicator:"doc-start",next:o??f?.[0],offset:s,onError:h,parentIndent:0,startOnNewline:!0});S.found&&(y.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!S.hasNewline&&h(S.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),y.contents=o?cy(g,o,S,h):Cf(g,S.end,r,null,S,h);const b=y.contents.range[2],x=ll(f,b,!1,h);return x.comment&&(y.comment=x.comment),y.range=[s,b,x.offset],y}function Qs(a){if(typeof a=="number")return[a,a+1];if(Array.isArray(a))return a.length===2?a:[a[0],a[1]];const{offset:i,source:s}=a;return[i,i+(typeof s=="string"?s.length:1)]}function Fp(a){let i="",s=!1,r=!1;for(let o=0;o<a.length;++o){const f=a[o];switch(f[0]){case"#":i+=(i===""?"":r?`
108
+
109
+ `:`
110
+ `)+(f.substring(1)||" "),s=!0,r=!1;break;case"%":a[o+1]?.[0]!=="#"&&(o+=1),s=!1;break;default:s||(r=!0),s=!1}}return{comment:i,afterEmptyLine:r}}class hS{constructor(i={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(s,r,o,f)=>{const h=Qs(s);f?this.warnings.push(new Qx(h,r,o)):this.errors.push(new Or(h,r,o))},this.directives=new pt({version:i.version||"1.2"}),this.options=i}decorate(i,s){const{comment:r,afterEmptyLine:o}=Fp(this.prelude);if(r){const f=i.contents;if(s)i.comment=i.comment?`${i.comment}
111
+ ${r}`:r;else if(o||i.directives.docStart||!f)i.commentBefore=r;else if(Ie(f)&&!f.flow&&f.items.length>0){let h=f.items[0];Fe(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${r}
112
+ ${m}`:r}else{const h=f.commentBefore;f.commentBefore=h?`${r}
113
+ ${h}`:r}}s?(Array.prototype.push.apply(i.errors,this.errors),Array.prototype.push.apply(i.warnings,this.warnings)):(i.errors=this.errors,i.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Fp(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(i,s=!1,r=-1){for(const o of i)yield*this.next(o);yield*this.end(s,r)}*next(i){switch(i.type){case"directive":this.directives.add(i.source,(s,r,o)=>{const f=Qs(i);f[0]+=s,this.onError(f,"BAD_DIRECTIVE",r,o)}),this.prelude.push(i.source),this.atDirectives=!0;break;case"document":{const s=dS(this.options,this.directives,i,this.onError);this.atDirectives&&!s.directives.docStart&&this.onError(i,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(s,!1),this.doc&&(yield this.doc),this.doc=s,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(i.source);break;case"error":{const s=i.source?`${i.message}: ${JSON.stringify(i.source)}`:i.message,r=new Or(Qs(i),"UNEXPECTED_TOKEN",s);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Or(Qs(i),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const s=ll(i.end,i.offset+i.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),s.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
114
+ ${s.comment}`:s.comment}this.doc.range[2]=s.offset;break}default:this.errors.push(new Or(Qs(i),"UNEXPECTED_TOKEN",`Unsupported token ${i.type}`))}}*end(i=!1,s=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(i){const r=Object.assign({_directives:this.directives},this.options),o=new oc(void 0,r);this.atDirectives&&this.onError(s,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,s,s],this.decorate(o,!1),yield o}}}const oy="\uFEFF",uy="",fy="",af="";function mS(a){switch(a){case oy:return"byte-order-mark";case uy:return"doc-mode";case fy:return"flow-error-end";case af:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
+ `:case`\r
116
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(a[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function sn(a){switch(a){case void 0:case" ":case`
117
+ `:case"\r":case" ":return!0;default:return!1}}const Pp=new Set("0123456789ABCDEFabcdef"),pS=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),_r=new Set(",[]{}"),gS=new Set(` ,[]{}
118
+ \r `),Yu=a=>!a||gS.has(a);class yS{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(i,s=!1){if(i){if(typeof i!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+i:i,this.lineEndPos=null}this.atEnd=!s;let r=this.next??"stream";for(;r&&(s||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let i=this.pos,s=this.buffer[i];for(;s===" "||s===" ";)s=this.buffer[++i];return!s||s==="#"||s===`
119
+ `?!0:s==="\r"?this.buffer[i+1]===`
120
+ `:!1}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let s=this.buffer[i];if(this.indentNext>0){let r=0;for(;s===" ";)s=this.buffer[++r+i];if(s==="\r"){const o=this.buffer[r+i+1];if(o===`
121
+ `||!o&&!this.atEnd)return i+r+1}return s===`
122
+ `||r>=this.indentNext||!s&&!this.atEnd?i+r:-1}if(s==="-"||s==="."){const r=this.buffer.substr(i,3);if((r==="---"||r==="...")&&sn(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;return(typeof i!="number"||i!==-1&&i<this.pos)&&(i=this.buffer.indexOf(`
123
+ `,this.pos),this.lineEndPos=i),i===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[i-1]==="\r"&&(i-=1),this.buffer.substring(this.pos,i))}hasChars(i){return this.pos+i<=this.buffer.length}setNext(i){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=i,null}peek(i){return this.buffer.substr(this.pos,i)}*parseNext(i){switch(i){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let i=this.getLine();if(i===null)return this.setNext("stream");if(i[0]===oy&&(yield*this.pushCount(1),i=i.substring(1)),i[0]==="%"){let s=i.length,r=i.indexOf("#");for(;r!==-1;){const f=i[r-1];if(f===" "||f===" "){s=r-1;break}else r=i.indexOf("#",r+1)}for(;;){const f=i[s-1];if(f===" "||f===" ")s-=1;else break}const o=(yield*this.pushCount(s))+(yield*this.pushSpaces(!0));return yield*this.pushCount(i.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const s=yield*this.pushSpaces(!0);return yield*this.pushCount(i.length-s),yield*this.pushNewline(),"stream"}return yield uy,yield*this.parseLineStart()}*parseLineStart(){const i=this.charAt(0);if(!i&&!this.atEnd)return this.setNext("line-start");if(i==="-"||i==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const s=this.peek(3);if((s==="---"||s==="...")&&sn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,s==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!sn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[i,s]=this.peek(2);if(!s&&!this.atEnd)return this.setNext("block-start");if((i==="-"||i==="?"||i===":")&&sn(s)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const i=this.getLine();if(i===null)return this.setNext("doc");let s=yield*this.pushIndicators();switch(i[s]){case"#":yield*this.pushCount(i.length-s);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Yu),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return s+=yield*this.parseBlockScalarHeader(),s+=yield*this.pushSpaces(!0),yield*this.pushCount(i.length-s),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,s,r=-1;do i=yield*this.pushNewline(),i>0?(s=yield*this.pushSpaces(!1),this.indentValue=r=s):s=0,s+=yield*this.pushSpaces(!0);while(i+s>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&sn(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield fy,yield*this.parseLineStart();let f=0;for(;o[f]===",";)f+=yield*this.pushCount(1),f+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(f+=yield*this.pushIndicators(),o[f]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-f),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Yu),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||sn(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const i=this.charAt(0);let s=this.buffer.indexOf(i,this.pos+1);if(i==="'")for(;s!==-1&&this.buffer[s+1]==="'";)s=this.buffer.indexOf("'",s+2);else for(;s!==-1;){let f=0;for(;this.buffer[s-1-f]==="\\";)f+=1;if(f%2===0)break;s=this.buffer.indexOf('"',s+1)}const r=this.buffer.substring(0,s);let o=r.indexOf(`
124
+ `,this.pos);if(o!==-1){for(;o!==-1;){const f=this.continueScalar(o+1);if(f===-1)break;o=r.indexOf(`
125
+ `,f)}o!==-1&&(s=o-(r[o-1]==="\r"?2:1))}if(s===-1){if(!this.atEnd)return this.setNext("quoted-scalar");s=this.buffer.length}return yield*this.pushToIndex(s+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let i=this.pos;for(;;){const s=this.buffer[++i];if(s==="+")this.blockScalarKeep=!0;else if(s>"0"&&s<="9")this.blockScalarIndent=Number(s)-1;else if(s!=="-")break}return yield*this.pushUntil(s=>sn(s)||s==="#")}*parseBlockScalar(){let i=this.pos-1,s=0,r;e:for(let f=this.pos;r=this.buffer[f];++f)switch(r){case" ":s+=1;break;case`
126
+ `:i=f,s=0;break;case"\r":{const h=this.buffer[f+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
127
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=s:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const f=this.continueScalar(i+1);if(f===-1)break;i=this.buffer.indexOf(`
128
+ `,f)}while(i!==-1);if(i===-1){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}let o=i+1;for(r=this.buffer[o];r===" ";)r=this.buffer[++o];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
129
+ `;)r=this.buffer[++o];i=o-1}else if(!this.blockScalarKeep)do{let f=i-1,h=this.buffer[f];h==="\r"&&(h=this.buffer[--f]);const m=f;for(;h===" ";)h=this.buffer[--f];if(h===`
130
+ `&&f>=this.pos&&f+1+s>m)i=f;else break}while(!0);return yield af,yield*this.pushToIndex(i+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const i=this.flowLevel>0;let s=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const f=this.buffer[r+1];if(sn(f)||i&&_r.has(f))break;s=r}else if(sn(o)){let f=this.buffer[r+1];if(o==="\r"&&(f===`
131
+ `?(r+=1,o=`
132
+ `,f=this.buffer[r+1]):s=r),f==="#"||i&&_r.has(f))break;if(o===`
133
+ `){const h=this.continueScalar(r+1);if(h===-1)break;r=Math.max(r,h-2)}}else{if(i&&_r.has(o))break;s=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield af,yield*this.pushToIndex(s+1,!0),i?"flow":"doc")}*pushCount(i){return i>0?(yield this.buffer.substr(this.pos,i),this.pos+=i,i):0}*pushToIndex(i,s){const r=this.buffer.slice(this.pos,i);return r?(yield r,this.pos+=r.length,r.length):(s&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Yu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const i=this.flowLevel>0,s=this.charAt(1);if(sn(s)||i&&_r.has(s))return i?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let i=this.pos+2,s=this.buffer[i];for(;!sn(s)&&s!==">";)s=this.buffer[++i];return yield*this.pushToIndex(s===">"?i+1:i,!1)}else{let i=this.pos+1,s=this.buffer[i];for(;s;)if(pS.has(s))s=this.buffer[++i];else if(s==="%"&&Pp.has(this.buffer[i+1])&&Pp.has(this.buffer[i+2]))s=this.buffer[i+=3];else break;return yield*this.pushToIndex(i,!1)}}*pushNewline(){const i=this.buffer[this.pos];return i===`
134
+ `?yield*this.pushCount(1):i==="\r"&&this.charAt(1)===`
135
+ `?yield*this.pushCount(2):0}*pushSpaces(i){let s=this.pos-1,r;do r=this.buffer[++s];while(r===" "||i&&r===" ");const o=s-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=s),o}*pushUntil(i){let s=this.pos,r=this.buffer[s];for(;!i(r);)r=this.buffer[++s];return yield*this.pushToIndex(s,!1)}}class vS{constructor(){this.lineStarts=[],this.addNewLine=i=>this.lineStarts.push(i),this.linePos=i=>{let s=0,r=this.lineStarts.length;for(;s<r;){const f=s+r>>1;this.lineStarts[f]<i?s=f+1:r=f}if(this.lineStarts[s]===i)return{line:s+1,col:1};if(s===0)return{line:0,col:i};const o=this.lineStarts[s-1];return{line:s,col:i-o+1}}}}function ma(a,i){for(let s=0;s<a.length;++s)if(a[s].type===i)return!0;return!1}function Wp(a){for(let i=0;i<a.length;++i)switch(a[i].type){case"space":case"comment":case"newline":break;default:return i}return-1}function dy(a){switch(a?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function zr(a){switch(a.type){case"document":return a.start;case"block-map":{const i=a.items[a.items.length-1];return i.sep??i.start}case"block-seq":return a.items[a.items.length-1].start;default:return[]}}function zi(a){if(a.length===0)return[];let i=a.length;e:for(;--i>=0;)switch(a[i].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;a[++i]?.type==="space";);return a.splice(i,a.length)}function eg(a){if(a.start.type==="flow-seq-start")for(const i of a.items)i.sep&&!i.value&&!ma(i.start,"explicit-key-ind")&&!ma(i.sep,"map-value-ind")&&(i.key&&(i.value=i.key),delete i.key,dy(i.value)?i.value.end?Array.prototype.push.apply(i.value.end,i.sep):i.value.end=i.sep:Array.prototype.push.apply(i.start,i.sep),delete i.sep)}class bS{constructor(i){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new yS,this.onNewLine=i}*parse(i,s=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(i,s))yield*this.next(r);s||(yield*this.end())}*next(i){if(this.source=i,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=i.length;return}const s=mS(i);if(s)if(s==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=s,yield*this.step(),s){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+i.length);break;case"space":this.atNewLine&&i[0]===" "&&(this.indent+=i.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=i.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=i.length}else{const r=`Not a YAML token: ${i}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:i}),this.offset+=i.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const i=this.peek(1);if(this.type==="doc-end"&&i?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!i)return yield*this.stream();switch(i.type){case"document":return yield*this.document(i);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(i);case"block-scalar":return yield*this.blockScalar(i);case"block-map":return yield*this.blockMap(i);case"block-seq":return yield*this.blockSequence(i);case"flow-collection":return yield*this.flowCollection(i);case"doc-end":return yield*this.documentEnd(i)}yield*this.pop()}peek(i){return this.stack[this.stack.length-i]}*pop(i){const s=i??this.stack.pop();if(!s)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield s;else{const r=this.peek(1);switch(s.type==="block-scalar"?s.indent="indent"in r?r.indent:0:s.type==="flow-collection"&&r.type==="document"&&(s.indent=0),s.type==="flow-collection"&&eg(s),r.type){case"document":r.value=s;break;case"block-scalar":r.props.push(s);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:s,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=s;else{Object.assign(o,{key:s,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:s}):o.value=s;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:s,sep:[]}):o.sep?o.value=s:Object.assign(o,{key:s,sep:[]});return}default:yield*this.pop(),yield*this.pop(s)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(s.type==="block-map"||s.type==="block-seq")){const o=s.items[s.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Wp(o.start)===-1&&(s.indent===0||o.start.every(f=>f.type!=="comment"||f.indent<s.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),s.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const i={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&i.start.push(this.sourceToken),this.stack.push(i);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(i){if(i.value)return yield*this.lineEnd(i);switch(this.type){case"doc-start":{Wp(i.start)!==-1?(yield*this.pop(),yield*this.step()):i.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":i.start.push(this.sourceToken);return}const s=this.startBlockValue(i);s?this.stack.push(s):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(i){if(this.type==="map-value-ind"){const s=zr(this.peek(2)),r=zi(s);let o;i.end?(o=i.end,o.push(this.sourceToken),delete i.end):o=[this.sourceToken];const f={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:r,key:i,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(i)}*blockScalar(i){switch(this.type){case"space":case"comment":case"newline":i.props.push(this.sourceToken);return;case"scalar":if(i.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let s=this.source.indexOf(`
136
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
137
+ `,s)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(i){const s=i.items[i.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,s.value){const r="end"in s.value?s.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):i.items.push({start:[this.sourceToken]})}else s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)i.items.push({start:[this.sourceToken]});else if(s.sep)s.sep.push(this.sourceToken);else{if(this.atIndentedComment(s.start,i.indent)){const o=i.items[i.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,s.start),o.push(this.sourceToken),i.items.pop();return}}s.start.push(this.sourceToken)}return}if(this.indent>=i.indent){const r=!this.onKeyLine&&this.indent===i.indent,o=r&&(s.sep||s.explicitKey)&&this.type!=="seq-item-ind";let f=[];if(o&&s.sep&&!s.value){const h=[];for(let m=0;m<s.sep.length;++m){const y=s.sep[m];switch(y.type){case"newline":h.push(m);break;case"space":break;case"comment":y.indent>i.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(f=s.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":o||s.value?(f.push(this.sourceToken),i.items.push({start:f}),this.onKeyLine=!0):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"explicit-key-ind":!s.sep&&!s.explicitKey?(s.start.push(this.sourceToken),s.explicitKey=!0):o||s.value?(f.push(this.sourceToken),i.items.push({start:f,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(s.explicitKey)if(s.sep)if(s.value)i.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ma(s.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]});else if(dy(s.key)&&!ma(s.sep,"newline")){const h=zi(s.start),m=s.key,y=s.sep;y.push(this.sourceToken),delete s.key,delete s.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:m,sep:y}]})}else f.length>0?s.sep=s.sep.concat(f,this.sourceToken):s.sep.push(this.sourceToken);else if(ma(s.start,"newline"))Object.assign(s,{key:null,sep:[this.sourceToken]});else{const h=zi(s.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else s.sep?s.value||o?i.items.push({start:f,key:null,sep:[this.sourceToken]}):ma(s.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const h=this.flowScalar(this.type);o||s.value?(i.items.push({start:f,key:h,sep:[]}),this.onKeyLine=!0):s.sep?this.stack.push(h):(Object.assign(s,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{const h=this.startBlockValue(i);if(h){if(h.type==="block-seq"){if(!s.explicitKey&&s.sep&&!ma(s.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&i.items.push({start:f});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(i){const s=i.items[i.items.length-1];switch(this.type){case"newline":if(s.value){const r="end"in s.value?s.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):i.items.push({start:[this.sourceToken]})}else s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)i.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(s.start,i.indent)){const o=i.items[i.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,s.start),o.push(this.sourceToken),i.items.pop();return}}s.start.push(this.sourceToken)}return;case"anchor":case"tag":if(s.value||this.indent<=i.indent)break;s.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==i.indent)break;s.value||ma(s.start,"seq-item-ind")?i.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return}if(this.indent>i.indent){const r=this.startBlockValue(i);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(i){const s=i.items[i.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(i.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!s||s.sep?i.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return;case"map-value-ind":!s||s.value?i.items.push({start:[],key:null,sep:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!s||s.value?i.items.push({start:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!s||s.value?i.items.push({start:[],key:o,sep:[]}):s.sep?this.stack.push(o):Object.assign(s,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":i.end.push(this.sourceToken);return}const r=this.startBlockValue(i);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===i.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=zr(r),f=zi(o);eg(i);const h=i.end.splice(1,i.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:f,key:i,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(i)}}flowScalar(i){if(this.onNewLine){let s=this.source.indexOf(`
138
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
139
+ `,s)+1}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const s=zr(i),r=zi(s);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const s=zr(i),r=zi(s);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,s){return this.type!=="comment"||this.indent<=s?!1:i.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(i){this.type!=="doc-mode"&&(i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function xS(a){const i=a.prettyErrors!==!1;return{lineCounter:a.lineCounter||i&&new vS||null,prettyErrors:i}}function SS(a,i={}){const{lineCounter:s,prettyErrors:r}=xS(i),o=new bS(s?.addNewLine),f=new hS(i),h=Array.from(f.compose(o.parse(a)));if(r&&s)for(const m of h)m.errors.forEach(Ip(a,s)),m.warnings.forEach(Ip(a,s));return h.length>0?h:Object.assign([],{empty:!0},f.streamInfo())}const jS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,r)=>r?r.toUpperCase():s.toLowerCase()),tg=a=>{const i=wS(a);return i.charAt(0).toUpperCase()+i.slice(1)},hy=(...a)=>a.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim(),NS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};var ES={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const AS=w.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:h,...m},y)=>w.createElement("svg",{ref:y,...ES,width:i,height:i,stroke:a,strokeWidth:r?Number(s)*24/Number(i):s,className:hy("lucide",o),...!f&&!NS(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,S])=>w.createElement(g,S)),...Array.isArray(f)?f:[f]]));const rn=(a,i)=>{const s=w.forwardRef(({className:r,...o},f)=>w.createElement(AS,{ref:f,iconNode:i,className:hy(`lucide-${jS(tg(a))}`,`lucide-${a}`,r),...o}));return s.displayName=tg(a),s};const CS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kf=rn("chevron-right",CS);const kS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],TS=rn("download",kS);const OS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],_S=rn("globe",OS);const zS=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],DS=rn("layout-dashboard",zS);const MS=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],RS=rn("menu",MS);const LS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],US=rn("play",LS);const BS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ng=rn("plus",BS);const qS=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],HS=rn("rocket",qS);const KS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],YS=rn("settings",KS);const GS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],$S=rn("trash-2",GS);const VS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],my=rn("x",VS);function py(a){var i,s,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(i=0;i<o;i++)a[i]&&(s=py(a[i]))&&(r&&(r+=" "),r+=s)}else for(s in a)a[s]&&(r&&(r+=" "),r+=s);return r}function gy(){for(var a,i,s=0,r="",o=arguments.length;s<o;s++)(a=arguments[s])&&(i=py(a))&&(r&&(r+=" "),r+=i);return r}const ag=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,ig=gy,yy=(a,i)=>s=>{var r;if(i?.variants==null)return ig(a,s?.class,s?.className);const{variants:o,defaultVariants:f}=i,h=Object.keys(o).map(g=>{const S=s?.[g],b=f?.[g];if(S===null)return null;const x=ag(S)||ag(b);return o[g][x]}),m=s&&Object.entries(s).reduce((g,S)=>{let[b,x]=S;return x===void 0||(g[b]=x),g},{}),y=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((g,S)=>{let{class:b,className:x,...k}=S;return Object.entries(k).every(O=>{let[j,E]=O;return Array.isArray(E)?E.includes({...f,...m}[j]):{...f,...m}[j]===E})?[...g,b,x]:g},[]);return ig(a,h,y,s?.class,s?.className)},QS=(a,i)=>{const s=new Array(a.length+i.length);for(let r=0;r<a.length;r++)s[r]=a[r];for(let r=0;r<i.length;r++)s[a.length+r]=i[r];return s},XS=(a,i)=>({classGroupId:a,validator:i}),vy=(a=new Map,i=null,s)=>({nextPart:a,validators:i,classGroupId:s}),Zr="-",sg=[],ZS="arbitrary..",IS=a=>{const i=FS(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return JS(h);const m=h.split(Zr),y=m[0]===""&&m.length>1?1:0;return by(m,y,i)},getConflictingClassGroupIds:(h,m)=>{if(m){const y=r[h],g=s[h];return y?g?QS(g,y):y:g||sg}return s[h]||sg}}},by=(a,i,s)=>{if(a.length-i===0)return s.classGroupId;const o=a[i],f=s.nextPart.get(o);if(f){const g=by(a,i+1,f);if(g)return g}const h=s.validators;if(h===null)return;const m=i===0?a.join(Zr):a.slice(i).join(Zr),y=h.length;for(let g=0;g<y;g++){const S=h[g];if(S.validator(m))return S.classGroupId}},JS=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),s=i.indexOf(":"),r=i.slice(0,s);return r?ZS+r:void 0})(),FS=a=>{const{theme:i,classGroups:s}=a;return PS(s,i)},PS=(a,i)=>{const s=vy();for(const r in a){const o=a[r];Tf(o,s,r,i)}return s},Tf=(a,i,s,r)=>{const o=a.length;for(let f=0;f<o;f++){const h=a[f];WS(h,i,s,r)}},WS=(a,i,s,r)=>{if(typeof a=="string"){e1(a,i,s);return}if(typeof a=="function"){t1(a,i,s,r);return}n1(a,i,s,r)},e1=(a,i,s)=>{const r=a===""?i:xy(i,a);r.classGroupId=s},t1=(a,i,s,r)=>{if(a1(a)){Tf(a(r),i,s,r);return}i.validators===null&&(i.validators=[]),i.validators.push(XS(s,a))},n1=(a,i,s,r)=>{const o=Object.entries(a),f=o.length;for(let h=0;h<f;h++){const[m,y]=o[h];Tf(y,xy(i,m),s,r)}},xy=(a,i)=>{let s=a;const r=i.split(Zr),o=r.length;for(let f=0;f<o;f++){const h=r[f];let m=s.nextPart.get(h);m||(m=vy(),s.nextPart.set(h,m)),s=m}return s},a1=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,i1=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),r=Object.create(null);const o=(f,h)=>{s[f]=h,i++,i>a&&(i=0,r=s,s=Object.create(null))};return{get(f){let h=s[f];if(h!==void 0)return h;if((h=r[f])!==void 0)return o(f,h),h},set(f,h){f in s?s[f]=h:o(f,h)}}},sf="!",lg=":",s1=[],rg=(a,i,s,r,o)=>({modifiers:a,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:r,isExternal:o}),l1=a=>{const{prefix:i,experimentalParseClassName:s}=a;let r=o=>{const f=[];let h=0,m=0,y=0,g;const S=o.length;for(let j=0;j<S;j++){const E=o[j];if(h===0&&m===0){if(E===lg){f.push(o.slice(y,j)),y=j+1;continue}if(E==="/"){g=j;continue}}E==="["?h++:E==="]"?h--:E==="("?m++:E===")"&&m--}const b=f.length===0?o:o.slice(y);let x=b,k=!1;b.endsWith(sf)?(x=b.slice(0,-1),k=!0):b.startsWith(sf)&&(x=b.slice(1),k=!0);const O=g&&g>y?g-y:void 0;return rg(f,k,x,O)};if(i){const o=i+lg,f=r;r=h=>h.startsWith(o)?f(h.slice(o.length)):rg(s1,!1,h,void 0,!0)}if(s){const o=r;r=f=>s({className:f,parseClassName:o})}return r},r1=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((s,r)=>{i.set(s,1e6+r)}),s=>{const r=[];let o=[];for(let f=0;f<s.length;f++){const h=s[f],m=h[0]==="[",y=i.has(h);m||y?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(h)):o.push(h)}return o.length>0&&(o.sort(),r.push(...o)),r}},c1=a=>({cache:i1(a.cacheSize),parseClassName:l1(a),sortModifiers:r1(a),...IS(a)}),o1=/\s+/,u1=(a,i)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:f}=i,h=[],m=a.trim().split(o1);let y="";for(let g=m.length-1;g>=0;g-=1){const S=m[g],{isExternal:b,modifiers:x,hasImportantModifier:k,baseClassName:O,maybePostfixModifierPosition:j}=s(S);if(b){y=S+(y.length>0?" "+y:y);continue}let E=!!j,H=r(E?O.substring(0,j):O);if(!H){if(!E){y=S+(y.length>0?" "+y:y);continue}if(H=r(O),!H){y=S+(y.length>0?" "+y:y);continue}E=!1}const G=x.length===0?"":x.length===1?x[0]:f(x).join(":"),R=k?G+sf:G,B=R+H;if(h.indexOf(B)>-1)continue;h.push(B);const K=o(H,E);for(let X=0;X<K.length;++X){const Z=K[X];h.push(R+Z)}y=S+(y.length>0?" "+y:y)}return y},f1=(...a)=>{let i=0,s,r,o="";for(;i<a.length;)(s=a[i++])&&(r=Sy(s))&&(o&&(o+=" "),o+=r);return o},Sy=a=>{if(typeof a=="string")return a;let i,s="";for(let r=0;r<a.length;r++)a[r]&&(i=Sy(a[r]))&&(s&&(s+=" "),s+=i);return s},d1=(a,...i)=>{let s,r,o,f;const h=y=>{const g=i.reduce((S,b)=>b(S),a());return s=c1(g),r=s.cache.get,o=s.cache.set,f=m,m(y)},m=y=>{const g=r(y);if(g)return g;const S=u1(y,s);return o(y,S),S};return f=h,(...y)=>f(f1(...y))},h1=[],it=a=>{const i=s=>s[a]||h1;return i.isThemeGetter=!0,i},jy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,m1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,p1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g1=/\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$/,y1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,v1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fa=a=>m1.test(a),xe=a=>!!a&&!Number.isNaN(Number(a)),da=a=>!!a&&Number.isInteger(Number(a)),Gu=a=>a.endsWith("%")&&xe(a.slice(0,-1)),Ln=a=>p1.test(a),Ny=()=>!0,x1=a=>g1.test(a)&&!y1.test(a),Of=()=>!1,S1=a=>v1.test(a),j1=a=>b1.test(a),w1=a=>!se(a)&&!re(a),N1=a=>ya(a,Cy,Of),se=a=>jy.test(a),La=a=>ya(a,ky,x1),cg=a=>ya(a,z1,xe),E1=a=>ya(a,Oy,Ny),A1=a=>ya(a,Ty,Of),og=a=>ya(a,Ey,Of),C1=a=>ya(a,Ay,j1),Dr=a=>ya(a,_y,S1),re=a=>wy.test(a),Xs=a=>Ga(a,ky),k1=a=>Ga(a,Ty),ug=a=>Ga(a,Ey),T1=a=>Ga(a,Cy),O1=a=>Ga(a,Ay),Mr=a=>Ga(a,_y,!0),_1=a=>Ga(a,Oy,!0),ya=(a,i,s)=>{const r=jy.exec(a);return r?r[1]?i(r[1]):s(r[2]):!1},Ga=(a,i,s=!1)=>{const r=wy.exec(a);return r?r[1]?i(r[1]):s:!1},Ey=a=>a==="position"||a==="percentage",Ay=a=>a==="image"||a==="url",Cy=a=>a==="length"||a==="size"||a==="bg-size",ky=a=>a==="length",z1=a=>a==="number",Ty=a=>a==="family-name",Oy=a=>a==="number"||a==="weight",_y=a=>a==="shadow",D1=()=>{const a=it("color"),i=it("font"),s=it("text"),r=it("font-weight"),o=it("tracking"),f=it("leading"),h=it("breakpoint"),m=it("container"),y=it("spacing"),g=it("radius"),S=it("shadow"),b=it("inset-shadow"),x=it("text-shadow"),k=it("drop-shadow"),O=it("blur"),j=it("perspective"),E=it("aspect"),H=it("ease"),G=it("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...B(),re,se],X=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],_=()=>[re,se,y],P=()=>[fa,"full","auto",..._()],Se=()=>[da,"none","subgrid",re,se],W=()=>["auto",{span:["full",da,re,se]},da,re,se],le=()=>[da,"auto",re,se],Ye=()=>["auto","min","max","fr",re,se],Ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",..._()],J=()=>[fa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],oe=()=>[fa,"screen","full","dvw","lvw","svw","min","max","fit",..._()],ve=()=>[fa,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],I=()=>[a,re,se],A=()=>[...B(),ug,og,{position:[re,se]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",T1,N1,{size:[re,se]}],z=()=>[Gu,Xs,La],F=()=>["","none","full",g,re,se],ae=()=>["",xe,Xs,La],he=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[xe,Gu,ug,og],Pt=()=>["","none",O,re,se],Rt=()=>["none",xe,re,se],Wt=()=>["none",xe,re,se],pn=()=>[xe,re,se],yt=()=>[fa,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[Ny],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[w1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",xe],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fa,se,re,E]}],container:["container"],columns:[{columns:[xe,se,re,m]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:K()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[da,"auto",re,se]}],basis:[{basis:[fa,"full","auto",m,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,fa,"auto","initial","none",se]}],grow:[{grow:["",xe,re,se]}],shrink:[{shrink:["",xe,re,se]}],order:[{order:[da,"first","last","none",re,se]}],"grid-cols":[{"grid-cols":Se()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":Se()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ye()}],"auto-rows":[{"auto-rows":Ye()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...Ge(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...Ge()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ge()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",s,Xs,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_1,E1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gu,se]}],"font-family":[{font:[k1,A1,i]}],"font-features":[{"font-features":[se]}],"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:[o,re,se]}],"line-clamp":[{"line-clamp":[xe,"none",re,cg]}],leading:[{leading:[f,..._()]}],"list-image":[{"list-image":["none",re,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",re,La]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[xe,"auto",re,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,se]}],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",re,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},da,re,se],radial:["",re,se],conic:[da,re,se]},O1,C1]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,re,se]}],"outline-w":[{outline:["",xe,Xs,La]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",S,Mr,Dr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",b,Mr,Dr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[xe,La]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",x,Mr,Dr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[xe,re,se]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"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":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[re,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,se]}],filter:[{filter:["","none",re,se]}],blur:[{blur:Pt()}],brightness:[{brightness:[xe,re,se]}],contrast:[{contrast:[xe,re,se]}],"drop-shadow":[{"drop-shadow":["","none",k,Mr,Dr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",xe,re,se]}],"hue-rotate":[{"hue-rotate":[xe,re,se]}],invert:[{invert:["",xe,re,se]}],saturate:[{saturate:[xe,re,se]}],sepia:[{sepia:["",xe,re,se]}],"backdrop-filter":[{"backdrop-filter":["","none",re,se]}],"backdrop-blur":[{"backdrop-blur":Pt()}],"backdrop-brightness":[{"backdrop-brightness":[xe,re,se]}],"backdrop-contrast":[{"backdrop-contrast":[xe,re,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,re,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,re,se]}],"backdrop-invert":[{"backdrop-invert":["",xe,re,se]}],"backdrop-opacity":[{"backdrop-opacity":[xe,re,se]}],"backdrop-saturate":[{"backdrop-saturate":[xe,re,se]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,re,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",re,se]}],ease:[{ease:["linear","initial",H,re,se]}],delay:[{delay:[xe,re,se]}],animate:[{animate:["none",G,re,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,re,se]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:Rt()}],"rotate-x":[{"rotate-x":Rt()}],"rotate-y":[{"rotate-y":Rt()}],"rotate-z":[{"rotate-z":Rt()}],scale:[{scale:Wt()}],"scale-x":[{"scale-x":Wt()}],"scale-y":[{"scale-y":Wt()}],"scale-z":[{"scale-z":Wt()}],"scale-3d":["scale-3d"],skew:[{skew:pn()}],"skew-x":[{"skew-x":pn()}],"skew-y":[{"skew-y":pn()}],transform:[{transform:[re,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",re,se]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",re,se]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[xe,Xs,La,cg]}],stroke:[{stroke:["none",...I()]}],"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"]}},M1=d1(D1);function Ft(...a){return M1(gy(a))}const R1=yy("inline-flex items-center rounded-md border px-2 py-0.5 text-[11px] font-medium tracking-wide",{variants:{variant:{neutral:"border-zinc-800 bg-zinc-950 text-zinc-300",success:"border-emerald-500/25 bg-emerald-500/10 text-emerald-300",warning:"border-amber-500/25 bg-amber-500/10 text-amber-300",destructive:"border-rose-500/25 bg-rose-500/10 text-rose-300"}},defaultVariants:{variant:"neutral"}});function zy({className:a,variant:i,...s}){return u.jsx("div",{className:Ft(R1({variant:i}),a),...s})}function fg(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function _f(...a){return i=>{let s=!1;const r=a.map(o=>{const f=fg(o,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let o=0;o<r.length;o++){const f=r[o];typeof f=="function"?f():fg(a[o],null)}}}}function $a(...a){return w.useCallback(_f(...a),a)}var L1=Symbol.for("react.lazy"),Ir=df[" use ".trim().toString()];function U1(a){return typeof a=="object"&&a!==null&&"then"in a}function Dy(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===L1&&"_payload"in a&&U1(a._payload)}function B1(a){const i=H1(a),s=w.forwardRef((r,o)=>{let{children:f,...h}=r;Dy(f)&&typeof Ir=="function"&&(f=Ir(f._payload));const m=w.Children.toArray(f),y=m.find(Y1);if(y){const g=y.props.children,S=m.map(b=>b===y?w.Children.count(g)>1?w.Children.only(null):w.isValidElement(g)?g.props.children:null:b);return u.jsx(i,{...h,ref:o,children:w.isValidElement(g)?w.cloneElement(g,void 0,S):null})}return u.jsx(i,{...h,ref:o,children:f})});return s.displayName=`${a}.Slot`,s}var q1=B1("Slot");function H1(a){const i=w.forwardRef((s,r)=>{let{children:o,...f}=s;if(Dy(o)&&typeof Ir=="function"&&(o=Ir(o._payload)),w.isValidElement(o)){const h=$1(o),m=G1(f,o.props);return o.type!==w.Fragment&&(m.ref=r?_f(r,h):h),w.cloneElement(o,m)}return w.Children.count(o)>1?w.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var K1=Symbol("radix.slottable");function Y1(a){return w.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===K1}function G1(a,i){const s={...i};for(const r in i){const o=a[r],f=i[r];/^on[A-Z]/.test(r)?o&&f?s[r]=(...m)=>{const y=f(...m);return o(...m),y}:o&&(s[r]=o):r==="style"?s[r]={...o,...f}:r==="className"&&(s[r]=[o,f].filter(Boolean).join(" "))}return{...a,...s}}function $1(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}const V1=yy("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-zinc-400 focus-visible:ring-offset-2 focus-visible:ring-offset-black disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-zinc-50 text-black hover:bg-zinc-200",secondary:"border border-zinc-800 bg-zinc-950 text-zinc-100 hover:bg-zinc-900",ghost:"text-zinc-400 hover:bg-zinc-900 hover:text-zinc-50",outline:"border border-zinc-800 bg-transparent text-zinc-100 hover:bg-zinc-900",destructive:"bg-rose-600 text-white hover:bg-rose-700"},size:{default:"h-9 px-4",sm:"h-8 px-3 text-xs",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),fe=w.forwardRef(({className:a,variant:i,size:s,asChild:r=!1,...o},f)=>{const h=r?q1:"button";return u.jsx(h,{ref:f,className:Ft(V1({variant:i,size:s,className:a})),...o})});fe.displayName="Button";const Qe=w.forwardRef(({className:a,...i},s)=>u.jsx("div",{ref:s,className:Ft("rounded-xl border border-zinc-800 bg-zinc-950/75 shadow-[0_0_0_1px_rgba(255,255,255,0.01)] backdrop-blur",a),...i}));Qe.displayName="Card";const Q1=w.forwardRef(({className:a,...i},s)=>u.jsx("div",{ref:s,className:Ft("flex flex-col gap-1.5 p-5",a),...i}));Q1.displayName="CardHeader";const X1=w.forwardRef(({className:a,...i},s)=>u.jsx("h3",{ref:s,className:Ft("font-medium tracking-tight text-zinc-50",a),...i}));X1.displayName="CardTitle";const Z1=w.forwardRef(({className:a,...i},s)=>u.jsx("p",{ref:s,className:Ft("text-sm text-zinc-500",a),...i}));Z1.displayName="CardDescription";const I1=w.forwardRef(({className:a,...i},s)=>u.jsx("div",{ref:s,className:Ft("p-5 pt-0",a),...i}));I1.displayName="CardContent";function ga(a,i,{checkForDefaultPrevented:s=!0}={}){return function(o){if(a?.(o),s===!1||!o.defaultPrevented)return i?.(o)}}function J1(a,i){const s=w.createContext(i),r=f=>{const{children:h,...m}=f,y=w.useMemo(()=>m,Object.values(m));return u.jsx(s.Provider,{value:y,children:h})};r.displayName=a+"Provider";function o(f){const h=w.useContext(s);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[r,o]}function F1(a,i=[]){let s=[];function r(f,h){const m=w.createContext(h),y=s.length;s=[...s,h];const g=b=>{const{scope:x,children:k,...O}=b,j=x?.[a]?.[y]||m,E=w.useMemo(()=>O,Object.values(O));return u.jsx(j.Provider,{value:E,children:k})};g.displayName=f+"Provider";function S(b,x){const k=x?.[a]?.[y]||m,O=w.useContext(k);if(O)return O;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[g,S]}const o=()=>{const f=s.map(h=>w.createContext(h));return function(m){const y=m?.[a]||f;return w.useMemo(()=>({[`__scope${a}`]:{...m,[a]:y}}),[m,y])}};return o.scopeName=a,[r,P1(o,...i)]}function P1(...a){const i=a[0];if(a.length===1)return i;const s=()=>{const r=a.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const h=r.reduce((m,{useScope:y,scopeName:g})=>{const b=y(f)[`__scope${g}`];return{...m,...b}},{});return w.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return s.scopeName=i.scopeName,s}var el=globalThis?.document?w.useLayoutEffect:()=>{},W1=df[" useId ".trim().toString()]||(()=>{}),ej=0;function $u(a){const[i,s]=w.useState(W1());return el(()=>{s(r=>r??String(ej++))},[a]),a||(i?`radix-${i}`:"")}var tj=df[" useInsertionEffect ".trim().toString()]||el;function nj({prop:a,defaultProp:i,onChange:s=()=>{},caller:r}){const[o,f,h]=aj({defaultProp:i,onChange:s}),m=a!==void 0,y=m?a:o;{const S=w.useRef(a!==void 0);w.useEffect(()=>{const b=S.current;b!==m&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=m},[m,r])}const g=w.useCallback(S=>{if(m){const b=ij(S)?S(a):S;b!==a&&h.current?.(b)}else f(S)},[m,a,f,h]);return[y,g]}function aj({defaultProp:a,onChange:i}){const[s,r]=w.useState(a),o=w.useRef(s),f=w.useRef(i);return tj(()=>{f.current=i},[i]),w.useEffect(()=>{o.current!==s&&(f.current?.(s),o.current=s)},[s,o]),[s,r,f]}function ij(a){return typeof a=="function"}var My=Og();const sj=Tg(My);function Ry(a){const i=lj(a),s=w.forwardRef((r,o)=>{const{children:f,...h}=r,m=w.Children.toArray(f),y=m.find(cj);if(y){const g=y.props.children,S=m.map(b=>b===y?w.Children.count(g)>1?w.Children.only(null):w.isValidElement(g)?g.props.children:null:b);return u.jsx(i,{...h,ref:o,children:w.isValidElement(g)?w.cloneElement(g,void 0,S):null})}return u.jsx(i,{...h,ref:o,children:f})});return s.displayName=`${a}.Slot`,s}function lj(a){const i=w.forwardRef((s,r)=>{const{children:o,...f}=s;if(w.isValidElement(o)){const h=uj(o),m=oj(f,o.props);return o.type!==w.Fragment&&(m.ref=r?_f(r,h):h),w.cloneElement(o,m)}return w.Children.count(o)>1?w.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var rj=Symbol("radix.slottable");function cj(a){return w.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===rj}function oj(a,i){const s={...i};for(const r in i){const o=a[r],f=i[r];/^on[A-Z]/.test(r)?o&&f?s[r]=(...m)=>{const y=f(...m);return o(...m),y}:o&&(s[r]=o):r==="style"?s[r]={...o,...f}:r==="className"&&(s[r]=[o,f].filter(Boolean).join(" "))}return{...a,...s}}function uj(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}var fj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qn=fj.reduce((a,i)=>{const s=Ry(`Primitive.${i}`),r=w.forwardRef((o,f)=>{const{asChild:h,...m}=o,y=h?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(y,{...m,ref:f})});return r.displayName=`Primitive.${i}`,{...a,[i]:r}},{});function dj(a,i){a&&My.flushSync(()=>a.dispatchEvent(i))}function tl(a){const i=w.useRef(a);return w.useEffect(()=>{i.current=a}),w.useMemo(()=>(...s)=>i.current?.(...s),[])}function hj(a,i=globalThis?.document){const s=tl(a);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&s(o)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[s,i])}var mj="DismissableLayer",lf="dismissableLayer.update",pj="dismissableLayer.pointerDownOutside",gj="dismissableLayer.focusOutside",dg,Ly=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uy=w.forwardRef((a,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...y}=a,g=w.useContext(Ly),[S,b]=w.useState(null),x=S?.ownerDocument??globalThis?.document,[,k]=w.useState({}),O=$a(i,Z=>b(Z)),j=Array.from(g.layers),[E]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),H=j.indexOf(E),G=S?j.indexOf(S):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,B=G>=H,K=bj(Z=>{const _=Z.target,P=[...g.branches].some(Se=>Se.contains(_));!B||P||(o?.(Z),h?.(Z),Z.defaultPrevented||m?.())},x),X=xj(Z=>{const _=Z.target;[...g.branches].some(Se=>Se.contains(_))||(f?.(Z),h?.(Z),Z.defaultPrevented||m?.())},x);return hj(Z=>{G===g.layers.size-1&&(r?.(Z),!Z.defaultPrevented&&m&&(Z.preventDefault(),m()))},x),w.useEffect(()=>{if(S)return s&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(dg=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(S)),g.layers.add(S),hg(),()=>{s&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=dg)}},[S,x,s,g]),w.useEffect(()=>()=>{S&&(g.layers.delete(S),g.layersWithOutsidePointerEventsDisabled.delete(S),hg())},[S,g]),w.useEffect(()=>{const Z=()=>k({});return document.addEventListener(lf,Z),()=>document.removeEventListener(lf,Z)},[]),u.jsx(qn.div,{...y,ref:O,style:{pointerEvents:R?B?"auto":"none":void 0,...a.style},onFocusCapture:ga(a.onFocusCapture,X.onFocusCapture),onBlurCapture:ga(a.onBlurCapture,X.onBlurCapture),onPointerDownCapture:ga(a.onPointerDownCapture,K.onPointerDownCapture)})});Uy.displayName=mj;var yj="DismissableLayerBranch",vj=w.forwardRef((a,i)=>{const s=w.useContext(Ly),r=w.useRef(null),o=$a(i,r);return w.useEffect(()=>{const f=r.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),u.jsx(qn.div,{...a,ref:o})});vj.displayName=yj;function bj(a,i=globalThis?.document){const s=tl(a),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const f=m=>{if(m.target&&!r.current){let y=function(){By(pj,s,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(i.removeEventListener("click",o.current),o.current=y,i.addEventListener("click",o.current,{once:!0})):y()}else i.removeEventListener("click",o.current);r.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",f),i.removeEventListener("click",o.current)}},[i,s]),{onPointerDownCapture:()=>r.current=!0}}function xj(a,i=globalThis?.document){const s=tl(a),r=w.useRef(!1);return w.useEffect(()=>{const o=f=>{f.target&&!r.current&&By(gj,s,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",o),()=>i.removeEventListener("focusin",o)},[i,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hg(){const a=new CustomEvent(lf);document.dispatchEvent(a)}function By(a,i,s,{discrete:r}){const o=s.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:s});i&&o.addEventListener(a,i,{once:!0}),r?dj(o,f):o.dispatchEvent(f)}var Vu="focusScope.autoFocusOnMount",Qu="focusScope.autoFocusOnUnmount",mg={bubbles:!1,cancelable:!0},Sj="FocusScope",qy=w.forwardRef((a,i)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:f,...h}=a,[m,y]=w.useState(null),g=tl(o),S=tl(f),b=w.useRef(null),x=$a(i,j=>y(j)),k=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let j=function(R){if(k.paused||!m)return;const B=R.target;m.contains(B)?b.current=B:ha(b.current,{select:!0})},E=function(R){if(k.paused||!m)return;const B=R.relatedTarget;B!==null&&(m.contains(B)||ha(b.current,{select:!0}))},H=function(R){if(document.activeElement===document.body)for(const K of R)K.removedNodes.length>0&&ha(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",E);const G=new MutationObserver(H);return m&&G.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",E),G.disconnect()}}},[r,m,k.paused]),w.useEffect(()=>{if(m){gg.add(k);const j=document.activeElement;if(!m.contains(j)){const H=new CustomEvent(Vu,mg);m.addEventListener(Vu,g),m.dispatchEvent(H),H.defaultPrevented||(jj(Cj(Hy(m)),{select:!0}),document.activeElement===j&&ha(m))}return()=>{m.removeEventListener(Vu,g),setTimeout(()=>{const H=new CustomEvent(Qu,mg);m.addEventListener(Qu,S),m.dispatchEvent(H),H.defaultPrevented||ha(j??document.body,{select:!0}),m.removeEventListener(Qu,S),gg.remove(k)},0)}}},[m,g,S,k]);const O=w.useCallback(j=>{if(!s&&!r||k.paused)return;const E=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,H=document.activeElement;if(E&&H){const G=j.currentTarget,[R,B]=wj(G);R&&B?!j.shiftKey&&H===B?(j.preventDefault(),s&&ha(R,{select:!0})):j.shiftKey&&H===R&&(j.preventDefault(),s&&ha(B,{select:!0})):H===G&&j.preventDefault()}},[s,r,k.paused]);return u.jsx(qn.div,{tabIndex:-1,...h,ref:x,onKeyDown:O})});qy.displayName=Sj;function jj(a,{select:i=!1}={}){const s=document.activeElement;for(const r of a)if(ha(r,{select:i}),document.activeElement!==s)return}function wj(a){const i=Hy(a),s=pg(i,a),r=pg(i.reverse(),a);return[s,r]}function Hy(a){const i=[],s=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)i.push(s.currentNode);return i}function pg(a,i){for(const s of a)if(!Nj(s,{upTo:i}))return s}function Nj(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function Ej(a){return a instanceof HTMLInputElement&&"select"in a}function ha(a,{select:i=!1}={}){if(a&&a.focus){const s=document.activeElement;a.focus({preventScroll:!0}),a!==s&&Ej(a)&&i&&a.select()}}var gg=Aj();function Aj(){let a=[];return{add(i){const s=a[0];i!==s&&s?.pause(),a=yg(a,i),a.unshift(i)},remove(i){a=yg(a,i),a[0]?.resume()}}}function yg(a,i){const s=[...a],r=s.indexOf(i);return r!==-1&&s.splice(r,1),s}function Cj(a){return a.filter(i=>i.tagName!=="A")}var kj="Portal",Ky=w.forwardRef((a,i)=>{const{container:s,...r}=a,[o,f]=w.useState(!1);el(()=>f(!0),[]);const h=s||o&&globalThis?.document?.body;return h?sj.createPortal(u.jsx(qn.div,{...r,ref:i}),h):null});Ky.displayName=kj;function Tj(a,i){return w.useReducer((s,r)=>i[s][r]??s,a)}var uc=a=>{const{present:i,children:s}=a,r=Oj(i),o=typeof s=="function"?s({present:r.isPresent}):w.Children.only(s),f=$a(r.ref,_j(o));return typeof s=="function"||r.isPresent?w.cloneElement(o,{ref:f}):null};uc.displayName="Presence";function Oj(a){const[i,s]=w.useState(),r=w.useRef(null),o=w.useRef(a),f=w.useRef("none"),h=a?"mounted":"unmounted",[m,y]=Tj(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const g=Rr(r.current);f.current=m==="mounted"?g:"none"},[m]),el(()=>{const g=r.current,S=o.current;if(S!==a){const x=f.current,k=Rr(g);a?y("MOUNT"):k==="none"||g?.display==="none"?y("UNMOUNT"):y(S&&x!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=a}},[a,y]),el(()=>{if(i){let g;const S=i.ownerDocument.defaultView??window,b=k=>{const j=Rr(r.current).includes(CSS.escape(k.animationName));if(k.target===i&&j&&(y("ANIMATION_END"),!o.current)){const E=i.style.animationFillMode;i.style.animationFillMode="forwards",g=S.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=E)})}},x=k=>{k.target===i&&(f.current=Rr(r.current))};return i.addEventListener("animationstart",x),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{S.clearTimeout(g),i.removeEventListener("animationstart",x),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else y("ANIMATION_END")},[i,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:w.useCallback(g=>{r.current=g?getComputedStyle(g):null,s(g)},[])}}function Rr(a){return a?.animationName||"none"}function _j(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}var Xu=0;function zj(){w.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??vg()),document.body.insertAdjacentElement("beforeend",a[1]??vg()),Xu++,()=>{Xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Xu--}},[])}function vg(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var hn=function(){return hn=Object.assign||function(i){for(var s,r=1,o=arguments.length;r<o;r++){s=arguments[r];for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(i[f]=s[f])}return i},hn.apply(this,arguments)};function Yy(a,i){var s={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&i.indexOf(r)<0&&(s[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(a);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(a,r[o])&&(s[r[o]]=a[r[o]]);return s}function Dj(a,i,s){if(s||arguments.length===2)for(var r=0,o=i.length,f;r<o;r++)(f||!(r in i))&&(f||(f=Array.prototype.slice.call(i,0,r)),f[r]=i[r]);return a.concat(f||Array.prototype.slice.call(i))}var $r="right-scroll-bar-position",Vr="width-before-scroll-bar",Mj="with-scroll-bars-hidden",Rj="--removed-body-scroll-bar-size";function Zu(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function Lj(a,i){var s=w.useState(function(){return{value:a,callback:i,facade:{get current(){return s.value},set current(r){var o=s.value;o!==r&&(s.value=r,s.callback(r,o))}}}})[0];return s.callback=i,s.facade}var Uj=typeof window<"u"?w.useLayoutEffect:w.useEffect,bg=new WeakMap;function Bj(a,i){var s=Lj(null,function(r){return a.forEach(function(o){return Zu(o,r)})});return Uj(function(){var r=bg.get(s);if(r){var o=new Set(r),f=new Set(a),h=s.current;o.forEach(function(m){f.has(m)||Zu(m,null)}),f.forEach(function(m){o.has(m)||Zu(m,h)})}bg.set(s,a)},[a]),s}function qj(a){return a}function Hj(a,i){i===void 0&&(i=qj);var s=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:a},useMedium:function(f){var h=i(f,r);return s.push(h),function(){s=s.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(r=!0;s.length;){var h=s;s=[],h.forEach(f)}s={push:function(m){return f(m)},filter:function(){return s}}},assignMedium:function(f){r=!0;var h=[];if(s.length){var m=s;s=[],m.forEach(f),h=s}var y=function(){var S=h;h=[],S.forEach(f)},g=function(){return Promise.resolve().then(y)};g(),s={push:function(S){h.push(S),g()},filter:function(S){return h=h.filter(S),s}}}};return o}function Kj(a){a===void 0&&(a={});var i=Hj(null);return i.options=hn({async:!0,ssr:!1},a),i}var Gy=function(a){var i=a.sideCar,s=Yy(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,hn({},s))};Gy.isSideCarExport=!0;function Yj(a,i){return a.useMedium(i),Gy}var $y=Kj(),Iu=function(){},fc=w.forwardRef(function(a,i){var s=w.useRef(null),r=w.useState({onScrollCapture:Iu,onWheelCapture:Iu,onTouchMoveCapture:Iu}),o=r[0],f=r[1],h=a.forwardProps,m=a.children,y=a.className,g=a.removeScrollBar,S=a.enabled,b=a.shards,x=a.sideCar,k=a.noRelative,O=a.noIsolation,j=a.inert,E=a.allowPinchZoom,H=a.as,G=H===void 0?"div":H,R=a.gapMode,B=Yy(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=x,X=Bj([s,i]),Z=hn(hn({},B),o);return w.createElement(w.Fragment,null,S&&w.createElement(K,{sideCar:$y,removeScrollBar:g,shards:b,noRelative:k,noIsolation:O,inert:j,setCallbacks:f,allowPinchZoom:!!E,lockRef:s,gapMode:R}),h?w.cloneElement(w.Children.only(m),hn(hn({},Z),{ref:X})):w.createElement(G,hn({},Z,{className:y,ref:X}),m))});fc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fc.classNames={fullWidth:Vr,zeroRight:$r};var Gj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $j(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=Gj();return i&&a.setAttribute("nonce",i),a}function Vj(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function Qj(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var Xj=function(){var a=0,i=null;return{add:function(s){a==0&&(i=$j())&&(Vj(i,s),Qj(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},Zj=function(){var a=Xj();return function(i,s){w.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&s])}},Vy=function(){var a=Zj(),i=function(s){var r=s.styles,o=s.dynamic;return a(r,o),null};return i},Ij={left:0,top:0,right:0,gap:0},Ju=function(a){return parseInt(a||"",10)||0},Jj=function(a){var i=window.getComputedStyle(document.body),s=i[a==="padding"?"paddingLeft":"marginLeft"],r=i[a==="padding"?"paddingTop":"marginTop"],o=i[a==="padding"?"paddingRight":"marginRight"];return[Ju(s),Ju(r),Ju(o)]},Fj=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return Ij;var i=Jj(a),s=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-s+i[2]-i[0])}},Pj=Vy(),Ki="data-scroll-locked",Wj=function(a,i,s,r){var o=a.left,f=a.top,h=a.right,m=a.gap;return s===void 0&&(s="margin"),`
140
+ .`.concat(Mj,` {
141
+ overflow: hidden `).concat(r,`;
142
+ padding-right: `).concat(m,"px ").concat(r,`;
143
+ }
144
+ body[`).concat(Ki,`] {
145
+ overflow: hidden `).concat(r,`;
146
+ overscroll-behavior: contain;
147
+ `).concat([i&&"position: relative ".concat(r,";"),s==="margin"&&`
148
+ padding-left: `.concat(o,`px;
149
+ padding-top: `).concat(f,`px;
150
+ padding-right: `).concat(h,`px;
151
+ margin-left:0;
152
+ margin-top:0;
153
+ margin-right: `).concat(m,"px ").concat(r,`;
154
+ `),s==="padding"&&"padding-right: ".concat(m,"px ").concat(r,";")].filter(Boolean).join(""),`
155
+ }
156
+
157
+ .`).concat($r,` {
158
+ right: `).concat(m,"px ").concat(r,`;
159
+ }
160
+
161
+ .`).concat(Vr,` {
162
+ margin-right: `).concat(m,"px ").concat(r,`;
163
+ }
164
+
165
+ .`).concat($r," .").concat($r,` {
166
+ right: 0 `).concat(r,`;
167
+ }
168
+
169
+ .`).concat(Vr," .").concat(Vr,` {
170
+ margin-right: 0 `).concat(r,`;
171
+ }
172
+
173
+ body[`).concat(Ki,`] {
174
+ `).concat(Rj,": ").concat(m,`px;
175
+ }
176
+ `)},xg=function(){var a=parseInt(document.body.getAttribute(Ki)||"0",10);return isFinite(a)?a:0},ew=function(){w.useEffect(function(){return document.body.setAttribute(Ki,(xg()+1).toString()),function(){var a=xg()-1;a<=0?document.body.removeAttribute(Ki):document.body.setAttribute(Ki,a.toString())}},[])},tw=function(a){var i=a.noRelative,s=a.noImportant,r=a.gapMode,o=r===void 0?"margin":r;ew();var f=w.useMemo(function(){return Fj(o)},[o]);return w.createElement(Pj,{styles:Wj(f,!i,o,s?"":"!important")})},rf=!1;if(typeof window<"u")try{var Lr=Object.defineProperty({},"passive",{get:function(){return rf=!0,!0}});window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{rf=!1}var Di=rf?{passive:!1}:!1,nw=function(a){return a.tagName==="TEXTAREA"},Qy=function(a,i){if(!(a instanceof Element))return!1;var s=window.getComputedStyle(a);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!nw(a)&&s[i]==="visible")},aw=function(a){return Qy(a,"overflowY")},iw=function(a){return Qy(a,"overflowX")},Sg=function(a,i){var s=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Xy(a,r);if(o){var f=Zy(a,r),h=f[1],m=f[2];if(h>m)return!0}r=r.parentNode}while(r&&r!==s.body);return!1},sw=function(a){var i=a.scrollTop,s=a.scrollHeight,r=a.clientHeight;return[i,s,r]},lw=function(a){var i=a.scrollLeft,s=a.scrollWidth,r=a.clientWidth;return[i,s,r]},Xy=function(a,i){return a==="v"?aw(i):iw(i)},Zy=function(a,i){return a==="v"?sw(i):lw(i)},rw=function(a,i){return a==="h"&&i==="rtl"?-1:1},cw=function(a,i,s,r,o){var f=rw(a,window.getComputedStyle(i).direction),h=f*r,m=s.target,y=i.contains(m),g=!1,S=h>0,b=0,x=0;do{if(!m)break;var k=Zy(a,m),O=k[0],j=k[1],E=k[2],H=j-E-f*O;(O||H)&&Xy(a,m)&&(b+=H,x+=O);var G=m.parentNode;m=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!y&&m!==document.body||y&&(i.contains(m)||i===m));return(S&&Math.abs(b)<1||!S&&Math.abs(x)<1)&&(g=!0),g},Ur=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},jg=function(a){return[a.deltaX,a.deltaY]},wg=function(a){return a&&"current"in a?a.current:a},ow=function(a,i){return a[0]===i[0]&&a[1]===i[1]},uw=function(a){return`
177
+ .block-interactivity-`.concat(a,` {pointer-events: none;}
178
+ .allow-interactivity-`).concat(a,` {pointer-events: all;}
179
+ `)},fw=0,Mi=[];function dw(a){var i=w.useRef([]),s=w.useRef([0,0]),r=w.useRef(),o=w.useState(fw++)[0],f=w.useState(Vy)[0],h=w.useRef(a);w.useEffect(function(){h.current=a},[a]),w.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(o));var j=Dj([a.lockRef.current],(a.shards||[]).map(wg),!0).filter(Boolean);return j.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[a.inert,a.lockRef.current,a.shards]);var m=w.useCallback(function(j,E){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var H=Ur(j),G=s.current,R="deltaX"in j?j.deltaX:G[0]-H[0],B="deltaY"in j?j.deltaY:G[1]-H[1],K,X=j.target,Z=Math.abs(R)>Math.abs(B)?"h":"v";if("touches"in j&&Z==="h"&&X.type==="range")return!1;var _=window.getSelection(),P=_&&_.anchorNode,Se=P?P===X||P.contains(X):!1;if(Se)return!1;var W=Sg(Z,X);if(!W)return!0;if(W?K=Z:(K=Z==="v"?"h":"v",W=Sg(Z,X)),!W)return!1;if(!r.current&&"changedTouches"in j&&(R||B)&&(r.current=K),!K)return!0;var le=r.current||K;return cw(le,E,j,le==="h"?R:B)},[]),y=w.useCallback(function(j){var E=j;if(!(!Mi.length||Mi[Mi.length-1]!==f)){var H="deltaY"in E?jg(E):Ur(E),G=i.current.filter(function(K){return K.name===E.type&&(K.target===E.target||E.target===K.shadowParent)&&ow(K.delta,H)})[0];if(G&&G.should){E.cancelable&&E.preventDefault();return}if(!G){var R=(h.current.shards||[]).map(wg).filter(Boolean).filter(function(K){return K.contains(E.target)}),B=R.length>0?m(E,R[0]):!h.current.noIsolation;B&&E.cancelable&&E.preventDefault()}}},[]),g=w.useCallback(function(j,E,H,G){var R={name:j,delta:E,target:H,should:G,shadowParent:hw(H)};i.current.push(R),setTimeout(function(){i.current=i.current.filter(function(B){return B!==R})},1)},[]),S=w.useCallback(function(j){s.current=Ur(j),r.current=void 0},[]),b=w.useCallback(function(j){g(j.type,jg(j),j.target,m(j,a.lockRef.current))},[]),x=w.useCallback(function(j){g(j.type,Ur(j),j.target,m(j,a.lockRef.current))},[]);w.useEffect(function(){return Mi.push(f),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:x}),document.addEventListener("wheel",y,Di),document.addEventListener("touchmove",y,Di),document.addEventListener("touchstart",S,Di),function(){Mi=Mi.filter(function(j){return j!==f}),document.removeEventListener("wheel",y,Di),document.removeEventListener("touchmove",y,Di),document.removeEventListener("touchstart",S,Di)}},[]);var k=a.removeScrollBar,O=a.inert;return w.createElement(w.Fragment,null,O?w.createElement(f,{styles:uw(o)}):null,k?w.createElement(tw,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function hw(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const mw=Yj($y,dw);var Iy=w.forwardRef(function(a,i){return w.createElement(fc,hn({},a,{ref:i,sideCar:mw}))});Iy.classNames=fc.classNames;var pw=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Ri=new WeakMap,Br=new WeakMap,qr={},Fu=0,Jy=function(a){return a&&(a.host||Jy(a.parentNode))},gw=function(a,i){return i.map(function(s){if(a.contains(s))return s;var r=Jy(s);return r&&a.contains(r)?r:(console.error("aria-hidden",s,"in not contained inside",a,". Doing nothing"),null)}).filter(function(s){return!!s})},yw=function(a,i,s,r){var o=gw(i,Array.isArray(a)?a:[a]);qr[s]||(qr[s]=new WeakMap);var f=qr[s],h=[],m=new Set,y=new Set(o),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};o.forEach(g);var S=function(b){!b||y.has(b)||Array.prototype.forEach.call(b.children,function(x){if(m.has(x))S(x);else try{var k=x.getAttribute(r),O=k!==null&&k!=="false",j=(Ri.get(x)||0)+1,E=(f.get(x)||0)+1;Ri.set(x,j),f.set(x,E),h.push(x),j===1&&O&&Br.set(x,!0),E===1&&x.setAttribute(s,"true"),O||x.setAttribute(r,"true")}catch(H){console.error("aria-hidden: cannot operate on ",x,H)}})};return S(i),m.clear(),Fu++,function(){h.forEach(function(b){var x=Ri.get(b)-1,k=f.get(b)-1;Ri.set(b,x),f.set(b,k),x||(Br.has(b)||b.removeAttribute(r),Br.delete(b)),k||b.removeAttribute(s)}),Fu--,Fu||(Ri=new WeakMap,Ri=new WeakMap,Br=new WeakMap,qr={})}},vw=function(a,i,s){s===void 0&&(s="data-aria-hidden");var r=Array.from(Array.isArray(a)?a:[a]),o=pw(a);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),yw(r,o,s,"aria-hidden")):function(){return null}},dc="Dialog",[Fy]=F1(dc),[bw,cn]=Fy(dc),Py=a=>{const{__scopeDialog:i,children:s,open:r,defaultOpen:o,onOpenChange:f,modal:h=!0}=a,m=w.useRef(null),y=w.useRef(null),[g,S]=nj({prop:r,defaultProp:o??!1,onChange:f,caller:dc});return u.jsx(bw,{scope:i,triggerRef:m,contentRef:y,contentId:$u(),titleId:$u(),descriptionId:$u(),open:g,onOpenChange:S,onOpenToggle:w.useCallback(()=>S(b=>!b),[S]),modal:h,children:s})};Py.displayName=dc;var Wy="DialogTrigger",xw=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,o=cn(Wy,s),f=$a(i,o.triggerRef);return u.jsx(qn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mf(o.open),...r,ref:f,onClick:ga(a.onClick,o.onOpenToggle)})});xw.displayName=Wy;var zf="DialogPortal",[Sw,ev]=Fy(zf,{forceMount:void 0}),tv=a=>{const{__scopeDialog:i,forceMount:s,children:r,container:o}=a,f=cn(zf,i);return u.jsx(Sw,{scope:i,forceMount:s,children:w.Children.map(r,h=>u.jsx(uc,{present:s||f.open,children:u.jsx(Ky,{asChild:!0,container:o,children:h})}))})};tv.displayName=zf;var Jr="DialogOverlay",nv=w.forwardRef((a,i)=>{const s=ev(Jr,a.__scopeDialog),{forceMount:r=s.forceMount,...o}=a,f=cn(Jr,a.__scopeDialog);return f.modal?u.jsx(uc,{present:r||f.open,children:u.jsx(ww,{...o,ref:i})}):null});nv.displayName=Jr;var jw=Ry("DialogOverlay.RemoveScroll"),ww=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,o=cn(Jr,s);return u.jsx(Iy,{as:jw,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(qn.div,{"data-state":Mf(o.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),Ka="DialogContent",av=w.forwardRef((a,i)=>{const s=ev(Ka,a.__scopeDialog),{forceMount:r=s.forceMount,...o}=a,f=cn(Ka,a.__scopeDialog);return u.jsx(uc,{present:r||f.open,children:f.modal?u.jsx(Nw,{...o,ref:i}):u.jsx(Ew,{...o,ref:i})})});av.displayName=Ka;var Nw=w.forwardRef((a,i)=>{const s=cn(Ka,a.__scopeDialog),r=w.useRef(null),o=$a(i,s.contentRef,r);return w.useEffect(()=>{const f=r.current;if(f)return vw(f)},[]),u.jsx(iv,{...a,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ga(a.onCloseAutoFocus,f=>{f.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:ga(a.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:ga(a.onFocusOutside,f=>f.preventDefault())})}),Ew=w.forwardRef((a,i)=>{const s=cn(Ka,a.__scopeDialog),r=w.useRef(!1),o=w.useRef(!1);return u.jsx(iv,{...a,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{a.onCloseAutoFocus?.(f),f.defaultPrevented||(r.current||s.triggerRef.current?.focus(),f.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:f=>{a.onInteractOutside?.(f),f.defaultPrevented||(r.current=!0,f.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const h=f.target;s.triggerRef.current?.contains(h)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&o.current&&f.preventDefault()}})}),iv=w.forwardRef((a,i)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:f,...h}=a,m=cn(Ka,s),y=w.useRef(null),g=$a(i,y);return zj(),u.jsxs(u.Fragment,{children:[u.jsx(qy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:f,children:u.jsx(Uy,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Mf(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Aw,{titleId:m.titleId}),u.jsx(kw,{contentRef:y,descriptionId:m.descriptionId})]})]})}),Df="DialogTitle",sv=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,o=cn(Df,s);return u.jsx(qn.h2,{id:o.titleId,...r,ref:i})});sv.displayName=Df;var lv="DialogDescription",rv=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,o=cn(lv,s);return u.jsx(qn.p,{id:o.descriptionId,...r,ref:i})});rv.displayName=lv;var cv="DialogClose",ov=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,o=cn(cv,s);return u.jsx(qn.button,{type:"button",...r,ref:i,onClick:ga(a.onClick,()=>o.onOpenChange(!1))})});ov.displayName=cv;function Mf(a){return a?"open":"closed"}var uv="DialogTitleWarning",[p2,fv]=J1(uv,{contentName:Ka,titleName:Df,docsSlug:"dialog"}),Aw=({titleId:a})=>{const i=fv(uv),s=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
180
+
181
+ If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
182
+
183
+ For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return w.useEffect(()=>{a&&(document.getElementById(a)||console.error(s))},[s,a]),null},Cw="DialogDescriptionWarning",kw=({contentRef:a,descriptionId:i})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fv(Cw).contentName}}.`;return w.useEffect(()=>{const o=a.current?.getAttribute("aria-describedby");i&&o&&(document.getElementById(i)||console.warn(r))},[r,a,i]),null},Tw=Py,Ow=tv,dv=nv,hv=av,mv=sv,pv=rv,_w=ov;const zw=Tw,Dw=Ow,gv=w.forwardRef(({className:a,...i},s)=>u.jsx(dv,{ref:s,className:Ft("fixed inset-0 z-50 bg-black/70 backdrop-blur-sm",a),...i}));gv.displayName=dv.displayName;const Mw=400,Rw=1200,Lw=720,yv=w.forwardRef(({className:a,children:i,...s},r)=>{const[o,f]=w.useState(Lw),h=w.useRef(!1),m=w.useRef(0),y=w.useRef(0),g=w.useCallback(x=>{h.current=!0,m.current=x.clientX,y.current=o,x.target.setPointerCapture(x.pointerId),x.preventDefault()},[o]),S=w.useCallback(x=>{if(!h.current)return;const k=m.current-x.clientX,O=Math.min(Rw,Math.max(Mw,y.current+k));f(O)},[]),b=w.useCallback(()=>{h.current=!1},[]);return u.jsxs(Dw,{children:[u.jsx(gv,{}),u.jsxs(hv,{ref:r,className:Ft("fixed z-50 flex flex-col bg-zinc-950 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-zinc-800",a),style:{width:`min(${o}px, 100vw)`},...s,children:[u.jsx("div",{className:"absolute inset-y-0 left-0 w-1.5 cursor-col-resize hover:bg-zinc-700/50 active:bg-zinc-600/50 transition-colors max-md:hidden",onPointerDown:g,onPointerMove:S,onPointerUp:b}),i,u.jsxs(_w,{className:"absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-zinc-500 transition hover:bg-zinc-900 hover:text-zinc-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",children:[u.jsx(my,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});yv.displayName=hv.displayName;const Uw=({className:a,...i})=>u.jsx("div",{className:Ft("flex flex-col gap-1.5 pr-10",a),...i}),vv=w.forwardRef(({className:a,...i},s)=>u.jsx(mv,{ref:s,className:Ft("text-lg font-medium text-zinc-50",a),...i}));vv.displayName=mv.displayName;const bv=w.forwardRef(({className:a,...i},s)=>u.jsx(pv,{ref:s,className:Ft("text-sm text-zinc-500",a),...i}));bv.displayName=pv.displayName;const Yi=[{id:"project_citypoint",name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",country:"US",language:"en",tags:["local intent","priority"],labels:{},configSource:"cli",configRevision:1},{id:"project_harbor",name:"Harbor Legal Group",canonicalDomain:"harborlegal.com",country:"US",language:"en",tags:["lead gen"],labels:{},configSource:"cli",configRevision:1},{id:"project_northstar",name:"Northstar Orthopedics",canonicalDomain:"northstarortho.com",country:"US",language:"en",tags:["multi-location"],labels:{},configSource:"cli",configRevision:1}];function Ji(a){return{id:a.id,projectId:a.projectId,projectName:a.projectName,kind:a.kind,kindLabel:a.kindLabel,status:a.status,trigger:a.trigger??"manual",createdAt:a.createdAt,startedAt:a.startedAt,duration:a.duration,statusDetail:a.statusDetail,summary:a.summary,triggerLabel:a.triggerLabel}}const xv=Ji({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"}),Fr=Ji({id:"run_citypoint_audit_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"site-audit",kindLabel:"Technical readiness audit",status:"partial",createdAt:"2026-03-08T09:20:00.000Z",startedAt:"Mar 8, 9:20 AM",duration:"14m 41s",statusDetail:"Sitemap fallback engaged; 461 of 500 pages analyzed and llms.txt was not found.",summary:"Fallback crawl completed with missing llms.txt",triggerLabel:"Manual"}),Rf=Ji({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"}),Lf=Ji({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"}),Sv=Ji({id:"run_harbor_audit_20260307",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"site-audit",kindLabel:"Technical readiness audit",status:"completed",createdAt:"2026-03-07T15:40:00.000Z",startedAt:"Mar 7, 3:40 PM",duration:"11m 33s",statusDetail:"Sitemap-first crawl completed with 99% success and no blocking readiness regressions.",summary:"Audit clean after service-page consolidation",triggerLabel:"Scheduled"}),Pr=Ji({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"}),Bw=[Rf,xv,Fr,Lf,Sv,Pr],qw=[{id:"evidence_citypoint_emergency_gemini",keyword:"emergency dentist brooklyn",provider:"gemini",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."},{id:"evidence_citypoint_emergency_openai",keyword:"emergency dentist brooklyn",provider:"openai",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."},{id:"evidence_citypoint_emergency_claude",keyword:"emergency dentist brooklyn",provider:"claude",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."},{id:"evidence_citypoint_invisalign_openai",keyword:"best invisalign dentist downtown brooklyn",provider:"openai",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."},{id:"evidence_citypoint_invisalign_gemini",keyword:"best invisalign dentist downtown brooklyn",provider:"gemini",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."},{id:"evidence_citypoint_invisalign_claude",keyword:"best invisalign dentist downtown brooklyn",provider:"claude",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."},{id:"evidence_citypoint_children_claude",keyword:"pediatric dentist brooklyn heights",provider:"claude",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."},{id:"evidence_citypoint_children_gemini",keyword:"pediatric dentist brooklyn heights",provider:"gemini",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."},{id:"evidence_citypoint_children_openai",keyword:"pediatric dentist brooklyn heights",provider:"openai",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."}],Hw=[{project:Yi[0],dateRangeLabel:"Last 7 days",contextLabel:"US / English / Local-intent monitoring",visibilitySummary:{label:"Answer Visibility",value:"61 / 100",delta:"-8 this week",tone:"caution",description:"Lost citation share on emergency-intent prompts while Invisalign visibility improved.",trend:[73,71,69,66,61]},providerScores:[{provider:"gemini",score:55,cited:5,total:9},{provider:"openai",score:67,cited:6,total:9},{provider:"claude",score:44,cited:4,total:9}],readinessSummary:{label:"Technical Readiness",value:"78 / 100",delta:"+4 after schema fixes",tone:"positive",description:"Schema fixes landed, but sitemap fallback and missing llms.txt still reduce confidence.",trend:[71,72,73,76,78]},competitorPressure:{label:"Competitor Pressure",value:"High",delta:"2 rivals moved up",tone:"negative",description:"Downtown Smiles and Harbor Dental now own the highest-intent local prompts.",trend:[54,58,61,65,69]},runStatus:{label:"Run Status",value:"Partial",delta:"1 queued follow-up",tone:"caution",description:"Latest technical audit completed in fallback mode; next visibility sweep is queued.",trend:[76,74,72,68,67]},insights:[{id:"insight_citypoint_lost_citations",tone:"negative",title:"Lost citation on 3 money queries",detail:"Emergency-intent prompts stopped grounding Citypoint after competitors refreshed availability pages.",actionLabel:"Open evidence",evidenceId:"evidence_citypoint_emergency"},{id:"insight_citypoint_emerging",tone:"positive",title:"Fresh case studies are starting to work",detail:"Invisalign prompts now cite Citypoint when case-study pages are mentioned in the answer rationale.",actionLabel:"Review example",evidenceId:"evidence_citypoint_invisalign"},{id:"insight_citypoint_content_gap",tone:"caution",title:"Coverage gap is still content-led",detail:"Pediatric prompts remain uncited because there is no dedicated neighborhood page to support them.",actionLabel:"Inspect gap",evidenceId:"evidence_citypoint_children"}],visibilityEvidence:qw,technicalFindings:[{id:"finding_citypoint_schema",severity:"high",title:"Emergency service page lost FAQ schema",detail:"The page most closely tied to high-intent emergency prompts is no longer exposing FAQPage markup.",impact:"Removes a strong grounding signal from the page that previously earned citations."},{id:"finding_citypoint_llms",severity:"medium",title:"llms.txt is still missing",detail:"The latest site audit could not fetch llms.txt or llms-full.txt.",impact:"Lowers crawler clarity and weakens the story when visibility drops."},{id:"finding_citypoint_internal_links",severity:"low",title:"Insurance and pediatric content sit too deep",detail:"Supporting pages needed for family and insurance prompts sit three clicks from the homepage.",impact:"Limits discovery for lower-volume but high-trust prompt variants."}],competitors:[{id:"competitor_citypoint_downtown",domain:"downtownsmiles.com",citationCount:4,totalKeywords:8,pressureLabel:"High",citedKeywords:["emergency dentist","same-day dental","walk-in dentist","tooth pain"],movement:"Up on emergency and availability prompts",notes:"Recently added same-day booking proof and FAQ content."},{id:"competitor_citypoint_harbor",domain:"harbordental.com",citationCount:2,totalKeywords:8,pressureLabel:"Moderate",citedKeywords:["family dentist","emergency dentist"],movement:"Holding citations on family and emergency intents",notes:"Strong appointment and insurance content keeps answers grounded."},{id:"competitor_citypoint_clearline",domain:"clearlineortho.com",citationCount:1,totalKeywords:8,pressureLabel:"Low",citedKeywords:["invisalign near me"],movement:"Softening on Invisalign prompts",notes:"Case-study content is aging, opening room for Citypoint."}],recentRuns:[Rf,xv,Fr]},{project:Yi[1],dateRangeLabel:"Last 14 days",contextLabel:"US / English / Service-area legal prompts",visibilitySummary:{label:"Answer Visibility",value:"74 / 100",delta:"+2 this week",tone:"positive",description:"Branded prompts are stable and informational queries are gradually improving.",trend:[68,70,71,73,74]},providerScores:[{provider:"gemini",score:75,cited:3,total:4},{provider:"openai",score:50,cited:2,total:4}],readinessSummary:{label:"Technical Readiness",value:"83 / 100",delta:"+1 this week",tone:"positive",description:"Service pages consolidated cleanly and structured data remains intact.",trend:[80,80,81,82,83]},competitorPressure:{label:"Competitor Pressure",value:"Moderate",delta:"Steady",tone:"neutral",description:"Competitors are stable; no new citation displacement was detected.",trend:[44,46,45,46,46]},runStatus:{label:"Run Status",value:"Healthy",delta:"No failures in 14 days",tone:"positive",description:"Latest visibility and audit runs completed without fallback.",trend:[88,89,90,90,91]},insights:[{id:"insight_harbor_cluster",tone:"positive",title:"Practice-area clustering is paying off",detail:"Merged legal service pages now ground broader informational prompts without hurting conversion intent.",actionLabel:"Review evidence"},{id:"insight_harbor_local",tone:"neutral",title:"Local pack competitors are steady",detail:"No new displacement on borough-specific injury prompts this week.",actionLabel:"Keep monitoring"}],visibilityEvidence:[{id:"evidence_harbor_personal_injury",keyword:"brooklyn personal injury lawyer",provider:"gemini",citationState:"cited",changeLabel:"Held for 5 runs",answerSnippet:"Harbor Legal Group remains cited for borough-specific personal injury queries due to clear practice-area and case-result content.",citedDomains:["harborlegal.com"],evidenceUrls:["https://harborlegal.com/personal-injury/brooklyn"],competitorDomains:["shorelineinjury.com"],groundingSources:[],relatedTechnicalSignals:["Practice-area schema intact","Case results link directly from service pages"],summary:"Grounding remains durable after the service-page consolidation."}],technicalFindings:[{id:"finding_harbor_faq",severity:"low",title:"FAQ answers could be more concise",detail:"Some FAQ answers are still long enough to reduce snippet clarity.",impact:"This is optimization, not a blocker."}],competitors:[{id:"competitor_harbor_shoreline",domain:"shorelineinjury.com",citationCount:2,totalKeywords:6,pressureLabel:"Moderate",citedKeywords:["personal injury lawyer","car accident attorney"],movement:"Stable",notes:"Strong case-result pages keep it in rotation."}],recentRuns:[Lf,Sv]},{project:Yi[2],dateRangeLabel:"Last 7 days",contextLabel:"US / English / Multi-location treatment prompts",visibilitySummary:{label:"Answer Visibility",value:"58 / 100",delta:"Run in progress",tone:"neutral",description:"The current run is measuring whether treatment-location pages improved citation breadth.",trend:[52,54,55,57,58]},providerScores:[{provider:"openai",score:58,cited:4,total:7}],readinessSummary:{label:"Technical Readiness",value:"76 / 100",delta:"+3 after template cleanup",tone:"positive",description:"Location templates are cleaner, but location-specific proof still needs depth.",trend:[69,71,72,74,76]},competitorPressure:{label:"Competitor Pressure",value:"Moderate",delta:"Watching 1 chain",tone:"caution",description:"Regional chain competitors are winning on broad treatment questions.",trend:[49,51,52,54,56]},runStatus:{label:"Run Status",value:"Running",delta:"9 prompts remaining",tone:"neutral",description:"Current answer-visibility sweep is still collecting provider responses.",trend:[63,64,65,67,68]},insights:[{id:"insight_northstar_location_depth",tone:"caution",title:"Location pages need stronger proof",detail:"The templates are clean, but answers still prefer competitors with physician-specific evidence.",actionLabel:"Track current run"}],visibilityEvidence:[{id:"evidence_northstar_knee",keyword:"knee replacement surgeon westchester",provider:"openai",citationState:"emerging",changeLabel:"Improving",answerSnippet:"Northstar Orthopedics is beginning to appear on location-sensitive treatment prompts when physician bios and treatment pages are tightly linked.",citedDomains:["northstarortho.com","regionaljointcare.com"],evidenceUrls:["https://northstarortho.com/locations/westchester/knee-replacement"],competitorDomains:["regionaljointcare.com"],groundingSources:[],relatedTechnicalSignals:["Physician bios now linked from treatment pages"],summary:"Template cleanup is helping, but proof depth still matters."}],technicalFindings:[{id:"finding_northstar_proof",severity:"medium",title:"Location pages lack physician-specific proof",detail:"Treatment pages are structurally sound but still too generic for highly specific prompts.",impact:"Limits how often the provider is cited for local treatment questions."}],competitors:[{id:"competitor_northstar_regional",domain:"regionaljointcare.com",citationCount:5,totalKeywords:7,pressureLabel:"High",citedKeywords:["knee replacement","hip surgery","joint pain treatment","orthopedic surgeon","sports medicine"],movement:"Winning broad treatment prompts",notes:"Heavy physician proof and patient-story content."}],recentRuns:[Pr]}],Kw={portfolioOverview:{projects:[{project:Yi[0],visibilityScore:61,visibilityDelta:"-8 this week",readinessScore:78,readinessDelta:"+4 after schema fixes",lastRun:Fr,insight:"Lost emergency-intent citations after competitors refreshed availability pages.",trend:[73,71,69,66,61],competitorPressureLabel:"High"},{project:Yi[1],visibilityScore:74,visibilityDelta:"+2 this week",readinessScore:83,readinessDelta:"+1 this week",lastRun:Lf,insight:"Practice-area consolidation is stabilizing branded and informational prompts.",trend:[68,70,71,73,74],competitorPressureLabel:"Moderate"},{project:Yi[2],visibilityScore:58,visibilityDelta:"Run in progress",readinessScore:76,readinessDelta:"+3 after template cleanup",lastRun:Pr,insight:"Location pages are improving, but local treatment proof still trails competitors.",trend:[52,54,55,57,58],competitorPressureLabel:"Moderate"}],attentionItems:[{id:"attention_citypoint",tone:"negative",title:"Citypoint Dental lost emergency-intent citations",detail:"Three high-intent prompts now cite competitors first.",actionLabel:"Open project",href:"/projects/project_citypoint"},{id:"attention_worker",tone:"neutral",title:"One follow-up run is queued",detail:"Citypoint has a queued visibility sweep waiting on provider quota.",actionLabel:"Open runs",href:"/runs"},{id:"attention_northstar",tone:"caution",title:"Northstar run still in progress",detail:"Nine prompts remain before the current treatment-location sweep finishes.",actionLabel:"View timeline",href:"/runs"}],recentRuns:[Rf,Pr,Fr],systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Healthy",meta:"phase-1 · database configured"},{id:"worker",label:"Worker",tone:"positive",detail:"Healthy",meta:"heartbeat moments ago"},{id:"providers",label:"Providers",tone:"positive",detail:"2 of 3 configured",meta:"Gemini · OpenAI"}],lastUpdatedAt:"Mar 9, 8:08 AM ET"},projects:Hw,runs:Bw,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"Primary control plane is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"worker",label:"Worker heartbeats received",detail:"Background execution loop is alive.",state:"ready",guidance:"Required before any answer-visibility or site-audit run can start."},{id:"provider",label:"Provider configured",detail:"Gemini key and quota defaults are present.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",country:"US",language:"en"},keywordImportState:{mode:"paste",keywordCount:18,preview:["emergency dentist brooklyn","best invisalign dentist downtown brooklyn","pediatric dentist brooklyn heights"]},competitorDraft:{domains:["downtownsmiles.com","harbordental.com","clearlineortho.com"],notes:"Start with the domains that already displace the project on money prompts."},launchState:{enabled:!0,ctaLabel:"Launch first run",summary:"Queue a visibility sweep first, then follow with a site audit to explain movement."}},settings:{providerStatuses:[{name:"Gemini",model:"gemini-2.5-flash",state:"ready",detail:"API key detected and conservative quota defaults are active.",quota:{maxConcurrency:2,maxRequestsPerMinute:10,maxRequestsPerDay:1e3}},{name:"OpenAI",model:"gpt-4o",state:"ready",detail:"API key configured.",quota:{maxConcurrency:2,maxRequestsPerMinute:10,maxRequestsPerDay:1e3}},{name:"Claude",model:"claude-sonnet-4-6",state:"needs-config",detail:"API key is missing."}],selfHostNotes:["Run behind a reverse proxy before exposing the dashboard outside a trusted network.","Keep bootstrap and provider secrets out of source control.","Use persistent Postgres storage before treating run history as durable."],bootstrapNote:"Bootstrap/admin secrets stay in the environment; they do not belong in the UI."}},Yw={apiStatus:{label:"API",state:"ok",detail:"phase-1 · database configured",version:"phase-1",databaseConfigured:!0},workerStatus:{label:"Worker",state:"ok",detail:"phase-1 · database configured · heartbeat 2026-03-09T08:07:00.000Z",version:"phase-1",databaseConfigured:!0,lastHeartbeatAt:"2026-03-09T08:07:00.000Z"}};function Gw(a={}){const i=structuredClone(Kw),s=structuredClone(Yw);if(a.emptyPortfolio&&(i.portfolioOverview.projects=[],i.portfolioOverview.attentionItems=[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Start the guided setup flow to add a domain, import keywords, and launch the first run.",actionLabel:"Open setup",href:"/setup"}],i.portfolioOverview.recentRuns=[],i.portfolioOverview.emptyState={title:"No projects yet",detail:"Canonry becomes useful after one project, a small keyword set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}),a.runScenario==="partial"&&(i.runs[0].status="partial",i.runs[0].duration="7m 24s",i.runs[0].statusDetail="Quota window closed mid-run; 14 of 18 prompts completed before the worker paused.",i.runs[0].summary="Partial visibility sweep after quota cap",i.portfolioOverview.recentRuns[0]=i.runs[0]),a.runScenario==="failed"&&(i.runs[0].status="failed",i.runs[0].duration="1m 43s",i.runs[0].statusDetail="Worker could not reach the provider after repeated retry exhaustion.",i.runs[0].summary="Provider retries exhausted before results were captured",i.portfolioOverview.recentRuns[0]=i.runs[0],i.portfolioOverview.attentionItems.unshift({id:"attention_failed_run",tone:"negative",title:"One queued follow-up failed to start cleanly",detail:"Worker retries exhausted before the provider returned a response.",actionLabel:"Open runs",href:"/runs"})),a.degradedWorker&&(s.workerStatus={label:"Worker",state:"error",detail:"heartbeat stale · last seen 12m ago",version:"phase-1",databaseConfigured:!0,lastHeartbeatAt:"2026-03-09T07:55:00.000Z"}),a.providerNeedsConfig&&(i.settings.providerStatuses=i.settings.providerStatuses.map(r=>({...r,state:"needs-config",detail:"API key is missing, so answer-visibility sweeps are blocked."}))),a.visibilityDropProjectId){const r=i.projects.find(f=>f.project.id===a.visibilityDropProjectId),o=i.portfolioOverview.projects.find(f=>f.project.id===a.visibilityDropProjectId);r&&(r.visibilitySummary.value="49 / 100",r.visibilitySummary.delta="-12 in 48h",r.visibilitySummary.tone="negative",r.visibilitySummary.description="A sharper drop than normal; citations slipped across both local and service-intent prompts.",r.insights.unshift({id:`${r.project.id}_drop`,tone:"negative",title:"Sharp citation drop detected",detail:"Answers that previously cited the domain now ground competitors on both local and service-intent prompts.",actionLabel:"Open evidence",evidenceId:r.visibilityEvidence[0]?.id}),r.technicalFindings?.unshift({id:`${r.project.id}_drop_finding`,severity:"high",title:"Primary supporting page fell out of crawl emphasis",detail:"The drop correlates with weaker internal links and missing FAQ markup on the main conversion page.",impact:"Both citation share and trust signals deteriorated at the same time."})),o&&(o.visibilityScore=49,o.visibilityDelta="-12 in 48h",o.insight="Sharp citation drop detected; grounding now prefers competitors on multiple high-intent prompts.")}return{dashboard:i,health:s}}function jv(a,i){return a.projects.find(s=>s.project.id===i)}function $w(a,i){return a.runs.find(s=>s.id===i)}function Vw(a,i){for(const s of a.projects){const r=s.visibilityEvidence.find(o=>o.id===i);if(r)return{project:s,evidence:r}}}const Qw="/api/v1";function Xw(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.apiKey?window.__CANONRY_CONFIG__.apiKey:""}async function Ke(a,i){const s=Xw(),r=await fetch(`${Qw}${a}`,{...i,headers:{"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...i?.headers}});if(!r.ok)throw new Error(`API ${r.status}: ${r.statusText}`);if(r.status!==204)return r.json()}function Zw(){return Ke("/projects")}function Iw(){return Ke("/runs")}function cf(a){return Ke(`/runs/${encodeURIComponent(a)}`)}function Jw(a){return Ke(`/projects/${encodeURIComponent(a)}/keywords`)}function wv(a){return Ke(`/projects/${encodeURIComponent(a)}/competitors`)}function Fw(a){return Ke(`/projects/${encodeURIComponent(a)}/timeline`)}function Nv(a,i){return Ke(`/projects/${encodeURIComponent(a)}`,{method:"PUT",body:JSON.stringify(i)})}function Pw(a,i){return Ke(`/projects/${encodeURIComponent(a)}/keywords`,{method:"PUT",body:JSON.stringify({keywords:i})})}function Ww(a,i){return Ke(`/projects/${encodeURIComponent(a)}/keywords`,{method:"POST",body:JSON.stringify({keywords:i})})}function Ev(a,i){return Ke(`/projects/${encodeURIComponent(a)}/competitors`,{method:"PUT",body:JSON.stringify({competitors:i})})}function Av(a){return Ke(`/projects/${encodeURIComponent(a)}/runs`,{method:"POST",body:"{}"})}async function eN(a){await Ke(`/projects/${encodeURIComponent(a)}`,{method:"DELETE",body:"{}"})}function tN(a){return Ke(`/projects/${encodeURIComponent(a)}/export`)}function nN(){return Ke("/settings")}function aN(a,i){return Ke(`/settings/providers/${encodeURIComponent(a)}`,{method:"PUT",body:JSON.stringify(i)})}async function iN(a){try{return await Ke(`/projects/${encodeURIComponent(a)}/schedule`)}catch(i){if(i instanceof Error&&i.message.includes("404"))return null;throw i}}function Ng(a,i){return Ke(`/projects/${encodeURIComponent(a)}/schedule`,{method:"PUT",body:JSON.stringify(i)})}async function sN(a){await Ke(`/projects/${encodeURIComponent(a)}/schedule`,{method:"DELETE",body:"{}"})}function lN(a){return Ke(`/projects/${encodeURIComponent(a)}/notifications`)}function rN(a,i){return Ke(`/projects/${encodeURIComponent(a)}/notifications`,{method:"POST",body:JSON.stringify(i)})}async function cN(a,i){await Ke(`/projects/${encodeURIComponent(a)}/notifications/${encodeURIComponent(i)}`,{method:"DELETE",body:"{}"})}function oN(a,i){return Ke(`/projects/${encodeURIComponent(a)}/notifications/${encodeURIComponent(i)}/test`,{method:"POST",body:"{}"})}function uN(a,i,s){return Ke(`/projects/${encodeURIComponent(a)}/keywords/generate`,{method:"POST",body:JSON.stringify({provider:i,count:s})})}function fN(a){return Ke("/apply",{method:"POST",body:JSON.stringify(a)})}function Cv(a){return{id:a.id,name:a.name,displayName:a.displayName,canonicalDomain:a.canonicalDomain,country:a.country,language:a.language,tags:a.tags,labels:a.labels,configSource:a.configSource,configRevision:a.configRevision,createdAt:a.createdAt,updatedAt:a.updatedAt}}function Eg(a){try{return new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}catch{return a}}function dN(a,i){if(!a)return"Waiting";if(!i)return"Running";const s=new Date(i).getTime()-new Date(a).getTime();if(s<1e3)return"<1s";const r=Math.floor(s/1e3);if(r<60)return`${r}s`;const o=Math.floor(r/60),f=r%60;return`${o}m ${f}s`}function kv(a){return a==="answer-visibility"?"Answer visibility sweep":a}function hN(a){return a==="manual"?"Manual":a==="scheduled"?"Scheduled":a==="config-apply"?"Config apply":a}function Uf(a,i){return{id:a.id,projectId:a.projectId,projectName:i,kind:a.kind,kindLabel:kv(a.kind),status:a.status,trigger:a.trigger??"manual",createdAt:a.createdAt,startedAt:a.startedAt?Eg(a.startedAt):Eg(a.createdAt),duration:dN(a.startedAt,a.finishedAt),statusDetail:a.error?Tv(a.error):mN(a),summary:pN(a),triggerLabel:hN(a.trigger)}}function Tv(a){try{const s=JSON.parse(a);if(typeof s=="object"&&s!==null){const r=s.message??s.error?.message??s[0]?.error?.message;if(typeof r=="string"&&r.length>0)return r.length>200?r.slice(0,200)+"…":r}}catch{}const i=a.match(/\[.*?\]\s*(.+)/);if(i){const s=i[1];return s.length>200?s.slice(0,200)+"…":s}return a.length>200?a.slice(0,200)+"…":a}function mN(a){switch(a.status){case"queued":return"Waiting for execution slot.";case"running":return"Provider queries in progress.";case"completed":return"All key phrases checked.";case"partial":return"Run completed with some key phrases skipped.";case"failed":return a.error?Tv(a.error):"Run failed.";default:return""}}function pN(a){switch(a.status){case"queued":return"Queued for execution";case"running":return"In progress";case"completed":return"Visibility sweep completed";case"partial":return"Partial completion";case"failed":return"Run failed";default:return a.status}}function Ov(a){if(a.length===0)return{score:0,citedCount:0,totalCount:0};const i=new Map;for(const f of a){const h=f.keyword??f.id;i.has(h)||i.set(h,!1),f.citationState==="cited"&&i.set(h,!0)}const s=i.size,r=[...i.values()].filter(Boolean).length;return{score:s>0?Math.round(r/s*100):0,citedCount:r,totalCount:s}}function gN(a){return a>=70?"positive":a>=40?"caution":"negative"}function yN(a){return a==="High"?"negative":a==="Moderate"?"caution":"neutral"}function _v(a,i){if(a.length===0||i.length===0)return{label:"None",count:0};const s=new Set(i);let r=0;for(const f of a)f.competitorOverlap.some(h=>s.has(h))&&r++;const o=r/a.length;return o>=.5?{label:"High",count:r}:o>=.2?{label:"Moderate",count:r}:{label:"Low",count:r}}function vN(a,i,s,r){const o=[];let f=0;const h=new Set;if(s){const m=new Map;for(const g of s.snapshots)if(g.keyword){const S=`${g.keyword}::${g.provider}`;m.set(S,g)}const y=[...new Set(s.snapshots.map(g=>g.provider))].sort();y.length===0&&y.push("gemini");for(const g of i){if(g.runs.length===0)continue;h.add(g.keyword);const b=g.runs.at(-1)?.transition??"not-cited",x=b==="lost"?"lost":b==="emerging"?"emerging":b==="cited"?"cited":"not-cited";for(const k of y){const O=m.get(`${g.keyword}::${k}`);if(!O&&y.length>1)continue;const j=O?O.citationState==="cited"?"cited":"not-cited":x,E=y.length>1?j==="cited"?"cited":"not-cited":b;o.push({id:`evidence_${a}_${f++}`,keyword:g.keyword,provider:O?.provider??k,citationState:j,changeLabel:bN(E,g.runs.length),answerSnippet:O?.answerText??"",citedDomains:O?.citedDomains??[],evidenceUrls:[],competitorDomains:O?.competitorOverlap??[],relatedTechnicalSignals:[],groundingSources:O?.groundingSources??[],summary:xN(j,g.keyword)})}}}for(const m of r)h.has(m.keyword)||o.push({id:`evidence_${a}_${f++}`,keyword:m.keyword,provider:"",citationState:"pending",changeLabel:"Awaiting first run",answerSnippet:"",citedDomains:[],evidenceUrls:[],competitorDomains:[],relatedTechnicalSignals:[],groundingSources:[],summary:`"${m.keyword}" has been added but no visibility run has been triggered yet.`});return o}function bN(a,i){switch(a){case"new":return"First observation";case"cited":return`Cited for ${i} runs`;case"lost":return"Lost since last run";case"emerging":return"First citation";case"not-cited":return`Not cited across ${i} runs`;default:return a}}function xN(a,i){switch(a){case"cited":return`Your domain is cited in AI answers for "${i}".`;case"lost":return`Citation was lost for "${i}". Competitors may have gained ground.`;case"emerging":return`Your domain is starting to appear in answers for "${i}".`;case"not-cited":return`No citation detected for "${i}".`;case"pending":return`"${i}" has been added but no visibility run has been triggered yet.`}}function SN(a){const i=a.map(s=>s.citationState);return i.includes("cited")?"cited":i.includes("emerging")?"emerging":i.includes("lost")?"lost":i.includes("pending")?"pending":"not-cited"}function jN(a){const i=[],s=new Map;for(const h of a){const m=s.get(h.keyword)??[];s.set(h.keyword,[...m,h])}const r=[],o=[],f=[];for(const[h,m]of s){const y=SN(m),g=m[0].id;y==="lost"?r.push({phrase:h,id:m.find(S=>S.citationState==="lost")?.id??g}):y==="emerging"?o.push({phrase:h,id:m.find(S=>S.citationState==="emerging")?.id??g}):y==="not-cited"&&f.push({phrase:h,id:g})}return r.length>0&&i.push({id:"insight_lost",tone:"negative",title:`Lost citation on ${r.length} key phrase${r.length>1?"s":""}`,detail:`Key phrases: ${r.map(h=>h.phrase).join(", ")}`,actionLabel:"Open evidence",evidenceId:r[0].id}),o.length>0&&i.push({id:"insight_emerging",tone:"positive",title:`New citation on ${o.length} key phrase${o.length>1?"s":""}`,detail:`Key phrases: ${o.map(h=>h.phrase).join(", ")}`,actionLabel:"Review evidence",evidenceId:o[0].id}),f.length>0&&i.push({id:"insight_gap",tone:"caution",title:`${f.length} key phrase${f.length>1?"s":""} not cited by any provider`,detail:"These key phrases have not been cited in any AI answer across all providers.",actionLabel:"Inspect gap",evidenceId:f[0].id}),i.length===0&&i.push({id:"insight_stable",tone:"neutral",title:"No significant changes",detail:"Citation state is stable across all tracked key phrases.",actionLabel:"Monitor"}),i}function wN(a){const i=a[0];if(!i)return{label:"Run Status",value:"None",delta:"No runs yet",tone:"neutral",description:"Trigger a visibility sweep to start tracking.",tooltip:"Current execution state of visibility sweeps. Shows the status of the most recent run and total run count.",trend:[]};const s=i.status==="completed"?"Healthy":i.status==="running"?"Running":i.status==="queued"?"Queued":i.status==="partial"?"Partial":"Failed",r=i.status==="completed"?"positive":i.status==="failed"?"negative":i.status==="partial"?"caution":"neutral";return{label:"Run Status",value:s,delta:`${a.length} total runs`,tone:r,description:`Latest: ${kv(i.kind)} — ${i.status}`,tooltip:"Current execution state of visibility sweeps. Shows the status of the most recent run and total run count.",trend:[]}}function NN(a){const i=Cv(a.project),s=vN(i.name,a.timeline,a.latestRunDetail,a.keywords),r=a.latestRunDetail?.snapshots??[],o=Ov(r),f=_v(r,a.competitors.map(b=>b.domain)),h=jN(s),m=[...a.runs].sort((b,x)=>x.createdAt.localeCompare(b.createdAt)),y=m.map(b=>Uf(b,a.project.displayName||a.project.name)),g=new Map;for(const b of r){const x=b.provider||"gemini",k=g.get(x)??{cited:0,total:0};k.total++,b.citationState==="cited"&&k.cited++,g.set(x,k)}const S=[...g.entries()].sort(([b],[x])=>b.localeCompare(x)).map(([b,{cited:x,total:k}])=>({provider:b,score:k>0?Math.round(x/k*100):0,cited:x,total:k}));return{project:i,dateRangeLabel:"All time",contextLabel:`${i.country} / ${i.language.toUpperCase()}`,visibilitySummary:{label:"Answer Visibility",value:r.length>0?`${o.score}`:"No data",delta:r.length>0?`${o.citedCount} of ${o.totalCount} key phrases visible`:"Run a sweep first",tone:r.length>0?gN(o.score):"neutral",description:r.length>0?`${o.citedCount} of ${o.totalCount} tracked key phrases found your domain in at least one AI answer engine.`:"No visibility data yet. Trigger a run to start tracking.",tooltip:'Percentage of tracked key phrases where your domain is cited by at least one AI answer engine. A key phrase is "visible" if any configured provider includes your site in its response.',trend:[]},providerScores:S,readinessSummary:void 0,competitorPressure:{label:"Competitor Pressure",value:f.label,delta:f.count>0?`${f.count} overlapping citations`:"No overlap detected",tone:yN(f.label),description:a.competitors.length>0?`${a.competitors.length} competitor${a.competitors.length>1?"s":""} tracked.`:"No competitors configured.",tooltip:"How often competitor domains appear alongside yours in AI answers. High pressure means competitors are frequently cited for the same key phrases.",trend:[]},runStatus:wN(m),insights:h,visibilityEvidence:s,technicalFindings:void 0,competitors:a.competitors.map((b,x)=>{const k=new Set;for(const G of r)(G.competitorOverlap.includes(b.domain)||G.citedDomains.includes(b.domain))&&G.keyword&&k.add(G.keyword);const O=[...k],j=new Set(r.map(G=>G.keyword).filter(Boolean)),E=j.size>0?O.length/j.size:0,H=E>=.5?"High":E>=.2?"Moderate":O.length>0?"Low":"None";return{id:b.id||`comp_${x}`,domain:b.domain,citationCount:O.length,totalKeywords:j.size,pressureLabel:H,citedKeywords:O,movement:"",notes:""}}),recentRuns:y.slice(0,5)}}function EN(a){const i=Cv(a.project),s=a.latestRunDetail?.snapshots??[],r=Ov(s),o=_v(s,a.competitors.map(y=>y.domain)),h=[...a.runs].sort((y,g)=>g.createdAt.localeCompare(y.createdAt))[0],m=h?Uf(h,a.project.displayName||a.project.name):{id:"none",projectId:a.project.id,projectName:a.project.displayName||a.project.name,kind:"answer-visibility",kindLabel:"No runs yet",status:"queued",trigger:"manual",createdAt:"",startedAt:"",duration:"",statusDetail:"",summary:"No runs yet",triggerLabel:""};return{project:i,visibilityScore:r.score,visibilityDelta:s.length>0?`${r.citedCount} of ${r.totalCount} key phrases`:"No data",readinessScore:void 0,readinessDelta:void 0,lastRun:m,insight:s.length>0?`${r.citedCount} of ${r.totalCount} key phrases visible across ${new Set(s.map(y=>y.provider)).size} provider${new Set(s.map(y=>y.provider)).size>1?"s":""}.`:"No runs completed yet.",trend:[],competitorPressureLabel:o.label}}function AN(a,i){const s=[],r=[],o=[];for(const h of a){r.push(NN(h)),o.push(EN(h));const m=[...h.runs].sort((y,g)=>g.createdAt.localeCompare(y.createdAt));for(const y of m)s.push(Uf(y,h.project.displayName||h.project.name))}s.sort((h,m)=>m.createdAt.localeCompare(h.createdAt));const f=a.length>0;return{portfolioOverview:{projects:o,attentionItems:f?CN(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"}],lastUpdatedAt:new Date().toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),...f?{}:{emptyState:{title:"No projects yet",detail:"Canonry becomes useful after one project, a small key phrase 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"},keywordImportState:{mode:"paste",keywordCount: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:(i?.providers??[]).map(h=>({name:h.name,model:h.model,state:h.configured?"ready":"needs-config",detail:h.configured?"Provider is configured.":"API key is missing.",quota:h.quota})),selfHostNotes:["Configuration is stored in ~/.canonry/config.yaml.","Database is SQLite at ~/.canonry/data.db.","API key was auto-generated during canonry init."],bootstrapNote:"Manage settings via ~/.canonry/config.yaml and restart the server."}}}function CN(a){const i=[];for(const s of a){const r=s.visibilityEvidence.filter(f=>f.citationState==="lost");r.length>0&&i.push({id:`attention_${s.project.id}_lost`,tone:"negative",title:`${s.project.displayName||s.project.name} lost citations`,detail:`${r.length} key phrase${r.length>1?"s":""} lost citation.`,actionLabel:"Open project",href:`/projects/${s.project.id}`});const o=s.recentRuns.filter(f=>f.status==="running"||f.status==="queued");o.length>0&&i.push({id:`attention_${s.project.id}_active`,tone:"neutral",title:`${s.project.displayName||s.project.name} has active runs`,detail:`${o.length} run${o.length>1?"s":""} in progress.`,actionLabel:"View runs",href:"/runs"})}return i.length===0&&i.push({id:"attention_stable",tone:"positive",title:"All projects stable",detail:"No citation losses or active runs to flag.",actionLabel:"View portfolio",href:"/"}),i}const Ag=[{label:"Architecture",href:"https://github.com/AINYC/canonry/blob/main/docs/architecture.md"},{label:"Testing Guide",href:"https://github.com/AINYC/canonry/blob/main/docs/testing.md"}],kN=Gw(),Cg=a=>({label:a,state:"checking",detail:"Checking service health"}),TN={apiStatus:Cg("API"),workerStatus:Cg("Worker")};async function ON(a,i){try{const s=await fetch(a);if(!s.ok)return{label:i,state:"error",detail:`HTTP ${s.status}`};const r=await s.json(),o=typeof r.version=="string"?r.version:"unknown",f=typeof r.databaseUrlConfigured=="boolean"?r.databaseUrlConfigured:void 0,h=typeof r.lastHeartbeatAt=="string"?r.lastHeartbeatAt:void 0,m=[o,f===!1?"database not configured":"database configured",h?`heartbeat ${h}`:void 0].filter(Boolean).join(" · ");return{label:i,state:"ok",detail:m,version:o,databaseConfigured:f,lastHeartbeatAt:h}}catch(s){return{label:i,state:"error",detail:s instanceof Error?s.message:"unreachable"}}}function Gi(a){if(!a)return"/";const i=a.split("?")[0]??"/";return i===""?"/":i.length>1&&i.endsWith("/")?i.slice(0,-1):i}function _N(a,i){const s=Gi(a);if(s==="/")return{kind:"overview",path:"/"};if(s==="/runs")return{kind:"runs",path:"/runs"};if(s==="/settings")return{kind:"settings",path:"/settings"};if(s==="/setup")return{kind:"setup",path:"/setup"};if(s==="/projects")return{kind:"projects",path:"/projects"};if(s.startsWith("/projects/")){const r=s.slice(10);return jv(i,r)?{kind:"project",path:s,projectId:r}:{kind:"not-found",path:s}}return{kind:"not-found",path:s}}function zN(a){return a?Gi(a):typeof window<"u"?Gi(window.location.pathname):"/"}function Wr(a){return a.state==="ok"?"positive":a.state==="checking"?"neutral":"negative"}function zv(a){switch(a){case"completed":return"positive";case"partial":return"caution";case"failed":return"negative";case"queued":case"running":return"neutral"}}function DN(a){switch(a){case"cited":return"positive";case"emerging":return"positive";case"not-cited":return"caution";case"lost":return"negative";case"pending":return"neutral"}}function MN(a){switch(a){case"high":return"negative";case"medium":return"caution";case"low":return"neutral"}}function RN(a){const i=a.match(/^(\[.*?\])\s*(.+)/);if(i){const s=i[1],r=i[2],o=r.indexOf("{");if(o>=0){const f=r.slice(0,o).trim(),h=r.slice(o);try{const m=JSON.parse(h);return`${s} ${f}
184
+
185
+ ${JSON.stringify(m,null,2)}`}catch{}}return`${s}
186
+ ${r}`}try{const s=JSON.parse(a);return JSON.stringify(s,null,2)}catch{return a}}function rl(a){return a.split("-").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}function LN(a,i,s){return a.map(r=>{if(r.id==="api")return{...r,tone:Wr(i.apiStatus),detail:i.apiStatus.state==="ok"?"Healthy":"Needs attention",meta:i.apiStatus.detail};if(r.id==="worker")return{...r,tone:Wr(i.workerStatus),detail:i.workerStatus.state==="ok"?"Healthy":"Needs attention",meta:i.workerStatus.detail};const o=s.providerStatuses.filter(y=>y.state==="ready").length,f=s.providerStatuses.length,h=o>0,m=s.providerStatuses.filter(y=>y.state==="ready").map(y=>Rv[y.name]??y.name).join(" · ");return{...r,label:"Providers",tone:h?"positive":"caution",detail:`${o} of ${f} configured`,meta:m||"None configured"}})}function UN(a,i){if(a.apiStatus.state!=="ok")return"Launch is blocked until the API responds cleanly.";if(a.apiStatus.databaseConfigured===!1)return"Launch is blocked until the API has a database connection configured.";if(a.workerStatus.state!=="ok")return"Launch is blocked until the worker is healthy and heartbeats are current.";if(!i.providerStatuses.some(s=>s.state==="ready"))return"Launch is blocked until at least one provider is configured."}function BN(a,i,s){const r=UN(i,s),o=structuredClone(a);return o.healthChecks=o.healthChecks.map(f=>{if(f.id==="api")return{...f,detail:i.apiStatus.detail,state:i.apiStatus.state==="ok"?"ready":"attention"};if(f.id==="worker")return{...f,detail:i.workerStatus.detail,state:i.workerStatus.state==="ok"?"ready":"attention"};const h=s.providerStatuses.some(m=>m.state==="ready");return{...f,detail:h?"At least one provider configured.":"No providers configured.",state:h?"ready":"attention"}}),o.launchState.enabled=r===void 0,o.launchState.blockedReason=r,o.launchState.summary=r??"Queue a visibility sweep first, then follow with a site audit to explain movement.",o}function Mt(a,i){return s=>{s.preventDefault(),s.stopPropagation(),a(i)}}function Hr(a,i){return i==="projects"?a.kind==="projects"||a.kind==="project":i==="project"?a.kind==="project":a.kind===i}function qN({points:a,tone:i}){const s=w.useId();if(a.length===0)return null;const r=42,o=132,f=5,h=Math.min(...a),y=Math.max(...a)-h||1,g=o-f*2,S=r-f*2,b=a.map((x,k)=>{const O=f+k/Math.max(a.length-1,1)*g,j=f+(1-(x-h)/y)*S;return`${O},${j}`}).join(" ");return u.jsxs("svg",{className:`sparkline sparkline-${i}`,viewBox:`0 0 ${o} ${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:S,rx:"8"})})}),u.jsx("line",{className:"sparkline-guide",x1:f,x2:o-f,y1:r-f,y2:r-f}),u.jsx("polyline",{clipPath:`url(#${s})`,points:b,vectorEffect:"non-scaling-stroke"})]})}function Dv({text:a}){return u.jsxs("span",{className:"info-tooltip-wrapper",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"})]}),u.jsx("span",{className:"info-tooltip-bubble",role:"tooltip",children:a})]})}function Zs({value:a,label:i,delta:s,tone:r,description:o,tooltip:f,isNumeric:h=!0}){const g=2*Math.PI*48,S=Number.parseInt(a,10),b=h&&!Number.isNaN(S)?Math.min(S/100,1):.5,x=g*(1-b);return u.jsxs("div",{className:"score-gauge",children:[u.jsxs("div",{className:"gauge-ring-wrapper",children:[u.jsxs("svg",{className:"gauge-ring",viewBox:"0 0 120 120","aria-hidden":"true",children:[u.jsx("circle",{className:"gauge-bg",cx:"60",cy:"60",r:48,strokeWidth:6}),u.jsx("circle",{className:`gauge-fill gauge-fill-${r}`,cx:"60",cy:"60",r:48,strokeWidth:6,strokeDasharray:g,strokeDashoffset:x,transform:"rotate(-90 60 60)"})]}),u.jsx("div",{className:"gauge-center",children:u.jsx("span",{className:h?"gauge-value":"gauge-value-text",children:a.split(" / ")[0]})})]}),u.jsxs("p",{className:"gauge-label",children:[i,f&&u.jsx(Dv,{text:f})]}),u.jsx("p",{className:"gauge-delta",children:s}),u.jsx("p",{className:"gauge-description",children:o})]})}function nt({tone:a,children:i}){const s=a==="positive"?"success":a==="caution"?"warning":a==="negative"?"destructive":"neutral";return u.jsx(zy,{variant:s,children:i})}function hc({status:a}){return u.jsx(nt,{tone:zv(a),children:rl(a)})}function of({state:a}){return u.jsx(nt,{tone:DN(a),children:rl(a)})}function Mv({run:a,onOpen:i}){return u.jsxs("article",{className:"run-row",children:[u.jsxs("div",{className:"run-row-main",children:[u.jsxs("div",{className:"run-row-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:a.summary}),u.jsxs("p",{className:"run-row-subtitle",children:[a.projectName," · ",a.kindLabel]})]}),u.jsx(hc,{status:a.status})]}),u.jsx("p",{className:"run-row-detail",children:a.statusDetail})]}),u.jsxs("dl",{className:"run-row-meta",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Started"}),u.jsx("dd",{children:a.startedAt})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Duration"}),u.jsx("dd",{children:a.duration})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Trigger"}),u.jsx("dd",{children:a.triggerLabel})]})]}),u.jsx(fe,{variant:"outline",size:"sm",type:"button",onClick:()=>i(a.id),children:"View run"})]})}function nl({provider:a}){const i={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",local:"border-purple-800/50 bg-purple-950/40 text-purple-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 ${i[a]??"border-zinc-700 bg-zinc-800 text-zinc-300"}`,children:a})}function HN({evidence:a,onOpenEvidence:i}){const[s,r]=w.useState(new Set),o=w.useMemo(()=>{const h=new Map;for(const m of a){const y=h.get(m.keyword)??[];h.set(m.keyword,[...y,m])}return[...h.entries()].map(([m,y])=>({phrase:m,items:y}))},[a]),f=h=>{r(m=>{const y=new Set(m);return y.has(h)?y.delete(h):y.add(h),y})};return u.jsx("div",{className:"evidence-table-wrap",children:u.jsxs("table",{className:"evidence-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:{width:"2rem"}}),u.jsx("th",{children:"Key Phrase"}),u.jsx("th",{children:"Status"}),u.jsx("th",{children:"Change"}),u.jsx("th",{children:"Summary"}),u.jsx("th",{children:"Snippet"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:o.map(({phrase:h,items:m})=>{const y=s.has(h),g=m.map(b=>b.citationState),S=g.includes("cited")?"cited":g.includes("emerging")?"emerging":g.includes("lost")?"lost":"not-cited";return u.jsxs(w.Fragment,{children:[u.jsxs("tr",{className:"evidence-phrase-row cursor-pointer hover:bg-zinc-800/40",onClick:()=>f(h),"aria-expanded":y,children:[u.jsx("td",{children:u.jsx(kf,{size:14,className:`transition-transform duration-150 text-zinc-500 ${y?"rotate-90":""}`})}),u.jsx("td",{className:"evidence-keyword-cell",children:u.jsxs("div",{children:[u.jsx("span",{className:"font-medium text-zinc-100",children:h}),u.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:m.map(b=>u.jsx(nl,{provider:b.provider},b.id))})]})}),u.jsx("td",{children:u.jsx(of,{state:S})}),u.jsx("td",{colSpan:4})]}),y&&m.map(b=>u.jsxs("tr",{className:"bg-zinc-900/30",children:[u.jsx("td",{}),u.jsx("td",{className:"evidence-keyword-cell pl-5",children:u.jsx(nl,{provider:b.provider})}),u.jsx("td",{children:u.jsx(of,{state:b.citationState})}),u.jsx("td",{className:"evidence-change-cell",children:b.changeLabel}),u.jsx("td",{className:"evidence-summary-cell",children:b.summary}),u.jsx("td",{className:"evidence-snippet-cell",title:b.answerSnippet,children:b.answerSnippet}),u.jsx("td",{children:u.jsx(fe,{variant:"ghost",size:"sm",type:"button",onClick:x=>{x.stopPropagation(),i(b.id)},children:"View"})})]},b.id))]},h)})})]})})}function KN({findings:a}){return u.jsx("div",{className:"findings-table-wrap",children:u.jsxs("table",{className:"findings-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Severity"}),u.jsx("th",{children:"Finding"}),u.jsx("th",{children:"Detail"}),u.jsx("th",{children:"Impact"})]})}),u.jsx("tbody",{children:a.map(i=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsx(nt,{tone:MN(i.severity),children:rl(i.severity)})}),u.jsx("td",{className:"font-medium text-zinc-100",children:i.title}),u.jsx("td",{className:"text-zinc-400",children:i.detail}),u.jsx("td",{className:"text-zinc-500",children:i.impact})]},i.id))})]})})}function YN(a){return a==="High"?"negative":a==="Moderate"?"caution":"neutral"}function GN({competitors:a}){return a.length===0?u.jsx("p",{className:"text-sm text-zinc-500",children:"No competitors configured. Add competitors to track overlap."}):u.jsx("div",{className:"competitor-table-wrap",children:u.jsxs("table",{className:"competitor-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Domain"}),u.jsx("th",{children:"Pressure"}),u.jsx("th",{children:"Citations"}),u.jsx("th",{children:"Key Phrases"})]})}),u.jsx("tbody",{children:a.map(i=>u.jsxs("tr",{children:[u.jsx("td",{className:"font-medium text-zinc-100",children:i.domain}),u.jsx("td",{children:u.jsx(nt,{tone:YN(i.pressureLabel),children:i.pressureLabel})}),u.jsx("td",{className:"text-zinc-300 tabular-nums",children:i.totalKeywords>0?`${i.citationCount} / ${i.totalKeywords}`:"—"}),u.jsx("td",{className:"text-zinc-500 text-xs",children:i.citedKeywords.length>0?i.citedKeywords.join(", "):"Not cited"})]},i.id))})]})})}function $N({project:a,onNavigate:i}){const s=`/projects/${a.project.id}`;return u.jsxs("a",{className:"project-row cursor-pointer",href:s,onClick:Mt(i,s),children:[u.jsxs("div",{className:"project-row-primary",children:[u.jsxs("div",{children:[u.jsx("p",{className:"project-name",children:a.project.name}),u.jsx("p",{className:"project-domain",children:a.project.canonicalDomain})]}),u.jsx("p",{className:"project-insight",children:a.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:"Answer Visibility"}),u.jsx("p",{className:"metric-inline-value",children:a.visibilityScore}),u.jsx("p",{className:"metric-inline-delta",children:a.visibilityDelta})]})}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Technical Readiness"}),u.jsx("p",{className:"metric-inline-value text-zinc-500",children:a.readinessScore??"—"}),u.jsx("p",{className:"metric-inline-delta",children:a.readinessDelta??"Coming soon"})]})}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Competitor Pressure"}),u.jsx("p",{className:"metric-inline-value",children:a.competitorPressureLabel}),u.jsxs("p",{className:"metric-inline-delta",children:[a.lastRun.kindLabel," · ",rl(a.lastRun.status)]})]})}),u.jsx("div",{className:"project-row-chart",children:u.jsx(qN,{points:a.trend,tone:zv(a.lastRun.status)})}),u.jsx("span",{className:"project-row-link",children:u.jsx(kf,{className:"h-4 w-4 text-zinc-500"})})]})}function VN({model:a,systemHealth:i,onNavigate:s,onOpenRun:r}){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:"Portfolio"}),u.jsx("p",{className:"page-subtitle",children:"Visibility and execution state across all projects"})]}),u.jsx("div",{className:"page-header-right",children:u.jsx("p",{className:"text-[11px] text-zinc-600",children:a.lastUpdatedAt})})]}),a.projects.length>0?u.jsx("div",{className:"project-list project-list-scrollable",children:a.projects.map(o=>u.jsx($N,{project:o,onNavigate:s},o.project.id))}):u.jsxs(Qe,{className:"surface-card empty-card",children:[u.jsx("h3",{children:a.emptyState?.title??"No projects yet"}),u.jsx("p",{children:a.emptyState?.detail}),u.jsx(fe,{asChild:!0,children:u.jsx("a",{href:a.emptyState?.ctaHref??"/setup",onClick:Mt(s,a.emptyState?.ctaHref??"/setup"),children:a.emptyState?.ctaLabel??"Launch setup"})})]}),u.jsxs("div",{className:"overview-secondary-grid",children:[a.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:a.attentionItems.map(o=>u.jsxs("a",{className:`attention-item attention-item-${o.tone}`,href:o.href,onClick:Mt(s,o.href),children:[u.jsxs("div",{children:[u.jsx("p",{className:"attention-title",children:o.title}),u.jsx("p",{className:"attention-detail",children:o.detail})]}),u.jsx("span",{className:"attention-action",children:o.actionLabel})]},o.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:a.recentRuns.length>0?a.recentRuns.map(o=>u.jsxs("button",{className:"compact-run",type:"button",onClick:()=>r(o.id),children:[u.jsxs("div",{children:[u.jsx("p",{className:"compact-run-title",children:o.projectName}),u.jsx("p",{className:"compact-run-detail",children:o.summary})]}),u.jsx(hc,{status:o.status})]},o.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:"health-grid",children:i.map(o=>u.jsxs(Qe,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:o.label}),u.jsx("h3",{children:o.detail})]}),u.jsx(nt,{tone:o.tone,children:o.label})]}),u.jsx("p",{className:"supporting-copy",children:o.meta})]},o.id))})]})]})}function QN({projects:a,onNavigate:i,onProjectCreated:s}){const[r,o]=w.useState(!1),[f,h]=w.useState(""),[m,y]=w.useState(""),[g,S]=w.useState(""),[b,x]=w.useState("US"),[k,O]=w.useState("en"),[j,E]=w.useState(!1),[H,G]=w.useState(null),R=f.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),B=async()=>{if(!(!R||!g)){E(!0),G(null);try{const K=await Nv(R,{displayName:m||f,canonicalDomain:g,country:b,language:k});s(),h(""),y(""),S(""),x("US"),O("en"),o(!1),i(`/projects/${K.id}`)}catch(K){G(K instanceof Error?K.message:"Failed to create project")}finally{E(!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:[a.length," project",a.length!==1?"s":""," tracked"]})]}),u.jsx("div",{className:"page-header-right",children:u.jsxs(fe,{type:"button",onClick:()=>o(K=>!K),children:[u.jsx(ng,{className:"size-4 mr-1.5"}),"Add project"]})})]}),r?u.jsxs(Qe,{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-zinc-200",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:f,onChange:K=>h(K.target.value)}),R&&R!==f?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",R]}):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:m,onChange:K=>y(K.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:g,onChange:K=>S(K.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:b,onChange:K=>x(K.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:k,onChange:K=>O(K.target.value.toLowerCase())})]})]})]}),H?u.jsx("p",{className:"text-rose-400 text-sm mt-3",children:H}):null,u.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[u.jsx(fe,{type:"button",disabled:!R||!g||j,onClick:B,children:j?"Creating...":"Create project"}),u.jsx(fe,{type:"button",variant:"ghost",onClick:()=>o(!1),children:"Cancel"})]})]}):null,a.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:"Visibility"}),u.jsx("th",{children:"Last run"}),u.jsx("th",{className:"text-right",children:"Country"})]})}),u.jsx("tbody",{children:a.map(K=>{const X=`/projects/${K.project.id}`,Z=K.recentRuns[0];return u.jsxs("tr",{className:"cursor-pointer",onClick:()=>i(X),children:[u.jsxs("td",{children:[u.jsx("a",{className:"text-zinc-100 font-medium hover:underline",href:X,onClick:Mt(i,X),children:K.project.displayName||K.project.name}),u.jsx("p",{className:"text-[11px] text-zinc-500",children:K.project.name})]}),u.jsx("td",{className:"text-zinc-400",children:K.project.canonicalDomain}),u.jsx("td",{children:u.jsx(nt,{tone:K.visibilitySummary.tone,children:K.visibilitySummary.value})}),u.jsx("td",{className:"text-zinc-500 text-sm",children:Z?u.jsx(hc,{status:Z.status}):u.jsx("span",{className:"text-zinc-600",children:"No runs"})}),u.jsx("td",{className:"text-right text-zinc-500",children:K.project.country})]},K.project.id)})})]})}):r?null:u.jsxs(Qe,{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(fe,{type:"button",onClick:()=>o(!0),children:[u.jsx(ng,{className:"size-4 mr-1.5"}),"Add project"]})]}),u.jsx(XN,{onApplied:s})]})}function XN({onApplied:a}){const[i,s]=w.useState(""),[r,o]=w.useState(!1),[f,h]=w.useState([]),[m,y]=w.useState([]),g=async()=>{if(!i.trim())return;o(!0),h([]),y([]);const S=SS(i),b=[],x=[];for(let k=0;k<S.length;k++){const O=S[k];if(O.errors.length>0){b.push(`Document ${k+1}: ${O.errors[0]?.message}`);continue}const j=O.toJSON();if(!(!j||typeof j!="object"))try{const E=await fN(j);x.push(`Applied "${E.displayName||E.name}" (revision ${E.configRevision})`)}catch(E){b.push(`Document ${k+1}: ${E instanceof Error?E.message:String(E)}`)}}h(x),y(b),o(!1),x.length>0&&a()};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-zinc-200",children:"Apply YAML"})]})}),u.jsxs("p",{className:"text-zinc-500 text-sm mb-3",children:["Paste a ",u.jsx("code",{className:"text-zinc-400",children:"canonry.yaml"})," config (multi-document YAML with ",u.jsx("code",{className:"text-zinc-400",children:"---"})," separators supported)."]}),u.jsx("textarea",{className:"setup-input w-full font-mono text-xs",rows:10,placeholder:`apiVersion: canonry/v1
187
+ kind: Project
188
+ metadata:
189
+ name: my-project
190
+ spec:
191
+ canonicalDomain: example.com
192
+ country: US
193
+ language: en
194
+ keywords: []`,value:i,onChange:S=>s(S.target.value)}),f.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:f.map((S,b)=>u.jsx("li",{className:"text-emerald-400 text-sm",children:S},b))}),m.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:m.map((S,b)=>u.jsx("li",{className:"text-rose-400 text-sm",children:S},b))}),u.jsx("div",{className:"mt-3",children:u.jsx(fe,{type:"button",disabled:!i.trim()||r,onClick:g,children:r?"Applying...":"Apply"})})]})}function ZN({model:a,onOpenEvidence:i,onOpenRun:s,onTriggerRun:r,onDeleteProject:o,onAddKeywords:f,onAddCompetitors:h}){const[m,y]=w.useState(!1),[g,S]=w.useState(!1),[b,x]=w.useState(!1),[k,O]=w.useState(null),[j,E]=w.useState(!1),[H,G]=w.useState(""),[R,B]=w.useState(!1),[K,X]=w.useState(!1),[Z,_]=w.useState(""),[P,Se]=w.useState(!1);async function W(){const ne=await tN(a.project.name),U=typeof ne=="string"?ne:JSON.stringify(ne,null,2),J=new Blob([U],{type:"text/yaml"}),oe=URL.createObjectURL(J),ve=document.createElement("a");ve.href=oe,ve.download=`${a.project.name}.yaml`,ve.click(),URL.revokeObjectURL(oe)}async function le(){const ne=H.split(`
195
+ `).map(U=>U.trim()).filter(Boolean);if(ne.length!==0){B(!0);try{await f(a.project.name,ne),G(""),E(!1)}finally{B(!1)}}}async function Ye(){const ne=Z.trim();if(ne){Se(!0);try{await h(a.project.name,[ne]),_(""),X(!1)}finally{Se(!1)}}}const Ge=ne=>!Number.isNaN(Number.parseInt(ne,10));return u.jsxs("div",{className:"page-container",children:[m?u.jsxs(Qe,{className:"surface-card p-6 mb-6 border-rose-800/60",children:[u.jsx("h3",{className:"text-base font-semibold text-rose-400 mb-2",children:"Delete project?"}),u.jsxs("p",{className:"text-sm text-zinc-400 mb-4",children:["This will permanently delete ",u.jsx("strong",{className:"text-zinc-200",children:a.project.displayName||a.project.name})," and all its key phrases, competitors, runs, and snapshots. This cannot be undone."]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(fe,{type:"button",variant:"destructive",disabled:g,onClick:async()=>{S(!0),o(a.project.name)},children:g?"Deleting...":"Yes, delete project"}),u.jsx(fe,{type:"button",variant:"outline",disabled:g,onClick:()=>y(!1),children:"Cancel"})]})]}):null,u.jsxs("div",{className:"page-header",children:[u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:a.project.displayName||a.project.name}),u.jsxs("p",{className:"page-subtitle",children:[a.project.canonicalDomain," · ",a.contextLabel]}),u.jsxs("div",{className:"tag-row",children:[u.jsx("span",{className:"tag",children:a.project.country}),u.jsx("span",{className:"tag",children:a.project.language.toUpperCase()}),a.project.tags.map(ne=>u.jsx("span",{className:"tag",children:ne},ne))]})]}),u.jsxs("div",{className:"page-header-right",children:[u.jsx("p",{className:"text-sm text-zinc-500",children:a.dateRangeLabel}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(fe,{type:"button",variant:"outline",size:"icon",onClick:W,"aria-label":"Export project as YAML",children:u.jsx(TS,{className:"h-4 w-4 text-zinc-400"})}),u.jsx(fe,{type:"button",variant:"outline",size:"icon",onClick:()=>y(!0),"aria-label":"Delete project",children:u.jsx($S,{className:"h-4 w-4 text-zinc-400"})}),u.jsx(fe,{type:"button",disabled:b,onClick:async()=>{x(!0),O(null);try{await r(a.project.name)}catch(ne){O(ne instanceof Error?ne.message:"Failed to trigger run")}finally{x(!1)}},children:b?"Starting...":"Run now"})]})]})]}),k&&u.jsxs("div",{className:"mb-3 rounded-lg border border-rose-800/40 bg-rose-950/20 px-3 py-2 text-sm text-rose-300",children:[k,u.jsx("button",{type:"button",className:"ml-2 text-rose-400 hover:text-rose-200",onClick:()=>O(null),children:"×"})]}),u.jsxs("section",{className:"gauge-row",children:[u.jsx(Zs,{value:a.visibilitySummary.value,label:a.visibilitySummary.label,delta:a.visibilitySummary.delta,tone:a.visibilitySummary.tone,description:a.visibilitySummary.description,tooltip:a.visibilitySummary.tooltip,isNumeric:Ge(a.visibilitySummary.value)}),a.readinessSummary?u.jsx(Zs,{value:a.readinessSummary.value,label:a.readinessSummary.label,delta:a.readinessSummary.delta,tone:a.readinessSummary.tone,description:a.readinessSummary.description,tooltip:a.readinessSummary.tooltip,isNumeric:Ge(a.readinessSummary.value)}):u.jsx(Zs,{value:"N/A",label:"Technical Readiness",delta:"Coming soon",tone:"neutral",description:"Enable with site audits in a future release.",tooltip:"Site audit scores for technical SEO signals. Coming in a future release.",isNumeric:!1}),u.jsx(Zs,{value:a.competitorPressure.value,label:a.competitorPressure.label,delta:a.competitorPressure.delta,tone:a.competitorPressure.tone,description:a.competitorPressure.description,tooltip:a.competitorPressure.tooltip,isNumeric:Ge(a.competitorPressure.value)}),u.jsx(Zs,{value:a.runStatus.value,label:a.runStatus.label,delta:a.runStatus.delta,tone:a.runStatus.tone,description:a.runStatus.description,tooltip:a.runStatus.tooltip,isNumeric:Ge(a.runStatus.value)})]}),a.providerScores.length>1&&u.jsxs("section",{className:"page-section-divider",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Provider breakdown"}),u.jsxs("h2",{children:["Visibility by provider ",u.jsx(Dv,{text:"Per-provider citation rate. Shows how often each AI engine cites your domain across all tracked key phrases. Useful for identifying which engines favor your content."})]})]})}),u.jsx("div",{className:"grid grid-cols-3 gap-3",children:a.providerScores.map(ne=>u.jsxs(Qe,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(nl,{provider:ne.provider}),u.jsxs("span",{className:`text-lg font-semibold ${ne.score>=70?"text-emerald-400":ne.score>=40?"text-amber-400":"text-rose-400"}`,children:[ne.score,"%"]})]}),u.jsxs("p",{className:"mt-1 text-xs text-zinc-500",children:[ne.cited," of ",ne.total," key phrases cited"]})]},ne.provider))})]}),u.jsxs("section",{className:"page-section-divider",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"What changed"}),u.jsx("h2",{children:"Citation signals"})]})}),u.jsx("div",{className:"insight-grid",children:a.insights.map(ne=>u.jsxs(Qe,{className:`surface-card insight-card insight-card-${ne.tone}`,children:[u.jsx(nt,{tone:ne.tone,children:ne.actionLabel}),u.jsx("h3",{children:ne.title}),u.jsx("p",{children:ne.detail}),ne.evidenceId?u.jsx(fe,{variant:"outline",size:"sm",type:"button",onClick:()=>i(ne.evidenceId),children:"Open evidence"}):u.jsx("span",{className:"supporting-copy",children:"Monitor in the next run."})]},ne.id))})]}),u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Visibility evidence"}),u.jsx("h2",{children:"Key phrase citation tracking"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("p",{className:"supporting-copy",children:[new Set(a.visibilityEvidence.map(ne=>ne.keyword)).size," key phrases tracked"]}),u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>E(!j),children:j?"Cancel":"+ Add key phrases"})]})]}),j&&u.jsxs("div",{className:"mb-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3",children:[u.jsx("textarea",{className:"w-full resize-none rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",rows:3,placeholder:"Enter key phrases, one per line",value:H,onChange:ne=>G(ne.target.value)}),u.jsxs("div",{className:"mt-2 flex items-center justify-between",children:[u.jsxs("p",{className:"text-xs text-zinc-500",children:[H.split(`
196
+ `).filter(ne=>ne.trim()).length," key phrases"]}),u.jsx(fe,{type:"button",size:"sm",disabled:!H.trim()||R,onClick:le,children:R?"Adding...":"Add key phrases"})]})]}),u.jsx(HN,{evidence:a.visibilityEvidence,onOpenEvidence:i})]}),a.technicalFindings&&a.technicalFindings.length>0?u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Technical findings"}),u.jsx("h2",{children:"Readiness signals"})]}),u.jsxs("p",{className:"supporting-copy",children:[a.technicalFindings.length," findings"]})]}),u.jsx(KN,{findings:a.technicalFindings})]}):u.jsx("section",{className:"page-section-divider",children:u.jsxs(Qe,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Technical findings"}),u.jsx("h2",{className:"text-zinc-500",children:"Unavailable"})]}),u.jsx(nt,{tone:"neutral",children:"Coming soon"})]}),u.jsx("p",{className:"supporting-copy",children:"Technical readiness findings require site audits, which are planned for a future release."})]})}),u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Competitors"}),u.jsx("h2",{children:"Competitive landscape"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("p",{className:"supporting-copy",children:[a.competitors.length," tracked"]}),u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>X(!K),children:K?"Cancel":"+ Add competitor"})]})]}),K&&u.jsxs("div",{className:"mb-3 flex gap-2 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3",children:[u.jsx("input",{className:"flex-1 rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"competitor.com",value:Z,onChange:ne=>_(ne.target.value),onKeyDown:ne=>ne.key==="Enter"&&Ye()}),u.jsx(fe,{type:"button",size:"sm",disabled:!Z.trim()||P,onClick:Ye,children:P?"Adding...":"Add"})]}),u.jsx(GN,{competitors:a.competitors})]}),u.jsxs("section",{className:"page-section-divider",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Run timeline"}),u.jsx("h2",{children:"Recent execution history"})]})}),u.jsx("div",{className:"run-list",children:a.recentRuns.map(ne=>u.jsx(Mv,{run:ne,onOpen:s},ne.id))})]}),u.jsx(WN,{projectName:a.project.name}),u.jsx(t2,{projectName:a.project.name})]})}const IN=[{value:"daily",label:"Every day"},{value:"weekly@mon",label:"Every Monday"},{value:"weekly@wed",label:"Every Wednesday"},{value:"weekly@fri",label:"Every Friday"},{value:"twice-daily",label:"Twice a day (6am & 6pm)"},{value:"custom",label:"Custom cron expression"}],kg=["UTC","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","America/Toronto","America/Vancouver","Europe/London","Europe/Paris","Europe/Berlin","Asia/Tokyo","Asia/Shanghai","Asia/Singapore","Australia/Sydney"];function uf(a){return a===0?"12:00 AM":a<12?`${a}:00 AM`:a===12?"12:00 PM":`${a-12}:00 PM`}function JN(a,i){return a==="twice-daily"?"twice-daily":a.startsWith("weekly@")?`${a}@${i}`:`daily@${i}`}function FN(a,i){if(!a)return{freq:"custom",hour:6,customCron:i};if(a==="twice-daily")return{freq:"twice-daily",hour:6,customCron:""};const s=a.match(/^daily(?:@(\d+))?$/);if(s)return{freq:"daily",hour:s[1]?parseInt(s[1]):6,customCron:""};const r=a.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:i}}function PN(a,i,s){const r=s==="UTC"?"UTC":s.split("/").pop()?.replace(/_/g," ")??s;if(!a)return`Custom: ${i} · ${r}`;if(a==="twice-daily")return`Twice a day (6am & 6pm) · ${r}`;const o=a.match(/^daily(?:@(\d+))?$/);if(o){const h=o[1]?parseInt(o[1]):6;return`Every day at ${uf(h)} · ${r}`}const f=a.match(/^weekly@(mon|tue|wed|thu|fri|sat|sun)(?:@(\d+))?$/);if(f){const h={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"},m=f[2]?parseInt(f[2]):6;return`Every ${h[f[1]]} at ${uf(m)} · ${r}`}return`${a} · ${r}`}function WN({projectName:a}){const[i,s]=w.useState("loading"),[r,o]=w.useState(!1),[f,h]=w.useState("daily"),[m,y]=w.useState(6),[g,S]=w.useState(""),[b,x]=w.useState("UTC"),[k,O]=w.useState(!1),[j,E]=w.useState(""),[H,G]=w.useState(!1),[R,B]=w.useState(!1),[K,X]=w.useState(null);w.useEffect(()=>{iN(a).then(s).catch(()=>s(null))},[a]);const Z=()=>{if(i&&i!=="loading"){const W=FN(i.preset??null,i.cronExpr);h(W.freq),y(W.hour),S(W.customCron);const le=kg.includes(i.timezone);x(le?i.timezone:"Other"),O(!le),E(le?"":i.timezone)}else h("daily"),y(6),S(""),x("UTC"),O(!1),E("");X(null),o(!0)},_=async()=>{G(!0),X(null);try{const le={timezone:k?j.trim()||"UTC":b};f==="custom"?le.cron=g.trim():le.preset=JN(f,m);const Ye=await Ng(a,le);s(Ye),o(!1)}catch(W){X(W instanceof Error?W.message:"Failed to save schedule")}finally{G(!1)}},P=async()=>{if(!(!i||i==="loading")){G(!0),X(null);try{const W={timezone:i.timezone,enabled:!i.enabled};i.preset?W.preset=i.preset:W.cron=i.cronExpr,s(await Ng(a,W))}catch(W){X(W instanceof Error?W.message:"Failed to update schedule")}finally{G(!1)}}},Se=async()=>{B(!0),X(null);try{await sN(a),s(null),o(!1)}catch(W){X(W instanceof Error?W.message:"Failed to remove schedule")}finally{B(!1)}};return u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Automation"}),u.jsx("h2",{children:"Scheduled runs"})]}),i!=="loading"&&!r&&u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:Z,children:i?"Edit schedule":"+ Set schedule"})]}),i==="loading"&&u.jsx("p",{className:"supporting-copy",children:"Loading..."}),i!=="loading"&&!r&&i===null&&u.jsx(Qe,{className:"surface-card compact-card",children:u.jsx("p",{className:"supporting-copy",children:"No schedule configured. Set one to automatically trigger visibility sweeps."})}),i!=="loading"&&!r&&i!==null&&u.jsxs(Qe,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-sm font-medium text-zinc-200",children:PN(i.preset??null,i.cronExpr,i.timezone)}),u.jsxs("p",{className:"text-xs text-zinc-500",children:["Cron: ",u.jsx("span",{className:"font-mono",children:i.cronExpr})]}),i.nextRunAt&&u.jsxs("p",{className:"text-xs text-zinc-500",children:["Next run: ",new Date(i.nextRunAt).toLocaleString()]}),i.lastRunAt&&u.jsxs("p",{className:"text-xs text-zinc-500",children:["Last run: ",new Date(i.lastRunAt).toLocaleString()]})]}),u.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[u.jsx(nt,{tone:i.enabled?"positive":"neutral",children:i.enabled?"Active":"Paused"}),u.jsx(fe,{type:"button",variant:"outline",size:"sm",disabled:H,onClick:P,children:i.enabled?"Pause":"Resume"}),u.jsx(fe,{type:"button",variant:"ghost",size:"sm",disabled:R,onClick:Se,children:R?"Removing...":"Remove"})]})]}),K&&u.jsx("p",{className:"text-rose-400 text-sm mt-2",children:K})]}),r&&u.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900/40 p-4 space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Frequency"}),u.jsx("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none",value:f,onChange:W=>h(W.target.value),children:IN.map(W=>u.jsx("option",{value:W.value,children:W.label},W.value))})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Time"}),u.jsx("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none disabled:opacity-40",value:m,disabled:f==="twice-daily"||f==="custom",onChange:W=>y(parseInt(W.target.value)),children:Array.from({length:24},(W,le)=>u.jsx("option",{value:le,children:uf(le)},le))})]})]}),f==="custom"&&u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Cron expression"}),u.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 font-mono focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"0 9 * * 1-5",value:g,onChange:W=>S(W.target.value)})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Timezone"}),u.jsxs("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none",value:k?"Other":b,onChange:W=>{W.target.value==="Other"?(O(!0),x("Other")):(O(!1),x(W.target.value))},children:[kg.map(W=>u.jsx("option",{value:W,children:W},W)),u.jsx("option",{value:"Other",children:"Other (enter manually)…"})]}),k&&u.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"e.g. America/New_York",value:j,onChange:W=>E(W.target.value)})]}),K&&u.jsx("p",{className:"text-rose-400 text-sm",children:K}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>{o(!1),X(null)},children:"Cancel"}),u.jsx(fe,{type:"button",size:"sm",disabled:H||f==="custom"&&!g.trim(),onClick:_,children:H?"Saving...":"Save schedule"})]})]})]})}const e2=[{value:"citation.lost",label:"Citation lost"},{value:"citation.gained",label:"Citation gained"},{value:"run.completed",label:"Run completed"},{value:"run.failed",label:"Run failed"}];function t2({projectName:a}){const[i,s]=w.useState("loading"),[r,o]=w.useState(!1),[f,h]=w.useState(""),[m,y]=w.useState(["citation.lost","citation.gained"]),[g,S]=w.useState(!1),[b,x]=w.useState(null),[k,O]=w.useState({});w.useEffect(()=>{lN(a).then(s).catch(()=>s([]))},[a]);const j=R=>{y(B=>B.includes(R)?B.filter(K=>K!==R):[...B,R])},E=async()=>{if(!(!f.trim()||m.length===0)){S(!0),x(null);try{const R=await rN(a,{channel:"webhook",url:f.trim(),events:m});s(B=>B==="loading"?[R]:[...B,R]),h(""),y(["citation.lost","citation.gained"]),o(!1)}catch(R){x(R instanceof Error?R.message:"Failed to add webhook")}finally{S(!1)}}},H=async R=>{try{await cN(a,R),s(B=>B==="loading"?B:B.filter(K=>K.id!==R))}catch(B){x(B instanceof Error?B.message:"Failed to remove webhook")}},G=async R=>{O(B=>({...B,[R]:{state:"testing"}}));try{const B=await oN(a,R);O(K=>({...K,[R]:{state:B.ok?"ok":"fail",status:B.status}}))}catch{O(B=>({...B,[R]:{state:"fail"}}))}};return u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Automation"}),u.jsx("h2",{children:"Notifications"})]}),i!=="loading"&&u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>{o(!r),x(null)},children:r?"Cancel":"+ Add webhook"})]}),r&&u.jsxs("div",{className:"mb-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-4 space-y-3",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Webhook URL"}),u.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"url",placeholder:"https://hooks.example.com/canonry",value:f,onChange:R=>h(R.target.value)})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Trigger on"}),u.jsx("div",{className:"flex flex-wrap gap-3",children:e2.map(R=>u.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer select-none",children:[u.jsx("input",{type:"checkbox",className:"rounded border-zinc-600 bg-zinc-800",checked:m.includes(R.value),onChange:()=>j(R.value)}),u.jsx("span",{className:"text-sm text-zinc-300",children:R.label})]},R.value))})]}),b&&u.jsx("p",{className:"text-rose-400 text-sm",children:b}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>{o(!1),x(null)},children:"Cancel"}),u.jsx(fe,{type:"button",size:"sm",disabled:g||!f.trim()||m.length===0,onClick:E,children:g?"Adding...":"Add webhook"})]})]}),i==="loading"&&u.jsx("p",{className:"supporting-copy",children:"Loading..."}),i!=="loading"&&i.length===0&&!r&&u.jsx(Qe,{className:"surface-card compact-card",children:u.jsx("p",{className:"supporting-copy",children:"No webhooks configured. Add one to get alerted when citations change or runs complete."})}),i!=="loading"&&i.length>0&&u.jsxs("div",{className:"evidence-table-wrap",children:[u.jsxs("table",{className:"evidence-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"URL"}),u.jsx("th",{children:"Events"}),u.jsx("th",{children:"Status"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:i.map(R=>u.jsxs("tr",{children:[u.jsx("td",{className:"evidence-keyword-cell",children:u.jsx("span",{className:"font-mono text-xs text-zinc-300 break-all",children:R.url})}),u.jsx("td",{children:u.jsx("div",{className:"flex flex-wrap gap-1",children:R.events.map(B=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-800/60 px-2 py-0.5 text-[10px] font-medium text-zinc-400 uppercase tracking-wide",children:B.replace("."," ")},B))})}),u.jsx("td",{children:u.jsx(nt,{tone:R.enabled?"positive":"neutral",children:R.enabled?"Active":"Paused"})}),u.jsx("td",{children:u.jsxs("div",{className:"flex items-center gap-1 justify-end",children:[k[R.id]&&(()=>{const B=k[R.id],K=B.state==="testing"?"Sending…":B.state==="ok"?`Delivered${B.status?` (${B.status})`:""}`:`Failed${B.status?` (${B.status})`:""}`;return u.jsx(nt,{tone:B.state==="ok"?"positive":B.state==="fail"?"negative":"neutral",children:K})})(),u.jsx(fe,{variant:"ghost",size:"sm",type:"button",disabled:k[R.id]?.state==="testing",onClick:()=>G(R.id),children:"Test"}),u.jsx(fe,{variant:"ghost",size:"sm",type:"button",onClick:()=>H(R.id),children:"Remove"})]})})]},R.id))})]}),b&&u.jsx("p",{className:"text-rose-400 text-sm mt-2",children:b})]})]})}function n2({runs:a,onOpenRun:i}){const[s,r]=w.useState("all"),o=s==="all"?a:a.filter(f=>f.status===s);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:"Runs"}),u.jsx("p",{className:"page-subtitle",children:"Status, type, project, duration, and the shortest explanation that makes the outcome trustworthy."})]})}),u.jsxs("section",{children:[u.jsx("div",{className:"filter-row",role:"toolbar","aria-label":"Run filters",children:["all","queued","running","completed","partial","failed"].map(f=>u.jsx("button",{className:`filter-chip ${s===f?"filter-chip-active":""}`,type:"button","aria-pressed":s===f,onClick:()=>r(f),children:f==="all"?"All runs":rl(f)},f))}),u.jsx("div",{className:"run-list",children:o.length>0?o.map(f=>u.jsx(Mv,{run:f,onOpen:i},f.id)):u.jsxs(Qe,{className:"surface-card empty-card",children:[u.jsx("h2",{children:"No runs match this filter"}),u.jsx("p",{children:"Try another status filter or queue a new run from a project command center."})]})})]})]})}const a2={openai:"https://platform.openai.com/api-keys",claude:"https://platform.claude.com/settings/keys"},Rv={gemini:"Gemini",openai:"OpenAI",claude:"Claude",local:"Local"},i2={gemini:"e.g. gemini-2.5-flash",openai:"e.g. gpt-4o",claude:"e.g. claude-sonnet-4-6",local:"e.g. llama3, mistral"};function s2({providerName:a,onSaved:i}){const s=a.toLowerCase()==="local",[r,o]=w.useState(""),[f,h]=w.useState(""),[m,y]=w.useState(""),[g,S]=w.useState(!1),[b,x]=w.useState(null),[k,O]=w.useState(!1),j=s?f.trim().length>0:r.trim().length>0;async function E(){if(j){S(!0),x(null),O(!1);try{await aN(a.toLowerCase(),{...r.trim()?{apiKey:r.trim()}:{},...f.trim()?{baseUrl:f.trim()}:{},...m.trim()?{model:m.trim()}:{}}),o(""),h(""),y(""),O(!0),i()}catch(R){x(R instanceof Error?R.message:"Failed to update provider")}finally{S(!1)}}}const H=a2[a.toLowerCase()],G=i2[a.toLowerCase()]??"Use default model";return u.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3 space-y-2",children:[s&&u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-zinc-500",htmlFor:`base-url-${a}`,children:"Base URL"}),u.jsx("input",{id:`base-url-${a}`,type:"text",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:"http://localhost:11434/v1",value:f,onChange:R=>h(R.target.value)}),u.jsx("p",{className:"mt-0.5 text-[10px] text-zinc-600",children:"Any OpenAI-compatible endpoint — Ollama, LM Studio, llama.cpp, vLLM"})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("label",{className:"text-xs text-zinc-500",htmlFor:`api-key-${a}`,children:["API Key",s?" (optional)":""]}),H&&u.jsx("a",{href:H,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-zinc-500 hover:text-zinc-300 underline underline-offset-2",children:"Get API key ↗"})]}),u.jsx("input",{id:`api-key-${a}`,type:"password",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:s?"Optional — most local servers don't need one":`Enter ${a} API key`,value:r,onChange:R=>o(R.target.value)})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-zinc-500",htmlFor:`model-${a}`,children:"Model (optional)"}),u.jsx("input",{id:`model-${a}`,type:"text",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:G,value:m,onChange:R=>y(R.target.value)})]}),b&&u.jsx("p",{className:"text-xs text-rose-400",children:b}),k&&u.jsx("p",{className:"text-xs text-emerald-400",children:"Provider updated."}),u.jsx(fe,{type:"button",size:"sm",disabled:!j||g,onClick:E,children:g?"Saving...":"Save"})]})}function l2({settings:a,healthSnapshot:i,onSettingsChanged:s}){const[r,o]=w.useState(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:"Settings"}),u.jsx("p",{className:"page-subtitle",children:"Provider state, quotas, and service health."})]})}),u.jsxs("section",{className:"settings-grid",children:[a.providerStatuses.map(f=>u.jsxs(Qe,{className:"surface-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Provider"}),u.jsx("h2",{children:f.name})]}),u.jsx(nt,{tone:f.state==="ready"?"positive":"caution",children:f.state==="ready"?"Ready":"Needs config"})]}),u.jsxs("dl",{className:"definition-list mt-3",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Model"}),u.jsx("dd",{className:"font-mono text-xs",children:f.model})]}),f.quota&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Concurrency"}),u.jsx("dd",{children:f.quota.maxConcurrency})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Rate limit"}),u.jsxs("dd",{children:[f.quota.maxRequestsPerMinute,"/min · ",f.quota.maxRequestsPerDay,"/day"]})]})]})]}),u.jsx("p",{className:"mt-2 text-sm text-zinc-500",children:f.detail}),u.jsx("div",{className:"mt-2",children:u.jsx(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>o(r===f.name?null:f.name),children:r===f.name?"Cancel":f.state==="ready"?f.name.toLowerCase()==="local"?"Update config":"Update key":"Configure"})}),r===f.name&&u.jsx(s2,{providerName:f.name,onSaved:()=>{o(null),s?.()}})]},f.name)),u.jsxs(Qe,{className:"surface-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Service health"}),u.jsx("h2",{children:"API and worker"})]})}),u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"health-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:"API"}),u.jsx("p",{className:"supporting-copy",children:i.apiStatus.detail})]}),u.jsx(nt,{tone:Wr(i.apiStatus),children:i.apiStatus.state==="ok"?"Healthy":"Attention"})]}),u.jsxs("div",{className:"health-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:"Worker"}),u.jsx("p",{className:"supporting-copy",children:i.workerStatus.detail})]}),u.jsx(nt,{tone:Wr(i.workerStatus),children:i.workerStatus.state==="ok"?"Healthy":"Attention"})]})]})]})]}),u.jsx("section",{className:"page-section",children:u.jsxs(Qe,{className:"surface-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Self-host notes"}),u.jsx("h2",{children:"Operational guidance"})]})}),u.jsx("ul",{className:"detail-list",children:a.selfHostNotes.map(f=>u.jsx("li",{children:f},f))}),u.jsx("p",{className:"supporting-copy",children:a.bootstrapNote})]})})]})}const r2=[{label:"System check",description:"Verify your instance is ready"},{label:"Create project",description:"Name, domain, and locale"},{label:"Key phrases",description:"Add key phrases to track"},{label:"Competitors",description:"Add competitor domains"},{label:"Launch",description:"Start your first visibility sweep"}];function c2({current:a,labels:i}){return u.jsx("div",{className:"setup-steps",role:"list","aria-label":"Setup progress",children:i.map((s,r)=>{const o=r<a,f=r===a;return u.jsxs("div",{className:`setup-step ${o?"setup-step-done":""} ${f?"setup-step-active":""}`,role:"listitem","aria-current":f?"step":void 0,children:[u.jsx("span",{className:"setup-step-number",children:o?"✓":r+1}),u.jsx("span",{className:"setup-step-label",children:s.label})]},s.label)})})}function o2({model:a,settings:i,onProjectCreated:s,onNavigate:r}){const[o,f]=w.useState(0),[h,m]=w.useState(""),[y,g]=w.useState(""),[S,b]=w.useState(""),[x,k]=w.useState("US"),[O,j]=w.useState("en"),[E,H]=w.useState(null),[G,R]=w.useState(null),[B,K]=w.useState(null),[X,Z]=w.useState(!1),[_,P]=w.useState(""),[Se,W]=w.useState(!1),[le,Ye]=w.useState(null),[Ge,ne]=w.useState(!1),U=i.providerStatuses.filter(te=>te.state==="ready"),[J,oe]=w.useState(U[0]?.name??""),[ve,I]=w.useState(5),[A,$]=w.useState(!1),[ee,z]=w.useState(null),[F,ae]=w.useState(""),[he,qe]=w.useState(!1),[me,Pt]=w.useState(null),[Rt,Wt]=w.useState(!1),[pn,yt]=w.useState(!1),[Va,Qa]=w.useState(null),[cl,Fi]=w.useState(!1),en=h.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Lt=_.split(`
197
+ `).map(te=>te.trim()).filter(Boolean),gn=F.split(`
198
+ `).map(te=>te.trim()).filter(Boolean),mc=a.healthChecks.some(te=>te.id==="api"&&te.state==="ready"),pc=async()=>{if(!(!en||!S)){Z(!0),K(null);try{const te=await Nv(en,{displayName:y||h,canonicalDomain:S,country:x,language:O});H(en),R(te.id),s(),f(2)}catch(te){K(te instanceof Error?te.message:"Failed to create project")}finally{Z(!1)}}},ht=async()=>{if(!E)return;const te=Lt;if(te.length!==0){ne(!0),Ye(null);try{await Pw(E,te),W(!0),s(),f(3)}catch(yn){Ye(yn instanceof Error?yn.message:"Failed to save key phrases")}finally{ne(!1)}}},gc=async()=>{if(!(!E||!J)){$(!0),z(null);try{const te=await uN(E,J,ve);if(te.keywords.length>0){const yn=_?_.trimEnd()+`
199
+ `+te.keywords.join(`
200
+ `):te.keywords.join(`
201
+ `);P(yn)}}catch(te){z(te instanceof Error?te.message:"Failed to generate key phrases")}finally{$(!1)}}},ol=async()=>{if(!E)return;const te=gn;if(te.length!==0){Wt(!0),Pt(null);try{await Ev(E,te),qe(!0),s(),f(4)}catch(yn){Pt(yn instanceof Error?yn.message:"Failed to save competitors")}finally{Wt(!1)}}},ul=async()=>{if(E){Fi(!0),Qa(null);try{await Av(E),yt(!0),s()}catch(te){Qa(te instanceof Error?te.message:"Failed to trigger run")}finally{Fi(!1)}}},Ut=()=>f(te=>Math.max(0,te-1)),yc=(()=>{switch(o){case 0:return u.jsxs(Qe,{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 ready"})]})}),u.jsx("p",{className:"supporting-copy",children:"Checking that your Canonry instance is configured and reachable."}),u.jsx("div",{className:"compact-stack",children:a.healthChecks.map(te=>u.jsxs("div",{className:"health-check-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:te.label}),u.jsx("p",{className:"supporting-copy",children:te.detail}),te.id==="provider"&&te.state!=="ready"&&u.jsx("button",{type:"button",className:"text-emerald-400 hover:text-emerald-300 text-sm mt-1 underline underline-offset-2 cursor-pointer bg-transparent border-none p-0",onClick:()=>r("/settings"),children:"Configure providers"})]}),u.jsx(nt,{tone:te.state==="ready"?"positive":"caution",children:te.state==="ready"?"Ready":"Attention"})]},te.id))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(fe,{type:"button",disabled:!mc,onClick:()=>f(1),children:"Continue"})]})]});case 1:return u.jsxs(Qe,{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"})]}),E?u.jsx(nt,{tone:"positive",children:"Created"}):null]}),E?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-zinc-300",children:["Project ",u.jsx("span",{className:"text-zinc-100 font-medium",children:E})," created successfully."]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(fe,{type:"button",onClick:()=>f(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:h,onChange:te=>m(te.target.value)}),en&&en!==h?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",en]}):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:y,onChange:te=>g(te.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:S,onChange:te=>b(te.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:x,onChange:te=>k(te.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:O,onChange:te=>j(te.target.value.toLowerCase())})]})]}),B?u.jsx("p",{className:"text-rose-400 text-sm",children:B}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(fe,{type:"button",disabled:!en||!S||X,onClick:pc,children:X?"Creating...":"Create project"})]})]})]});case 2:return u.jsxs(Qe,{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 key phrases"})]}),Se?u.jsxs(nt,{tone:"positive",children:[Lt.length," saved"]}):u.jsxs(nt,{tone:"neutral",children:[Lt.length," key phrase",Lt.length!==1?"s":""]})]}),u.jsx("p",{className:"supporting-copy",children:"Enter the search queries you want to track. One per line."}),Se?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:Lt.map(te=>u.jsx("li",{children:te},te))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(fe,{type:"button",onClick:()=>f(3),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[U.length>0?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"flex items-center gap-2 text-zinc-500 text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-zinc-800"}),"auto-generate",u.jsx("span",{className:"flex-1 border-t border-zinc-800"})]}),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:J,onChange:te=>oe(te.target.value),children:U.map(te=>u.jsxs("option",{value:te.name,children:[Rv[te.name]??te.name,te.model?` (${te.model})`:""]},te.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:ve,onChange:te=>I(Number(te.target.value)),children:[3,5,10,15,20].map(te=>u.jsx("option",{value:te,children:te},te))})]}),u.jsx(fe,{type:"button",variant:"outline",disabled:A||!J,onClick:gc,children:A?"Analyzing site...":"Generate"})]}),ee?u.jsx("p",{className:"text-rose-400 text-sm",children:ee}):null]}):null,u.jsxs("div",{className:"flex items-center gap-2 text-zinc-500 text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-zinc-800"}),"or type manually",u.jsx("span",{className:"flex-1 border-t border-zinc-800"})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"keywords",children:"Key phrases (one per line)"}),u.jsx("textarea",{id:"keywords",className:"setup-textarea",rows:6,placeholder:`emergency dentist brooklyn
202
+ best invisalign downtown brooklyn
203
+ pediatric dentist brooklyn heights`,value:_,onChange:te=>P(te.target.value)})]}),le?u.jsx("p",{className:"text-rose-400 text-sm",children:le}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(fe,{type:"button",disabled:Lt.length===0||Ge,onClick:ht,children:Ge?"Saving...":`Save ${Lt.length} key phrase${Lt.length!==1?"s":""}`})]})]})]});case 3:return u.jsxs(Qe,{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"})]}),he?u.jsx(nt,{tone:"positive",children:"Saved"}):null]}),u.jsx("p",{className:"supporting-copy",children:"Domains that compete for the same key phrases. One per line."}),he?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:gn.map(te=>u.jsx("li",{children:te},te))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(fe,{type:"button",onClick:()=>f(4),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
204
+ competitor2.com`,value:F,onChange:te=>ae(te.target.value)})]}),me?u.jsx("p",{className:"text-rose-400 text-sm",children:me}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:()=>f(4),children:"Skip"}),u.jsx(fe,{type:"button",disabled:gn.length===0||Rt,onClick:ol,children:Rt?"Saving...":`Save ${gn.length} competitor${gn.length!==1?"s":""}`})]})]})]})]});case 4:return u.jsxs(Qe,{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"})]}),pn?u.jsx(nt,{tone:"positive",children:"Queued"}):null]}),pn?u.jsxs("div",{className:"compact-stack",children:[u.jsx("p",{className:"text-zinc-300",children:"Visibility sweep has been queued. View progress on the project page."}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(fe,{type:"button",onClick:()=>r(G?`/projects/${G}`:"/"),children:"Open project"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"supporting-copy",children:["Everything is configured. Launch an answer-visibility sweep to start tracking citations for ",u.jsx("span",{className:"text-zinc-100 font-medium",children:E}),"."]}),Va?u.jsx("p",{className:"text-rose-400 text-sm",children:Va}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(fe,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(fe,{type:"button",disabled:cl,onClick:ul,children:cl?"Launching...":"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, add key phrases, add competitors, and launch the first run."})]})}),u.jsx(c2,{current:o,labels:r2}),u.jsx("section",{className:"setup-wizard",children:yc})]})}function u2({onNavigate:a}){return u.jsx("div",{className:"page-container",children:u.jsx("section",{className:"page-section",children:u.jsxs(Qe,{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(fe,{asChild:!0,children:u.jsx("a",{href:"/",onClick:Mt(a,"/"),children:"Return to overview"})})]})})})}function Lv({title:a,subtitle:i,children:s,open:r,onClose:o}){return u.jsx(zw,{open:r,onOpenChange:f=>f?void 0:o(),children:u.jsxs(yv,{children:[u.jsxs(Uw,{className:"drawer-head",children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:i}),u.jsx(vv,{id:"drawer-title",children:a}),u.jsx(bv,{className:"sr-only",children:i})]}),u.jsx("div",{className:"drawer-body",children:s})]})})}function f2(a){const i=a.split(/\n{2,}/),s=[];for(let r=0;r<i.length;r++){const o=i[r].trim();if(!o)continue;const h=o.split(/(\*\*[^*]+\*\*)/).map((m,y)=>m.startsWith("**")&&m.endsWith("**")?u.jsx("strong",{className:"text-zinc-200 font-semibold",children:m.slice(2,-2)},y):m);s.push(u.jsx("p",{className:r>0?"mt-2":"",children:h},r))}return s}function d2({evidence:a,project:i,onClose:s}){const[r,o]=w.useState(!1),f=i.recentRuns[0];return u.jsxs(Lv,{open:!0,title:a.keyword,subtitle:`${i.project.name} · visibility evidence`,onClose:s,children:[u.jsxs("div",{className:"flex items-center justify-between gap-3",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(of,{state:a.citationState}),u.jsx(nl,{provider:a.provider}),u.jsx("span",{className:"text-sm text-zinc-400",children:a.changeLabel})]}),f&&u.jsxs("span",{className:"shrink-0 text-[10px] uppercase tracking-wide text-zinc-600",children:["from latest run · ",new Date(f.createdAt).toLocaleDateString()]})]}),a.answerSnippet&&u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"AI answer"}),u.jsx("div",{className:`mt-1 rounded border border-zinc-800/60 bg-zinc-900/50 p-3 text-sm leading-relaxed text-zinc-400 ${r?"max-h-80 overflow-y-auto":"line-clamp-6"}`,children:f2(a.answerSnippet)}),a.answerSnippet.length>300&&u.jsx("button",{type:"button",className:"mt-1.5 text-xs text-zinc-500 hover:text-zinc-300",onClick:()=>o(!r),children:r?"Collapse":"Show full answer"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Cited domains"}),a.citedDomains.length>0?u.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:a.citedDomains.map(h=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-800 px-2 py-0.5 text-xs text-zinc-300",children:h},h))}):u.jsx("p",{className:"mt-1 text-sm text-zinc-500",children:"No domains cited"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Competitor overlap"}),a.competitorDomains.length>0?u.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:a.competitorDomains.map(h=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-rose-800/50 bg-rose-950/40 px-2 py-0.5 text-xs text-rose-300",children:h},h))}):u.jsx("p",{className:"mt-1 text-sm text-zinc-500",children:"No competitors cited"})]})]}),a.groundingSources.length>0&&u.jsxs("div",{children:[u.jsxs("p",{className:"detail-label",children:["Grounding sources (",a.groundingSources.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:a.groundingSources.map((h,m)=>u.jsx("li",{className:"truncate text-sm",children:u.jsx("a",{href:h.uri,target:"_blank",rel:"noreferrer",className:"text-zinc-400 hover:text-zinc-200",children:h.title||h.uri})},m))})]}),a.evidenceUrls.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Evidence URLs"}),u.jsx("ul",{className:"detail-list",children:a.evidenceUrls.map(h=>u.jsx("li",{children:h},h))})]}),a.relatedTechnicalSignals.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Related technical signals"}),u.jsx("ul",{className:"detail-list",children:a.relatedTechnicalSignals.map(h=>u.jsx("li",{children:h},h))})]}),u.jsx("p",{className:"text-xs text-zinc-600",children:a.summary})]})}async function h2(){try{const[a,i,s]=await Promise.all([Zw(),Iw(),nN().catch(()=>null)]),r=await Promise.all(a.map(async o=>{const f=i.filter(b=>b.projectId===o.id),h=f.filter(b=>b.status==="completed"||b.status==="partial").sort((b,x)=>x.createdAt.localeCompare(b.createdAt)),[m,y,g,S]=await Promise.all([Jw(o.name).catch(()=>[]),wv(o.name).catch(()=>[]),Fw(o.name).catch(()=>[]),h[0]?cf(h[0].id).catch(()=>null):Promise.resolve(null)]);return{project:o,runs:f,keywords:m,competitors:y,timeline:g,latestRunDetail:S}}));return AN(r,s)}catch{return null}}function m2({initialPathname:a,initialDashboard:i,initialHealthSnapshot:s,enableLiveStatus:r=!0}){const[o,f]=w.useState(i??null),[h,m]=w.useState(!i),[y,g]=w.useState(i?!0:null),[S,b]=w.useState(()=>zN(a)),[x,k]=w.useState(!1),[O,j]=w.useState(null),[E,H]=w.useState(null),[G,R]=w.useState(!1),[B,K]=w.useState(s??TN),X=w.useCallback(async()=>{const z=await h2();z?(f(z),g(!0)):g(!1),m(!1)},[]);w.useEffect(()=>{i||X()},[i,X]);const Z=o?.runs.some(z=>z.status==="running"||z.status==="queued")??!1;if(w.useEffect(()=>{if(!Z)return;const z=setInterval(()=>{X()},3e3);return()=>clearInterval(z)},[Z,X]),w.useEffect(()=>{if(typeof window>"u")return;const z=()=>{b(Gi(window.location.pathname))};return window.addEventListener("popstate",z),()=>{window.removeEventListener("popstate",z)}},[]),w.useEffect(()=>{k(!1),j(null)},[S]),w.useEffect(()=>{if(typeof window>"u"||O===null)return;const z=F=>{F.key==="Escape"&&j(null)};return window.addEventListener("keydown",z),()=>{window.removeEventListener("keydown",z)}},[O]),w.useEffect(()=>{if(!r||typeof window>"u")return;let z=!0;const F=async()=>{const he=await ON("/health","API"),qe=he.state==="ok"?{label:"Runner",state:"ok",detail:"In-process job runner"}:{label:"Runner",state:he.state,detail:"Depends on API"};z&&K({apiStatus:he,workerStatus:qe})};F();const ae=window.setInterval(()=>{F()},15e3);return()=>{z=!1,window.clearInterval(ae)}},[r]),!h&&!o&&y===!1)return u.jsx("div",{className:"app-shell",children:u.jsx("div",{className:"main-area",style:{gridColumn:"1 / -1"},children:u.jsx("main",{id:"content",className:"page-shell",children: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:"Cannot connect to API"}),u.jsxs("p",{className:"page-subtitle",children:["The dashboard could not reach the Canonry API. Make sure ",u.jsx("code",{children:"canonry serve"})," is running and try refreshing the page."]})]})}),u.jsx(fe,{type:"button",onClick:()=>{m(!0),X()},children:"Retry connection"})]})})})});const _=o??kN.dashboard,P=_N(S,_),Se=P.kind==="project"?jv(_,P.projectId):void 0,W=z=>{const F=Gi(z);if(typeof window>"u"){b(F);return}Gi(window.location.pathname)!==F&&window.history.pushState({},"",F),b(F)},le=z=>{if(!z)return;j({kind:"run",runId:z}),H(null),R(!0);const F=z;cf(z).then(ae=>{j(he=>(he?.kind==="run"&&he.runId===F&&H(ae),he))}).catch(()=>{j(ae=>(ae?.kind==="run"&&ae.runId===F&&H(null),ae))}).finally(()=>R(!1))};w.useEffect(()=>{if(O?.kind!=="run"||!E||E.status!=="running"&&E.status!=="queued")return;const z=setInterval(()=>{cf(O.runId).then(F=>{H(F),F.status!=="running"&&F.status!=="queued"&&X()}).catch(()=>{})},3e3);return()=>clearInterval(z)},[O,E?.status,E?.snapshots.length,X]);const Ye=z=>{j({kind:"evidence",evidenceId:z})},Ge=async z=>{await Av(z),X()},ne=async z=>{try{await eN(z),W("/"),X()}catch(F){console.error("Failed to delete project:",F)}},U=async(z,F)=>{await Ww(z,F),await X()},J=async(z,F)=>{const he=(await wv(z)).map(me=>me.domain),qe=[...new Set([...he,...F])];await Ev(z,qe),await X()},oe=LN(_.portfolioOverview.systemHealth,B,_.settings),ve=BN(_.setup,B,_.settings),I=O?.kind==="run"?$w(_,O.runId):void 0,A=O?.kind==="evidence"?Vw(_,O.evidenceId):void 0,$=[{label:"Overview",href:"/",icon:DS,active:Hr(P,"overview")},{label:"Projects",href:"/projects",icon:_S,active:Hr(P,"projects")},{label:"Runs",href:"/runs",icon:US,active:Hr(P,"runs")},{label:"Settings",href:"/settings",icon:YS,active:Hr(P,"settings")}],ee=P.kind==="overview"?"Portfolio":P.kind==="projects"?"Projects":P.kind==="project"&&Se?Se.project.name:P.kind==="runs"?"Runs":P.kind==="settings"?"Settings":P.kind==="setup"?"Setup":"Not found";return u.jsxs("div",{className:"app-shell",children:[u.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),u.jsxs("aside",{className:"sidebar","aria-label":"Primary navigation",children:[u.jsx("div",{className:"sidebar-brand",children:u.jsxs("a",{href:"/",onClick:Mt(W,"/"),children:[u.jsx("span",{className:"brand-mark",children:"Canonry"}),u.jsx("p",{className:"brand-subtitle",children:"AEO Monitor"})]})}),u.jsxs("nav",{className:"sidebar-nav",children:[$.map(z=>u.jsxs("a",{className:`sidebar-link ${z.active?"sidebar-link-active":""}`,href:z.href,"aria-current":z.active?"page":void 0,onClick:Mt(W,z.href),children:[u.jsx(z.icon,{className:"sidebar-icon"}),u.jsx("span",{children:z.label})]},z.label)),_.projects.length>0?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Projects"}),_.projects.map(z=>{const F=P.kind==="project"&&Se?.project.id===z.project.id,ae=z.visibilitySummary.tone;return u.jsxs("a",{className:`sidebar-project ${F?"sidebar-project-active":""}`,href:`/projects/${z.project.id}`,onClick:Mt(W,`/projects/${z.project.id}`),children:[u.jsx("span",{className:`sidebar-dot sidebar-dot-${ae}`}),u.jsx("span",{children:z.project.name})]},z.project.id)})]}):null,u.jsx("p",{className:"sidebar-section-title",children:"Resources"}),u.jsxs("a",{className:"sidebar-link",href:"/setup","aria-current":P.kind==="setup"?"page":void 0,onClick:Mt(W,"/setup"),children:[u.jsx(HS,{className:"sidebar-icon"}),u.jsx("span",{children:"Setup"})]})]}),u.jsx("div",{className:"sidebar-footer",children:Ag.map(z=>u.jsx("a",{className:"sidebar-footer-link",href:z.href,target:"_blank",rel:"noreferrer",children:z.label},z.href))})]}),u.jsxs("div",{className:"main-area",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-left",children:[u.jsx("div",{className:"topbar-brand-mobile",children:u.jsx("a",{className:"brand-mark",href:"/",onClick:Mt(W,"/"),children:"Canonry"})}),u.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[u.jsx("a",{href:"/",onClick:Mt(W,"/"),children:"Home"}),u.jsx(kf,{className:"breadcrumb-sep size-3"}),u.jsx("span",{className:"breadcrumb-current",children:ee})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsxs("div",{className:"health-pill-row",children:[u.jsxs("span",{className:`health-pill health-pill-${B.apiStatus.state}`,children:["API ",B.apiStatus.state==="ok"?"ok":B.apiStatus.state]}),u.jsxs("span",{className:`health-pill health-pill-${B.workerStatus.state}`,children:["Worker ",B.workerStatus.state==="ok"?"ok":B.workerStatus.state]})]}),u.jsxs(fe,{className:"nav-toggle",variant:"secondary",size:"icon",type:"button","aria-expanded":x,"aria-controls":"mobile-nav",onClick:()=>k(z=>!z),children:[u.jsx(RS,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Open navigation"})]})]})]}),u.jsxs("div",{id:"mobile-nav",className:`mobile-nav ${x?"mobile-nav-open":""}`,children:[u.jsxs(fe,{className:"mobile-nav-close",variant:"ghost",size:"icon",type:"button",onClick:()=>k(!1),children:[u.jsx(my,{className:"size-5"}),u.jsx("span",{className:"sr-only",children:"Close navigation"})]}),$.map(z=>u.jsx("a",{className:`mobile-nav-link ${z.active?"mobile-nav-link-active":""}`,href:z.href,"aria-current":z.active?"page":void 0,onClick:Mt(W,z.href),children:z.label},z.label)),_.projects.length>0?u.jsxs("div",{className:"mobile-nav-section",children:[u.jsx("p",{className:"mobile-nav-section-title",children:"Projects"}),_.projects.map(z=>u.jsx("a",{className:"mobile-nav-link",href:`/projects/${z.project.id}`,onClick:Mt(W,`/projects/${z.project.id}`),children:z.project.name},z.project.id))]}):null]}),u.jsx("main",{id:"content",className:"page-shell",children:h?u.jsx("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:"Loading"}),u.jsx("p",{className:"page-subtitle",children:"Connecting to API and loading dashboard data..."})]})})}):u.jsxs(u.Fragment,{children:[P.kind==="overview"?u.jsx(VN,{model:_.portfolioOverview,systemHealth:oe,onNavigate:W,onOpenRun:le}):null,P.kind==="projects"?u.jsx(QN,{projects:_.projects,onNavigate:W,onProjectCreated:X}):null,P.kind==="project"&&Se?u.jsx(ZN,{model:Se,onOpenEvidence:Ye,onOpenRun:le,onTriggerRun:Ge,onDeleteProject:ne,onAddKeywords:U,onAddCompetitors:J}):null,P.kind==="runs"?u.jsx(n2,{runs:_.runs,onOpenRun:le}):null,P.kind==="settings"?u.jsx(l2,{settings:_.settings,healthSnapshot:B,onSettingsChanged:X}):null,P.kind==="setup"?u.jsx(o2,{model:ve,settings:_.settings,onProjectCreated:X,onNavigate:W}):null,P.kind==="not-found"?u.jsx(u2,{onNavigate:W}):null]})}),u.jsxs("footer",{className:"footer",children:[u.jsx("p",{className:"supporting-copy",children:"Technical readiness and answer visibility stay separate."}),u.jsx("div",{className:"footer-links",children:Ag.map(z=>u.jsx("a",{href:z.href,target:"_blank",rel:"noreferrer",children:z.label},z.href))})]})]}),I?u.jsxs(Lv,{open:I!==void 0,title:I.summary,subtitle:`${I.projectName} · ${I.kindLabel}`,onClose:()=>j(null),children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-1 text-sm",children:[u.jsx(hc,{status:I.status}),u.jsx("span",{className:"text-zinc-400",children:I.startedAt}),u.jsx("span",{className:"text-zinc-500",children:I.duration}),u.jsx("span",{className:"text-zinc-600",children:I.triggerLabel})]}),I.status==="failed"&&I.statusDetail&&u.jsx("p",{className:"text-sm text-rose-300/80 mt-2",children:I.statusDetail}),u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-zinc-500 mb-2",children:"Activity Log"}),G?u.jsx("p",{className:"text-sm text-zinc-500",children:"Loading run details..."}):E&&E.snapshots.length>0?u.jsxs("div",{className:"space-y-2",children:[E.snapshots.map(z=>u.jsxs("div",{className:"rounded-lg border border-zinc-800/60 bg-zinc-900/30 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-zinc-200 truncate",children:z.keyword??"Unknown key phrase"}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(nl,{provider:z.provider}),u.jsx(zy,{variant:z.citationState==="cited"?"success":"neutral",children:z.citationState})]})]}),z.citedDomains.length>0&&u.jsxs("p",{className:"text-xs text-zinc-500 mt-1",children:[u.jsx("span",{className:"text-zinc-400",children:"Sources:"})," ",z.citedDomains.join(", ")]}),z.competitorOverlap.length>0&&u.jsxs("p",{className:"text-xs text-rose-400/80 mt-0.5",children:["Competitor cited: ",z.competitorOverlap.join(", ")]}),z.groundingSources&&z.groundingSources.length>0&&u.jsxs("details",{className:"mt-2",children:[u.jsxs("summary",{className:"text-xs text-zinc-500 cursor-pointer hover:text-zinc-400",children:[z.groundingSources.length," grounding source",z.groundingSources.length!==1?"s":""]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:z.groundingSources.map((F,ae)=>u.jsx("li",{className:"text-xs text-zinc-500 truncate",children:u.jsx("a",{href:F.uri,target:"_blank",rel:"noreferrer",className:"hover:text-zinc-300",children:F.title||F.uri})},ae))})]}),z.answerText&&u.jsxs("details",{className:"mt-1",children:[u.jsx("summary",{className:"text-xs text-zinc-500 cursor-pointer hover:text-zinc-400",children:"Answer preview"}),u.jsx("p",{className:"mt-1 text-xs text-zinc-400 leading-relaxed whitespace-pre-wrap",children:z.answerText})]})]},z.id)),E.status==="running"&&u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),"Querying remaining key phrases..."]})]}):E&&E.status==="running"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),"Waiting for first key phrase result..."]}):E&&E.status==="queued"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-zinc-500 animate-pulse"}),"Run queued, waiting for execution slot..."]}):E&&E.error?u.jsxs("div",{className:"rounded-lg border border-rose-800/40 bg-rose-950/20 p-3",children:[u.jsx("p",{className:"text-sm font-medium text-rose-300 mb-2",children:"Run failed"}),u.jsx("pre",{className:"text-xs text-rose-300/80 whitespace-pre-wrap break-words max-h-48 overflow-y-auto font-mono leading-5",children:RN(E.error)})]}):u.jsx("p",{className:"text-sm text-zinc-500",children:"No snapshot data available."}),E?.snapshots?.[0]?.model&&u.jsxs("p",{className:"mt-3 text-[10px] text-zinc-600",children:["Model: ",E.snapshots[0].model]})]})]}):null,A?u.jsx(d2,{evidence:A.evidence,project:A.project,onClose:()=>j(null)}):null]})}const Uv=document.getElementById("root");if(!Uv)throw new Error("Expected #root element for web app bootstrap.");fx.createRoot(Uv).render(u.jsx(w.StrictMode,{children:u.jsx(m2,{})}));