@g3nomaly/analyze 0.1.2 → 0.1.3

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.
package/dist/cli.js CHANGED
@@ -7232,7 +7232,7 @@ import { existsSync as existsSync2 } from "fs";
7232
7232
  // package.json
7233
7233
  var package_default = {
7234
7234
  name: "@g3nomaly/analyze",
7235
- version: "0.1.2",
7235
+ version: "0.1.3",
7236
7236
  description: "Turns a repository into one offline HTML documentation site, and queries the same linked model from the terminal and from hooks.",
7237
7237
  keywords: [
7238
7238
  "documentation",
@@ -7486,19 +7486,19 @@ var template_default = `<!doctype html>
7486
7486
  <body>
7487
7487
  <div id="analyze-root"></div>
7488
7488
  <script id="analyze-data" type="application/json">__ANALYZE_DATA__</script>
7489
- <script type="module">var lz=Object.create;var{getPrototypeOf:uz,defineProperty:Ig,getOwnPropertyNames:cz}=Object;var dz=Object.prototype.hasOwnProperty;function fz(e){return this[e]}var pz,mz,U=(e,t,a)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?pz??=new WeakMap:mz??=new WeakMap,n=r.get(e);if(n)return n}a=e!=null?lz(uz(e)):{};let i=t||!e||!e.__esModule?Ig(a,"default",{value:e,enumerable:!0}):a;if(e&&typeof e==="object"||typeof e==="function"){for(let s of cz(e))if(!dz.call(i,s))Ig(i,s,{get:fz.bind(e,s),enumerable:!0})}if(o)r.set(e,i);return i};var _f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var hz=(e)=>e;function gz(e,t){this[e]=hz.bind(null,t)}var ui=(e,t)=>{for(var a in t)Ig(e,a,{get:t[a],enumerable:!0,configurable:!0,set:gz.bind(t,a)})};var Rg=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=_f(function(Dz){var Eg=Symbol.for("react.transitional.element"),yz=Symbol.for("react.portal"),xz=Symbol.for("react.fragment"),vz=Symbol.for("react.strict_mode"),bz=Symbol.for("react.profiler"),wz=Symbol.for("react.consumer"),Sz=Symbol.for("react.context"),Lz=Symbol.for("react.forward_ref"),Cz=Symbol.for("react.suspense"),kz=Symbol.for("react.memo"),gC=Symbol.for("react.lazy"),Iz=Symbol.for("react.activity"),Rz=Symbol.for("react.view_transition"),fC=Symbol.iterator;function _z(e){if(e===null||typeof e!=="object")return null;return e=fC&&e[fC]||e["@@iterator"],typeof e==="function"?e:null}var yC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xC=Object.assign,vC={};function ks(e,t,a){this.props=e,this.context=t,this.refs=vC,this.updater=a||yC}ks.prototype.isReactComponent={};ks.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=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,e,t,"setState")};ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bC(){}bC.prototype=ks.prototype;function Ng(e,t,a){this.props=e,this.context=t,this.refs=vC,this.updater=a||yC}var Ag=Ng.prototype=new bC;Ag.constructor=Ng;xC(Ag,ks.prototype);Ag.isPureReactComponent=!0;var pC=Array.isArray;function Tg(){}var Be={H:null,A:null,T:null,S:null},wC=Object.prototype.hasOwnProperty;function Mg(e,t,a){var o=a.ref;return{$$typeof:Eg,type:e,key:t,ref:o!==void 0?o:null,props:a}}function Tz(e,t){return Mg(e.type,t,e.props)}function Dg(e){return typeof e==="object"&&e!==null&&e.$$typeof===Eg}function Ez(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var mC=/\\/+/g;function _g(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Ez(""+e.key):t.toString(36)}function Nz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Tg,Tg):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Cs(e,t,a,o,r){var n=typeof e;if(n==="undefined"||n==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(n){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Eg:case yz:i=!0;break;case gC:return i=e._init,Cs(i(e._payload),t,a,o,r)}}if(i)return r=r(e),i=o===""?"."+_g(e,0):o,pC(r)?(a="",i!=null&&(a=i.replace(mC,"$&/")+"/"),Cs(r,t,a,"",function(u){return u})):r!=null&&(Dg(r)&&(r=Tz(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(mC,"$&/")+"/")+i)),t.push(r)),1;i=0;var s=o===""?".":o+":";if(pC(e))for(var l=0;l<e.length;l++)o=e[l],n=s+_g(o,l),i+=Cs(o,t,a,n,r);else if(l=_z(e),typeof l==="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=s+_g(o,l++),i+=Cs(o,t,a,n,r);else if(n==="object"){if(typeof e.then==="function")return Cs(Nz(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Tf(e,t,a){if(e==null)return e;var o=[],r=0;return Cs(e,o,"","",function(n){return t.call(a,n,r++)}),o}function Az(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){if(e._status===0||e._status===-1)e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o)},function(o){if(e._status===0||e._status===-1)e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var hC=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)};function SC(e){var t=Be.T,a={};a.types=t!==null?t.types:null,Be.T=a;try{var o=e(),r=Be.S;r!==null&&r(a,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(Tg,hC)}catch(n){hC(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),Be.T=t}}function LC(e){var t=Be.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else SC(LC.bind(null,e))}var Mz={map:Tf,forEach:function(e,t,a){Tf(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Tf(e,function(){t++}),t},toArray:function(e){return Tf(e,function(t){return t})||[]},only:function(e){if(!Dg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Dz.Activity=Iz;Dz.Children=Mz;Dz.Component=ks;Dz.Fragment=xz;Dz.Profiler=bz;Dz.PureComponent=Ng;Dz.StrictMode=vz;Dz.Suspense=Cz;Dz.ViewTransition=Rz;Dz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be;Dz.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Be.H.useMemoCache(e)}};Dz.addTransitionType=LC;Dz.cache=function(e){return function(){return e.apply(null,arguments)}};Dz.cacheSignal=function(){return null};Dz.cloneElement=function(e,t,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=xC({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!wC.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var i=Array(n),s=0;s<n;s++)i[s]=arguments[s+2];o.children=i}return Mg(e.type,r,o)};Dz.createContext=function(e){return e={$$typeof:Sz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:wz,_context:e},e};Dz.createElement=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)wC.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)r[o]===void 0&&(r[o]=i[o]);return Mg(e,n,r)};Dz.createRef=function(){return{current:null}};Dz.forwardRef=function(e){return{$$typeof:Lz,render:e}};Dz.isValidElement=Dg;Dz.lazy=function(e){return{$$typeof:gC,_payload:{_status:-1,_result:e},_init:Az}};Dz.memo=function(e,t){return{$$typeof:kz,type:e,compare:t===void 0?null:t}};Dz.startTransition=SC;Dz.unstable_useCacheRefresh=function(){return Be.H.useCacheRefresh()};Dz.use=function(e){return Be.H.use(e)};Dz.useActionState=function(e,t,a){return Be.H.useActionState(e,t,a)};Dz.useCallback=function(e,t){return Be.H.useCallback(e,t)};Dz.useContext=function(e){return Be.H.useContext(e)};Dz.useDebugValue=function(){};Dz.useDeferredValue=function(e,t){return Be.H.useDeferredValue(e,t)};Dz.useEffect=function(e,t){return Be.H.useEffect(e,t)};Dz.useEffectEvent=function(e){return Be.H.useEffectEvent(e)};Dz.useId=function(){return Be.H.useId()};Dz.useImperativeHandle=function(e,t,a){return Be.H.useImperativeHandle(e,t,a)};Dz.useInsertionEffect=function(e,t){return Be.H.useInsertionEffect(e,t)};Dz.useLayoutEffect=function(e,t){return Be.H.useLayoutEffect(e,t)};Dz.useMemo=function(e,t){return Be.H.useMemo(e,t)};Dz.useOptimistic=function(e,t){return Be.H.useOptimistic(e,t)};Dz.useReducer=function(e,t,a){return Be.H.useReducer(e,t,a)};Dz.useRef=function(e){return Be.H.useRef(e)};Dz.useState=function(e){return Be.H.useState(e)};Dz.useSyncExternalStore=function(e,t,a){return Be.H.useSyncExternalStore(e,t,a)};Dz.useTransition=function(){return Be.H.useTransition()};Dz.version="19.3.0"});var wk=_f(function(k5){var go=U(V());function g5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var y5=typeof Object.is==="function"?Object.is:g5,x5=go.useState,v5=go.useEffect,b5=go.useLayoutEffect,w5=go.useDebugValue;function S5(e,t){var a=t(),o=x5({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return b5(function(){r.value=a,r.getSnapshot=t,py(r)&&n({inst:r})},[e,a,t]),v5(function(){return py(r)&&n({inst:r}),e(function(){py(r)&&n({inst:r})})},[e]),w5(a),a}function py(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!y5(e,a)}catch(o){return!0}}function L5(e,t){return t()}var C5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?L5:S5;k5.useSyncExternalStore=go.useSyncExternalStore!==void 0?go.useSyncExternalStore:C5});function dx(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<mp(r,t))e[o]=t,e[a]=r,a=o;else break e}}function Uo(e){return e.length===0?null:e[0]}function vp(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var i=2*(o+1)-1,s=e[i],l=i+1,u=e[l];if(0>mp(s,a))l<r&&0>mp(u,s)?(e[o]=u,e[l]=a,o=l):(e[o]=s,e[i]=a,o=i);else if(l<r&&0>mp(u,a))e[o]=u,e[l]=a,o=l;else break e}}return t}function mp(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}function yp(e){for(var t=Uo(gn);t!==null;){if(t.callback===null)vp(gn);else if(t.startTime<=e)vp(gn),t.sortIndex=t.expirationTime,dx(Sr,t);else break;t=Uo(gn)}}function yx(e){if(ec=!1,yp(e),!Ju)if(Uo(Sr)!==null)Ju=!0,Gs||(Gs=!0,Us());else{var t=Uo(gn);t!==null&&xx(yx,t.startTime-e)}}function aI(){return gx?!0:Go()-tI<V3?!1:!0}function cx(){if(gx=!1,Gs){var e=Go();tI=e;var t=!0;try{e:{Ju=!1,ec&&(ec=!1,eI(tc),tc=-1),mx=!0;var a=gp;try{t:{yp(e);for(Xa=Uo(Sr);Xa!==null&&!(Xa.expirationTime>e&&aI());){var o=Xa.callback;if(typeof o==="function"){Xa.callback=null,gp=Xa.priorityLevel;var r=o(Xa.expirationTime<=e);if(e=Go(),typeof r==="function"){Xa.callback=r,yp(e),t=!0;break t}Xa===Uo(Sr)&&vp(Sr),yp(e)}else vp(Sr);Xa=Uo(Sr)}if(Xa!==null)t=!0;else{var n=Uo(gn);n!==null&&xx(yx,n.startTime-e),t=!1}}break e}finally{Xa=null,gp=a,mx=!1}t=void 0}}finally{t?Us():Gs=!1}}}function xx(e,t){tc=J1(function(){e(Go())},t)}var Go=void 0,fx,hp,px,Sr,gn,$3=1,Xa=null,gp=3,mx=!1,Ju=!1,ec=!1,gx=!1,J1,eI,Q1,Gs=!1,tc=-1,V3=5,tI=-1,Us,xp,hx,vx=5,bx=1,wx=4,qs=3,Sx=2,Lx=function(e){e.callback=null},Cx=function(){return gp},kx=function(){gx=!0},$s=function(e,t,a){var o=Go();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5000}return r=a+r,e={id:$3++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,dx(gn,e),Uo(Sr)===null&&e===Uo(gn)&&(ec?(eI(tc),tc=-1):ec=!0,xx(yx,a-o))):(e.sortIndex=r,dx(Sr,e),Ju||mx||(Ju=!0,Gs||(Gs=!0,Us()))),e},Ix;var oI=Rg(()=>{if(typeof performance==="object"&&typeof performance.now==="function")fx=performance,Go=function(){return fx.now()};else hp=Date,px=hp.now(),Go=function(){return hp.now()-px};Sr=[],gn=[],J1=typeof setTimeout==="function"?setTimeout:null,eI=typeof clearTimeout==="function"?clearTimeout:null,Q1=typeof setImmediate<"u"?setImmediate:null;if(typeof Q1==="function")Us=function(){Q1(cx)};else if(typeof MessageChannel<"u")xp=new MessageChannel,hx=xp.port2,xp.port1.onmessage=cx,Us=function(){hx.postMessage(null)};else Us=function(){J1(cx,0)};Ix=aI});var Rx={};ui(Rx,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>sI,browser:()=>lI,createPortal:()=>uI,flushSync:()=>cI,preconnect:()=>dI,prefetchDNS:()=>fI,preinit:()=>pI,preinitModule:()=>mI,preload:()=>hI,preloadModule:()=>gI,requestFormReset:()=>yI,unstable_batchedUpdates:()=>xI,useFormState:()=>vI,useFormStatus:()=>bI,version:()=>wI});function iI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 yn(){}function X3(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K3,key:o==null?null:o===rI?rI:""+o,children:e,containerInfo:t,implementation:a}}function bp(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var nI,Wt,K3,j3,rI,ac,sI,lI=function(e){return{$$typeof:j3,_reason:e}},uI=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(iI(299));return X3(e,t,null,a)},cI=function(e){var t=ac.T,a=Wt.p;try{if(ac.T=null,Wt.p=2,e)return e()}finally{ac.T=t,Wt.p=a,Wt.d.f()}},dI=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,Wt.d.C(e,t))},fI=function(e){typeof e==="string"&&Wt.d.D(e)},pI=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var a=t.as,o=bp(a,t.crossOrigin),r=typeof t.integrity==="string"?t.integrity:void 0,n=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;a==="style"?Wt.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:n}):a==="script"&&Wt.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:n,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},mI=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var a=bp(t.as,t.crossOrigin);Wt.d.M(e,{crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&Wt.d.M(e)},hI=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var a=t.as,o=bp(a,t.crossOrigin);Wt.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},gI=function(e,t){if(typeof e==="string")if(t){var a=bp(t.as,t.crossOrigin);Wt.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else Wt.d.m(e)},yI=function(e){Wt.d.r(e)},xI=function(e,t){return e(t)},vI=function(e,t,a){return ac.H.useFormState(e,t,a)},bI=function(){return ac.H.useHostTransitionStatus()},wI="19.3.0";var SI=Rg(()=>{nI=U(V(),1);Wt={d:{f:yn,r:function(){throw Error(iI(522))},D:yn,C:yn,L:yn,m:yn,X:yn,S:yn,M:yn},p:0,findDOMNode:null},K3=Symbol.for("react.portal"),j3=Symbol.for("react.recoverable"),rI=Symbol.for("react.optimistic_key");ac=nI.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;sI=Wt});var wp=_f(function(noe,CI){SI();function LI(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LI)}catch(e){console.error(e)}}LI(),CI.exports=Rx});var y0={};ui(y0,{createRoot:()=>lE,hydrateRoot:()=>uE,version:()=>cE});function M(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 l_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zc(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u_(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 c_(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 kI(e){if(Zc(e)!==e)throw Error(M(188))}function Y3(e){var t=e.alternate;if(!t){if(t=Zc(e),t===null)throw Error(M(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return kI(r),e;if(n===o)return kI(r),t;n=n.sibling}throw Error(M(188))}if(a.return!==o.return)a=r,o=n;else{for(var i=!1,s=r.child;s;){if(s===a){i=!0,a=r,o=n;break}if(s===o){i=!0,o=r,a=n;break}s=s.sibling}if(!i){for(s=n.child;s;){if(s===a){i=!0,a=n,o=r;break}if(s===o){i=!0,o=n,a=r;break}s=s.sibling}if(!i)throw Error(M(189))}}if(a.alternate!==o)throw Error(M(190))}if(a.tag!==3)throw Error(M(188));return a.stateNode.current===a?e:t}function d_(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d_(e),t!==null)return t;e=e.sibling}return null}function ba(e,t,a,o,r,n){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,r,n)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&ba(e.child,t,a,o,r,n))return!0;e=e.sibling}return!1}function Wi(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function II(e){var t=!1;for(e=e.return;e!==null;){if(e.tag===4&&(t=!0),e.tag===3||e.tag===5||e.tag===27)break;e=e.return}return t}function f_(e){var t=[null,null],a=Wi(e);if(a===null)return t;return p_(t,e,a.child,{foundSelf:!1}),t}function p_(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&p_(e,t,a.child,o))return!0;a=a.sibling}return!1}function yt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(M(559))}}function W3(e,t,a){return e===a?!0:e===t?(Ws=e,!0):!1}function Q3(e,t,a){return e===a?(rv=e,!1):e===t?(rv!==null&&(Ws=e),!0):!1}function RI(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e?e:null}function nv(e,t,a){for(var o=0,r=e;r;r=a(r))o++;r=0;for(var n=t;n;n=a(n))r++;for(;0<o-r;)e=a(e),o--;for(;0<r-o;)t=a(t),r--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}function oc(e){if(e===null||typeof e!=="object")return null;return e=_I&&e[_I]||e["@@iterator"],typeof e==="function"?e:null}function dv(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===o4?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Qs:return"Fragment";case iv:return"Profiler";case m_:return"StrictMode";case sv:return"Suspense";case lv:return"SuspenseList";case uv:return"Activity";case cv:return"ViewTransition"}if(typeof e==="object")switch(e.$$typeof){case lc:return"Portal";case jo:return e.displayName||"Context";case h_:return(e._context.displayName||"Context")+".Consumer";case yb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xb:return t=e.displayName||null,t!==null?t:dv(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return dv(e(t))}catch(a){}}return null}function tr(e){return{current:e}}function Ot(e){0>Js||(e.current=fv[Js],fv[Js]=null,Js--)}function Ue(e,t){Js++,fv[Js]=e.current,e.current=t}function im(e,t){switch(Ue(En,t),Ue(Ec,e),Ue(Qo,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)?(e=e.namespaceURI)?HR(e):0:0;break;default:if(e=t.tagName,t=t.namespaceURI)t=HR(t),e=z2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ot(Qo),Ue(Qo,e)}function vl(){Ot(Qo),Ot(Ec),Ot(En)}function pv(e){var t=e.memoizedState;t!==null&&(Tl._currentValue=t.memoizedState,Ue(nm,e)),t=Qo.current;var a=z2(t,e.type);t!==a&&(Ue(Ec,e),Ue(Qo,a))}function sm(e){Ec.current===e&&(Ot(Qo),Ot(Ec)),nm.current===e&&(Ot(nm),Tl._currentValue=Bi)}function vn(e){if(_x===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\\n( *(at )?)/);_x=t&&t[1]||"",TI=-1<a.stack.indexOf(\`
7489
+ <script type="module">var cz=Object.create;var{getPrototypeOf:dz,defineProperty:Rg,getOwnPropertyNames:fz}=Object;var pz=Object.prototype.hasOwnProperty;function mz(e){return this[e]}var hz,gz,U=(e,t,a)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?hz??=new WeakMap:gz??=new WeakMap,n=r.get(e);if(n)return n}a=e!=null?cz(dz(e)):{};let i=t||!e||!e.__esModule?Rg(a,"default",{value:e,enumerable:!0}):a;if(e&&typeof e==="object"||typeof e==="function"){for(let s of fz(e))if(!pz.call(i,s))Rg(i,s,{get:mz.bind(e,s),enumerable:!0})}if(o)r.set(e,i);return i};var Tf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yz=(e)=>e;function xz(e,t){this[e]=yz.bind(null,t)}var ui=(e,t)=>{for(var a in t)Rg(e,a,{get:t[a],enumerable:!0,configurable:!0,set:xz.bind(t,a)})};var _g=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=Tf(function(Oz){var Ng=Symbol.for("react.transitional.element"),vz=Symbol.for("react.portal"),bz=Symbol.for("react.fragment"),wz=Symbol.for("react.strict_mode"),Sz=Symbol.for("react.profiler"),Lz=Symbol.for("react.consumer"),Cz=Symbol.for("react.context"),kz=Symbol.for("react.forward_ref"),Iz=Symbol.for("react.suspense"),Rz=Symbol.for("react.memo"),xC=Symbol.for("react.lazy"),_z=Symbol.for("react.activity"),Tz=Symbol.for("react.view_transition"),mC=Symbol.iterator;function Ez(e){if(e===null||typeof e!=="object")return null;return e=mC&&e[mC]||e["@@iterator"],typeof e==="function"?e:null}var vC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bC=Object.assign,wC={};function ks(e,t,a){this.props=e,this.context=t,this.refs=wC,this.updater=a||vC}ks.prototype.isReactComponent={};ks.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=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,e,t,"setState")};ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function SC(){}SC.prototype=ks.prototype;function Ag(e,t,a){this.props=e,this.context=t,this.refs=wC,this.updater=a||vC}var Mg=Ag.prototype=new SC;Mg.constructor=Ag;bC(Mg,ks.prototype);Mg.isPureReactComponent=!0;var hC=Array.isArray;function Eg(){}var Be={H:null,A:null,T:null,S:null},LC=Object.prototype.hasOwnProperty;function Dg(e,t,a){var o=a.ref;return{$$typeof:Ng,type:e,key:t,ref:o!==void 0?o:null,props:a}}function Nz(e,t){return Dg(e.type,t,e.props)}function Pg(e){return typeof e==="object"&&e!==null&&e.$$typeof===Ng}function Az(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var gC=/\\/+/g;function Tg(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Az(""+e.key):t.toString(36)}function Mz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Eg,Eg):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Cs(e,t,a,o,r){var n=typeof e;if(n==="undefined"||n==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(n){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ng:case vz:i=!0;break;case xC:return i=e._init,Cs(i(e._payload),t,a,o,r)}}if(i)return r=r(e),i=o===""?"."+Tg(e,0):o,hC(r)?(a="",i!=null&&(a=i.replace(gC,"$&/")+"/"),Cs(r,t,a,"",function(u){return u})):r!=null&&(Pg(r)&&(r=Nz(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(gC,"$&/")+"/")+i)),t.push(r)),1;i=0;var s=o===""?".":o+":";if(hC(e))for(var l=0;l<e.length;l++)o=e[l],n=s+Tg(o,l),i+=Cs(o,t,a,n,r);else if(l=Ez(e),typeof l==="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=s+Tg(o,l++),i+=Cs(o,t,a,n,r);else if(n==="object"){if(typeof e.then==="function")return Cs(Mz(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Ef(e,t,a){if(e==null)return e;var o=[],r=0;return Cs(e,o,"","",function(n){return t.call(a,n,r++)}),o}function Dz(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){if(e._status===0||e._status===-1)e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o)},function(o){if(e._status===0||e._status===-1)e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var yC=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)};function CC(e){var t=Be.T,a={};a.types=t!==null?t.types:null,Be.T=a;try{var o=e(),r=Be.S;r!==null&&r(a,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(Eg,yC)}catch(n){yC(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),Be.T=t}}function kC(e){var t=Be.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else CC(kC.bind(null,e))}var Pz={map:Ef,forEach:function(e,t,a){Ef(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Ef(e,function(){t++}),t},toArray:function(e){return Ef(e,function(t){return t})||[]},only:function(e){if(!Pg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Oz.Activity=_z;Oz.Children=Pz;Oz.Component=ks;Oz.Fragment=bz;Oz.Profiler=Sz;Oz.PureComponent=Ag;Oz.StrictMode=wz;Oz.Suspense=Iz;Oz.ViewTransition=Tz;Oz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be;Oz.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Be.H.useMemoCache(e)}};Oz.addTransitionType=kC;Oz.cache=function(e){return function(){return e.apply(null,arguments)}};Oz.cacheSignal=function(){return null};Oz.cloneElement=function(e,t,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=bC({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!LC.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var i=Array(n),s=0;s<n;s++)i[s]=arguments[s+2];o.children=i}return Dg(e.type,r,o)};Oz.createContext=function(e){return e={$$typeof:Cz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Lz,_context:e},e};Oz.createElement=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)LC.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)r[o]===void 0&&(r[o]=i[o]);return Dg(e,n,r)};Oz.createRef=function(){return{current:null}};Oz.forwardRef=function(e){return{$$typeof:kz,render:e}};Oz.isValidElement=Pg;Oz.lazy=function(e){return{$$typeof:xC,_payload:{_status:-1,_result:e},_init:Dz}};Oz.memo=function(e,t){return{$$typeof:Rz,type:e,compare:t===void 0?null:t}};Oz.startTransition=CC;Oz.unstable_useCacheRefresh=function(){return Be.H.useCacheRefresh()};Oz.use=function(e){return Be.H.use(e)};Oz.useActionState=function(e,t,a){return Be.H.useActionState(e,t,a)};Oz.useCallback=function(e,t){return Be.H.useCallback(e,t)};Oz.useContext=function(e){return Be.H.useContext(e)};Oz.useDebugValue=function(){};Oz.useDeferredValue=function(e,t){return Be.H.useDeferredValue(e,t)};Oz.useEffect=function(e,t){return Be.H.useEffect(e,t)};Oz.useEffectEvent=function(e){return Be.H.useEffectEvent(e)};Oz.useId=function(){return Be.H.useId()};Oz.useImperativeHandle=function(e,t,a){return Be.H.useImperativeHandle(e,t,a)};Oz.useInsertionEffect=function(e,t){return Be.H.useInsertionEffect(e,t)};Oz.useLayoutEffect=function(e,t){return Be.H.useLayoutEffect(e,t)};Oz.useMemo=function(e,t){return Be.H.useMemo(e,t)};Oz.useOptimistic=function(e,t){return Be.H.useOptimistic(e,t)};Oz.useReducer=function(e,t,a){return Be.H.useReducer(e,t,a)};Oz.useRef=function(e){return Be.H.useRef(e)};Oz.useState=function(e){return Be.H.useState(e)};Oz.useSyncExternalStore=function(e,t,a){return Be.H.useSyncExternalStore(e,t,a)};Oz.useTransition=function(){return Be.H.useTransition()};Oz.version="19.3.0"});var Lk=Tf(function(f5){var go=U(V());function o5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var r5=typeof Object.is==="function"?Object.is:o5,n5=go.useState,i5=go.useEffect,s5=go.useLayoutEffect,l5=go.useDebugValue;function u5(e,t){var a=t(),o=n5({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return s5(function(){r.value=a,r.getSnapshot=t,hy(r)&&n({inst:r})},[e,a,t]),i5(function(){return hy(r)&&n({inst:r}),e(function(){hy(r)&&n({inst:r})})},[e]),l5(a),a}function hy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!r5(e,a)}catch(o){return!0}}function c5(e,t){return t()}var d5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c5:u5;f5.useSyncExternalStore=go.useSyncExternalStore!==void 0?go.useSyncExternalStore:d5});function px(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<hp(r,t))e[o]=t,e[a]=r,a=o;else break e}}function Uo(e){return e.length===0?null:e[0]}function bp(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var i=2*(o+1)-1,s=e[i],l=i+1,u=e[l];if(0>hp(s,a))l<r&&0>hp(u,s)?(e[o]=u,e[l]=a,o=l):(e[o]=s,e[i]=a,o=i);else if(l<r&&0>hp(u,a))e[o]=u,e[l]=a,o=l;else break e}}return t}function hp(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}function xp(e){for(var t=Uo(gn);t!==null;){if(t.callback===null)bp(gn);else if(t.startTime<=e)bp(gn),t.sortIndex=t.expirationTime,px(Sr,t);else break;t=Uo(gn)}}function vx(e){if(tc=!1,xp(e),!ec)if(Uo(Sr)!==null)ec=!0,Gs||(Gs=!0,Us());else{var t=Uo(gn);t!==null&&bx(vx,t.startTime-e)}}function rI(){return xx?!0:Go()-oI<A3?!1:!0}function fx(){if(xx=!1,Gs){var e=Go();oI=e;var t=!0;try{e:{ec=!1,tc&&(tc=!1,aI(ac),ac=-1),gx=!0;var a=yp;try{t:{xp(e);for(Xa=Uo(Sr);Xa!==null&&!(Xa.expirationTime>e&&rI());){var o=Xa.callback;if(typeof o==="function"){Xa.callback=null,yp=Xa.priorityLevel;var r=o(Xa.expirationTime<=e);if(e=Go(),typeof r==="function"){Xa.callback=r,xp(e),t=!0;break t}Xa===Uo(Sr)&&bp(Sr),xp(e)}else bp(Sr);Xa=Uo(Sr)}if(Xa!==null)t=!0;else{var n=Uo(gn);n!==null&&bx(vx,n.startTime-e),t=!1}}break e}finally{Xa=null,yp=a,gx=!1}t=void 0}}finally{t?Us():Gs=!1}}}function bx(e,t){ac=tI(function(){e(Go())},t)}var Go=void 0,mx,gp,hx,Sr,gn,N3=1,Xa=null,yp=3,gx=!1,ec=!1,tc=!1,xx=!1,tI,aI,eI,Gs=!1,ac=-1,A3=5,oI=-1,Us,vp,yx,wx=5,Sx=1,Lx=4,qs=3,Cx=2,kx=function(e){e.callback=null},Ix=function(){return yp},Rx=function(){xx=!0},$s=function(e,t,a){var o=Go();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5000}return r=a+r,e={id:N3++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,px(gn,e),Uo(Sr)===null&&e===Uo(gn)&&(tc?(aI(ac),ac=-1):tc=!0,bx(vx,a-o))):(e.sortIndex=r,px(Sr,e),ec||gx||(ec=!0,Gs||(Gs=!0,Us()))),e},_x;var nI=_g(()=>{if(typeof performance==="object"&&typeof performance.now==="function")mx=performance,Go=function(){return mx.now()};else gp=Date,hx=gp.now(),Go=function(){return gp.now()-hx};Sr=[],gn=[],tI=typeof setTimeout==="function"?setTimeout:null,aI=typeof clearTimeout==="function"?clearTimeout:null,eI=typeof setImmediate<"u"?setImmediate:null;if(typeof eI==="function")Us=function(){eI(fx)};else if(typeof MessageChannel<"u")vp=new MessageChannel,yx=vp.port2,vp.port1.onmessage=fx,Us=function(){yx.postMessage(null)};else Us=function(){tI(fx,0)};_x=rI});var Tx={};ui(Tx,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>uI,browser:()=>cI,createPortal:()=>dI,flushSync:()=>fI,preconnect:()=>pI,prefetchDNS:()=>mI,preinit:()=>hI,preinitModule:()=>gI,preload:()=>yI,preloadModule:()=>xI,requestFormReset:()=>vI,unstable_batchedUpdates:()=>bI,useFormState:()=>wI,useFormStatus:()=>SI,version:()=>LI});function lI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 yn(){}function O3(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D3,key:o==null?null:o===iI?iI:""+o,children:e,containerInfo:t,implementation:a}}function wp(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var sI,Wt,D3,P3,iI,oc,uI,cI=function(e){return{$$typeof:P3,_reason:e}},dI=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(lI(299));return O3(e,t,null,a)},fI=function(e){var t=oc.T,a=Wt.p;try{if(oc.T=null,Wt.p=2,e)return e()}finally{oc.T=t,Wt.p=a,Wt.d.f()}},pI=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,Wt.d.C(e,t))},mI=function(e){typeof e==="string"&&Wt.d.D(e)},hI=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var a=t.as,o=wp(a,t.crossOrigin),r=typeof t.integrity==="string"?t.integrity:void 0,n=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;a==="style"?Wt.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:n}):a==="script"&&Wt.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:n,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},gI=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var a=wp(t.as,t.crossOrigin);Wt.d.M(e,{crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&Wt.d.M(e)},yI=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var a=t.as,o=wp(a,t.crossOrigin);Wt.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},xI=function(e,t){if(typeof e==="string")if(t){var a=wp(t.as,t.crossOrigin);Wt.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else Wt.d.m(e)},vI=function(e){Wt.d.r(e)},bI=function(e,t){return e(t)},wI=function(e,t,a){return oc.H.useFormState(e,t,a)},SI=function(){return oc.H.useHostTransitionStatus()},LI="19.3.0";var CI=_g(()=>{sI=U(V(),1);Wt={d:{f:yn,r:function(){throw Error(lI(522))},D:yn,C:yn,L:yn,m:yn,X:yn,S:yn,M:yn},p:0,findDOMNode:null},D3=Symbol.for("react.portal"),P3=Symbol.for("react.recoverable"),iI=Symbol.for("react.optimistic_key");oc=sI.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;uI=Wt});var Sp=Tf(function(Uae,II){CI();function kI(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kI)}catch(e){console.error(e)}}kI(),II.exports=Tx});var v0={};ui(v0,{createRoot:()=>cE,hydrateRoot:()=>dE,version:()=>fE});function M(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 c_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kc(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function d_(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 f_(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 RI(e){if(Kc(e)!==e)throw Error(M(188))}function z3(e){var t=e.alternate;if(!t){if(t=Kc(e),t===null)throw Error(M(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return RI(r),e;if(n===o)return RI(r),t;n=n.sibling}throw Error(M(188))}if(a.return!==o.return)a=r,o=n;else{for(var i=!1,s=r.child;s;){if(s===a){i=!0,a=r,o=n;break}if(s===o){i=!0,o=r,a=n;break}s=s.sibling}if(!i){for(s=n.child;s;){if(s===a){i=!0,a=n,o=r;break}if(s===o){i=!0,o=n,a=r;break}s=s.sibling}if(!i)throw Error(M(189))}}if(a.alternate!==o)throw Error(M(190))}if(a.tag!==3)throw Error(M(188));return a.stateNode.current===a?e:t}function p_(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p_(e),t!==null)return t;e=e.sibling}return null}function ba(e,t,a,o,r,n){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,r,n)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&ba(e.child,t,a,o,r,n))return!0;e=e.sibling}return!1}function Wi(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _I(e){var t=!1;for(e=e.return;e!==null;){if(e.tag===4&&(t=!0),e.tag===3||e.tag===5||e.tag===27)break;e=e.return}return t}function m_(e){var t=[null,null],a=Wi(e);if(a===null)return t;return h_(t,e,a.child,{foundSelf:!1}),t}function h_(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&h_(e,t,a.child,o))return!0;a=a.sibling}return!1}function yt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(M(559))}}function B3(e,t,a){return e===a?!0:e===t?(Ws=e,!0):!1}function F3(e,t,a){return e===a?(iv=e,!1):e===t?(iv!==null&&(Ws=e),!0):!1}function TI(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e?e:null}function sv(e,t,a){for(var o=0,r=e;r;r=a(r))o++;r=0;for(var n=t;n;n=a(n))r++;for(;0<o-r;)e=a(e),o--;for(;0<r-o;)t=a(t),r--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}function rc(e){if(e===null||typeof e!=="object")return null;return e=EI&&e[EI]||e["@@iterator"],typeof e==="function"?e:null}function pv(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===$3?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Qs:return"Fragment";case lv:return"Profiler";case g_:return"StrictMode";case uv:return"Suspense";case cv:return"SuspenseList";case dv:return"Activity";case fv:return"ViewTransition"}if(typeof e==="object")switch(e.$$typeof){case uc:return"Portal";case jo:return e.displayName||"Context";case y_:return(e._context.displayName||"Context")+".Consumer";case vb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bb:return t=e.displayName||null,t!==null?t:pv(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return pv(e(t))}catch(a){}}return null}function tr(e){return{current:e}}function Ot(e){0>Js||(e.current=mv[Js],mv[Js]=null,Js--)}function Ue(e,t){Js++,mv[Js]=e.current,e.current=t}function sm(e,t){switch(Ue(En,t),Ue(Nc,e),Ue(Qo,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)?(e=e.namespaceURI)?GR(e):0:0;break;default:if(e=t.tagName,t=t.namespaceURI)t=GR(t),e=F2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ot(Qo),Ue(Qo,e)}function vl(){Ot(Qo),Ot(Nc),Ot(En)}function hv(e){var t=e.memoizedState;t!==null&&(Tl._currentValue=t.memoizedState,Ue(im,e)),t=Qo.current;var a=F2(t,e.type);t!==a&&(Ue(Nc,e),Ue(Qo,a))}function lm(e){Nc.current===e&&(Ot(Qo),Ot(Nc)),im.current===e&&(Ot(im),Tl._currentValue=Bi)}function vn(e){if(Ex===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\\n( *(at )?)/);Ex=t&&t[1]||"",NI=-1<a.stack.indexOf(\`
7490
7490
  at\`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return\`
7491
- \`+_x+e+TI}function Ex(e,t){if(!e||Tx)return"";Tx=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(g){var p=g}Reflect.construct(e,[],m)}else{try{m.call()}catch(g){p=g}m=!1;try{var f=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),m=!0,new e}finally{m&&(f!==void 0?Object.defineProperty(e.prototype,"props",f):delete e.prototype.props)}}}else{try{throw Error()}catch(g){p=g}(m=e())&&typeof m.catch==="function"&&m.catch(function(){})}}catch(g){if(g&&p&&typeof g.stack==="string")return[g.stack,p.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),i=n[0],s=n[1];if(i&&s){var l=i.split(\`
7491
+ \`+Ex+e+NI}function Ax(e,t){if(!e||Nx)return"";Nx=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(g){var p=g}Reflect.construct(e,[],m)}else{try{m.call()}catch(g){p=g}m=!1;try{var f=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),m=!0,new e}finally{m&&(f!==void 0?Object.defineProperty(e.prototype,"props",f):delete e.prototype.props)}}}else{try{throw Error()}catch(g){p=g}(m=e())&&typeof m.catch==="function"&&m.catch(function(){})}}catch(g){if(g&&p&&typeof g.stack==="string")return[g.stack,p.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),i=n[0],s=n[1];if(i&&s){var l=i.split(\`
7492
7492
  \`),u=s.split(\`
7493
7493
  \`);for(r=o=0;o<l.length&&!l[o].includes("DetermineComponentFrameRoot");)o++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(o===l.length||r===u.length)for(o=l.length-1,r=u.length-1;1<=o&&0<=r&&l[o]!==u[r];)r--;for(;1<=o&&0<=r;o--,r--)if(l[o]!==u[r]){if(o!==1||r!==1)do if(o--,r--,0>r||l[o]!==u[r]){var d=\`
7494
- \`+l[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=r);break}}}finally{Tx=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?vn(a):""}function r4(e,t){switch(e.tag){case 26:case 27:case 5:return vn(e.type);case 16:return vn("Lazy");case 13:return e.child!==t&&t!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return Ex(e.type,!1);case 11:return Ex(e.type.render,!1);case 1:return Ex(e.type,!0);case 31:return vn("Activity");case 30:return vn("ViewTransition");default:return""}}function EI(e){try{var t="",a=null;do t+=r4(e,a),a=e,e=e.return;while(e);return t}catch(o){return\`
7494
+ \`+l[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=r);break}}}finally{Nx=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?vn(a):""}function V3(e,t){switch(e.tag){case 26:case 27:case 5:return vn(e.type);case 16:return vn("Lazy");case 13:return e.child!==t&&t!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return Ax(e.type,!1);case 11:return Ax(e.type.render,!1);case 1:return Ax(e.type,!0);case 31:return vn("Activity");case 30:return vn("ViewTransition");default:return""}}function AI(e){try{var t="",a=null;do t+=V3(e,a),a=e,e=e.return;while(e);return t}catch(o){return\`
7495
7495
  Error generating stack: \`+o.message+\`
7496
- \`+o.stack}}function Cn(e){if(typeof u4==="function"&&c4(e),Oa&&typeof Oa.setStrictMode==="function")try{Oa.setStrictMode(Kc,e)}catch(t){}}function p4(e){return e>>>=0,e===0?32:31-(d4(e)/f4|0)|0}function Ai(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pm(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~n,o!==0?r=Ai(o):(i&=s,i!==0?r=Ai(i):a||(a=s&~e,a!==0&&(r=Ai(a))))):(s=o&~n,s!==0?r=Ai(s):i!==0?r=Ai(i):a||(a=o&~e,a!==0&&(r=Ai(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function jc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function v_(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-za(a),r=1<<o;t|=e[o],a&=~r}return t}function m4(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+5000;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 b_(){var e=kp;return kp<<=1,(kp&62914560)===0&&(kp=4194304),e}function Ax(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h4(e,t,a,o,r,n){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:s,expirationTimes:l,hiddenUpdates:u}=e;for(a=i&~a;0<a;){var d=31-za(a),m=1<<d;s[d]=0,l[d]=-1;var p=u[d];if(p!==null)for(u[d]=null,d=0;d<p.length;d++){var f=p[d];f!==null&&(f.lane&=-536870913)}a&=~m}o!==0&&w_(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(i&~t))}function w_(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-za(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function S_(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-za(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function L_(e,t){var a=t&-t;return a=(a&42)!==0?1:bb(a),(a&(e.suspendedLanes|t))!==0?0:a}function bb(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 wb(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function C_(){var e=Se.p;if(e!==0)return e;return e=window.event,e===void 0?32:nE(e.type)}function NI(e,t){var a=Se.p;try{return Se.p=e,t()}finally{Se.p=a}}function Om(e){delete e[Dt],delete e[wa],delete e[g4],delete e[y4]}function Oi(e){var t;if(t=e[Dt])return t;for(var a=e.parentNode;a;){if(t=a[Al]||a[Dt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=jR(e);e!==null;){if(a=e[Dt])return a;e=jR(e)}return t}e=a,a=e.parentNode}return null}function Ml(e){if(e=e[Dt]||e[Al]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(M(33))}function ul(e){var t=e[MI];return t||(t=e[MI]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function It(e){e[Yc]=!0}function k_(e){e[um]=void 0}function Qi(e,t){bl(e,t),bl(e+"Capture",t)}function bl(e,t){R_[e]=t;for(e=0;e<t.length;e++)I_.add(t[e])}function v4(e){if(mv.call(PI,e))return!0;if(mv.call(DI,e))return!1;if(x4.test(e))return PI[e]=!0;return DI[e]=!0,!1}function OI(){var e=ve;return ve=!1,e}function Fp(e,t,a){if(v4(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Ip(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Lr(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function Na(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function __(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b4(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:r,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hv(e){if(!e._valueTracker){var t=__(e)?"checked":"value";e._valueTracker=b4(e,t,""+e[t])}}function T_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=__(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function eo(e){return e.replace(w4,function(t){return"\\\\"+t.charCodeAt(0).toString(16)+" "})}function gv(e,t,a,o,r,n,i,s){if(e.name="",i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"?e.type=i:e.removeAttribute("type"),t!=null)if(i==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Na(t)}else e.value!==""+Na(t)&&(e.value=""+Na(t));else i!=="submit"&&i!=="reset"||e.removeAttribute("value");t!=null?i==="number"&&e.value==t?Mx(e,Na(e.value)):Mx(e,Na(t)):a!=null?Mx(e,Na(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!=="function"&&typeof r!=="symbol"),s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?e.name=""+Na(s):e.removeAttribute("name")}function E_(e,t,a,o,r,n,i,s){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){hv(e);return}a=a!=null?""+Na(a):"",t=t!=null?""+Na(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:r,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"&&(e.name=i),hv(e)}function Mx(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function cl(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{a=""+Na(a),t=null;for(r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function N_(e,t,a){if(t!=null&&(t=""+Na(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Na(a):""}function A_(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(M(92));if(uc(o)){if(1<o.length)throw Error(M(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=Na(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),hv(e)}function wl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function zI(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||S4.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function M_(e,t,a){if(t!=null&&typeof t!=="object")throw Error(M(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",ve=!0);for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&(zI(e,r,o),ve=!0)}else for(var n in t)t.hasOwnProperty(n)&&zI(e,n,t[n])}function Sb(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}}function Hp(e){return C4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xo(){}function Lb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function BI(e){var t=Ml(e);if(t&&(e=t.stateNode)){var a=e[wa]||null;e:switch(e=t.stateNode,t.type){case"input":if(gv(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+eo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[wa]||null;if(!r)throw Error(M(90));gv(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&T_(o)}break e;case"textarea":N_(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&cl(e,!!a.multiple,t,!1)}}}function D_(e,t,a){if(Dx)return e(t,a);Dx=!0;try{var o=e(t);return o}finally{if(Dx=!1,el!==null||dl!==null){if(Ym(),el&&(t=el,e=dl,dl=el=null,BI(t),e))for(t=0;t<e.length;t++)BI(e[t])}}}function Nc(e,t){var a=e.stateNode;if(a===null)return null;var o=a[wa]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(M(231,t,typeof a));return a}function P_(){if(Up)return Up;var e,t=Cb,a=t.length,o,r="value"in kn?kn.value:kn.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(o=1;o<=i&&t[a-o]===r[n-o];o++);return Up=r.slice(e,1<o?1-o:void 0)}function Gp(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 Rp(){return!0}function FI(){return!1}function ta(e){function t(a,o,r,n,i){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Rp:FI,this.isPropagationStopped=FI,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Rp)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Rp)},persist:function(){},isPersistent:Rp}),t}function z4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=O4[e])?!!t[e]:!1}function kb(){return z4}function z_(e,t){switch(e){case"keyup":return W4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B_(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function J4(e,t){switch(e){case"compositionend":return B_(t);case"keypress":if(t.which!==32)return null;return $I=!0,qI;case"textInput":return e=t.data,e===qI&&$I?null:e;default:return null}}function eF(e,t){if(tl)return e==="compositionend"||!Ib&&z_(e,t)?(e=P_(),Up=Cb=kn=null,tl=!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 O_&&t.locale!=="ko"?null:t.data;default:return null}}function VI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tF[e.type]:t==="textarea"?!0:!1}function F_(e,t,a,o){el?dl?dl.push(o):dl=[o]:el=o,t=Nm(t,"onChange"),0<t.length&&(a=new zm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function aF(e){D2(e,0)}function Fm(e){var t=cc(e);if(T_(t))return e}function ZI(e,t){if(e==="change")return t}function KI(){xc&&(xc.detachEvent("onpropertychange",U_),Ac=xc=null)}function U_(e){if(e.propertyName==="value"&&Fm(Ac)){var t=[];F_(t,Ac,e,Lb(e)),D_(aF,t)}}function oF(e,t,a){e==="focusin"?(KI(),xc=t,Ac=a,xc.attachEvent("onpropertychange",U_)):e==="focusout"&&KI()}function rF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fm(Ac)}function nF(e,t){if(e==="click")return Fm(t)}function iF(e,t){if(e==="input"||e==="change")return Fm(t)}function sF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Mc(e,t){if(Fa(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!mv.call(t,r)||!Fa(e[r],t[r]))return!1}return!0}function vv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function XI(e,t){var a=jI(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=jI(a)}}function G_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?G_(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vv(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=vv(e.document)}return t}function Rb(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")}function YI(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wv||al==null||al!==vv(o)||(o=al,("selectionStart"in o)&&Rb(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vc&&Mc(vc,o)||(vc=o,o=Nm(bv,"onSelect"),0<o.length&&(t=new zm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=al)))}function Ei(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function Ji(e){if(Bx[e])return Bx[e];if(!ol[e])return e;var t=ol[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in $_)return Bx[e]=t[a];return e}function Co(e,t){X_.set(e,t),Qi(t,[e])}function Er(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Lo.identifierPrefix;var a=fF++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function WI(e){if(e==null||typeof e==="string")return e;var t=null,a=xl;if(a!==null)for(var o=0;o<a.length;o++){var r=e[a[o]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t==null?e.default:t}function Or(e,t){return e=WI(e),t=WI(t),t==null?e==="auto"?null:e:t==="auto"?null:t}function Hm(){for(var e=rl,t=_b=rl=0;t<e;){var a=Wa[t];Wa[t++]=null;var o=Wa[t];Wa[t++]=null;var r=Wa[t];Wa[t++]=null;var n=Wa[t];if(Wa[t++]=null,o!==null&&r!==null){var i=o.pending;i===null?r.next=r:(r.next=i.next,i.next=r),o.pending=r}n!==0&&Y_(a,r,n)}}function Um(e,t,a,o){Wa[rl++]=e,Wa[rl++]=t,Wa[rl++]=a,Wa[rl++]=o,_b|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Tb(e,t,a,o){return Um(e,t,a,o),dm(e)}function es(e,t){return Um(e,null,null,t),dm(e)}function Y_(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-za(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function dm(e){if(50<Tc)throw Tc=0,Jp=null,Error(M(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}function pF(e,t,a,o){this.tag=e,this.key=a,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xa(e,t,a,o){return new pF(e,t,a,o)}function Eb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rr(e,t){var a=e.alternate;return a===null?(a=xa(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function W_(e,t){e.flags&=1206910978;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $p(e,t,a,o,r,n){var i=0;if(o=e,typeof o==="function")Eb(o)&&(i=1);else if(typeof o==="string")i=F6(e,a,Qo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case uv:return e=xa(31,a,t,r),e.elementType=uv,e.lanes=n,e;case Qs:return Fi(a.children,r,n,t);case m_:i=8,r|=24;break;case iv:return e=xa(12,a,t,r|2),e.elementType=iv,e.lanes=n,e;case sv:return e=xa(13,a,t,r),e.elementType=sv,e.lanes=n,e;case lv:return e=xa(19,a,t,r),e.elementType=lv,e.lanes=n,e;case e4:case cv:return e=r|32,e=xa(30,a,t,e),e.elementType=cv,e.lanes=n,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o==="object"&&o!==null)switch(o.$$typeof){case jo:i=10;break e;case h_:i=9;break e;case yb:i=11;break e;case xb:i=14;break e;case wn:i=16,o=null;break e}i=29,a=Error(M(130,e===null?"null":typeof e,"")),o=null}return t=xa(i,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function Fi(e,t,a,o){return e=xa(7,e,o,t),e.lanes=a,e}function Fx(e,t,a){return e=xa(6,e,null,t),e.lanes=a,e}function Q_(e){var t=xa(18,null,null,0);return t.stateNode=e,t}function Hx(e,t,a){return t=xa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function to(e,t){if(typeof e==="object"&&e!==null){var a=QI.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:EI(t)},QI.set(e,t),t}return{value:e,source:t,stack:EI(t)}}function kr(e,t){il[sl++]=Dc,il[sl++]=fm,fm=e,Dc=t}function J_(e,t,a){Qa[Ja++]=Yo,Qa[Ja++]=Wo,Qa[Ja++]=Hn,Hn=e;var o=Yo;e=Wo;var r=32-za(o)-1;o&=~(1<<r),a+=1;var n=32-za(t)+r;if(30<n){var i=r-r%5;n=(o&(1<<i)-1).toString(32),o>>=i,r-=i,Yo=1<<32-za(t)+r|a<<r|o,Wo=n+e}else Yo=1<<n|a<<r|o,Wo=e}function Gm(e){e.return!==null&&(kr(e,1),J_(e,1,0))}function Nb(e){for(;e===fm;)fm=il[--sl],il[sl]=null,Dc=il[--sl],il[sl]=null;for(;e===Hn;)Hn=Qa[--Ja],Qa[Ja]=null,Wo=Qa[--Ja],Qa[Ja]=null,Yo=Qa[--Ja],Qa[Ja]=null}function eT(e,t){Qa[Ja++]=Yo,Qa[Ja++]=Wo,Qa[Ja++]=Hn,Yo=t.id,Wo=t.overflow,Hn=e}function Un(e){var t=Error(M(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pc(to(t,e)),Lv}function JI(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Dt]=e,t[wa]=o,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Fc.length;a++)pe(Fc[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),E_(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),A_(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||O2(t.textContent,a)?(o.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),o.onScroll!=null&&pe("scroll",t),o.onScrollEnd!=null&&pe("scrollend",t),o.onClick!=null&&(t.onclick=Xo),t=!0):t=!1,t||Un(e,!0)}function pm(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:ao=!1;return;case 27:case 3:ao=!0;return;default:Rt=Rt.return}}function Vs(e){if(e!==Rt)return!1;if(!le)return pm(e),le=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||ub(e.type,e.memoizedProps);a=!a}if(a&&He&&Un(e),pm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));He=KR(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));He=KR(e)}else t===27?(t=He,Zn(e.type)?(e=pb,pb=null,He=e):He=t):He=Rt?oo(e.stateNode.nextSibling):null;return!0}function qi(){He=Rt=null,le=!1}function Ux(){var e=Nn;return e!==null&&(ga===null?ga=e:ga.push.apply(ga,e),Nn=null),e}function Pc(e){Nn===null?Nn=[e]:Nn.push(e)}function In(e,t,a){Ue(Cv,t._currentValue),t._currentValue=a}function _r(e){e._currentValue=Cv.current,Ot(Cv)}function Vp(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function kv(e,t,a,o){var r=e.child;r!==null&&(r.return=e);for(;r!==null;){var n=r.dependencies;if(n!==null){var i=r.child;n=n.firstContext;e:for(;n!==null;){var s=n;n=r;for(var l=0;l<t.length;l++)if(s.context===t[l]){n.lanes|=a,s=n.alternate,s!==null&&(s.lanes|=a),Vp(n.return,a,e),o||(i=null);break e}n=s.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(M(341));i.lanes|=a,n=i.alternate,n!==null&&(n.lanes|=a),Vp(i,a,e),i=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,i=r.alternate,i!==null&&(i.lanes|=a),Vp(r.return,a,e),i=r.child,i=i!==null?i.sibling:null):i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function $i(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(M(387));if(i=i.memoizedProps,i!==null){var s=r.type;Fa(r.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(r===nm.current){if(i=r.alternate,i===null)throw Error(M(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Tl):e=[Tl])}r=r.return}return e!==null&&kv(t,e,a,o),t.flags|=262144,e!==null}function mm(e){for(e=e.firstContext;e!==null;){if(!Fa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vi(e){ts=e,Ir=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pt(e){return tT(ts,e)}function _p(e,t){return ts===null&&Vi(e),tT(e,t)}function tT(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ir===null){if(e===null)throw Error(M(308));Ir=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ir=Ir.next=t;return a}function Ab(){return{controller:new mF,data:new Map,refCount:0}}function Qc(e){e.refCount--,e.refCount===0&&hF(gF,function(){e.controller.abort()})}function eR(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;a===null&&(a=e.transitionTypes=[]);for(e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}function yF(e){var t=e.transitionTypes;return e.transitionTypes=null,t}function xF(e,t){if(bc===null){var a=bc=[];Iv=0,Zi=i0(),fl={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Iv++,t.then(tR,tR),t}function tR(){if(--Iv===0&&(pc=null,bc!==null)){fl!==null&&(fl.status="fulfilled");var e=bc;bc=null,Zi=0,fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vF(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){o.status="rejected",o.reason=r;for(r=0;r<a.length;r++)(0,a[r])(void 0)}),o}function Mb(){var e=Hi.current;return e!==null?e:Pe.pooledCache}function Zp(e,t){t===null?Ue(Hi,Hi.current):Ue(Hi,t.pool)}function aT(){var e=Mb();return e===null?null:{parent:lt._currentValue,pool:e}}function oR(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oT(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Xo,Xo),t=a),t.status){case"fulfilled":return t.value;case"rejected":if(e=t.reason,nR(e),e===void 0&&!("reason"in t))throw Error(M(600));throw e;default:if(typeof t.status==="string")t.then(Xo,Xo);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(M(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nR(e),e}throw Ui=t,Dl}}function Di(e){try{var t=e._init;return t(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw Ui=a,Dl;throw a}}function rR(){if(Ui===null)throw Error(M(459));var e=Ui;return Ui=null,e}function nR(e){if(e===Dl||e===qm)throw Error(M(483))}function Tp(e){var t=Oc;return Oc+=1,pl===null&&(pl=[]),oT(pl,e,t)}function xn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ep(e,t){if(t.$$typeof===J3)throw Error(M(525));throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rT(e){function t(h,x){if(e){var v=h.deletions;v===null?(h.deletions=[x],h.flags|=16):v.push(x)}}function a(h,x){if(!e)return null;for(;x!==null;)t(h,x),x=x.sibling;return null}function o(h){for(var x=new Map;h!==null;)h.key===null?x.set(h.index,h):x.set(h.key,h),h=h.sibling;return x}function r(h,x){return h=Rr(h,x),h.index=0,h.sibling=null,h}function n(h,x,v){if(h.index=v,!e)return h.flags|=1048576,x;if(v=h.alternate,v!==null)return v=v.index,v<x?(h.flags|=2,x):v;return h.flags|=134217730,x}function i(h){return e&&h.alternate===null&&(h.flags|=134217730),h}function s(h,x,v,w){if(x===null||x.tag!==6)return x=Fx(v,h.mode,w),x.return=h,x;return x=r(x,v),x.return=h,x}function l(h,x,v,w){var C=v.type;if(C===Qs)return h=d(h,x,v.props.children,w,v.key),xn(h,v),h;if(x!==null&&(x.elementType===C||typeof C==="object"&&C!==null&&C.$$typeof===wn&&Di(C)===x.type))return x=r(x,v.props),xn(x,v),x.return=h,x;return x=$p(v.type,v.key,v.props,null,h.mode,w),xn(x,v),x.return=h,x}function u(h,x,v,w){if(x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation)return x=Hx(v,h.mode,w),x.return=h,x;return x=r(x,v.children||[]),x.return=h,x}function d(h,x,v,w,C){if(x===null||x.tag!==7)return x=Fi(v,h.mode,w,C),x.return=h,x;return x=r(x,v),x.return=h,x}function m(h,x,v){if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return x=Fx(""+x,h.mode,v),x.return=h,x;if(typeof x==="object"&&x!==null){switch(x.$$typeof){case Sp:return v=$p(x.type,x.key,x.props,null,h.mode,v),xn(v,x),v.return=h,v;case lc:return x=Hx(x,h.mode,v),x.return=h,x;case wn:return x=Di(x),m(h,x,v)}if(uc(x)||oc(x))return x=Fi(x,h.mode,v,null),x.return=h,x;if(typeof x.then==="function")return m(h,Tp(x),v);if(x.$$typeof===jo)return m(h,_p(h,x),v);Ep(h,x)}return null}function p(h,x,v,w){var C=x!==null?x.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return C!==null?null:s(h,x,""+v,w);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case Sp:return v.key===C?l(h,x,v,w):null;case lc:return v.key===C?u(h,x,v,w):null;case wn:return v=Di(v),p(h,x,v,w)}if(uc(v)||oc(v))return C!==null?null:d(h,x,v,w,null);if(typeof v.then==="function")return p(h,x,Tp(v),w);if(v.$$typeof===jo)return p(h,x,_p(h,v),w);Ep(h,v)}return null}function f(h,x,v,w,C){if(typeof w==="string"&&w!==""||typeof w==="number"||typeof w==="bigint")return h=h.get(v)||null,s(x,h,""+w,C);if(typeof w==="object"&&w!==null){switch(w.$$typeof){case Sp:return h=h.get(w.key===null?v:w.key)||null,l(x,h,w,C);case lc:return h=h.get(w.key===null?v:w.key)||null,u(x,h,w,C);case wn:return w=Di(w),f(h,x,v,w,C)}if(uc(w)||oc(w))return h=h.get(v)||null,d(x,h,w,C,null);if(typeof w.then==="function")return f(h,x,v,Tp(w),C);if(w.$$typeof===jo)return f(h,x,v,_p(x,w),C);Ep(x,w)}return null}function g(h,x,v,w){for(var C=null,I=null,L=x,k=x=0,_=null;L!==null&&k<v.length;k++){L.index>k?(_=L,L=null):_=L.sibling;var T=p(h,L,v[k],w);if(T===null){L===null&&(L=_);break}e&&L&&T.alternate===null&&t(h,L),x=n(T,x,k),I===null?C=T:I.sibling=T,I=T,L=_}if(k===v.length)return a(h,L),le&&kr(h,k),C;if(L===null){for(;k<v.length;k++)L=m(h,v[k],w),L!==null&&(x=n(L,x,k),I===null?C=L:I.sibling=L,I=L);return le&&kr(h,k),C}for(L=o(L);k<v.length;k++)_=f(L,h,k,v[k],w),_!==null&&(e&&(T=_.alternate,T!==null&&L.delete(T.key===null?k:T.key)),x=n(_,x,k),I===null?C=_:I.sibling=_,I=_);return e&&L.forEach(function(O){return t(h,O)}),le&&kr(h,k),C}function y(h,x,v,w){if(v==null)throw Error(M(151));for(var C=null,I=null,L=x,k=x=0,_=null,T=v.next();L!==null&&!T.done;k++,T=v.next()){L.index>k?(_=L,L=null):_=L.sibling;var O=p(h,L,T.value,w);if(O===null){L===null&&(L=_);break}e&&L&&O.alternate===null&&t(h,L),x=n(O,x,k),I===null?C=O:I.sibling=O,I=O,L=_}if(T.done)return a(h,L),le&&kr(h,k),C;if(L===null){for(;!T.done;k++,T=v.next())T=m(h,T.value,w),T!==null&&(x=n(T,x,k),I===null?C=T:I.sibling=T,I=T);return le&&kr(h,k),C}for(L=o(L);!T.done;k++,T=v.next())T=f(L,h,k,T.value,w),T!==null&&(e&&(_=T.alternate,_!==null&&L.delete(_.key===null?k:_.key)),x=n(T,x,k),I===null?C=T:I.sibling=T,I=T);return e&&L.forEach(function(D){return t(h,D)}),le&&kr(h,k),C}function b(h,x,v,w){if(typeof v==="object"&&v!==null&&v.type===Qs&&v.key===null&&v.props.ref===void 0&&(v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case Sp:e:{for(var C=v.key;x!==null;){if(x.key===C){if(C=v.type,C===Qs){if(x.tag===7){a(h,x.sibling),w=r(x,v.props.children),xn(w,v),w.return=h,h=w;break e}}else if(x.elementType===C||typeof C==="object"&&C!==null&&C.$$typeof===wn&&Di(C)===x.type){a(h,x.sibling),w=r(x,v.props),xn(w,v),w.return=h,h=w;break e}a(h,x);break}else t(h,x);x=x.sibling}v.type===Qs?(w=Fi(v.props.children,h.mode,w,v.key),xn(w,v),w.return=h,h=w):(w=$p(v.type,v.key,v.props,null,h.mode,w),xn(w,v),w.return=h,h=w)}return i(h);case lc:e:{for(C=v.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){a(h,x.sibling),w=r(x,v.children||[]),w.return=h,h=w;break e}else{a(h,x);break}else t(h,x);x=x.sibling}w=Hx(v,h.mode,w),w.return=h,h=w}return i(h);case wn:return v=Di(v),b(h,x,v,w)}if(uc(v))return g(h,x,v,w);if(oc(v)){if(C=oc(v),typeof C!=="function")throw Error(M(150));return v=C.call(v),y(h,x,v,w)}if(typeof v.then==="function")return b(h,x,Tp(v),w);if(v.$$typeof===jo)return b(h,x,_p(h,v),w);Ep(h,v)}return typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint"?(v=""+v,x!==null&&x.tag===6?(a(h,x.sibling),w=r(x,v),w.return=h,h=w):(a(h,x),w=Fx(v,h.mode,w),w.return=h,h=w),i(h)):a(h,x)}return function(h,x,v,w){try{Oc=0;var C=b(h,x,v,w);return pl=null,C}catch(L){if(L===Dl||L===qm)throw L;var I=xa(29,L,null,h.mode);return I.lanes=w,I.return=h,I}finally{}}}function Pb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rv(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 An(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(we&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=dm(e),Y_(e,null,a),t}return Um(e,o,t,a),dm(e)}function wc(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,S_(e,a)}}function Gx(e,t){var{updateQueue:a,alternate:o}=e;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Sc(){if(_v){var e=fl;if(e!==null)throw e}}function Lc(e,t,a,o){_v=!1;var r=e.updateQueue;Sn=!1;var{firstBaseUpdate:n,lastBaseUpdate:i}=r,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?n=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(n!==null){var m=r.baseState;i=0,d=u=l=null,s=n;do{var p=s.lane&-536870913,f=p!==s.lane;if(f?(ge&p)===p:(o&p)===p){p!==0&&p===Zi&&(_v=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,y=s;p=t;var b=a;switch(y.tag){case 1:if(g=y.payload,typeof g==="function"){m=g.call(b,m,p);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g==="function"?g.call(b,m,p):g,p===null||p===void 0)break e;m=Oe({},m,p);break e;case 2:Sn=!0}}p=s.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[p]:f.push(p))}else f={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=f,l=m):d=d.next=f,i|=p;if(s=s.next,s===null)if(s=r.shared.pending,s===null)break;else f=s,s=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}while(1);d===null&&(l=m),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,n===null&&(r.shared.lanes=0),$n|=i,e.lanes=i,e.memoizedState=m}}function iT(e,t){if(typeof e!=="function")throw Error(M(191,e));e.call(t)}function sT(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)iT(a[e],t)}function iR(e,t){e=Dr,Ue(gm,e),Ue(Gn,t),Dr=e|t.baseLanes}function Tv(){Ue(gm,Dr),Ue(Gn,Gn.current)}function Ob(){Dr=gm.current,Ot(Gn),Ot(gm)}function Dn(e){var t=e.alternate;Ue(zt,zt.current&1),Ue(Ft,e),Vt===null&&(t===null||Gn.current!==null?Vt=e:t.memoizedState!==null&&(Vt=e))}function Ev(e){Ue(zt,zt.current),Ue(Ft,e),Vt===null&&(Vt=e)}function lT(e){e.tag===22?(Ue(zt,zt.current),Ue(Ft,e),Vt===null&&(Vt=e)):Pn()}function Pn(){Ue(zt,zt.current),Ue(Ft,Ft.current)}function Aa(e){Ot(Ft),Vt===e&&(Vt=null),Ot(zt)}function zc(e,t){Ue(Ft,Ft.current),Ue(zt,t)}function zb(e){Ot(zt),Ot(Ft),Vt===e&&(Vt=null)}function ym(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||fb(a)||c0(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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}function We(){throw Error(M(321))}function Bb(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Fa(e[a],t[a]))return!1;return!0}function Fb(e,t,a,o,r,n){return Nr=n,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?FT:HT,ji=!1,n=a(o,r),ji=!1,ml&&(n=cT(t,a,o,r)),uT(e),n}function uT(e){ae.H=bm;var t=Ne!==null&&Ne.next!==null;if(Nr=0,st=Ne=re=null,xm=!1,Bc=0,hl=null,t)throw Error(M(300));e===null||ut||(e=e.dependencies,e!==null&&mm(e)&&(ut=!0))}function cT(e,t,a,o){re=e;var r=0;do{if(ml&&(hl=null),Bc=0,ml=!1,25<=r)throw Error(M(301));if(r+=1,st=Ne=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}ae.H=_F,n=t(a,o)}while(ml);return n}function wF(){var e=ae.H,t=e.useState()[0];return t=typeof t.then==="function"?Jc(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(re.flags|=1024),t}function Hb(){var e=vm!==0;return vm=0,e}function Ub(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Gb(e){if(xm){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xm=!1}Nr=0,st=Ne=re=null,ml=!1,Bc=vm=0,hl=null}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?re.memoizedState=st=e:st=st.next=e,st}function ot(){if(Ne===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=st===null?re.memoizedState:st.next;if(t!==null)st=t,Ne=e;else{if(e===null){if(re.alternate===null)throw Error(M(467));throw Error(M(310))}Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},st===null?re.memoizedState=st=e:st=st.next=e}return st}function $m(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jc(e){var t=Bc;return Bc+=1,hl===null&&(hl=[]),e=oT(hl,e,t),t=re,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?FT:HT),e}function Vm(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Jc(e);if(e.$$typeof===a4)return;if(e.$$typeof===jo)return Pt(e)}throw Error(M(438,String(e)))}function qb(e){var t=null,a=re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=re.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=$m(),re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=t4;return t.index++,a}function Ar(e,t){return typeof t==="function"?t(e):t}function Kp(e){var t=ot();return $b(t,Ne,e)}function $b(e,t,a){var o=e.queue;if(o===null)throw Error(M(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var i=r.next;r.next=n.next,n.next=i}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var s=i=null,l=null,u=t,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(ge&m)===m:(Nr&m)===m){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===Zi&&(d=!0);else if((Nr&p)===p){u=u.next,p===Zi&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=m,i=n):l=l.next=m,re.lanes|=p,$n|=p;m=u.action,ji&&a(n,m),n=u.hasEagerState?u.eagerState:a(n,m)}else p={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=p,i=n):l=l.next=p,re.lanes|=m,$n|=m;u=u.next}while(u!==null&&u!==t);if(l===null?i=n:l.next=s,!Fa(n,e.memoizedState)&&(ut=!0,d&&(a=fl,a!==null)))throw a;e.memoizedState=n,e.baseState=i,e.baseQueue=l,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function qx(e){var t=ot(),a=t.queue;if(a===null)throw Error(M(311));a.lastRenderedReducer=e;var{dispatch:o,pending:r}=a,n=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do n=e(n,i.action),i=i.next;while(i!==r);Fa(n,t.memoizedState)||(ut=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function dT(e,t,a){var o=re,r=ot(),n=le;if(n){if(a===void 0)throw Error(M(407));a=a()}else a=t();var i=!Fa((Ne||r).memoizedState,a);if(i&&(r.memoizedState=a,ut=!0),r=r.queue,Vb(mT.bind(null,o,r,e),[e]),e=r.getSnapshot!==t||i||st!==null&&(st.memoizedState.tag&1)!==0,Sl(e?9:8,{destroy:void 0},pT.bind(null,o,r,a,t),null),e){if(o.flags|=2048,Pe===null)throw Error(M(349));n||(Nr&127)!==0||fT(o,t,a)}return a}function fT(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=re.updateQueue,t===null?(t=$m(),re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function pT(e,t,a,o){t.value=a,t.getSnapshot=o,hT(t)&&gT(e)}function mT(e,t,a){return a(function(){hT(t)&&gT(e)})}function hT(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Fa(e,a)}catch(o){return!0}}function gT(e){var t=es(e,2);t!==null&&va(t,e,2)}function Nv(e){var t=ea();if(typeof e==="function"){var a=e;if(e=a(),ji){Cn(!0);try{a()}finally{Cn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},t}function yT(e,t,a,o){return e.baseState=a,$b(e,Ne,typeof o==="function"?o:Ar)}function SF(e,t,a,o,r){if(Km(e))throw Error(M(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};ae.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,xT(t,n)):(n.next=a.next,t.pending=a.next=n)}}function xT(e,t){var{action:a,payload:o}=t,r=e.state;if(t.isTransition){var n=ae.T,i={};i.types=n!==null?n.types:null,ae.T=i;try{var s=a(r,o),l=ae.S;l!==null&&l(i,s),sR(e,t,s)}catch(u){Av(e,t,u)}finally{n!==null&&i.types!==null&&(n.types=i.types),ae.T=n}}else try{n=a(r,o),sR(e,t,n)}catch(u){Av(e,t,u)}}function sR(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(o){lR(e,t,o)},function(o){return Av(e,t,o)}):lR(e,t,a)}function lR(e,t,a){t.status="fulfilled",t.value=a,vT(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,xT(e,a)))}function Av(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,vT(t),t=t.next;while(t!==o)}e.action=null}function vT(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bT(e,t){return t}function uR(e,t){if(le){var a=Pe.formState;if(a!==null){e:{var o=re;if(le){if(He){t:{var r=He;for(var n=ao;r.nodeType!==8;){if(!n){r=null;break t}if(r=oo(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){He=oo(r.nextSibling),o=r.data==="F!";break e}}Un(o)}o=!1}o&&(t=a[0])}}return a=ea(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bT,lastRenderedState:t},a.queue=o,a=OT.bind(null,re,o),o.dispatch=a,o=Nv(!1),n=Xb.bind(null,re,!1,o.queue),o=ea(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=SF.bind(null,re,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function cR(e){var t=ot();return wT(t,Ne,e)}function wT(e,t,a){if(t=$b(e,t,bT)[0],e=Kp(Ar)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Jc(t)}catch(i){if(i===Dl)throw qm;throw i}else o=t;t=ot();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(re.flags|=2048,Sl(9,{destroy:void 0},LF.bind(null,r,a),null)),[o,n,e]}function LF(e,t){e.action=t}function dR(e){var t=ot(),a=Ne;if(a!==null)return wT(t,a,e);ot(),t=t.memoizedState,a=ot();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Sl(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=re.updateQueue,t===null&&(t=$m(),re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function ST(){return ot().memoizedState}function jp(e,t,a,o){var r=ea();re.flags|=e,r.memoizedState=Sl(1|t,{destroy:void 0},a,o===void 0?null:o)}function Zm(e,t,a,o){var r=ot();o=o===void 0?null:o;var n=r.memoizedState.inst;Ne!==null&&o!==null&&Bb(o,Ne.memoizedState.deps)?r.memoizedState=Sl(t,n,a,o):(re.flags|=e,r.memoizedState=Sl(1|t,n,a,o))}function fR(e,t){jp(8390656,8,e,t)}function Vb(e,t){Zm(2048,8,e,t)}function CF(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=$m(),re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function LT(e){var t=ot().memoizedState;return CF({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(M(440));return t.impl.apply(void 0,arguments)}}function CT(e,t){return Zm(4,2,e,t)}function kT(e,t){return Zm(4,4,e,t)}function IT(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return e=e(),t.current=e,function(){t.current=null}}function RT(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,Zm(4,4,IT.bind(null,t,e),a)}function Zb(){}function _T(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Bb(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function TT(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Bb(t,o[1]))return o[0];if(o=e(),ji){Cn(!0);try{e()}finally{Cn(!1)}}return a.memoizedState=[o,t],o}function Kb(e,t,a){if(a===void 0||(Nr&1073741824)!==0&&(ge&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=w2(),re.lanes|=e,$n|=e,a}function ET(e,t,a,o){if(Fa(a,t))return a;if(Gn.current!==null)return e=Kb(e,a,o),Fa(e,t)||(ut=!0),e;if((Nr&106)===0||(Nr&1073741824)!==0&&(ge&261930)===0)return ut=!0,e.memoizedState=a;return e=w2(),re.lanes|=e,$n|=e,t}function NT(e,t,a,o,r){var n=Se.p;Se.p=n!==0&&8>n?n:8;var i=ae.T,s={};s.types=i!==null?i.types:null,ae.T=s,Xb(e,!1,t,a);try{var l=r(),u=ae.S;if(u!==null&&u(s,l),l!==null&&typeof l==="object"&&typeof l.then==="function"){var d=vF(l,o);Cc(e,t,d,Ba(e))}else Cc(e,t,o,Ba(e))}catch(m){Cc(e,t,{then:function(){},status:"rejected",reason:m},Ba())}finally{Se.p=n,i!==null&&s.types!==null&&(i.types=s.types),ae.T=i}}function kF(){}function Mv(e,t,a,o){if(e.tag!==5)throw Error(M(476));var r=AT(e).queue;NT(e,r,t,Bi,a===null?kF:function(){return MT(e),a(o)})}function AT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Bi,baseState:Bi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:Bi},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function MT(e){var t=AT(e);t.next===null&&(t=e.alternate.memoizedState),Cc(e,t.next.queue,{},Ba())}function jb(){return Pt(Tl)}function DT(){return ot().memoizedState}function PT(){return ot().memoizedState}function IF(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ba();e=An(a);var o=Mn(t,e,a);o!==null&&(va(o,t,a),wc(o,t,a)),t={cache:Ab()},e.payload=t;return}t=t.return}}function RF(e,t,a){var o=Ba();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Km(e)?zT(t,a):(a=Tb(e,t,a,o),a!==null&&(va(a,e,o),BT(a,t,o)))}function OT(e,t,a){var o=Ba();Cc(e,t,a,o)}function Cc(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Km(e))zT(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,s=n(i,a);if(r.hasEagerState=!0,r.eagerState=s,Fa(s,i))return Um(e,t,r,0),Pe===null&&Hm(),!1}catch(l){}finally{}if(a=Tb(e,t,r,o),a!==null)return va(a,e,o),BT(a,t,o),!0}return!1}function Xb(e,t,a,o){if(o={lane:2,revertLane:i0(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Km(e)){if(t)throw Error(M(479))}else t=Tb(e,a,o,2),t!==null&&va(t,e,2)}function Km(e){var t=e.alternate;return e===re||t!==null&&t===re}function zT(e,t){ml=xm=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function BT(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,S_(e,a)}}function $x(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a===null||a===void 0?t:Oe({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}function pR(e,t,a,o,r,n,i){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(o,n,i):t.prototype&&t.prototype.isPureReactComponent?!Mc(a,o)||!Mc(r,n):!0}function mR(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&Dv.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Oe({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function UT(e){cm(e)}function GT(e){console.error(e)}function qT(e){cm(e)}function wm(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function hR(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Pv(e,t,a){return a=An(a),a.tag=3,a.payload={element:null},a.callback=function(){wm(e,t)},a}function $T(e){return e=An(e),e.tag=3,e}function VT(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r==="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){hR(t,a,o)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch==="function"&&(e.callback=function(){hR(t,a,o),typeof r!=="function"&&(On===null?On=new Set([this]):On.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function TF(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&$i(t,a,r,!0),a=Ft.current,a!==null){switch(a.tag){case 31:case 13:case 19:return Vt===null?Tm():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===hm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Wx(e,o,r)),!1;case 22:return a.flags|=65536,o===hm?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Wx(e,o,r)),!1}throw Error(M(435,a.tag))}return Wx(e,o,r),Tm(),!1}if(le)return t=Ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==Lv&&(e=Error(M(422),{cause:o}),Pc(to(e,a)))):(o!==Lv&&(t=Error(M(423),{cause:o}),Pc(to(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=to(o,a),r=Pv(e.stateNode,o,r),Gx(e,r),Qe!==4&&(Qe=2)),!1;var n=Error(M(520),{cause:o});if(n=to(n,a),_c===null?_c=[n]:_c.push(n),Qe!==4&&(Qe=2),t===null)return!0;o=to(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Pv(a.stateNode,o,e),Gx(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(On===null||!On.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=$T(r),VT(r,e,a,o),Gx(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}function gt(e,t,a,o){t.child=e===null?nT(t,null,a,o):Ki(t,e.child,a,o)}function gR(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var i={};for(var s in o)s!=="ref"&&(i[s]=o[s])}else i=o;if(Vi(t),o=Fb(e,t,a,i,n,r),s=Hb(),e!==null&&!ut)return Ub(e,t,r),Mr(e,t,r);return le&&s&&Gm(t),t.flags|=1,gt(e,t,o,r),t.child}function yR(e,t,a,o,r){if(e===null){var n=a.type;if(typeof n==="function"&&!Eb(n)&&n.defaultProps===void 0&&a.compare===null)return t.tag=15,t.type=n,ZT(e,t,n,o,r);return e=$p(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!Qb(e,r)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:Mc,a(i,o)&&e.ref===t.ref)return Mr(e,t,r)}return t.flags|=1,e=Rr(n,o),e.ref=t.ref,e.return=t,t.child=e}function ZT(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(Mc(n,o)&&e.ref===t.ref)if(ut=!1,t.pendingProps=o=n,Qb(e,r))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,Mr(e,t,r)}return Ov(e,t,a,o,r)}function KT(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return xR(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zp(t,n!==null?n.cachePool:null),n!==null?iR(t,n):Tv(),lT(t);else return o=t.lanes=536870912,xR(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(Zp(t,n.cachePool),iR(t,n),Pn(),t.memoizedState=null):(e!==null&&Zp(t,null),Tv(),Pn());return gt(e,t,r,a),t.child}function kc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function xR(e,t,a,o,r){var n=Mb();return n=n===null?null:{parent:lt._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Zp(t,null),Tv(),lT(t),e!==null&&$i(e,t,o,!0),t.childLanes=r,null}function Xp(e,t){return t=jm({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function vR(e,t,a){return Ki(t,e.child,null,a),e=Xp(t,t.pendingProps),e.flags|=2,Aa(t),t.memoizedState=null,e}function EF(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(le){if(o.mode==="hidden")return e=Xp(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},kc(null,e);if(Ev(t),(e=He)?(e=K2(e,ao),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:Yo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},a=Q_(e),a.return=t,t.child=a,Rt=t,He=null)):e=null,e===null)throw Un(t);return t.lanes=536870912,null}return Xp(t,o)}var n=e.memoizedState;if(n!==null){var i=n.dehydrated;if(Ev(t),r)if(t.flags&256)t.flags&=-257,t=vR(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(M(558));else if(ut||$i(e,t,a,!1),r=(a&e.childLanes)!==0,ut||r){if(Gn.current===null){if(o=Pe,o!==null&&(i=L_(o,a),i!==0&&i!==n.retryLane))throw n.retryLane=i,es(e,i),va(o,e,i),Yb;Tm()}t=vR(e,t,a)}else e=n.treeContext,He=oo(i.nextSibling),Rt=t,le=!0,Nn=null,ao=!1,e!==null&&eT(t,e),t=Xp(t,o),t.flags|=134221824;return t}return e=Rr(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ks(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(M(284));if(e===null||e.ref!==a)t.flags|=4194816}}function Ov(e,t,a,o,r){if(Vi(t),a=Fb(e,t,a,o,void 0,r),o=Hb(),e!==null&&!ut)return Ub(e,t,r),Mr(e,t,r);return le&&o&&Gm(t),t.flags|=1,gt(e,t,a,r),t.child}function bR(e,t,a,o,r,n){if(Vi(t),t.updateQueue=null,a=cT(t,o,a,r),uT(e),o=Hb(),e!==null&&!ut)return Ub(e,t,n),Mr(e,t,n);return le&&o&&Gm(t),t.flags|=1,gt(e,t,a,n),t.child}function wR(e,t,a,o,r){if(Vi(t),t.stateNode===null){var n=nl,i=a.contextType;typeof i==="object"&&i!==null&&(n=Pt(i)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Dv,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},Pb(t),i=a.contextType,n.context=typeof i==="object"&&i!==null?Pt(i):nl,n.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i==="function"&&($x(t,a,i,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(i=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&Dv.enqueueReplaceState(n,n.state,null),Lc(t,o,n,r),Sc(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var s=t.memoizedProps,l=Xi(a,s);n.props=l;var u=n.context,d=a.contextType;i=nl,typeof d==="object"&&d!==null&&(i=Pt(d));var m=a.getDerivedStateFromProps;d=typeof m==="function"||typeof n.getSnapshotBeforeUpdate==="function",s=t.pendingProps!==s,d||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s||u!==i)&&mR(t,n,o,i),Sn=!1;var p=t.memoizedState;n.state=p,Lc(t,o,n,r),Sc(),u=t.memoizedState,s||p!==u||Sn?(typeof m==="function"&&($x(t,a,m,o),u=t.memoizedState),(l=Sn||pR(t,a,l,o,p,u,i))?(d||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),n.props=o,n.state=u,n.context=i,o=l):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,Rv(e,t),i=t.memoizedProps,d=Xi(a,i),n.props=d,m=t.pendingProps,p=n.context,u=a.contextType,l=nl,typeof u==="object"&&u!==null&&(l=Pt(u)),s=a.getDerivedStateFromProps,(u=typeof s==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(i!==m||p!==l)&&mR(t,n,o,l),Sn=!1,p=t.memoizedState,n.state=p,Lc(t,o,n,r),Sc();var f=t.memoizedState;i!==m||p!==f||Sn||e!==null&&e.dependencies!==null&&mm(e.dependencies)?(typeof s==="function"&&($x(t,a,s,o),f=t.memoizedState),(d=Sn||pR(t,a,d,o,p,f,l)||e!==null&&e.dependencies!==null&&mm(e.dependencies))?(u||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,f,l),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,f,l)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),n.props=o,n.state=f,n.context=l,o=d):(typeof n.componentDidUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,Ks(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!=="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=Ki(t,e.child,null,r),t.child=Ki(t,null,a,r)):gt(e,t,a,r),t.memoizedState=n.state,e=t.child):e=Mr(e,t,r),e}function SR(e,t,a,o){return qi(),t.flags|=256,gt(e,t,a,o),t.child}function Bv(e){return{baseLanes:e,cachePool:aT()}}function Fv(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Da),e}function jT(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=e!==null&&e.memoizedState===null?!1:(zt.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(le){if(r?Dn(t):Pn(),(e=He)?(e=K2(e,ao),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:Yo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},a=Q_(e),a.return=t,t.child=a,Rt=t,He=null)):e=null,e===null)throw Un(t);return c0(e)?t.lanes=32:t.lanes=536870912,null}if(n=o.children,o=o.fallback,r)return Pn(),r=t.mode,n=jm({mode:"hidden",children:n},r),o=Fi(o,r,a,null),n.return=t,o.return=t,n.sibling=o,t.child=n,o=t.child,o.memoizedState=Bv(a),o.childLanes=Fv(e,i,a),t.memoizedState=zv,kc(null,o);return Dn(t),Wb(t,n)}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return NF(e,t,n,i,o,l,s,a)}if(r)return Pn(),r=o.fallback,n=t.mode,s=e.child,l=s.sibling,o=Rr(s,{mode:"hidden",children:o.children}),o.subtreeFlags=s.subtreeFlags&1206910976,l!==null?r=Rr(l,r):(r=Fi(r,n,a,null),r.flags|=2),r.return=t,o.return=t,o.sibling=r,t.child=o,kc(null,o),o=t.child,r=e.child.memoizedState,r===null?r=Bv(a):(n=r.cachePool,n!==null?(s=lt._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=aT(),r={baseLanes:r.baseLanes|a,cachePool:n}),o.memoizedState=r,o.childLanes=Fv(e,i,a),t.memoizedState=zv,kc(e.child,o);return Dn(t),a=e.child,e=a.sibling,a=Rr(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a}function Wb(e,t){return t=jm({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jm(e,t){return e=xa(22,e,null,t),e.lanes=0,e}function Np(e,t,a){return Ki(t,e.child,null,a),e=Wb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NF(e,t,a,o,r,n,i,s){if(a){if(t.flags&256)return Dn(t),t.flags&=-257,Np(e,t,s);if(t.memoizedState!==null)return Pn(),t.child=e.child,t.flags|=128,null;return Pn(),n=r.fallback,i=t.mode,r=jm({mode:"visible",children:r.children},i),n=Fi(n,i,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,Ki(t,e.child,null,s),r=t.child,r.memoizedState=Bv(s),r.childLanes=Fv(e,o,s),t.memoizedState=zv,kc(null,r)}if(Dn(t),c0(n)){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,o!==""&&(r=Error(M(419)),r.stack="",r.digest=o,Pc({value:r,source:null,stack:null})),Np(e,t,s)}if(ut||$i(e,t,s,!1),o=(s&e.childLanes)!==0,ut||o){if(Gn.current!==null)return Np(e,t,s);if(o=Pe,o!==null&&(r=L_(o,s),r!==0&&r!==i.retryLane))throw i.retryLane=r,es(e,r),va(o,e,r),Yb;return fb(n)||Tm(),Np(e,t,s)}if(fb(n))return t.flags|=192,t.child=e.child,null;return e=i.treeContext,He=oo(n.nextSibling),Rt=t,le=!0,Nn=null,ao=!1,e!==null&&eT(t,e),t=Wb(t,r.children),t.flags|=134221824,t}function LR(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Vp(e.return,t,a)}function CR(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&ym(a)===null&&(t=e),e=e.sibling}return t}function Ap(e,t,a,o,r,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=a,i.tailMode=r,i.treeForkCount=n)}function Vx(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Hv(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var i=zt.current;if(t.flags&128)return zc(t,i),null;var s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,zc(t,i),r==="backwards"&&e!==null?(Vx(e),gt(e,t,o,a),Vx(e)):gt(e,t,o,a),o=le?Dc:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&LR(e,a,t);else if(e.tag===19)LR(e,a,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(r){case"backwards":a=CR(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null,Vx(t)),Ap(t,!0,r,null,n,o);break;case"unstable_legacy-backwards":a=null,r=t.child;for(t.child=null;r!==null;){if(e=r.alternate,e!==null&&ym(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Ap(t,!0,a,null,n,o);break;case"together":Ap(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=CR(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Ap(t,!1,r,a,n,o)}return t.child}function kR(e,t,a){var o=t.pendingProps;return In(t,t.type,o.value),gt(e,t,o.children,a),t.child}function Mr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$n|=t.lanes,(a&t.childLanes)===0)if(e!==null){if($i(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){e=t.child,a=Rr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Rr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Qb(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&mm(e)?!0:!1}function AF(e,t,a){switch(t.tag){case 3:im(t,t.stateNode.containerInfo),In(t,lt,e.memoizedState.cache),qi();break;case 27:case 5:pv(t);break;case 4:im(t,t.stateNode.containerInfo);break;case 10:In(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ev(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return Dn(t),t.flags|=128,null;o=$i(e,t,a,!1);var r=t.child.childLanes;if(o||(a&r)!==0)return jT(e,t,a);return Dn(t),e=Mr(e,t,a),e!==null?e.sibling:null}Dn(t);break;case 19:if(t.flags&128)return Hv(e,t,a);if(r=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||($i(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return Hv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),zc(t,zt.current),o)break;else return null;case 22:return t.lanes=0,KT(e,t,a,t.pendingProps);case 24:In(t,lt,e.memoizedState.cache)}return Mr(e,t,a)}function XT(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!Qb(e,a)&&(t.flags&128)===0)return ut=!1,AF(e,t,a);ut=(e.flags&131072)!==0?!0:!1}else ut=!1,le&&(t.flags&1048576)!==0&&J_(t,Dc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Di(t.elementType),t.type=e,typeof e==="function")Eb(e)?(o=Xi(e,o),t.tag=1,t=wR(null,t,e,o,a)):(t.tag=0,t=Ov(null,t,e,o,a));else{if(e!==void 0&&e!==null){var r=e.$$typeof;if(r===yb){t.tag=11,t=gR(null,t,e,o,a);break e}else if(r===xb){t.tag=14,t=yR(null,t,e,o,a);break e}else if(r===jo){t.tag=10,t.type=e,t=kR(null,t,a);break e}}throw t=dv(e)||e,Error(M(306,t,""))}}return t;case 0:return Ov(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=Xi(o,t.pendingProps),wR(e,t,o,r,a);case 3:e:{if(im(t,t.stateNode.containerInfo),e===null)throw Error(M(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,Rv(e,t),Lc(t,o,null,a);var i=t.memoizedState;if(o=i.cache,In(t,lt,o),o!==n.cache&&kv(t,[lt],a,!0),Sc(),o=i.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=SR(e,t,o,a);break e}else if(o!==r){r=to(Error(M(424)),t),Pc(r),t=SR(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}He=oo(e.firstChild),Rt=t,le=!0,Nn=null,ao=!0,a=nT(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(qi(),o===r){t=Mr(e,t,a);break e}gt(e,t,o,a)}t=t.child}return t;case 26:return Ks(e,t),e===null?(a=YR(t.type,null,t.pendingProps,null))?t.memoizedState=a:le||(t.stateNode=B2(t.type,t.pendingProps,En.current,t)):t.memoizedState=YR(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pv(t),e===null&&le&&(o=t.stateNode=j2(t.type,t.pendingProps,En.current),Rt=t,ao=!0,r=He,Zn(t.type)?(pb=r,He=oo(o.firstChild)):He=r),gt(e,t,t.pendingProps.children,a),Ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:if(e===null&&le){if(r=o=He)o=C6(o,t.type,t.pendingProps,ao),o!==null?(t.stateNode=o,Rt=t,He=oo(o.firstChild),ao=!1,r=!0):r=!1;r||Un(t)}return pv(t),r=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,o=n.children,ub(r,n)?o=null:i!==null&&ub(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=Fb(e,t,wF,null,null,a),Tl._currentValue=r),Ks(e,t),gt(e,t,o,a),t.child;case 6:if(e===null&&le){if(e=a=He)a=k6(a,t.pendingProps,ao),a!==null?(t.stateNode=a,Rt=t,He=null,e=!0):e=!1;e||Un(t)}return null;case 13:return jT(e,t,a);case 4:return im(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ki(t,null,o,a):gt(e,t,o,a),t.child;case 11:return gR(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,Ks(e,t),gt(e,t,o,a),t.child;case 8:return gt(e,t,t.pendingProps.children,a),t.child;case 12:return gt(e,t,t.pendingProps.children,a),t.child;case 10:return kR(e,t,a);case 9:return r=t.type._context,o=t.pendingProps.children,Vi(t),r=Pt(r),o=o(r),t.flags|=1,gt(e,t,o,a),t.child;case 14:return yR(e,t,t.type,t.pendingProps,a);case 15:return ZT(e,t,t.type,t.pendingProps,a);case 19:return Hv(e,t,a);case 31:return EF(e,t,a);case 22:return KT(e,t,a,t.pendingProps);case 24:return Vi(t),o=Pt(lt),e===null?(r=Mb(),r===null&&(r=Pe,n=Ab(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},Pb(t),In(t,lt,r)):((e.lanes&a)!==0&&(Rv(e,t),Lc(t,null,null,a),Sc()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),In(t,lt,o)):(o=n.cache,In(t,lt,o),o!==r.cache&&kv(t,[lt],a,!0))),gt(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:le&&Gm(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:Ks(e,t),gt(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(M(156,t.tag))}function Cr(e){e.flags|=4}function Zx(e,t,a,o,r){var n;if(n=(e.mode&32)!==0)n=a===null?JR(t,o):JR(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet);if(n){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(C2())e.flags|=8192;else throw Ui=hm,Db}else e.flags&=-16777217}function IR(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Q2(t))if(C2())e.flags|=8192;else throw Ui=hm,Db}function Mp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?b_():536870912,e.lanes|=t,Ll|=t)}function nc(e,t){if(!le)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:t=e.tail;for(a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&1206910976,o|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function MF(e,t,a){var o=t.pendingProps;switch(Nb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),_r(lt),vl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Vs(t)?Cr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ux());return Fe(t),null;case 26:var{type:r,memoizedState:n}=t;return e===null?(Cr(t),n!==null?(Fe(t),IR(t,n)):(Fe(t),Zx(t,r,null,o,a))):n?n!==e.memoizedState?(Cr(t),Fe(t),IR(t,n)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Cr(t),Fe(t),Zx(t,r,e,o,a)),null;case 27:if(sm(t),a=En.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Cr(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return Fe(t),t.subtreeFlags&=-33554433,null}e=Qo.current,Vs(t)?JI(t,e):(e=j2(r,o,a),t.stateNode=e,Cr(t))}return Fe(t),t.subtreeFlags&=-33554433,null;case 5:if(sm(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Cr(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return Fe(t),t.subtreeFlags&=-33554433,null}if(n=Qo.current,Vs(t))JI(t,n);else{var i=Uc(En.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?i.createElement(r,{is:o.is}):i.createElement(r)}}n[Dt]=t,n[wa]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;e:switch(Bt(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Cr(t)}}return Fe(t),t.subtreeFlags&=-33554433,Zx(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Cr(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error(M(166));if(e=En.current,Vs(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Rt,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Dt]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||O2(e.nodeValue,a)?!0:!1,e||Un(t,!0)}else e=Uc(e).createTextNode(o),e[Dt]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Vs(t),a!==null){if(e===null){if(!o)throw Error(M(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(557));e[Dt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=Ux(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Aa(t),t;return Aa(t),null}if((t.flags&128)!==0)throw Error(M(558))}return Fe(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Vs(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(M(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(M(317));r[Dt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),r=!1}else r=Ux(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r){if(t.flags&256)return Aa(t),t;return Aa(t),null}}if(Aa(t),(t.flags&128)!==0)return t.lanes=a,t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Mp(t,t.updateQueue),Fe(t),null;case 4:return vl(),e===null&&s0(t.stateNode.containerInfo),t.flags|=67108864,Fe(t),null;case 10:return _r(t.type),Fe(t),null;case 19:if(zb(t),o=t.memoizedState,o===null)return Fe(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)nc(o,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=ym(e),n!==null){t.flags|=128,nc(o,!1),e=n.updateQueue,t.updateQueue=e,Mp(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)W_(a,e),a=a.sibling;return zc(t,zt.current&1|2),le&&kr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Pa()>Rm&&(t.flags|=128,r=!0,nc(o,!1),t.lanes=4194304)}else{if(!r)if(e=ym(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Mp(t,e),nc(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!n.alternate&&!le)return Fe(t),null}else 2*Pa()-o.renderingStartTime>Rm&&a!==536870912&&(t.flags|=128,r=!0,nc(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Pa(),e.sibling=null,n=zt.current,n=r?n&1|2:n&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||le?zc(t,n):(a=n,Ue(Ft,t),Ue(zt,a),Vt===null&&(Vt=t)),le&&kr(t,o.treeForkCount),e}return Fe(t),null;case 22:case 23:return Aa(t),Ob(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Mp(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ot(Hi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_r(lt),Fe(t),null;case 25:return null;case 30:return t.flags|=33554432,Fe(t),null}throw Error(M(156,t.tag))}function DF(e,t){switch(Nb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _r(lt),vl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return sm(t),null;case 31:if(t.memoizedState!==null){if(Aa(t),t.alternate===null)throw Error(M(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zb(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return vl(),null;case 10:return _r(t.type),null;case 22:case 23:return Aa(t),Ob(),e!==null&&Ot(Hi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _r(lt),null;case 25:return null;default:return null}}function YT(e,t){switch(Nb(t),t.tag){case 3:_r(lt),vl();break;case 26:case 27:case 5:sm(t);break;case 4:vl();break;case 31:t.memoizedState!==null&&Aa(t);break;case 13:Aa(t);break;case 19:zb(t);break;case 10:_r(t.type);break;case 22:case 23:Aa(t),Ob(),e!==null&&Ot(Hi);break;case 24:_r(lt)}}function ed(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var{create:n,inst:i}=a;o=n(),i.destroy=o}a=a.next}while(a!==r)}}catch(s){Ee(t,t.return,s)}}function qn(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var i=o.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,r=t;var l=a,u=s;try{u()}catch(d){Ee(r,l,d)}}}o=o.next}while(o!==n)}}catch(d){Ee(t,t.return,d)}}function WT(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{sT(t,a)}catch(o){Ee(e,e.return,o)}}}function QT(e,t,a){a.props=Xi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Ee(e,t,o)}}function Zo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var r=e.stateNode,n=Er(e.memoizedProps,r);if(r.ref===null||r.ref.name!==n)r.ref=G2(n);o=r.ref;break;case 7:if(e.stateNode===null){var i=new Ha(e);ba(e.child,!1,S6,i,void 0,void 0),e.stateNode=i}o=e.stateNode;break;default:o=e.stateNode}typeof a==="function"?e.refCleanup=a(o):a.current=o}}catch(s){Ee(e,t,s)}}function Mt(e,t){var{ref:a,refCleanup:o}=e;if(a!==null)if(typeof o==="function")try{o()}catch(r){Ee(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(r){Ee(e,t,r)}else a.current=null}function Sm(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)Z2(e.stateNode,t[a])}function RR(e){for(var t=e.return;t!==null;){if(e0(t)&&Z2(e.stateNode,t.stateNode),Jb(t))break;t=t.return}}function Ic(e){for(var t=e.return;t!==null;){if(e0(t)&&L6(e.stateNode,t.stateNode),Jb(t))break;t=t.return}}function Jb(e){return e.tag===5||e.tag===3||e.tag===27}function e0(e){return e&&e.tag===7&&e.stateNode!==null}function Uv(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){Ee(e,e.return,r)}}function Kx(e,t,a){try{var o=e.stateNode;r6(o,e.type,a,t),o[wa]=t}catch(r){Ee(e,e.return,r)}}function JT(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zn(e.type)||e.tag===4}function jx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||JT(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zn(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gv(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(r),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Xo)),Sm(e,o),ve=!0;else if(r!==4&&(r===27&&(Sm(e,o),o=null,Zn(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(Gv(e,t,a,o),e=e.sibling;e!==null;)Gv(e,t,a,o),e=e.sibling}function Lm(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?a.insertBefore(r,t):a.appendChild(r),Sm(e,o),ve=!0;else if(r!==4&&(r===27&&(Sm(e,o),o=null,Zn(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(Lm(e,t,a,o),e=e.sibling;e!==null;)Lm(e,t,a,o),e=e.sibling}function e2(e){var{stateNode:t,memoizedProps:a}=e;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Bt(t,o,a),t[Dt]=e,t[wa]=a}catch(n){Ee(e,e.return,n)}}function _R(e){if(e.tag===30||(e.subtreeFlags&33554432)!==0)Cm=!0}function TR(){var e=Ko;return Ko=null,e}function Pl(e,t,a,o,r){return ya=0,t2(e.child,t,a,o,r)}function t2(e,t,a,o,r){for(var n=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(o!==null){var s=cb(i);o.push(s),s.view&&(n=!0)}else n||cb(i).view&&(n=!0);Cm=!0,F2(i,ya===0?t:t+"_"+ya,a),ya++}else if(e.tag!==22||e.memoizedState===null)e.tag===30&&r||t2(e.child,t,a,o,r)&&(n=!0);e=e.sibling}return n}function er(e,t){for(;e!==null;){if(e.tag===5)H2(e.stateNode,e.memoizedProps);else if(e.tag!==22||e.memoizedState===null)e.tag===30&&t||er(e.child,t);e=e.sibling}}function Yp(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(Yp(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(M(544));var a=t.name;t=Or(t.default,t.share),t!=="none"&&(Pl(e,a,t,null,!1)||er(e.child,!1))}}e=e.sibling}}function qv(e,t){if(e.tag===30){var{stateNode:a,memoizedProps:o}=e,r=Er(o,a),n=Or(o.default,a.paired?o.share:o.enter);n!=="none"?Pl(e,r,n,null,!1)?(Yp(e),a.paired||t||Cl(e,o.onEnter)):er(e.child,!1):Yp(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)qv(e,t),e=e.sibling;else Yp(e)}function $v(e){if(Ma!==null&&Ma.size!==0){var t=Ma;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var r=t.get(o);if(r!==void 0){var n=Or(a.default,a.share);if(n!=="none"&&(Pl(e,o,n,null,!1)?(n=e.stateNode,r.paired=n,n.paired=r,Cl(e,a.onShare)):er(e.child,!1)),t.delete(o),t.size===0)break}}}$v(e)}e=e.sibling}}}function Vv(e){if(e.tag===30){var t=e.memoizedProps,a=Er(t,e.stateNode),o=Ma!==null?Ma.get(a):void 0,r=Or(t.default,o!==void 0?t.share:t.exit);r!=="none"&&(Pl(e,a,r,null,!1)?o!==void 0?(r=e.stateNode,o.paired=r,r.paired=o,Ma.delete(a),Cl(e,t.onShare)):Cl(e,t.onExit):er(e.child,!1)),Ma!==null&&$v(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Vv(e),e=e.sibling;else Ma!==null&&$v(e)}function a2(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Er(t,e.stateNode);t=Or(t.default,t.update),e.flags&=-5,t!=="none"&&Pl(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&a2(e);e=e.sibling}}function Zv(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,er(e.child,!1))}Zv(e)}e=e.sibling}}function Wp(e){if(e.tag===30)e.stateNode.paired=null,er(e.child,!1),Zv(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Wp(e),e=e.sibling;else Zv(e)}function o2(e){for(e=e.child;e!==null;)e.tag===30?er(e.child,!1):(e.subtreeFlags&33554432)!==0&&o2(e),e=e.sibling}function t0(e,t,a,o,r,n,i){for(var s=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(n!==null&&ya<n.length){var u=n[ya],d=cb(l);if(u.view||d.view)s=!0;var m;if(m=(e.flags&4)===0)if(d.clip)m=!0;else{m=u.rect;var p=d.rect;m=m.y!==p.y||m.x!==p.x||m.height!==p.height||m.width!==p.width}m&&(e.flags|=4),d.abs?d=!u.abs:(u=u.rect,d=d.rect,d=u.height!==d.height||u.width!==d.width),d&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&F2(l,ya===0?a:a+"_"+ya,r),s&&(e.flags&4)!==0||(Ko===null&&(Ko=[]),Ko.push(l,ya===0?o:o+"_"+ya,t.memoizedProps)),ya++}else if(t.tag!==22||t.memoizedState===null)t.tag===30&&i?e.flags|=t.flags&32:t0(e,t.child,a,o,r,n,i)&&(s=!0);t=t.sibling}return s}function r2(e,t){for(e=e.child;e!==null;){if(e.tag===30){var{memoizedProps:a,stateNode:o}=e,r=Er(a,o),n=Or(a.default,a.update);if(t){o=o.clones;var i=o===null?null:o.map(c6)}else i=e.memoizedState,e.memoizedState=null;o=e;var s=e.child;ya=0,r=t0(o,s,r,r,n,i,!1),(e.flags&4)!==0&&r&&(t||Cl(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&r2(e,t);e=e.sibling}}function PF(e,t,a){if(e=e.containerInfo,sb=El,e=q_(e),Rb(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var{anchorOffset:n,focusNode:i}=r;r=r.focusOffset;try{o.nodeType,i.nodeType}catch(y){o=null;break e}var s=0,l=-1,u=-1,d=0,m=0,p=e,f=null;t:for(;;){for(var g;;){if(p!==o||n!==0&&p.nodeType!==3||(l=s+n),p!==i||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(g=p.firstChild)===null)break;f=p,p=g}for(;;){if(p===e)break t;if(f===o&&++d===n&&(l=s),f===i&&++m===r&&(u=s),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}o=l===-1||u===-1?null:{start:l,end:u}}else o=null}o=o||{start:0,end:0}}else o=null;lb={focusedElem:e,selectionRange:o},El=!1,a=(a&335544064)===a,kt=t;for(t=a?9270:1024;kt!==null;){if(e=kt,a&&(o=e.deletions,o!==null))for(n=0;n<o.length;n++)a&&Vv(o[n]);if(e.alternate===null&&(e.flags&2)!==0)a&&_R(e),Dp(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&Vv(o),Dp(a);continue}else if(o!==null&&o.memoizedState!==null){a&&_R(e),Dp(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,kt=o):(a&&a2(e),Dp(a))}}Ma=null}function Dp(e){for(;kt!==null;){var t=kt,a=e,o=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&o!==null){a=void 0,r=o.memoizedProps,o=o.memoizedState;var n=t.stateNode;try{var i=Xi(t.type,r);a=n.getSnapshotBeforeUpdate(i,o),n.__reactInternalSnapshotBeforeUpdate=a}catch(s){Ee(t,t.return,s)}}break;case 3:if((r&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)db(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":db(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=Er(o.memoizedProps,o.stateNode),r=t.memoizedProps,r=Or(r.default,r.update),r!=="none"&&Pl(o,a,r,o.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(M(163))}if(o=t.sibling,o!==null){o.return=t.return,kt=o;break}kt=t.return}}function n2(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Vo(e,a),o&4&&ed(5,a);break;case 1:if(Vo(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Ee(a,a.return,i)}else{var r=Xi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Ee(a,a.return,i)}}o&64&&WT(a),o&512&&Zo(a,a.return);break;case 3:if(Vo(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{sT(e,t)}catch(i){Ee(a,a.return,i)}}break;case 27:t===null&&o&4&&e2(a);case 26:case 5:Vo(e,a),t===null&&o&4&&Uv(a),o&512&&Zo(a,a.return);break;case 12:Vo(e,a);break;case 31:Vo(e,a),o&4&&u2(e,a);break;case 13:Vo(e,a),o&4&&c2(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KF.bind(null,a),I6(e,a))));break;case 22:if(o=a.memoizedState!==null||Ct,!o){var n=t!==null&&t.memoizedState!==null||Ce;t=Ct,r=Ce,Ct=o,(Ce=n)&&!r?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),bo(e,a,o)):Vo(e,a),Ct=t,Ce=r}break;case 30:Vo(e,a),o&512&&Zo(a,a.return);break;case 7:o&512&&Zo(a,a.return);default:Vo(e,a)}}function jv(e,t){for(e=e.child;e!==null;)i2(e,t),e=e.sibling}function i2(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty==="function"?o.setProperty("display","none","important"):o.display="none"}else{var r=e.stateNode,n=e.memoizedProps.style,i=n!==void 0&&n!==null&&n.hasOwnProperty("display")?n.display:null;r.style.display=i==null||typeof i==="boolean"?"":(""+i).trim()}}catch(l){Ee(e,e.return,l)}Xv(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ve=!0}catch(l){Ee(e,e.return,l)}break;case 18:try{var s=e.stateNode;t?$R(s,!0):$R(e.stateNode,!1)}catch(l){Ee(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&jv(e,t);break;default:jv(e,t)}}function Xv(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:i2(a,o);break e;case 22:a.memoizedState===null&&Xv(a,o);break e;default:Xv(a,o)}}e=e.sibling}}function s2(e){var t=e.alternate;t!==null&&(e.alternate=null,s2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Om(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}function vo(e,t,a){for(a=a.child;a!==null;)l2(e,t,a),a=a.sibling}function l2(e,t,a){if(Oa&&typeof Oa.onCommitFiberUnmount==="function")try{Oa.onCommitFiberUnmount(Kc,a)}catch(n){}switch(a.tag){case 26:Ce||Mt(a,t),vo(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Ce&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ce||Mt(a,t),Ic(a);var o=Ze,r=ha;Zn(a.type)&&(Ze=a.stateNode,ha=!1),vo(e,t,a),X2(a.stateNode,a.type,a.memoizedProps),Ze=o,ha=r;break;case 5:Ce||Mt(a,t),Ic(a);case 6:if(a.tag===6&&Ic(a),o=Ze,r=ha,Ze=null,vo(e,t,a),Ze=o,ha=r,Ze!==null)if(ha)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(a.stateNode),ve=!0}catch(n){Ee(a,t,n)}else try{Ze.removeChild(a.stateNode),ve=!0}catch(n){Ee(a,t,n)}break;case 18:Ze!==null&&(ha?(e=Ze,qR(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nl(e)):qR(Ze,a.stateNode));break;case 4:o=Ze,r=ha,Ze=a.stateNode.containerInfo,ha=!0,vo(e,t,a),Ze=o,ha=r;break;case 0:case 11:case 14:case 15:qn(2,a,t),Ce||qn(4,a,t),vo(e,t,a);break;case 1:Ce||(Mt(a,t),o=a.stateNode,typeof o.componentWillUnmount==="function"&&QT(a,t,o)),vo(e,t,a);break;case 21:vo(e,t,a);break;case 22:Ce=(o=Ce)||a.memoizedState!==null,vo(e,t,a),Ce=o;break;case 30:Mt(a,t),vo(e,t,a);break;case 7:Ce||Mt(a,t),vo(e,t,a);break;default:vo(e,t,a)}}function u2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nl(e)}catch(a){Ee(t,t.return,a)}}}function c2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nl(e)}catch(a){Ee(t,t.return,a)}}function OF(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ER),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ER),t;default:throw Error(M(435,e.tag))}}function Pp(e,t){var a=OF(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=jF.bind(null,e,o);o.then(r,r)}})}function Qt(e,t,a){var o=t.deletions;if(o!==null)for(var r=0;r<o.length;r++){var n=o[r],i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Zn(l.type)){Ze=l.stateNode,ha=!1;break e}break;case 5:Ze=l.stateNode,ha=!1;break e;case 3:case 4:Ze=l.stateNode.containerInfo,ha=!0;break e}l=l.return}if(Ze===null)throw Error(M(160));l2(i,s,n),Ze=null,ha=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)d2(t,e,a),t=t.sibling}function d2(e,t,a){var{alternate:o,flags:r}=e;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var n=0;n<o.length;n++){var i=o[n];i.ref.impl=i.nextImpl}Qt(t,e,a),Jt(e),r&4&&(qn(3,e,e.return),ed(3,e),qn(5,e,e.return));break;case 1:Qt(t,e,a),Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),r&64&&Ct&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(n=wo,Qt(t,e,a),Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),r&4)if(r=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(Ct)e.stateNode=B2(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,r=n.ownerDocument||n;t:switch(t){case"title":if(o=r.getElementsByTagName("title")[0],!o||o[Yc]||o[Dt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))o=r.createElement(t),r.head.insertBefore(o,r.querySelector("head > title"));Bt(o,t,a),o[Dt]=e,It(o),t=o;break e;case"link":if(n=QR("link","href",r).get(t+(a.href||""))){for(i=0;i<n.length;i++)if(o=n[i],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){n.splice(i,1);break t}}o=r.createElement(t),Bt(o,t,a),r.head.appendChild(o);break;case"meta":if(n=QR("meta","content",r).get(t+(a.content||""))){for(i=0;i<n.length;i++)if(o=n[i],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){n.splice(i,1);break t}}o=r.createElement(t),Bt(o,t,a),r.head.appendChild(o);break;default:throw Error(M(468,t))}o[Dt]=e,It(o),t=o}e.stateNode=t}else Ct||mb(n,e.type,e.stateNode);else e.stateNode=WR(n,a,e.memoizedProps);else r!==a?(r===null?(t=o.stateNode,t===null||Ce||t.parentNode.removeChild(t)):r.count--,a===null?Ct||mb(n,e.type,e.stateNode):WR(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Kx(e,e.memoizedProps,o.memoizedProps);break;case 27:Qt(t,e,a),Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),o!==null&&r&4&&Kx(e,e.memoizedProps,o.memoizedProps);break;case 5:if(n=qo,qo=!1,Qt(t,e,a),qo=n,Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),e.flags&32){t=e.stateNode;try{wl(t,""),ve=!0}catch(d){Ee(e,e.return,d)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,Kx(e,t,o!==null?o.memoizedProps:t)),r&1024&&(Xx=!0);break;case 6:if(Qt(t,e,a),Jt(e),r&4){if(e.stateNode===null)throw Error(M(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,ve=!0}catch(d){Ee(e,e.return,d)}}break;case 3:if(ve=!1,tm=null,n=wo,wo=Gc(t.containerInfo),Qt(t,e,a),wo=n,Jt(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Nl(t.containerInfo)}catch(d){Ee(e,e.return,d)}Xx&&(Xx=!1,f2(e)),ve=!1;break;case 4:r=qo,qo=Ct,o=OI(),n=wo,wo=Gc(e.stateNode.containerInfo),Qt(t,e,a),Jt(e),wo=n,ve&&mc&&(km=!0),ve=o,qo=r;break;case 12:Qt(t,e,a),Jt(e);break;case 31:Qt(t,e,a),Jt(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Pp(e,t)));break;case 13:Qt(t,e,a),Jt(e),e.child.flags&8192&&e.memoizedState!==null!==(o!==null&&o.memoizedState!==null)&&(Xm=Pa()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Pp(e,t)));break;case 22:n=e.memoizedState!==null,i=o!==null&&o.memoizedState!==null;var s=Ct,l=Ce,u=qo;Ct=s||n,qo=u||n,Ce=l||i,Qt(t,e,a),Ce=l,qo=u,Ct=s,Jt(e),r&8192&&(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,!n||o===null||i||Ct||Ce||(t=i||Ce,a=Ct,o=Ce,Ct=n||Ct,Ce=t,bn(e,2),Ct=a,Ce=o),!n&&qo||jv(e,n)),r&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,Pp(e,a))));break;case 19:Qt(t,e,a),Jt(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Pp(e,t)));break;case 30:r&512&&(Ce||o===null||Mt(o,o.return)),r=OI(),n=mc,i=(a&335544064)===a,s=e.memoizedProps,mc=i&&Or(s.default,s.update)!=="none",Qt(t,e,a),Jt(e),i&&o!==null&&ve&&(e.flags|=4),mc=n,ve=r;break;case 21:break;case 7:r&512&&(Ce||o===null||Mt(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:Qt(t,e,a),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(JT(o)){a=o;break}o=o.return}o=null;for(var r=e.return;r!==null;){if(e0(r)){var n=r.stateNode;o===null?o=[n]:o.push(n)}if(Jb(r))break;r=r.return}var i=o;if(a==null)throw Error(M(160));switch(a.tag){case 27:var s=a.stateNode,l=jx(e);Lm(e,l,s,i);break;case 5:var u=a.stateNode;a.flags&32&&(wl(u,""),a.flags&=-33);var d=jx(e);Lm(e,d,u,i);break;case 3:case 4:var m=a.stateNode.containerInfo,p=jx(e);Gv(e,p,m,i);break;default:throw Error(M(161))}}catch(f){Ee(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function f2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;f2(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,El=!0,t.reset(),El=!1),e=e.sibling}}function Zs(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)p2(t,e),t=t.sibling;else r2(t,!1)}function p2(e,t){var a=e.alternate;if(a===null)qv(e,!1);else switch(e.tag){case 3:if(Kv=$o=!1,TR(),Zs(t,e),!$o&&!km){if(e=Ko,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var r=e[o+1];H2(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Kv=!0}Ko=null;break;case 5:Zs(t,e);break;case 4:o=$o,$o=!1,Zs(t,e),$o&&(km=!0),$o=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?qv(e,!1):Zs(t,e));break;case 30:o=$o,r=TR(),$o=!1,Zs(t,e),$o&&(e.flags|=4);var{memoizedProps:n,stateNode:i}=e;t=Er(n,i),i=Er(a.memoizedProps,i);var s=Or(n.default,n.update);s==="none"?t=!1:(n=a.memoizedState,a.memoizedState=null,a=e.child,ya=0,t=t0(e,a,t,i,s,n,!0),ya!==(n===null?0:n.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Cl(e,e.memoizedProps.onUpdate),Ko=r):r!==null&&(r.push.apply(r,Ko),Ko=r),$o=(e.flags&32)!==0?!0:o;break;default:Zs(t,e)}}function Vo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)n2(e,t.alternate,t),t=t.sibling}function bn(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:qn(4,a,a.return),bn(a,o);break;case 1:Mt(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount==="function"&&QT(a,a.return,r),bn(a,o);break;case 27:(o&2)!==0&&X2(a.stateNode,a.type,a.memoizedProps);case 5:Mt(a,a.return),a.tag!==5&&a.tag!==27||Ic(a),bn(a,o);break;case 6:Ic(a);break;case 26:Mt(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||Ce||r.parentNode.removeChild(r),bn(a,o);break;case 22:a.memoizedState===null&&bn(a,o);break;case 30:Mt(a,a.return),bn(a,o);break;case 7:Mt(a,a.return);default:bn(a,o)}e=e.sibling}}function bo(e,t,a){a=(t.subtreeFlags&8772)!==0?a:a&-2;for(t=t.child;t!==null;){var o=t.alternate,r=e,n=t,i=n.flags,s=(a&1)!==0;switch(n.tag){case 0:case 11:case 15:bo(r,n,a),ed(4,n);break;case 1:if(bo(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount==="function")try{r.componentDidMount()}catch(d){Ee(o,o.return,d)}if(o=n,r=o.updateQueue,r!==null){var l=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)iT(u[r],l)}catch(d){Ee(o,o.return,d)}}s&&i&64&&WT(n),Zo(n,n.return);break;case 27:(a&2)!==0&&e2(n);case 5:n.tag!==5&&n.tag!==27||RR(n),bo(r,n,a),s&&o===null&&i&4&&Uv(n),Zo(n,n.return);break;case 6:RR(n);break;case 26:l=n.stateNode,n.memoizedState!==null||l===null||Ct||mb(Gc(l.ownerDocument),n.type,l),bo(r,n,a),s&&o===null&&i&4&&Uv(n),Zo(n,n.return);break;case 12:bo(r,n,a);break;case 31:bo(r,n,a),s&&i&4&&u2(r,n);break;case 13:bo(r,n,a),s&&i&4&&c2(r,n);break;case 22:n.memoizedState===null&&bo(r,n,a),Zo(n,n.return);break;case 30:bo(r,n,a),Zo(n,n.return);break;case 7:Zo(n,n.return);default:bo(r,n,a)}t=t.sibling}}function a0(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Qc(a))}function o0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qc(e))}function Ya(e,t,a,o){var r=(a&335544064)===a;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)m2(e,t,a,o),t=t.sibling;else r&&o2(t)}function m2(e,t,a,o){var r=(a&335544064)===a;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Wp(t);var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ya(e,t,a,o),n&2048&&ed(9,t);break;case 1:Ya(e,t,a,o);break;case 3:Ya(e,t,a,o),r&&Kv&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),n&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(t.refCount++,n!=null&&Qc(n)));break;case 12:if(n&2048){Ya(e,t,a,o),n=t.stateNode;try{var i=t.memoizedProps,s=i.id,l=i.onPostCommit;typeof l==="function"&&l(s,t.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(u){Ee(t,t.return,u)}}else Ya(e,t,a,o);break;case 31:Ya(e,t,a,o);break;case 13:Ya(e,t,a,o);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?(r&&s!==null&&s.memoizedState===null&&Wp(s),i._visibility&2?Ya(e,t,a,o):Rc(e,t)):(r&&s!==null&&s.memoizedState!==null&&Wp(t),i._visibility&2?Ya(e,t,a,o):(i._visibility|=2,js(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),n&2048&&a0(s,t);break;case 24:Ya(e,t,a,o),n&2048&&o0(t.alternate,t);break;case 30:r&&(n=t.alternate,n!==null&&(er(n.child,!0),er(t.child,!0))),Ya(e,t,a,o);break;default:Ya(e,t,a,o)}}function js(e,t,a,o,r){r=r&&((t.subtreeFlags&10256)!==0||!1);for(t=t.child;t!==null;){var n=e,i=t,s=a,l=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:js(n,i,s,l,r),ed(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?js(n,i,s,l,r):Rc(n,i):(d._visibility|=2,js(n,i,s,l,r)),r&&u&2048&&a0(i.alternate,i);break;case 24:js(n,i,s,l,r),r&&u&2048&&o0(i.alternate,i);break;default:js(n,i,s,l,r)}t=t.sibling}}function Rc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:Rc(a,o),r&2048&&a0(o.alternate,o);break;case 24:Rc(a,o),r&2048&&o0(o.alternate,o);break;default:Rc(a,o)}t=t.sibling}}function Ni(e,t,a){if(e.subtreeFlags&Pi)for(e=e.child;e!==null;)h2(e,t,a),e=e.sibling}function h2(e,t,a){switch(e.tag){case 26:Ni(e,t,a),e.flags&Pi&&(e.memoizedState!==null?H6(a,wo,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&e_(a,e)));break;case 5:Ni(e,t,a),e.flags&Pi&&(e=e.stateNode,(t&335544128)===t&&e_(a,e));break;case 3:case 4:var o=wo;wo=Gc(e.stateNode.containerInfo),Ni(e,t,a),wo=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Pi,Pi=16777216,Ni(e,t,a),Pi=o):Ni(e,t,a));break;case 30:if((e.flags&Pi)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var r=e.stateNode;r.paired=null,Ma===null&&(Ma=new Map),Ma.set(o,r)}Ni(e,t,a);break;default:Ni(e,t,a)}}function g2(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 ic(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];kt=o,x2(o,e)}g2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)y2(e),e=e.sibling}function y2(e){switch(e.tag){case 0:case 11:case 15:ic(e),e.flags&2048&&qn(9,e,e.return);break;case 3:ic(e);break;case 12:ic(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qp(e)):ic(e);break;default:ic(e)}}function Qp(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];kt=o,x2(o,e)}g2(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Qp(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Qp(t));break;default:Qp(t)}e=e.sibling}}function x2(e,t){for(;kt!==null;){var a=kt;switch(a.tag){case 0:case 11:case 15:qn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Qc(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,kt=o;else e:for(a=e;kt!==null;){o=kt;var{sibling:r,return:n}=o;if(s2(o),o===a){kt=null;break e}if(r!==null){r.return=n,kt=r;break e}kt=n}}}function Ba(){return(we&2)!==0&&ge!==0?ge&-ge:ae.T!==null?i0():C_()}function w2(){if(Da===0)if((ge&536870912)===0||le){var e=Cp;Cp<<=1,(Cp&3932160)===0&&(Cp=262144),Da=e}else Da=536870912;return e=Ft.current,e!==null&&(e.flags|=32),Da}function Cl(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=G2(Er(e.memoizedProps,a))),yl===null&&(yl=[]),yl.push(t.bind(null,o))}}function va(e,t,a){if(e===Pe&&(_e===2||_e===9)||e.cancelPendingCommit!==null)kl(e,0),_n(e,ge,Da,!1);if(Xc(e,a),(we&2)===0||e!==Pe)e===Pe&&((we&2)===0&&(Gi|=a),Qe===4&&_n(e,ge,Da,!1)),ar(e)}function S2(e,t,a){if((we&6)!==0)throw Error(M(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||jc(e,t),r=o?UF(e,t):Yx(e,t,!0),n=o;do{if(r===0){Ol&&!o&&_n(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!FF(a)){r=Yx(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;r=_c;var l=s.current.memoizedState.isDehydrated;if(l&&(kl(s,i).flags|=256),i=Yx(s,i,!1),i!==2&&i!==6){if(r0&&!l){s.errorRecoveryDisabledLanes|=n,Gi|=n,r=4;break e}n=ga,ga=r,n!==null&&(ga===null?ga=n:ga.push.apply(ga,n))}r=i}if(n=!1,r!==2)continue}}if(r===1){kl(e,0),_n(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(M(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:_n(o,t,Da,!Rn);break e;case 2:ga=null;break;case 3:case 5:break;default:throw Error(M(329))}if((t&62914560)===t&&(r=Xm+300-Pa(),10<r)){if(_n(o,t,Da,!Rn),Pm(o,0,!0)!==0)break e;Jo=t,o.timeoutHandle=l0(NR.bind(null,o,a,ga,_m,Yv,t,Da,Gi,Ll,Rn,n,"Throttled",-0,0),r);break e}NR(o,a,ga,_m,Yv,t,Da,Gi,Ll,Rn,n,null,-0,0)}}break}while(1);ar(e)}function NR(e,t,a,o,r,n,i,s,l,u,d,m,p,f){e.timeoutHandle=-1;var g=t.subtreeFlags,y=(n&335544064)===n;if(m=null,y||g&8192||(g&16785408)===16785408){if(m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xo},Ma=null,h2(t,n,m),y&&(g=m,y=e.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(g.count++,g.waitingForViewTransition=!0,g=qc.bind(g),y.finished.then(g,g))),g=(n&62914560)===n?Xm-Pa():(n&4194048)===n?v2-Pa():0,g=U6(m,g),g!==null){Jo=n,e.cancelPendingCommit=g(MR.bind(null,e,t,n,a,o,r,i,s,l,u,d,m,null,p,f)),_n(e,n,i,!u);return}}MR(e,t,n,a,o,r,i,s,l,u,d,m)}function FF(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!Fa(n(),r))return!1}catch(i){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 _n(e,t,a,o){t=v_(e,t),t&=~Im,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-za(r),i=1<<n;o[n]=-1,r&=~i}a!==0&&w_(e,a,t)}function Ym(){return(we&6)===0?(td(0,!1),!1):!0}function n0(){if(me!==null){if(_e===0)var e=me.return;else e=me,Ir=ts=null,Gb(e),pl=null,Oc=0,e=me;for(;e!==null;)YT(e.alternate,e),e=e.return;me=null}}function kl(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,s6(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jo=0,n0(),Pe=e,me=a=Rr(e.current,null),ge=t,_e=0,Ea=null,Rn=!1,Ol=jc(e,t),r0=!1,Ll=Da=Im=Gi=$n=Qe=0,ga=_c=null,Yv=!1,Dr=v_(e,t),Hm(),a}function L2(e,t){re=null,ae.H=bm,t===Dl||t===qm?(t=rR(),_e=3):t===Db?(t=rR(),_e=4):_e=t===Yb?8:t!==null&&typeof t==="object"&&typeof t.then==="function"?6:1,Ea=t,me===null&&(Qe=1,wm(e,to(t,e.current)))}function C2(){var e=Ft.current;return e===null?!0:(ge&4194048)===ge?Vt===null?!0:!1:(ge&62914560)===ge||(ge&536870912)!==0?e===Vt:!1}function k2(){var e=ae.H;return ae.H=bm,e===null?bm:e}function I2(){var e=ae.A;return ae.A=zF,e}function Tm(){Qe=4,Rn||(ge&4194048)!==ge&&Ft.current!==null||(Ol=!0),($n&134217727)===0&&(Gi&134217727)===0||Pe===null||_n(Pe,ge,Da,!1)}function Yx(e,t,a){var o=we;we|=2;var r=k2(),n=I2();if(Pe!==e||ge!==t)_m=null,kl(e,t);t=!1;var i=Qe;e:do try{if(_e!==0&&me!==null){var s=me,l=Ea;switch(_e){case 8:n0(),i=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(t=!0);var u=_e;if(_e=0,Ea=null,ll(e,s,l,u),a&&Ol){i=0;break e}break;default:u=_e,_e=0,Ea=null,ll(e,s,l,u)}}HF(),i=Qe;break}catch(d){L2(e,d)}while(1);return t&&e.shellSuspendCounter++,Ir=ts=null,we=o,ae.H=r,ae.A=n,me===null&&(Pe=null,ge=0,Hm()),i}function HF(){for(;me!==null;)R2(me)}function UF(e,t){var a=we;we|=2;var o=k2(),r=I2();Pe!==e||ge!==t?(_m=null,Rm=Pa()+500,kl(e,t)):Ol=jc(e,t);e:do try{if(_e!==0&&me!==null){t=me;var n=Ea;t:switch(_e){case 1:_e=0,Ea=null,ll(e,t,n,1);break;case 2:case 9:if(oR(n)){_e=0,Ea=null,AR(t);break}t=function(){_e!==2&&_e!==9||Pe!==e||(_e=7),ar(e)},n.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:oR(n)?(_e=0,Ea=null,AR(t)):(_e=0,Ea=null,ll(e,t,n,7));break;case 5:var i=null;switch(me.tag){case 26:i=me.memoizedState;case 5:case 27:var s=me;if(i?Q2(i):s.stateNode.complete){_e=0,Ea=null;var l=s.sibling;if(l!==null)me=l;else{var u=s.return;u!==null?(me=u,Wm(u)):me=null}break t}}_e=0,Ea=null,ll(e,t,n,5);break;case 6:_e=0,Ea=null,ll(e,t,n,6);break;case 8:n0(),Qe=6;break e;default:throw Error(M(462))}}GF();break}catch(d){L2(e,d)}while(1);if(Ir=ts=null,ae.H=o,ae.A=r,we=a,me!==null)return 0;return Pe=null,ge=0,Hm(),Qe}function GF(){for(;me!==null&&!n4();)R2(me)}function R2(e){var t=XT(e.alternate,e,Dr);e.memoizedProps=e.pendingProps,t===null?Wm(e):me=t}function AR(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=bR(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=bR(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Gb(t);var o=t;o===Rt&&(le?(pm(o),o.tag===5&&o.stateNode!=null&&(He=o.stateNode)):(pm(o),le=!0));default:YT(a,t),t=me=W_(t,Dr),t=XT(a,t,Dr)}e.memoizedProps=e.pendingProps,t===null?Wm(e):me=t}function ll(e,t,a,o){Ir=ts=null,Gb(t),pl=null,Oc=0;var r=t.return;try{if(TF(e,r,t,a,ge)){Qe=1,wm(e,to(a,e.current)),me=null;return}}catch(n){if(r!==null)throw me=r,n;Qe=1,wm(e,to(a,e.current)),me=null;return}if(t.flags&32768){if(le||o===1)e=!0;else if(Ol||(ge&536870912)!==0)e=!1;else if(Rn=e=!0,o===2||o===9||o===3||o===6)o=Ft.current,o!==null&&o.tag===13&&(o.flags|=16384);_2(t,e)}else Wm(t)}function Wm(e){var t=e;do{if((t.flags&32768)!==0){_2(t,Rn);return}e=t.return;var a=MF(t.alternate,t,Dr);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Qe===0&&(Qe=5)}function _2(e,t){do{var a=DF(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Qe=6,me=null}function MR(e,t,a,o,r,n,i,s,l,u,d,m){e.cancelPendingCommit=null;do Qm();while(Ke!==0);if((we&6)!==0)throw Error(M(327));if(t!==null){if(t===e.current)throw Error(M(177));e===Pe&&(me=Pe=null,ge=0),Yi=t,Lo=e,Jo=a,Qv=r,b2=o,qF(e,t,a,i,s,l,m)}}function qF(e,t,a,o,r,n,i){var s=t.lanes|t.childLanes;if(Wv=s,s|=_b,h4(e,a,s,o,r,n),yl=null,(a&335544064)===a?(xl=yF(e),o=10262):(xl=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,XF(lm,function(){return ab(),null})):(e.callbackNode=null,e.callbackPriority=0),Cm=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=ae.T,ae.T=null,r=Se.p,Se.p=2,n=we,we|=4;try{PF(e,t,a)}finally{we=n,Se.p=r,ae.T=o}}Ke=1,Cm?gl=p6(i,e.containerInfo,xl,Jv,eb,VF,tb,ab,$F,null,null):(Jv(),eb(),tb())}function $F(e){if(Ke!==0){var t=Lo.onRecoverableError;t(e,{componentStack:null})}}function VF(){Ke===3&&(Ke=0,p2(Yi,Lo),Ke=4)}function Jv(){if(Ke===1){Ke=0;var e=Lo,t=Yi,a=Jo,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=ae.T,ae.T=null;var r=Se.p;Se.p=2;var n=we;we|=4;try{mc=km=!1,d2(t,e,a),a=lb;var i=q_(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&G_(s.ownerDocument.documentElement,s)){if(l!==null&&Rb(s)){var{start:u,end:d}=l;if(d===void 0&&(d=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(d,s.value.length);else{var m=s.ownerDocument||document,p=m&&m.defaultView||window;if(p.getSelection){var f=p.getSelection(),g=s.textContent.length,y=Math.min(l.start,g),b=l.end===void 0?y:Math.min(l.end,g);!f.extend&&y>b&&(i=b,b=y,y=i);var h=XI(s,y),x=XI(s,b);if(h&&x&&(f.rangeCount!==1||f.anchorNode!==h.node||f.anchorOffset!==h.offset||f.focusNode!==x.node||f.focusOffset!==x.offset)){var v=m.createRange();v.setStart(h.node,h.offset),f.removeAllRanges(),y>b?(f.addRange(v),f.extend(x.node,x.offset)):(v.setEnd(x.node,x.offset),f.addRange(v))}}}}m=[];for(f=s;f=f.parentNode;)f.nodeType===1&&m.push({element:f,left:f.scrollLeft,top:f.scrollTop});typeof s.focus==="function"&&s.focus();for(s=0;s<m.length;s++){var w=m[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}El=!!sb,lb=sb=null}finally{we=n,Se.p=r,ae.T=o}}e.current=t,Ke=2}}function eb(){if(Ke===2){Ke=0;var e=Lo,t=Yi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ae.T,ae.T=null;var o=Se.p;Se.p=2;var r=we;we|=4;try{n2(e,t.alternate,t)}finally{we=r,Se.p=o,ae.T=a}}Ke=3}}function tb(){if(Ke===4||Ke===3){Ke=0;var e=gl;gl=null,i4();var t=Lo,a=Yi,o=Jo,r=b2,n=(o&335544064)===o?10262:10256;if((a.subtreeFlags&n)!==0||(a.flags&n)!==0?Ke=5:(Ke=0,Yi=Lo=null,T2(t,t.pendingLanes)),n=t.pendingLanes,n===0&&(On=null),wb(o),a=a.stateNode,Oa&&typeof Oa.onCommitFiberRoot==="function")try{Oa.onCommitFiberRoot(Kc,a,void 0,(a.current.flags&128)===128)}catch(u){}if(r!==null){a=ae.T,n=Se.p,Se.p=2,ae.T=null;try{for(var i=t.onRecoverableError,s=0;s<r.length;s++){var l=r[s];i(l.value,{componentStack:l.stack})}}finally{ae.T=a,Se.p=n}}if(r=yl,i=xl,xl=null,r!==null&&(yl=null,i===null&&(i=[]),e!==null))for(l=0;l<r.length;l++)a=(0,r[l])(i),a!==void 0&&e.finished.finally(a);(Jo&3)!==0&&Qm(),ar(t),n=t.pendingLanes,(o&261930)!==0&&(n&42)!==0?t===Jp?Tc++:(Tc=0,Jp=t):(Tc=0,Jp=null),td(0,!1)}}function T2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qc(t)))}function Qm(){return gl!==null&&(gl.skipTransition(),gl=null),Jv(),eb(),tb(),ab()}function ab(){if(Ke!==5)return!1;var e=Lo,t=Wv;Wv=0;var a=wb(Jo),o=ae.T,r=Se.p;try{Se.p=32>a?32:a,ae.T=null,a=Qv,Qv=null;var n=Lo,i=Jo;if(Ke=0,Yi=Lo=null,Jo=0,(we&6)!==0)throw Error(M(331));var s=we;if(we|=4,y2(n.current),m2(n,n.current,i,a),we=s,td(0,!1),Oa&&typeof Oa.onPostCommitFiberRoot==="function")try{Oa.onPostCommitFiberRoot(Kc,n)}catch(l){}return!0}finally{Se.p=r,ae.T=o,T2(e,t)}}function DR(e,t,a){t=to(a,t),t=Pv(e.stateNode,t,2),e=Mn(e,t,2),e!==null&&(Xc(e,2),ar(e))}function Ee(e,t,a){if(e.tag===3)DR(e,e,a);else for(;t!==null;){if(t.tag===3){DR(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(On===null||!On.has(o))){e=to(a,e),a=$T(2),o=Mn(t,a,2),o!==null&&(VT(a,o,t,e),Xc(o,2),ar(o));break}}t=t.return}}function Wx(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new BF;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(r0=!0,r.add(a),e=ZF.bind(null,e,t,a),t.then(e,e))}function ZF(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(ge&a)===a&&(Qe===4||Qe===3&&(ge&62914560)===ge&&300>Pa()-Xm?(we&2)===0?kl(e,0):Im|=a:Im|=a,Ll===ge&&(Ll=0)),ar(e)}function E2(e,t){t===0&&(t=b_()),e=es(e,t),e!==null&&(Xc(e,t),ar(e))}function KF(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),E2(e,a)}function jF(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:r}=e;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(M(314))}o!==null&&o.delete(t),E2(e,a)}function XF(e,t){return vb(e,t)}function ar(e){e!==Xs&&e.next===null&&(Xs===null?Il=Xs=e:Xs=Xs.next=e),Em=!0,ob||(ob=!0,WF())}function td(e,t){if(!Qx&&Em){Qx=!0;do{var a=!1;for(var o=Il;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var{suspendedLanes:i,pingedLanes:s}=o;n=(1<<31-za(42|e)+1)-1,n&=r&~(i&~s),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,PR(o,n))}else n=ge,n=Pm(o,o===Pe?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||jc(o,n)||(a=!0,PR(o,n));o=o.next}}while(a);Qx=!1}}function YF(){N2()}function N2(){Em=ob=!1;var e=0;Tn!==0&&i6()&&(e=Tn);for(var t=Pa(),a=null,o=Il;o!==null;){var r=o.next,n=A2(o,t);if(n===0)o.next=null,a===null?Il=r:a.next=r,r===null&&(Xs=a);else if(a=o,e!==0||(n&3)!==0)Em=!0;o=r}Ke!==0&&Ke!==5||td(e,!1),Tn!==0&&(Tn=0)}function A2(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:r}=e,n=e.pendingLanes&-62914561;0<n;){var i=31-za(n),s=1<<i,l=r[i];if(l===-1){if((s&a)===0||(s&o)!==0)r[i]=m4(s,t)}else l<=t&&(e.expiredLanes|=s);n&=~s}if(t=Pe,a=ge,a=Pm(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Nx(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||jc(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&Nx(o),wb(a)){case 2:case 8:a=y_;break;case 32:a=lm;break;case 268435456:a=x_;break;default:a=lm}return o=M2.bind(null,e),a=vb(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&Nx(o),e.callbackPriority=2,e.callbackNode=null,2}function M2(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qm()&&e.callbackNode!==a)return null;var o=ge;if(o=Pm(e,e===Pe?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0)return null;return S2(e,o,t),A2(e,Pa()),e.callbackNode!=null&&e.callbackNode===a?M2.bind(null,e):null}function PR(e,t){if(Qm())return null;S2(e,t,!0)}function WF(){l6(function(){(we&6)!==0?vb(g_,YF):N2()})}function i0(){if(Tn===0){var e=Zi;e===0&&(e=Lp,Lp<<=1,(Lp&261888)===0&&(Lp=256)),Tn=e}return Tn}function OR(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:Hp(e)}function QF(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=OR((r[wa]||null).action),i=o.submitter;i&&(t=(t=i[wa]||null)?OR(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var s=new zm("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Tn!==0){var l=new FormData(r,i);Mv(a,{pending:!0,data:l,method:r.method,action:n},null,l)}}else typeof n==="function"&&(s.preventDefault(),l=new FormData(r,i),Mv(a,{pending:!0,data:l,method:r.method,action:n},n,l))},currentTarget:r}]})}}function D2(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=u;try{n(r)}catch(d){cm(d)}r.currentTarget=null,n=l}else for(i=0;i<o.length;i++){if(s=o[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=u;try{n(r)}catch(d){cm(d)}r.currentTarget=null,n=l}}}}function pe(e,t){var a=t[AI];a===void 0&&(a=t[AI]=new Set);var o=e+"__bubble";a.has(o)||(P2(t,e,2,!1),a.add(o))}function Jx(e,t,a){var o=0;t&&(o|=4),P2(a,e,o,t)}function s0(e){if(!e[Op]){e[Op]=!0,I_.forEach(function(a){a!=="selectionchange"&&(JF.has(a)||Jx(a,!1,e),Jx(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Op]||(t[Op]=!0,Jx("selectionchange",!1,t))}}function P2(e,t,a,o){switch(nE(t)){case 2:var r=V6;break;case 8:r=Z6;break;default:r=m0}a=r.bind(null,t,a,e),r=void 0,!xv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function ev(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var s=o.stateNode.containerInfo;if(s===r)break;if(i===4)for(i=o.return;i!==null;){var l=i.tag;if((l===3||l===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;s!==null;){if(i=Oi(s),i===null)return;if(l=i.tag,l===5||l===6||l===26||l===27){o=n=i;continue e}s=s.parentNode}}o=o.return}D_(function(){var u=n,d=Lb(a),m=[];e:{var p=X_.get(e);if(p!==void 0){var f=zm,g=e;switch(e){case"keypress":if(Gp(a)===0)break e;case"keydown":case"keyup":f=F4;break;case"focusin":g="focus",f=zx;break;case"focusout":g="blur",f=zx;break;case"beforeblur":case"afterblur":f=zx;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=HI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=R4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=$4;break;case V_:case Z_:case K_:f=E4;break;case j_:f=Z4;break;case"scroll":case"scrollend":f=k4;break;case"wheel":f=j4;break;case"copy":case"cut":case"paste":f=A4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=GI;break;case"submit":f=G4;break;case"toggle":case"beforetoggle":f=Y4}var y=(t&4)!==0,b=!y&&(e==="scroll"||e==="scrollend"),h=y?p!==null?p+"Capture":null:p;y=[];for(var x=u,v;x!==null;){var w=x;if(v=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||v===null||h===null||(w=Nc(x,h),w!=null&&y.push(Hc(x,w,v))),b)break;x=x.return}0<y.length&&(p=new f(p,g,null,a,d),m.push({event:p,listeners:y}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&a!==yv&&(g=a.relatedTarget||a.fromElement)&&(Oi(g)||g[Al]))break e;if(p||f){if(g=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p){if(f=a.relatedTarget||a.toElement,p=u,f=f?Oi(f):null,f!==null&&(b=Zc(f),y=f.tag,f!==b||y!==5&&y!==27&&y!==6))f=null}else p=null,f=u;if(p!==f){if(y=HI,w="onMouseLeave",h="onMouseEnter",x="mouse",e==="pointerout"||e==="pointerover")y=GI,w="onPointerLeave",h="onPointerEnter",x="pointer";b=p==null?g:cc(p),v=f==null?g:cc(f),g=new y(w,x+"leave",p,a,d),g.target=b,g.relatedTarget=v,w=null,Oi(d)===u&&(y=new y(h,x+"enter",f,a,d),y.target=v,y.relatedTarget=b,w=y),b=w,y=p&&f?nv(p,f,e6):null,p!==null&&zR(m,g,p,y,!1),f!==null&&b!==null&&zR(m,b,f,y,!0)}}}e:{if(p=u?cc(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var C=ZI;else if(VI(p))if(H_)C=iF;else{C=rF;var I=oF}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&Sb(u.elementType)&&(C=ZI):C=nF;if(C&&(C=C(e,u))){F_(m,C,a,d);break e}I&&I(e,p,u)}switch(I=u?cc(u):window,e){case"focusin":if(VI(I)||I.contentEditable==="true")al=I,bv=u,vc=null;break;case"focusout":vc=bv=al=null;break;case"mousedown":wv=!0;break;case"contextmenu":case"mouseup":case"dragend":wv=!1,YI(m,a,d);break;case"selectionchange":if(lF)break;case"keydown":case"keyup":YI(m,a,d)}var L;if(Ib)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else tl?z_(e,a)&&(k="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(k="onCompositionStart");if(k&&(O_&&a.locale!=="ko"&&(tl||k!=="onCompositionStart"?k==="onCompositionEnd"&&tl&&(L=P_()):(kn=d,Cb=("value"in kn)?kn.value:kn.textContent,tl=!0)),I=Nm(u,k),0<I.length&&(k=new UI(k,e,null,a,d),m.push({event:k,listeners:I}),L?k.data=L:(L=B_(a),L!==null&&(k.data=L)))),L=Q4?J4(e,a):eF(e,a))k=Nm(u,"onBeforeInput"),0<k.length&&(I=new UI("onBeforeInput","beforeinput",null,a,d),m.push({event:I,listeners:k}),I.data=L);QF(m,e,u,a,d)}D2(m,t)})}function Hc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Nm(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=Nc(e,a),r!=null&&o.unshift(Hc(e,r,n)),r=Nc(e,t),r!=null&&o.push(Hc(e,r,n))),e.tag===3)return o;e=e.return}return[]}function e6(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function zR(e,t,a,o,r){for(var n=t._reactName,i=[];a!==null&&a!==o;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===o)break;s!==5&&s!==26&&s!==27||u===null||(l=u,r?(u=Nc(a,n),u!=null&&i.unshift(Hc(a,u,l))):r||(u=Nc(a,n),u!=null&&i.push(Hc(a,u,l)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}function BR(e){return(typeof e==="string"?e:""+e).replace(t6,\`
7497
- \`).replace(a6,"")}function O2(e,t){return t=BR(t),BR(e)===t?!0:!1}function Te(e,t,a,o,r,n){switch(a){case"children":if(typeof o==="string")t==="body"||t==="textarea"&&o===""||wl(e,o);else if(typeof o==="number"||typeof o==="bigint")t!=="body"&&wl(e,""+o);else return;break;case"className":Ip(e,"class",o);break;case"tabIndex":Ip(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Ip(e,a,o);break;case"style":M_(e,o,n);return;case"data":if(t!=="object"){Ip(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=Hp(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o==="function"){e.setAttribute(a,"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 n==="function"&&(a==="formAction"?(t!=="input"&&Te(e,t,"name",r.name,r,null),Te(e,t,"formEncType",r.formEncType,r,null),Te(e,t,"formMethod",r.formMethod,r,null),Te(e,t,"formTarget",r.formTarget,r,null)):(Te(e,t,"encType",r.encType,r,null),Te(e,t,"method",r.method,r,null),Te(e,t,"target",r.target,r,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=Hp(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Xo);return;case"onScroll":o!=null&&pe("scroll",e);return;case"onScrollEnd":o!=null&&pe("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(M(60));(n!=null?n.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}a=Hp(o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Fp(e,"popover",o);break;case"xlinkActuate":Lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Lr(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Lr(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Lr(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Lr(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Fp(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=L4.get(a)||a,Fp(e,a,o);else return}ve=!0}function ib(e,t,a,o,r,n){switch(a){case"style":M_(e,o,n);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(M(60));(n!=null?n.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o==="string")wl(e,o);else if(typeof o==="number"||typeof o==="bigint")wl(e,""+o);else return;break;case"onScroll":o!=null&&pe("scroll",e);return;case"onScrollEnd":o!=null&&pe("scrollend",e);return;case"onClick":o!=null&&(e.onclick=Xo);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!R_.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),n=a.slice(2,r?a.length-7:void 0),t=e[wa]||null,t=t!=null?t[a]:null,typeof t==="function"&&e.removeEventListener(n,t,r),typeof o==="function")){typeof t!=="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,r);break e}ve=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):Fp(e,a,o)}return}ve=!0}function Bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var i=a[n];if(i!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:Te(e,t,n,i,a,null)}}r&&Te(e,t,"srcSet",a.srcSet,a,null),o&&Te(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var s=n=i=r=null,l=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var d=a[o];if(d!=null)switch(o){case"name":r=d;break;case"type":i=d;break;case"checked":l=d;break;case"defaultChecked":u=d;break;case"value":n=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(M(137,t));break;default:Te(e,t,o,d,a,null)}}E_(e,n,s,l,u,i,r,!1);return;case"select":pe("invalid",e),o=i=n=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":n=s;break;case"defaultValue":i=s;break;case"multiple":o=s;default:Te(e,t,r,s,a,null)}t=n,a=i,e.multiple=!!o,t!=null?cl(e,!!o,t,!1):a!=null&&cl(e,!!o,a,!0);return;case"textarea":pe("invalid",e),n=r=o=null;for(i in a)if(a.hasOwnProperty(i)&&(s=a[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":r=s;break;case"children":n=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(M(91));break;default:Te(e,t,i,s,a,null)}A_(e,o,r,n);return;case"option":for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Te(e,t,l,o,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(o=0;o<Fc.length;o++)pe(Fc[o],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:Te(e,t,u,o,a,null)}return;default:if(Sb(t)){for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!==void 0&&ib(e,t,d,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&Te(e,t,s,o,a,null))}function r6(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,i=null,s=null,l=null,u=null,d=null;for(f in a){var m=a[f];if(a.hasOwnProperty(f)&&m!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":l=m;default:o.hasOwnProperty(f)||Te(e,t,f,null,o,m)}}for(var p in o){var f=o[p];if(m=a[p],o.hasOwnProperty(p)&&(f!=null||m!=null))switch(p){case"type":f!==m&&(ve=!0),n=f;break;case"name":f!==m&&(ve=!0),r=f;break;case"checked":f!==m&&(ve=!0),u=f;break;case"defaultChecked":f!==m&&(ve=!0),d=f;break;case"value":f!==m&&(ve=!0),i=f;break;case"defaultValue":f!==m&&(ve=!0),s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(M(137,t));break;default:f!==m&&Te(e,t,p,f,o,m)}}gv(e,i,s,l,u,d,n,r);return;case"select":f=i=s=p=null;for(n in a)if(l=a[n],a.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":f=l;default:o.hasOwnProperty(n)||Te(e,t,n,null,o,l)}for(r in o)if(n=o[r],l=a[r],o.hasOwnProperty(r)&&(n!=null||l!=null))switch(r){case"value":n!==l&&(ve=!0),p=n;break;case"defaultValue":n!==l&&(ve=!0),s=n;break;case"multiple":n!==l&&(ve=!0),i=n;default:n!==l&&Te(e,t,r,n,o,l)}t=s,a=i,o=f,p!=null?cl(e,!!a,p,!1):!!o!==!!a&&(t!=null?cl(e,!!a,t,!0):cl(e,!!a,a?[]:"",!1));return;case"textarea":f=p=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Te(e,t,s,null,o,r)}for(i in o)if(r=o[i],n=a[i],o.hasOwnProperty(i)&&(r!=null||n!=null))switch(i){case"value":r!==n&&(ve=!0),p=r;break;case"defaultValue":r!==n&&(ve=!0),f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(M(91));break;default:r!==n&&Te(e,t,i,r,o,n)}N_(e,p,f);return;case"option":for(var g in a)if(p=a[g],a.hasOwnProperty(g)&&p!=null&&!o.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Te(e,t,g,null,o,p)}for(l in o)if(p=o[l],f=a[l],o.hasOwnProperty(l)&&p!==f&&(p!=null||f!=null))switch(l){case"selected":p!==f&&(ve=!0),e.selected=p&&typeof p!=="function"&&typeof p!=="symbol";break;default:Te(e,t,l,p,o,f)}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 y in a)p=a[y],a.hasOwnProperty(y)&&p!=null&&!o.hasOwnProperty(y)&&Te(e,t,y,null,o,p);for(u in o)if(p=o[u],f=a[u],o.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(M(137,t));break;default:Te(e,t,u,p,o,f)}return;default:if(Sb(t)){for(var b in a)p=a[b],a.hasOwnProperty(b)&&p!==void 0&&!o.hasOwnProperty(b)&&ib(e,t,b,void 0,o,p);for(d in o)p=o[d],f=a[d],!o.hasOwnProperty(d)||p===f||p===void 0&&f===void 0||ib(e,t,d,p,o,f);return}}for(var h in a)p=a[h],a.hasOwnProperty(h)&&p!=null&&!o.hasOwnProperty(h)&&Te(e,t,h,null,o,p);for(m in o)p=o[m],f=a[m],!o.hasOwnProperty(m)||p===f||p==null&&f==null||Te(e,t,m,p,o,f)}function FR(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function n6(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],n=r.transferSize,i=r.initiatorType,s=r.duration;if(n&&s&&FR(i)){i=0,s=r.responseEnd;for(o+=1;o<a.length;o++){var l=a[o],u=l.startTime;if(u>s)break;var{transferSize:d,initiatorType:m}=l;d&&FR(m)&&(l=l.responseEnd,i+=d*(l<s?1:(s-u)/(l-u)))}if(--o,t+=8*(n+i)/(r.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Uc(e){return e.nodeType===9?e:e.ownerDocument}function HR(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 z2(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 B2(e,t,a,o){return a=Uc(a).createElement(e),a[Dt]=o,a[wa]=t,Bt(a,e,t),It(a),a}function ub(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}function i6(){var e=window.event;if(e&&e.type==="popstate"){if(e===tv)return!1;return tv=e,!0}return tv=null,!1}function u6(e){setTimeout(function(){throw e})}function Zn(e){return e==="head"}function qR(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),Nl(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")ov(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ov(a);for(var n=a.firstChild;n;){var{nextSibling:i,nodeName:s}=n;n[Yc]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=i}}else a==="body"&&ov(e.ownerDocument.body);a=r}while(a);Nl(t)}function $R(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function F2(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var r=o=0;r<t.length;r++){var n=t[r];0<n.width&&0<n.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function H2(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a==="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a==="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a==="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a==="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t==="boolean"?"":t)))}function U2(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function cb(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return U2(t,a,e)}function c6(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+20000,t.y+20000,t.width,t.height);var a=getComputedStyle(e);return U2(t,a,e)}function d6(e){return e.documentElement.clientHeight}function f6(e){this.addEventListener("load",e),this.addEventListener("error",e)}function p6(e,t,a,o,r,n,i,s,l){var u=t.nodeType===9?t:t.ownerDocument;try{var d=u.startViewTransition({update:function(){var p=u.defaultView,f=p.navigation&&p.navigation.transition,g=u.fonts.status;o();var y=[];if(g==="loaded"&&(d6(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),g=y.length,e!==null)for(var b=e.suspenseyImages,h=0,x=0;x<b.length;x++){var v=b[x];if(!v.complete){var w=v.getBoundingClientRect();if(0<w.bottom&&0<w.right&&w.top<p.innerHeight&&w.left<p.innerWidth){if(h+=J2(v),h>am){y.length=g;break}v=new Promise(f6.bind(v)),y.push(v)}}}if(0<y.length)return p=Promise.race([Promise.all(y),new Promise(function(C){return setTimeout(C,500)})]).then(r,r),(f?Promise.allSettled([f.finished,p]):p).then(n,n);if(r(),f)return f.finished.then(n,n);n()},types:a});u.__reactViewTransition=d;var m=[];return d.ready.then(function(){for(var p=u.documentElement.getAnimations({subtree:!0}),f=0;f<p.length;f++){var g=p[f],y=g.effect,b=y.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){m.push(g),g=y.getKeyframes();for(var h=b=void 0,x=!0,v=0;v<g.length;v++){var w=g[v],C=w.width;if(b===void 0)b=C;else if(b!==C){x=!1;break}if(C=w.height,h===void 0)h=C;else if(h!==C){x=!1;break}delete w.width,delete w.height,w.transform==="none"&&delete w.transform}x&&b!==void 0&&h!==void 0&&(y.setKeyframes(g),x=getComputedStyle(y.target,y.pseudoElement),x.width!==b||x.height!==h)&&(x=g[0],x.width=b,x.height=h,x=g[g.length-1],x.width=b,x.height=h,y.setKeyframes(g))}}i()},function(p){u.__reactViewTransition===d&&(u.__reactViewTransition=null);try{if(typeof p==="object"&&p!==null)switch(p.name){case"InvalidStateError":if(p.message==="View transition was skipped because document visibility state is hidden."||p.message==="Skipping view transition because document visibility state has become hidden."||p.message==="Skipping view transition because viewport size changed."||p.message==="Transition was aborted because of invalid state")p=null}p!==null&&l(p)}finally{o(),r(),i()}}),d.finished.finally(function(){for(var p=0;p<m.length;p++)m[p].cancel();u.__reactViewTransition===d&&(u.__reactViewTransition=null),s()}),d}catch(p){return o(),r(),i(),null}}function zi(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}function G2(e){return{name:e,group:new zi("group",e),imagePair:new zi("image-pair",e),old:new zi("old",e),new:new zi("new",e)}}function Ha(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function m6(e,t,a,o){return yt(e).addEventListener(t,a,o),!1}function h6(e,t,a,o){return yt(e).removeEventListener(t,a,o),!1}function Rl(e){return e!=null&&typeof e!=="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function VR(e){return e==null?"c=0":typeof e==="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function q2(e,t,a,o){if(e.length===0)return-1;o=VR(o);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===t&&n.listener===a&&VR(n.optionsOrUseCapture)===o)return r}return-1}function $2(e,t){if(e.tag===6)return!1;return e=yt(e),R6(e,t)}function u0(e,t){return t.push(e),!1}function g6(e,t){if(e.tag===6)return!1;return e=yt(e),e===t||e.contains(t)?(t.blur(),!0):!1}function y6(e,t){if(e.tag===6)return!1;return e=yt(e),t.observe(e),!1}function x6(e,t){if(e.tag===6)return!1;return e=yt(e),t.unobserve(e),!1}function v6(e,t,a){So.push({fragmentInstance:e,observer:t,instance:a}),av||(av=!0,_6(function(){av=!1;var o=So;So=[];for(var r=0;r<o.length;r++){var n=o[r];n.observer.unobserve(n.instance)}}))}function b6(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=yt(e),t.push.apply(t,e.getClientRects());return!1}function w6(e,t,a,o,r){var n=Oi(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!n)e:{for(;n!==null;){if(n.tag===7&&(n===t||n.alternate===t)){a=!0;break e}n=n.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=r.ownerDocument,r===n||r===n.documentElement||r===n.body;e:{n=t;for(t=Wi(t);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==t&&n.alternate!==t)){n=!0;break e}n=n.return}n=!1}return n}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!n)&&!(t=n===a)&&(t=nv(a,n,RI),t===null?t=!1:(ba(t,!0,W3,n,a),n=Ws,Ws=null,t=n!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!n)&&!(t=n===o)&&(t=nv(o,n,RI),t===null?t=!1:(ba(t,!0,Q3,n,o),n=Ws,rv=Ws=null,t=n!==null)),t):!1}function ZR(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function S6(e,t){return e=yt(e),V2(e,t),!1}function V2(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Z2(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.addEventListener(r.type,r.attachedListener,Rl(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){for(var i=0,s=0;s<So.length;s++){var l=So[s];if(l.fragmentInstance!==t||l.observer!==n||l.instance!==e)So[i++]=l}So.length=i,n.observe(e)}),V2(e,t))}function L6(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.removeEventListener(r.type,r.attachedListener,Rl(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){typeof n.rootMargin==="string"?v6(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function db(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":db(a),Om(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function C6(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[Yc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=oo(e.nextSibling),e===null)break}return null}function k6(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=oo(e.nextSibling),e===null)return null}return e}function K2(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=oo(e.nextSibling),e===null)return null}return e}function fb(e){return e.data==="$?"||e.data==="$~"}function c0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function I6(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function oo(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}function KR(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return oo(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function jR(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function R6(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function _6(e){GR(function(){GR(function(t){return e(t)})})}function j2(e,t,a){switch(t=Uc(a),e){case"html":if(e=t.documentElement,!e)throw Error(M(452));return e;case"head":if(e=t.head,!e)throw Error(M(453));return e;case"body":if(e=t.body,!e)throw Error(M(454));return e;default:throw Error(M(451))}}function X2(e,t,a){for(var o in a){var r=a[o];a.hasOwnProperty(o)&&r!=null&&Te(e,t,o,null,o6,r)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Xo&&(e.onclick=null),Om(e)}function ov(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Om(e)}function Gc(e){if(typeof e.getRootNode==="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}function T6(){var e=zr.f(),t=Ym();return e||t}function E6(e){var t=Ml(e);t!==null&&t.tag===5&&t.type==="form"?MT(t):zr.r(e)}function Y2(e,t,a){var o=zl;if(o&&typeof t==="string"&&t){var r=eo(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a==="string"&&(r+='[crossorigin="'+a+'"]'),XR.has(r)||(XR.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Bt(t,"link",e),It(t),o.head.appendChild(t)))}}function N6(e){zr.D(e),Y2("dns-prefetch",e,null)}function A6(e,t){zr.C(e,t),Y2("preconnect",e,t)}function M6(e,t,a){zr.L(e,t,a);var o=zl;if(o&&e&&t){var r='link[rel="preload"][as="'+eo(t)+'"]';t==="image"?a&&a.imageSrcSet?(r+='[imagesrcset="'+eo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(r+='[imagesizes="'+eo(a.imageSizes)+'"]')):r+='[href="'+eo(e)+'"]':r+='[href="'+eo(e)+'"]';var n=r;switch(t){case"style":n=_l(e);break;case"script":n=Bl(e)}if(!(ro.has(n)||(e=Oe({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ro.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(ad(n))||t==="script"&&o.querySelector(od(n))))){var i=o.createElement("link");Bt(i,"link",e),t==="style"&&(i[um]=!0,i.onload=i.onerror=function(){k_(i)}),It(i),o.head.appendChild(i)}}}function D6(e,t){zr.m(e,t);var a=zl;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",r='link[rel="modulepreload"][as="'+eo(o)+'"][href="'+eo(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Bl(e)}if(!ro.has(n)&&(e=Oe({rel:"modulepreload",href:e},t),ro.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(od(n)))return}o=a.createElement("link"),Bt(o,"link",e),It(o),a.head.appendChild(o)}}}function P6(e,t,a){zr.S(e,t,a);var o=zl;if(o&&e){var r=ul(o).hoistableStyles,n=_l(e);t=t||"default";var i=r.get(n);if(!i){var s={loading:0,preload:null};if(i=o.querySelector(ad(n)))s.loading=5;else{e=Oe({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ro.get(n))&&d0(e,a);var l=i=o.createElement("link");It(l),Bt(l,"link",e),l._p=new Promise(function(u,d){l.onload=u,l.onerror=d}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,em(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:s},r.set(n,i)}}}function O6(e,t){zr.X(e,t);var a=zl;if(a&&e){var o=ul(a).hoistableScripts,r=Bl(e),n=o.get(r);n||(n=a.querySelector(od(r)),n||(e=Oe({src:e,async:!0},t),(t=ro.get(r))&&f0(e,t),n=a.createElement("script"),It(n),Bt(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function z6(e,t){zr.M(e,t);var a=zl;if(a&&e){var o=ul(a).hoistableScripts,r=Bl(e),n=o.get(r);n||(n=a.querySelector(od(r)),n||(e=Oe({src:e,async:!0,type:"module"},t),(t=ro.get(r))&&f0(e,t),n=a.createElement("script"),It(n),Bt(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function YR(e,t,a,o){var r=(r=En.current)?Gc(r):null;if(!r)throw Error(M(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=_l(a.href),t=ul(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=_l(a.href);var n=ul(r).hoistableStyles,i=n.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,i),(n=r.querySelector(ad(e)))?n._p||(i.instance=n,i.state.loading=5):(n=ro.get(e),n||(n={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ro.set(e,n)),B6(r,e,n,i.state))),t&&o===null)throw Error(M(528,""));return i}if(t&&o!==null)throw Error(M(529,""));return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Bl(a),t=ul(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(M(444,e))}}function _l(e){return'href="'+eo(e)+'"'}function ad(e){return'link[rel="stylesheet"]['+e+"]"}function W2(e){return Oe({},e,{"data-precedence":e.precedence,precedence:null})}function B6(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[um]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[um]=!0,t.onload=t.onerror=k_.bind(null,t),Bt(t,"link",a),It(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Bl(e){return'[src="'+eo(e)+'"]'}function od(e){return"script[async]"+e}function WR(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+eo(a.href)+'"]');if(o)return t.instance=o,It(o),o;var r=Oe({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),It(o),Bt(o,"style",r),em(o,a.precedence,e),t.instance=o;case"stylesheet":r=_l(a.href);var n=e.querySelector(ad(r));if(n)return t.state.loading|=4,t.instance=n,It(n),n;o=W2(a),(r=ro.get(r))&&d0(o,r),n=(e.ownerDocument||e).createElement("link"),It(n);var i=n;return i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),Bt(n,"link",o),t.state.loading|=4,em(n,a.precedence,e),t.instance=n;case"script":if(n=Bl(a.src),r=e.querySelector(od(n)))return t.instance=r,It(r),r;if(o=a,r=ro.get(n))o=Oe({},a),f0(o,r);return e=e.ownerDocument||e,r=e.createElement("script"),It(r),Bt(r,"link",o),e.head.appendChild(r),t.instance=r;case"void":return null;default:throw Error(M(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,em(o,a.precedence,e));return t.instance}function em(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,i=0;i<o.length;i++){var s=o[i];if(s.dataset.precedence===t)n=s;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function d0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function f0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function QR(e,t,a){if(tm===null){var o=new Map,r=tm=new Map;r.set(a,o)}else r=tm,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(r=0;r<a.length;r++){var n=a[r];if(!(n[Yc]||n[Dt]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=e+i;var s=o.get(i);s?s.push(n):o.set(i,[n])}}return o}function mb(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function F6(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence==="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==="string")return!0}return!1}function JR(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Q2(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function J2(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==="number"?devicePixelRatio:1)*0.25}function e_(e,t){typeof t.decode==="function"&&(e.imgCount++,t.complete||(e.imgBytes+=J2(t),e.suspenseyImages.push(t)),e=G6.bind(e),t.decode().then(e,e))}function H6(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=_l(o.href),n=t.querySelector(ad(r));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=qc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,It(n);return}n=t.ownerDocument||t,o=W2(o),(r=ro.get(r))&&d0(o,r),n=n.createElement("link"),It(n);var i=n;i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),Bt(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function U6(e,t){return e.stylesheets&&e.count===0&&om(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&om(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},60000+t);0<e.imgBytes&&am===0&&(am=62500*n6());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&om(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>am?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function eE(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)om(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function qc(){this.count--,eE(this)}function G6(){this.imgCount--,eE(this)}function om(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Am=new Map,t.forEach(q6,e),Am=null,qc.call(e))}function q6(e,t){if(!(t.state.loading&4)){var a=Am.get(e);if(a)var o=a.get(null);else{a=new Map,Am.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var i=r[n];if(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")a.set(i.dataset.precedence,i),o=i}o&&a.set(null,o)}r=t.instance,i=r.getAttribute("data-precedence"),n=a.get(i)||o,n===o&&a.set(null,r),a.set(i,r),this.count++,o=qc.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}function $6(e,t,a,o,r,n,i,s,l){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=Ax(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ax(0),this.hiddenUpdates=Ax(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function tE(e,t,a,o,r,n,i,s,l,u,d,m){return e=new $6(e,t,a,i,l,u,d,m,s),t=1,n===!0&&(t|=24),n=xa(3,null,null,t),e.current=n,n.stateNode=e,t=Ab(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},Pb(n),e}function aE(e){if(!e)return nl;return e=nl,e}function oE(e,t,a,o,r,n){r=aE(r),o.context===null?o.context=r:o.pendingContext=r,o=An(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=Mn(e,o,t),a!==null&&(va(a,e,t),wc(a,e,t))}function t_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function p0(e,t){t_(e,t),(e=e.alternate)&&t_(e,t)}function rE(e){if(e.tag===13||e.tag===31){var t=es(e,67108864);t!==null&&va(t,e,67108864),p0(e,67108864)}}function a_(e){if(e.tag===13||e.tag===31){var t=Ba();t=bb(t);var a=es(e,t);a!==null&&va(a,e,t),p0(e,t)}}function V6(e,t,a,o){var r=ae.T;ae.T=null;var n=Se.p;try{Se.p=2,m0(e,t,a,o)}finally{Se.p=n,ae.T=r}}function Z6(e,t,a,o){var r=ae.T;ae.T=null;var n=Se.p;try{Se.p=8,m0(e,t,a,o)}finally{Se.p=n,ae.T=r}}function m0(e,t,a,o){if(El){var r=hb(o);if(r===null)ev(e,t,o,Mm,a),o_(e,o);else if(j6(r,e,t,a,o))o.stopPropagation();else if(o_(e,o),t&4&&-1<K6.indexOf(e)){for(;r!==null;){var n=Ml(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Ai(n.pendingLanes);if(i!==0){var s=n;s.pendingLanes|=2;for(s.entangledLanes|=2;i;){var l=1<<31-za(i);s.entanglements[1]|=l,i&=~l}ar(n),(we&6)===0&&(Rm=Pa()+500,td(0,!1))}}break;case 31:case 13:s=es(n,2),s!==null&&va(s,n,2),Ym(),p0(n,2)}if(n=hb(o),n===null&&ev(e,t,o,Mm,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else ev(e,t,o,null,a)}}function hb(e){return e=Lb(e),h0(e)}function h0(e){if(Mm=null,e=Oi(e),e!==null){var t=Zc(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=u_(t),e!==null)return e;e=null}else if(a===31){if(e=c_(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Mm=e,null}function nE(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(s4()){case g_:return 2;case y_:return 8;case lm:case l4:return 32;case x_:return 268435456;default:return 32}default:return 32}}function o_(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":$c.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vc.delete(t.pointerId)}}function sc(e,t,a,o,r,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Ml(t),t!==null&&rE(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e}function j6(e,t,a,o,r){switch(t){case"focusin":return zn=sc(zn,e,t,a,o,r),!0;case"dragenter":return Bn=sc(Bn,e,t,a,o,r),!0;case"mouseover":return Fn=sc(Fn,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return $c.set(n,sc($c.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,Vc.set(n,sc(Vc.get(n)||null,e,t,a,o,r)),!0}return!1}function iE(e){var t=Oi(e.target);if(t!==null){var a=Zc(t);if(a!==null){if(t=a.tag,t===13){if(t=u_(a),t!==null){e.blockedOn=t,NI(e.priority,function(){a_(a)});return}}else if(t===31){if(t=c_(a),t!==null){e.blockedOn=t,NI(e.priority,function(){a_(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=hb(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);yv=o,a.target.dispatchEvent(o),yv=null}else return t=Ml(a),t!==null&&rE(t),e.blockedOn=a,!1;t.shift()}return!0}function r_(e,t,a){rm(e)&&a.delete(t)}function X6(){gb=!1,zn!==null&&rm(zn)&&(zn=null),Bn!==null&&rm(Bn)&&(Bn=null),Fn!==null&&rm(Fn)&&(Fn=null),$c.forEach(r_),Vc.forEach(r_)}function zp(e,t){e.blockedOn===t&&(e.blockedOn=null,gb||(gb=!0,$s(qs,X6)))}function n_(e){Bp!==e&&(Bp=e,$s(qs,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!=="function")if(h0(o||a)===null)continue;else break;var n=Ml(a);n!==null&&(e.splice(t,3),t-=3,Mv(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function Nl(e){function t(l){return zp(l,e)}zn!==null&&zp(zn,e),Bn!==null&&zp(Bn,e),Fn!==null&&zp(Fn,e),$c.forEach(t),Vc.forEach(t);for(var a=0;a<Ln.length;a++){var o=Ln[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ln.length&&(a=Ln[0],a.blockedOn===null);)iE(a),a.blockedOn===null&&Ln.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],i=r[wa]||null;if(typeof n==="function")i||n_(a);else if(i){var s=null;if(n&&n.hasAttribute("formAction")){if(r=n,i=n[wa]||null)s=i.formAction;else if(h0(r)!==null)continue}else s=i.action;typeof s==="function"?a[o+1]=s:(a.splice(o,3),o-=3),n_(a)}}}function sE(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function g0(e){this._internalRoot=e}function Jm(e){this._internalRoot=e}var Dm,s_,Ws=null,rv=null,Oe,J3,Sp,lc,Qs,m_,iv,h_,jo,yb,sv,lv,xb,wn,uv,e4,t4,cv,a4,_I,o4,uc,ae,Se,Bi,fv,Js=-1,Qo,Ec,En,nm,_x,TI,Tx=!1,mv,vb,Nx,n4,i4,Pa,s4,g_,y_,lm,l4,x_,u4,c4,Kc=null,Oa=null,za,d4,f4,Lp=256,Cp=262144,kp=4194304,Pr,Dt,wa,Al,AI,g4,y4,MI,Yc,um,I_,R_,x4,DI,PI,ve=!1,w4,S4,L4,C4,yv=null,el=null,dl=null,Dx=!1,Tr,xv=!1,Mi,kn=null,Cb=null,Up=null,Vn,zm,Wc,k4,Px,Ox,rc,Bm,HI,I4,R4,_4,zx,T4,E4,N4,A4,M4,UI,D4,P4,O4,B4,F4,H4,GI,U4,G4,q4,$4,V4,Z4,K4,j4,X4,Y4,W4,Ib,yc=null,Q4,O_,qI,$I=!1,tl=!1,tF,xc=null,Ac=null,H_=!1,dc,fc,qp,Fa,lF,al=null,bv=null,vc=null,wv=!1,ol,Bx,$_,V_,Z_,K_,uF,cF,dF,j_,X_,Sv,fF=0,cm,Wa,rl=0,_b=0,nl,QI,il,sl=0,fm=null,Dc=0,Qa,Ja=0,Hn=null,Yo=1,Wo="",Rt=null,He=null,le=!1,Nn=null,ao=!1,Lv,Cv,ts=null,Ir=null,mF,hF,gF,lt,pc=null,bc=null,Iv=0,Zi=0,fl=null,aR,Hi,Dl,Db,qm,hm,Ui=null,pl=null,Oc=0,Ki,nT,Sn=!1,_v=!1,Gn,gm,Ft,Vt=null,zt,Nr=0,re=null,Ne=null,st=null,xm=!1,ml=!1,ji=!1,vm=0,Bc=0,hl=null,bF=0,bm,FT,HT,_F,Dv,Yb,ut=!1,zv,Cm=!1,Ma=null,Ko=null,ya=0,Ct=!1,Ce=!1,qo=!1,Xx=!1,ER,kt=null,$o=!1,mc=!1,km=!1,Kv=!1,Ze=null,ha=!1,wo=null,Pi=8192,zF,BF,we=0,Pe=null,me=null,ge=0,_e=0,Ea=null,Rn=!1,Ol=!1,r0=!1,Dr=0,Qe=0,$n=0,Gi=0,Im=0,Da=0,Ll=0,_c=null,ga=null,Yv=!1,Xm=0,v2=0,Rm=1/0,_m=null,On=null,Ke=0,Lo=null,Yi=null,Jo=0,Wv=0,Qv=null,b2=null,gl=null,yl=null,xl=null,Tc=0,Jp=null,Il=null,Xs=null,ob=!1,Em=!1,Qx=!1,Tn=0,gc,rb,nb,hc,Fc,JF,Op,t6,a6,o6,sb=null,lb=null,tv=null,l0,s6,UR,GR,l6,So,av=!1,pb=null,ro,XR,zr,zl,tm=null,am=0,Am=null,Tl,El=!0,Mm=null,gb=!1,zn=null,Bn=null,Fn=null,$c,Vc,Ln,K6,Bp=null,i_,Y6,Ys,lE=function(e,t){if(!l_(e))throw Error(M(299));var a=!1,o="",r=UT,n=GT,i=qT;return t!==null&&t!==void 0&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=tE(e,1,!1,null,null,a,o,null,r,n,i,sE),e[Al]=t.current,s0(e),new g0(t)},uE=function(e,t,a){if(!l_(e))throw Error(M(299));var o=!1,r="",n=UT,i=GT,s=qT,l=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),t=tE(e,1,!0,t,a!=null?a:null,o,r,l,n,i,s,sE),t.context=aE(null),a=t.current,o=Ba(),o=bb(o),r=An(o),r.callback=null,Mn(a,r,o),a=o,t.current.lanes=a,Xc(t,a),ar(t),e[Al]=t.current,s0(e),new Jm(t)},cE="19.3.0";var dE=Rg(()=>{oI();Dm=U(V(),1),s_=U(wp(),1);Oe=Object.assign,J3=Symbol.for("react.element"),Sp=Symbol.for("react.transitional.element"),lc=Symbol.for("react.portal"),Qs=Symbol.for("react.fragment"),m_=Symbol.for("react.strict_mode"),iv=Symbol.for("react.profiler"),h_=Symbol.for("react.consumer"),jo=Symbol.for("react.context"),yb=Symbol.for("react.forward_ref"),sv=Symbol.for("react.suspense"),lv=Symbol.for("react.suspense_list"),xb=Symbol.for("react.memo"),wn=Symbol.for("react.lazy"),uv=Symbol.for("react.activity"),e4=Symbol.for("react.legacy_hidden"),t4=Symbol.for("react.memo_cache_sentinel"),cv=Symbol.for("react.view_transition"),a4=Symbol.for("react.recoverable"),_I=Symbol.iterator;o4=Symbol.for("react.client.reference");uc=Array.isArray,ae=Dm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=s_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bi={pending:!1,data:null,method:null,action:null},fv=[];Qo=tr(null),Ec=tr(null),En=tr(null),nm=tr(null);mv=Object.prototype.hasOwnProperty,vb=$s,Nx=Lx,n4=Ix,i4=kx,Pa=Go,s4=Cx,g_=bx,y_=Sx,lm=qs,l4=wx,x_=vx,u4=void 0,c4=void 0;za=Math.clz32?Math.clz32:p4,d4=Math.log,f4=Math.LN2;Pr=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Pr,wa="__reactProps$"+Pr,Al="__reactContainer$"+Pr,AI="__reactEvents$"+Pr,g4="__reactListeners$"+Pr,y4="__reactHandles$"+Pr,MI="__reactResources$"+Pr,Yc="__reactMarker$"+Pr,um="__reactLoad$"+Pr;I_=new Set,R_={};x4=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]*$"),DI={},PI={};w4=/[\\n"\\\\]/g;S4=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(" "));L4=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"],["maskType","mask-type"],["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"]]),C4=/^[\\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;Tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u");if(Tr)try{Mi={},Object.defineProperty(Mi,"passive",{get:function(){xv=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch(e){xv=!1}Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zm=ta(Vn),Wc=Oe({},Vn,{view:0,detail:0}),k4=ta(Wc),Bm=Oe({},Wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kb,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){if("movementX"in e)return e.movementX;return e!==rc&&(rc&&e.type==="mousemove"?(Px=e.screenX-rc.screenX,Ox=e.screenY-rc.screenY):Ox=Px=0,rc=e),Px},movementY:function(e){return"movementY"in e?e.movementY:Ox}}),HI=ta(Bm),I4=Oe({},Bm,{dataTransfer:0}),R4=ta(I4),_4=Oe({},Wc,{relatedTarget:0}),zx=ta(_4),T4=Oe({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),E4=ta(T4),N4=Oe({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A4=ta(N4),M4=Oe({},Vn,{data:0}),UI=ta(M4),D4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P4={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"},O4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};B4=Oe({},Wc,{key:function(e){if(e.key){var t=D4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kb,charCode:function(e){return e.type==="keypress"?Gp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),F4=ta(B4),H4=Oe({},Bm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),GI=ta(H4),U4=Oe({},Vn,{submitter:0}),G4=ta(U4),q4=Oe({},Wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kb}),$4=ta(q4),V4=Oe({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z4=ta(V4),K4=Oe({},Bm,{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}),j4=ta(K4),X4=Oe({},Vn,{newState:0,oldState:0,source:0}),Y4=ta(X4),W4=[9,13,27,32],Ib=Tr&&"CompositionEvent"in window;Tr&&"documentMode"in document&&(yc=document.documentMode);Q4=Tr&&"TextEvent"in window&&!yc,O_=Tr&&(!Ib||yc&&8<yc&&11>=yc),qI=String.fromCharCode(32);tF={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};if(Tr){if(Tr){if(fc="oninput"in document,!fc)qp=document.createElement("div"),qp.setAttribute("oninput","return;"),fc=typeof qp.oninput==="function";dc=fc}else dc=!1;H_=dc&&(!document.documentMode||9<document.documentMode)}Fa=typeof Object.is==="function"?Object.is:sF;lF=Tr&&"documentMode"in document&&11>=document.documentMode;ol={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},Bx={},$_={};Tr&&($_=document.createElement("div").style,("AnimationEvent"in window)||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),("TransitionEvent"in window)||delete ol.transitionend.transition);V_=Ji("animationend"),Z_=Ji("animationiteration"),K_=Ji("animationstart"),uF=Ji("transitionrun"),cF=Ji("transitionstart"),dF=Ji("transitioncancel"),j_=Ji("transitionend"),X_=new Map,Sv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Sv.push("scrollEnd");cm=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)},Wa=[];nl={};QI=new WeakMap;il=[],Qa=[];Lv=Error(M(519));Cv=tr(null);mF=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},hF=$s,gF=qs,lt={$$typeof:jo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};aR=ae.S;ae.S=function(e,t){if(v2=Pa(),typeof t==="object"&&t!==null&&typeof t.then==="function"&&xF(e,t),pc!==null)for(var a=Il;a!==null;)eR(a,pc),a=a.next;if(a=e.types,a!==null){for(var o=Il;o!==null;)eR(o,a),o=o.next;if(Zi!==0){o=pc,o===null&&(o=pc=[]);for(var r=0;r<a.length;r++){var n=a[r];o.indexOf(n)===-1&&o.push(n)}}}aR!==null&&aR(e,t)};Hi=tr(null);Dl=Error(M(460)),Db=Error(M(474)),qm=Error(M(542)),hm={then:function(){}};Ki=rT(!0),nT=rT(!1);Gn=tr(null),gm=tr(0);Ft=tr(null);zt=tr(0);bm={readContext:Pt,use:Vm,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We,useEffectEvent:We},FT={readContext:Pt,use:Vm,useCallback:function(e,t){return ea().memoizedState=[e,t===void 0?null:t],e},useContext:Pt,useEffect:fR,useImperativeHandle:function(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,jp(4194308,4,IT.bind(null,t,e),a)},useLayoutEffect:function(e,t){return jp(4194308,4,e,t)},useInsertionEffect:function(e,t){jp(4,2,e,t)},useMemo:function(e,t){var a=ea();t=t===void 0?null:t;var o=e();if(ji){Cn(!0);try{e()}finally{Cn(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=ea();if(a!==void 0){var r=a(t);if(ji){Cn(!0);try{a(t)}finally{Cn(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=RF.bind(null,re,e),[o.memoizedState,e]},useRef:function(e){var t=ea();return e={current:e},t.memoizedState=e},useState:function(e){e=Nv(e);var t=e.queue,a=OT.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Zb,useDeferredValue:function(e,t){var a=ea();return Kb(a,e,t)},useTransition:function(){var e=Nv(!1);return e=NT.bind(null,re,e.queue,!0,!1),ea().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=re,r=ea();if(le){if(a===void 0)throw Error(M(407));a=a()}else{if(a=t(),Pe===null)throw Error(M(349));(ge&127)!==0||fT(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,fR(mT.bind(null,o,n,e),[e]),o.flags|=2048,Sl(9,{destroy:void 0},pT.bind(null,o,n,a,t),null),a},useId:function(){var e=ea(),t=Pe.identifierPrefix;if(le){var a=Wo,o=Yo;a=(o&~(1<<32-za(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=vm++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=bF++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:jb,useFormState:uR,useActionState:uR,useOptimistic:function(e){var t=ea();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Xb.bind(null,re,!0,a),a.dispatch=t,[e,t]},useMemoCache:qb,useCacheRefresh:function(){return ea().memoizedState=IF.bind(null,re)},useEffectEvent:function(e){var t=ea(),a={impl:e};return t.memoizedState=a,function(){if((we&2)!==0)throw Error(M(440));return a.impl.apply(void 0,arguments)}}},HT={readContext:Pt,use:Vm,useCallback:_T,useContext:Pt,useEffect:Vb,useImperativeHandle:RT,useInsertionEffect:CT,useLayoutEffect:kT,useMemo:TT,useReducer:Kp,useRef:ST,useState:function(){return Kp(Ar)},useDebugValue:Zb,useDeferredValue:function(e,t){var a=ot();return ET(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Kp(Ar)[0],t=ot().memoizedState;return[typeof e==="boolean"?e:Jc(e),t]},useSyncExternalStore:dT,useId:DT,useHostTransitionStatus:jb,useFormState:cR,useActionState:cR,useOptimistic:function(e,t){var a=ot();return yT(a,Ne,e,t)},useMemoCache:qb,useCacheRefresh:PT,useEffectEvent:LT},_F={readContext:Pt,use:Vm,useCallback:_T,useContext:Pt,useEffect:Vb,useImperativeHandle:RT,useInsertionEffect:CT,useLayoutEffect:kT,useMemo:TT,useReducer:qx,useRef:ST,useState:function(){return qx(Ar)},useDebugValue:Zb,useDeferredValue:function(e,t){var a=ot();return Ne===null?Kb(a,e,t):ET(a,Ne.memoizedState,e,t)},useTransition:function(){var e=qx(Ar)[0],t=ot().memoizedState;return[typeof e==="boolean"?e:Jc(e),t]},useSyncExternalStore:dT,useId:DT,useHostTransitionStatus:jb,useFormState:dR,useActionState:dR,useOptimistic:function(e,t){var a=ot();if(Ne!==null)return yT(a,Ne,e,t);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:qb,useCacheRefresh:PT,useEffectEvent:LT};Dv={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ba(),r=An(o);r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=Mn(e,r,o),t!==null&&(va(t,e,o),wc(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ba(),r=An(o);r.tag=1,r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=Mn(e,r,o),t!==null&&(va(t,e,o),wc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ba(),o=An(a);o.tag=2,t!==void 0&&t!==null&&(o.callback=t),t=Mn(e,o,a),t!==null&&(va(t,e,a),wc(t,e,a))}};Yb=Error(M(461));zv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};ER=typeof WeakSet==="function"?WeakSet:Set;zF={getCacheForType:function(e){var t=Pt(lt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Pt(lt).controller.signal}},BF=typeof WeakMap==="function"?WeakMap:Map;for(hc=0;hc<Sv.length;hc++)gc=Sv[hc],rb=gc.toLowerCase(),nb=gc[0].toUpperCase()+gc.slice(1),Co(rb,"on"+nb);Co(V_,"onAnimationEnd");Co(Z_,"onAnimationIteration");Co(K_,"onAnimationStart");Co("dblclick","onDoubleClick");Co("focusin","onFocus");Co("focusout","onBlur");Co(uF,"onTransitionRun");Co(cF,"onTransitionStart");Co(dF,"onTransitionCancel");Co(j_,"onTransitionEnd");bl("onMouseEnter",["mouseout","mouseover"]);bl("onMouseLeave",["mouseout","mouseover"]);bl("onPointerEnter",["pointerout","pointerover"]);bl("onPointerLeave",["pointerout","pointerover"]);Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));Fc="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(" "),JF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc));Op="_reactListening"+Math.random().toString(36).slice(2);t6=/\\r\\n?/g,a6=/\\u0000|\\uFFFD/g;o6={};l0=typeof setTimeout==="function"?setTimeout:void 0,s6=typeof clearTimeout==="function"?clearTimeout:void 0,UR=typeof Promise==="function"?Promise:void 0,GR=typeof requestAnimationFrame==="function"?requestAnimationFrame:l0,l6=typeof queueMicrotask==="function"?queueMicrotask:typeof UR<"u"?function(e){return UR.resolve(null).then(e).catch(u6)}:l0;zi.prototype.animate=function(e,t){return t=typeof t==="number"?{duration:t}:Oe({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};zi.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],r=0;r<a.length;r++){var n=a[r].effect;n!==null&&n.target===e&&n.pseudoElement===t&&o.push(a[r])}return o};zi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};Ha.prototype.addEventListener=function(e,t,a){var o=null,r=null;if(a!=null&&typeof a!=="boolean"&&(o=a.signal||null,o!==null&&o.aborted))return;this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(q2(n,e,t,a)===-1){var i=this,s=t;a!=null&&typeof a!=="boolean"&&a.once===!0&&(s=function(l){i.removeEventListener(e,t,a),typeof t==="function"?t.call(this,l):t.handleEvent(l)}),o!==null&&(r=i.removeEventListener.bind(i,e,t,a),o.addEventListener("abort",r,{once:!0}),r=o.removeEventListener.bind(o,"abort",r)),o=Rl(a),n.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:s,cleanup:r}),ba(this._fragmentFiber.child,!1,m6,e,s,o)}this._eventListeners=n};Ha.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=q2(o,e,t,a),t!==-1)){var r=o[t];a=r.attachedListener;var n=r.cleanup;r=Rl(r.optionsOrUseCapture),ba(this._fragmentFiber.child,!1,h6,e,a,r),o.splice(t,1),n!==null&&n()}};Ha.prototype.dispatchEvent=function(e){var t=Wi(this._fragmentFiber);if(t===null)return!0;t=yt(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var n=a[r];o.addEventListener(n.type,n.attachedListener,Rl(n.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(r=0;r<a.length;r++)n=a[r],o.removeEventListener(n.type,n.attachedListener,Rl(n.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};Ha.prototype.focus=function(e){ba(this._fragmentFiber.child,!0,$2,e,void 0,void 0)};Ha.prototype.focusLast=function(e){var t=[];ba(this._fragmentFiber.child,!0,u0,t,void 0,void 0);for(var a=t.length-1;0<=a&&!$2(t[a],e);a--);};Ha.prototype.blur=function(){var e=Wi(this._fragmentFiber);e!==null&&(e=yt(e),e=Uc(e).activeElement,e!==null&&ba(this._fragmentFiber.child,!1,g6,e,void 0,void 0))};Ha.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),ba(this._fragmentFiber.child,!1,y6,e,void 0,void 0)};Ha.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),ba(this._fragmentFiber.child,!1,x6,e,void 0,void 0);for(var a=t=0;a<So.length;a++){var o=So[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):So[t++]=o}So.length=t}};So=[];Ha.prototype.getClientRects=function(){var e=[];return ba(this._fragmentFiber.child,!1,b6,e,void 0,void 0),e};Ha.prototype.getRootNode=function(e){var t=Wi(this._fragmentFiber);return t===null?this:yt(t).getRootNode(e)};Ha.prototype.compareDocumentPosition=function(e){var t=Wi(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];ba(this._fragmentFiber.child,!1,u0,a,void 0,void 0);var o=yt(t);if(a.length===0){if(a=o,II(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var r=o=a.compareDocumentPosition(e);return a===e?r=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=f_(t)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=yt(a).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=yt(a[0]),r=yt(a[a.length-1]);var n=II(this._fragmentFiber)?t.parentElement:o;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),s=r.compareDocumentPosition(e),l=i&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=o&&n&&i&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||n&&r===e||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!n&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||w6(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};Ha.prototype.scrollIntoView=function(e){if(typeof e==="object")throw Error(M(566));var t=[];ba(this._fragmentFiber.child,!1,u0,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=f_(this._fragmentFiber);if(o=a?o[1]||o[0]||Wi(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=yt(o),ZR(e,a);return}if(o=yt(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var r=t[o];r.tag===6?(r=yt(r),ZR(r,a)):yt(r).scrollIntoView(e),o+=a?-1:1}};ro=new Map,XR=new Set;zr=Se.d;Se.d={f:T6,r:E6,D:N6,C:A6,L:M6,m:D6,X:O6,S:P6,M:z6};zl=typeof document>"u"?null:document;Tl={$$typeof:jo,Provider:null,Consumer:null,_currentValue:Bi,_currentValue2:Bi,_threadCount:0};$c=new Map,Vc=new Map,Ln=[],K6="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(" ");Jm.prototype.render=g0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));var a=t.current,o=Ba();oE(a,o,e,t,null,null)};Jm.prototype.unmount=g0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;oE(e.current,2,null,e,null,null),Ym(),t[Al]=null}};Jm.prototype.unstable_scheduleHydration=function(e){if(e){var t=C_();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ln.length&&t!==0&&t<Ln[a].priority;a++);Ln.splice(a,0,e),a===0&&iE(e)}};i_=Dm.version;if(i_!=="19.3.0")throw Error(M(527,i_,"19.3.0"));Se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error(M(188));throw e=Object.keys(e).join(","),Error(M(268,e))}return e=Y3(t),e=e!==null?d_(e):null,e=e===null?null:e.stateNode,e};Y6={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ys.isDisabled&&Ys.supportsFiber)try{Kc=Ys.inject(Y6),Oa=Ys}catch(e){}}});var mE=_f(function(ioe,pE){dE();function fE(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fE)}catch(e){console.error(e)}}fE(),pE.exports=y0});var CC=U(V(),1),Ef=CC.createContext(null);var kC=U(V(),1);function xe(e){let t=kC.useContext(Ef);if(!t)kB(e);return t}function kB(e){}var te=!1,IC=void 0;function ho(e){return e[e.length-1]}function tn(e,t){if(typeof e==="function")return e(t);return e}var Af=Object.prototype.hasOwnProperty;function Tu(e){for(let t in e)if(Af.call(e,t))return!0;return!1}var Eu=()=>Object.create(null),ci=(e,t)=>ja(e,t,!0);function ja(e,t,a,o=0){if(te)return t;if(e===t)return e;if(o++>500)return t;let r=Array.isArray(e)&&Array.isArray(t);if(!r&&!(Nf(e)&&Nf(t)))return t;let n=Object.keys(e),i=n.length,s=Object.keys(t),l=s.length;if(r?i!==e.length||l!==t.length||i&&ho(n)!==\`\${i-1}\`||l&&ho(s)!==\`\${l-1}\`:i!==Object.getOwnPropertyNames(e).length||l!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let u=0,d,m,p;if(r){for(;u<l;u++)if(p=u,m=e[p],d=t[p],d=m===d?m:typeof m==="object"?ja(m,d,a,o):d,d!==m)break;if(u===l&&i===l)return e}else{let g=i===l,y=!0;for(;u<l;u++){p=s[u],m=e[p];let b=t[p];d=m===b?m:typeof m==="object"?ja(m,b,a,o):b,g&&=d===m&&(n[u]===p||Af.call(e,p)),y&&=Object.is(d,b),n[u]=d}if(g)return Object.getOwnPropertySymbols(e).length?t:e;if(y)return t}let f=r?s.fill(0):a?Eu():{};for(let g=0;g<l;g++)if(p=r?g:s[g],r){if(m=e[p],g>u)d=t[p],d=m===d?m:typeof m==="object"?ja(m,d,a,o):d;f[p]=g<u?m:d}else f[p]=n[g];return f}function Nf(e){if(!e||typeof e!=="object")return!1;return(Object.getPrototypeOf(e)?.constructor??Object)===Object}function Ia(e,t,a,o){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++){let i=e[r],s=t[r];if(i!==s&&!Ia(i,s,a,o))return!1}return!0}if(Nf(e)&&Nf(t)){if(a){for(let n in t)if(o||t[n]!==void 0){if(!Ia(e[n],t[n],a,o))return!1}return!0}let r=0;if(o)r=Object.keys(e).length;else for(let n in e)if(e[n]!==void 0)r++;for(let n in t)if(o||t[n]!==void 0){if(r--===0||!Ia(e[n],t[n],a,o))return!1}return r===0}return!1}var IB=/[\\x00-\\x1f\\x7f"<>\`{}]/g;function RB(e){return e.replace(IB,(t)=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function RC(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,(a)=>{try{return decodeURI(a)}catch{return a}})}return RB(t)}var Mf=["http:","https:","mailto:","tel:"];function yr(e){if(e[0]==="/")return;if(!e.includes(":"))return;return/^[\\x00-\\x20]*([a-z][a-z\\d+.\\t\\n\\r-]*:)/i.exec(e)?.[1]?.replace(/[\\t\\n\\r]/g,"").toLowerCase()}var Pg=/^[\\x00-\\x20]*[\\\\/][\\t\\n\\r]*[\\\\/]/;function Nu(e,t){if(!e)return!1;if(Pg.test(e))return!0;let a=yr(e);return a?!t.has(a):!1}function Is(e){if(!e)return e;let t=e;if(/[%\\\\\\x00-\\x1f\\x7f]/.test(e)){let a=/%25|%5C/gi,o=0,r;t="";while((r=a.exec(e))!==null)t+=RC(e.slice(o,r.index))+r[0],o=a.lastIndex;t+=RC(o?e.slice(o):e)}return t}function _C(e){if(!/[\\s\\u0080-\\uFFFF]/.test(e))return e;return e.replace(/\\s|[^\\u0000-\\u007F]/gu,encodeURIComponent)}function TC(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function an(){throw Error("Invariant failed")}function Bo(e){return e.replace(/\\/{2,}/g,"/")}function Au(e){return e==="/"?e:e.replace(/^\\/+/,"")}function $t(e){let t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\\/+$/,""):e}function Rs(e){return $t(Au(e))}function Df(e,t){if(e?.endsWith("/")&&e!=="/"&&e!==\`\${t}/\`)return e.slice(0,-1);return e}function Mu(e,t,a="never",o){if(t.includes("//"))t=Bo(t);if(t.startsWith("/")){if(t.length===1||a==="preserve")return t;if(a==="always")return t.endsWith("/")?t:\`\${t}/\`;return t.endsWith("/")?t.slice(0,-1):t}let r=t===".",n;if(o){n=r?e:e+"\\x00"+t;let u=o.get(n);if(u)return u}let i;if(r)i=e.split("/");else{if(e.includes("//"))e=Bo(e);i=e.split("/");while(i.length>1&&ho(i)==="")i.pop();let u=t.split("/");for(let d=0,m=u.length;d<m;d++){let p=u[d];if(p===""){if(!d)i=[p];else if(d===m-1)i.push(p)}else if(p==="..")if(i.length>1)i.pop();else i=[""];else if(p===".");else i.push(p)}}if(i.length>1){if(ho(i)===""){if(a==="never")i.pop()}else if(a==="always")i.push("")}let s=i.join("/"),l=(r?Bo(s):s)||"/";if(n&&o)o.set(n,l);return l}function EC(e){let t=new Map(e.map((o)=>[encodeURIComponent(o),o])),a=new RegExp([...t.keys()].join("|").replace(/[.*()]/g,"\\\\$&"),"g");return(o)=>o.replace(a,(r)=>t.get(r)??r)}function _B(e){return e==null||e===""}function TB(e,t,a){if(typeof t!=="string")return""+(t??void 0);let o=e==="_splat";if(o&&(!t||/^[a-zA-Z0-9\\-._~!/]*$/.test(t)))return t;let r=encodeURIComponent(t);if(o)r=r.replaceAll("%2F","/");return a?a(r):r}function Du(e,t,a,o,r){let n=e.endsWith("/")?"/":"",i="";for(let s of t){if(typeof s==="string"){i+=s;continue}let[l,u,d,m]=s,p=l===2,f=p&&m!==void 0?m+n:m,g=a[u];if(l===3&&g==null)continue;if(r){if(r[u]=g,p)r["*"]=g}if(p&&_B(g)){if(d==="/"&&!f)continue;g=""}i+=d+TB(u,g,o)+(f||"")}return i+n||"/"}function on(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ca(e){return e?.isNotFound===!0}var Ra="__root__";function Og(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);if(e.href&&t.get("Location")===null)t.set("Location",e.href);let a=new Response(null,{status:e.statusCode,headers:t});if(a.options=e,e.throw)throw a;return a}function Pf(e){return e instanceof Response&&!!e.options}function _s(e){let t=new Map,a,o;return{get(r){let n=t.get(r);if(!n)return;return n.visited=!0,n.value},set(r,n){let i=t.get(r);if(i){i.value=n;return}if(t.size>=e){let l=a?.next().value;while(!l||l.visited){if(l)l.visited=!1;else a=t.values();l=a.next().value}if(l===o)a=void 0;t.delete(l.key)}let s={key:r,value:n,visited:!1};o=s,t.set(r,s)},clear(){t.clear(),a=void 0,o=void 0}}}var rn=4,AC=5;function EB(e){let t=e.names;if(t)return t;let a=[];for(let o of e)if(typeof o!=="string")a.push(o[1]);return e.names=a}function NB(e,t,a){let o=e.slice(t,a);if(o.charCodeAt(0)===36)return o.length===1?[2,"_splat","",void 0]:[1,o.slice(1),"",""];let r=o.indexOf("{");if(r>=0){let n=o.indexOf("}",r),i=o.charCodeAt(r+1)===45,s=r+(i?3:2);if(n>=0&&o.charCodeAt(s-1)===36&&(!i||s<n)){let l=o.slice(s,n);return[i?3:l?1:2,l||"_splat",o.slice(0,r),e.slice(t+n+1,l?a:e.length)]}}return o}function Ts(e,t,a,o,r,n){let i=a,s=t.fullPath??t.from,l=t.options,u=s.length,d=s.endsWith("/")?u-1:u,m=l?.caseSensitive??e,p=l?.params?.parse??l?.parseParams,f,g=n?a-1:0;if(!o||s.includes("$")){f=n?.slice()??[];let h=ho(f);if(h&&typeof h!=="string"&&h[0]===2)f[f.length-1]=[h[0],h[1],h[2],h[3]===void 0?void 0:h[3]+s.substring(a-(s[a-2]==="/"?2:1),d)],g=u}while(i<u){let h=i,x=s.indexOf("/",h),v=x===-1?u:x,w=NB(s,h,v);i=v+1;let C;if(typeof w==="string"){if(!o)continue;let I=w,L;if(m)L=o.static??=new Map;else I=w.toLowerCase(),L=o.staticInsensitive??=new Map;let k=L.get(I);if(k)C=k;else{let _=di(o);C=_,L.set(I,_)}}else{let I=w[0],L=w[2],k=w[3]??"";if(I===2)v=u,i=v+1;if(f&&g<v){if(g<h-1)f.push(s.slice(g,h-1));if(w[2]="/"+L,I===2&&w[3]!==void 0&&d<u)w[3]=k.slice(0,-1);f.push(w),g=v}if(!o)continue;let _=m&&!!(L||k);if(!m)L=L.toLowerCase(),k=k.toLowerCase();let T=I===1?o.dynamic??=[]:I===3?o.optional??=[]:o.wildcard??=[],O=I!==2&&!p&&T.find((D)=>!D.parse&&D.caseSensitive===_&&D.prefix===L&&D.suffix===k);if(O)C=O;else{let D=di(o,I,_,L,k);if(C=D,T.push(D),T.length===2)r?.push(T)}}o=C}if(f&&g<d)f.push(s.slice(g,d));let y=f?.slice();if(!o)return y;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf("/")+1)===95){let h=di(o,AC);(o.pathless??=[]).push(h),o=h}let b=(t.path||!t.children)&&!t.isRoot;if(b&&d<u){let h=di(o,rn);o.index=h,o=h}if(o.parse=p??null,o.priority=l?.params?.priority??0,!o.route){if(o.data=y,b)o.route=t}return[o,i,y]}function MC(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}if(e.prefix&&!t.prefix)return-1;if(!e.prefix&&t.prefix)return 1;if(e.suffix&&!t.suffix)return-1;if(!e.suffix&&t.suffix)return 1;if(e.caseSensitive&&!t.caseSensitive)return-1;if(!e.caseSensitive&&t.caseSensitive)return 1;return 0}function di(e,t=0,a,o,r){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:a,prefix:o,suffix:r}}function DC(e,t){let a=di(),o=[];function r(n,i,s,l){let[u,d,m]=Ts(!1,n,i,s,o,l);if(n.children)for(let p of n.children)r(p,d,u,m)}for(let n of e)r(n,1,a);for(let n of o)n.sort(MC);t.masksTree=a,t.flatCache=_s(1000)}function PC(e,t){e||="/";let a=t.flatCache.get(e);if(a!==void 0)return a;let o=zg(e,t.masksTree);return t.flatCache.set(e,o),o}function OC(e,t,a,o,r){e||="/",o||="/";let n=t?\`case\\x00\${e}\`:e,i=r.singleCache.get(n);if(!i)i=di(),Ts(t,{from:e},1,i),r.singleCache.set(n,i);return zg(o,i,a)}function zC(e,t,a=!1){let o=a?e:\`nofuzz\\x00\${e}\`,r=t.matchCache.get(o);if(r!==void 0)return r;e||="/";let n;try{n=zg(e,t.segmentTree,a)}catch(i){if(i instanceof URIError)n=null;else throw i}if(n)n.branch=Bg(n.route);return t.matchCache.set(o,n),n}function BC(e,t=!1){let a=di(),o=[],r={},n={},i=0;function s(l,u,d,m){if(l.init(i),l.id in r)an();if(r[l.id]=l,i!==0&&l.path){let y=$t(l.fullPath);if(!n[y]||l.fullPath.endsWith("/"))n[y]=l}i++;let[p,f,g]=Ts(t,l,u,d,o,m);if(l._interpolation=g,l.children)for(let y of l.children)s(y,f,p,g)}s(e,1,a);for(let l of o)l.sort(MC);return{processedTree:{segmentTree:a,singleCache:_s(1000),matchCache:_s(1000),flatCache:null,masksTree:null},routesById:r,routesByPath:n}}function zg(e,t,a=!1){let o=e.split("/"),r=MB(e,o,t,a);if(!r)return null;let[n]=FC(e,o,r);return{route:r.node.route,rawParams:n}}function FC(e,t,a){let o=AB(a.node),r=a.node.data&&EB(a.node.data),n=Object.create(null),i=a.extract?.part??0,s=a.extract?.node??0,l=a.extract?.path??0,u=a.extract?.param??0;for(;s<o.length;i++,s++,l++){let d=o[s];if(d.kind===rn)break;if(d.kind===AC){i--,l--;continue}let m=t[i],p=l;if(m)l+=m.length;if(d.kind===1||d.kind===3){let f=r[u++];if(d.kind===3&&a.skipped&1<<s){i--,l=p-1;continue}let g=d.suffix||d.prefix?m.substring(d.prefix.length,m.length-d.suffix.length):m;if(g||d.kind===1)n[f]=decodeURIComponent(g)}else if(d.kind===2){let f=d,g=e.substring(p+f.prefix.length,e.length-f.suffix.length),y=decodeURIComponent(g);n["*"]=y,n._splat=y;break}}if(a.rawParams)Object.assign(n,a.rawParams);return[n,{part:i,node:s,path:l,param:u}]}function Bg(e){let t=[e];while(e.parentRoute)e=e.parentRoute,t.push(e);return t.reverse(),t}function AB(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function MB(e,t,a,o){if(e==="/"&&a.index)return{node:a.index,skipped:0};let r=!ho(t),n=r&&e!=="/",i=t.length-(r?1:0),s=[{node:a,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;while(s.length){let d=s.pop(),{node:m,index:p,skipped:f,statics:g,dynamics:y,optionals:b}=d,{extract:h,rawParams:x}=d;if(m.kind===2&&m.route&&!zf(u,d))continue;if(m.parse){if(!NC(e,t,d))continue;x=d.rawParams,h=d.extract}if(o&&m.route&&m.kind!==rn&&zf(l,d))l=d;let v=p===i;if(v){if(m.route&&(!n||m.kind===rn||m.kind===2)&&zf(u,d))u=d;if(!m.optional&&!m.wildcard&&!m.index&&!m.pathless)continue}let w=v?void 0:t[p],C;if(v&&m.index){let I={node:m.index,index:p,skipped:f,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x},L=!0;if(m.index.parse){if(!NC(e,t,I))L=!1}if(L){if(!y&&!b&&!f&&DB(g,i))return I;if(zf(u,I))u=I}}if(m.wildcard)for(let I=m.wildcard.length-1;I>=0;I--){let L=m.wildcard[I],{prefix:k,suffix:_}=L;if(k){if(v)continue;if(!(L.caseSensitive?w:C??=w.toLowerCase()).startsWith(k))continue}if(_){if(v)continue;let T=t.slice(p).join("/"),O=T.slice(-_.length);if((L.caseSensitive?O:O.toLowerCase())!==_||T.length-_.length<k.length)continue}s.push({node:L,index:i,skipped:f,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x})}if(m.optional){let I=f|1<<m.depth+1;for(let L=m.optional.length-1;L>=0;L--){let k=m.optional[L];s.push({node:k,index:p,skipped:I,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x})}if(!v)for(let L=m.optional.length-1;L>=0;L--){let k=m.optional[L],{prefix:_,suffix:T}=k;if(_||T){let O=k.caseSensitive?w:C??=w.toLowerCase();if(_&&!O.startsWith(_))continue;if(T&&O.indexOf(T,O.length-T.length)<_.length)continue}s.push({node:k,index:p+1,skipped:f,statics:g,dynamics:y,optionals:b+Of(i,p),extract:h,rawParams:x})}}if(!v&&m.dynamic&&w)for(let I=m.dynamic.length-1;I>=0;I--){let L=m.dynamic[I],{prefix:k,suffix:_}=L;if(k||_){let T=L.caseSensitive?w:C??=w.toLowerCase();if(k&&!T.startsWith(k))continue;if(_&&T.indexOf(_,T.length-_.length)<k.length)continue}s.push({node:L,index:p+1,skipped:f,statics:g,dynamics:y+Of(i,p),optionals:b,extract:h,rawParams:x})}if(!v&&m.staticInsensitive){let I=m.staticInsensitive.get(C??=w.toLowerCase());if(I)s.push({node:I,index:p+1,skipped:f,statics:g+Of(i,p),dynamics:y,optionals:b,extract:h,rawParams:x})}if(!v&&m.static){let I=m.static.get(w);if(I)s.push({node:I,index:p+1,skipped:f,statics:g+Of(i,p),dynamics:y,optionals:b,extract:h,rawParams:x})}if(m.pathless)for(let I=m.pathless.length-1;I>=0;I--){let L=m.pathless[I];s.push({node:L,index:p,skipped:f,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x})}}if(u)return u;if(o&&l){let d=l.index;for(let p=0;p<l.index;p++)d+=t[p].length;let m=d===e.length?"/":e.slice(d);return l.rawParams??=Object.create(null),l.rawParams["**"]=decodeURIComponent(m),l}return null}function Of(e,t){return 2**(e-t-1)}function DB(e,t){return e===2**(t-1)-1}function NC(e,t,a){let o,r;try{[o,r]=FC(e,t,a)}catch{return null}if(a.rawParams=o,a.extract=r,!a.node.parse)return!0;try{if(a.node.parse(o)===!1)return null}catch{}return!0}function zf(e,t){if(!e)return!0;return t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===rn)>(e.node.kind===rn)||t.node.kind===rn===(e.node.kind===rn)&&t.node.depth>e.node.depth)))}function PB(){try{return sessionStorage}catch{return}}var OB="tsr-scroll-restoration-v1_3",GC=PB();function zB(){try{return JSON.parse(GC?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}var Es=zB(),HC="data-scroll-restoration-id",BB=(e)=>e.state.__TSR_key||e.href;function FB(e){let t=e.getAttribute(HC);if(t)return\`[\${HC}="\${t}"]\`;let a="",o=e,r;while(r=o.parentNode){let n=1,i=o;while(i=i.previousElementSibling)n++;let s=\`\${o.localName}:nth-child(\${n})\`;a=a?\`\${s} > \${a}\`:s,o=r}return a}var Bf=!1,Ff="window";function Fg(e){try{return typeof e==="function"?e():document.querySelector(e)}catch{}}function UC(e){let t=new Set;for(let a of e){if(a===Ff)continue;let o=Fg(a);if(o)t.add(o)}return t}function qC(e,t){let a=t??e.options.scrollRestoration,o=e._scroll;if(a)o.e=!0;if(te??e.isServer)return;let r=e.options.getScrollRestorationKey||BB,n=new Set,i=(s)=>{let l=Es[s]||={};for(let u of n)if(u===document)l[Ff]={scrollX,scrollY};else if(u.isConnected)l[FB(u)]={scrollX:u.scrollLeft,scrollY:u.scrollTop}};if(a&&!o.s)o.s=!0,Bf=!1,history.scrollRestoration="manual",document.addEventListener("scroll",(s)=>{if(Bf)return;n.add(s.target)},!0),e.subscribe("onBeforeLoad",(s)=>{if(s.fromLocation)i(r(s.fromLocation));n.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",i(r(e.stores.resolvedLocation.get()??e.stores.location.get()));try{GC?.setItem(OB,JSON.stringify(Es))}catch{}}),addEventListener("pageshow",(s)=>{if(s.persisted)history.scrollRestoration="manual"});if(o.r)return;o.r=!0,e.subscribe("onRendered",(s)=>{let l=e.options.scrollRestorationBehavior,u=e.options.scrollToTopSelectors,d=o.n,m=o.h,p;if(n.clear(),o.n=!0,o.h=!1,typeof e.options.scrollRestoration==="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;let f=r(s.toLocation),g=s.fromLocation&&r(s.fromLocation);if(o.e&&g&&g!==f){let y=Es[g];if(y){let b=Es[f];for(let h in y){if(h===Ff){if(d)continue}else{let x=Fg(h);if(!x)continue;if(d&&u){if(p??=UC(u),p.has(x))continue}}if(!b)b=Es[f]={};b[h]??=y[h]}}}Bf=!0;try{let y=s.toLocation.hash,b=s.toLocation.state.__hashScrollIntoViewOptions??!0,h=!1;if(d){if(!y&&u)p??=UC(u);let x=y&&b&&m,v=o.e?Es[f]:void 0;if(v)for(let w in v){let{scrollX:C,scrollY:I}=v[w];if(w===Ff){if(x)continue;scrollTo({top:I,left:C,behavior:l}),h=!0}else{let L=Fg(w);if(L)L.scrollLeft=C,L.scrollTop=I,p?.delete(L)}}if(!y){let w={top:0,left:0,behavior:l};if(!h)scrollTo(w);if(p)for(let C of p)C.scrollTo(w)}}if(!h&&y&&b)document.getElementById(y)?.scrollIntoView(b)}finally{Bf=!1}})}function $C(e,t=String){let a;for(let o in e){let r=e[o];if(r!==void 0)(a||=new URLSearchParams).set(o,t(r))}return a?a.toString():""}function Hg(e){if(!e)return"";if(e==="false")return!1;if(e==="true")return!0;return+e*0===0&&+e+""===e?+e:e}function VC(e){let t=new URLSearchParams(e),a=Object.create(null);for(let[o,r]of t.entries()){let n=a[o];if(n==null)a[o]=Hg(r);else if(Array.isArray(n))n.push(Hg(r));else a[o]=[n,Hg(r)]}return a}var ZC=/^(?:\\s|["[{\\d-]|fa|nu|tr)/,KC=HB(JSON.parse),jC=UB(JSON.stringify,JSON.parse);function HB(e){let t=e===JSON.parse;return(a)=>{if(a[0]==="?")a=a.slice(1);let o=VC(a);for(let r in o){let n=o[r];if(typeof n==="string"){if(t&&!ZC.test(n))continue;try{o[r]=e(n)}catch(i){}}}return o}}function UB(e,t){let a=t===JSON.parse;function o(r){if(r&&typeof r==="object")try{return e(r)}catch(n){}else if(t&&typeof r==="string"){if(a&&!ZC.test(r))return r;try{return t(r),e(r)}catch(n){}}return r}return(r)=>{let n=$C(r,o);return n?\`?\${n}\`:""}}function XC(e,t,a){let o=Rs(e),r=\`/\${o}\`,n=t?r:r.toLowerCase(),i=\`\${n}/\`,s={input:({url:l})=>{let u=t?l.pathname:l.pathname.toLowerCase();if(u===n)l.pathname="/";else if(u.startsWith(i))l.pathname=l.pathname.slice(r.length);return l},output:({url:l})=>(l.pathname=Bo(\`/\${o}\${l.pathname}\`),l)};return a?{input:({url:l})=>Hf(a,s.input({url:l})),output:({url:l})=>s.output({url:Ug(a,l)})}:s}function Hf(e,t){let a=e?.input?.({url:t});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return t}function Ug(e,t){let a=e?.output?.({url:t});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return t}function Gg(e){let t=e;return{get(){return t},set(a){t=tn(a,t)}}}function qg(e){return{get(){return e()}}}function YC(e,t){let{createMutableStore:a,createReadonlyStore:o,batch:r}=t,n=new Map,i=a("idle"),s=a(e),l=a(void 0),u=a([]),d=o(()=>u.get().map((y)=>n.get(y).get())),m=o(()=>({status:i.get(),isLoading:i.get()==="pending",matches:d.get(),location:s.get(),resolvedLocation:l.get()}));function p(y){let b=n.get(y);if(!b)b=a(void 0),n.set(y,b);return b}let f={status:i,location:s,resolvedLocation:l,ids:u,matches:d,byRoute:n,__store:m,getMatchStore:p,setMatches:g};function g(y){let b=u.get(),h=y.map((x)=>x.routeId);r(()=>{if(!TC(b,h))u.set(h);for(let x of b)if(!h.includes(x))n.get(x).set(()=>{return});for(let x of y){let v=p(x.routeId);if(v.get()!==x)v.set(x)}})}return f}var nn="__TSR_index",WC="popstate",QC="beforeunload",GB=/^[\\x00-\\x20]*(?:[\\\\/][\\t\\n\\r]*){2,}/;function Pu(e){let t=GB.exec(e);return t?"/"+e.slice(t[0].length):e}function Vg(e){if(/[\\x00-\\x1f\\x7f]/.test(e))e=e.replace(/[\\x00-\\x1f\\x7f]/g,(t)=>\`
7498
- \\r\`.includes(t)?"":encodeURIComponent(t));return Pu(e)}function Zg(e){let t=e.getLocation(),a=new Set,o=(i)=>{t=e.getLocation(),a.forEach((s)=>s({location:t,action:i}))},r=(i)=>{if(e.notifyOnIndexChange??!0)o(i);else t=e.getLocation()},n=async(i)=>{let s=i.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<"u"&&s?.length&&(i.type==="PUSH"||i.type==="REPLACE"))for(let l of s){let u=fi(i.path,i.state);if(await l.blockerFn({currentLocation:t,nextLocation:u,action:i.type})){e.onBlocked?.();return}}i.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:a,subscribe:(i)=>(a.add(i),()=>{a.delete(i)}),push:(i,s,l)=>{let u=t.state[nn];s=$g(u+1,s),n({task:()=>{e.pushState(i,s),o({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:i,state:s})},replace:(i,s,l)=>{let u=t.state[nn];s=$g(u,s),n({task:()=>{e.replaceState(i,s),o({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:i,state:s})},go:(i,s)=>{n({task:()=>{e.go(i,s?.ignoreBlocker??!1),r({type:"GO",index:i})},navigateOpts:s,type:"GO"})},back:(i)=>{n({task:()=>{e.back(i?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:(i)=>{n({task:()=>{e.forward(i?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[nn]!==0,createHref:(i)=>e.createHref(i),block:(i)=>{if(!e.setBlockers)return()=>{};let s=e.getBlockers?.()??[];return e.setBlockers([...s,i]),()=>{let l=e.getBlockers?.()??[];e.setBlockers?.(l.filter((u)=>u!==i))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:o,_getBlockers:()=>e.getBlockers?.()??[]}}function $g(e,t){let a=Xg();return{...t,key:a,__TSR_key:a,[nn]:e}}function Uf(e){let t=e?.window??(typeof document<"u"?window:void 0),a=t.history.pushState,o=t.history.replaceState,r=[],n=()=>r,i=(L)=>r=L,s=(L)=>Vg(e?.createHref?e.createHref(L):L),l=e?.parseLocation??(()=>fi(\`\${t.location.pathname}\${t.location.search}\${t.location.hash}\`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let L=Xg();t.history.replaceState({[nn]:0,key:L,__TSR_key:L},"")}let u=l(),d,m=!1,p=!1,f=!1,g=!1,y=()=>u,b,h=()=>{if(!b)return;I._ignoreSubscribers=!0,(b[2]?t.history.pushState:t.history.replaceState)(b[1],"",b[0]),I._ignoreSubscribers=!1,b=void 0,d=void 0},x=(L,k,_)=>{let T=e?.createHref?s(k):void 0,O=!!b;if(!O)d=u;if(u=fi(k,_),b=[T??u.href,_,b?.[2]||L],!O)queueMicrotask(()=>h())},v=(L)=>{u=l(),I.notify({type:L})},w=async()=>{if(g=!1,p){p=!1;return}let L=l(),k=L.state[nn]-u.state[nn],_=k===1,T=k===-1,O=!_&&!T||m;m=!1;let D=O?"GO":T?"BACK":"FORWARD",z=O?{type:"GO",index:k}:{type:T?"BACK":"FORWARD"};if(f)f=!1;else{let R=n();if(typeof document<"u"&&R.length){for(let A of R)if(await A.blockerFn({currentLocation:u,nextLocation:L,action:D})){p=!0,t.history.go(-k),I.notify(z);return}}}u=l(),I.notify(z)},C=(L)=>{if(g){g=!1;return}let k=!1,_=n();if(typeof document<"u"&&_.length)for(let T of _){let O=T.enableBeforeUnload??!0;if(O===!0){k=!0;break}if(typeof O==="function"&&O()===!0){k=!0;break}}if(k)return L.preventDefault(),L.returnValue=""},I=Zg({getLocation:y,getLength:()=>t.history.length,pushState:(L,k)=>x(!0,L,k),replaceState:(L,k)=>x(!1,L,k),back:(L)=>{if(L)f=!0,g=!0;return t.history.back()},forward:(L)=>{if(L)f=!0,g=!0;t.history.forward()},go:(L,k)=>{if(m=!0,k)f=!0,g=!0;t.history.go(L)},createHref:s,flush:h,destroy:()=>{t.history.pushState=a,t.history.replaceState=o,t.removeEventListener(QC,C,{capture:!0}),t.removeEventListener(WC,w)},onBlocked:()=>{if(d&&u!==d)u=d},getBlockers:n,setBlockers:i,notifyOnIndexChange:!1});return I._ignoreNextBeforeUnload=(L)=>{g=!1;try{L=new URL(L,t.document.baseURI).href,g=/^https?:/.test(L)&&(!L.includes("#")||L.split("#")[0]!==t.location.href.split("#")[0])}catch{}},t.addEventListener(QC,C,{capture:!0}),t.addEventListener(WC,w),t.history.pushState=function(...L){let k=a.apply(t.history,L);if(!I._ignoreSubscribers)v("PUSH");return k},t.history.replaceState=function(...L){let k=o.apply(t.history,L);if(!I._ignoreSubscribers)v("REPLACE");return k},I}function Kg(e){let t=e?.window??(typeof document<"u"?window:void 0);return Uf({window:t,parseLocation:()=>{let a=t.location.hash,o=a.indexOf("#",1);if(o<0)o=a.length;return fi(\`\${a?a.slice(1,o):"/"}\${t.location.search}\${a.slice(o)}\`,t.history.state)},createHref:(a)=>\`\${t.location.pathname}\${t.location.search}#\${a}\`})}function jg(e={initialEntries:["/"]}){let t=e.initialEntries,a=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1,o=t.map((l,u)=>$g(u,void 0)),r=()=>fi(t[a],o[a]),n=[];return Zg({getLocation:r,getLength:()=>t.length,pushState:(l,u)=>{if(a=a<t.length-1?a+1:t.length,o[a]=u,t[a]=l,a<t.length-1)t.length=a+1,o.length=a+1},replaceState:(l,u)=>{o[a]=u,t[a]=l},back:()=>{a=Math.max(a-1,0)},forward:()=>{a=Math.min(a+1,t.length-1)},go:(l)=>{a=Math.min(Math.max(a+l,0),t.length-1)},createHref:Vg,getBlockers:()=>n,setBlockers:(l)=>n=l})}function fi(e,t){let a=Vg(e),o=a.indexOf("#"),r=a.indexOf("?");if(!t){let n=Xg();t={[nn]:0,key:n,__TSR_key:n}}return{href:a,pathname:a.slice(0,o>-1?r>-1?Math.min(o,r):o:r>-1?r:a.length),hash:o>-1?a.slice(o):"",search:r>-1?a.slice(r,o===-1?void 0:o):"",state:t}}function Xg(){return(Math.random()+1).toString(36).slice(7)}function Yg(e,t){return e.protocol!=="http:"&&e.protocol!=="https:"||e.origin!==t||!!e.username||!!e.password}function Wg(e){return e.pathname+e.search+e.hash}function JC(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function pi(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function ek({key:e,__TSR_key:t,__TSR_index:a,__hashScrollIntoViewOptions:o,...r}){return r}function ok(e){return e.findIndex((t)=>t.status==="error"||t.status==="notFound"||t._notFound)+1}function rk(e,t,a,o,r,n){if(o)t=t.slice(0,o);if(r)a=a.slice(0,r);for(let i of t){if(n&&e._tx!==n)return;if(!a.some((s)=>s.routeId===i.routeId))e.routesById[i.routeId].options.onLeave?.(i)}for(let i of a){if(n&&e._tx!==n)return;e.routesById[i.routeId].options[t.some((s)=>s.routeId===i.routeId)?"onStay":"onEnter"]?.(i)}}var ey=class{constructor(e,t){if(this.tempLocationKey=\`\${Math.round(Math.random()*1e7)}\`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async(a)=>(a(),!1),this.update=(a)=>{let o=this.options;if(this.options={...o,...a},this.isServer=this.options.isServer??te??typeof document>"u",!(te??this.isServer))this.staticLocations=new WeakMap;if(this.protocolAllowlist=new Set(this.options.protocolAllowlist),!this.history||this.options.history&&this.options.history!==this.history)if(!this.options.history){if(!(te??this.isServer))this.history=Uf()}else this.history=this.options.history;if(this.origin=this.options.origin,!this.origin)if(!(te??this.isServer)&&window?.origin&&window.origin!=="null")this.origin=window.origin;else this.origin="http://localhost";let r=this.options.basepath??"/",n=this.options.rewrite,i=this.basepath!==r||o?.rewrite!==n||o?.caseSensitive!==this.options.caseSensitive;if(i)this.basepath=r,this.rewrite=r!=="/"&&Rs(r)?XC(r,this.options.caseSensitive,n):n;if(this.history)this.updateLatestLocation();if(this.options.routeTree!==this.routeTree||(te??this.isServer)&&o?.caseSensitive!==this.options.caseSensitive){this.routeTree=this.options.routeTree;let s;if((te??this.isServer)&&globalThis.__TSR_CACHE__&&globalThis.__TSR_CACHE__.routeTree===this.routeTree&&globalThis.__TSR_CACHE__.caseSensitive===this.options.caseSensitive)s=globalThis.__TSR_CACHE__.processRouteTreeResult;else if(s=this.buildRouteTree(),(te??this.isServer)&&globalThis.__TSR_CACHE__===void 0)globalThis.__TSR_CACHE__={routeTree:this.routeTree,caseSensitive:this.options.caseSensitive,processRouteTreeResult:s};this.setRoutes(s)}if(!this.stores){if(this.latestLocation){let s=this.getStoreConfig(this);if(this.batch=s.batch,this.stores=YC(this.latestLocation,s),!(te??this.isServer))qC(this)}}else if(i)this.stores.location.set(this.latestLocation)},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let a=BC(this.routeTree,this.options.caseSensitive);if(this.options.routeMasks)DC(this.options.routeMasks,a.processedTree);return{...a,resolvePathCache:_s(1000)}},this.subscribe=(a,o)=>{let r={eventType:a,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=(a)=>{for(let o of this.subscribers)if(o.eventType===a.type)try{o.fn(a)}catch(r){console.error(r)}},this.parseLocation=(a,o)=>{let r=({pathname:l,search:u,hash:d,href:m},p)=>{if(!this.rewrite&&!/[ \\x00-\\x1f\\x7f\\u0080-\\uffff]/.test(l)){let b=this.options.parseSearch(u),h=this.options.stringifySearch(b);return{href:l+h+d,publicHref:l+h+d,pathname:Is(l),external:!1,searchStr:h,search:ci(o?.search,b),hash:Is(d.slice(1)),state:ja(o?.state,p)}}let f=Hf(this.rewrite,new URL(m,this.origin)),g=this.options.parseSearch(f.search),y=this.options.stringifySearch(g);return f.search=y,{href:f.href.replace(f.origin,""),publicHref:m,pathname:Is(Pu(f.pathname)),external:!!this.rewrite&&Yg(f,this.origin),searchStr:y,search:ci(o?.search,g),hash:Is(f.hash.slice(1)),state:ja(o?.state,p)}},n=r(a,a.state),{__tempLocation:i,__tempKey:s}=n.state;if(i&&(!s||s===this.tempLocationKey)){let l=r(i,{...i.state,__tempLocation:void 0,key:n.state.key,__TSR_key:n.state.__TSR_key});return l.maskedLocation=n,l}return n},this.matchRoutes=(a,o,r)=>{if(typeof a==="string")return this.matchRoutesInternal({pathname:a,search:o},r);return this.matchRoutesInternal(a,o)},this.getMatchedRoutes=(a)=>{let o=Object.create(null),r=zC($t(a),this.processedTree,!0);if(r)Object.assign(o,r.rawParams);return[r?.branch||[this.routesById.__root__],o,r?.route]},this.buildLocation=(a)=>{if(!(te??this.isServer)){let i=this.staticLocations.get(a);if(i)return i}let o=!1,r=(i={})=>{if(i.href){let R=fi(i.href,{});i={...i,to:Hf(this.rewrite,new URL(R.pathname,this.origin)).pathname,search:this.options.parseSearch(R.search),hash:R.hash.slice(1)}}let s=a._fromLocation||this._pendingLocation||this.latestLocation,l,u=()=>(o=!0,s),d=()=>l??=this.matchRoutesLightweight(u()),m=i.to?\`\${i.to}\`:".",p=Mu(m[0]==="/"?"":i.unsafeRelative==="path"?u().pathname:i.from??d()[1],m,this.options.trailingSlash,this.resolvePathCache),f=this.routesByPath[$t(p)],g=p.includes("$"),y;if(f)y=f._branch??=Bg(f);else if(g)y=[];else{let[R,A,E]=this.getMatchedRoutes(p);if(y=R,this.options.notFoundRoute&&(!E||E.path!=="/"&&A["**"]))y=[...y,this.options.notFoundRoute]}let b=g?f?._interpolation??Ts(!1,{fullPath:p},0):void 0,h;for(let R of y){let A=R.options.params?.stringify??R.options.stringifyParams;if(A){let E=d()[3];if(h??=Qg(i.params,E),!Tu(h))break;if(h===E)h=Object.assign(Eu(),h);try{Object.assign(h,A(h))}catch{}}}h??=Qg(i.params,qB(i.params,b)?d()[3]:Jg);let x=a.leaveParams?p:Pu(Is(b?Du(p,b,h,this.pathParamsDecoder):p)),v=$B(y,a._includeValidateSearch),w=()=>{let R=d()[2];if(a._includeValidateSearch&&this.options.search?.strict){let A={};y.forEach((E)=>{if(E.options.validateSearch)try{Object.assign(A,Gf(E.options.validateSearch,{...A,...R}))}catch{}}),R=A}return R},C=v.length?VB(v,w(),i):i.search===!0?w():typeof i.search==="function"?i.search(w()):i.search||Jg,I=this.options.stringifySearch(C),L=i.hash===!0?u().hash:typeof i.hash==="function"?i.hash(u().hash):i.hash||void 0,k=L?\`#\${L}\`:"",_=!i.state?Jg:i.state===!0?u().state:typeof i.state==="function"?i.state(u().state):i.state,T=\`\${x}\${I}\${k}\`,O,D,z=!1;if(this.rewrite){let R=new URL(T,this.origin),A=R.origin,E=Ug(this.rewrite,R);if(O=Wg(R),Yg(E,A))D=E.href,z=!0;else D=Pu(Wg(E))}else O=_C(T),D=O;return{publicHref:D,href:O,pathname:x,search:C,searchStr:I,state:_,hash:L??"",external:z,unmaskOnReload:i.unmaskOnReload}},n=r(a);if(a.mask)n.maskedLocation=r({from:a.from,...a.mask});else if(this.options.routeMasks){let i=PC(n.pathname,this.processedTree);if(i){let s=Object.assign(Eu(),i.rawParams),{from:l,params:u,...d}=i.route,m=Qg(u,s);n.maskedLocation=r({from:a.from,...d,params:m})}}if(!(te??this.isServer)&&!o&&a._fromLocation)this.staticLocations.set(a,n);return n},this.commitLocation=async({viewTransition:a,ignoreBlocker:o,...r})=>{if(te??this.isServer)return;let n=r.maskedLocation??r;if(n.external&&!(te??this.isServer))return tk(this,n.publicHref,{replace:r.replace,ignoreBlocker:o});let i,s=$t(this.latestLocation.href)===$t(r.href)&&Ia(ek(r.state),ek(this.latestLocation.state)),l=this._commitPromise,u,d=new Promise((m)=>{u=m});if(d.resolve=()=>{u(),l?.resolve()},this._commitPromise=d,s)this.load();else{let{maskedLocation:m,hashScrollIntoView:p,...f}=r;if(m){if(f={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...f,search:f.searchStr,state:{...f.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},f.unmaskOnReload??this.options.unmaskOnReload??!1)f.state.__tempKey=this.tempLocationKey}if(f.state={...f.state,__hashScrollIntoViewOptions:p??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=a,i=r.replace?"REPLACE":"PUSH",this.history[i==="REPLACE"?"replace":"push"](f.publicHref,f.state,{ignoreBlocker:o}),!this.history.subscribers.size)this.load({action:{type:i}})}return this._scroll.n=r.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:a,resetScroll:o,hashScrollIntoView:r,viewTransition:n,ignoreBlocker:i,...s}={})=>{if(te??this.isServer)return Promise.resolve();let l=this.buildLocation({...s,_includeValidateSearch:!0});this._pendingLocation=l;let u=this.commitLocation({...l,viewTransition:n,replace:a,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:i});return queueMicrotask(()=>{if(this._pendingLocation===l)this._pendingLocation=void 0}),u},this.navigate=async({to:a,reloadDocument:o,href:r,publicHref:n,...i})=>{if(te??this.isServer)return;let s=r?yr(r):void 0;if(s||o){if(a!==void 0||!r){let u=this.buildLocation({to:a,...i}),d=u.maskedLocation??u;r??=d.publicHref,n??=d.publicHref}return tk(this,!s&&n?n:r,i)}return this.buildAndCommitLocation({...i,href:r,to:a,_isNavigate:!0})},this.load=async(a)=>{if(te??this.isServer)return IC(this,a);if(this.updateLatestLocation(),a?.action)this._scroll.h=a.action.type==="PUSH"||a.action.type==="REPLACE";await ik(this,a)},this.startViewTransition=(a)=>{let o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&!(te??typeof document>"u")&&typeof document.startViewTransition==="function"){let r;if(typeof o==="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){let n=this.latestLocation,i=this.stores.resolvedLocation.get(),s=typeof o.types==="function"?o.types(pi(n,i)):o.types;if(s===!1)return a();r={update:a,types:s}}else r=a;return document.startViewTransition(r).updateCallbackDone}return a()},this.invalidate=(a)=>{let o=this._committed,r=a?.filter,n=this._preloads,i=new Set,s=(d)=>{if(!r||r(d))i.add(d.id)};o.forEach(s),this._cache.forEach(s),n?.forEach((d)=>d.forEach(s)),this._tx?.[3].forEach(s);let l=[];for(let[d,m]of n??[])if(m.some((p)=>i.has(p.id)))n.delete(d),l.push(d);let u=(d)=>{if(i.has(d.id)){let m=this.routesById[d.routeId],p={...d,invalid:!0,...(a?.forcePending||d.status==="error"||d.status==="notFound")&&JC(m)?{status:"pending",error:void 0}:void 0};return d._flight=void 0,p}return d};this._committed=o.map(u);for(let[d,m]of this._cache)if(i.has(d)){if(m.invalid=!0,a?.forcePending)m.status="pending"}for(let d of i){let m=this._flights?.get(d);if(this._flights?.delete(d),m&&!m[2])l.push(m[1])}for(let d of l)d.abort();return this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.resolveRedirect=(a)=>{let o=a.options,r=a.headers.get("Location")||o.href;if(!r){let i=this.buildLocation(o);r=(i.maskedLocation??i).publicHref||"/"}let n;if(Pg.test(r)||(n=yr(r))&&!this.protocolAllowlist.has(n))throw Error("Redirect blocked: unsafe protocol");if(n==="http:"||n==="https:"){let i=new URL(r);if(i.pathname.startsWith("//"))r=i.href;else if(!Yg(i,this.origin))r=Wg(i),n=void 0}if(n)o.reloadDocument=!0;return o.href=r,a.headers.set("Location",r),a},this.clearCache=(a)=>{let o=this._cache,r=this._preloads,n=a?.filter,i=[],s=[];for(let[u,d]of o)if(!n||n(d))s.push(u),i.push(d);let l=[];for(let[u,d]of r??[])if(!n||d.some(n))l.push(u),i.push(...d);for(let u of s)o.delete(u);for(let u of l)r.delete(u);for(let u of i){let d=u._flight;if(u._flight=void 0,d&&!--d[2]){if(this._flights?.get(u.id)===d)this._flights.delete(u.id);l.push(d[1])}}for(let u of l)u.abort()},this.loadRouteChunk=mi,this.preloadRoute=(a)=>sk(this,a),this.matchRoute=(a,o)=>{let r={...a,to:a.to?Mu(a.from||"",a.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:a.params||{},leaveParams:!0},n=this.buildLocation(r),i=this.stores.status.get()==="pending";if(o?.pending&&!i)return!1;let s=o?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),l=OC(n.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,s.pathname,this.processedTree);if(!l)return!1;if(a.params){if(!Ia(l.rawParams,a.params,!0))return!1}if(o?.includeSearch??!0)return Ia(s.search,n.search,!0)?l.rawParams:!1;return l.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length)this.pathParamsDecoder=EC(e.pathParamsAllowedCharacters);if(this.update({defaultPreloadDelay:50,defaultPendingMs:1000,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??jC,parseSearch:e.parseSearch??KC,protocolAllowlist:e.protocolAllowlist??Mf}),!(te??typeof document>"u"))self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){if(Object.assign(this,e),this.lightweightCache=new WeakMap,!(te??this.isServer))this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;if(t){if(t.init(99999999999),this.routesById[t.id]!==t)t._interpolation=Ts(!1,t,0);this.routesById[t.id]=t}}matchRoutesInternal(e,t){let[a,o,r]=this.getMatchedRoutes(e.pathname),n=a,i=!1;if(r?r.path!=="/"&&o["**"]:$t(e.pathname))if(this.options.notFoundRoute)n=[...n,this.options.notFoundRoute];else i=!0;let s=i?ZB(this.options.notFoundMode,n):void 0,l=Array(n.length),u=this._committed,d=(p,f)=>{let g=u[f];return g?.routeId===p.id?g:p===this.options.notFoundRoute?u.find((y)=>y.routeId===p.id):void 0},m;for(let p=0;p<n.length;p++){let f=n[p],g=l[p-1],y,b,h;{let z=g?.search??e.search,R=g?._strictSearch??void 0;try{let A=Gf(f.options.validateSearch,{...z})??void 0;y={...z,...A},b={...R,...A}}catch(A){let E=A;if(!(A instanceof Ns))E=new Ns(A.message,{cause:A});if(t?.throwOnError)throw E;y=z,b={},h=E}}let x="",v="";try{x=f.options.loaderDeps?.({search:y})??"",v=x?JSON.stringify(x)||"":""}catch(z){if(t?.throwOnError)throw z;h??=z}let w=Eu(),C=f._interpolation?Du(f.fullPath,f._interpolation,o,this.pathParamsDecoder,w):f.fullPath,I=f.id+C+v,L=d(f,p),k=this._cache.get(I)??(L?.id===I?L:void 0);m=k?._strictParams??Object.assign(w,m);let _;if(!k)try{ak(f,m)}catch(z){if(ca(z)||Pf(z))_=z;else _=new nk(z.message,{cause:z});if(t?.throwOnError)throw _}let T=L?"stay":"enter",O;if(k)O={...k,cause:T,search:L?ci(L.search,y):ci(k.search,y),_strictSearch:b,searchError:h};else{let z=JC(f)?"pending":"success";O={id:I,ssr:te??this.isServer?void 0:f.options.ssr,index:p,routeId:f.id,params:L?.params??m,_strictParams:m,pathname:C,updatedAt:Date.now(),search:L?ci(L.search,y):y,_strictSearch:b,searchError:h,status:z,isFetching:!1,error:void 0,paramsError:_,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:L?ja(L.loaderDeps,x):x,invalid:!1,preload:!1,staticData:f.options.staticData||{},fullPath:f.fullPath}}let D=s===f.id;if(O._notFound&&!D)O.error=void 0;O._notFound=D,l[p]=O}for(let p=0;p<l.length;p++){let f=l[p];if(f.params=f.cause==="stay"?ci(f.params,m):m,t?._controller)f.context={}}return l}matchRoutesLightweight(e){let t=ho(this.stores.ids.get()),a=t?this.stores.byRoute.get(t).get():void 0,o=a?.id,r=this.lightweightCache.get(e);if(r&&r[0]===o)return r[1];let[n,i]=this.getMatchedRoutes(e.pathname),s=ho(n),l={...e.search};for(let p of n)try{Object.assign(l,Gf(p.options.validateSearch,l))}catch{}let u=a&&a.routeId===s.id&&a.pathname===e.pathname,d;if(u)d=a.params;else{let p=i;for(let f of n)try{ak(f,p)}catch{}d=p}let m=[n,s.fullPath,l,d];return this.lightweightCache.set(e,[o,m]),m}};async function tk(e,t,{replace:a,ignoreBlocker:o}){if(Nu(t,e.protocolAllowlist))return;if(!o){let r=e.history._getBlockers();for(let n of r)if(n?.blockerFn){if(await n.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:a?"REPLACE":"PUSH"}))return}}if(e.history._ignoreNextBeforeUnload?.(t),a)window.location.replace(t);else window.location.href=t}var Ns=class extends Error{},nk=class extends Error{};function Gf(e,t){if(e==null)return{};if("~standard"in e){let a=e["~standard"].validate(t);if(a instanceof Promise)throw new Ns("Async validation not supported");if(a.issues)throw new Ns(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}if("parse"in e)return e.parse(t);if(typeof e==="function")return e(t);return{}}function Qg(e,t){if(e===void 0||e===!0)return t;let a=Object.create(null);if(e===!1||e===null)return a;if(typeof e==="function")return Object.assign(a,t),Object.assign(a,e(a));return Object.assign(a,t,e)}function qB(e,t){if(typeof e==="function")return!0;if(!t||e===!1||e===null)return!1;return e===void 0||e===!0||t.some((a)=>typeof a!=="string"&&!Af.call(e,a[1]))}var Jg=Object.freeze({});function $B(e,t){let a=[];for(let o=0;o<e.length;o++){let r=e[o].options;if("search"in r){if(r.search?.middlewares)a.push(...r.search.middlewares)}else if(r.preSearchFilters||r.postSearchFilters){let i=({search:s,next:l})=>{let u=l(r.preSearchFilters?r.preSearchFilters.reduce((d,m)=>m(d),s):s);return r.postSearchFilters?r.postSearchFilters.reduce((d,m)=>m(d),u):u};a.push(i)}let n=r.validateSearch;if(t&&n){let i=({search:s,next:l,meta:u})=>{let d=l(s);try{let m=Gf(n,d);if(u&&m){for(let p in m)if(!(p in d))(u.defaulted||=new Map).set(p,m[p])}return{...d,...m}}catch{}return d};a.push(i)}}return a}function VB(e,t,a){let o=(r,n,i)=>{if(r>=e.length){if(!a.search)return{};if(a.search===!0)return n;let l=tn(a.search,n);if(i)i.explicit=l;return l}let s=(l,u)=>{if(u){let d=i||{};return{search:o(r+1,l,d),meta:d}}return o(r+1,l,i)};return e[r]({search:n,next:s,meta:i})};return o(0,t)}function ZB(e,t){if(e!=="root"){let a;for(let o=t.length-1;o>=0;o--){let r=t[o];if(r.options.notFoundComponent)return r.id;a||=r.children&&r.id}if(a)return a}return Ra}function ak(e,t){let a=e.options.params?.parse??e.options.parseParams;if(a)Object.assign(t,a(t))}function ty(e,t){return e.options[t]?.preload?.()}function KB(e,t){let a=ty(e,"component"),o=ty(e,"pendingComponent");if(t)if(o)o=o.then(t);else t();if(a&&o)return Promise.all([a,o]).then(()=>{});return a??o}function mi(e,t,a){let o=()=>t===!1?void 0:t?ty(e,t):KB(e,a),r=e._lazy;if(r)return r===!0?o():r.then(o);if(!e.lazyFn)return o();let n=e.lazyFn().then((i)=>{{let{id:s,...l}=i.options;Object.assign(e.options,l),e._lazy=!0}},(i)=>{throw e._lazy=void 0,i});return e._lazy=n,n.then(o)}function $f(e){let t=e.findIndex((a)=>a.status!=="success"||a._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function ry(e,t,a){let o=e._tx;return t&&o?.[2]===a&&!o[3].some((r)=>r.routeId===t)}var Fo=0,vr=1,Vf=2,Xt=3,sn=[4];function Bu(e){return typeof e[0]==="number"}function gi(e,t){if(t.aborted)return Promise.race([Promise.reject(t),e]);return new Promise((a,o)=>{let r=()=>o(t);t.addEventListener("abort",r,{once:!0}),Promise.resolve(e).then(a,o).then(()=>t.removeEventListener("abort",r))})}function yi(e,t){return e.routesById[t.routeId]}function Fu(e,t,a){if(Pf(e))return[Xt,e];if(ca(e))return e.routeId||=a,[Vf,e];if(!t)return[Fo,e];if(typeof e?.then==="function")e=Error("A Promise was thrown",{cause:e});return[vr,e]}function ny(e,t){let a=Fu(t,!0,e.id);if(a[0]!==vr)return a;try{e.options.onError?.(a[1])}catch(o){a=Fu(o,!0,e.id)}return a}function zu(e,t,a,o,r){if(r[0].signal.aborted)return sn;return ly(e,t,a,ny(a,o),r)}async function jB(e,t,a,o,r,n){let[i,s]=t,l=a[0].signal,u=!!a[3];for(let d=a[6]??0;d<o;d++){let m=s[d],p=yi(e,m);m.abortController=a[0];let f=s[d-1]?.context??e.options.context??{},g={params:m.params,location:i,navigate:(x)=>e.navigate({...x,_fromLocation:i}),buildLocation:e.buildLocation,cause:u?"preload":m.cause,abortController:a[0],preload:u,matches:s,routeId:p.id};try{let x=m._ctx||=p.options.context?p.options.context({...g,deps:m.loaderDeps,context:f})||{}:void 0;m.context={...f,...x}}catch(x){return xr(e,m),[d,zu(e,t,p,x,a)]}if(l.aborted)return[d,sn];let y=m.paramsError??m.searchError;if(y!==void 0)return xr(e,m),[d,zu(e,t,p,y,a)];let b=p.options.beforeLoad;if(!b)continue;let h=m.status;if(d>=n)m.status="pending",a[7]?.();try{Hu(e,m,"beforeLoad",a[0]);let x=b({...g,search:m.search,context:m.context,...e.options.additionalContext}),v=await(typeof x?.then==="function"?gi(x,l):x);if(l.aborted)return[d,sn];let w=ly(e,t,p,Fu(v,!1,p.id),a);if(w[0]!==Fo)return xr(e,m),[d,w];m.context={...m.context,...v}}catch(x){return xr(e,m),[d,zu(e,t,p,x,a)]}finally{m.status=h,Hu(e,m,!1,a[0])}}r()}function iy(e,t,a){if(!a||--a[2])return;if(e._flights?.get(t.id)===a){let o=e._tx;if(o&&!o[0].signal.aborted&&!o[3].includes(t)&&o[3].some((r)=>r.id===t.id)&&o[3].some((r)=>r.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return a[1]}function xr(e,t){let a=t._flight;t._flight=void 0,iy(e,t,a)?.abort()}function da(e,t,a,o){let r=[];for(let n of t)if(!a?.includes(n)){let i=n._flight;if(n._flight=void 0,o&&i?.[2]===1&&e._flights?.get(n.id)===i&&a?.some((s)=>s.id===n.id))i[2]=0;else{let s=iy(e,n,i);if(s)r.push(s)}}for(let n of r)n.abort()}function sy(e){for(let t of e){let a=t._flight;if(a)a[2]++}}function Hu(e,t,a,o){if(t.isFetching=a,o&&e._tx?.[0]!==o)return;let r=e.stores.byRoute.get(t.routeId),n=r?.get();if(n?.id===t.id)r.set({...n,isFetching:a})}function pk(e,t,a,o,r,n,i){let s=t[0];return{params:a.params,location:s,navigate:(l)=>e.navigate({...l,_fromLocation:s}),cause:i?"preload":a.cause,abortController:r,preload:i,deps:a.loaderDeps,parentMatchPromise:n,context:a.context,route:o,...e.options.additionalContext}}async function lk(e,t,a,o,r,n,i){let s=i[0],l=s.signal;if(l.aborted)return sn;if(!r)return[Fo,void 0];let u=a._flight;Hu(e,a,"loader",s);try{if(!u){let d=new AbortController;u=[Promise.resolve().then(()=>r(pk(e,t,a,o,d,n,!!i[3]))).then((m)=>Fu(m,!1,o.id),(m)=>Fu(m,!0,o.id)).then((m)=>{if(m[0]!==Fo&&e._flights?.get(a.id)===u){if(e._flights.delete(a.id),!u[2])d.abort()}return m[0]===vr&&u[2]?ny(o,m[1]):m}),d,1],(e._flights??=new Map).set(a.id,u)}return a._flight=u,a.abortController=u[1],ly(e,t,o,await gi(u[0],l),i)}catch(d){if(d!==l||!l.aborted)throw d;return xr(e,a),sn}finally{Hu(e,a,!1,s)}}function uk(e,t,a){if(t[0]===Xt)return;if(e.status="success",e.error=void 0,t[0]===Fo)e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=a;else e.invalid=!0}function XB(e,t,a){let o=e._cache.get(t.id);if(o!==a||e._committed.some((n)=>n.id===t.id&&n._flight===t._flight))return;let r={...t,_notFound:void 0,context:{}};if(r._flight)r._flight[2]++;if(e._cache.set(t.id,r),o)xr(e,o)}function ck(e,t){if(t[0]===vr||t[0]===Vf)return{...e,status:t[0]===vr?"error":"notFound",error:t[1],_flight:void 0};return e}function YB(e,t,a,o,r,n,i){let s=t[1][a],l=yi(e,s),u=!!n[3],d=e._cache.get(s.id),m,p=!1,f;try{if(s.status==="success"){if(m=l.options.shouldReload,typeof m==="function")m=m(pk(e,t,s,l,n[0],r,u));if(n[0].signal.aborted)f=sn}if(!f)if(s.status!=="success")p=!0;else{let D=u||s.preload?l.options.preloadStaleTime??e.options.defaultPreloadStaleTime??30000:l.options.staleTime??e.options.defaultStaleTime??0;p=!!(s.invalid||m||m===void 0&&Date.now()-s.updatedAt>=D&&(n[5]||s.cause==="enter"||n[2].some((z)=>z.routeId===s.routeId&&z.id!==s.id)))}}catch(D){s.invalid=!0,xr(e,s),f=zu(e,t,l,D,n)}let g=l.options.loader,y=typeof g==="function",b=y?g:g?.handler,h=!u||l.options.preload!==!1,x=h&&g?e._flights?.get(s.id):void 0;if(x===s._flight||f)x=void 0;else if(x&&!p&&!u&&m===void 0)p=!0;else if(!p)x=void 0;let v=!!(g&&p&&s.status==="success"&&!u&&!n[4]&&((y?void 0:g.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),w=p&&h,C=w&&!v&&(s.status!=="success"||!!g),I=a>=i?n[7]:void 0,L=l.lazyFn&&l._lazy!==!0?I:void 0;if(w&&!g)s.invalid=!1,s.updatedAt=Date.now();if(x)x[2]++;if(C){let D=s._flight;if(s._flight=x,iy(e,s,D)?.abort(),a>=i)s.status="pending";I?.()}if(!w)s.isFetching=!1;let k=!f&&C?lk(e,t,s,l,b,r,n).then((D)=>{if(uk(s,D,u),D[0]===Fo){if(g&&!n[0].signal.aborted)XB(e,s,d);if(a>=i)s.status="pending"}return D}):Promise.resolve(f??[Fo,s.loaderData]),_=(async()=>{try{let z=mi(l,void 0,L);if(z)await gi(z,n[0].signal)}catch(z){if(!t[1].some((R,A)=>A<=a&&(R.status==="error"||R.status==="notFound"||R._notFound)))return[a,zu(e,t,l,z,n)]}let D=await k;if(C&&D[0]===Fo&&s.status==="pending"&&!n[0].signal.aborted)s.status="success",I?.()})();if(o.push([a,k,_]),!v)return k.then((D)=>ck(s,D));let T={...s,status:"pending",preload:!1,_flight:x};s.invalid=!1,s.isFetching="loader";let O=lk(e,t,T,l,b,r,n).then((D)=>(s.isFetching=!1,uk(T,D,!1),D));return(t[2]??=[]).push([a,O,_,T]),O.then((D)=>ck(T,D))}async function ay(e,t,a,o,r=0){let n=a?.[1][1],i=n?.routeId?t.findIndex((s)=>s.routeId===n.routeId):a?.[0]??t.length-1;if(i<0)i=0;for(let s=i;s>=0;s--){let l=yi(e,t[s]);try{let u=mi(l,!1);if(u)await gi(u,o)}catch(u){if(u===o&&o.aborted)throw u}if(l.options.notFoundComponent)return s}return n?.routeId?i:r}function hi(e,t){if(t[2])da(e,t[2].map((a)=>a[3])),t[2]=void 0}async function dk(e,t,a,o){let r;try{await Promise.all(e.map((n)=>n[1].then(async(i)=>{let s=n[0];if(o&&s>=await o)return;if(i[0]>=Xt)throw[s,i];if(!r&&i[0]!==Fo)r=[s,i],await Promise.all((a??[]).map((l)=>{if(l[0]<=s)return;return l[1].then((u)=>{if(u[0]===Xt)throw[l[0],u]})}))})))}catch(n){return n}return t??r}function ly(e,t,a,o,r,n){while(o[0]===Xt){let i=o[1],s=i.options;try{if(s.href||i.headers.has("Location")){if(e.resolveRedirect(i),s.reloadDocument)return o}if(s.reloadDocument?r[3]:r[1]>=20)return o;let l=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),u=l.maskedLocation??l;if(u.external){let d=i.clone();return d.options={...s},d.headers.set("Location",u.publicHref),e.resolveRedirect(d),r[3]?[Xt,d]:[Xt,d,u]}return[Xt,i,l]}catch(l){o=n?[vr,l]:ny(a,l),n=!0}}return o}async function mk(e,t,a,o,r,n){let i=t[1],s=await r,l=!1,u=i.findIndex((f)=>f._notFound),d=(f)=>f[1][0]===Vf?ay(e,i,f,o.signal):f[0],m=u<0?i.length:u;if((s?.[1][0]??0)>=Xt)m=0;else if(s){m=s[2]??=await d(s);for(let f of a){if(f[0]>=m)break;let g=await f[1];if(g[0]!==Fo&&g[0]<Xt&&!("loaderData"in i[f[0]])){s=[f[0],g],m=s[2]=await d(s);break}}}for(let f of a){if(f[0]>=m)break;let g=await f[2];if(!g)continue;s=g;break}if((s?.[1][0]??0)>=Xt){let f=s[1];if(f[0]!==Xt||f[1].options.reloadDocument||f[2])return hi(e,t),f;l=!0,s=[0,[vr,Error("Too many redirects")]]}let p=s?s[2]??await d(s):u;if(p>=0){let f=s?.[1],g=f?.[0],y=i[p],b=f?.[1],h=()=>{if(f){if(y._notFound=void 0,g===vr)y.status="error";else if(b.routeId=y.routeId,y.routeId===e.routeTree.id)y.status="success",y._notFound=!0;else y.status="notFound";y.error=b,y.isFetching=!1}};if(h(),!f)n?.();let x=yi(e,y);try{await gi(f?Promise.resolve().then(()=>mi(x,g===vr?"errorComponent":"notFoundComponent")):Promise.all([mi(x),mi(x,"notFoundComponent")]),o.signal)}catch(v){if(v===o.signal&&o.signal.aborted)return hi(e,t),sn}if(!f)y.status="success";else if(l)o.abort(),await Promise.all([...a.map((v)=>v[1]),...a.map((v)=>v[2]),...(t[2]??[]).map((v)=>v[1])]),hi(e,t),da(e,i),h()}return t}async function hk(e,t,a,o=0,r=t[1].length){let n=t[1];for(let i=o;i<r;i++){let s=n[i],l=yi(e,s).options;if(l.head||l.scripts)try{let u={ssr:e.options.ssr,matches:n,match:s,params:s.params,loaderData:s.loaderData},[d,m]=await gi(Promise.all([l.head?.(u),l.scripts?.(u)]),a);s.meta=d?.meta,s.links=d?.links,s.headScripts=d?.scripts,s.styles=d?.styles,s.scripts=m}catch(u){if(u===a&&a.aborted)break;console.error(u)}if(s.status!=="success"||s._notFound)break}return t}async function gk(e,t,a,o){let r=[t,a],n=o[0].signal,i;try{let s=e.stores.matches.get(),l=a.findIndex((h)=>h._notFound);if(e.options.notFoundMode!=="root"&&l>=0){let h=await ay(e,a,void 0,n,l);a[l]._notFound=void 0,a[h]._notFound=!0,l=h}let u=l<0?a.length:l+1,d=0;while(d<u&&d!==l){let h=a[d],x=o[2][d],v=s[d];if(x?.id!==h.id||x.status!=="success"||h.preload||v?.id!==h.id||v.status!=="success")break;if(d++,x._notFound||v._notFound)break}let m=[],p=o[6]??0,f=p?Promise.resolve(a[p-1]):void 0,g=()=>{for(let h=p;h<u;h++){if(n.aborted)break;f=YB(e,r,h,m,f,o,d)}},y=await jB(e,r,o,u,g,d);if(y){if(o[4]=!0,u=y[0],y[1][0]===Vf){let h=await ay(e,a,y,n);y[2]=h,u=Math.min(u,h+1)}else if(y[1][0]>=Xt)u=0;g()}if(!n.aborted&&!o[3]){let h=[];for(let[x,v]of e._flights??[])if(!v[2])e._flights.delete(x),h.push(v[1]);for(let x of h)x.abort()}let b=mk(e,r,m,o[0],dk(m,y,r[2]),o[7]);if(r[2]?.length)r[3]=dk(r[2],void 0,void 0,b.then((h)=>Bu(h)?0:$f(a).length,()=>0));i=await b}catch(s){if(hi(e,r),s===n&&n.aborted)return sn;throw s}if(Bu(i))return i;return hk(e,i,n,o[6]===a.length?o[6]:0)}function oy(e,t){if(e._tx!==t)return;let a=t[3],o=e.stores.matches.get(),r=e._pending;for(let n=0;n<a.length;n++){let i=a[n],s=i.status==="success"&&!i._notFound,l=o[n]?.id===i.id&&o[n]?.status==="pending";if(s&&!l)continue;let u=yi(e,i),d=s||i.invalid?0:u.options.pendingMs??e.options.defaultPendingMs,m=u.options.pendingComponent??e.options.defaultPendingComponent;if(!m||typeof d!=="number"||d===1/0){if(r)r[0]=t,r[2]=0,r[4]=!0;return}let p=u.options.pendingMinMs??e.options.defaultPendingMinMs??0,f=!1;if(r?.[1]===i.id)f=r[0]!==t,r[0]=t;else clearTimeout(r?.[3]),e._pending=r=void 0;if(!r)e._pending=r=[t,i.id,l?Date.now()+p:t[4]+d,void 0,l||void 0,m];if(r[4]&&!f&&r[5]===m)return;if(r[5]=m,!r[4]){clearTimeout(r[3]);let b=r[2]-Date.now();if(b>0){r[3]=setTimeout(()=>oy(e,t),b);return}r[2]=0}let g=a.map((b)=>({...b,_flight:void 0}));g[n].status="pending";let y=r[4]=e.startTransition(()=>e.stores.setMatches(g),g).then((b)=>{if(b&&e._pending===r&&r[4]===y&&!r[2])r[2]=Date.now()+p;return b});return}}function Ou(e,t){let a=e._pending;if(e._tx===t||!e._tx?.[3].some((o)=>o.id===a?.[1]))clearTimeout(a?.[3]),e._pending=void 0}async function fk(e,t){let a=e._pending;if(!a)return;clearTimeout(a[3]);let o=a[2]-Date.now();if(!a[4]||o<=0||!$f(t[3]).some((n)=>n.id===a[1]))return;let r;try{await gi(new Promise((n)=>{r=setTimeout(n,o)}),t[0].signal)}catch{}clearTimeout(r)}function yk(e,t){e._committed=t,e.stores.setMatches(t)}function WB(e,t,a,o){let{_committed:r,_lifecycleEnd:n,_cache:i}=e;for(let d of a)if(d.preload=!1,o)d._assetEnd=void 0;let s=$f(a).length,l=new Map;{let d=Date.now(),m=new Set;for(let p=0;p<a.length;p++){let f=a[p];if(p<s||f.status==="success")m.add(f.id)}for(let p of[...r,...i.values()]){if(p.status!=="success"||m.has(p.id))continue;let f=yi(e,p);if(!f.options.loader||d-p.updatedAt>=(p.preload?f.options.preloadGcTime??e.options.defaultPreloadGcTime??300000:f.options.gcTime??e.options.defaultGcTime??300000))continue;l.set(p.id,i.get(p.id)===p?p:{...p,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=l;let u=e._lifecycleEnd=ok(a);yk(e,a),da(e,[...i.values(),...r].filter((d)=>d._flight&&l.get(d.id)!==d),a),rk(e,r,a,n,u,t)}async function qf(e,t){let a=e._tx;while(a&&a!==t)t=a,await a[5],a=e._tx}function xk(e,t,a){let o=a[1].options,r=a[2];if(!r)return e.navigate({...o,replace:!0,ignoreBlocker:!0});if(o.reloadDocument)return e.navigate({href:(r.maskedLocation??r).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});r._redirects=t[1]+1,e._pendingLocation=r;let n=e.commitLocation({...r,viewTransition:o.viewTransition,replace:!0,resetScroll:o.resetScroll,hashScrollIntoView:o.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{if(e._pendingLocation===r)e._pendingLocation=void 0}),n}async function QB(e,t,a,o,r){let n=a.map((l)=>({...l}));sy(n);for(let l of o)xr(e,n[l[0]]),n[l[0]]=l[3];let i=[t[2],n],s;try{s=await mk(e,i,o,t[0],r)}catch(l){throw da(e,n),l}if(Bu(s)){if(da(e,n),s[0]===Xt&&e._tx===t&&e._committed===a)await xk(e,t,s);return}if(await hk(e,s,t[0].signal),e._tx!==t||e._committed!==a){da(e,n);return}for(let l of n){let u=e._cache.get(l.id);if(u?._flight&&u._flight===l._flight)e._cache.delete(l.id),xr(e,u)}yk(e,n),da(e,a,n)}async function JB(e,t,a,o,r,n){let i=await gk(e,t[2],t[3],[t[0],t[1],e._committed,void 0,r,a,n,o]);if(Bu(i)){let m=i[0]===Xt&&e._tx===t;if(!m||i[1].options.reloadDocument)Ou(e,t);if(da(e,t[3]),t[3]=[],!m)return;if(e._tx!==t){Ou(e,t);return}await xk(e,t,i);return}let s=i[1];if(e._tx===t)await fk(e,t);if(e._tx!==t){Ou(e,t),da(e,s),hi(e,i);return}let l=t[2],u=pi(l,e.stores.resolvedLocation.get()),d=i[2];await e.startViewTransition(async()=>{if(e._tx===t)await fk(e,t);if(e._tx!==t){Ou(e,t),da(e,s),hi(e,i);return}let m=()=>{if(Ou(e,t),WB(e,t,s,n),e._tx!==t)return;if(e.emit({type:"onLoad",...u}),e._tx===t)e.emit({type:"onBeforeRouteMount",...u})},p=await e.startTransition(m,s);if(e._tx!==t){hi(e,i);return}if(d?.length)QB(e,t,s,d,i[3]).catch(console.error);if(e.batch(()=>{if(e.stores.resolvedLocation.set(l),e.stores.status.set("idle"),e._tx===t)e.emit({type:"onResolved",...u});if(p&&e._tx===t)e.emit({type:"onRendered",...u})}),e._tx!==t)return;e._commitPromise?.resolve(),e._commitPromise=void 0})}async function ik(e,t){let a=!1,o=e._tx,r=e.stores.resolvedLocation.get(),n=r??e.stores.location.get(),i=e.latestLocation,s=e._pendingLocation,l=s?.href===i.href?s._redirects??0:0,u=e._handoff,d=a?void 0:u?.[0](),m=new AbortController,p=e._preflight;if(e._preflight=m,!a&&!d)u?.[1]();if(p?.abort(),!m.signal.aborted){let C=pi(i,r);if(e.emit({type:"onBeforeNavigate",...C}),!m.signal.aborted)e.emit({type:"onBeforeLoad",...C})}if(m.signal.aborted){await qf(e,o);return}let f=n.href===i.href,g=m,y=e.matchRoutes(i,{_controller:m});sy(y);let b=d?u[1](y):void 0;if(b)g=d;else d?.abort();if(m.signal.aborted){da(e,y),await qf(e,o);return}e._preflight=void 0;let h,x=()=>JB(e,w,f,()=>oy(e,w),t?.sync,b),v=t?.sync?new Promise((C)=>h=C):Promise.resolve().then(x),w=[g,l,i,y,Date.now(),v.then(()=>qf(e,w))];if(e._tx=w,o){for(let C of e.stores.matches.get()){if(e._tx!==w)break;if(C.isFetching)Hu(e,C,!1)}o[0].abort(),da(e,o[3],w[3],!0)}if(e._tx!==w){da(e,w[3]),w[3]=[],h?.(),await qf(e,w);return}if(e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(i)}),b||!e._committed.length&&y[0]?.status!=="success"&&!y.some((C)=>C._notFound))oy(e,w);h?.(x()),await w[5]}async function sk(e,t){let a=e.buildLocation(t);for(let o=0;;o++){let r=e._committed,n=new AbortController,i,s,l;try{try{i=e.matchRoutes(a,{_controller:n}),sy(i),s=(e._preloads??=new Map).set(n,i),l=await gk(e,a,i,[n,o,r,!0])}finally{if(s)s=s.delete(n),da(e,i);n.abort()}if(!Bu(l))return l[1];if(!s||l.length<3)return;a=l[2]}catch(u){if(!ca(u))console.error(u);return}}}var uy="Error preloading route! \u261D\uFE0F";var Zf=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=(t)=>{this.originalIndex=t,this._branch=void 0;let a=this.options,o=!a?.path&&!a?.id;if(this.parentRoute=this.options.getParentRoute?.(),o)this._path=Ra;else if(!this.parentRoute)an();let r=o?Ra:a?.path;if(r&&r!=="/")r=Au(r);let n=a?.id||r,i=o?Ra:Bo((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(n??""));if(r==="__root__")r="/";let s=i==="__root__"?"/":r===void 0?this.parentRoute.fullPath:Bo(this.parentRoute.fullPath+"/"+r);this._path=r,this._id=i,this._fullPath=s,this._to=$t(s)},this.addChildren=(t)=>this._addFileChildren(t),this._addFileChildren=(t)=>{if(Array.isArray(t))this.children=t;if(typeof t==="object"&&t!==null)this.children=Object.values(t);return this},this._addFileTypes=()=>this,this.updateLoader=(t)=>(Object.assign(this.options,t),this),this.update=(t)=>(Object.assign(this.options,t),this),this.lazy=(t)=>(this.lazyFn=t,this),this.redirect=(t)=>Og({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}},cy=class{constructor({id:e}){this.notFound=(t)=>on({routeId:this.id,...t}),this.redirect=(t)=>Og({from:this.id,...t}),this.id=e}},dy=class extends Zf{constructor(e){super(e)}};var fy=U(V(),1);function vk(e,t){let a=e.stores.location,o=new Set,r,n,i=(s)=>{if(!ry(e,t,s))r=s,o.forEach((l)=>l())};return[()=>r??a.get(),(s)=>{if(!o.size)r=a.get(),n=a.subscribe(i).unsubscribe;return o.add(s),()=>{if(o.delete(s),!o.size)n(),r=void 0}}]}var ln=fy.createContext(void 0),bk=fy.createContext(void 0);var Yf=U(V(),1);var hy=U(V(),1);var un=U(V(),1),R5=wk();function _5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var T5=typeof Object.is==="function"?Object.is:_5,E5=R5.useSyncExternalStore,N5=un.useRef,A5=un.useEffect,M5=un.useMemo,D5=un.useDebugValue;var my=function(e,t,a,o,r){var n=N5(null);if(n.current===null){var i={hasValue:!1,value:null};n.current=i}else i=n.current;n=M5(function(){function l(f){if(!u){if(u=!0,d=f,f=o(f),r!==void 0&&i.hasValue){var g=i.value;if(r(g,f))return m=g}return m=f}if(g=m,T5(d,f))return g;var y=o(f);if(r!==void 0&&r(g,y))return d=f,g;return d=f,m=y}var u=!1,d,m,p=a===void 0?null:a;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,a,o,r]);var s=E5(e,n[0],n[1]);return A5(function(){i.hasValue=!0,i.value=s},[s]),D5(s),s};function P5(e,t){return e===t}function Xe(e,t=(o)=>o,a){let o=a?.compare??P5,r=hy.useCallback((i)=>{let{unsubscribe:s}=e.subscribe(i);return s},[e]),n=hy.useCallback(()=>e.get(),[e]);return my(r,n,n,t,o)}function Sk({update:e,notify:t,unwatched:a}){return{link:o,unlink:r,propagate:n,checkDirty:i,shallowPropagate:s};function o(u,d,m){let p=d.depsTail;if(p!==void 0&&p.dep===u)return;let f=p!==void 0?p.nextDep:d.deps;if(f!==void 0&&f.dep===u){f.version=m,d.depsTail=f;return}let g=u.subsTail;if(g!==void 0&&g.version===m&&g.sub===d)return;let y=d.depsTail=u.subsTail={version:m,dep:u,sub:d,prevDep:p,nextDep:f,prevSub:g,nextSub:void 0};if(f!==void 0)f.prevDep=y;if(p!==void 0)p.nextDep=y;else d.deps=y;if(g!==void 0)g.nextSub=y;else u.subs=y}function r(u,d=u.sub){let{dep:m,prevDep:p,nextDep:f,nextSub:g,prevSub:y}=u;if(f!==void 0)f.prevDep=p;else d.depsTail=p;if(p!==void 0)p.nextDep=f;else d.deps=f;if(g!==void 0)g.prevSub=y;else m.subsTail=y;if(y!==void 0)y.nextSub=g;else if((m.subs=g)===void 0)a(m);return f}function n(u){let d=u.nextSub,m;e:do{let p=u.sub,f=p.flags;if(!(f&60))p.flags=f|32;else if(!(f&12))f=0;else if(!(f&4))p.flags=f&-9|32;else if(!(f&48)&&l(u,p))p.flags=f|40,f&=1;else f=0;if(f&2)t(p);if(f&1){let g=p.subs;if(g!==void 0){let y=(u=g).nextSub;if(y!==void 0)m={value:d,prev:m},d=y;continue}}if((u=d)!==void 0){d=u.nextSub;continue}while(m!==void 0)if(u=m.value,m=m.prev,u!==void 0){d=u.nextSub;continue e}break}while(!0)}function i(u,d){let m,p=0,f=!1;e:do{let g=u.dep,y=g.flags;if(d.flags&16)f=!0;else if((y&17)===17){if(e(g)){let b=g.subs;if(b.nextSub!==void 0)s(b);f=!0}}else if((y&33)===33){if(u.nextSub!==void 0||u.prevSub!==void 0)m={value:u,prev:m};u=g.deps,d=g,++p;continue}if(!f){let b=u.nextDep;if(b!==void 0){u=b;continue}}while(p--){let b=d.subs,h=b.nextSub!==void 0;if(h)u=m.value,m=m.prev;else u=b;if(f){if(e(d)){if(h)s(b);d=u.sub;continue}f=!1}else d.flags&=-33;d=u.sub;let x=u.nextDep;if(x!==void 0){u=x;continue e}}return f}while(!0)}function s(u){do{let d=u.sub,m=d.flags;if((m&48)===32){if(d.flags=m|16,(m&6)===2)t(d)}}while((u=u.nextSub)!==void 0)}function l(u,d){let m=d.depsTail;while(m!==void 0){if(m===u)return!0;m=m.prevDep}return!1}}function Uu(e,t,a){let o=typeof e==="object",r=o?e:void 0;return{next:(o?e.next:e)?.bind(r),error:(o?e.error:t)?.bind(r),complete:(o?e.complete:a)?.bind(r)}}var gy=[],jf=0,{link:Lk,unlink:O5,propagate:z5,checkDirty:kk,shallowPropagate:Ck}=Sk({update(e){return e._update()},notify(e){gy[yy++]=e,e.flags&=-3},unwatched(e){if(e.depsTail!==void 0)e.depsTail=void 0,e.flags=17,Xf(e)}}),Kf=0,yy=0,yo,xy=0;function vy(e){try{++xy,e()}finally{if(!--xy)by()}}function Xf(e){let t=e.depsTail,a=t!==void 0?t.nextDep:e.deps;while(a!==void 0)a=O5(a,e)}function by(){if(xy>0)return;while(Kf<yy){let e=gy[Kf];gy[Kf++]=void 0,e.notify()}Kf=0,yy=0}function xi(e,t){let a=typeof e==="function",o=e,r={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?0:1,get(){if(yo!==void 0)Lk(r,yo,jf);return r._snapshot},subscribe(n){let i=Uu(n),s={current:!1},l=B5(()=>{if(r.get(),!s.current)s.current=!0;else yo=void 0,i.next?.(r._snapshot)});return{unsubscribe:()=>{l.stop()}}},_update(n){let i=yo,s=t?.compare??Object.is;if(a)yo=r,++jf,r.depsTail=void 0;else if(n===void 0)return!1;if(a)r.flags=5;try{let l=r._snapshot,u=typeof n==="function"?n(l):n===void 0&&a?o(l):n;if(l===void 0||!s(l,u))return r._snapshot=u,!0;return!1}finally{if(yo=i,a)r.flags&=-5;Xf(r)}}};if(a)r.flags=17,r.get=function(){let n=r.flags;if(n&16||n&32&&kk(r.deps,r)){if(r._update()){let i=r.subs;if(i!==void 0)Ck(i)}}else if(n&32)r.flags=n&-33;if(yo!==void 0)Lk(r,yo,jf);return r._snapshot};else r.set=function(n){if(r._update(n)){let i=r.subs;if(i!==void 0)z5(i),Ck(i),by()}};return r}function B5(e){let t=()=>{let o=yo;yo=a,++jf,a.depsTail=void 0,a.flags=6;try{return e()}finally{yo=o,a.flags&=-5,Xf(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let o=this.flags;if(o&16||o&32&&kk(this.deps,this))t();else this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Xf(this)}};return t(),a}var wy=class{constructor(e,t){if(this.atom=xi(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t)this.actions=t(this)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Uu(e))}},Ik=class{constructor(e){this.atom=xi(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Uu(e))}};function Sy(e,t){if(typeof e==="function")return new Ik(e);if(t)return new wy(e,t);return new wy(e)}var Rk={};function Ly(e,t){let a=Yf.useRef();return(o)=>{let r=e?.select?e.select(o):o;if(e?.structuralSharing??t.options.defaultStructuralSharing)return a.current=ja(a.current,r);return r}}function At(e){let t=xe(),a=Yf.useContext(e.from?bk:ln),o=e.from??a,r=t.stores.getMatchStore(o);if(te??t.isServer){let s=r.get();if(!s){if(e.shouldThrow??!0)an();return}return e.select?e.select(s):s}let n=Ly(e,t),i=Xe(r,(s)=>s?n(s):Rk);if(i!==Rk)return i;if(e.shouldThrow??!0)an()}var Ye=U(V(),1);var F5=Symbol.for("react.transitional.element"),H5=Symbol.for("react.fragment");function _k(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:F5,type:e,key:o,ref:t!==void 0?t:null,props:a}}var he=H5,c=_k,S=_k;function U5(...e){let t=Ye.useRef(e),a=t.current;return e.forEach((o,r)=>{if(!Ia(a[r],o,!1,!0))a[r]=o}),t.current}function Wf(e,t){e.preloadRoute(t).catch((a)=>{console.warn(a),console.warn(uy)})}function Tk(e,t){let a=typeof e==="string"&&yr(e);if(!a)return;if(!t.has(a))return null;return e}function Ek(e,t,a,o){let r=Df(e.pathname,o),n=Df(t.pathname,o);if(a?.exact?r!==n:!(r.startsWith(n)&&(r.length===n.length||r[n.length]==="/")))return!1;if(a?.includeSearch??!0){if(!Ia(e.search,t.search,!a?.exact,a?.explicitUndefined))return!1}return!a?.includeHash||e.hash===t.hash}function Nk(e,t,a){let o=xe();if(te??o.isServer)return $5(o,e,t,a);let r=Ye.useRef(null),n=Ye.useCallback((N)=>{if(r.current=N,typeof t==="function")return t(N);if(t)t.current=N},[t]),{activeOptions:i,to:s,preload:l,preloadDelay:u,disabled:d,target:m,onClick:p,onBlur:f,onFocus:g,onMouseEnter:y,onMouseLeave:b,onTouchStart:h}=e,[x,v,w]=U5(e.search,e.params,i),C=Ye.useContext(ln),I=(o.stores._linkScopes??={})[C]??=vk(o,C),[L,k,_]=Ye.useMemo(()=>{let N=Tk(s,o.protocolAllowlist);if(N!==void 0){let fe=[N??void 0];return[e,()=>fe]}let Z={...e},Q,H,J,oe=()=>{let fe=I[0]();if(fe!==Q){Z._fromLocation=fe;let ne=o.buildLocation(Z),Ka=Pk(ne,o,d),li=d||Ka&&!yr(Ka)?Ek(fe,ne,w,o.basepath):void 0;if(!H||H[0]!==Ka||H[1]!==li)H=[Ka,li];Q=fe}return H};return[Z,oe,w?.includeHash&&(()=>{let fe=oe();return fe[1]?J??=[fe[0],!1]:fe})]},[o,I,e.from,e.hash,e.href,s,x,v,e.state,e.mask,e.unsafeRelative,w,d]),[T,O]=Ye.useSyncExternalStore(I[1],k,_||k),D=O===void 0&&T,z=d||T===void 0,R=Ye.useRef(!1),A=e.reloadDocument||D||z?!1:l??o.options.defaultPreload,E=u??o.options.defaultPreloadDelay??0,B=Ye.useCallback((N)=>{let Z=N?.isIntersecting;if(!(Z??A==="intent")){if(Z===!1)Qf(r);return}if(!E){Wf(o,L);return}r.t??=setTimeout(()=>{r.t=void 0,Wf(o,L)},E)},[o,L,r,A,E]);Ye.useEffect(()=>{if(!A)return;if(A==="render"&&!R.current)R.current=!0,Wf(o,L);let N=!0,Z;if(A==="viewport"&&r.current&&typeof IntersectionObserver==="function")Z=new IntersectionObserver((Q)=>{if(N)B(Q.pop())},{rootMargin:"100px"}),Z.observe(r.current);return()=>{N=!1,Z?.disconnect(),Qf(r)}},[o,L,A,B,r]);let X=Mk(e,a);if(X.ref=t?n:r,D)return X.href=D,X;let ee=(N)=>{let Z=m??N.currentTarget.getAttribute("target");if(!z&&!(N.metaKey||N.altKey||N.ctrlKey||N.shiftKey)&&!N.defaultPrevented&&(!Z||Z==="_self")&&N.button===0)N.preventDefault(),Qf(r),o.navigate({...e,_fromLocation:L._fromLocation})},F=()=>{if(A==="intent")Wf(o,L)},ce=()=>{if(A==="intent")Qf(r)};return X.onClick=As(p,ee),X.onBlur=As(f,ce),X.onFocus=As(g,B),X.onMouseEnter=As(y,B),X.onMouseLeave=As(b,ce),X.onTouchStart=As(h,F),Dk(X,e,O,T,z,a)}var G5={},q5={className:"active"},Ak=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function Mk(e,t){let a={};for(let o in e){if(Ak.has(o)||o==="type"&&t!==void 0||o==="disabled"&&t==="a")continue;a[o]=e[o]}return a}function Dk(e,t,a,o,r,n){let{activeProps:i,inactiveProps:s,className:l,style:u,target:d}=t,m=tn(a?i:s,{})??(a?q5:G5);if(Object.assign(e,m),e.href=o,n!=="a")e.disabled=r;e.target=d;let p=m.style;if(u||p)e.style=u&&p?{...u,...p}:u||p;let f=m.className;if(l||f)e.className=l?f?\`\${l} \${f}\`:l:f;if(r)e.role="link",e["aria-disabled"]=!0;if(a)e["data-status"]="active",e["aria-current"]="page";return e}function $5(e,t,a,o){let{to:r,disabled:n,activeOptions:i}=t,s=Tk(r,e.protocolAllowlist),l=s===void 0?e.buildLocation(t):void 0,u=l?Pk(l,e,n):s??void 0,d=n||!u,m=s??(u&&yr(u)?u:void 0),p=Mk(t,o);if(p.ref=a,m)return p.href=m,p;return Dk(p,t,!!l&&!(!n&&!u)&&!i?.includeHash&&Ek(e.stores.location.get(),l,i,e.basepath),u,d,o)}var Qf=(e)=>{clearTimeout(e.t),e.t=void 0},As=(e,t)=>{if(!e)return t;return(a)=>a.defaultPrevented||(e(a),a.defaultPrevented||t(a))};function Pk(e,t,a){if(a)return;let o=e.maskedLocation??e,r=o.external?o.publicHref:t.history.createHref(o.publicHref)||"/";if((o.external||r!==o.publicHref)&&Nu(r,t.protocolAllowlist))return;return r}function Cy(e){return Ye.forwardRef(function(a,o){return c(Ms,{...a,_asChild:e,ref:o})})}var Ms=Ye.memo(Ye.forwardRef((e,t)=>{let a=e._asChild||"a",o=Nk(e,t,a),r=typeof e.children==="function"?e.children({isActive:o["data-status"]==="active"}):e.children;return Ye.createElement(a,o,r)}),V5);function V5(e,t){let a=0;for(let o in t){if(a++,e[o]===t[o])continue;if(!Ak.has(o)||!Ia(e[o],t[o],!1,!0))return!1}for(let o in e)a--;return a===0}function Jf(e){return At({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:(t)=>e.select?e.select(t.loaderData):t.loaderData})}function ep(e){let{select:t,...a}=e;return At({...a,select:(o)=>t?t(o.loaderDeps):o.loaderDeps})}function tp(e){return At({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:(t)=>{let a=e.strict===!1?t.params:t._strictParams;return e.select?e.select(a):a}})}function ap(e){return At({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:(t)=>e.select?e.select(t.search):t.search})}var Gu=U(V(),1);var op=te??typeof window>"u"?Gu.useEffect:Gu.useLayoutEffect;var ky=U(V(),1);function rp(e){let t=xe();return ky.useCallback((a)=>t.navigate({...a,from:a.from??e?.from}),[e?.from,t])}function np(e){return At({...e,select:(t)=>e.select?e.select(t.context):t.context})}var ip=U(V(),1);function qu(e){return new Ok({id:e})}var Ok=class extends cy{constructor({id:e}){super({id:e});this.useMatch=(t)=>At({...t,from:this.id}),this.useRouteContext=(t)=>np({...t,from:this.id}),this.useSearch=(t)=>ap({...t,from:this.id}),this.useParams=(t)=>tp({...t,from:this.id}),this.useLoaderDeps=(t)=>ep({...t,from:this.id,strict:!1}),this.useLoaderData=(t)=>Jf({...t,from:this.id,strict:!1}),this.useNavigate=()=>{let t=xe();return rp({from:t.routesById[this.id].fullPath})},this.notFound=(t)=>on({routeId:this.id,...t}),this.Link=ip.default.forwardRef((t,a)=>{let o=xe().routesById[this.id].fullPath;return c(Ms,{ref:a,from:o,...t})})}},zk=class extends Zf{constructor(e){super(e);this.useMatch=(t)=>At({...t,from:this.id}),this.useRouteContext=(t)=>np({...t,from:this.id}),this.useSearch=(t)=>ap({...t,from:this.id}),this.useParams=(t)=>tp({...t,from:this.id}),this.useLoaderDeps=(t)=>ep({...t,from:this.id}),this.useLoaderData=(t)=>Jf({...t,from:this.id}),this.useNavigate=()=>rp({from:this.fullPath}),this.Link=ip.default.forwardRef((t,a)=>c(Ms,{ref:a,from:this.fullPath,...t}))}};function cn(e){return new zk(e)}function Iy(){return(e)=>Fk(e)}var Bk=class extends dy{constructor(e){super(e);this.useMatch=(t)=>At({...t,from:this.id}),this.useRouteContext=(t)=>np({...t,from:this.id}),this.useSearch=(t)=>ap({...t,from:this.id}),this.useParams=(t)=>tp({...t,from:this.id}),this.useLoaderDeps=(t)=>ep({...t,from:this.id}),this.useLoaderData=(t)=>Jf({...t,from:this.id}),this.useNavigate=()=>rp({from:this.fullPath}),this.Link=ip.default.forwardRef((t,a)=>c(Ms,{ref:a,from:this.fullPath,...t}))}};function Fk(e){return new Bk(e)}var Ds=U(V(),1);var vi=class extends Ds.Component{constructor(...e){super(...e);this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let a=e.getResetKey();if(t.error&&t.resetKey!==a)return{resetKey:a,error:0};return{resetKey:a}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;if(e)return Ds.createElement(this.props.errorComponent??Ry,{error:e[0],reset:this.reset});return this.props.children}};function Ry({error:e}){let[t,a]=Ds.useState(!1);return S("div",{style:{padding:".5rem",maxWidth:"100%"},children:[S("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[c("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),c("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a((o)=>!o),children:t?"Hide Error":"Show Error"})]}),c("div",{style:{height:".25rem"}}),t?c("div",{children:c("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e?.message?c("code",{children:e.message}):null})}):null]})}var _y=U(V(),1);var Hk=()=>!0,Z5=()=>!1;function Uk({children:e,fallback:t=null}){return c(_y.default.Fragment,{children:K5()?e:t})}function K5(e=!0){return _y.default.useSyncExternalStore(j5,Hk,e?Z5:Hk)}function j5(){return()=>{}}var lY=U(V(),1);function Gk(e){let t=xe();if(te??t.isServer){let o=\`not-found-\${t.stores.location.get().pathname}-\${t.stores.status.get()}\`;return c(vi,{getResetKey:()=>o,onCatch:(r,n)=>{if(ca(r))e.onCatch?.(r,n);else throw r},errorComponent:({error:r})=>{if(ca(r))return e.fallback?.(r);else throw r},children:e.children})}let a=\`not-found-\${Xe(t.stores.location,(o)=>o.pathname)}-\${Xe(t.stores.status)}\`;return c(vi,{getResetKey:()=>a,onCatch:(o,r)=>{if(ca(o))e.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(ca(o))return e.fallback?.(o);else throw o},children:e.children})}function qk(){return c("p",{children:"Not Found"})}var mY=U(V(),1);function Ty(e,t,a){if(!t.options.notFoundComponent){if(e.options.defaultNotFoundComponent)return c(e.options.defaultNotFoundComponent,{...a});return c(qk,{})}return c(t.options.notFoundComponent,{...a})}function $k({children:e}){let t=xe();if(!(te??t.isServer))return null;return c("script",{nonce:t.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+";document.currentScript.remove()"}})}function Vk(e){return null}function Zk(){let e=xe(),t=Vk(e);if(!t)return null;return c($k,{children:t})}var fa=U(V(),1);function $u(e,t){let a=t?.options.pendingComponent??e.options.defaultPendingComponent;if(!a)return null;return c(a,{})}var X5=(e,t)=>e[0]===t[0]&&e[1]===t[1],jk=(e,t,a)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||a===!1||a==="data-only"||!((te??e.isServer)||e.ssr),sp=fa.memo(function({routeId:t}){let a=xe();if(te??a.isServer)return Kk(a,a.stores.byRoute.get(t).get());let o=a.stores.getMatchStore(t);return Kk(a,Xe(o))});function Kk(e,t){let a=e.routesById[t.routeId],o=$u(e,a),r=a.options.errorComponent??e.options.defaultErrorComponent,n=a.options.onCatch??e.options.defaultOnCatch,i=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,s=t.ssr===!1||t.ssr==="data-only",l=jk(e,a,t.ssr)&&(a.options.wrapInSuspense??o??(a.options.errorComponent?.preload||s)),u=c(Y5,{match:t});if(s)u=c(Uk,{fallback:o,children:u});if(i)u=c(Gk,{fallback:(p)=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return fa.createElement(i,p)},children:u});if(r)u=c(vi,{getResetKey:()=>t,errorComponent:r,onCatch:(p,f)=>{if(ca(p))throw p.routeId??=t.routeId,p;n?.(p,f)},children:u});if(l)u=c(fa.Suspense,{fallback:o,children:u});let d=(te??e.isServer)&&a.parentRoute?.id===Ra&&e.options.scrollRestoration?c(Zk,{}):null,m=a.isRoot&&a.options.shellComponent;return m?c(ln.Provider,{value:t.routeId,children:S(m,{children:[u,d]})}):S(ln.Provider,{value:t.routeId,children:[u,d]})}var Y5=fa.memo(function({match:t}){let a=xe(),o=t.routeId,r=a.routesById[o],n=fa.useMemo(()=>{let s=(r.options.remountDeps??a.options.defaultRemountDeps)?.({routeId:o,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return s?JSON.stringify(s):void 0},[o,t.loaderDeps,t._strictParams,t._strictSearch,r.options.remountDeps,a.options.defaultRemountDeps]),i=fa.useMemo(()=>{let s=r.options.component??a.options.defaultComponent;return s?c(s,{},n):c(lp,{})},[n,r.options.component,a.options.defaultComponent]);if(t.status==="pending"){if(a.ssr&&!jk(a,r,t.ssr))return i;if(a._tx)throw a._tx[5];return $u(a,r)}if(t.status==="notFound")return Ty(a,r,t.error);if(t.status==="error"){if(te??a.isServer){let s=(r.options.errorComponent??a.options.defaultErrorComponent)||Ry;return c(s,{error:t.error,reset:void 0,info:{componentStack:""}})}throw t.error}return i}),lp=fa.memo(function(){let t=xe(),a=fa.useContext(ln),o,r,n;if(te??t.isServer){let s=t.stores.matches.get(),l=s.findIndex((d)=>d.routeId===a),u=s[l];o=!!u._notFound,r=u.error,n=s[l+1]?.routeId}else{let s=t.stores.getMatchStore(a);[o,r]=Xe(s,(l)=>[!!l._notFound,l.error],{compare:X5}),n=Xe(t.stores.ids,(l)=>l[l.indexOf(a)+1])}if(o)return Ty(t,t.routesById[a],r);if(!n)return null;let i=c(sp,{routeId:n});if(a===Ra)return c(fa.Suspense,{fallback:$u(t),children:i});return i});var Xk=(e)=>{if(te??e.isServer)return{createMutableStore:Gg,createReadonlyStore:qg,batch:(t)=>t()};return{createMutableStore:xi,createReadonlyStore:xi,batch:vy}};var Ey=(e)=>new Yk(e),Yk=class extends ey{constructor(e){super(e,Xk)}};var Ny=U(V(),1);function Ay(e,t){let a=e[1];e.length=0,a?.(t)}function Wk({t:e}){let t=xe(),a=t._rendered??=[],o=void 0;return t.startTransition=(r,n)=>new Promise((i)=>{Ay(a,!1),a.push(n,i),e(t),Ny.startTransition(r)}),op(()=>{let r=t.history.subscribe(t.load);if((void 0)?.current)return r;t.updateLatestLocation();let n=t.latestLocation,i=t.buildLocation({to:n.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if($t(n.publicHref)!==$t(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),r;let s=t.stores.resolvedLocation.get();if(s?.href===n.href&&s.state.__TSR_key===n.state.__TSR_key)a.push(t.stores.matches.get(),(l)=>{if(l)t.emit({type:"onRendered",...pi(s,s)})});else if(!t._tx)t.load({sync:!0}).catch(console.error);return r},[t,t.history]),null}var Ps=U(V(),1);function Jk(){let e=xe(),t=e.routesById[Ra],a=$u(e,t),o=S(he,{children:[!(te??e.isServer)&&c(Wk,{t:Ps.useState()[1]}),(te??e.isServer)||e.ssr?c(Qk,{}):c(Ps.Suspense,{fallback:a,children:c(Qk,{})})]});return e.options.InnerWrap?c(e.options.InnerWrap,{children:o}):o}function Qk(){let e=xe(),t=e._rendered,a=te??e.isServer?e.stores.matches.get():Xe(e.stores.matches,(i)=>t[0]??i),o=a[0],r=o?.routeId;op(()=>{if(t[0]===a)Ay(t,!0)},[t,a]);let n=r?c(sp,{routeId:r}):null;return e.options.disableGlobalCatchBoundary?n:c(vi,{getResetKey:()=>o,onCatch:void 0,children:n})}var cW=U(V(),1);function e1({router:e,children:t,...a}){if(Tu(a))e.update({...e.options,...a,context:{...e.options.context,...a.context}});let o=c(Ef.Provider,{value:e,children:t});if(e.options.Wrap)return c(e.options.Wrap,{children:o});return o}function My({router:e,...t}){return c(e1,{router:e,...t,children:c(Jk,{})})}function Vu(e){let t=xe();if(te??t.isServer){let a=t.stores.location.get();return e?.select?e.select(a):a}return Xe(t.stores.location,Ly(e,t))}function Py(e){let t=Object.values(e).filter((o)=>typeof o==="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function t1(e,t){if(typeof t==="bigint")return t.toString();return t}class a1{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;if(e!==void 0)this._value=e(),this._getter=void 0;return this._value}}function o1(e){return new a1(e)}function r1(e){return e===null||e===void 0}function n1(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function i1(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}var Oy="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function up(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function zy(e){if(up(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!=="function")return!0;let a=t.prototype;if(up(a)===!1)return!1;if(Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)return!1;return!0}function By(e){if(zy(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}var s1=new Set(["string","number","symbol"]);function Fy(e){return e.replace(/[.*+?^\${}()|[\\]\\\\]/g,"\\\\$&")}function cp(e,t,a){let o=new e._zod.constr(t??e._zod.def);if(!t||a?.parent)o._zod.parent=e;return o}function _a(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both \`message\` and \`error\` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function l1(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}function wi(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function u1(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue===!1)return!0;return!1}function Si(e,t){return t.map((a)=>{var o;return(o=a).path??(o.path=[]),a.path.unshift(e),a})}function Zu(e){return typeof e==="string"?e:e?.message}function Hy(e,t,a){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=a)}function fn(e,t,a){var o;let r=e.inst?._zod?.traits;if(r?.has("$ZodType"))if(r.has("$ZodCheck"))(o=e).schema??(o.schema=e.inst);else e.schema=e.inst;let n=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,i=e.message?e.message:Zu(e.inst?._zod.def?.error?.(e))??Zu(n?.(e))??Zu(t?.error?.(e))??Zu(a.customError?.(e))??Zu(a.localeError?.(e))??"Invalid input",s={};for(let l of Object.keys(e)){if(l==="inst"||l==="schema"||l==="continue"||l==="input"||l==="__proto__")continue;s[l]=e[l]}if(s.path??(s.path=[]),s.message=i,t?.reportInput)s.input=e.input;return s}var W5=/[\\uD800-\\uDBFF]/;function Uy(e){let t=e.length;if(!W5.test(e))return t;let a=t;for(let o=0;o<t-1;o++)if((e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320)a--,o++;return a}function Gy(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function qy(...e){let[t,a,o]=e;if(typeof t==="string")return{message:t,code:"custom",input:a,inst:o};return{...t}}function c1(e,t){for(let a in t){let o=Object.getOwnPropertyDescriptor(t,a);if(o.get)Object.defineProperty(e,a,{...o,enumerable:!1});else Q5(e,a,o.value)}}function bi(e,t,a,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:a}),a}function $y(e,t,a){return bi(e,t,a,!1)}function Q5(e,t,a){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?a:bi(this,t,a.bind(this))},set(o){bi(this,t,o)}})}function J5(e,t){let a=Object.getPrototypeOf(e);return t in a?void 0:a}var Dy,dn=!1,e3={configurable:!0,get(){dn=!0;return}};function Li(e,t,a){let o=Object.getPrototypeOf(e._zod);if(t in o&&Dy!==e._zod){Dy=void 0;return}Dy=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,e3);let r=dn;dn=!1;try{let n=a(this);if(dn)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});return dn=dn||r,n}catch(n){throw delete this[t],dn=dn||r,n}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function d1(e,t,a,o){let r=J5(e,t);if(!r)return;Object.defineProperty(r,t,{configurable:!0,get(){let n={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,n),n.value=a(this),Object.defineProperty(this,t,n),n.value},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:n})}})}var f1;var Vy={value:void 0,enumerable:!1},p1="captureStackTrace"in Error?Error:null;function t3(e){let t=p1;if(t){let a=t.stackTraceLimit;if(typeof a==="number"){try{t.stackTraceLimit=0}catch{return p1=null,new e}try{return new e}finally{t.stackTraceLimit=a}}}return new e}function be(e,t,a,o){let r={};function n(p){this.def=p,this.constr=m,this.traits=new Set}n.prototype=r;let i=a,s=i&&new WeakSet;function l(p,f){if(!p._zod){Vy.value=new n(f);try{Object.defineProperty(p,"_zod",Vy)}finally{Vy.value=void 0}}else if(p._zod.traits.has(e))return;if(p._zod.traits.add(e),t(p,f),s){let y=Object.getPrototypeOf(p),b=p._zod.constr.prototype,h=y;while(h&&h!==b)h=Object.getPrototypeOf(h);let x=h??y;if(!s.has(x))s.add(x),c1(x,i)}let g=m.prototype;for(let y in g){if(!Object.prototype.hasOwnProperty.call(g,y))continue;if(!(y in p))p[y]=g[y].bind(p)}}let u=o?.Parent??Object;class d extends u{}Object.defineProperty(d,"name",{value:e});function m(p){let f=o?.Parent?t3(d):this;l(f,p);let g=f._zod.deferred;if(g){for(let b of g)b();f._zod.deferred=void 0}let y=globalThis.__zod_globalConfig?.postProcessor;if(y)y(f);return f}return Object.defineProperty(m,"init",{value:l}),Object.defineProperty(m,Symbol.hasInstance,{value:(p)=>{if(o?.Parent&&p instanceof o.Parent)return!0;return p?._zod?.traits?.has(e)}}),Object.defineProperty(m,"name",{value:e}),m}class pn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}(f1=globalThis).__zod_globalConfig??(f1.__zod_globalConfig={});var Ku=globalThis.__zod_globalConfig;function mn(e){if(e)Object.assign(Ku,e);return Ku}function a3(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,t1,2)),e.message}function o3(e){this._zod.message=e}var r3={get:a3,set:o3,enumerable:!0,configurable:!0},Ky={value:void 0,enumerable:!1},m1=new WeakSet([Object.prototype,Error.prototype]),h1=(e,t)=>{e.name="$ZodError",Ky.value=t,Object.defineProperty(e,"issues",Ky),Ky.value=void 0,Object.defineProperty(e,"message",r3);let a=Object.getPrototypeOf(e);if(!m1.has(a))m1.add(a),Object.defineProperty(a,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}})},VQ=be("$ZodError",h1),ju=be("$ZodError",h1,void 0,{Parent:Error});var i3=(e)=>{let t=(a,o,r,n)=>{let i=r?{...r,async:!1}:{async:!1},s=a._zod.run({value:o,issues:[]},i);if(s instanceof Promise)throw new pn;if(s.issues.length){let l=new(n?.Err??e)(s.issues.map((u)=>fn(u,i,mn())));throw Oy(l,n?.callee??t),l}return s.value};return t},jy=i3(ju),s3=(e)=>{let t=async(a,o,r,n)=>{let i=r?{...r,async:!0}:{async:!0},s=a._zod.run({value:o,issues:[]},i);if(s instanceof Promise)s=await s;if(s.issues.length){let l=new(n?.Err??e)(s.issues.map((u)=>fn(u,i,mn())));throw Oy(l,n?.callee??t),l}return s.value};return t},Xy=s3(ju),l3=(e)=>(t,a,o)=>{let r=o?{...o,async:!1}:{async:!1},n=t._zod.run({value:a,issues:[]},r);if(n instanceof Promise)throw new pn;return n.issues.length?g1(e,n.issues,r):{success:!0,data:n.value}},Yy=l3(ju);function g1(e,t,a){let o;return{success:!1,get error(){if(!o)o=new e(t.map((r)=>fn(r,a,mn()))),t=void 0,a=void 0;return o},set error(r){o=r,t=void 0,a=void 0}}}var u3=(e)=>async(t,a,o)=>{let r=o?{...o,async:!0}:{async:!0},n=t._zod.run({value:a,issues:[]},r);if(n instanceof Promise)n=await n;return n.issues.length?g1(e,n.issues,r):{success:!0,data:n.value}},Wy=u3(ju);var y1=/^[\\s\\S]{0,}$/;var Qy=/^-?\\d+(?:\\.\\d+)?$/,x1=/^(?:true|false)$/i;var ki=be("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])});var b1=(e)=>{let t=e.value;return!r1(t)&&t.length!==void 0};var w1=be("$ZodCheckMinLength",(e,t)=>{var a;ki.init(e,t),(a=e._zod.def).when??(a.when=b1),e._zod.check=(o)=>{let r=o.value,n=r.length;if((typeof r==="string"&&n>=t.minimum&&n<t.minimum*2?Uy(r):n)>=t.minimum)return;let s=Gy(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),S1=be("$ZodCheckLengthEquals",(e,t)=>{var a;ki.init(e,t),(a=e._zod.def).when??(a.when=b1),e._zod.check=(o)=>{let r=o.value,n=r.length,i=typeof r==="string"&&n>=t.length&&n<=t.length*2?Uy(r):n;if(i===t.length)return;let s=Gy(r),l=i>t.length;o.issues.push({origin:s,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),L1=be("$ZodCheckStringFormat",(e,t)=>{var a,o;if(ki.init(e,t),t.pattern)(a=e._zod).check??(a.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(o=e._zod).check??(o.check=()=>{})}),C1=be("$ZodCheckRegex",(e,t)=>{L1.init(e,t),e._zod.check=(a)=>{if(t.pattern.lastIndex=0,t.pattern.test(a.value))return;a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var I1={major:4,minor:6,patch:5};var xo=be("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=I1;let o=e._zod.def.checks,r=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let n of r)for(let i of n._zod.onattach)i(e);if(r.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,l,u)=>{if(s.memo)return s;let d=wi(s),m;for(let p of l){if(p._zod.def.when){if(u1(s))continue;if(!p._zod.def.when(s))continue}else if(d)continue;let f=s.issues.length,g=p._zod.check(s);if(g instanceof Promise&&u?.async===!1)throw new pn;if(m||g instanceof Promise)m=(m??Promise.resolve()).then(async()=>{if(await g,s.issues.length===f)return;if(Hy(s.issues,f,e),!d)d=wi(s,f)});else{if(s.issues.length===f)continue;if(Hy(s.issues,f,e),!d)d=wi(s,f)}}if(m)return m.then(()=>s);return s},i=(s,l,u)=>{if(wi(s))return s.aborted=!0,s;let d=n(l,r,u);if(d instanceof Promise){if(u.async===!1)throw new pn;return d.then((m)=>e._zod.parse(m,u))}return e._zod.parse(d,u)};e._zod.run=(s,l)=>{if(l.skipChecks)return e._zod.parse(s,l);if(l.direction==="backward"){let d=e._zod.parse({value:s.value,issues:[]},{...l,skipChecks:!0});if(d instanceof Promise)return d.then((m)=>i(m,s,l));return i(d,s,l)}let u=e._zod.parse(s,l);if(u instanceof Promise){if(l.async===!1)throw new pn;return u.then((d)=>n(d,r,l))}return n(u,r,l)}}},{get "~standard"(){return $y(this,"~standard",d3(this))},set "~standard"(e){bi(this,"~standard",e)}}),E1=(e,t)=>e.issues.length?{issues:e.issues.map((a)=>fn(a,t,mn()))}:{value:e.value};async function c3(e,t){let a={async:!0};return E1(await e._zod.run({value:t,issues:[]},a),a)}function d3(e){return{validate:(t)=>{let a={async:!1};try{let o=e._zod.run({value:t,issues:[]},a);if(!(o instanceof Promise))return E1(o,a)}catch(o){}return c3(e,t)},vendor:"zod",version:1}}var N1=be("$ZodString",(e,t)=>{xo.init(e,t),e._zod.pattern=t.pattern??y1,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=String(a.value)}catch(r){}if(typeof a.value==="string")return a;return a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}});var A1=be("$ZodBoolean",(e,t)=>{xo.init(e,t),e._zod.pattern=x1,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=Boolean(a.value)}catch(n){}let r=a.value;if(typeof r==="boolean")return a;return a.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),a}});var M1=be("$ZodNever",(e,t)=>{xo.init(e,t),e._zod.parse=(a,o)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function dp(e,t,a,o,r,n){let i=a in o,s=n==="optional";if(!i&&s&&r==="optional")return;if(e.issues.length){if(r!==void 0&&s&&!i)return;t.issues.push(...Si(a,e.issues))}if(!i&&r===void 0){if(!e.issues.length)t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}if(e.value===void 0){if(i||r==="defaulted"&&!s)t.value[a]=void 0}else t.value[a]=e.value}var f3=[];function p3(e){let t=Object.keys(e.shape),a=Object.getOwnPropertySymbols(e.shape),o=a.length?a:f3,r=o.length?[...t,...o]:t;for(let i of r)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw Error(\`Invalid element at key "\${String(i)}": expected a Zod schema\`);let n=l1(e.shape);return{...e,allKeys:r,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function m3(e,t,a,o,r,n,i){let s=[],l=r.keySet,u=r.catchall._zod,d=u.def.type,m=u.optin,p=u.optout,f=0;for(let g in t){if(i&&a.issues.length!==f){if(wi(a,f))break;f=a.issues.length}if(l.has(g))continue;if(g==="__proto__"){if(d==="never")s.push(g);continue}if(d==="never"){s.push(g);continue}let y=u.run({value:t[g],issues:[]},o);if(y instanceof Promise)e.push(y.then((b)=>dp(b,a,g,t,m,p)));else dp(y,a,g,t,m,p)}if(s.length)a.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:n,continue:!0});if(!e.length)return a;return Promise.all(e).then(()=>a)}var D1=be("$ZodObject",(e,t)=>{xo.init(e,t);let a=Object.getOwnPropertyDescriptor(t,"shape"),o=a?.get?a.get.raw:t.shape??{};if(o){let u=()=>{let d={...o};return Object.defineProperty(t,"shape",{value:d}),u.raw=d,d};u.raw=o,Object.defineProperty(t,"shape",{get:u})}let r=o1(()=>p3(t));Li(e,"propValues",(u)=>{let d=u.def.shape,m={};for(let p in d){let f=d[p]._zod;if(f.values){if(!Object.prototype.hasOwnProperty.call(m,p))i1(m,p,new Set);for(let g of f.values)m[p].add(g);if(f.optin!==void 0)m[p].add(void 0)}}return m});let n=up,i=t.catchall,s,l=Ku.memoizer;l?.attach(e),e._zod.parse=(u,d)=>{s??(s=r.value);let m=u.value;if(!n(m))return u.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),u;u.value=l?l.alloc(e,u,{},d):{};let p=[],f=s.shape,g=d?.abortEarly,y=u.issues.length;for(let b of s.allKeys){if(g&&u.issues.length!==y){if(wi(u,y))break;y=u.issues.length}if(b==="__proto__")continue;let h=f[b],x=h._zod.optin,v=h._zod.optout,w=h._zod.run({value:m[b],issues:[]},d);if(w instanceof Promise)p.push(w.then((C)=>dp(C,u,b,m,x,v)));else dp(w,u,b,m,x,v)}if(!i)return p.length?Promise.all(p).then(()=>u):u;return m3(p,m,u,d,r.value,e,g===!0)}});var P1=be("$ZodRecord",(e,t)=>{xo.init(e,t);let a=Ku.memoizer;a?.attach(e),e._zod.parse=(o,r)=>{let n=o.value;if(!zy(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),o;let i=[],s=t.keyType._zod.values;if(s&&!t.partial){o.value=a?a.alloc(e,o,{},r):{};let l=new Set;for(let d of s)if(typeof d==="string"||typeof d==="number"||typeof d==="symbol"){if(l.add(typeof d==="number"?d.toString():d),d==="__proto__")continue;let m=t.keyType._zod.run({value:d,issues:[]},r);if(m instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(m.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map((g)=>fn(g,r,mn())),input:d,path:[d],inst:e});continue}let p=m.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:n[d],issues:[]},r);if(f instanceof Promise)i.push(f.then((g)=>{if(g.issues.length)o.issues.push(...Si(d,g.issues));o.value[p]=g.value}));else{if(f.issues.length)o.issues.push(...Si(d,f.issues));o.value[p]=f.value}}let u;for(let d in n)if(!l.has(d))if(t.mode==="loose"){if(d==="__proto__")continue;o.value[d]=n[d]}else u=u??[],u.push(d);if(u&&u.length>0)o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u,continue:!0})}else{o.value=a?a.alloc(e,o,{},r):{};let l;for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(n,u))continue;let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof u==="string"&&Qy.test(u)&&d.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},r);if(g instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(g.issues.length===0)d=g}if(d.issues.length){if(t.mode==="loose")o.value[u]=n[u];else if(s)l=l??[],l.push(u);else o.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map((g)=>fn(g,r,mn())),input:u,path:[u],inst:e});continue}let p=d.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:n[u],issues:[]},r);if(f instanceof Promise)i.push(f.then((g)=>{if(g.issues.length)o.issues.push(...Si(u,g.issues));o.value[p]=g.value}));else{if(f.issues.length)o.issues.push(...Si(u,f.issues));o.value[p]=f.value}}if(l&&l.length>0)o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l,continue:!0})}if(i.length)return Promise.all(i).then(()=>o);return o}});var O1=be("$ZodEnum",(e,t)=>{xo.init(e,t);let a=Py(t.entries),o=new Set(a);e._zod.values=o,Li(e,"pattern",(r)=>{let n=Py(r.def.entries).filter((i)=>s1.has(typeof i));return new RegExp(n.length?\`^(\${n.map((i)=>Fy(i.toString())).join("|")})$\`:"^[^\\\\s\\\\S]$")}),e._zod.parse=(r,n)=>{let i=r.value;if(o.has(i))return r;return r.issues.push({code:"invalid_value",values:a,input:i,inst:e}),r}});function R1(e,t){return e.value=t.issues.length?void 0:t.value,e}var z1=be("$ZodOptional",(e,t)=>{xo.init(e,t),Li(e,"optin",(a)=>a.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Li(e,"values",(a)=>{let o=a.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),Li(e,"pattern",(a)=>{let o=a.def.innerType._zod.pattern;return o?new RegExp(\`^(\${n1(o.source)})?$\`):void 0}),e._zod.parse=(a,o)=>{if(a.value===void 0){if(t.innerType._zod.optin!=="defaulted")return a;let r=t.innerType._zod.run({value:a.value,issues:[]},o);if(r instanceof Promise)return r.then((n)=>R1(a,n));return R1(a,r)}return t.innerType._zod.run(a,o)}});var B1=be("$ZodDefault",(e,t)=>{xo.init(e,t),e._zod.optin="defaulted",Li(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,o)=>{if(o.direction==="backward")return t.innerType._zod.run(a,o);if(a.value===void 0)return a.value=t.defaultValue,a;let r=t.innerType._zod.run(a,o);if(r instanceof Promise)return r.then((n)=>_1(n,t));return _1(r,t)}});function _1(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var F1=be("$ZodCustom",(e,t)=>{ki.init(e,t),xo.init(e,t),e._zod.parse=(a,o)=>a,e._zod.check=(a)=>{let o=a.value,r=t.fn(o);if(r instanceof Promise)return r.then((n)=>T1(n,a,o,e));T1(r,a,o,e);return}});function T1(e,t,a,o){if(!e){let r={code:"custom",input:a,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};if(o._zod.def.params)r.params=o._zod.def.params;t.issues.push(qy(r))}}function h3(e){if(e.checks)e.checks=[...e.checks];return e}function H1(e,t){return new e(h3({type:"string",..._a(t)}))}function U1(e,t){return new e({type:"boolean",..._a(t)})}function G1(e,t){return new e({type:"never",..._a(t)})}function Lt(e,t){return new w1({check:"min_length",..._a(t),minimum:e})}function Jy(e,t){return new S1({check:"length_equals",..._a(t),length:e})}function ex(e,t){return new C1({check:"string_format",format:"regex",..._a(t),pattern:e})}function q1(e,t,a){return new e({type:"custom",check:"custom",fn:t,..._a(a)})}var br=be("ZodMiniType",(e,t)=>{if(!e._zod)throw Error("Uninitialized schema in ZodMiniType.");xo.init(e,t),e.def=t,e.type=t.type},{get with(){return this.check},set with(e){bi(this,"with",e)},parse(e,t){return jy(this,e,t,{callee:this.parse})},parseAsync(e,t){return Xy(this,e,t,{callee:this.parseAsync})},safeParse(e,t){return Yy(this,e,t)},safeParseAsync(e,t){return Wy(this,e,t)},check(...e){let t=this.def;return this.clone({...t,checks:[...t.checks??[],...e.map((a)=>typeof a==="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]},{parent:!0})},clone(e,t){return cp(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},apply(e,...t){return t.length===0?e(this):e(this,...t)}}),y3=be("ZodMiniString",(e,t)=>{N1.init(e,t),br.init(e,t)});function qe(e){return H1(y3,e)}var x3=be("ZodMiniBoolean",(e,t)=>{A1.init(e,t),br.init(e,t)});function Ii(e){return U1(x3,e)}var v3=be("ZodMiniNever",(e,t)=>{M1.init(e,t),br.init(e,t)});function b3(e){return G1(v3,e)}var w3=be("ZodMiniObject",(e,t)=>{D1.init(e,t),br.init(e,t),d1(e,"shape",(a)=>a._zod.def.shape,!1)});function Os(e,t){return new w3({type:"object",shape:e,catchall:b3(),..._a(t)})}var $1=be("ZodMiniRecord",(e,t)=>{P1.init(e,t),br.init(e,t)});function zs(e,t,a){if(!t||!t._zod)return new $1({type:"record",keyType:qe(),valueType:e,..._a(t)});return new $1({type:"record",keyType:e,valueType:t,..._a(a)})}var S3=be("ZodMiniEnum",(e,t)=>{O1.init(e,t),br.init(e,t),e.options=[...e._zod.values]});function V1(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map((o)=>[o,o])):e;return new S3({type:"enum",entries:a,..._a(t)})}var L3=be("ZodMiniOptional",(e,t)=>{z1.init(e,t),br.init(e,t)});function Z1(e){return new L3({type:"optional",innerType:e})}var C3=be("ZodMiniDefault",(e,t)=>{B1.init(e,t),br.init(e,t)});function Ri(e,t){return new C3({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():By(t)}})}var k3=be("ZodMiniCustom",(e,t)=>{F1.init(e,t),br.init(e,t)});function tx(e,t={}){return q1(k3,e,t)}var _3=V1(["section","folder","file","source","symbol","entry","member"]),T3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1)),member:Ri(Ii(),!1)}),E3=Os({kind:qe().check(Lt(1)),group:_3,label:qe().check(Lt(1)),description:qe().check(Lt(1)),letter:Z1(qe().check(Jy(1))),prose:Ri(Ii(),!1),typeLike:Ri(Ii(),!1),container:Ri(Ii(),!1),described:Ri(Ii(),!1)}),N3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1))}),A3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1)),colorToken:qe().check(ex(/^--edge-[a-z]+$/))}),M3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1)),forward:qe().check(Lt(1)),backward:qe().check(Lt(1)),from:qe().check(Lt(1)),to:qe().check(Lt(1)),family:qe().check(Lt(1)),dashed:Ri(Ii(),!1)}),K1={skills:{label:"Skills",description:"Every \`SKILL.md\` inside the directory of an AI tool, such as \`.claude\`, and the files beside it."},docs:{label:"Docs",description:"Markdown files."},code:{label:"Code",description:"Source files with their classes and functions, and JSON, TOML and YAML files, OpenAPI documents and JSON Schemas among them."},database:{label:"Database",description:"SQL files, as schemas with their tables and as query catalogs."},tasks:{label:"Tasks",description:"Plans, their phases and their tasks, as task-manager keeps them."}},ax={folder:{label:"folder",description:"A directory of the repository."},package:{label:"package",description:"A directory with a package manifest: an app, a library or a workspace."},file:{label:"file",description:"A file: source code, markdown, JSON, TOML, YAML, a skill, a schema, SQL and the rest."},namespace:{label:"namespace",description:"A namespace or a module."},class:{label:"class",description:"A class."},interface:{label:"interface",description:"An interface or a protocol."},struct:{label:"struct",description:"A struct or a record."},enum:{label:"enum",description:"An enumeration."},trait:{label:"trait",description:"A trait or a mixin."},type:{label:"type",description:"A type alias."},function:{label:"function",description:"A function or a method."},term:{label:"term",description:"A word of the project and what it means."},decision:{label:"decision",description:"A choice that is costly to undo, with its reason."},table:{label:"table",description:"A table of a SQL schema."},query:{label:"query",description:"An entry of a SQL query catalog."},plan:{label:"plan",description:"A plan of the task tree."},phase:{label:"phase",description:"A phase of a plan."},task:{label:"task",description:"One unit of work of a phase, with its status."},operation:{label:"operation",description:"A method on a path of an API. Found by search, which returns its file.",member:!0},definition:{label:"definition",description:"A named JSON Schema. Found by search, which returns its file.",member:!0},parameter:{label:"parameter",description:"A parameter of a function, an operation or a query. Found by search, which returns its owner.",member:!0},field:{label:"field",description:"A field of a type, a property, a column or a result column. Found by search, which returns its owner.",member:!0}},j1={section:{kind:"folder",group:"section",label:"section",description:"A top-level group of the site."},folder:{kind:"folder",group:"folder",label:"folder",description:"A directory of the repository."},package:{kind:"package",group:"folder",label:"package",description:"A directory with a package manifest: an app, a library or a workspace."},skill:{kind:"file",group:"file",label:"skill",description:"A \`SKILL.md\`. The other files of its directory belong to it."},reference:{kind:"file",group:"file",label:"reference",description:"A markdown file of a skill."},agent:{kind:"file",group:"file",label:"agent",description:"A file in the \`agents/\` directory of a skill."},hook:{kind:"file",group:"file",label:"hook",description:"A file in the \`hooks/\` directory of a skill."},schema:{kind:"file",group:"file",label:"schema",description:"A JSON Schema, or a schema file of a skill."},asset:{kind:"file",group:"file",label:"file",description:"Any other file of a skill."},document:{kind:"file",group:"file",label:"document",description:"A markdown file."},json:{kind:"file",group:"file",label:"JSON",description:"A JSON file."},toml:{kind:"file",group:"file",label:"TOML",description:"A TOML file."},yaml:{kind:"file",group:"file",label:"YAML",description:"A YAML file."},glossary:{kind:"file",group:"file",label:"glossary",description:"A \`glossary.md\`. Its terms are its entries."},decisions:{kind:"file",group:"file",label:"decisions",description:"A \`decisions.md\`. Its decisions are its entries."},api:{kind:"file",group:"file",label:"API",description:"An OpenAPI document. Its operations and definitions are its entries."},database:{kind:"file",group:"file",label:"database",description:"A \`.sql\` file that creates tables. Its tables are its entries."},catalog:{kind:"file",group:"file",label:"catalog",description:"A directory of \`.sql\` files that create no table. Its queries are its entries."},plan:{kind:"plan",group:"file",label:"plan",description:"A plan of the task tree. Its phases are its children."},phase:{kind:"phase",group:"file",label:"phase",description:"A phase of a plan. Its tasks are its entries."},source:{kind:"file",group:"source",label:"code",description:"A source file. Its classes and functions are its entries."},namespace:{kind:"namespace",group:"symbol",label:"namespace",description:"A namespace or a module.",letter:"N",container:!0},class:{kind:"class",group:"symbol",label:"class",description:"A class.",letter:"C",typeLike:!0,container:!0},interface:{kind:"interface",group:"symbol",label:"interface",description:"An interface or a protocol.",letter:"I",typeLike:!0,container:!0},struct:{kind:"struct",group:"symbol",label:"struct",description:"A struct or a record.",letter:"S",typeLike:!0,container:!0},enum:{kind:"enum",group:"symbol",label:"enum",description:"An enumeration.",letter:"E",typeLike:!0,container:!0},trait:{kind:"trait",group:"symbol",label:"trait",description:"A trait or a mixin.",letter:"T",typeLike:!0,container:!0},type:{kind:"type",group:"symbol",label:"type",description:"A type alias.",letter:"T",typeLike:!0,container:!0},function:{kind:"function",group:"symbol",label:"function",description:"A function.",letter:"F"},method:{kind:"function",group:"symbol",label:"method",description:"A method of a type.",letter:"M"},term:{kind:"term",group:"entry",label:"term",description:"A word of the project and what it means.",prose:!0},decision:{kind:"decision",group:"entry",label:"decision",description:"A choice that is costly to undo, with its reason.",prose:!0},operation:{kind:"operation",group:"entry",label:"operation",description:"A method on a path of an API.",described:!0},definition:{kind:"definition",group:"entry",label:"definition",description:"A named JSON Schema.",described:!0},table:{kind:"table",group:"entry",label:"table",description:"A table of a SQL schema.",described:!0},query:{kind:"query",group:"entry",label:"query",description:"An entry of a SQL query catalog.",described:!0},task:{kind:"task",group:"entry",label:"task",description:"One unit of work of a phase, with its status.",prose:!0},parameter:{kind:"parameter",group:"member",label:"parameter",description:"A parameter of a function, an operation or a query."},field:{kind:"field",group:"member",label:"field",description:"A field of a type, a property, a column or a result column."}},ox={typing:{label:"typing",description:"What a declaration is made of.",colorToken:"--edge-typing"},result:{label:"result",description:"What a call gives back.",colorToken:"--edge-result"},prose:{label:"prose",description:"What a text points at.",colorToken:"--edge-prose"},term:{label:"term",description:"A text that uses a glossary term.",colorToken:"--edge-term"},key:{label:"key",description:"A foreign key between two tables.",colorToken:"--edge-key"},query:{label:"query",description:"A table a query reads or writes.",colorToken:"--edge-query"},task:{label:"task",description:"What a task names, and what it waits for.",colorToken:"--edge-task"}},X1={type:{label:"type",description:"A parameter or field has that type, or the request body of an operation has that schema.",forward:"has type",backward:"is the type of",from:"parameter, field, property or operation",to:"type or definition",family:"typing"},returns:{label:"returns",description:"A function returns that type, or an operation answers with that schema.",forward:"returns",backward:"is returned by",from:"function, method or operation",to:"type or definition",family:"result"},throws:{label:"throws",description:"A function throws that type, or an operation answers an error with that schema.",forward:"throws",backward:"is thrown by",from:"function, method or operation",to:"type or definition",family:"result",dashed:!0},extends:{label:"extends",description:"A type extends, implements or is composed of that type.",forward:"extends",backward:"is extended by",from:"type or definition",to:"type or definition",family:"typing",dashed:!0},mentions:{label:"mentions",description:"A page or a description links to that node.",forward:"mentions",backward:"is mentioned by",from:"page or entry",to:"any node",family:"prose"},uses:{label:"uses",description:"A page, a description or a decision uses that glossary term.",forward:"uses",backward:"is used by",from:"page, entry, parameter or field",to:"term",family:"term"},affects:{label:"affects",description:"A decision is about that node.",forward:"affects",backward:"is affected by",from:"decision",to:"any node",family:"prose",dashed:!0},references:{label:"references",description:"A table has a foreign key to that table.",forward:"references",backward:"is referenced by",from:"table",to:"table",family:"key"},reads:{label:"reads",description:"A query selects from that table.",forward:"reads",backward:"is read by",from:"query",to:"table",family:"query"},writes:{label:"writes",description:"A statement inserts into, updates or deletes from that table.",forward:"writes",backward:"is written by",from:"query",to:"table",family:"query",dashed:!0},names:{label:"names",description:"A plan, a phase or a task links to that node or names it in inline code.",forward:"names",backward:"is named by",from:"plan, phase or task",to:"any node",family:"task"},depends:{label:"depends",description:"A plan, a phase or a task waits for that one to be completed.",forward:"depends on",backward:"is depended on by",from:"plan, phase or task",to:"plan, phase or task",family:"task",dashed:!0}};function D3(){let e=zs(qe(),T3).parse(ax),t=zs(qe(),E3.check(tx((n)=>(n.kind in ax),"unknown kind"))).parse(j1),a=zs(qe(),N3).parse(K1),o=zs(qe(),A3).parse(ox),r=zs(qe(),M3.check(tx((n)=>(n.family in ox),"unknown family"))).parse(X1);for(let n of Object.keys(o)){let i=Object.values(r).filter((s)=>s.family===n);if(i.length>2||i.filter((s)=>s.dashed).length!==i.length-1)throw Error(\`Relation family \${n} needs one solid kind and at most one dashed kind\`)}return{nodeKinds:e,nodeTypes:t,sections:a,families:o,relations:r}}var Xu=D3(),Ho=Xu.nodeTypes,hn=Xu.nodeKinds,rx=Xu.sections,P3=Xu.families,wr=Xu.relations,Yu=Object.keys(K1),nx=Object.keys(j1),_i=Object.keys(ax);function pa(e){return Ho[e].kind}function Bs(e){return hn[e].member}var Ti=Object.keys(X1),O3=Object.keys(ox);function Fs(...e){return nx.filter((t)=>e.includes(Ho[t].group))}function Wu(e){return new Set(nx.filter((t)=>Ho[t][e]))}var ix=Fs("symbol"),eoe=Wu("typeLike"),toe=Wu("container"),z3=Fs("file"),B3=Fs("symbol","entry"),aoe=Fs("section","folder","file","source","symbol","entry"),F3=new Set(ix),H3=new Set(z3),U3=new Set(B3),G3=Wu("described");function ma(e){return F3.has(e)}function q3(e){return H3.has(e)}function Ta(e){return U3.has(e)}function Qu(e){return ma(e.kind)}function fp(e){return Ta(e.kind)}function Yt(e){return q3(e.kind)}function Hs(e){return ma(e.kind)||G3.has(e.kind)}var sx=3;function Ve(e,t){return\`\${ma(e)?"symbol":e}:\${t}\`}function Y1(e,t){let a=[],o;for(let r=t;r!==null;){let n=e[r];if(!n)throw Error(\`No node at \${r}\`);if(Ta(n.kind))o??=Ve(n.kind,n.anchor??"");else if(n.kind!=="parameter"&&n.kind!=="field")a.unshift(n.slug??n.name);r=n.parent}return{path:a.join("/"),hash:o}}function pp(e){return\`#/\${e.path.split("/").map(encodeURIComponent).join("/")}\${e.hash?\`#\${e.hash}\`:""}\`}var W1="analyze-data",lx="analyze-root",ux="analyze:color-mode";var iz=U(V(),1),sz=U(mE(),1);var J6=new Set(["parameter","field"]);function ko(e){return J6.has(e)}class eh{meta;semantic;nodes;childRefs;routes;pages=new Map;anchors=new Map;outgoing;incoming;sections;constructor(e){this.meta=e.meta,this.semantic=e.semantic,this.nodes=e.nodes,this.childRefs=e.nodes.map(()=>[]),this.outgoing=e.nodes.map(()=>[]),this.incoming=e.nodes.map(()=>[]),this.routes=e.nodes.map((t,a)=>Y1(e.nodes,a)),e.nodes.forEach((t,a)=>{if(t.parent!==null)this.childRefs[t.parent]?.push(a);let{path:o,hash:r}=this.route(a);if(fp(t))this.anchors.set(\`\${o}#\${r}\`,a);else if(!ko(t.kind))this.pages.set(o,a)});for(let t of e.edges)this.outgoing[t[0]]?.push(t),this.incoming[t[2]]?.push(t);this.sections=Yu.flatMap((t)=>{let a=this.pages.get(t);return a===void 0?[]:[{slug:t,node:a}]})}node(e){let t=this.nodes[e];if(!t)throw Error(\`No node at \${e}\`);return t}children(e){return this.childRefs[e]??[]}ancestors(e){let t=[];for(let a=this.node(e).parent;a!==null;a=this.node(a).parent)t.unshift(a);return t}route(e){let t=this.routes[e];if(!t)throw Error(\`No node at \${e}\`);return t}at(e,t){let a=e.replace(/^\\/+|\\/+$/g,"");return(t?this.anchors.get(\`\${a}#\${t}\`):void 0)??this.pages.get(a)}section(e){let t=this.pages.get(e);if(t===void 0)throw Error(\`The bundle has no "\${e}" section\`);return t}sectionOf(e){return this.ancestors(e)[0]??e}*descendants(e){for(let t of this.children(e))yield t,yield*this.descendants(t)}count(e,t){let a=0;for(let o of this.descendants(e))if(t.has(this.node(o).kind))a++;return a}edgesFrom(e){return this.outgoing[e]??[]}edgesTo(e){return this.incoming[e]??[]}qualifiedName(e){let t=this.node(e);if("path"in t)return t.path;if(!Hs(t)&&!ko(t.kind))return t.name;let a=t.parent===null?null:this.node(t.parent),o=a&&t.parent!==null&&Hs(a)?this.qualifiedName(t.parent):"";if(t.kind==="parameter")return\`\${o}(\${t.name})\`;return o?\`\${o}.\${t.name}\`:t.name}}var eH=new Map([["admin","administrator"],["arg","argument"],["args","arguments"],["arr","array"],["attr","attribute"],["attrs","attributes"],["auth","authentication"],["btn","button"],["calc","calculate"],["cfg","configuration"],["cmd","command"],["config","configuration"],["configs","configurations"],["ctx","context"],["db","database"],["dest","destination"],["dir","directory"],["doc","document"],["docs","documentation"],["dst","destination"],["env","environment"],["err","error"],["exec","execute"],["fn","function"],["func","function"],["idx","index"],["img","image"],["impl","implementation"],["info","information"],["lang","language"],["len","length"],["lib","library"],["msg","message"],["nav","navigation"],["num","number"],["obj","object"],["opt","option"],["opts","options"],["param","parameter"],["params","parameters"],["pkg","package"],["pref","preference"],["prefs","preferences"],["prev","previous"],["prop","property"],["props","properties"],["pwd","password"],["repo","repository"],["req","request"],["spec","specification"],["specs","specifications"],["src","source"],["str","string"],["tmp","temporary"],["util","utility"],["utils","utilities"],["var","variable"],["vars","variables"]]);function rd(e){return eH.get(e)??e}function Fl(e){let t=0;for(let o of e)t+=o*o;if(t===0)return null;let a=Math.sqrt(t);for(let o=0;o<e.length;o++)e[o]=(e[o]??0)/a;return e}function th(e,t,a){let o=a*e.length,r=0,n=0;for(let i=0;i<e.length;i++){let s=t[o+i]??0;r+=(e[i]??0)*s,n+=s*s}return n===0?0:r/Math.sqrt(n)}function x0(e,t,a){return Fl(Float32Array.from(e.subarray(t*a,(t+1)*a)))}var tH=7;function hE(e,t){let a=new Int8Array(t);for(let o=0;o<t;o++){let r=(e[o>>1]??0)>>(o%2===0?4:0)&15;a[o]=r>tH?r-16:r}return a}function ah(e){let t=atob(e),a=new Int8Array(t.length);for(let o=0;o<t.length;o++)a[o]=t.charCodeAt(o);return a}function v0(e,t){let a=ah(e);return hE(new Uint8Array(a.buffer,a.byteOffset,a.byteLength),t)}var nH=/[\\p{Cc}\\p{Cf}]/gu,iH=/\\p{Mn}/gu,sH=/[\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]/g,gE=/[!-/:-@[-\`{-~\\p{P}]/u,lH=[["ies","y"],["ing",""],["ed",""],["es",""],["s",""],["d",""]],uH=3;function cH(e){return e.replace(/([\\p{Ll}\\p{N}])(\\p{Lu})/gu,"$1 $2").replace(/(\\p{Lu}+)(\\p{Lu}\\p{Ll})/gu,"$1 $2").replace(/(\\p{L})(\\p{N})|(\\p{N})(\\p{L})/gu,"$1$3 $2$4")}function Hl(e){let t=cH(e).replace(nH," ").replace(sH," $& ").toLowerCase().normalize("NFD").replace(iH,""),a=[],o=(r)=>{if(r)a.push(rd(r))};for(let r of t.split(/\\s+/)){let n="";for(let i of r){if(!gE.test(i)){n+=i;continue}o(n),a.push(i),n=""}o(n)}return a}function b0(e){return e.length===1&&gE.test(e)}class oh{rows;constructor(e){this.rows=new Map(e.map((t,a)=>[t,a]))}rowOf(e){let t=this.rows.get(e);if(t!==void 0)return t;for(let[a,o]of lH){if(!e.endsWith(a))continue;let r=\`\${e.slice(0,-a.length)}\${o}\`,n=r.length>=uH?this.rows.get(r):void 0;if(n!==void 0)return n}return}}var dH=0.55;class rh{name;dimensions;vectors;vocabulary;medianLength=null;constructor(e){if(e.vectors.length!==e.vocabulary.length*e.dimensions)throw Error(\`Embedding model "\${e.name}" is damaged: \${e.vocabulary.length} words of \${e.dimensions} values need \${e.vocabulary.length*e.dimensions} values, found \${e.vectors.length}.\`);this.name=e.name,this.dimensions=e.dimensions,this.vectors=e.vectors,this.vocabulary=new oh(e.vocabulary)}embed(e){let t=new Float32Array(this.dimensions);for(let a of Hl(e)){let o=this.vocabulary.rowOf(a);if(o===void 0)continue;let r=o*this.dimensions;for(let n=0;n<this.dimensions;n++)t[n]=(t[n]??0)+(this.vectors[r+n]??0)}return Fl(t)}embedParts(e){let t=new Float32Array(this.dimensions);for(let{text:a,weight:o}of e){let r=this.embed(a);if(!r)continue;for(let n=0;n<this.dimensions;n++)t[n]=(t[n]??0)+o*(r[n]??0)}return Fl(t)}contentWords(e){let t=new Set;for(let a of Hl(e))if(a.length>1&&!this.isFunctionWord(a))t.add(a);return[...t]}wordVector(e){let t=this.vocabulary.rowOf(e);return t===void 0?null:Fl(Float32Array.from(this.row(t)))}wordWeight(e){let t=this.vocabulary.rowOf(e);return t===void 0?this.median():this.lengthOf(t)}isFunctionWord(e){let t=this.vocabulary.rowOf(e);return t!==void 0&&this.lengthOf(t)<dH*this.median()}row(e){return this.vectors.subarray(e*this.dimensions,(e+1)*this.dimensions)}lengthOf(e){let t=(e+1)*this.dimensions,a=0;for(let o=e*this.dimensions;o<t;o++){let r=this.vectors[o]??0;a+=r*r}return Math.sqrt(a)}median(){if(this.medianLength===null){let e=this.vectors.length/this.dimensions,t=Float32Array.from({length:e},(a,o)=>this.lengthOf(o)).sort();this.medianLength=t[t.length>>1]??0}return this.medianLength}}var fH=0.9,pH=[1,0.2,0.35],mH=0.5;class nh{index;modelName;dimensions;nodes;nodeVectors;rows;words;wordIds;model=null;wordVectors=null;constructor(e){this.index=e;this.modelName=e.model,this.dimensions=e.dimensions,this.nodes=e.nodes,this.nodeVectors=ah(e.nodeVectors),this.rows=new Map(e.nodes.map((t,a)=>[t,a])),this.words=e.words.length>0?e.words.split(\`
7499
- \`):[],this.wordIds=new Map(this.words.map((t,a)=>[t,a]))}search(e,t,a){let o=this.loadModel(),r=o.embed(e),n=this.queryWords(o,e);if(!r&&n.length===0)return[];let i=n.reduce((u,d)=>u+d.weight,0),s=i===0?1:pH[n.length]??mH,l=[];return this.nodes.forEach((u,d)=>{let m=r?Math.max(0,th(r,this.nodeVectors,d)):0,p=0;if(i>0){let[g,y]=this.index.nodeWords[d]??[[],[]];for(let{weight:b,likeness:h}of n){let x=0;for(let v of g)x=Math.max(x,h[v]??0);for(let v of y)x=Math.max(x,fH*(h[v]??0));p+=b*x}p/=i}let f=s*m+(1-s)*p;if(f>=a)l.push({node:u,score:f})}),l.sort((u,d)=>d.score-u.score).slice(0,t)}similarTo(e,t,a){let o=this.rows.get(e),r=o===void 0?null:x0(this.nodeVectors,o,this.dimensions);if(!r)return[];let n=[];return this.nodes.forEach((i,s)=>{if(i===e)return;let l=th(r,this.nodeVectors,s);if(l>=a)n.push({node:i,score:l})}),n.sort((i,s)=>s.score-i.score).slice(0,t)}loadModel(){if(!this.model){let e=this.index.vocabulary.split(\`
7500
- \`);this.model=new rh({name:this.index.model,dimensions:this.dimensions,vocabulary:e,vectors:v0(this.index.vocabularyVectors,e.length*this.dimensions)})}return this.model}queryWords(e,t){this.wordVectors??=this.words.map((o)=>e.wordVector(o));let a=this.wordVectors;return e.contentWords(t).map((o)=>{let r=e.wordVector(o),n=new Float32Array(this.words.length);if(r)a.forEach((s,l)=>{if(!s)return;let u=0;for(let d=0;d<r.length;d++)u+=(r[d]??0)*(s[d]??0);n[l]=Math.max(0,u)});let i=this.wordIds.get(o);if(i!==void 0)n[i]=1;return{weight:e.wordWeight(o),likeness:n}})}}var hH={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "},gH=/&(?:#x([0-9a-f]+)|#(\\d+)|([a-z]+));/gi;var yH=/<\\/?(?:p|div|li|ul|ol|tr|td|th|h[1-6]|pre|blockquote|table|br|hr)\\b[^>]*>/gi,xH=/<[^>]*>/g;function vH(e){return e.replace(gH,(t,a,o,r)=>{if(a)return String.fromCodePoint(Number.parseInt(a,16));if(o)return String.fromCodePoint(Number.parseInt(o,10));return hH[(r??"").toLowerCase()]??t})}function Io(e){return vH(e.replace(yH," ").replace(xH,"")).replace(/\\s+/g," ").trim()}function w0(e){return Hl(e).filter((t)=>!b0(t)).join(" ")}function nd(e){return e.toLowerCase().split(/[^\\p{L}\\p{N}]+/u).filter(Boolean).map((t)=>\` \${t}\`).join("")}function bH(e,t,a){for(let o=e.node(t).parent;o!==null;o=e.node(o).parent)if(!Bs(pa(e.node(o).kind)))return a.get(o);return}function S0(e){let t=[],a=new Map;for(let{node:o}of e.sections){let r=e.node(o).name,n="";for(let i of e.descendants(o)){let s=e.node(i),l,u,d="",m="";if(Yt(s))n=s.path,l=s.title,u=s.kind==="skill"?s.description:s.path,m=\`\${s.description} \${s.content.format==="markdown"?Io(s.content.html):""}\`;else if(s.kind==="source")n=s.path,l=s.path,u=s.language;else if(fp(s)){if(l=s.kind==="decision"&&s.id?\`\${s.id}. \${s.name}\`:s.kind==="task"?\`\${s.id} \${s.name}\`:s.name,u=n,s.kind==="term")d=s.avoid.join(" "),m=Io(s.definitionHtml);else if(s.kind==="decision")m=Io(s.html);else if(s.kind==="task")d=\`\${s.id} \${s.package} \${s.status}\`,u=s.sourcePath,m=\`\${s.summary} \${Io(s.html)}\`;else if(Hs(s)){if(m=Io(s.descriptionHtml),s.kind==="operation")d=\`\${s.operationId} \${w0(s.operationId)} \${s.summary}\`;if(s.kind==="query")u=s.sourcePath,m=\`\${m} \${s.verb} \${s.tables.map((g)=>g.name).join(" ")}\`}}else if(s.kind==="parameter"||s.kind==="field")l=e.qualifiedName(i),u=n,m=Io(s.descriptionHtml);else continue;let p=\`\${l} \${d} \${w0(s.name)}\`.toLowerCase();if(Bs(pa(s.kind))){let g=\`\${s.name} \${d} \${w0(s.name)}\`.toLowerCase(),y=t[bH(e,i,a)??-1];if(y)y.haystack=\`\${y.haystack} \${g}\`,y.text=\`\${y.text}\${nd(m)}\`;let b=nd(m);t.push({node:i,member:!0,kind:s.kind,group:r,title:s.name,detail:u,haystack:g,place:nd(u),text:b});continue}let f=nd(u);a.set(i,t.length),t.push({node:i,member:!1,kind:s.kind,group:r,title:l,detail:u,haystack:p,place:f,text:nd(m)})}}return t}var wH=4,yE=5;function SH(e,t){if(e===t)return 0;if(e.startsWith(t))return 1;return e.includes(t)?2:3}function LH(e){let t=new Set([e,rd(e)]);if(e.length>3&&e.endsWith("ies"))t.add(\`\${e.slice(0,-3)}y\`);else if(e.length>3&&e.endsWith("s")&&!e.endsWith("ss"))t.add(e.slice(0,-1));return[...t]}function L0(e,t,a){let o=t.toLowerCase().split(/\\s+/).filter(Boolean);if(o.length===0)return[];let r=o.join(" "),n=o.map(LH),i=(d,m)=>m.some((p)=>d.haystack.includes(p)),s=(d,m)=>m.some((p)=>d.place.includes(\` \${p}\`)),l=(d,m)=>m.some((p)=>d.text.includes(\` \${p}\`)),u=[];for(let d of e){let m=n.every((g)=>i(d,g)),p=m||n.every((g)=>i(d,g)||s(d,g));if(!p&&!n.every((g)=>i(d,g)||s(d,g)||l(d,g)))continue;let f=m?SH(d.title.toLowerCase(),r):p?wH:yE;u.push({entry:d,score:f})}return u.sort((d,m)=>d.score-m.score||d.entry.title.length-m.entry.title.length).slice(0,a).map(({entry:d,score:m})=>({entry:d,found:m===yE?"text":"name"}))}var CH=0.5,kH=6,IH=0.6,RH=4,xE=new WeakMap;function vE(e){return e.semantic?.format===sx?e.semantic:void 0}function bE(e){let t=xE.get(e);if(t===void 0){let a=vE(e);t=a?new nh(a):null,xE.set(e,t)}return t}function C0(e,t,a,o={}){let{limit:r=kH,accepts:n=()=>!0}=o;return(bE(e)?.search(t,Number.MAX_SAFE_INTEGER,CH)??[]).filter((s)=>n(s.node)&&!a.has(s.node)).slice(0,r)}function k0(e,t){return bE(e)?.similarTo(t,RH,IH)??[]}function I0(e){return vE(e)?.model??null}function wE(){let e=document.getElementById(W1)?.textContent??"";try{return JSON.parse(e)}catch{throw Error("This page holds no documentation data. Generate it with \`g3n-analyze create_docs\`.")}}var id=_H()||!TH();function _H(){try{return window.self!==window.top}catch{return!0}}function TH(){let e=(t)=>t.split("#",1)[0]??t;return e(new URL("#",document.baseURI).href)===e(window.location.href)}var R0="data-href";function SE(e){return id?e.replaceAll('<a href="#',\`<a role="link" tabindex="0" \${R0}="#\`):e}function Ul({title:e,children:t}){return S("div",{className:"mx-auto max-w-md px-4 py-24 text-center",children:[c("h1",{className:"text-lg font-semibold tracking-tight",children:e}),c("div",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:t})]})}function Gl(e){return hn[pa(e)].label}function LE(e){let t=pa(e);return(t in Ho?Ho[t].letter:void 0)??Gl(e).charAt(0).toUpperCase()}var EH="break-all font-mono",NH="break-words";function ql(e){return Ho[e].prose?NH:EH}function CE(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=CE(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function ih(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=CE(e))&&(o&&(o+=" "),o+=t);return o}var AH=(e,t)=>{let a=Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},MH=(e,t)=>({classGroupId:e,validator:t}),EE=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var kE=[];var DH=(e)=>{let t=OH(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:(i)=>{if(i.startsWith("[")&&i.endsWith("]"))return PH(i);let s=i.split("-"),l=s[0]===""&&s.length>1?1:0;return NE(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){let l=o[i],u=a[i];if(l){if(u)return AH(u,l);return l}return u||kE}return a[i]||kE}}},NE=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=NE(e,t+1,n);if(u)return u}let i=a.validators;if(i===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=i.length;for(let u=0;u<l;u++){let d=i[u];if(d.validator(s))return d.classGroupId}return},PH=(e)=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?"arbitrary.."+o:void 0})(),OH=(e)=>{let{theme:t,classGroups:a}=e;return zH(a,t)},zH=(e,t)=>{let a=EE();for(let o in e){let r=e[o];T0(r,a,o,t)}return a},T0=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let i=e[n];BH(i,t,a,o)}},BH=(e,t,a,o)=>{if(typeof e==="string"){FH(e,t,a);return}if(typeof e==="function"){HH(e,t,a,o);return}UH(e,t,a,o)},FH=(e,t,a)=>{let o=e===""?t:AE(t,e);o.classGroupId=a},HH=(e,t,a,o)=>{if(GH(e)){T0(e(o),t,a,o);return}if(t.validators===null)t.validators=[];t.validators.push(MH(a,e))},UH=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let i=0;i<n;i++){let[s,l]=r[i];T0(l,AE(t,s),a,o)}},AE=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let i=o[n],s=a.nextPart.get(i);if(!s)s=EE(),a.nextPart.set(i,s);a=s}return a},GH=(e)=>("isThemeGetter"in e)&&e.isThemeGetter===!0,qH=(e)=>{if(e<1)return{get:()=>{return},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,i)=>{if(a[n]=i,t++,t>e)t=0,o=a,a=Object.create(null)};return{get(n){let i=a[n];if(i!==void 0)return i;if((i=o[n])!==void 0)return r(n,i),i},set(n,i){if(n in a)a[n]=i;else r(n,i)}}};var $H=[],IE=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),VH=(e)=>{let{prefix:t,experimentalParseClassName:a}=e,o=(r)=>{let n=[],i=0,s=0,l=0,u,d=r.length;for(let y=0;y<d;y++){let b=r[y];if(i===0&&s===0){if(b===":"){n.push(r.slice(l,y)),l=y+1;continue}if(b==="/"){u=y;continue}}if(b==="[")i++;else if(b==="]")i--;else if(b==="(")s++;else if(b===")")s--}let m=n.length===0?r:r.slice(l),p=m,f=!1;if(m.endsWith("!"))p=m.slice(0,-1),f=!0;else if(m.startsWith("!"))p=m.slice(1),f=!0;let g=u&&u>l?u-l:void 0;return IE(n,f,p,g)};if(t){let r=t+":",n=o;o=(i)=>i.startsWith(r)?n(i.slice(r.length)):IE($H,!1,i,void 0,!0)}if(a){let r=o;o=(n)=>a({className:n,parseClassName:r})}return o},ZH=(e)=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),(a)=>{let o=[],r=[];for(let n=0;n<a.length;n++){let i=a[n],s=i[0]==="[",l=t.has(i);if(s||l){if(r.length>0)r.sort(),o.push(...r),r=[];o.push(i)}else r.push(i)}if(r.length>0)r.sort(),o.push(...r);return o}},KH=(e)=>({cache:qH(e.cacheSize),parseClassName:VH(e),sortModifiers:ZH(e),postfixLookupClassGroupIds:jH(e),...DH(e)}),jH=(e)=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},XH=/\\s+/,YH=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(XH),u="";for(let d=l.length-1;d>=0;d-=1){let m=l[d],{isExternal:p,modifiers:f,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:b}=a(m);if(p){u=m+(u.length>0?" "+u:u);continue}let h=!!b,x;if(h){let L=y.substring(0,b);x=o(L);let k=x&&i[x]?o(y):void 0;if(k&&k!==x)x=k,h=!1}else x=o(y);if(!x){if(!h){u=m+(u.length>0?" "+u:u);continue}if(x=o(y),!x){u=m+(u.length>0?" "+u:u);continue}h=!1}let v=f.length===0?"":f.length===1?f[0]:n(f).join(":"),w=g?v+"!":v,C=w+x;if(s.indexOf(C)>-1)continue;s.push(C);let I=r(x,h);for(let L=0;L<I.length;++L){let k=I[L];s.push(w+k)}u=m+(u.length>0?" "+u:u)}return u},WH=(...e)=>{let t=0,a,o,r="";while(t<e.length)if(a=e[t++]){if(o=ME(a))r&&(r+=" "),r+=o}return r},ME=(e)=>{if(typeof e==="string")return e;let t,a="";for(let o=0;o<e.length;o++)if(e[o]){if(t=ME(e[o]))a&&(a+=" "),a+=t}return a},QH=(e,...t)=>{let a,o,r,n,i=(l)=>{let u=t.reduce((d,m)=>m(d),e());return a=KH(u),o=a.cache.get,r=a.cache.set,n=s,s(l)},s=(l)=>{let u=o(l);if(u)return u;let d=YH(l,a);return r(l,d),d};return n=i,(...l)=>n(WH(...l))},JH=[],xt=(e)=>{let t=(a)=>a[e]||JH;return t.isThemeGetter=!0,t.themeKey=e,t},DE=/^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i,PE=/^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i,eU=/^\\d+(?:\\.\\d+)?\\/\\d+(?:\\.\\d+)?$/,tU=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,aU=/\\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$/,oU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\\(.+\\)$/,rU=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,nU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,Kn=(e)=>eU.test(e),ue=(e)=>!!e&&!Number.isNaN(Number(e)),or=(e)=>!!e&&Number.isInteger(Number(e)),_0=(e)=>e.endsWith("%")&&ue(e.slice(0,-1)),Br=(e)=>tU.test(e),OE=()=>!0,iU=(e)=>aU.test(e)&&!oU.test(e),E0=()=>!1,sU=(e)=>rU.test(e),lU=(e)=>nU.test(e),uU=(e)=>!j(e)&&!Y(e),cU=(e)=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),dU=(e)=>jn(e,FE,E0),j=(e)=>DE.test(e),as=(e)=>jn(e,HE,iU),RE=(e)=>jn(e,vU,ue),fU=(e)=>jn(e,GE,OE),pU=(e)=>jn(e,UE,E0),_E=(e)=>jn(e,zE,E0),mU=(e)=>jn(e,BE,lU),sh=(e)=>jn(e,qE,sU),Y=(e)=>PE.test(e),sd=(e)=>os(e,HE),hU=(e)=>os(e,UE),TE=(e)=>os(e,zE),gU=(e)=>os(e,FE),yU=(e)=>os(e,BE),lh=(e)=>os(e,qE,!0),xU=(e)=>os(e,GE,!0),jn=(e,t,a)=>{let o=DE.exec(e);if(o){if(o[1])return t(o[1]);return a(o[2])}return!1},os=(e,t,a=!1)=>{let o=PE.exec(e);if(o){if(o[1])return t(o[1]);return a}return!1},zE=(e)=>e==="position"||e==="percentage",BE=(e)=>e==="image"||e==="url",FE=(e)=>e==="length"||e==="size"||e==="bg-size",HE=(e)=>e==="length",vU=(e)=>e==="number",UE=(e)=>e==="family-name",GE=(e)=>e==="number"||e==="weight",qE=(e)=>e==="shadow";var bU=()=>{let e=xt("color"),t=xt("font"),a=xt("text"),o=xt("font-weight"),r=xt("tracking"),n=xt("leading"),i=xt("breakpoint"),s=xt("container"),l=xt("spacing"),u=xt("radius"),d=xt("shadow"),m=xt("inset-shadow"),p=xt("text-shadow"),f=xt("drop-shadow"),g=xt("blur"),y=xt("perspective"),b=xt("aspect"),h=xt("ease"),x=xt("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...w(),Y,j],I=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],k=()=>[Y,j,l],_=()=>[Kn,"full","auto",...k()],T=()=>[or,"none","subgrid",Y,j],O=()=>["auto",{span:["full",or,Y,j]},or,Y,j],D=()=>[or,"auto",Y,j],z=()=>["auto","min","max","fr",Y,j],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...k()],B=()=>[Kn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],X=()=>[s,Kn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ee=()=>[Kn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],F=()=>[e,Y,j],ce=()=>[...w(),TE,_E,{position:[Y,j]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",gU,dU,{size:[Y,j]}],Q=()=>[_0,sd,as],H=()=>["","none","full",u,Y,j],J=()=>["",ue,sd,as],oe=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[ue,_0,TE,_E],Ka=()=>["","none",g,Y,j],li=()=>["none",ue,Y,j],If=()=>["none",ue,Y,j],kg=()=>[ue,Y,j],Rf=()=>[Kn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Br],breakpoint:[Br],color:[OE],container:[Br],"drop-shadow":[Br],ease:["in","out","in-out"],font:[uU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Br],shadow:[Br],spacing:["px",ue],text:[Br],"text-shadow":[Br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kn,j,Y,b]}],container:["container"],"container-type":[{"@container":["","normal","size",Y,j]}],"container-named":[cU],columns:[{columns:[ue,"auto",j,Y,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{"inset-s":_(),start:_()}],end:[{"inset-e":_(),end:_()}],"inset-bs":[{"inset-bs":_()}],"inset-be":[{"inset-be":_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[or,"auto",Y,j]}],basis:[{basis:[Kn,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,Kn,"auto","initial","none",j]}],grow:[{grow:["",ue,Y,j]}],shrink:[{shrink:["",ue,Y,j]}],order:[{order:[or,"first","last","none",Y,j]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh","none",...B()]}],"font-size":[{text:["base",a,sd,as]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,xU,fU]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_0,j]}],"font-family":[{font:[hU,pU,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Y,j]}],"line-clamp":[{"line-clamp":[ue,"none",Y,RE]}],leading:[{leading:["none",n,...k()]}],"list-image":[{"list-image":["none",Y,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",Y,as]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[ue,"auto",Y,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[or,Y,j]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},or,Y,j],radial:["",Y,j],conic:["",or,Y,j]},yU,mU]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,Y,j]}],"outline-w":[{outline:["",ue,sd,as]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","inner","none",d,lh,sh]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",m,lh,sh]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[ue,as]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",p,lh,sh]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[ue,Y,j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Y,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,j]}],filter:[{filter:["","none",Y,j]}],blur:[{blur:Ka()}],brightness:[{brightness:[ue,Y,j]}],contrast:[{contrast:[ue,Y,j]}],"drop-shadow":[{"drop-shadow":["","none",f,lh,sh]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",ue,Y,j]}],"hue-rotate":[{"hue-rotate":[ue,Y,j]}],invert:[{invert:["",ue,Y,j]}],saturate:[{saturate:[ue,Y,j]}],sepia:[{sepia:["",ue,Y,j]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,j]}],"backdrop-blur":[{"backdrop-blur":Ka()}],"backdrop-brightness":[{"backdrop-brightness":[ue,Y,j]}],"backdrop-contrast":[{"backdrop-contrast":[ue,Y,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,Y,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,Y,j]}],"backdrop-invert":[{"backdrop-invert":["",ue,Y,j]}],"backdrop-opacity":[{"backdrop-opacity":[ue,Y,j]}],"backdrop-saturate":[{"backdrop-saturate":[ue,Y,j]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,Y,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",Y,j]}],ease:[{ease:["linear","initial",h,Y,j]}],delay:[{delay:[ue,Y,j]}],animate:[{animate:["none",x,Y,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Y,j]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:li()}],"rotate-x":[{"rotate-x":li()}],"rotate-y":[{"rotate-y":li()}],"rotate-z":[{"rotate-z":li()}],scale:[{scale:If()}],"scale-x":[{"scale-x":If()}],"scale-y":[{"scale-y":If()}],"scale-z":[{"scale-z":If()}],"scale-3d":["scale-3d"],skew:[{skew:kg()}],"skew-x":[{"skew-x":kg()}],"skew-y":[{"skew-y":kg()}],transform:[{transform:[Y,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Rf()}],"translate-x":[{"translate-x":Rf()}],"translate-y":[{"translate-y":Rf()}],"translate-z":[{"translate-z":Rf()}],"translate-none":["translate-none"],zoom:[{zoom:[or,Y,j]}],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",Y,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Y,j]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[ue,sd,as,RE]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var $E=QH(bU);function P(...e){return $E(ih(e))}var VE="inline-flex shrink-0 select-none items-center justify-center bg-kind font-mono font-semibold text-kind-foreground leading-none";function ye({kind:e,className:t,...a}){return c("span",{"data-kind":e,className:P(VE,"h-6 rounded-md px-2 text-xs",t),...a,children:Gl(e)})}function ZE({kind:e,className:t,...a}){return S("span",{"data-kind":e,className:P(VE,"size-4 rounded-sm text-[0.625rem]",t),...a,children:[c("span",{"aria-hidden":!0,children:LE(e)}),c("span",{className:"sr-only",children:Gl(e)})]})}function wU({href:e,className:t,onKeyDown:a,...o}){if(!id)return c("a",{href:e,className:t,onKeyDown:a,...o});let r=(n)=>{if(a?.(n),n.key==="Enter"&&!n.defaultPrevented)n.currentTarget.click()};return c("a",{role:"link",tabIndex:0,className:P("cursor-pointer",t),onKeyDown:r,...o})}var rt=Cy(wU);var SU=qu("__root__");function q(){return SU.useRouteContext({select:(e)=>e.graph})}function ct(){let e=q(),t=At({from:"/$",shouldThrow:!1})?.params._splat,a=Vu({select:(o)=>o.hash});return t===void 0?void 0:e.at(t,a)}var LU=new Set(["source","glossary","decisions","schema","api","database","catalog"]);function ie({node:e,...t}){let a=q(),{path:o,hash:r}=a.route(e),{kind:n}=a.node(e),i=LU.has(n)||Ta(n)||n==="parameter"||n==="field";return c(rt,{to:"/$",params:{_splat:o},hash:r,activeOptions:{exact:!0,includeHash:i},...t})}var uh=U(V(),1);var KE=(e)=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function jE(e,t,a=[]){if(t==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:KE(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var XE=(e)=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}if(t.length===0)t+=o.toLowerCase();else t+=a?o.toUpperCase():o;a=!1}return t};var YE=(e)=>{let t=XE(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ud=U(V(),1);var ld=(...e)=>e.filter((t,a,o)=>Boolean(t)&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Xn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function N0(e){return e!==null&&e!==void 0}function WE(e,t={}){let a=t.attributeNames??{},o=(p)=>a[p]??p,r=e.size??e.width??Xn.width,n=e.size??e.height??Xn.height,i=e.aliases?.filter((p)=>typeof p==="string"&&p.trim()!=="").map((p)=>\`lucide-\${p}\`)??[],s=[...e.name?[\`lucide-\${e.name}\`]:[],...i],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?ld(...l):ld("lucide",...s,...l),d=t.absoluteStrokeWidth?Number(t.strokeWidth??Xn["stroke-width"])*Number(e.size??e.width??Xn.width)/Number(t.size??t.width??Xn.width):t.strokeWidth??Xn["stroke-width"];return["svg",{...Object.entries(Xn).reduce((p,[f,g])=>(p[o(f)]=g,p),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&N0(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&N0(t.width)&&{[o("width")]:t.width},..."height"in t&&N0(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:d,...u&&{[o("class")]:u},[o("viewBox")]:\`0 0 \${r} \${n}\`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map((p)=>{let[f,g,y]=p,b=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...g}:g;return y?[f,b,y]:[f,b]})]}function QE(e,t={}){return WE(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var JE=(e)=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var $l=U(V(),1),CU=$l.createContext({});var eN=()=>$l.useContext(CU);var tN=ud.forwardRef(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:i,className:s="",children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...m},p)=>{let{size:f=24,strokeWidth:g=2,absoluteStrokeWidth:y=!1,nonScalingStroke:b=!1,color:h="currentColor",className:x=""}=eN()??{},v=Boolean(l)||JE(m),[w,C,I=[]]=QE(d,{color:e??h,width:a??t??f,height:o??t??f,strokeWidth:r??g,absoluteStrokeWidth:n??y,nonScalingStroke:i??b,className:ld(x,s),hasA11yProp:v,attributes:m});return ud.createElement(w,{ref:p,...C},[...I.map(([L,k])=>ud.createElement(L,k)),...Array.isArray(l)?l:[l]])});function G(e,t=[],a=[]){let o=typeof e==="string"?jE(e,t,a):e,r=uh.forwardRef(({className:n,...i},s)=>uh.createElement(tN,{ref:s,icon:o,className:n,...i}));if(o.name)r.displayName=YE(o.name);return r}var aN={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};aN.node;var Ro=G(aN);var oN={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};oN.node;var Ua=G(oN);var rN={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};rN.node;var Yn=G(rN);var nN={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};nN.node;var Fr=G(nN);var iN={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};iN.node;var cd=G(iN);var sN={name:"arrow-right-left",size:24,node:[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]};sN.node;var dd=G(sN);var lN={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};lN.node;var fd=G(lN);var uN={name:"book-a",size:24,node:[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]]};uN.node;var pd=G(uN);var cN={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};cN.node;var Vl=G(cN);var dN={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};dN.node;var md=G(dN);var fN={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};fN.node;var hd=G(fN);var pN={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};pN.node;var rs=G(pN);var mN={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};mN.node;var Zl=G(mN);var hN={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};hN.node;var gd=G(hN);var gN={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};gN.node;var yd=G(gN);var yN={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};yN.node;var Kl=G(yN);var xN={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};xN.node;var xd=G(xN);var vN={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};vN.node;var vd=G(vN);var bN={name:"gavel",size:24,node:[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]]};bN.node;var bd=G(bN);var wN={name:"library",size:24,node:[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]};wN.node;var wd=G(wN);var SN={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};SN.node;var Sd=G(SN);var LN={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};LN.node;var Ld=G(LN);var CN={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};CN.node;var Cd=G(CN);var kN={name:"maximize",size:24,node:[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]};kN.node;var kd=G(kN);var IN={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};IN.node;var Id=G(IN);var RN={name:"milestone",size:24,node:[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M18.172 6a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",key:"8gz4t4"}]]};RN.node;var Rd=G(RN);var _N={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};_N.node;var ns=G(_N);var TN={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};TN.node;var _d=G(TN);var EN={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};EN.node;var Td=G(EN);var NN={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};NN.node;var Ed=G(NN);var AN={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};AN.node;var Nd=G(AN);var MN={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};MN.node;var is=G(MN);var DN={name:"scale",size:24,node:[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]]};DN.node;var Ad=G(DN);var PN={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};PN.node;var Hr=G(PN);var ON={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};ON.node;var Md=G(ON);var zN={name:"table-2",size:24,node:[["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]};zN.node;var Dd=G(zN);var BN={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};BN.node;var Pd=G(BN);var FN={name:"waypoints",size:24,node:[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]};FN.node;var _o=G(FN);var HN={name:"webhook",size:24,node:[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]};HN.node;var Od=G(HN);var UN={name:"whole-word",size:24,node:[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]};UN.node;var zd=G(UN);var GN={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};GN.node;var To=G(GN);var qN=(e)=>typeof e==="boolean"?\`\${e}\`:e===0?"0":e,$N=ih,jl=(e,t)=>(a)=>{var o;if((t===null||t===void 0?void 0:t.variants)==null)return $N(e,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className);let{variants:r,defaultVariants:n}=t,i=Object.keys(r).map((u)=>{let d=a===null||a===void 0?void 0:a[u],m=n===null||n===void 0?void 0:n[u];if(d===null)return null;let p=qN(d)||qN(m);return r[u][p]}),s=a&&Object.entries(a).reduce((u,d)=>{let[m,p]=d;if(p===void 0)return u;return u[m]=p,u},{}),l=t===null||t===void 0?void 0:(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:m,className:p,...f}=d;return Object.entries(f).every((g)=>{let[y,b]=g;return Array.isArray(b)?b.includes({...n,...s}[y]):{...n,...s}[y]===b})?[...u,m,p]:u},[]);return $N(e,i,l,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className)};var eu={};ui(eu,{Collapsible:()=>eG,CollapsibleContent:()=>oG,CollapsibleTrigger:()=>aG,Content:()=>oG,Root:()=>eG,Trigger:()=>aG,createCollapsibleScope:()=>QU});var Gt=U(V(),1);var kU=Object.defineProperty,Xl=(e,t)=>kU(e,"name",{value:t,configurable:!0}),VN=!!(typeof window<"u"&&window.document&&window.document.createElement);function ke(e,t,{checkForDefaultPrevented:a=!0}={}){return Xl(function(r){if(e?.(r),a===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}Xl(ke,"composeEventHandlers");function IU(e){if(!VN)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Xl(IU,"getOwnerWindow");function A0(e){if(!VN)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Xl(A0,"getOwnerDocument");function ZN(e,t=!1){let{activeElement:a}=A0(e);if(!a?.nodeName)return null;if(KN(a)&&a.contentDocument)return ZN(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=A0(a).getElementById(o);if(r)return r}}return a}Xl(ZN,"getActiveElement");function KN(e){return e.tagName==="IFRAME"}Xl(KN,"isFrame");var io=U(V(),1);var RU=Object.defineProperty,no=(e,t)=>RU(e,"name",{value:t,configurable:!0});function _U(e,t){let a=io.createContext(t);a.displayName=e+"Context";let o=no((n)=>{let{children:i,...s}=n,l=io.useMemo(()=>s,Object.values(s));return c(a.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(n,i={}){let{optional:s=!1}=i,l=io.useContext(a);if(l)return l;if(t!==void 0)return t;if(s)return;throw Error(\`\\\`\${n}\\\` must be used within \\\`\${e}\\\`\`)}return no(r,"useContext"),[o,r]}no(_U,"createContext");function aa(e,t=[]){let a=[];function o(n,i){let s=io.createContext(i);s.displayName=n+"Context";let l=a.length;a=[...a,i];let u=no((m)=>{let{scope:p,children:f,...g}=m,y=p?.[e]?.[l]||s,b=io.useMemo(()=>g,Object.values(g));return c(y.Provider,{value:b,children:f})},"Provider");u.displayName=n+"Provider";function d(m,p,f={}){let{optional:g=!1}=f,y=p?.[e]?.[l]||s,b=io.useContext(y);if(b)return b;if(i!==void 0)return i;if(g)return;throw Error(\`\\\`\${m}\\\` must be used within \\\`\${n}\\\`\`)}return no(d,"useContext"),[u,d]}no(o,"createContext");let r=no(()=>{let n=a.map((i)=>io.createContext(i));return no(function(s){let l=s?.[e]||n;return io.useMemo(()=>({[\`__scope\${e}\`]:{...s,[e]:l}}),[s,l])},"useScope")},"createScope");return r.scopeName=e,[o,jN(r,...t)]}no(aa,"createContextScope");function jN(...e){let t=e[0];if(e.length===1)return t;let a=no(()=>{let o=e.map((r)=>({useScope:r(),scopeName:r.scopeName}));return no(function(n){let i=o.reduce((s,{useScope:l,scopeName:u})=>{let m=l(n)[\`__scope\${u}\`];return{...s,...m}},{});return io.useMemo(()=>({[\`__scope\${t.scopeName}\`]:i}),[i])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}no(jN,"composeContextScopes");var so=U(V(),1);var Yl=!1;var XN=U(V(),1),dt=globalThis?.document?XN.useLayoutEffect:()=>{};var Eo=U(V(),1);var Wl=U(V(),1),TU=Object.defineProperty,EU=(e,t)=>TU(e,"name",{value:t,configurable:!0}),YN=Wl[" useEffectEvent ".trim().toString()],WN=Wl[" useInsertionEffect ".trim().toString()];function M0(e){if(typeof YN==="function")return YN(e);let t=Wl.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});if(typeof WN==="function")WN(()=>{t.current=e});else dt(()=>{t.current=e});return Wl.useMemo(()=>(...a)=>t.current?.(...a),[])}EU(M0,"useEffectEvent");var NU=Object.defineProperty,Bd=(e,t)=>NU(e,"name",{value:t,configurable:!0}),AU=so[" useInsertionEffect ".trim().toString()]||dt;function lo({prop:e,defaultProp:t,onChange:a=Bd(()=>{},"onChange"),caller:o}){let[r,n,i]=JN({defaultProp:t,onChange:a}),s=e!==void 0,l=s?e:r;if(Yl){let d=so.useRef(e!==void 0);so.useEffect(()=>{let m=d.current;if(m!==s)console.warn(\`\${o} is changing from \${m?"controlled":"uncontrolled"} to \${s?"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.\`);d.current=s},[s,o])}let u=so.useCallback((d)=>{if(s){let m=eA(d)?d(e):d;if(m!==e)i.current?.(m)}else n(d)},[s,e,n,i]);return[l,u]}Bd(lo,"useControllableState");function JN({defaultProp:e,onChange:t}){let[a,o]=so.useState(e),r=so.useRef(a),n=so.useRef(t);return AU(()=>{n.current=t},[t]),so.useEffect(()=>{if(r.current!==a)n.current?.(a),r.current=a},[a,r]),[a,o,n]}Bd(JN,"useUncontrolledState");function eA(e){return typeof e==="function"}Bd(eA,"isFunction");var QN=Symbol("RADIX:SYNC_STATE");function MU(e,t,a,o){let{prop:r,defaultProp:n,onChange:i,caller:s}=t,l=r!==void 0,u=M0(i);if(Yl){let b=Eo.useRef(r!==void 0);Eo.useEffect(()=>{let h=b.current;if(h!==l)console.warn(\`\${s} is changing from \${h?"controlled":"uncontrolled"} to \${l?"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.\`);b.current=l},[l,s])}let d=[{...a,state:n}];if(o)d.push(o);let[m,p]=Eo.useReducer((b,h)=>{if(h.type===QN)return{...b,state:h.state};let x=e(b,h);if(l&&!Object.is(x.state,b.state))u(x.state);return x},...d),f=m.state,g=Eo.useRef(f);Eo.useEffect(()=>{if(g.current!==f){if(g.current=f,!l)u(f)}},[f,g,l]);let y=Eo.useMemo(()=>{if(r!==void 0)return{...m,state:r};return m},[m,r]);return Eo.useEffect(()=>{if(l&&!Object.is(r,m.state))p({type:QN,state:r})},[r,m.state,l]),[y,p]}Bd(MU,"useControllableStateReducer");var tA=U(V(),1),DU=Object.defineProperty,P0=(e,t)=>DU(e,"name",{value:t,configurable:!0});function D0(e,t){if(typeof e==="function")return e(t);else if(e!==null&&e!==void 0)e.current=t}P0(D0,"setRef");function Wn(...e){return(t)=>{let a=!1,o=e.map((r)=>{let n=D0(r,t);if(!a&&typeof n=="function")a=!0;return n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];if(typeof n=="function")n();else D0(e[r],null)}}}}P0(Wn,"composeRefs");function Ie(...e){return tA.useCallback(Wn(...e),e)}P0(Ie,"useComposedRefs");var lA=U(V(),1),uA=U(wp(),1);var Ql={};ui(Ql,{Root:()=>OU,Slot:()=>OU,Slottable:()=>zU,createSlot:()=>Ga,createSlottable:()=>Fd});var Ht=U(V(),1);var PU=Object.defineProperty,uo=(e,t)=>PU(e,"name",{value:t,configurable:!0});function Ga(e){let t=Ht.forwardRef((a,o)=>{let{children:r,...n}=a,i=null,s=!1,l=[];if(O0(r)&&typeof ch==="function")r=ch(r._payload);if(Ht.Children.forEach(r,(p)=>{if(nA(p)){s=!0;let f=p,g="child"in f.props?f.props.child:f.props.children;if(O0(g)&&typeof ch==="function")g=ch(g._payload);i=BU(f,g),l.push(i?.props?.children)}else l.push(p)}),i)i=Ht.cloneElement(i,void 0,l);else if(!s&&Ht.Children.count(r)===1&&Ht.isValidElement(r))i=r;let u=i?rA(i):void 0,d=Ie(o,u);if(!i){if(r||r===0)throw Error(s?UU(e):HU(e));return r}let m=oA(n,i.props??{});if(i.type!==Ht.Fragment)m.ref=o?d:u;return Ht.cloneElement(i,m)});return t.displayName=\`\${e}.Slot\`,t}uo(Ga,"createSlot");var OU=Ga("Slot"),aA=Symbol.for("radix.slottable");function Fd(e){let t=uo((a)=>("child"in a)?a.children(a.child):a.children,"Slottable");return t.displayName=\`\${e}.Slottable\`,t.__radixId=aA,t}uo(Fd,"createSlottable");var zU=Fd("Slottable"),BU=uo((e,t)=>{if("child"in e.props){let a=e.props.child;if(!Ht.isValidElement(a))return null;return Ht.cloneElement(a,void 0,e.props.children(a.props.children))}return Ht.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function oA(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];if(/^on[A-Z]/.test(o)){if(r&&n)a[o]=(...s)=>{let l=n(...s);return r(...s),l};else if(r)a[o]=r}else if(o==="style")a[o]={...r,...n};else if(o==="className")a[o]=[r,n].filter(Boolean).join(" ");else if(o==="aria-describedby")a[o]=sA(n,r)}return{...e,...a}}uo(oA,"mergeProps");function rA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;if(a)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}uo(rA,"getElementRef");function nA(e){return Ht.isValidElement(e)&&typeof e.type==="function"&&"__radixId"in e.type&&e.type.__radixId===aA}uo(nA,"isSlottable");var FU=Symbol.for("react.lazy");function O0(e){return e!=null&&typeof e==="object"&&"$$typeof"in e&&e.$$typeof===FU&&"_payload"in e&&iA(e._payload)}uo(O0,"isLazyComponent");function iA(e){return typeof e==="object"&&e!==null&&"then"in e}uo(iA,"isPromiseLike");function sA(...e){let t=new Set;for(let a of e){if(typeof a!=="string")continue;for(let o of String(a).trim().split(/\\s+/))if(o)t.add(o)}return t.size>0?Array.from(t).join(" "):void 0}uo(sA,"concatAriaDescribedby");var HU=uo((e)=>\`\${e} failed to slot onto its children. Expected a single React element child or \\\`Slottable\\\`.\`,"createSlotError"),UU=uo((e)=>\`\${e} failed to slot onto its \\\`Slottable\\\`. Expected \\\`Slottable\\\` to receive a single React element child.\`,"createSlottableError"),ch=Ht[" use ".trim().toString()];var GU=Object.defineProperty,qU=(e,t)=>GU(e,"name",{value:t,configurable:!0}),$U=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=$U.reduce((e,t)=>{let a=Ga(\`Primitive.\${t}\`),o=lA.forwardRef((r,n)=>{let{asChild:i,...s}=r,l=i?a:t;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return c(l,{...s,ref:n})});return o.displayName=\`Primitive.\${t}\`,{...e,[t]:o}},{});function z0(e,t){if(e)uA.flushSync(()=>e.dispatchEvent(t))}qU(z0,"dispatchDiscreteCustomEvent");var Ut=U(V(),1);var cA=U(V(),1),VU=Object.defineProperty,Ur=(e,t)=>VU(e,"name",{value:t,configurable:!0});function dA(e,t){return cA.useReducer((a,o)=>t[a][o]??a,e)}Ur(dA,"useStateMachine");var No=Ur((e)=>{let{present:t,children:a}=e,o=fA(t),r=typeof a==="function"?a({present:o.isPresent}):Ut.Children.only(a),n=pA(o.ref,mA(r));return typeof a==="function"||o.isPresent?Ut.cloneElement(r,{ref:n}):null},"Presence");function fA(e){let[t,a]=Ut.useState(),o=Ut.useRef(null),r=Ut.useRef(e),n=Ut.useRef("none"),i=Ut.useRef(void 0),s=e?"mounted":"unmounted",[l,u]=dA(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ut.useEffect(()=>{if(l==="mounted")n.current=i.current??Jl(o.current),i.current=void 0;else n.current="none"},[l]),dt(()=>{let d=o.current,m=r.current;if(m!==e){let f=n.current,g=Jl(d);if(e)i.current=g,u("MOUNT");else if(g==="none"||d?.display==="none")u("UNMOUNT");else if(m&&f!==g)u("ANIMATION_OUT");else u("UNMOUNT");r.current=e}},[e,u]),dt(()=>{if(t){let d,m=t.ownerDocument.defaultView??window,p=Ur((g)=>{let b=Jl(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&b){if(u("ANIMATION_END"),!r.current){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{if(t.style.animationFillMode==="forwards")t.style.animationFillMode=h})}}},"handleAnimationEnd"),f=Ur((g)=>{if(g.target===t)n.current=Jl(o.current)},"handleAnimationStart");return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:Ut.useCallback((d)=>{if(d){let m=getComputedStyle(d);o.current=m,i.current=Jl(m)}else o.current=null;a(d)},[])}}Ur(fA,"usePresence");function B0(e,t){if(typeof e==="function")return e(t);else if(e!==null&&e!==void 0)e.current=t}Ur(B0,"setRef");function pA(...e){let t=Ut.useRef(e);return t.current=e,Ut.useCallback((a)=>{let o=t.current,r=!1,n=o.map((i)=>{let s=B0(i,a);if(!r&&typeof s==="function")r=!0;return s});if(r)return()=>{for(let i=0;i<n.length;i++){let s=n[i];if(typeof s==="function")s();else B0(o[i],null)}}},[])}Ur(pA,"useStableComposedRefs");function Jl(e){return e?.animationName||"none"}Ur(Jl,"getAnimationName");function mA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;if(a)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}Ur(mA,"getElementRef");var F0=U(V(),1);var ZU=Object.defineProperty,KU=(e,t)=>ZU(e,"name",{value:t,configurable:!0}),jU=F0[" useId ".trim().toString()]||(()=>{return}),XU=0;function Zt(e){let[t,a]=F0.useState(jU());return dt(()=>{if(!e)a((o)=>o??String(XU++))},[e]),e||(t?\`radix-\${t}\`:"")}KU(Zt,"useId");var YU=Object.defineProperty,Hd=(e,t)=>YU(e,"name",{value:t,configurable:!0}),H0="Collapsible",[WU,QU]=aa(H0),[JU,U0]=WU(H0),eG=Gt.forwardRef(Hd(function(t,a){let{__scopeCollapsible:o,open:r,defaultOpen:n,disabled:i,onOpenChange:s,...l}=t,[u,d]=lo({prop:r,defaultProp:n??!1,onChange:s,caller:H0});return c(JU,{scope:o,disabled:i,contentId:Zt(),open:u,onOpenToggle:Gt.useCallback(()=>d((m)=>!m),[d]),children:c(se.div,{"data-state":dh(u),"data-disabled":i?"":void 0,...l,ref:a})})},"Collapsible")),tG="CollapsibleTrigger",aG=Gt.forwardRef(Hd(function(t,a){let{__scopeCollapsible:o,...r}=t,n=U0(tG,o);return c(se.button,{type:"button","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open||!1,"data-state":dh(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:a,onClick:ke(t.onClick,n.onOpenToggle)})},"CollapsibleTrigger")),hA="CollapsibleContent",oG=Gt.forwardRef(Hd(function(t,a){let{forceMount:o,...r}=t,n=U0(hA,t.__scopeCollapsible);return c(No,{present:o||n.open,children:({present:i})=>c(rG,{...r,ref:a,present:i})})},"CollapsibleContent")),rG=Gt.forwardRef(Hd(function(t,a){let{__scopeCollapsible:o,present:r,children:n,...i}=t,s=U0(hA,o),[l,u]=Gt.useState(r),d=Gt.useRef(null),m=Ie(a,d),p=Gt.useRef(0),f=p.current,g=Gt.useRef(0),y=g.current,b=s.open||l,h=Gt.useRef(b),x=Gt.useRef(void 0);return Gt.useEffect(()=>{let v=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(v)},[]),dt(()=>{let v=d.current;if(v){x.current=x.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";let w=v.getBoundingClientRect();if(p.current=w.height,g.current=w.width,!h.current)v.style.transitionDuration=x.current.transitionDuration,v.style.animationName=x.current.animationName;u(r)}},[s.open,r]),c(se.div,{"data-state":dh(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b,...i,ref:m,style:{["--radix-collapsible-content-height"]:f?\`\${f}px\`:void 0,["--radix-collapsible-content-width"]:y?\`\${y}px\`:void 0,...t.style},children:b&&n})},"CollapsibleContentImpl"));function dh(e){return e?"open":"closed"}Hd(dh,"getState");var pt={};ui(pt,{Close:()=>e8,Content:()=>ww,Description:()=>QG,Dialog:()=>xw,DialogClose:()=>e8,DialogContent:()=>ww,DialogDescription:()=>QG,DialogOverlay:()=>bw,DialogPortal:()=>vw,DialogTitle:()=>WG,DialogTrigger:()=>VG,Overlay:()=>bw,Portal:()=>vw,Root:()=>xw,Title:()=>WG,Trigger:()=>VG,WarningProvider:()=>t8,createDialogScope:()=>GG});var Me=U(V(),1);var Ae=U(V(),1);var tu=U(V(),1),nG=Object.defineProperty,iG=(e,t)=>nG(e,"name",{value:t,configurable:!0});function _t(e){let t=tu.useRef(e);return tu.useEffect(()=>{t.current=e}),tu.useMemo(()=>(...a)=>t.current?.(...a),[])}iG(_t,"useCallbackRef");var sG=Object.defineProperty,Tt=(e,t)=>sG(e,"name",{value:t,configurable:!0}),G0="dismissableLayer.update",lG="dismissableLayer.pointerDownOutside",uG="dismissableLayer.focusOutside",gA,yA=Ae.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),xA=Ae.forwardRef(Tt(function(t,a){let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=t,m=Ae.useContext(yA),[p,f]=Ae.useState(null),g=p?.ownerDocument??globalThis?.document,[,y]=Ae.useState({}),b=Ie(a,f),h=Array.from(m.layers),[x]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),v=x?h.indexOf(x):-1,w=p?h.indexOf(p):-1,C=m.layersWithOutsidePointerEventsDisabled.size>0,I=w>=v,L=Ae.useRef(!1),k=vA((D)=>{if(i?.(D),l?.(D),!D.defaultPrevented)u?.()},{ownerDocument:g,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:L,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:Ae.useCallback((D)=>{if(!(D instanceof Node))return!1;let z=[...m.branches].some((R)=>R.contains(D));return I&&!z},[m.branches,I])}),_=bA((D)=>{if(r&&L.current)return;let z=D.target;if([...m.branches].some((A)=>A.contains(z)))return;if(s?.(D),l?.(D),!D.defaultPrevented)u?.()},g),T=p?w===h.length-1:!1,O=_t((D)=>{if(D.key!=="Escape")return;if(n?.(D),!D.defaultPrevented&&u)D.preventDefault(),u()});return Ae.useEffect(()=>{if(!T)return;return g.addEventListener("keydown",O,{capture:!0}),()=>g.removeEventListener("keydown",O,{capture:!0})},[g,T,O]),Ae.useEffect(()=>{if(!p)return;if(o){if(m.layersWithOutsidePointerEventsDisabled.size===0)gA=g.body.style.pointerEvents,g.body.style.pointerEvents="none";m.layersWithOutsidePointerEventsDisabled.add(p)}return m.layers.add(p),q0(),()=>{if(o){if(m.layersWithOutsidePointerEventsDisabled.delete(p),m.layersWithOutsidePointerEventsDisabled.size===0)g.body.style.pointerEvents=gA}}},[p,g,o,m]),Ae.useEffect(()=>()=>{if(!p)return;m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),q0()},[p,m]),Ae.useEffect(()=>{let D=Tt(()=>y({}),"handleUpdate");return document.addEventListener(G0,D),()=>document.removeEventListener(G0,D)},[]),c(se.div,{...d,ref:b,style:{pointerEvents:C?I?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,_.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function $0(){let e=Ae.useContext(yA),[t,a]=Ae.useState(null);return Ae.useEffect(()=>{if(!t)return;return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}Tt($0,"useDismissableLayerSurface");var cG=Tt(()=>!0,"IS_TRUE");function vA(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:n,shouldHandlePointerDownOutside:i=cG}=t,s=_t(e),l=Ae.useRef(!1),u=Ae.useRef(!1),d=Ae.useRef(new Map),m=Ae.useRef(()=>{});return Ae.useEffect(()=>{function p(){u.current=!1,r.current=!1,d.current.clear()}Tt(p,"resetOutsideInteraction");function f(){return Array.from(d.current.values()).some(Boolean)}Tt(f,"isOutsideInteractionIntercepted");function g(v){if(!u.current)return;let w=v.target;if(!(w instanceof Node&&[...n].some((I)=>I.contains(w))))d.current.set(v.type,!0);if(v.type==="click")window.setTimeout(()=>{if(u.current)m.current()},0)}Tt(g,"handleInteractionCapture");function y(v){if(u.current)d.current.set(v.type,!1)}Tt(y,"handleInteractionBubble");let b=Tt((v)=>{if(v.target&&!l.current){let C=function(){a.removeEventListener("click",m.current);let L=f();if(p(),!L)V0(lG,s,I,{discrete:!0})};var w=C;if(Tt(C,"handleAndDispatchPointerDownOutsideEvent"),!i(v.target)){a.removeEventListener("click",m.current),p(),l.current=!1;return}let I={originalEvent:v};if(u.current=!0,r.current=o&&v.button===0,d.current.clear(),!o||v.button!==0)C();else a.removeEventListener("click",m.current),m.current=C,a.addEventListener("click",m.current,{once:!0})}else a.removeEventListener("click",m.current),p();l.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let v of h)a.addEventListener(v,g,!0),a.addEventListener(v,y);let x=window.setTimeout(()=>{a.addEventListener("pointerdown",b)},0);return()=>{window.clearTimeout(x),a.removeEventListener("pointerdown",b),a.removeEventListener("click",m.current);for(let v of h)a.removeEventListener(v,g,!0),a.removeEventListener(v,y)}},[a,s,o,r,n,i]),{onPointerDownCapture:Tt(()=>l.current=!0,"onPointerDownCapture")}}Tt(vA,"usePointerDownOutside");function bA(e,t=globalThis?.document){let a=_t(e),o=Ae.useRef(!1);return Ae.useEffect(()=>{let r=Tt((n)=>{if(n.target&&!o.current)V0(uG,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:Tt(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Tt(()=>o.current=!1,"onBlurCapture")}}Tt(bA,"useFocusOutside");function q0(){let e=new CustomEvent(G0);document.dispatchEvent(e)}Tt(q0,"dispatchUpdate");function V0(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});if(t)r.addEventListener(e,t,{once:!0});if(o)z0(r,n);else r.dispatchEvent(n)}Tt(V0,"handleAndDispatchCustomEvent");var je=U(V(),1);var dG=Object.defineProperty,ft=(e,t)=>dG(e,"name",{value:t,configurable:!0}),Z0="focusScope.autoFocusOnMount",K0="focusScope.autoFocusOnUnmount",wA={bubbles:!1,cancelable:!0},LA=je.forwardRef(ft(function(t,a){let{loop:o=!1,trapped:r=!1,branches:n,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[u,d]=je.useState(null),m=_t(i),p=_t(s),f=je.useRef(null),g=Ie(a,d),y=je.useRef(n);je.useEffect(()=>{y.current=n});let b=je.useCallback((v)=>{if(!v)return!1;if(u?.contains(v))return!0;return Boolean(y.current?.some((w)=>w.contains(v)))},[u]),h=je.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;je.useEffect(()=>{if(r){let I=function(T){if(h.paused||!u)return;let O=T.target;if(b(O))f.current=O;else Gr(f.current,{select:!0})},L=function(T){if(h.paused||!u)return;let O=T.relatedTarget;if(O===null)return;if(!b(O))Gr(f.current,{select:!0})},k=function(T){if(document.activeElement!==document.body)return;for(let D of T)if(D.removedNodes.length>0)Gr(u)};var v=I,w=L,C=k;ft(I,"handleFocusIn"),ft(L,"handleFocusOut"),ft(k,"handleMutations"),document.addEventListener("focusin",I),document.addEventListener("focusout",L);let _=new MutationObserver(k);if(u)_.observe(u,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",L),_.disconnect()}}},[r,u,h.paused,b]),je.useEffect(()=>{if(u){SA.add(h);let v=document.activeElement;if(!u.contains(v)){let C=new CustomEvent(Z0,wA);if(u.addEventListener(Z0,m),u.dispatchEvent(C),!C.defaultPrevented){if(kA(EA(Q0(u)),{select:!0}),document.activeElement===v)Gr(u)}}return()=>{u.removeEventListener(Z0,m),setTimeout(()=>{let C=new CustomEvent(K0,wA);if(u.addEventListener(K0,p),u.dispatchEvent(C),!C.defaultPrevented)Gr(v??document.body,{select:!0});u.removeEventListener(K0,p),SA.remove(h)},0)}}},[u,m,p,h]);let x=je.useCallback((v)=>{if(!o&&!r)return;if(h.paused)return;let w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,C=document.activeElement;if(w&&C){let I=v.currentTarget,[L,k]=IA(I);if(!(L&&k)){if(C===I)v.preventDefault()}else if(!v.shiftKey&&C===k){if(v.preventDefault(),o)Gr(L,{select:!0})}else if(v.shiftKey&&C===L){if(v.preventDefault(),o)Gr(k,{select:!0})}}},[o,r,h.paused]);return c(se.div,{tabIndex:-1,...l,ref:g,onKeyDown:x})},"FocusScope")),CA=je.createContext(null);function Y0({registry:e,children:t}){if(!e)return t;return c(CA.Provider,{value:e,children:t})}ft(Y0,"FocusScopeBranchProvider");function W0(){let[e,t]=je.useState([]),a=je.useMemo(()=>({add:ft((o)=>t((r)=>r.includes(o)?r:[...r,o]),"add"),remove:ft((o)=>t((r)=>r.filter((n)=>n!==o)),"remove")}),[]);return{nodes:e,registry:a}}ft(W0,"useFocusScopeBranchRegistry");function fG(e){let t=je.useContext(CA);je.useEffect(()=>{if(!e||!t)return;return t.add(e),()=>t.remove(e)},[e,t])}ft(fG,"useFocusScopeBranch");function kA(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(Gr(o,{select:t}),document.activeElement!==a)return}ft(kA,"focusFirst");function IA(e){let t=Q0(e),a=j0(t,e),o=j0(t.reverse(),e);return[a,o]}ft(IA,"getTabbableEdges");function Q0(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ft((o)=>{let r=o.tagName==="INPUT"&&o.type==="hidden";if(o.disabled||o.hidden||r)return NodeFilter.FILTER_SKIP;return o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});while(a.nextNode())t.push(a.currentNode);return t}ft(Q0,"getTabbableCandidates");function j0(e,t){let a=typeof t.checkVisibility==="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let o of e)if(!(a?!o.checkVisibility({checkVisibilityCSS:!0}):RA(o,{upTo:t})))return o}ft(j0,"findVisible");function RA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;while(e){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}ft(RA,"isHidden");function _A(e){return e instanceof HTMLInputElement&&"select"in e}ft(_A,"isSelectableInput");function Gr(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;if(e.focus({preventScroll:!0}),e!==a&&_A(e)&&t)e.select()}}ft(Gr,"focus");var SA=TA();function TA(){let e=[];return{add(t){let a=e[0];if(t!==a)a?.pause();e=X0(e,t),e.unshift(t)},remove(t){e=X0(e,t),e[0]?.resume()}}}ft(TA,"createFocusScopesStack");function X0(e,t){let a=[...e],o=a.indexOf(t);if(o!==-1)a.splice(o,1);return a}ft(X0,"arrayRemove");function EA(e){return e.filter((t)=>t.tagName!=="A")}ft(EA,"removeLinks");var fh=U(V(),1),NA=U(wp(),1);var pG=Object.defineProperty,mG=(e,t)=>pG(e,"name",{value:t,configurable:!0}),AA=fh.forwardRef(mG(function(t,a){let{container:o,...r}=t,[n,i]=fh.useState(!1);dt(()=>i(!0),[]);let s=o||n&&globalThis?.document?.body;return s?NA.createPortal(c(se.div,{...r,ref:a}),s):null},"Portal"));var MA=U(V(),1),hG=Object.defineProperty,ew=(e,t)=>hG(e,"name",{value:t,configurable:!0}),ph=0,au=null;function gG(e){return mh(),e.children}ew(gG,"FocusGuards");function mh(){MA.useEffect(()=>{if(!au)au={start:J0(),end:J0()};let{start:e,end:t}=au;if(document.body.firstElementChild!==e)document.body.insertAdjacentElement("afterbegin",e);if(document.body.lastElementChild!==t)document.body.insertAdjacentElement("beforeend",t);return ph++,()=>{if(ph===1)au?.start.remove(),au?.end.remove(),au=null;ph=Math.max(0,ph-1)}},[])}ew(mh,"useFocusGuards");function J0(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}ew(J0,"createFocusGuard");var Sa=function(){return Sa=Object.assign||function(t){for(var a,o=1,r=arguments.length;o<r;o++){a=arguments[o];for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n))t[n]=a[n]}return t},Sa.apply(this,arguments)};function hh(e,t){var a={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)a[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)if(t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r]))a[o[r]]=e[o[r]]}return a}function DA(e,t,a){if(a||arguments.length===2){for(var o=0,r=t.length,n;o<r;o++)if(n||!(o in t)){if(!n)n=Array.prototype.slice.call(t,0,o);n[o]=t[o]}}return e.concat(n||Array.prototype.slice.call(t))}var bh=U(V(),1);var Kt=U(V(),1);var ss="right-scroll-bar-position",ls="width-before-scroll-bar",tw="with-scroll-bars-hidden",aw="--removed-body-scroll-bar-size";var yh=U(V(),1);function gh(e,t){if(typeof e==="function")e(t);else if(e)e.current=t;return e}var PA=U(V(),1);function OA(e,t){var a=PA.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(o){var r=a.value;if(r!==o)a.value=o,a.callback(o,r)}}}})[0];return a.callback=t,a.facade}var yG=typeof window<"u"?yh.useLayoutEffect:yh.useEffect,zA=new WeakMap;function ow(e,t){var a=OA(t||null,function(o){return e.forEach(function(r){return gh(r,o)})});return yG(function(){var o=zA.get(a);if(o){var r=new Set(o),n=new Set(e),i=a.current;r.forEach(function(s){if(!n.has(s))gh(s,null)}),n.forEach(function(s){if(!r.has(s))gh(s,i)})}zA.set(a,e)},[e]),a}function xG(e){return e}function vG(e,t){if(t===void 0)t=xG;var a=[],o=!1,r={read:function(){if(o)throw Error("Sidecar: could not \`read\` from an \`assigned\` medium. \`read\` could be used only with \`useMedium\`.");if(a.length)return a[a.length-1];return e},useMedium:function(n){var i=t(n,o);return a.push(i),function(){a=a.filter(function(s){return s!==i})}},assignSyncMedium:function(n){o=!0;while(a.length){var i=a;a=[],i.forEach(n)}a={push:function(s){return n(s)},filter:function(){return a}}},assignMedium:function(n){o=!0;var i=[];if(a.length){var s=a;a=[],s.forEach(n),i=a}var l=function(){var d=i;i=[],d.forEach(n)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),a}}}};return r}function rw(e){if(e===void 0)e={};var t=vG(null);return t.options=Sa({async:!0,ssr:!1},e),t}var BA=U(V(),1),FA=function(e){var t=e.sideCar,a=hh(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide \`sideCar\` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return BA.createElement(o,Sa({},a))};FA.isSideCarExport=!0;function nw(e,t){return e.useMedium(t),FA}var xh=rw();var iw=function(){return},Ud=Kt.forwardRef(function(e,t){var a=Kt.useRef(null),o=Kt.useState({onScrollCapture:iw,onWheelCapture:iw,onTouchMoveCapture:iw}),r=o[0],n=o[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,m=e.shards,p=e.sideCar,f=e.noRelative,g=e.noIsolation,y=e.inert,b=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,v=e.gapMode,w=hh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,I=ow([a,t]),L=Sa(Sa({},w),r);return Kt.createElement(Kt.Fragment,null,d&&Kt.createElement(C,{sideCar:xh,removeScrollBar:u,shards:m,noRelative:f,noIsolation:g,inert:y,setCallbacks:n,allowPinchZoom:!!b,lockRef:a,gapMode:v}),i?Kt.cloneElement(Kt.Children.only(s),Sa(Sa({},L),{ref:I})):Kt.createElement(x,Sa({},L,{className:l,ref:I}),s))});Ud.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ud.classNames={fullWidth:ls,zeroRight:ss};var $e=U(V(),1);var ru=U(V(),1);var GA=U(V(),1);var HA;var UA=function(){if(HA)return HA;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function bG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=UA();if(t)e.setAttribute("nonce",t);return e}function wG(e,t){if(e.styleSheet)e.styleSheet.cssText=t;else e.appendChild(document.createTextNode(t))}function SG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sw=function(){var e=0,t=null;return{add:function(a){if(e==0){if(t=bG())wG(t,a),SG(t)}e++},remove:function(){if(e--,!e&&t)t.parentNode&&t.parentNode.removeChild(t),t=null}}};var lw=function(){var e=sw();return function(t,a){GA.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Gd=function(){var e=lw(),t=function(a){var{styles:o,dynamic:r}=a;return e(o,r),null};return t};var LG={left:0,top:0,right:0,gap:0},uw=function(e){return parseInt(e||"",10)||0},CG=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[uw(a),uw(o),uw(r)]},cw=function(e){if(e===void 0)e="margin";if(typeof window>"u")return LG;var t=CG(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var kG=Gd(),ou="data-scroll-locked",IG=function(e,t,a,o){var{left:r,top:n,right:i,gap:s}=e;if(a===void 0)a="margin";return\`
7501
- .\`.concat(tw,\` {
7496
+ \`+o.stack}}function Cn(e){if(typeof Y3==="function"&&W3(e),Oa&&typeof Oa.setStrictMode==="function")try{Oa.setStrictMode(jc,e)}catch(t){}}function e4(e){return e>>>=0,e===0?32:31-(Q3(e)/J3|0)|0}function Ai(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Om(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~n,o!==0?r=Ai(o):(i&=s,i!==0?r=Ai(i):a||(a=s&~e,a!==0&&(r=Ai(a))))):(s=o&~n,s!==0?r=Ai(s):i!==0?r=Ai(i):a||(a=o&~e,a!==0&&(r=Ai(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function Xc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function w_(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-za(a),r=1<<o;t|=e[o],a&=~r}return t}function t4(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+5000;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 S_(){var e=Ip;return Ip<<=1,(Ip&62914560)===0&&(Ip=4194304),e}function Dx(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function a4(e,t,a,o,r,n){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:s,expirationTimes:l,hiddenUpdates:u}=e;for(a=i&~a;0<a;){var d=31-za(a),m=1<<d;s[d]=0,l[d]=-1;var p=u[d];if(p!==null)for(u[d]=null,d=0;d<p.length;d++){var f=p[d];f!==null&&(f.lane&=-536870913)}a&=~m}o!==0&&L_(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(i&~t))}function L_(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-za(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function C_(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-za(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function k_(e,t){var a=t&-t;return a=(a&42)!==0?1:Sb(a),(a&(e.suspendedLanes|t))!==0?0:a}function Sb(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 Lb(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function I_(){var e=Se.p;if(e!==0)return e;return e=window.event,e===void 0?32:sE(e.type)}function MI(e,t){var a=Se.p;try{return Se.p=e,t()}finally{Se.p=a}}function zm(e){delete e[Dt],delete e[wa],delete e[o4],delete e[r4]}function Oi(e){var t;if(t=e[Dt])return t;for(var a=e.parentNode;a;){if(t=a[Al]||a[Dt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=YR(e);e!==null;){if(a=e[Dt])return a;e=YR(e)}return t}e=a,a=e.parentNode}return null}function Ml(e){if(e=e[Dt]||e[Al]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(M(33))}function ul(e){var t=e[PI];return t||(t=e[PI]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function It(e){e[Wc]=!0}function R_(e){e[cm]=void 0}function Qi(e,t){bl(e,t),bl(e+"Capture",t)}function bl(e,t){T_[e]=t;for(e=0;e<t.length;e++)__.add(t[e])}function i4(e){if(gv.call(zI,e))return!0;if(gv.call(OI,e))return!1;if(n4.test(e))return zI[e]=!0;return OI[e]=!0,!1}function BI(){var e=ve;return ve=!1,e}function Hp(e,t,a){if(i4(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Rp(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Lr(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function Na(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s4(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:r,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yv(e){if(!e._valueTracker){var t=E_(e)?"checked":"value";e._valueTracker=s4(e,t,""+e[t])}}function N_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=E_(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function eo(e){return e.replace(l4,function(t){return"\\\\"+t.charCodeAt(0).toString(16)+" "})}function xv(e,t,a,o,r,n,i,s){if(e.name="",i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"?e.type=i:e.removeAttribute("type"),t!=null)if(i==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Na(t)}else e.value!==""+Na(t)&&(e.value=""+Na(t));else i!=="submit"&&i!=="reset"||e.removeAttribute("value");t!=null?i==="number"&&e.value==t?Px(e,Na(e.value)):Px(e,Na(t)):a!=null?Px(e,Na(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!=="function"&&typeof r!=="symbol"),s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?e.name=""+Na(s):e.removeAttribute("name")}function A_(e,t,a,o,r,n,i,s){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){yv(e);return}a=a!=null?""+Na(a):"",t=t!=null?""+Na(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:r,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"&&(e.name=i),yv(e)}function Px(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function cl(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{a=""+Na(a),t=null;for(r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function M_(e,t,a){if(t!=null&&(t=""+Na(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Na(a):""}function D_(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(M(92));if(cc(o)){if(1<o.length)throw Error(M(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=Na(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),yv(e)}function wl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function FI(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||u4.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function P_(e,t,a){if(t!=null&&typeof t!=="object")throw Error(M(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",ve=!0);for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&(FI(e,r,o),ve=!0)}else for(var n in t)t.hasOwnProperty(n)&&FI(e,n,t[n])}function Cb(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}}function Up(e){return d4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xo(){}function kb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function HI(e){var t=Ml(e);if(t&&(e=t.stateNode)){var a=e[wa]||null;e:switch(e=t.stateNode,t.type){case"input":if(xv(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+eo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[wa]||null;if(!r)throw Error(M(90));xv(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&N_(o)}break e;case"textarea":M_(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&cl(e,!!a.multiple,t,!1)}}}function O_(e,t,a){if(Ox)return e(t,a);Ox=!0;try{var o=e(t);return o}finally{if(Ox=!1,el!==null||dl!==null){if(Wm(),el&&(t=el,e=dl,dl=el=null,HI(t),e))for(t=0;t<e.length;t++)HI(e[t])}}}function Ac(e,t){var a=e.stateNode;if(a===null)return null;var o=a[wa]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(M(231,t,typeof a));return a}function z_(){if(Gp)return Gp;var e,t=Ib,a=t.length,o,r="value"in kn?kn.value:kn.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(o=1;o<=i&&t[a-o]===r[n-o];o++);return Gp=r.slice(e,1<o?1-o:void 0)}function qp(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 _p(){return!0}function UI(){return!1}function ta(e){function t(a,o,r,n,i){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?_p:UI,this.isPropagationStopped=UI,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_p)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_p)},persist:function(){},isPersistent:_p}),t}function C4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L4[e])?!!t[e]:!1}function Rb(){return C4}function F_(e,t){switch(e){case"keyup":return B4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H_(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function H4(e,t){switch(e){case"compositionend":return H_(t);case"keypress":if(t.which!==32)return null;return ZI=!0,VI;case"textInput":return e=t.data,e===VI&&ZI?null:e;default:return null}}function U4(e,t){if(tl)return e==="compositionend"||!_b&&F_(e,t)?(e=z_(),Gp=Ib=kn=null,tl=!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 B_&&t.locale!=="ko"?null:t.data;default:return null}}function KI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G4[e.type]:t==="textarea"?!0:!1}function U_(e,t,a,o){el?dl?dl.push(o):dl=[o]:el=o,t=Am(t,"onChange"),0<t.length&&(a=new Bm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function q4(e){O2(e,0)}function Hm(e){var t=dc(e);if(N_(t))return e}function jI(e,t){if(e==="change")return t}function XI(){vc&&(vc.detachEvent("onpropertychange",q_),Mc=vc=null)}function q_(e){if(e.propertyName==="value"&&Hm(Mc)){var t=[];U_(t,Mc,e,kb(e)),O_(q4,t)}}function $4(e,t,a){e==="focusin"?(XI(),vc=t,Mc=a,vc.attachEvent("onpropertychange",q_)):e==="focusout"&&XI()}function V4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hm(Mc)}function Z4(e,t){if(e==="click")return Hm(t)}function K4(e,t){if(e==="input"||e==="change")return Hm(t)}function j4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Dc(e,t){if(Fa(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!gv.call(t,r)||!Fa(e[r],t[r]))return!1}return!0}function wv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function YI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function WI(e,t){var a=YI(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=YI(a)}}function $_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$_(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function V_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wv(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=wv(e.document)}return t}function Tb(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")}function QI(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Lv||al==null||al!==wv(o)||(o=al,("selectionStart"in o)&&Tb(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),bc&&Dc(bc,o)||(bc=o,o=Am(Sv,"onSelect"),0<o.length&&(t=new Bm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=al)))}function Ei(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function Ji(e){if(Hx[e])return Hx[e];if(!ol[e])return e;var t=ol[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Z_)return Hx[e]=t[a];return e}function Co(e,t){W_.set(e,t),Qi(t,[e])}function Er(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Lo.identifierPrefix;var a=J4++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function JI(e){if(e==null||typeof e==="string")return e;var t=null,a=xl;if(a!==null)for(var o=0;o<a.length;o++){var r=e[a[o]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t==null?e.default:t}function Or(e,t){return e=JI(e),t=JI(t),t==null?e==="auto"?null:e:t==="auto"?null:t}function Um(){for(var e=rl,t=Eb=rl=0;t<e;){var a=Wa[t];Wa[t++]=null;var o=Wa[t];Wa[t++]=null;var r=Wa[t];Wa[t++]=null;var n=Wa[t];if(Wa[t++]=null,o!==null&&r!==null){var i=o.pending;i===null?r.next=r:(r.next=i.next,i.next=r),o.pending=r}n!==0&&Q_(a,r,n)}}function Gm(e,t,a,o){Wa[rl++]=e,Wa[rl++]=t,Wa[rl++]=a,Wa[rl++]=o,Eb|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Nb(e,t,a,o){return Gm(e,t,a,o),fm(e)}function es(e,t){return Gm(e,null,null,t),fm(e)}function Q_(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-za(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function fm(e){if(50<Ec)throw Ec=0,em=null,Error(M(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}function eF(e,t,a,o){this.tag=e,this.key=a,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xa(e,t,a,o){return new eF(e,t,a,o)}function Ab(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rr(e,t){var a=e.alternate;return a===null?(a=xa(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function J_(e,t){e.flags&=1206910978;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vp(e,t,a,o,r,n){var i=0;if(o=e,typeof o==="function")Ab(o)&&(i=1);else if(typeof o==="string")i=I6(e,a,Qo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case dv:return e=xa(31,a,t,r),e.elementType=dv,e.lanes=n,e;case Qs:return Fi(a.children,r,n,t);case g_:i=8,r|=24;break;case lv:return e=xa(12,a,t,r|2),e.elementType=lv,e.lanes=n,e;case uv:return e=xa(13,a,t,r),e.elementType=uv,e.lanes=n,e;case cv:return e=xa(19,a,t,r),e.elementType=cv,e.lanes=n,e;case U3:case fv:return e=r|32,e=xa(30,a,t,e),e.elementType=fv,e.lanes=n,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o==="object"&&o!==null)switch(o.$$typeof){case jo:i=10;break e;case y_:i=9;break e;case vb:i=11;break e;case bb:i=14;break e;case wn:i=16,o=null;break e}i=29,a=Error(M(130,e===null?"null":typeof e,"")),o=null}return t=xa(i,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function Fi(e,t,a,o){return e=xa(7,e,o,t),e.lanes=a,e}function Ux(e,t,a){return e=xa(6,e,null,t),e.lanes=a,e}function eT(e){var t=xa(18,null,null,0);return t.stateNode=e,t}function Gx(e,t,a){return t=xa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function to(e,t){if(typeof e==="object"&&e!==null){var a=eR.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:AI(t)},eR.set(e,t),t}return{value:e,source:t,stack:AI(t)}}function kr(e,t){il[sl++]=Pc,il[sl++]=pm,pm=e,Pc=t}function tT(e,t,a){Qa[Ja++]=Yo,Qa[Ja++]=Wo,Qa[Ja++]=Hn,Hn=e;var o=Yo;e=Wo;var r=32-za(o)-1;o&=~(1<<r),a+=1;var n=32-za(t)+r;if(30<n){var i=r-r%5;n=(o&(1<<i)-1).toString(32),o>>=i,r-=i,Yo=1<<32-za(t)+r|a<<r|o,Wo=n+e}else Yo=1<<n|a<<r|o,Wo=e}function qm(e){e.return!==null&&(kr(e,1),tT(e,1,0))}function Mb(e){for(;e===pm;)pm=il[--sl],il[sl]=null,Pc=il[--sl],il[sl]=null;for(;e===Hn;)Hn=Qa[--Ja],Qa[Ja]=null,Wo=Qa[--Ja],Qa[Ja]=null,Yo=Qa[--Ja],Qa[Ja]=null}function aT(e,t){Qa[Ja++]=Yo,Qa[Ja++]=Wo,Qa[Ja++]=Hn,Yo=t.id,Wo=t.overflow,Hn=e}function Un(e){var t=Error(M(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oc(to(t,e)),kv}function tR(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Dt]=e,t[wa]=o,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Hc.length;a++)pe(Hc[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),A_(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),D_(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||B2(t.textContent,a)?(o.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),o.onScroll!=null&&pe("scroll",t),o.onScrollEnd!=null&&pe("scrollend",t),o.onClick!=null&&(t.onclick=Xo),t=!0):t=!1,t||Un(e,!0)}function mm(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:ao=!1;return;case 27:case 3:ao=!0;return;default:Rt=Rt.return}}function Vs(e){if(e!==Rt)return!1;if(!le)return mm(e),le=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||db(e.type,e.memoizedProps);a=!a}if(a&&He&&Un(e),mm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));He=XR(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));He=XR(e)}else t===27?(t=He,Zn(e.type)?(e=hb,hb=null,He=e):He=t):He=Rt?oo(e.stateNode.nextSibling):null;return!0}function qi(){He=Rt=null,le=!1}function qx(){var e=Nn;return e!==null&&(ga===null?ga=e:ga.push.apply(ga,e),Nn=null),e}function Oc(e){Nn===null?Nn=[e]:Nn.push(e)}function In(e,t,a){Ue(Iv,t._currentValue),t._currentValue=a}function _r(e){e._currentValue=Iv.current,Ot(Iv)}function Zp(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function Rv(e,t,a,o){var r=e.child;r!==null&&(r.return=e);for(;r!==null;){var n=r.dependencies;if(n!==null){var i=r.child;n=n.firstContext;e:for(;n!==null;){var s=n;n=r;for(var l=0;l<t.length;l++)if(s.context===t[l]){n.lanes|=a,s=n.alternate,s!==null&&(s.lanes|=a),Zp(n.return,a,e),o||(i=null);break e}n=s.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(M(341));i.lanes|=a,n=i.alternate,n!==null&&(n.lanes|=a),Zp(i,a,e),i=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,i=r.alternate,i!==null&&(i.lanes|=a),Zp(r.return,a,e),i=r.child,i=i!==null?i.sibling:null):i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function $i(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(M(387));if(i=i.memoizedProps,i!==null){var s=r.type;Fa(r.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(r===im.current){if(i=r.alternate,i===null)throw Error(M(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Tl):e=[Tl])}r=r.return}return e!==null&&Rv(t,e,a,o),t.flags|=262144,e!==null}function hm(e){for(e=e.firstContext;e!==null;){if(!Fa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vi(e){ts=e,Ir=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pt(e){return oT(ts,e)}function Tp(e,t){return ts===null&&Vi(e),oT(e,t)}function oT(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ir===null){if(e===null)throw Error(M(308));Ir=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ir=Ir.next=t;return a}function Db(){return{controller:new tF,data:new Map,refCount:0}}function Jc(e){e.refCount--,e.refCount===0&&aF(oF,function(){e.controller.abort()})}function aR(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;a===null&&(a=e.transitionTypes=[]);for(e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}function rF(e){var t=e.transitionTypes;return e.transitionTypes=null,t}function nF(e,t){if(wc===null){var a=wc=[];_v=0,Zi=l0(),fl={status:"pending",value:void 0,then:function(o){a.push(o)}}}return _v++,t.then(oR,oR),t}function oR(){if(--_v===0&&(mc=null,wc!==null)){fl!==null&&(fl.status="fulfilled");var e=wc;wc=null,Zi=0,fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function iF(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){o.status="rejected",o.reason=r;for(r=0;r<a.length;r++)(0,a[r])(void 0)}),o}function Pb(){var e=Hi.current;return e!==null?e:Pe.pooledCache}function Kp(e,t){t===null?Ue(Hi,Hi.current):Ue(Hi,t.pool)}function rT(){var e=Pb();return e===null?null:{parent:lt._currentValue,pool:e}}function nR(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nT(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Xo,Xo),t=a),t.status){case"fulfilled":return t.value;case"rejected":if(e=t.reason,sR(e),e===void 0&&!("reason"in t))throw Error(M(600));throw e;default:if(typeof t.status==="string")t.then(Xo,Xo);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(M(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sR(e),e}throw Ui=t,Dl}}function Di(e){try{var t=e._init;return t(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw Ui=a,Dl;throw a}}function iR(){if(Ui===null)throw Error(M(459));var e=Ui;return Ui=null,e}function sR(e){if(e===Dl||e===$m)throw Error(M(483))}function Ep(e){var t=zc;return zc+=1,pl===null&&(pl=[]),nT(pl,e,t)}function xn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Np(e,t){if(t.$$typeof===H3)throw Error(M(525));throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iT(e){function t(h,x){if(e){var v=h.deletions;v===null?(h.deletions=[x],h.flags|=16):v.push(x)}}function a(h,x){if(!e)return null;for(;x!==null;)t(h,x),x=x.sibling;return null}function o(h){for(var x=new Map;h!==null;)h.key===null?x.set(h.index,h):x.set(h.key,h),h=h.sibling;return x}function r(h,x){return h=Rr(h,x),h.index=0,h.sibling=null,h}function n(h,x,v){if(h.index=v,!e)return h.flags|=1048576,x;if(v=h.alternate,v!==null)return v=v.index,v<x?(h.flags|=2,x):v;return h.flags|=134217730,x}function i(h){return e&&h.alternate===null&&(h.flags|=134217730),h}function s(h,x,v,w){if(x===null||x.tag!==6)return x=Ux(v,h.mode,w),x.return=h,x;return x=r(x,v),x.return=h,x}function l(h,x,v,w){var C=v.type;if(C===Qs)return h=d(h,x,v.props.children,w,v.key),xn(h,v),h;if(x!==null&&(x.elementType===C||typeof C==="object"&&C!==null&&C.$$typeof===wn&&Di(C)===x.type))return x=r(x,v.props),xn(x,v),x.return=h,x;return x=Vp(v.type,v.key,v.props,null,h.mode,w),xn(x,v),x.return=h,x}function u(h,x,v,w){if(x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation)return x=Gx(v,h.mode,w),x.return=h,x;return x=r(x,v.children||[]),x.return=h,x}function d(h,x,v,w,C){if(x===null||x.tag!==7)return x=Fi(v,h.mode,w,C),x.return=h,x;return x=r(x,v),x.return=h,x}function m(h,x,v){if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return x=Ux(""+x,h.mode,v),x.return=h,x;if(typeof x==="object"&&x!==null){switch(x.$$typeof){case Lp:return v=Vp(x.type,x.key,x.props,null,h.mode,v),xn(v,x),v.return=h,v;case uc:return x=Gx(x,h.mode,v),x.return=h,x;case wn:return x=Di(x),m(h,x,v)}if(cc(x)||rc(x))return x=Fi(x,h.mode,v,null),x.return=h,x;if(typeof x.then==="function")return m(h,Ep(x),v);if(x.$$typeof===jo)return m(h,Tp(h,x),v);Np(h,x)}return null}function p(h,x,v,w){var C=x!==null?x.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return C!==null?null:s(h,x,""+v,w);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case Lp:return v.key===C?l(h,x,v,w):null;case uc:return v.key===C?u(h,x,v,w):null;case wn:return v=Di(v),p(h,x,v,w)}if(cc(v)||rc(v))return C!==null?null:d(h,x,v,w,null);if(typeof v.then==="function")return p(h,x,Ep(v),w);if(v.$$typeof===jo)return p(h,x,Tp(h,v),w);Np(h,v)}return null}function f(h,x,v,w,C){if(typeof w==="string"&&w!==""||typeof w==="number"||typeof w==="bigint")return h=h.get(v)||null,s(x,h,""+w,C);if(typeof w==="object"&&w!==null){switch(w.$$typeof){case Lp:return h=h.get(w.key===null?v:w.key)||null,l(x,h,w,C);case uc:return h=h.get(w.key===null?v:w.key)||null,u(x,h,w,C);case wn:return w=Di(w),f(h,x,v,w,C)}if(cc(w)||rc(w))return h=h.get(v)||null,d(x,h,w,C,null);if(typeof w.then==="function")return f(h,x,v,Ep(w),C);if(w.$$typeof===jo)return f(h,x,v,Tp(x,w),C);Np(x,w)}return null}function g(h,x,v,w){for(var C=null,I=null,L=x,k=x=0,_=null;L!==null&&k<v.length;k++){L.index>k?(_=L,L=null):_=L.sibling;var T=p(h,L,v[k],w);if(T===null){L===null&&(L=_);break}e&&L&&T.alternate===null&&t(h,L),x=n(T,x,k),I===null?C=T:I.sibling=T,I=T,L=_}if(k===v.length)return a(h,L),le&&kr(h,k),C;if(L===null){for(;k<v.length;k++)L=m(h,v[k],w),L!==null&&(x=n(L,x,k),I===null?C=L:I.sibling=L,I=L);return le&&kr(h,k),C}for(L=o(L);k<v.length;k++)_=f(L,h,k,v[k],w),_!==null&&(e&&(T=_.alternate,T!==null&&L.delete(T.key===null?k:T.key)),x=n(_,x,k),I===null?C=_:I.sibling=_,I=_);return e&&L.forEach(function(O){return t(h,O)}),le&&kr(h,k),C}function y(h,x,v,w){if(v==null)throw Error(M(151));for(var C=null,I=null,L=x,k=x=0,_=null,T=v.next();L!==null&&!T.done;k++,T=v.next()){L.index>k?(_=L,L=null):_=L.sibling;var O=p(h,L,T.value,w);if(O===null){L===null&&(L=_);break}e&&L&&O.alternate===null&&t(h,L),x=n(O,x,k),I===null?C=O:I.sibling=O,I=O,L=_}if(T.done)return a(h,L),le&&kr(h,k),C;if(L===null){for(;!T.done;k++,T=v.next())T=m(h,T.value,w),T!==null&&(x=n(T,x,k),I===null?C=T:I.sibling=T,I=T);return le&&kr(h,k),C}for(L=o(L);!T.done;k++,T=v.next())T=f(L,h,k,T.value,w),T!==null&&(e&&(_=T.alternate,_!==null&&L.delete(_.key===null?k:_.key)),x=n(T,x,k),I===null?C=T:I.sibling=T,I=T);return e&&L.forEach(function(D){return t(h,D)}),le&&kr(h,k),C}function b(h,x,v,w){if(typeof v==="object"&&v!==null&&v.type===Qs&&v.key===null&&v.props.ref===void 0&&(v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case Lp:e:{for(var C=v.key;x!==null;){if(x.key===C){if(C=v.type,C===Qs){if(x.tag===7){a(h,x.sibling),w=r(x,v.props.children),xn(w,v),w.return=h,h=w;break e}}else if(x.elementType===C||typeof C==="object"&&C!==null&&C.$$typeof===wn&&Di(C)===x.type){a(h,x.sibling),w=r(x,v.props),xn(w,v),w.return=h,h=w;break e}a(h,x);break}else t(h,x);x=x.sibling}v.type===Qs?(w=Fi(v.props.children,h.mode,w,v.key),xn(w,v),w.return=h,h=w):(w=Vp(v.type,v.key,v.props,null,h.mode,w),xn(w,v),w.return=h,h=w)}return i(h);case uc:e:{for(C=v.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){a(h,x.sibling),w=r(x,v.children||[]),w.return=h,h=w;break e}else{a(h,x);break}else t(h,x);x=x.sibling}w=Gx(v,h.mode,w),w.return=h,h=w}return i(h);case wn:return v=Di(v),b(h,x,v,w)}if(cc(v))return g(h,x,v,w);if(rc(v)){if(C=rc(v),typeof C!=="function")throw Error(M(150));return v=C.call(v),y(h,x,v,w)}if(typeof v.then==="function")return b(h,x,Ep(v),w);if(v.$$typeof===jo)return b(h,x,Tp(h,v),w);Np(h,v)}return typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint"?(v=""+v,x!==null&&x.tag===6?(a(h,x.sibling),w=r(x,v),w.return=h,h=w):(a(h,x),w=Ux(v,h.mode,w),w.return=h,h=w),i(h)):a(h,x)}return function(h,x,v,w){try{zc=0;var C=b(h,x,v,w);return pl=null,C}catch(L){if(L===Dl||L===$m)throw L;var I=xa(29,L,null,h.mode);return I.lanes=w,I.return=h,I}finally{}}}function zb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tv(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 An(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(we&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=fm(e),Q_(e,null,a),t}return Gm(e,o,t,a),fm(e)}function Sc(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,C_(e,a)}}function $x(e,t){var{updateQueue:a,alternate:o}=e;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Lc(){if(Ev){var e=fl;if(e!==null)throw e}}function Cc(e,t,a,o){Ev=!1;var r=e.updateQueue;Sn=!1;var{firstBaseUpdate:n,lastBaseUpdate:i}=r,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?n=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(n!==null){var m=r.baseState;i=0,d=u=l=null,s=n;do{var p=s.lane&-536870913,f=p!==s.lane;if(f?(ge&p)===p:(o&p)===p){p!==0&&p===Zi&&(Ev=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,y=s;p=t;var b=a;switch(y.tag){case 1:if(g=y.payload,typeof g==="function"){m=g.call(b,m,p);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g==="function"?g.call(b,m,p):g,p===null||p===void 0)break e;m=Oe({},m,p);break e;case 2:Sn=!0}}p=s.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[p]:f.push(p))}else f={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=f,l=m):d=d.next=f,i|=p;if(s=s.next,s===null)if(s=r.shared.pending,s===null)break;else f=s,s=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}while(1);d===null&&(l=m),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,n===null&&(r.shared.lanes=0),$n|=i,e.lanes=i,e.memoizedState=m}}function lT(e,t){if(typeof e!=="function")throw Error(M(191,e));e.call(t)}function uT(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)lT(a[e],t)}function lR(e,t){e=Dr,Ue(ym,e),Ue(Gn,t),Dr=e|t.baseLanes}function Nv(){Ue(ym,Dr),Ue(Gn,Gn.current)}function Bb(){Dr=ym.current,Ot(Gn),Ot(ym)}function Dn(e){var t=e.alternate;Ue(zt,zt.current&1),Ue(Ft,e),Vt===null&&(t===null||Gn.current!==null?Vt=e:t.memoizedState!==null&&(Vt=e))}function Av(e){Ue(zt,zt.current),Ue(Ft,e),Vt===null&&(Vt=e)}function cT(e){e.tag===22?(Ue(zt,zt.current),Ue(Ft,e),Vt===null&&(Vt=e)):Pn()}function Pn(){Ue(zt,zt.current),Ue(Ft,Ft.current)}function Aa(e){Ot(Ft),Vt===e&&(Vt=null),Ot(zt)}function Bc(e,t){Ue(Ft,Ft.current),Ue(zt,t)}function Fb(e){Ot(zt),Ot(Ft),Vt===e&&(Vt=null)}function xm(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||mb(a)||f0(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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}function We(){throw Error(M(321))}function Hb(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Fa(e[a],t[a]))return!1;return!0}function Ub(e,t,a,o,r,n){return Nr=n,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?UT:GT,ji=!1,n=a(o,r),ji=!1,ml&&(n=fT(t,a,o,r)),dT(e),n}function dT(e){ae.H=wm;var t=Ne!==null&&Ne.next!==null;if(Nr=0,st=Ne=re=null,vm=!1,Fc=0,hl=null,t)throw Error(M(300));e===null||ut||(e=e.dependencies,e!==null&&hm(e)&&(ut=!0))}function fT(e,t,a,o){re=e;var r=0;do{if(ml&&(hl=null),Fc=0,ml=!1,25<=r)throw Error(M(301));if(r+=1,st=Ne=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}ae.H=hF,n=t(a,o)}while(ml);return n}function lF(){var e=ae.H,t=e.useState()[0];return t=typeof t.then==="function"?ed(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(re.flags|=1024),t}function Gb(){var e=bm!==0;return bm=0,e}function qb(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function $b(e){if(vm){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vm=!1}Nr=0,st=Ne=re=null,ml=!1,Fc=bm=0,hl=null}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?re.memoizedState=st=e:st=st.next=e,st}function ot(){if(Ne===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=st===null?re.memoizedState:st.next;if(t!==null)st=t,Ne=e;else{if(e===null){if(re.alternate===null)throw Error(M(467));throw Error(M(310))}Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},st===null?re.memoizedState=st=e:st=st.next=e}return st}function Vm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ed(e){var t=Fc;return Fc+=1,hl===null&&(hl=[]),e=nT(hl,e,t),t=re,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?UT:GT),e}function Zm(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return ed(e);if(e.$$typeof===q3)return;if(e.$$typeof===jo)return Pt(e)}throw Error(M(438,String(e)))}function Vb(e){var t=null,a=re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=re.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Vm(),re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=G3;return t.index++,a}function Ar(e,t){return typeof t==="function"?t(e):t}function jp(e){var t=ot();return Zb(t,Ne,e)}function Zb(e,t,a){var o=e.queue;if(o===null)throw Error(M(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var i=r.next;r.next=n.next,n.next=i}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var s=i=null,l=null,u=t,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(ge&m)===m:(Nr&m)===m){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===Zi&&(d=!0);else if((Nr&p)===p){u=u.next,p===Zi&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=m,i=n):l=l.next=m,re.lanes|=p,$n|=p;m=u.action,ji&&a(n,m),n=u.hasEagerState?u.eagerState:a(n,m)}else p={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=p,i=n):l=l.next=p,re.lanes|=m,$n|=m;u=u.next}while(u!==null&&u!==t);if(l===null?i=n:l.next=s,!Fa(n,e.memoizedState)&&(ut=!0,d&&(a=fl,a!==null)))throw a;e.memoizedState=n,e.baseState=i,e.baseQueue=l,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Vx(e){var t=ot(),a=t.queue;if(a===null)throw Error(M(311));a.lastRenderedReducer=e;var{dispatch:o,pending:r}=a,n=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do n=e(n,i.action),i=i.next;while(i!==r);Fa(n,t.memoizedState)||(ut=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function pT(e,t,a){var o=re,r=ot(),n=le;if(n){if(a===void 0)throw Error(M(407));a=a()}else a=t();var i=!Fa((Ne||r).memoizedState,a);if(i&&(r.memoizedState=a,ut=!0),r=r.queue,Kb(gT.bind(null,o,r,e),[e]),e=r.getSnapshot!==t||i||st!==null&&(st.memoizedState.tag&1)!==0,Sl(e?9:8,{destroy:void 0},hT.bind(null,o,r,a,t),null),e){if(o.flags|=2048,Pe===null)throw Error(M(349));n||(Nr&127)!==0||mT(o,t,a)}return a}function mT(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=re.updateQueue,t===null?(t=Vm(),re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function hT(e,t,a,o){t.value=a,t.getSnapshot=o,yT(t)&&xT(e)}function gT(e,t,a){return a(function(){yT(t)&&xT(e)})}function yT(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Fa(e,a)}catch(o){return!0}}function xT(e){var t=es(e,2);t!==null&&va(t,e,2)}function Mv(e){var t=ea();if(typeof e==="function"){var a=e;if(e=a(),ji){Cn(!0);try{a()}finally{Cn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},t}function vT(e,t,a,o){return e.baseState=a,Zb(e,Ne,typeof o==="function"?o:Ar)}function uF(e,t,a,o,r){if(jm(e))throw Error(M(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};ae.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,bT(t,n)):(n.next=a.next,t.pending=a.next=n)}}function bT(e,t){var{action:a,payload:o}=t,r=e.state;if(t.isTransition){var n=ae.T,i={};i.types=n!==null?n.types:null,ae.T=i;try{var s=a(r,o),l=ae.S;l!==null&&l(i,s),uR(e,t,s)}catch(u){Dv(e,t,u)}finally{n!==null&&i.types!==null&&(n.types=i.types),ae.T=n}}else try{n=a(r,o),uR(e,t,n)}catch(u){Dv(e,t,u)}}function uR(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(o){cR(e,t,o)},function(o){return Dv(e,t,o)}):cR(e,t,a)}function cR(e,t,a){t.status="fulfilled",t.value=a,wT(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,bT(e,a)))}function Dv(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,wT(t),t=t.next;while(t!==o)}e.action=null}function wT(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ST(e,t){return t}function dR(e,t){if(le){var a=Pe.formState;if(a!==null){e:{var o=re;if(le){if(He){t:{var r=He;for(var n=ao;r.nodeType!==8;){if(!n){r=null;break t}if(r=oo(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){He=oo(r.nextSibling),o=r.data==="F!";break e}}Un(o)}o=!1}o&&(t=a[0])}}return a=ea(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ST,lastRenderedState:t},a.queue=o,a=BT.bind(null,re,o),o.dispatch=a,o=Mv(!1),n=Wb.bind(null,re,!1,o.queue),o=ea(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=uF.bind(null,re,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function fR(e){var t=ot();return LT(t,Ne,e)}function LT(e,t,a){if(t=Zb(e,t,ST)[0],e=jp(Ar)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=ed(t)}catch(i){if(i===Dl)throw $m;throw i}else o=t;t=ot();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(re.flags|=2048,Sl(9,{destroy:void 0},cF.bind(null,r,a),null)),[o,n,e]}function cF(e,t){e.action=t}function pR(e){var t=ot(),a=Ne;if(a!==null)return LT(t,a,e);ot(),t=t.memoizedState,a=ot();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Sl(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=re.updateQueue,t===null&&(t=Vm(),re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function CT(){return ot().memoizedState}function Xp(e,t,a,o){var r=ea();re.flags|=e,r.memoizedState=Sl(1|t,{destroy:void 0},a,o===void 0?null:o)}function Km(e,t,a,o){var r=ot();o=o===void 0?null:o;var n=r.memoizedState.inst;Ne!==null&&o!==null&&Hb(o,Ne.memoizedState.deps)?r.memoizedState=Sl(t,n,a,o):(re.flags|=e,r.memoizedState=Sl(1|t,n,a,o))}function mR(e,t){Xp(8390656,8,e,t)}function Kb(e,t){Km(2048,8,e,t)}function dF(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Vm(),re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function kT(e){var t=ot().memoizedState;return dF({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(M(440));return t.impl.apply(void 0,arguments)}}function IT(e,t){return Km(4,2,e,t)}function RT(e,t){return Km(4,4,e,t)}function _T(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return e=e(),t.current=e,function(){t.current=null}}function TT(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,Km(4,4,_T.bind(null,t,e),a)}function jb(){}function ET(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Hb(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function NT(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Hb(t,o[1]))return o[0];if(o=e(),ji){Cn(!0);try{e()}finally{Cn(!1)}}return a.memoizedState=[o,t],o}function Xb(e,t,a){if(a===void 0||(Nr&1073741824)!==0&&(ge&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=L2(),re.lanes|=e,$n|=e,a}function AT(e,t,a,o){if(Fa(a,t))return a;if(Gn.current!==null)return e=Xb(e,a,o),Fa(e,t)||(ut=!0),e;if((Nr&106)===0||(Nr&1073741824)!==0&&(ge&261930)===0)return ut=!0,e.memoizedState=a;return e=L2(),re.lanes|=e,$n|=e,t}function MT(e,t,a,o,r){var n=Se.p;Se.p=n!==0&&8>n?n:8;var i=ae.T,s={};s.types=i!==null?i.types:null,ae.T=s,Wb(e,!1,t,a);try{var l=r(),u=ae.S;if(u!==null&&u(s,l),l!==null&&typeof l==="object"&&typeof l.then==="function"){var d=iF(l,o);kc(e,t,d,Ba(e))}else kc(e,t,o,Ba(e))}catch(m){kc(e,t,{then:function(){},status:"rejected",reason:m},Ba())}finally{Se.p=n,i!==null&&s.types!==null&&(i.types=s.types),ae.T=i}}function fF(){}function Pv(e,t,a,o){if(e.tag!==5)throw Error(M(476));var r=DT(e).queue;MT(e,r,t,Bi,a===null?fF:function(){return PT(e),a(o)})}function DT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Bi,baseState:Bi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:Bi},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function PT(e){var t=DT(e);t.next===null&&(t=e.alternate.memoizedState),kc(e,t.next.queue,{},Ba())}function Yb(){return Pt(Tl)}function OT(){return ot().memoizedState}function zT(){return ot().memoizedState}function pF(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ba();e=An(a);var o=Mn(t,e,a);o!==null&&(va(o,t,a),Sc(o,t,a)),t={cache:Db()},e.payload=t;return}t=t.return}}function mF(e,t,a){var o=Ba();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},jm(e)?FT(t,a):(a=Nb(e,t,a,o),a!==null&&(va(a,e,o),HT(a,t,o)))}function BT(e,t,a){var o=Ba();kc(e,t,a,o)}function kc(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(jm(e))FT(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,s=n(i,a);if(r.hasEagerState=!0,r.eagerState=s,Fa(s,i))return Gm(e,t,r,0),Pe===null&&Um(),!1}catch(l){}finally{}if(a=Nb(e,t,r,o),a!==null)return va(a,e,o),HT(a,t,o),!0}return!1}function Wb(e,t,a,o){if(o={lane:2,revertLane:l0(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},jm(e)){if(t)throw Error(M(479))}else t=Nb(e,a,o,2),t!==null&&va(t,e,2)}function jm(e){var t=e.alternate;return e===re||t!==null&&t===re}function FT(e,t){ml=vm=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function HT(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,C_(e,a)}}function Zx(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a===null||a===void 0?t:Oe({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}function hR(e,t,a,o,r,n,i){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(o,n,i):t.prototype&&t.prototype.isPureReactComponent?!Dc(a,o)||!Dc(r,n):!0}function gR(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&Ov.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Oe({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function qT(e){dm(e)}function $T(e){console.error(e)}function VT(e){dm(e)}function Sm(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function yR(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function zv(e,t,a){return a=An(a),a.tag=3,a.payload={element:null},a.callback=function(){Sm(e,t)},a}function ZT(e){return e=An(e),e.tag=3,e}function KT(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r==="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){yR(t,a,o)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch==="function"&&(e.callback=function(){yR(t,a,o),typeof r!=="function"&&(On===null?On=new Set([this]):On.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function gF(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&$i(t,a,r,!0),a=Ft.current,a!==null){switch(a.tag){case 31:case 13:case 19:return Vt===null?Em():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===gm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Jx(e,o,r)),!1;case 22:return a.flags|=65536,o===gm?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Jx(e,o,r)),!1}throw Error(M(435,a.tag))}return Jx(e,o,r),Em(),!1}if(le)return t=Ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==kv&&(e=Error(M(422),{cause:o}),Oc(to(e,a)))):(o!==kv&&(t=Error(M(423),{cause:o}),Oc(to(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=to(o,a),r=zv(e.stateNode,o,r),$x(e,r),Qe!==4&&(Qe=2)),!1;var n=Error(M(520),{cause:o});if(n=to(n,a),Tc===null?Tc=[n]:Tc.push(n),Qe!==4&&(Qe=2),t===null)return!0;o=to(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=zv(a.stateNode,o,e),$x(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(On===null||!On.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=ZT(r),KT(r,e,a,o),$x(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}function gt(e,t,a,o){t.child=e===null?sT(t,null,a,o):Ki(t,e.child,a,o)}function xR(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var i={};for(var s in o)s!=="ref"&&(i[s]=o[s])}else i=o;if(Vi(t),o=Ub(e,t,a,i,n,r),s=Gb(),e!==null&&!ut)return qb(e,t,r),Mr(e,t,r);return le&&s&&qm(t),t.flags|=1,gt(e,t,o,r),t.child}function vR(e,t,a,o,r){if(e===null){var n=a.type;if(typeof n==="function"&&!Ab(n)&&n.defaultProps===void 0&&a.compare===null)return t.tag=15,t.type=n,jT(e,t,n,o,r);return e=Vp(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!e0(e,r)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:Dc,a(i,o)&&e.ref===t.ref)return Mr(e,t,r)}return t.flags|=1,e=Rr(n,o),e.ref=t.ref,e.return=t,t.child=e}function jT(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(Dc(n,o)&&e.ref===t.ref)if(ut=!1,t.pendingProps=o=n,e0(e,r))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,Mr(e,t,r)}return Bv(e,t,a,o,r)}function XT(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return bR(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kp(t,n!==null?n.cachePool:null),n!==null?lR(t,n):Nv(),cT(t);else return o=t.lanes=536870912,bR(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(Kp(t,n.cachePool),lR(t,n),Pn(),t.memoizedState=null):(e!==null&&Kp(t,null),Nv(),Pn());return gt(e,t,r,a),t.child}function Ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bR(e,t,a,o,r){var n=Pb();return n=n===null?null:{parent:lt._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Kp(t,null),Nv(),cT(t),e!==null&&$i(e,t,o,!0),t.childLanes=r,null}function Yp(e,t){return t=Xm({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wR(e,t,a){return Ki(t,e.child,null,a),e=Yp(t,t.pendingProps),e.flags|=2,Aa(t),t.memoizedState=null,e}function yF(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(le){if(o.mode==="hidden")return e=Yp(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ic(null,e);if(Av(t),(e=He)?(e=X2(e,ao),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:Yo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},a=eT(e),a.return=t,t.child=a,Rt=t,He=null)):e=null,e===null)throw Un(t);return t.lanes=536870912,null}return Yp(t,o)}var n=e.memoizedState;if(n!==null){var i=n.dehydrated;if(Av(t),r)if(t.flags&256)t.flags&=-257,t=wR(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(M(558));else if(ut||$i(e,t,a,!1),r=(a&e.childLanes)!==0,ut||r){if(Gn.current===null){if(o=Pe,o!==null&&(i=k_(o,a),i!==0&&i!==n.retryLane))throw n.retryLane=i,es(e,i),va(o,e,i),Qb;Em()}t=wR(e,t,a)}else e=n.treeContext,He=oo(i.nextSibling),Rt=t,le=!0,Nn=null,ao=!1,e!==null&&aT(t,e),t=Yp(t,o),t.flags|=134221824;return t}return e=Rr(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ks(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(M(284));if(e===null||e.ref!==a)t.flags|=4194816}}function Bv(e,t,a,o,r){if(Vi(t),a=Ub(e,t,a,o,void 0,r),o=Gb(),e!==null&&!ut)return qb(e,t,r),Mr(e,t,r);return le&&o&&qm(t),t.flags|=1,gt(e,t,a,r),t.child}function SR(e,t,a,o,r,n){if(Vi(t),t.updateQueue=null,a=fT(t,o,a,r),dT(e),o=Gb(),e!==null&&!ut)return qb(e,t,n),Mr(e,t,n);return le&&o&&qm(t),t.flags|=1,gt(e,t,a,n),t.child}function LR(e,t,a,o,r){if(Vi(t),t.stateNode===null){var n=nl,i=a.contextType;typeof i==="object"&&i!==null&&(n=Pt(i)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ov,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},zb(t),i=a.contextType,n.context=typeof i==="object"&&i!==null?Pt(i):nl,n.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i==="function"&&(Zx(t,a,i,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(i=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&Ov.enqueueReplaceState(n,n.state,null),Cc(t,o,n,r),Lc(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var s=t.memoizedProps,l=Xi(a,s);n.props=l;var u=n.context,d=a.contextType;i=nl,typeof d==="object"&&d!==null&&(i=Pt(d));var m=a.getDerivedStateFromProps;d=typeof m==="function"||typeof n.getSnapshotBeforeUpdate==="function",s=t.pendingProps!==s,d||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s||u!==i)&&gR(t,n,o,i),Sn=!1;var p=t.memoizedState;n.state=p,Cc(t,o,n,r),Lc(),u=t.memoizedState,s||p!==u||Sn?(typeof m==="function"&&(Zx(t,a,m,o),u=t.memoizedState),(l=Sn||hR(t,a,l,o,p,u,i))?(d||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),n.props=o,n.state=u,n.context=i,o=l):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,Tv(e,t),i=t.memoizedProps,d=Xi(a,i),n.props=d,m=t.pendingProps,p=n.context,u=a.contextType,l=nl,typeof u==="object"&&u!==null&&(l=Pt(u)),s=a.getDerivedStateFromProps,(u=typeof s==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(i!==m||p!==l)&&gR(t,n,o,l),Sn=!1,p=t.memoizedState,n.state=p,Cc(t,o,n,r),Lc();var f=t.memoizedState;i!==m||p!==f||Sn||e!==null&&e.dependencies!==null&&hm(e.dependencies)?(typeof s==="function"&&(Zx(t,a,s,o),f=t.memoizedState),(d=Sn||hR(t,a,d,o,p,f,l)||e!==null&&e.dependencies!==null&&hm(e.dependencies))?(u||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,f,l),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,f,l)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),n.props=o,n.state=f,n.context=l,o=d):(typeof n.componentDidUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,Ks(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!=="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=Ki(t,e.child,null,r),t.child=Ki(t,null,a,r)):gt(e,t,a,r),t.memoizedState=n.state,e=t.child):e=Mr(e,t,r),e}function CR(e,t,a,o){return qi(),t.flags|=256,gt(e,t,a,o),t.child}function Hv(e){return{baseLanes:e,cachePool:rT()}}function Uv(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Da),e}function YT(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=e!==null&&e.memoizedState===null?!1:(zt.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(le){if(r?Dn(t):Pn(),(e=He)?(e=X2(e,ao),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:Yo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},a=eT(e),a.return=t,t.child=a,Rt=t,He=null)):e=null,e===null)throw Un(t);return f0(e)?t.lanes=32:t.lanes=536870912,null}if(n=o.children,o=o.fallback,r)return Pn(),r=t.mode,n=Xm({mode:"hidden",children:n},r),o=Fi(o,r,a,null),n.return=t,o.return=t,n.sibling=o,t.child=n,o=t.child,o.memoizedState=Hv(a),o.childLanes=Uv(e,i,a),t.memoizedState=Fv,Ic(null,o);return Dn(t),Jb(t,n)}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return xF(e,t,n,i,o,l,s,a)}if(r)return Pn(),r=o.fallback,n=t.mode,s=e.child,l=s.sibling,o=Rr(s,{mode:"hidden",children:o.children}),o.subtreeFlags=s.subtreeFlags&1206910976,l!==null?r=Rr(l,r):(r=Fi(r,n,a,null),r.flags|=2),r.return=t,o.return=t,o.sibling=r,t.child=o,Ic(null,o),o=t.child,r=e.child.memoizedState,r===null?r=Hv(a):(n=r.cachePool,n!==null?(s=lt._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=rT(),r={baseLanes:r.baseLanes|a,cachePool:n}),o.memoizedState=r,o.childLanes=Uv(e,i,a),t.memoizedState=Fv,Ic(e.child,o);return Dn(t),a=e.child,e=a.sibling,a=Rr(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a}function Jb(e,t){return t=Xm({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xm(e,t){return e=xa(22,e,null,t),e.lanes=0,e}function Ap(e,t,a){return Ki(t,e.child,null,a),e=Jb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xF(e,t,a,o,r,n,i,s){if(a){if(t.flags&256)return Dn(t),t.flags&=-257,Ap(e,t,s);if(t.memoizedState!==null)return Pn(),t.child=e.child,t.flags|=128,null;return Pn(),n=r.fallback,i=t.mode,r=Xm({mode:"visible",children:r.children},i),n=Fi(n,i,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,Ki(t,e.child,null,s),r=t.child,r.memoizedState=Hv(s),r.childLanes=Uv(e,o,s),t.memoizedState=Fv,Ic(null,r)}if(Dn(t),f0(n)){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,o!==""&&(r=Error(M(419)),r.stack="",r.digest=o,Oc({value:r,source:null,stack:null})),Ap(e,t,s)}if(ut||$i(e,t,s,!1),o=(s&e.childLanes)!==0,ut||o){if(Gn.current!==null)return Ap(e,t,s);if(o=Pe,o!==null&&(r=k_(o,s),r!==0&&r!==i.retryLane))throw i.retryLane=r,es(e,r),va(o,e,r),Qb;return mb(n)||Em(),Ap(e,t,s)}if(mb(n))return t.flags|=192,t.child=e.child,null;return e=i.treeContext,He=oo(n.nextSibling),Rt=t,le=!0,Nn=null,ao=!1,e!==null&&aT(t,e),t=Jb(t,r.children),t.flags|=134221824,t}function kR(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Zp(e.return,t,a)}function IR(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&xm(a)===null&&(t=e),e=e.sibling}return t}function Mp(e,t,a,o,r,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=a,i.tailMode=r,i.treeForkCount=n)}function Kx(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Gv(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var i=zt.current;if(t.flags&128)return Bc(t,i),null;var s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,Bc(t,i),r==="backwards"&&e!==null?(Kx(e),gt(e,t,o,a),Kx(e)):gt(e,t,o,a),o=le?Pc:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kR(e,a,t);else if(e.tag===19)kR(e,a,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(r){case"backwards":a=IR(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null,Kx(t)),Mp(t,!0,r,null,n,o);break;case"unstable_legacy-backwards":a=null,r=t.child;for(t.child=null;r!==null;){if(e=r.alternate,e!==null&&xm(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Mp(t,!0,a,null,n,o);break;case"together":Mp(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=IR(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Mp(t,!1,r,a,n,o)}return t.child}function RR(e,t,a){var o=t.pendingProps;return In(t,t.type,o.value),gt(e,t,o.children,a),t.child}function Mr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$n|=t.lanes,(a&t.childLanes)===0)if(e!==null){if($i(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){e=t.child,a=Rr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Rr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function e0(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&hm(e)?!0:!1}function vF(e,t,a){switch(t.tag){case 3:sm(t,t.stateNode.containerInfo),In(t,lt,e.memoizedState.cache),qi();break;case 27:case 5:hv(t);break;case 4:sm(t,t.stateNode.containerInfo);break;case 10:In(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Av(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return Dn(t),t.flags|=128,null;o=$i(e,t,a,!1);var r=t.child.childLanes;if(o||(a&r)!==0)return YT(e,t,a);return Dn(t),e=Mr(e,t,a),e!==null?e.sibling:null}Dn(t);break;case 19:if(t.flags&128)return Gv(e,t,a);if(r=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||($i(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return Gv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Bc(t,zt.current),o)break;else return null;case 22:return t.lanes=0,XT(e,t,a,t.pendingProps);case 24:In(t,lt,e.memoizedState.cache)}return Mr(e,t,a)}function WT(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!e0(e,a)&&(t.flags&128)===0)return ut=!1,vF(e,t,a);ut=(e.flags&131072)!==0?!0:!1}else ut=!1,le&&(t.flags&1048576)!==0&&tT(t,Pc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Di(t.elementType),t.type=e,typeof e==="function")Ab(e)?(o=Xi(e,o),t.tag=1,t=LR(null,t,e,o,a)):(t.tag=0,t=Bv(null,t,e,o,a));else{if(e!==void 0&&e!==null){var r=e.$$typeof;if(r===vb){t.tag=11,t=xR(null,t,e,o,a);break e}else if(r===bb){t.tag=14,t=vR(null,t,e,o,a);break e}else if(r===jo){t.tag=10,t.type=e,t=RR(null,t,a);break e}}throw t=pv(e)||e,Error(M(306,t,""))}}return t;case 0:return Bv(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=Xi(o,t.pendingProps),LR(e,t,o,r,a);case 3:e:{if(sm(t,t.stateNode.containerInfo),e===null)throw Error(M(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,Tv(e,t),Cc(t,o,null,a);var i=t.memoizedState;if(o=i.cache,In(t,lt,o),o!==n.cache&&Rv(t,[lt],a,!0),Lc(),o=i.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=CR(e,t,o,a);break e}else if(o!==r){r=to(Error(M(424)),t),Oc(r),t=CR(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}He=oo(e.firstChild),Rt=t,le=!0,Nn=null,ao=!0,a=sT(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(qi(),o===r){t=Mr(e,t,a);break e}gt(e,t,o,a)}t=t.child}return t;case 26:return Ks(e,t),e===null?(a=QR(t.type,null,t.pendingProps,null))?t.memoizedState=a:le||(t.stateNode=H2(t.type,t.pendingProps,En.current,t)):t.memoizedState=QR(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hv(t),e===null&&le&&(o=t.stateNode=Y2(t.type,t.pendingProps,En.current),Rt=t,ao=!0,r=He,Zn(t.type)?(hb=r,He=oo(o.firstChild)):He=r),gt(e,t,t.pendingProps.children,a),Ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:if(e===null&&le){if(r=o=He)o=d6(o,t.type,t.pendingProps,ao),o!==null?(t.stateNode=o,Rt=t,He=oo(o.firstChild),ao=!1,r=!0):r=!1;r||Un(t)}return hv(t),r=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,o=n.children,db(r,n)?o=null:i!==null&&db(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=Ub(e,t,lF,null,null,a),Tl._currentValue=r),Ks(e,t),gt(e,t,o,a),t.child;case 6:if(e===null&&le){if(e=a=He)a=f6(a,t.pendingProps,ao),a!==null?(t.stateNode=a,Rt=t,He=null,e=!0):e=!1;e||Un(t)}return null;case 13:return YT(e,t,a);case 4:return sm(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ki(t,null,o,a):gt(e,t,o,a),t.child;case 11:return xR(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,Ks(e,t),gt(e,t,o,a),t.child;case 8:return gt(e,t,t.pendingProps.children,a),t.child;case 12:return gt(e,t,t.pendingProps.children,a),t.child;case 10:return RR(e,t,a);case 9:return r=t.type._context,o=t.pendingProps.children,Vi(t),r=Pt(r),o=o(r),t.flags|=1,gt(e,t,o,a),t.child;case 14:return vR(e,t,t.type,t.pendingProps,a);case 15:return jT(e,t,t.type,t.pendingProps,a);case 19:return Gv(e,t,a);case 31:return yF(e,t,a);case 22:return XT(e,t,a,t.pendingProps);case 24:return Vi(t),o=Pt(lt),e===null?(r=Pb(),r===null&&(r=Pe,n=Db(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},zb(t),In(t,lt,r)):((e.lanes&a)!==0&&(Tv(e,t),Cc(t,null,null,a),Lc()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),In(t,lt,o)):(o=n.cache,In(t,lt,o),o!==r.cache&&Rv(t,[lt],a,!0))),gt(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:le&&qm(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:Ks(e,t),gt(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(M(156,t.tag))}function Cr(e){e.flags|=4}function jx(e,t,a,o,r){var n;if(n=(e.mode&32)!==0)n=a===null?t_(t,o):t_(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet);if(n){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(I2())e.flags|=8192;else throw Ui=gm,Ob}else e.flags&=-16777217}function _R(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!eE(t))if(I2())e.flags|=8192;else throw Ui=gm,Ob}function Dp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?S_():536870912,e.lanes|=t,Ll|=t)}function ic(e,t){if(!le)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:t=e.tail;for(a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&1206910976,o|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function bF(e,t,a){var o=t.pendingProps;switch(Mb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),_r(lt),vl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Vs(t)?Cr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qx());return Fe(t),null;case 26:var{type:r,memoizedState:n}=t;return e===null?(Cr(t),n!==null?(Fe(t),_R(t,n)):(Fe(t),jx(t,r,null,o,a))):n?n!==e.memoizedState?(Cr(t),Fe(t),_R(t,n)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Cr(t),Fe(t),jx(t,r,e,o,a)),null;case 27:if(lm(t),a=En.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Cr(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return Fe(t),t.subtreeFlags&=-33554433,null}e=Qo.current,Vs(t)?tR(t,e):(e=Y2(r,o,a),t.stateNode=e,Cr(t))}return Fe(t),t.subtreeFlags&=-33554433,null;case 5:if(lm(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Cr(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return Fe(t),t.subtreeFlags&=-33554433,null}if(n=Qo.current,Vs(t))tR(t,n);else{var i=Gc(En.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?i.createElement(r,{is:o.is}):i.createElement(r)}}n[Dt]=t,n[wa]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;e:switch(Bt(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Cr(t)}}return Fe(t),t.subtreeFlags&=-33554433,jx(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Cr(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error(M(166));if(e=En.current,Vs(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Rt,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Dt]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||B2(e.nodeValue,a)?!0:!1,e||Un(t,!0)}else e=Gc(e).createTextNode(o),e[Dt]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Vs(t),a!==null){if(e===null){if(!o)throw Error(M(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(557));e[Dt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=qx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Aa(t),t;return Aa(t),null}if((t.flags&128)!==0)throw Error(M(558))}return Fe(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Vs(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(M(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(M(317));r[Dt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),r=!1}else r=qx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r){if(t.flags&256)return Aa(t),t;return Aa(t),null}}if(Aa(t),(t.flags&128)!==0)return t.lanes=a,t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Dp(t,t.updateQueue),Fe(t),null;case 4:return vl(),e===null&&u0(t.stateNode.containerInfo),t.flags|=67108864,Fe(t),null;case 10:return _r(t.type),Fe(t),null;case 19:if(Fb(t),o=t.memoizedState,o===null)return Fe(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)ic(o,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=xm(e),n!==null){t.flags|=128,ic(o,!1),e=n.updateQueue,t.updateQueue=e,Dp(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)J_(a,e),a=a.sibling;return Bc(t,zt.current&1|2),le&&kr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Pa()>_m&&(t.flags|=128,r=!0,ic(o,!1),t.lanes=4194304)}else{if(!r)if(e=xm(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Dp(t,e),ic(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!n.alternate&&!le)return Fe(t),null}else 2*Pa()-o.renderingStartTime>_m&&a!==536870912&&(t.flags|=128,r=!0,ic(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Pa(),e.sibling=null,n=zt.current,n=r?n&1|2:n&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||le?Bc(t,n):(a=n,Ue(Ft,t),Ue(zt,a),Vt===null&&(Vt=t)),le&&kr(t,o.treeForkCount),e}return Fe(t),null;case 22:case 23:return Aa(t),Bb(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Dp(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ot(Hi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_r(lt),Fe(t),null;case 25:return null;case 30:return t.flags|=33554432,Fe(t),null}throw Error(M(156,t.tag))}function wF(e,t){switch(Mb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _r(lt),vl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return lm(t),null;case 31:if(t.memoizedState!==null){if(Aa(t),t.alternate===null)throw Error(M(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fb(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return vl(),null;case 10:return _r(t.type),null;case 22:case 23:return Aa(t),Bb(),e!==null&&Ot(Hi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _r(lt),null;case 25:return null;default:return null}}function QT(e,t){switch(Mb(t),t.tag){case 3:_r(lt),vl();break;case 26:case 27:case 5:lm(t);break;case 4:vl();break;case 31:t.memoizedState!==null&&Aa(t);break;case 13:Aa(t);break;case 19:Fb(t);break;case 10:_r(t.type);break;case 22:case 23:Aa(t),Bb(),e!==null&&Ot(Hi);break;case 24:_r(lt)}}function td(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var{create:n,inst:i}=a;o=n(),i.destroy=o}a=a.next}while(a!==r)}}catch(s){Ee(t,t.return,s)}}function qn(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var i=o.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,r=t;var l=a,u=s;try{u()}catch(d){Ee(r,l,d)}}}o=o.next}while(o!==n)}}catch(d){Ee(t,t.return,d)}}function JT(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{uT(t,a)}catch(o){Ee(e,e.return,o)}}}function e2(e,t,a){a.props=Xi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Ee(e,t,o)}}function Zo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var r=e.stateNode,n=Er(e.memoizedProps,r);if(r.ref===null||r.ref.name!==n)r.ref=$2(n);o=r.ref;break;case 7:if(e.stateNode===null){var i=new Ha(e);ba(e.child,!1,u6,i,void 0,void 0),e.stateNode=i}o=e.stateNode;break;default:o=e.stateNode}typeof a==="function"?e.refCleanup=a(o):a.current=o}}catch(s){Ee(e,t,s)}}function Mt(e,t){var{ref:a,refCleanup:o}=e;if(a!==null)if(typeof o==="function")try{o()}catch(r){Ee(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(r){Ee(e,t,r)}else a.current=null}function Lm(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)j2(e.stateNode,t[a])}function TR(e){for(var t=e.return;t!==null;){if(a0(t)&&j2(e.stateNode,t.stateNode),t0(t))break;t=t.return}}function Rc(e){for(var t=e.return;t!==null;){if(a0(t)&&c6(e.stateNode,t.stateNode),t0(t))break;t=t.return}}function t0(e){return e.tag===5||e.tag===3||e.tag===27}function a0(e){return e&&e.tag===7&&e.stateNode!==null}function qv(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){Ee(e,e.return,r)}}function Xx(e,t,a){try{var o=e.stateNode;VF(o,e.type,a,t),o[wa]=t}catch(r){Ee(e,e.return,r)}}function t2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zn(e.type)||e.tag===4}function Yx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t2(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zn(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $v(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(r),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Xo)),Lm(e,o),ve=!0;else if(r!==4&&(r===27&&(Lm(e,o),o=null,Zn(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for($v(e,t,a,o),e=e.sibling;e!==null;)$v(e,t,a,o),e=e.sibling}function Cm(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?a.insertBefore(r,t):a.appendChild(r),Lm(e,o),ve=!0;else if(r!==4&&(r===27&&(Lm(e,o),o=null,Zn(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(Cm(e,t,a,o),e=e.sibling;e!==null;)Cm(e,t,a,o),e=e.sibling}function a2(e){var{stateNode:t,memoizedProps:a}=e;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Bt(t,o,a),t[Dt]=e,t[wa]=a}catch(n){Ee(e,e.return,n)}}function ER(e){if(e.tag===30||(e.subtreeFlags&33554432)!==0)km=!0}function NR(){var e=Ko;return Ko=null,e}function Pl(e,t,a,o,r){return ya=0,o2(e.child,t,a,o,r)}function o2(e,t,a,o,r){for(var n=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(o!==null){var s=fb(i);o.push(s),s.view&&(n=!0)}else n||fb(i).view&&(n=!0);km=!0,U2(i,ya===0?t:t+"_"+ya,a),ya++}else if(e.tag!==22||e.memoizedState===null)e.tag===30&&r||o2(e.child,t,a,o,r)&&(n=!0);e=e.sibling}return n}function er(e,t){for(;e!==null;){if(e.tag===5)G2(e.stateNode,e.memoizedProps);else if(e.tag!==22||e.memoizedState===null)e.tag===30&&t||er(e.child,t);e=e.sibling}}function Wp(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(Wp(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(M(544));var a=t.name;t=Or(t.default,t.share),t!=="none"&&(Pl(e,a,t,null,!1)||er(e.child,!1))}}e=e.sibling}}function Vv(e,t){if(e.tag===30){var{stateNode:a,memoizedProps:o}=e,r=Er(o,a),n=Or(o.default,a.paired?o.share:o.enter);n!=="none"?Pl(e,r,n,null,!1)?(Wp(e),a.paired||t||Cl(e,o.onEnter)):er(e.child,!1):Wp(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Vv(e,t),e=e.sibling;else Wp(e)}function Zv(e){if(Ma!==null&&Ma.size!==0){var t=Ma;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var r=t.get(o);if(r!==void 0){var n=Or(a.default,a.share);if(n!=="none"&&(Pl(e,o,n,null,!1)?(n=e.stateNode,r.paired=n,n.paired=r,Cl(e,a.onShare)):er(e.child,!1)),t.delete(o),t.size===0)break}}}Zv(e)}e=e.sibling}}}function Kv(e){if(e.tag===30){var t=e.memoizedProps,a=Er(t,e.stateNode),o=Ma!==null?Ma.get(a):void 0,r=Or(t.default,o!==void 0?t.share:t.exit);r!=="none"&&(Pl(e,a,r,null,!1)?o!==void 0?(r=e.stateNode,o.paired=r,r.paired=o,Ma.delete(a),Cl(e,t.onShare)):Cl(e,t.onExit):er(e.child,!1)),Ma!==null&&Zv(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Kv(e),e=e.sibling;else Ma!==null&&Zv(e)}function r2(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Er(t,e.stateNode);t=Or(t.default,t.update),e.flags&=-5,t!=="none"&&Pl(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&r2(e);e=e.sibling}}function jv(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,er(e.child,!1))}jv(e)}e=e.sibling}}function Qp(e){if(e.tag===30)e.stateNode.paired=null,er(e.child,!1),jv(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Qp(e),e=e.sibling;else jv(e)}function n2(e){for(e=e.child;e!==null;)e.tag===30?er(e.child,!1):(e.subtreeFlags&33554432)!==0&&n2(e),e=e.sibling}function o0(e,t,a,o,r,n,i){for(var s=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(n!==null&&ya<n.length){var u=n[ya],d=fb(l);if(u.view||d.view)s=!0;var m;if(m=(e.flags&4)===0)if(d.clip)m=!0;else{m=u.rect;var p=d.rect;m=m.y!==p.y||m.x!==p.x||m.height!==p.height||m.width!==p.width}m&&(e.flags|=4),d.abs?d=!u.abs:(u=u.rect,d=d.rect,d=u.height!==d.height||u.width!==d.width),d&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&U2(l,ya===0?a:a+"_"+ya,r),s&&(e.flags&4)!==0||(Ko===null&&(Ko=[]),Ko.push(l,ya===0?o:o+"_"+ya,t.memoizedProps)),ya++}else if(t.tag!==22||t.memoizedState===null)t.tag===30&&i?e.flags|=t.flags&32:o0(e,t.child,a,o,r,n,i)&&(s=!0);t=t.sibling}return s}function i2(e,t){for(e=e.child;e!==null;){if(e.tag===30){var{memoizedProps:a,stateNode:o}=e,r=Er(a,o),n=Or(a.default,a.update);if(t){o=o.clones;var i=o===null?null:o.map(WF)}else i=e.memoizedState,e.memoizedState=null;o=e;var s=e.child;ya=0,r=o0(o,s,r,r,n,i,!1),(e.flags&4)!==0&&r&&(t||Cl(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&i2(e,t);e=e.sibling}}function SF(e,t,a){if(e=e.containerInfo,ub=El,e=V_(e),Tb(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var{anchorOffset:n,focusNode:i}=r;r=r.focusOffset;try{o.nodeType,i.nodeType}catch(y){o=null;break e}var s=0,l=-1,u=-1,d=0,m=0,p=e,f=null;t:for(;;){for(var g;;){if(p!==o||n!==0&&p.nodeType!==3||(l=s+n),p!==i||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(g=p.firstChild)===null)break;f=p,p=g}for(;;){if(p===e)break t;if(f===o&&++d===n&&(l=s),f===i&&++m===r&&(u=s),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}o=l===-1||u===-1?null:{start:l,end:u}}else o=null}o=o||{start:0,end:0}}else o=null;cb={focusedElem:e,selectionRange:o},El=!1,a=(a&335544064)===a,kt=t;for(t=a?9270:1024;kt!==null;){if(e=kt,a&&(o=e.deletions,o!==null))for(n=0;n<o.length;n++)a&&Kv(o[n]);if(e.alternate===null&&(e.flags&2)!==0)a&&ER(e),Pp(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&Kv(o),Pp(a);continue}else if(o!==null&&o.memoizedState!==null){a&&ER(e),Pp(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,kt=o):(a&&r2(e),Pp(a))}}Ma=null}function Pp(e){for(;kt!==null;){var t=kt,a=e,o=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&o!==null){a=void 0,r=o.memoizedProps,o=o.memoizedState;var n=t.stateNode;try{var i=Xi(t.type,r);a=n.getSnapshotBeforeUpdate(i,o),n.__reactInternalSnapshotBeforeUpdate=a}catch(s){Ee(t,t.return,s)}}break;case 3:if((r&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)pb(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":pb(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=Er(o.memoizedProps,o.stateNode),r=t.memoizedProps,r=Or(r.default,r.update),r!=="none"&&Pl(o,a,r,o.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(M(163))}if(o=t.sibling,o!==null){o.return=t.return,kt=o;break}kt=t.return}}function s2(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Vo(e,a),o&4&&td(5,a);break;case 1:if(Vo(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Ee(a,a.return,i)}else{var r=Xi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Ee(a,a.return,i)}}o&64&&JT(a),o&512&&Zo(a,a.return);break;case 3:if(Vo(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{uT(e,t)}catch(i){Ee(a,a.return,i)}}break;case 27:t===null&&o&4&&a2(a);case 26:case 5:Vo(e,a),t===null&&o&4&&qv(a),o&512&&Zo(a,a.return);break;case 12:Vo(e,a);break;case 31:Vo(e,a),o&4&&d2(e,a);break;case 13:Vo(e,a),o&4&&f2(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=DF.bind(null,a),p6(e,a))));break;case 22:if(o=a.memoizedState!==null||Ct,!o){var n=t!==null&&t.memoizedState!==null||Ce;t=Ct,r=Ce,Ct=o,(Ce=n)&&!r?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),bo(e,a,o)):Vo(e,a),Ct=t,Ce=r}break;case 30:Vo(e,a),o&512&&Zo(a,a.return);break;case 7:o&512&&Zo(a,a.return);default:Vo(e,a)}}function Yv(e,t){for(e=e.child;e!==null;)l2(e,t),e=e.sibling}function l2(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty==="function"?o.setProperty("display","none","important"):o.display="none"}else{var r=e.stateNode,n=e.memoizedProps.style,i=n!==void 0&&n!==null&&n.hasOwnProperty("display")?n.display:null;r.style.display=i==null||typeof i==="boolean"?"":(""+i).trim()}}catch(l){Ee(e,e.return,l)}Wv(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ve=!0}catch(l){Ee(e,e.return,l)}break;case 18:try{var s=e.stateNode;t?ZR(s,!0):ZR(e.stateNode,!1)}catch(l){Ee(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&Yv(e,t);break;default:Yv(e,t)}}function Wv(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:l2(a,o);break e;case 22:a.memoizedState===null&&Wv(a,o);break e;default:Wv(a,o)}}e=e.sibling}}function u2(e){var t=e.alternate;t!==null&&(e.alternate=null,u2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zm(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}function vo(e,t,a){for(a=a.child;a!==null;)c2(e,t,a),a=a.sibling}function c2(e,t,a){if(Oa&&typeof Oa.onCommitFiberUnmount==="function")try{Oa.onCommitFiberUnmount(jc,a)}catch(n){}switch(a.tag){case 26:Ce||Mt(a,t),vo(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Ce&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ce||Mt(a,t),Rc(a);var o=Ze,r=ha;Zn(a.type)&&(Ze=a.stateNode,ha=!1),vo(e,t,a),W2(a.stateNode,a.type,a.memoizedProps),Ze=o,ha=r;break;case 5:Ce||Mt(a,t),Rc(a);case 6:if(a.tag===6&&Rc(a),o=Ze,r=ha,Ze=null,vo(e,t,a),Ze=o,ha=r,Ze!==null)if(ha)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(a.stateNode),ve=!0}catch(n){Ee(a,t,n)}else try{Ze.removeChild(a.stateNode),ve=!0}catch(n){Ee(a,t,n)}break;case 18:Ze!==null&&(ha?(e=Ze,VR(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nl(e)):VR(Ze,a.stateNode));break;case 4:o=Ze,r=ha,Ze=a.stateNode.containerInfo,ha=!0,vo(e,t,a),Ze=o,ha=r;break;case 0:case 11:case 14:case 15:qn(2,a,t),Ce||qn(4,a,t),vo(e,t,a);break;case 1:Ce||(Mt(a,t),o=a.stateNode,typeof o.componentWillUnmount==="function"&&e2(a,t,o)),vo(e,t,a);break;case 21:vo(e,t,a);break;case 22:Ce=(o=Ce)||a.memoizedState!==null,vo(e,t,a),Ce=o;break;case 30:Mt(a,t),vo(e,t,a);break;case 7:Ce||Mt(a,t),vo(e,t,a);break;default:vo(e,t,a)}}function d2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nl(e)}catch(a){Ee(t,t.return,a)}}}function f2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nl(e)}catch(a){Ee(t,t.return,a)}}function LF(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new AR),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new AR),t;default:throw Error(M(435,e.tag))}}function Op(e,t){var a=LF(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=PF.bind(null,e,o);o.then(r,r)}})}function Qt(e,t,a){var o=t.deletions;if(o!==null)for(var r=0;r<o.length;r++){var n=o[r],i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Zn(l.type)){Ze=l.stateNode,ha=!1;break e}break;case 5:Ze=l.stateNode,ha=!1;break e;case 3:case 4:Ze=l.stateNode.containerInfo,ha=!0;break e}l=l.return}if(Ze===null)throw Error(M(160));c2(i,s,n),Ze=null,ha=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)p2(t,e,a),t=t.sibling}function p2(e,t,a){var{alternate:o,flags:r}=e;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var n=0;n<o.length;n++){var i=o[n];i.ref.impl=i.nextImpl}Qt(t,e,a),Jt(e),r&4&&(qn(3,e,e.return),td(3,e),qn(5,e,e.return));break;case 1:Qt(t,e,a),Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),r&64&&Ct&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(n=wo,Qt(t,e,a),Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),r&4)if(r=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(Ct)e.stateNode=H2(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,r=n.ownerDocument||n;t:switch(t){case"title":if(o=r.getElementsByTagName("title")[0],!o||o[Wc]||o[Dt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))o=r.createElement(t),r.head.insertBefore(o,r.querySelector("head > title"));Bt(o,t,a),o[Dt]=e,It(o),t=o;break e;case"link":if(n=e_("link","href",r).get(t+(a.href||""))){for(i=0;i<n.length;i++)if(o=n[i],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){n.splice(i,1);break t}}o=r.createElement(t),Bt(o,t,a),r.head.appendChild(o);break;case"meta":if(n=e_("meta","content",r).get(t+(a.content||""))){for(i=0;i<n.length;i++)if(o=n[i],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){n.splice(i,1);break t}}o=r.createElement(t),Bt(o,t,a),r.head.appendChild(o);break;default:throw Error(M(468,t))}o[Dt]=e,It(o),t=o}e.stateNode=t}else Ct||gb(n,e.type,e.stateNode);else e.stateNode=JR(n,a,e.memoizedProps);else r!==a?(r===null?(t=o.stateNode,t===null||Ce||t.parentNode.removeChild(t)):r.count--,a===null?Ct||gb(n,e.type,e.stateNode):JR(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xx(e,e.memoizedProps,o.memoizedProps);break;case 27:Qt(t,e,a),Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),o!==null&&r&4&&Xx(e,e.memoizedProps,o.memoizedProps);break;case 5:if(n=qo,qo=!1,Qt(t,e,a),qo=n,Jt(e),r&512&&(Ce||o===null||Mt(o,o.return)),e.flags&32){t=e.stateNode;try{wl(t,""),ve=!0}catch(d){Ee(e,e.return,d)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,Xx(e,t,o!==null?o.memoizedProps:t)),r&1024&&(Wx=!0);break;case 6:if(Qt(t,e,a),Jt(e),r&4){if(e.stateNode===null)throw Error(M(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,ve=!0}catch(d){Ee(e,e.return,d)}}break;case 3:if(ve=!1,am=null,n=wo,wo=qc(t.containerInfo),Qt(t,e,a),wo=n,Jt(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Nl(t.containerInfo)}catch(d){Ee(e,e.return,d)}Wx&&(Wx=!1,m2(e)),ve=!1;break;case 4:r=qo,qo=Ct,o=BI(),n=wo,wo=qc(e.stateNode.containerInfo),Qt(t,e,a),Jt(e),wo=n,ve&&hc&&(Im=!0),ve=o,qo=r;break;case 12:Qt(t,e,a),Jt(e);break;case 31:Qt(t,e,a),Jt(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Op(e,t)));break;case 13:Qt(t,e,a),Jt(e),e.child.flags&8192&&e.memoizedState!==null!==(o!==null&&o.memoizedState!==null)&&(Ym=Pa()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Op(e,t)));break;case 22:n=e.memoizedState!==null,i=o!==null&&o.memoizedState!==null;var s=Ct,l=Ce,u=qo;Ct=s||n,qo=u||n,Ce=l||i,Qt(t,e,a),Ce=l,qo=u,Ct=s,Jt(e),r&8192&&(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,!n||o===null||i||Ct||Ce||(t=i||Ce,a=Ct,o=Ce,Ct=n||Ct,Ce=t,bn(e,2),Ct=a,Ce=o),!n&&qo||Yv(e,n)),r&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,Op(e,a))));break;case 19:Qt(t,e,a),Jt(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Op(e,t)));break;case 30:r&512&&(Ce||o===null||Mt(o,o.return)),r=BI(),n=hc,i=(a&335544064)===a,s=e.memoizedProps,hc=i&&Or(s.default,s.update)!=="none",Qt(t,e,a),Jt(e),i&&o!==null&&ve&&(e.flags|=4),hc=n,ve=r;break;case 21:break;case 7:r&512&&(Ce||o===null||Mt(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:Qt(t,e,a),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(t2(o)){a=o;break}o=o.return}o=null;for(var r=e.return;r!==null;){if(a0(r)){var n=r.stateNode;o===null?o=[n]:o.push(n)}if(t0(r))break;r=r.return}var i=o;if(a==null)throw Error(M(160));switch(a.tag){case 27:var s=a.stateNode,l=Yx(e);Cm(e,l,s,i);break;case 5:var u=a.stateNode;a.flags&32&&(wl(u,""),a.flags&=-33);var d=Yx(e);Cm(e,d,u,i);break;case 3:case 4:var m=a.stateNode.containerInfo,p=Yx(e);$v(e,p,m,i);break;default:throw Error(M(161))}}catch(f){Ee(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function m2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;m2(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,El=!0,t.reset(),El=!1),e=e.sibling}}function Zs(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)h2(t,e),t=t.sibling;else i2(t,!1)}function h2(e,t){var a=e.alternate;if(a===null)Vv(e,!1);else switch(e.tag){case 3:if(Xv=$o=!1,NR(),Zs(t,e),!$o&&!Im){if(e=Ko,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var r=e[o+1];G2(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Xv=!0}Ko=null;break;case 5:Zs(t,e);break;case 4:o=$o,$o=!1,Zs(t,e),$o&&(Im=!0),$o=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?Vv(e,!1):Zs(t,e));break;case 30:o=$o,r=NR(),$o=!1,Zs(t,e),$o&&(e.flags|=4);var{memoizedProps:n,stateNode:i}=e;t=Er(n,i),i=Er(a.memoizedProps,i);var s=Or(n.default,n.update);s==="none"?t=!1:(n=a.memoizedState,a.memoizedState=null,a=e.child,ya=0,t=o0(e,a,t,i,s,n,!0),ya!==(n===null?0:n.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Cl(e,e.memoizedProps.onUpdate),Ko=r):r!==null&&(r.push.apply(r,Ko),Ko=r),$o=(e.flags&32)!==0?!0:o;break;default:Zs(t,e)}}function Vo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)s2(e,t.alternate,t),t=t.sibling}function bn(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:qn(4,a,a.return),bn(a,o);break;case 1:Mt(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount==="function"&&e2(a,a.return,r),bn(a,o);break;case 27:(o&2)!==0&&W2(a.stateNode,a.type,a.memoizedProps);case 5:Mt(a,a.return),a.tag!==5&&a.tag!==27||Rc(a),bn(a,o);break;case 6:Rc(a);break;case 26:Mt(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||Ce||r.parentNode.removeChild(r),bn(a,o);break;case 22:a.memoizedState===null&&bn(a,o);break;case 30:Mt(a,a.return),bn(a,o);break;case 7:Mt(a,a.return);default:bn(a,o)}e=e.sibling}}function bo(e,t,a){a=(t.subtreeFlags&8772)!==0?a:a&-2;for(t=t.child;t!==null;){var o=t.alternate,r=e,n=t,i=n.flags,s=(a&1)!==0;switch(n.tag){case 0:case 11:case 15:bo(r,n,a),td(4,n);break;case 1:if(bo(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount==="function")try{r.componentDidMount()}catch(d){Ee(o,o.return,d)}if(o=n,r=o.updateQueue,r!==null){var l=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)lT(u[r],l)}catch(d){Ee(o,o.return,d)}}s&&i&64&&JT(n),Zo(n,n.return);break;case 27:(a&2)!==0&&a2(n);case 5:n.tag!==5&&n.tag!==27||TR(n),bo(r,n,a),s&&o===null&&i&4&&qv(n),Zo(n,n.return);break;case 6:TR(n);break;case 26:l=n.stateNode,n.memoizedState!==null||l===null||Ct||gb(qc(l.ownerDocument),n.type,l),bo(r,n,a),s&&o===null&&i&4&&qv(n),Zo(n,n.return);break;case 12:bo(r,n,a);break;case 31:bo(r,n,a),s&&i&4&&d2(r,n);break;case 13:bo(r,n,a),s&&i&4&&f2(r,n);break;case 22:n.memoizedState===null&&bo(r,n,a),Zo(n,n.return);break;case 30:bo(r,n,a),Zo(n,n.return);break;case 7:Zo(n,n.return);default:bo(r,n,a)}t=t.sibling}}function r0(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Jc(a))}function n0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jc(e))}function Ya(e,t,a,o){var r=(a&335544064)===a;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)g2(e,t,a,o),t=t.sibling;else r&&n2(t)}function g2(e,t,a,o){var r=(a&335544064)===a;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Qp(t);var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ya(e,t,a,o),n&2048&&td(9,t);break;case 1:Ya(e,t,a,o);break;case 3:Ya(e,t,a,o),r&&Xv&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),n&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(t.refCount++,n!=null&&Jc(n)));break;case 12:if(n&2048){Ya(e,t,a,o),n=t.stateNode;try{var i=t.memoizedProps,s=i.id,l=i.onPostCommit;typeof l==="function"&&l(s,t.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(u){Ee(t,t.return,u)}}else Ya(e,t,a,o);break;case 31:Ya(e,t,a,o);break;case 13:Ya(e,t,a,o);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?(r&&s!==null&&s.memoizedState===null&&Qp(s),i._visibility&2?Ya(e,t,a,o):_c(e,t)):(r&&s!==null&&s.memoizedState!==null&&Qp(t),i._visibility&2?Ya(e,t,a,o):(i._visibility|=2,js(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),n&2048&&r0(s,t);break;case 24:Ya(e,t,a,o),n&2048&&n0(t.alternate,t);break;case 30:r&&(n=t.alternate,n!==null&&(er(n.child,!0),er(t.child,!0))),Ya(e,t,a,o);break;default:Ya(e,t,a,o)}}function js(e,t,a,o,r){r=r&&((t.subtreeFlags&10256)!==0||!1);for(t=t.child;t!==null;){var n=e,i=t,s=a,l=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:js(n,i,s,l,r),td(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?js(n,i,s,l,r):_c(n,i):(d._visibility|=2,js(n,i,s,l,r)),r&&u&2048&&r0(i.alternate,i);break;case 24:js(n,i,s,l,r),r&&u&2048&&n0(i.alternate,i);break;default:js(n,i,s,l,r)}t=t.sibling}}function _c(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:_c(a,o),r&2048&&r0(o.alternate,o);break;case 24:_c(a,o),r&2048&&n0(o.alternate,o);break;default:_c(a,o)}t=t.sibling}}function Ni(e,t,a){if(e.subtreeFlags&Pi)for(e=e.child;e!==null;)y2(e,t,a),e=e.sibling}function y2(e,t,a){switch(e.tag){case 26:Ni(e,t,a),e.flags&Pi&&(e.memoizedState!==null?R6(a,wo,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&a_(a,e)));break;case 5:Ni(e,t,a),e.flags&Pi&&(e=e.stateNode,(t&335544128)===t&&a_(a,e));break;case 3:case 4:var o=wo;wo=qc(e.stateNode.containerInfo),Ni(e,t,a),wo=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Pi,Pi=16777216,Ni(e,t,a),Pi=o):Ni(e,t,a));break;case 30:if((e.flags&Pi)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var r=e.stateNode;r.paired=null,Ma===null&&(Ma=new Map),Ma.set(o,r)}Ni(e,t,a);break;default:Ni(e,t,a)}}function x2(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 sc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];kt=o,b2(o,e)}x2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)v2(e),e=e.sibling}function v2(e){switch(e.tag){case 0:case 11:case 15:sc(e),e.flags&2048&&qn(9,e,e.return);break;case 3:sc(e);break;case 12:sc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Jp(e)):sc(e);break;default:sc(e)}}function Jp(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];kt=o,b2(o,e)}x2(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Jp(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Jp(t));break;default:Jp(t)}e=e.sibling}}function b2(e,t){for(;kt!==null;){var a=kt;switch(a.tag){case 0:case 11:case 15:qn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Jc(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,kt=o;else e:for(a=e;kt!==null;){o=kt;var{sibling:r,return:n}=o;if(u2(o),o===a){kt=null;break e}if(r!==null){r.return=n,kt=r;break e}kt=n}}}function Ba(){return(we&2)!==0&&ge!==0?ge&-ge:ae.T!==null?l0():I_()}function L2(){if(Da===0)if((ge&536870912)===0||le){var e=kp;kp<<=1,(kp&3932160)===0&&(kp=262144),Da=e}else Da=536870912;return e=Ft.current,e!==null&&(e.flags|=32),Da}function Cl(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=$2(Er(e.memoizedProps,a))),yl===null&&(yl=[]),yl.push(t.bind(null,o))}}function va(e,t,a){if(e===Pe&&(_e===2||_e===9)||e.cancelPendingCommit!==null)kl(e,0),_n(e,ge,Da,!1);if(Yc(e,a),(we&2)===0||e!==Pe)e===Pe&&((we&2)===0&&(Gi|=a),Qe===4&&_n(e,ge,Da,!1)),ar(e)}function C2(e,t,a){if((we&6)!==0)throw Error(M(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Xc(e,t),r=o?_F(e,t):Qx(e,t,!0),n=o;do{if(r===0){Ol&&!o&&_n(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!IF(a)){r=Qx(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;r=Tc;var l=s.current.memoizedState.isDehydrated;if(l&&(kl(s,i).flags|=256),i=Qx(s,i,!1),i!==2&&i!==6){if(i0&&!l){s.errorRecoveryDisabledLanes|=n,Gi|=n,r=4;break e}n=ga,ga=r,n!==null&&(ga===null?ga=n:ga.push.apply(ga,n))}r=i}if(n=!1,r!==2)continue}}if(r===1){kl(e,0),_n(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(M(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:_n(o,t,Da,!Rn);break e;case 2:ga=null;break;case 3:case 5:break;default:throw Error(M(329))}if((t&62914560)===t&&(r=Ym+300-Pa(),10<r)){if(_n(o,t,Da,!Rn),Om(o,0,!0)!==0)break e;Jo=t,o.timeoutHandle=c0(MR.bind(null,o,a,ga,Tm,Qv,t,Da,Gi,Ll,Rn,n,"Throttled",-0,0),r);break e}MR(o,a,ga,Tm,Qv,t,Da,Gi,Ll,Rn,n,null,-0,0)}}break}while(1);ar(e)}function MR(e,t,a,o,r,n,i,s,l,u,d,m,p,f){e.timeoutHandle=-1;var g=t.subtreeFlags,y=(n&335544064)===n;if(m=null,y||g&8192||(g&16785408)===16785408){if(m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xo},Ma=null,y2(t,n,m),y&&(g=m,y=e.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(g.count++,g.waitingForViewTransition=!0,g=$c.bind(g),y.finished.then(g,g))),g=(n&62914560)===n?Ym-Pa():(n&4194048)===n?w2-Pa():0,g=_6(m,g),g!==null){Jo=n,e.cancelPendingCommit=g(PR.bind(null,e,t,n,a,o,r,i,s,l,u,d,m,null,p,f)),_n(e,n,i,!u);return}}PR(e,t,n,a,o,r,i,s,l,u,d,m)}function IF(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!Fa(n(),r))return!1}catch(i){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 _n(e,t,a,o){t=w_(e,t),t&=~Rm,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-za(r),i=1<<n;o[n]=-1,r&=~i}a!==0&&L_(e,a,t)}function Wm(){return(we&6)===0?(ad(0,!1),!1):!0}function s0(){if(me!==null){if(_e===0)var e=me.return;else e=me,Ir=ts=null,$b(e),pl=null,zc=0,e=me;for(;e!==null;)QT(e.alternate,e),e=e.return;me=null}}function kl(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,jF(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jo=0,s0(),Pe=e,me=a=Rr(e.current,null),ge=t,_e=0,Ea=null,Rn=!1,Ol=Xc(e,t),i0=!1,Ll=Da=Rm=Gi=$n=Qe=0,ga=Tc=null,Qv=!1,Dr=w_(e,t),Um(),a}function k2(e,t){re=null,ae.H=wm,t===Dl||t===$m?(t=iR(),_e=3):t===Ob?(t=iR(),_e=4):_e=t===Qb?8:t!==null&&typeof t==="object"&&typeof t.then==="function"?6:1,Ea=t,me===null&&(Qe=1,Sm(e,to(t,e.current)))}function I2(){var e=Ft.current;return e===null?!0:(ge&4194048)===ge?Vt===null?!0:!1:(ge&62914560)===ge||(ge&536870912)!==0?e===Vt:!1}function R2(){var e=ae.H;return ae.H=wm,e===null?wm:e}function _2(){var e=ae.A;return ae.A=CF,e}function Em(){Qe=4,Rn||(ge&4194048)!==ge&&Ft.current!==null||(Ol=!0),($n&134217727)===0&&(Gi&134217727)===0||Pe===null||_n(Pe,ge,Da,!1)}function Qx(e,t,a){var o=we;we|=2;var r=R2(),n=_2();if(Pe!==e||ge!==t)Tm=null,kl(e,t);t=!1;var i=Qe;e:do try{if(_e!==0&&me!==null){var s=me,l=Ea;switch(_e){case 8:s0(),i=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(t=!0);var u=_e;if(_e=0,Ea=null,ll(e,s,l,u),a&&Ol){i=0;break e}break;default:u=_e,_e=0,Ea=null,ll(e,s,l,u)}}RF(),i=Qe;break}catch(d){k2(e,d)}while(1);return t&&e.shellSuspendCounter++,Ir=ts=null,we=o,ae.H=r,ae.A=n,me===null&&(Pe=null,ge=0,Um()),i}function RF(){for(;me!==null;)T2(me)}function _F(e,t){var a=we;we|=2;var o=R2(),r=_2();Pe!==e||ge!==t?(Tm=null,_m=Pa()+500,kl(e,t)):Ol=Xc(e,t);e:do try{if(_e!==0&&me!==null){t=me;var n=Ea;t:switch(_e){case 1:_e=0,Ea=null,ll(e,t,n,1);break;case 2:case 9:if(nR(n)){_e=0,Ea=null,DR(t);break}t=function(){_e!==2&&_e!==9||Pe!==e||(_e=7),ar(e)},n.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:nR(n)?(_e=0,Ea=null,DR(t)):(_e=0,Ea=null,ll(e,t,n,7));break;case 5:var i=null;switch(me.tag){case 26:i=me.memoizedState;case 5:case 27:var s=me;if(i?eE(i):s.stateNode.complete){_e=0,Ea=null;var l=s.sibling;if(l!==null)me=l;else{var u=s.return;u!==null?(me=u,Qm(u)):me=null}break t}}_e=0,Ea=null,ll(e,t,n,5);break;case 6:_e=0,Ea=null,ll(e,t,n,6);break;case 8:s0(),Qe=6;break e;default:throw Error(M(462))}}TF();break}catch(d){k2(e,d)}while(1);if(Ir=ts=null,ae.H=o,ae.A=r,we=a,me!==null)return 0;return Pe=null,ge=0,Um(),Qe}function TF(){for(;me!==null&&!Z3();)T2(me)}function T2(e){var t=WT(e.alternate,e,Dr);e.memoizedProps=e.pendingProps,t===null?Qm(e):me=t}function DR(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=SR(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=SR(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:$b(t);var o=t;o===Rt&&(le?(mm(o),o.tag===5&&o.stateNode!=null&&(He=o.stateNode)):(mm(o),le=!0));default:QT(a,t),t=me=J_(t,Dr),t=WT(a,t,Dr)}e.memoizedProps=e.pendingProps,t===null?Qm(e):me=t}function ll(e,t,a,o){Ir=ts=null,$b(t),pl=null,zc=0;var r=t.return;try{if(gF(e,r,t,a,ge)){Qe=1,Sm(e,to(a,e.current)),me=null;return}}catch(n){if(r!==null)throw me=r,n;Qe=1,Sm(e,to(a,e.current)),me=null;return}if(t.flags&32768){if(le||o===1)e=!0;else if(Ol||(ge&536870912)!==0)e=!1;else if(Rn=e=!0,o===2||o===9||o===3||o===6)o=Ft.current,o!==null&&o.tag===13&&(o.flags|=16384);E2(t,e)}else Qm(t)}function Qm(e){var t=e;do{if((t.flags&32768)!==0){E2(t,Rn);return}e=t.return;var a=bF(t.alternate,t,Dr);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Qe===0&&(Qe=5)}function E2(e,t){do{var a=wF(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Qe=6,me=null}function PR(e,t,a,o,r,n,i,s,l,u,d,m){e.cancelPendingCommit=null;do Jm();while(Ke!==0);if((we&6)!==0)throw Error(M(327));if(t!==null){if(t===e.current)throw Error(M(177));e===Pe&&(me=Pe=null,ge=0),Yi=t,Lo=e,Jo=a,eb=r,S2=o,EF(e,t,a,i,s,l,m)}}function EF(e,t,a,o,r,n,i){var s=t.lanes|t.childLanes;if(Jv=s,s|=Eb,a4(e,a,s,o,r,n),yl=null,(a&335544064)===a?(xl=rF(e),o=10262):(xl=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,OF(um,function(){return rb(),null})):(e.callbackNode=null,e.callbackPriority=0),km=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=ae.T,ae.T=null,r=Se.p,Se.p=2,n=we,we|=4;try{SF(e,t,a)}finally{we=n,Se.p=r,ae.T=o}}Ke=1,km?gl=e6(i,e.containerInfo,xl,tb,ab,AF,ob,rb,NF,null,null):(tb(),ab(),ob())}function NF(e){if(Ke!==0){var t=Lo.onRecoverableError;t(e,{componentStack:null})}}function AF(){Ke===3&&(Ke=0,h2(Yi,Lo),Ke=4)}function tb(){if(Ke===1){Ke=0;var e=Lo,t=Yi,a=Jo,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=ae.T,ae.T=null;var r=Se.p;Se.p=2;var n=we;we|=4;try{hc=Im=!1,p2(t,e,a),a=cb;var i=V_(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&$_(s.ownerDocument.documentElement,s)){if(l!==null&&Tb(s)){var{start:u,end:d}=l;if(d===void 0&&(d=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(d,s.value.length);else{var m=s.ownerDocument||document,p=m&&m.defaultView||window;if(p.getSelection){var f=p.getSelection(),g=s.textContent.length,y=Math.min(l.start,g),b=l.end===void 0?y:Math.min(l.end,g);!f.extend&&y>b&&(i=b,b=y,y=i);var h=WI(s,y),x=WI(s,b);if(h&&x&&(f.rangeCount!==1||f.anchorNode!==h.node||f.anchorOffset!==h.offset||f.focusNode!==x.node||f.focusOffset!==x.offset)){var v=m.createRange();v.setStart(h.node,h.offset),f.removeAllRanges(),y>b?(f.addRange(v),f.extend(x.node,x.offset)):(v.setEnd(x.node,x.offset),f.addRange(v))}}}}m=[];for(f=s;f=f.parentNode;)f.nodeType===1&&m.push({element:f,left:f.scrollLeft,top:f.scrollTop});typeof s.focus==="function"&&s.focus();for(s=0;s<m.length;s++){var w=m[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}El=!!ub,cb=ub=null}finally{we=n,Se.p=r,ae.T=o}}e.current=t,Ke=2}}function ab(){if(Ke===2){Ke=0;var e=Lo,t=Yi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ae.T,ae.T=null;var o=Se.p;Se.p=2;var r=we;we|=4;try{s2(e,t.alternate,t)}finally{we=r,Se.p=o,ae.T=a}}Ke=3}}function ob(){if(Ke===4||Ke===3){Ke=0;var e=gl;gl=null,K3();var t=Lo,a=Yi,o=Jo,r=S2,n=(o&335544064)===o?10262:10256;if((a.subtreeFlags&n)!==0||(a.flags&n)!==0?Ke=5:(Ke=0,Yi=Lo=null,N2(t,t.pendingLanes)),n=t.pendingLanes,n===0&&(On=null),Lb(o),a=a.stateNode,Oa&&typeof Oa.onCommitFiberRoot==="function")try{Oa.onCommitFiberRoot(jc,a,void 0,(a.current.flags&128)===128)}catch(u){}if(r!==null){a=ae.T,n=Se.p,Se.p=2,ae.T=null;try{for(var i=t.onRecoverableError,s=0;s<r.length;s++){var l=r[s];i(l.value,{componentStack:l.stack})}}finally{ae.T=a,Se.p=n}}if(r=yl,i=xl,xl=null,r!==null&&(yl=null,i===null&&(i=[]),e!==null))for(l=0;l<r.length;l++)a=(0,r[l])(i),a!==void 0&&e.finished.finally(a);(Jo&3)!==0&&Jm(),ar(t),n=t.pendingLanes,(o&261930)!==0&&(n&42)!==0?t===em?Ec++:(Ec=0,em=t):(Ec=0,em=null),ad(0,!1)}}function N2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jc(t)))}function Jm(){return gl!==null&&(gl.skipTransition(),gl=null),tb(),ab(),ob(),rb()}function rb(){if(Ke!==5)return!1;var e=Lo,t=Jv;Jv=0;var a=Lb(Jo),o=ae.T,r=Se.p;try{Se.p=32>a?32:a,ae.T=null,a=eb,eb=null;var n=Lo,i=Jo;if(Ke=0,Yi=Lo=null,Jo=0,(we&6)!==0)throw Error(M(331));var s=we;if(we|=4,v2(n.current),g2(n,n.current,i,a),we=s,ad(0,!1),Oa&&typeof Oa.onPostCommitFiberRoot==="function")try{Oa.onPostCommitFiberRoot(jc,n)}catch(l){}return!0}finally{Se.p=r,ae.T=o,N2(e,t)}}function OR(e,t,a){t=to(a,t),t=zv(e.stateNode,t,2),e=Mn(e,t,2),e!==null&&(Yc(e,2),ar(e))}function Ee(e,t,a){if(e.tag===3)OR(e,e,a);else for(;t!==null;){if(t.tag===3){OR(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(On===null||!On.has(o))){e=to(a,e),a=ZT(2),o=Mn(t,a,2),o!==null&&(KT(a,o,t,e),Yc(o,2),ar(o));break}}t=t.return}}function Jx(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new kF;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(i0=!0,r.add(a),e=MF.bind(null,e,t,a),t.then(e,e))}function MF(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(ge&a)===a&&(Qe===4||Qe===3&&(ge&62914560)===ge&&300>Pa()-Ym?(we&2)===0?kl(e,0):Rm|=a:Rm|=a,Ll===ge&&(Ll=0)),ar(e)}function A2(e,t){t===0&&(t=S_()),e=es(e,t),e!==null&&(Yc(e,t),ar(e))}function DF(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),A2(e,a)}function PF(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:r}=e;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(M(314))}o!==null&&o.delete(t),A2(e,a)}function OF(e,t){return wb(e,t)}function ar(e){e!==Xs&&e.next===null&&(Xs===null?Il=Xs=e:Xs=Xs.next=e),Nm=!0,nb||(nb=!0,BF())}function ad(e,t){if(!ev&&Nm){ev=!0;do{var a=!1;for(var o=Il;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var{suspendedLanes:i,pingedLanes:s}=o;n=(1<<31-za(42|e)+1)-1,n&=r&~(i&~s),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,zR(o,n))}else n=ge,n=Om(o,o===Pe?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||Xc(o,n)||(a=!0,zR(o,n));o=o.next}}while(a);ev=!1}}function zF(){M2()}function M2(){Nm=nb=!1;var e=0;Tn!==0&&KF()&&(e=Tn);for(var t=Pa(),a=null,o=Il;o!==null;){var r=o.next,n=D2(o,t);if(n===0)o.next=null,a===null?Il=r:a.next=r,r===null&&(Xs=a);else if(a=o,e!==0||(n&3)!==0)Nm=!0;o=r}Ke!==0&&Ke!==5||ad(e,!1),Tn!==0&&(Tn=0)}function D2(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:r}=e,n=e.pendingLanes&-62914561;0<n;){var i=31-za(n),s=1<<i,l=r[i];if(l===-1){if((s&a)===0||(s&o)!==0)r[i]=t4(s,t)}else l<=t&&(e.expiredLanes|=s);n&=~s}if(t=Pe,a=ge,a=Om(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Mx(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Xc(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&Mx(o),Lb(a)){case 2:case 8:a=v_;break;case 32:a=um;break;case 268435456:a=b_;break;default:a=um}return o=P2.bind(null,e),a=wb(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&Mx(o),e.callbackPriority=2,e.callbackNode=null,2}function P2(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Jm()&&e.callbackNode!==a)return null;var o=ge;if(o=Om(e,e===Pe?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0)return null;return C2(e,o,t),D2(e,Pa()),e.callbackNode!=null&&e.callbackNode===a?P2.bind(null,e):null}function zR(e,t){if(Jm())return null;C2(e,t,!0)}function BF(){XF(function(){(we&6)!==0?wb(x_,zF):M2()})}function l0(){if(Tn===0){var e=Zi;e===0&&(e=Cp,Cp<<=1,(Cp&261888)===0&&(Cp=256)),Tn=e}return Tn}function BR(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:Up(e)}function FF(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=BR((r[wa]||null).action),i=o.submitter;i&&(t=(t=i[wa]||null)?BR(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var s=new Bm("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Tn!==0){var l=new FormData(r,i);Pv(a,{pending:!0,data:l,method:r.method,action:n},null,l)}}else typeof n==="function"&&(s.preventDefault(),l=new FormData(r,i),Pv(a,{pending:!0,data:l,method:r.method,action:n},n,l))},currentTarget:r}]})}}function O2(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=u;try{n(r)}catch(d){dm(d)}r.currentTarget=null,n=l}else for(i=0;i<o.length;i++){if(s=o[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=u;try{n(r)}catch(d){dm(d)}r.currentTarget=null,n=l}}}}function pe(e,t){var a=t[DI];a===void 0&&(a=t[DI]=new Set);var o=e+"__bubble";a.has(o)||(z2(t,e,2,!1),a.add(o))}function tv(e,t,a){var o=0;t&&(o|=4),z2(a,e,o,t)}function u0(e){if(!e[zp]){e[zp]=!0,__.forEach(function(a){a!=="selectionchange"&&(HF.has(a)||tv(a,!1,e),tv(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zp]||(t[zp]=!0,tv("selectionchange",!1,t))}}function z2(e,t,a,o){switch(sE(t)){case 2:var r=A6;break;case 8:r=M6;break;default:r=g0}a=r.bind(null,t,a,e),r=void 0,!bv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function av(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var s=o.stateNode.containerInfo;if(s===r)break;if(i===4)for(i=o.return;i!==null;){var l=i.tag;if((l===3||l===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;s!==null;){if(i=Oi(s),i===null)return;if(l=i.tag,l===5||l===6||l===26||l===27){o=n=i;continue e}s=s.parentNode}}o=o.return}O_(function(){var u=n,d=kb(a),m=[];e:{var p=W_.get(e);if(p!==void 0){var f=Bm,g=e;switch(e){case"keypress":if(qp(a)===0)break e;case"keydown":case"keyup":f=I4;break;case"focusin":g="focus",f=Fx;break;case"focusout":g="blur",f=Fx;break;case"beforeblur":case"afterblur":f=Fx;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=GI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=m4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=N4;break;case K_:case j_:case X_:f=y4;break;case Y_:f=M4;break;case"scroll":case"scrollend":f=f4;break;case"wheel":f=P4;break;case"copy":case"cut":case"paste":f=v4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=$I;break;case"submit":f=T4;break;case"toggle":case"beforetoggle":f=z4}var y=(t&4)!==0,b=!y&&(e==="scroll"||e==="scrollend"),h=y?p!==null?p+"Capture":null:p;y=[];for(var x=u,v;x!==null;){var w=x;if(v=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||v===null||h===null||(w=Ac(x,h),w!=null&&y.push(Uc(x,w,v))),b)break;x=x.return}0<y.length&&(p=new f(p,g,null,a,d),m.push({event:p,listeners:y}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&a!==vv&&(g=a.relatedTarget||a.fromElement)&&(Oi(g)||g[Al]))break e;if(p||f){if(g=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p){if(f=a.relatedTarget||a.toElement,p=u,f=f?Oi(f):null,f!==null&&(b=Kc(f),y=f.tag,f!==b||y!==5&&y!==27&&y!==6))f=null}else p=null,f=u;if(p!==f){if(y=GI,w="onMouseLeave",h="onMouseEnter",x="mouse",e==="pointerout"||e==="pointerover")y=$I,w="onPointerLeave",h="onPointerEnter",x="pointer";b=p==null?g:dc(p),v=f==null?g:dc(f),g=new y(w,x+"leave",p,a,d),g.target=b,g.relatedTarget=v,w=null,Oi(d)===u&&(y=new y(h,x+"enter",f,a,d),y.target=v,y.relatedTarget=b,w=y),b=w,y=p&&f?sv(p,f,UF):null,p!==null&&FR(m,g,p,y,!1),f!==null&&b!==null&&FR(m,b,f,y,!0)}}}e:{if(p=u?dc(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var C=jI;else if(KI(p))if(G_)C=K4;else{C=V4;var I=$4}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&Cb(u.elementType)&&(C=jI):C=Z4;if(C&&(C=C(e,u))){U_(m,C,a,d);break e}I&&I(e,p,u)}switch(I=u?dc(u):window,e){case"focusin":if(KI(I)||I.contentEditable==="true")al=I,Sv=u,bc=null;break;case"focusout":bc=Sv=al=null;break;case"mousedown":Lv=!0;break;case"contextmenu":case"mouseup":case"dragend":Lv=!1,QI(m,a,d);break;case"selectionchange":if(X4)break;case"keydown":case"keyup":QI(m,a,d)}var L;if(_b)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else tl?F_(e,a)&&(k="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(k="onCompositionStart");if(k&&(B_&&a.locale!=="ko"&&(tl||k!=="onCompositionStart"?k==="onCompositionEnd"&&tl&&(L=z_()):(kn=d,Ib=("value"in kn)?kn.value:kn.textContent,tl=!0)),I=Am(u,k),0<I.length&&(k=new qI(k,e,null,a,d),m.push({event:k,listeners:I}),L?k.data=L:(L=H_(a),L!==null&&(k.data=L)))),L=F4?H4(e,a):U4(e,a))k=Am(u,"onBeforeInput"),0<k.length&&(I=new qI("onBeforeInput","beforeinput",null,a,d),m.push({event:I,listeners:k}),I.data=L);FF(m,e,u,a,d)}O2(m,t)})}function Uc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Am(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=Ac(e,a),r!=null&&o.unshift(Uc(e,r,n)),r=Ac(e,t),r!=null&&o.push(Uc(e,r,n))),e.tag===3)return o;e=e.return}return[]}function UF(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function FR(e,t,a,o,r){for(var n=t._reactName,i=[];a!==null&&a!==o;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===o)break;s!==5&&s!==26&&s!==27||u===null||(l=u,r?(u=Ac(a,n),u!=null&&i.unshift(Uc(a,u,l))):r||(u=Ac(a,n),u!=null&&i.push(Uc(a,u,l)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}function HR(e){return(typeof e==="string"?e:""+e).replace(GF,\`
7497
+ \`).replace(qF,"")}function B2(e,t){return t=HR(t),HR(e)===t?!0:!1}function Te(e,t,a,o,r,n){switch(a){case"children":if(typeof o==="string")t==="body"||t==="textarea"&&o===""||wl(e,o);else if(typeof o==="number"||typeof o==="bigint")t!=="body"&&wl(e,""+o);else return;break;case"className":Rp(e,"class",o);break;case"tabIndex":Rp(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Rp(e,a,o);break;case"style":P_(e,o,n);return;case"data":if(t!=="object"){Rp(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=Up(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o==="function"){e.setAttribute(a,"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 n==="function"&&(a==="formAction"?(t!=="input"&&Te(e,t,"name",r.name,r,null),Te(e,t,"formEncType",r.formEncType,r,null),Te(e,t,"formMethod",r.formMethod,r,null),Te(e,t,"formTarget",r.formTarget,r,null)):(Te(e,t,"encType",r.encType,r,null),Te(e,t,"method",r.method,r,null),Te(e,t,"target",r.target,r,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=Up(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Xo);return;case"onScroll":o!=null&&pe("scroll",e);return;case"onScrollEnd":o!=null&&pe("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(M(60));(n!=null?n.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}a=Up(o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Hp(e,"popover",o);break;case"xlinkActuate":Lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Lr(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Lr(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Lr(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Lr(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Hp(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=c4.get(a)||a,Hp(e,a,o);else return}ve=!0}function lb(e,t,a,o,r,n){switch(a){case"style":P_(e,o,n);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(M(60));(n!=null?n.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o==="string")wl(e,o);else if(typeof o==="number"||typeof o==="bigint")wl(e,""+o);else return;break;case"onScroll":o!=null&&pe("scroll",e);return;case"onScrollEnd":o!=null&&pe("scrollend",e);return;case"onClick":o!=null&&(e.onclick=Xo);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!T_.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),n=a.slice(2,r?a.length-7:void 0),t=e[wa]||null,t=t!=null?t[a]:null,typeof t==="function"&&e.removeEventListener(n,t,r),typeof o==="function")){typeof t!=="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,r);break e}ve=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):Hp(e,a,o)}return}ve=!0}function Bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var i=a[n];if(i!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:Te(e,t,n,i,a,null)}}r&&Te(e,t,"srcSet",a.srcSet,a,null),o&&Te(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var s=n=i=r=null,l=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var d=a[o];if(d!=null)switch(o){case"name":r=d;break;case"type":i=d;break;case"checked":l=d;break;case"defaultChecked":u=d;break;case"value":n=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(M(137,t));break;default:Te(e,t,o,d,a,null)}}A_(e,n,s,l,u,i,r,!1);return;case"select":pe("invalid",e),o=i=n=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":n=s;break;case"defaultValue":i=s;break;case"multiple":o=s;default:Te(e,t,r,s,a,null)}t=n,a=i,e.multiple=!!o,t!=null?cl(e,!!o,t,!1):a!=null&&cl(e,!!o,a,!0);return;case"textarea":pe("invalid",e),n=r=o=null;for(i in a)if(a.hasOwnProperty(i)&&(s=a[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":r=s;break;case"children":n=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(M(91));break;default:Te(e,t,i,s,a,null)}D_(e,o,r,n);return;case"option":for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Te(e,t,l,o,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(o=0;o<Hc.length;o++)pe(Hc[o],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:Te(e,t,u,o,a,null)}return;default:if(Cb(t)){for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!==void 0&&lb(e,t,d,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&Te(e,t,s,o,a,null))}function VF(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,i=null,s=null,l=null,u=null,d=null;for(f in a){var m=a[f];if(a.hasOwnProperty(f)&&m!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":l=m;default:o.hasOwnProperty(f)||Te(e,t,f,null,o,m)}}for(var p in o){var f=o[p];if(m=a[p],o.hasOwnProperty(p)&&(f!=null||m!=null))switch(p){case"type":f!==m&&(ve=!0),n=f;break;case"name":f!==m&&(ve=!0),r=f;break;case"checked":f!==m&&(ve=!0),u=f;break;case"defaultChecked":f!==m&&(ve=!0),d=f;break;case"value":f!==m&&(ve=!0),i=f;break;case"defaultValue":f!==m&&(ve=!0),s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(M(137,t));break;default:f!==m&&Te(e,t,p,f,o,m)}}xv(e,i,s,l,u,d,n,r);return;case"select":f=i=s=p=null;for(n in a)if(l=a[n],a.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":f=l;default:o.hasOwnProperty(n)||Te(e,t,n,null,o,l)}for(r in o)if(n=o[r],l=a[r],o.hasOwnProperty(r)&&(n!=null||l!=null))switch(r){case"value":n!==l&&(ve=!0),p=n;break;case"defaultValue":n!==l&&(ve=!0),s=n;break;case"multiple":n!==l&&(ve=!0),i=n;default:n!==l&&Te(e,t,r,n,o,l)}t=s,a=i,o=f,p!=null?cl(e,!!a,p,!1):!!o!==!!a&&(t!=null?cl(e,!!a,t,!0):cl(e,!!a,a?[]:"",!1));return;case"textarea":f=p=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Te(e,t,s,null,o,r)}for(i in o)if(r=o[i],n=a[i],o.hasOwnProperty(i)&&(r!=null||n!=null))switch(i){case"value":r!==n&&(ve=!0),p=r;break;case"defaultValue":r!==n&&(ve=!0),f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(M(91));break;default:r!==n&&Te(e,t,i,r,o,n)}M_(e,p,f);return;case"option":for(var g in a)if(p=a[g],a.hasOwnProperty(g)&&p!=null&&!o.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Te(e,t,g,null,o,p)}for(l in o)if(p=o[l],f=a[l],o.hasOwnProperty(l)&&p!==f&&(p!=null||f!=null))switch(l){case"selected":p!==f&&(ve=!0),e.selected=p&&typeof p!=="function"&&typeof p!=="symbol";break;default:Te(e,t,l,p,o,f)}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 y in a)p=a[y],a.hasOwnProperty(y)&&p!=null&&!o.hasOwnProperty(y)&&Te(e,t,y,null,o,p);for(u in o)if(p=o[u],f=a[u],o.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(M(137,t));break;default:Te(e,t,u,p,o,f)}return;default:if(Cb(t)){for(var b in a)p=a[b],a.hasOwnProperty(b)&&p!==void 0&&!o.hasOwnProperty(b)&&lb(e,t,b,void 0,o,p);for(d in o)p=o[d],f=a[d],!o.hasOwnProperty(d)||p===f||p===void 0&&f===void 0||lb(e,t,d,p,o,f);return}}for(var h in a)p=a[h],a.hasOwnProperty(h)&&p!=null&&!o.hasOwnProperty(h)&&Te(e,t,h,null,o,p);for(m in o)p=o[m],f=a[m],!o.hasOwnProperty(m)||p===f||p==null&&f==null||Te(e,t,m,p,o,f)}function UR(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ZF(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],n=r.transferSize,i=r.initiatorType,s=r.duration;if(n&&s&&UR(i)){i=0,s=r.responseEnd;for(o+=1;o<a.length;o++){var l=a[o],u=l.startTime;if(u>s)break;var{transferSize:d,initiatorType:m}=l;d&&UR(m)&&(l=l.responseEnd,i+=d*(l<s?1:(s-u)/(l-u)))}if(--o,t+=8*(n+i)/(r.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Gc(e){return e.nodeType===9?e:e.ownerDocument}function GR(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 F2(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 H2(e,t,a,o){return a=Gc(a).createElement(e),a[Dt]=o,a[wa]=t,Bt(a,e,t),It(a),a}function db(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}function KF(){var e=window.event;if(e&&e.type==="popstate"){if(e===ov)return!1;return ov=e,!0}return ov=null,!1}function YF(e){setTimeout(function(){throw e})}function Zn(e){return e==="head"}function VR(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),Nl(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")nv(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,nv(a);for(var n=a.firstChild;n;){var{nextSibling:i,nodeName:s}=n;n[Wc]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=i}}else a==="body"&&nv(e.ownerDocument.body);a=r}while(a);Nl(t)}function ZR(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function U2(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var r=o=0;r<t.length;r++){var n=t[r];0<n.width&&0<n.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function G2(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a==="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a==="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a==="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a==="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t==="boolean"?"":t)))}function q2(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function fb(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return q2(t,a,e)}function WF(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+20000,t.y+20000,t.width,t.height);var a=getComputedStyle(e);return q2(t,a,e)}function QF(e){return e.documentElement.clientHeight}function JF(e){this.addEventListener("load",e),this.addEventListener("error",e)}function e6(e,t,a,o,r,n,i,s,l){var u=t.nodeType===9?t:t.ownerDocument;try{var d=u.startViewTransition({update:function(){var p=u.defaultView,f=p.navigation&&p.navigation.transition,g=u.fonts.status;o();var y=[];if(g==="loaded"&&(QF(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),g=y.length,e!==null)for(var b=e.suspenseyImages,h=0,x=0;x<b.length;x++){var v=b[x];if(!v.complete){var w=v.getBoundingClientRect();if(0<w.bottom&&0<w.right&&w.top<p.innerHeight&&w.left<p.innerWidth){if(h+=tE(v),h>om){y.length=g;break}v=new Promise(JF.bind(v)),y.push(v)}}}if(0<y.length)return p=Promise.race([Promise.all(y),new Promise(function(C){return setTimeout(C,500)})]).then(r,r),(f?Promise.allSettled([f.finished,p]):p).then(n,n);if(r(),f)return f.finished.then(n,n);n()},types:a});u.__reactViewTransition=d;var m=[];return d.ready.then(function(){for(var p=u.documentElement.getAnimations({subtree:!0}),f=0;f<p.length;f++){var g=p[f],y=g.effect,b=y.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){m.push(g),g=y.getKeyframes();for(var h=b=void 0,x=!0,v=0;v<g.length;v++){var w=g[v],C=w.width;if(b===void 0)b=C;else if(b!==C){x=!1;break}if(C=w.height,h===void 0)h=C;else if(h!==C){x=!1;break}delete w.width,delete w.height,w.transform==="none"&&delete w.transform}x&&b!==void 0&&h!==void 0&&(y.setKeyframes(g),x=getComputedStyle(y.target,y.pseudoElement),x.width!==b||x.height!==h)&&(x=g[0],x.width=b,x.height=h,x=g[g.length-1],x.width=b,x.height=h,y.setKeyframes(g))}}i()},function(p){u.__reactViewTransition===d&&(u.__reactViewTransition=null);try{if(typeof p==="object"&&p!==null)switch(p.name){case"InvalidStateError":if(p.message==="View transition was skipped because document visibility state is hidden."||p.message==="Skipping view transition because document visibility state has become hidden."||p.message==="Skipping view transition because viewport size changed."||p.message==="Transition was aborted because of invalid state")p=null}p!==null&&l(p)}finally{o(),r(),i()}}),d.finished.finally(function(){for(var p=0;p<m.length;p++)m[p].cancel();u.__reactViewTransition===d&&(u.__reactViewTransition=null),s()}),d}catch(p){return o(),r(),i(),null}}function zi(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}function $2(e){return{name:e,group:new zi("group",e),imagePair:new zi("image-pair",e),old:new zi("old",e),new:new zi("new",e)}}function Ha(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function t6(e,t,a,o){return yt(e).addEventListener(t,a,o),!1}function a6(e,t,a,o){return yt(e).removeEventListener(t,a,o),!1}function Rl(e){return e!=null&&typeof e!=="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function KR(e){return e==null?"c=0":typeof e==="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function V2(e,t,a,o){if(e.length===0)return-1;o=KR(o);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===t&&n.listener===a&&KR(n.optionsOrUseCapture)===o)return r}return-1}function Z2(e,t){if(e.tag===6)return!1;return e=yt(e),m6(e,t)}function d0(e,t){return t.push(e),!1}function o6(e,t){if(e.tag===6)return!1;return e=yt(e),e===t||e.contains(t)?(t.blur(),!0):!1}function r6(e,t){if(e.tag===6)return!1;return e=yt(e),t.observe(e),!1}function n6(e,t){if(e.tag===6)return!1;return e=yt(e),t.unobserve(e),!1}function i6(e,t,a){So.push({fragmentInstance:e,observer:t,instance:a}),rv||(rv=!0,h6(function(){rv=!1;var o=So;So=[];for(var r=0;r<o.length;r++){var n=o[r];n.observer.unobserve(n.instance)}}))}function s6(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=yt(e),t.push.apply(t,e.getClientRects());return!1}function l6(e,t,a,o,r){var n=Oi(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!n)e:{for(;n!==null;){if(n.tag===7&&(n===t||n.alternate===t)){a=!0;break e}n=n.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=r.ownerDocument,r===n||r===n.documentElement||r===n.body;e:{n=t;for(t=Wi(t);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==t&&n.alternate!==t)){n=!0;break e}n=n.return}n=!1}return n}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!n)&&!(t=n===a)&&(t=sv(a,n,TI),t===null?t=!1:(ba(t,!0,B3,n,a),n=Ws,Ws=null,t=n!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!n)&&!(t=n===o)&&(t=sv(o,n,TI),t===null?t=!1:(ba(t,!0,F3,n,o),n=Ws,iv=Ws=null,t=n!==null)),t):!1}function jR(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function u6(e,t){return e=yt(e),K2(e,t),!1}function K2(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function j2(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.addEventListener(r.type,r.attachedListener,Rl(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){for(var i=0,s=0;s<So.length;s++){var l=So[s];if(l.fragmentInstance!==t||l.observer!==n||l.instance!==e)So[i++]=l}So.length=i,n.observe(e)}),K2(e,t))}function c6(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.removeEventListener(r.type,r.attachedListener,Rl(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){typeof n.rootMargin==="string"?i6(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function pb(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":pb(a),zm(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function d6(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[Wc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=oo(e.nextSibling),e===null)break}return null}function f6(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=oo(e.nextSibling),e===null)return null}return e}function X2(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=oo(e.nextSibling),e===null)return null}return e}function mb(e){return e.data==="$?"||e.data==="$~"}function f0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function p6(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function oo(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}function XR(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return oo(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function YR(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function m6(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function h6(e){$R(function(){$R(function(t){return e(t)})})}function Y2(e,t,a){switch(t=Gc(a),e){case"html":if(e=t.documentElement,!e)throw Error(M(452));return e;case"head":if(e=t.head,!e)throw Error(M(453));return e;case"body":if(e=t.body,!e)throw Error(M(454));return e;default:throw Error(M(451))}}function W2(e,t,a){for(var o in a){var r=a[o];a.hasOwnProperty(o)&&r!=null&&Te(e,t,o,null,$F,r)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Xo&&(e.onclick=null),zm(e)}function nv(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zm(e)}function qc(e){if(typeof e.getRootNode==="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}function g6(){var e=zr.f(),t=Wm();return e||t}function y6(e){var t=Ml(e);t!==null&&t.tag===5&&t.type==="form"?PT(t):zr.r(e)}function Q2(e,t,a){var o=zl;if(o&&typeof t==="string"&&t){var r=eo(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a==="string"&&(r+='[crossorigin="'+a+'"]'),WR.has(r)||(WR.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Bt(t,"link",e),It(t),o.head.appendChild(t)))}}function x6(e){zr.D(e),Q2("dns-prefetch",e,null)}function v6(e,t){zr.C(e,t),Q2("preconnect",e,t)}function b6(e,t,a){zr.L(e,t,a);var o=zl;if(o&&e&&t){var r='link[rel="preload"][as="'+eo(t)+'"]';t==="image"?a&&a.imageSrcSet?(r+='[imagesrcset="'+eo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(r+='[imagesizes="'+eo(a.imageSizes)+'"]')):r+='[href="'+eo(e)+'"]':r+='[href="'+eo(e)+'"]';var n=r;switch(t){case"style":n=_l(e);break;case"script":n=Bl(e)}if(!(ro.has(n)||(e=Oe({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ro.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(od(n))||t==="script"&&o.querySelector(rd(n))))){var i=o.createElement("link");Bt(i,"link",e),t==="style"&&(i[cm]=!0,i.onload=i.onerror=function(){R_(i)}),It(i),o.head.appendChild(i)}}}function w6(e,t){zr.m(e,t);var a=zl;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",r='link[rel="modulepreload"][as="'+eo(o)+'"][href="'+eo(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Bl(e)}if(!ro.has(n)&&(e=Oe({rel:"modulepreload",href:e},t),ro.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(rd(n)))return}o=a.createElement("link"),Bt(o,"link",e),It(o),a.head.appendChild(o)}}}function S6(e,t,a){zr.S(e,t,a);var o=zl;if(o&&e){var r=ul(o).hoistableStyles,n=_l(e);t=t||"default";var i=r.get(n);if(!i){var s={loading:0,preload:null};if(i=o.querySelector(od(n)))s.loading=5;else{e=Oe({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ro.get(n))&&p0(e,a);var l=i=o.createElement("link");It(l),Bt(l,"link",e),l._p=new Promise(function(u,d){l.onload=u,l.onerror=d}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,tm(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:s},r.set(n,i)}}}function L6(e,t){zr.X(e,t);var a=zl;if(a&&e){var o=ul(a).hoistableScripts,r=Bl(e),n=o.get(r);n||(n=a.querySelector(rd(r)),n||(e=Oe({src:e,async:!0},t),(t=ro.get(r))&&m0(e,t),n=a.createElement("script"),It(n),Bt(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function C6(e,t){zr.M(e,t);var a=zl;if(a&&e){var o=ul(a).hoistableScripts,r=Bl(e),n=o.get(r);n||(n=a.querySelector(rd(r)),n||(e=Oe({src:e,async:!0,type:"module"},t),(t=ro.get(r))&&m0(e,t),n=a.createElement("script"),It(n),Bt(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function QR(e,t,a,o){var r=(r=En.current)?qc(r):null;if(!r)throw Error(M(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=_l(a.href),t=ul(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=_l(a.href);var n=ul(r).hoistableStyles,i=n.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,i),(n=r.querySelector(od(e)))?n._p||(i.instance=n,i.state.loading=5):(n=ro.get(e),n||(n={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ro.set(e,n)),k6(r,e,n,i.state))),t&&o===null)throw Error(M(528,""));return i}if(t&&o!==null)throw Error(M(529,""));return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Bl(a),t=ul(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(M(444,e))}}function _l(e){return'href="'+eo(e)+'"'}function od(e){return'link[rel="stylesheet"]['+e+"]"}function J2(e){return Oe({},e,{"data-precedence":e.precedence,precedence:null})}function k6(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[cm]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[cm]=!0,t.onload=t.onerror=R_.bind(null,t),Bt(t,"link",a),It(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Bl(e){return'[src="'+eo(e)+'"]'}function rd(e){return"script[async]"+e}function JR(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+eo(a.href)+'"]');if(o)return t.instance=o,It(o),o;var r=Oe({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),It(o),Bt(o,"style",r),tm(o,a.precedence,e),t.instance=o;case"stylesheet":r=_l(a.href);var n=e.querySelector(od(r));if(n)return t.state.loading|=4,t.instance=n,It(n),n;o=J2(a),(r=ro.get(r))&&p0(o,r),n=(e.ownerDocument||e).createElement("link"),It(n);var i=n;return i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),Bt(n,"link",o),t.state.loading|=4,tm(n,a.precedence,e),t.instance=n;case"script":if(n=Bl(a.src),r=e.querySelector(rd(n)))return t.instance=r,It(r),r;if(o=a,r=ro.get(n))o=Oe({},a),m0(o,r);return e=e.ownerDocument||e,r=e.createElement("script"),It(r),Bt(r,"link",o),e.head.appendChild(r),t.instance=r;case"void":return null;default:throw Error(M(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,tm(o,a.precedence,e));return t.instance}function tm(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,i=0;i<o.length;i++){var s=o[i];if(s.dataset.precedence===t)n=s;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function p0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function m0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function e_(e,t,a){if(am===null){var o=new Map,r=am=new Map;r.set(a,o)}else r=am,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(r=0;r<a.length;r++){var n=a[r];if(!(n[Wc]||n[Dt]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=e+i;var s=o.get(i);s?s.push(n):o.set(i,[n])}}return o}function gb(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function I6(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence==="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==="string")return!0}return!1}function t_(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function eE(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function tE(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==="number"?devicePixelRatio:1)*0.25}function a_(e,t){typeof t.decode==="function"&&(e.imgCount++,t.complete||(e.imgBytes+=tE(t),e.suspenseyImages.push(t)),e=T6.bind(e),t.decode().then(e,e))}function R6(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=_l(o.href),n=t.querySelector(od(r));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=$c.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,It(n);return}n=t.ownerDocument||t,o=J2(o),(r=ro.get(r))&&p0(o,r),n=n.createElement("link"),It(n);var i=n;i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),Bt(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$c.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function _6(e,t){return e.stylesheets&&e.count===0&&rm(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&rm(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},60000+t);0<e.imgBytes&&om===0&&(om=62500*ZF());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rm(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>om?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function aE(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)rm(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function $c(){this.count--,aE(this)}function T6(){this.imgCount--,aE(this)}function rm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mm=new Map,t.forEach(E6,e),Mm=null,$c.call(e))}function E6(e,t){if(!(t.state.loading&4)){var a=Mm.get(e);if(a)var o=a.get(null);else{a=new Map,Mm.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var i=r[n];if(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")a.set(i.dataset.precedence,i),o=i}o&&a.set(null,o)}r=t.instance,i=r.getAttribute("data-precedence"),n=a.get(i)||o,n===o&&a.set(null,r),a.set(i,r),this.count++,o=$c.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}function N6(e,t,a,o,r,n,i,s,l){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=Dx(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dx(0),this.hiddenUpdates=Dx(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function oE(e,t,a,o,r,n,i,s,l,u,d,m){return e=new N6(e,t,a,i,l,u,d,m,s),t=1,n===!0&&(t|=24),n=xa(3,null,null,t),e.current=n,n.stateNode=e,t=Db(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},zb(n),e}function rE(e){if(!e)return nl;return e=nl,e}function nE(e,t,a,o,r,n){r=rE(r),o.context===null?o.context=r:o.pendingContext=r,o=An(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=Mn(e,o,t),a!==null&&(va(a,e,t),Sc(a,e,t))}function o_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function h0(e,t){o_(e,t),(e=e.alternate)&&o_(e,t)}function iE(e){if(e.tag===13||e.tag===31){var t=es(e,67108864);t!==null&&va(t,e,67108864),h0(e,67108864)}}function r_(e){if(e.tag===13||e.tag===31){var t=Ba();t=Sb(t);var a=es(e,t);a!==null&&va(a,e,t),h0(e,t)}}function A6(e,t,a,o){var r=ae.T;ae.T=null;var n=Se.p;try{Se.p=2,g0(e,t,a,o)}finally{Se.p=n,ae.T=r}}function M6(e,t,a,o){var r=ae.T;ae.T=null;var n=Se.p;try{Se.p=8,g0(e,t,a,o)}finally{Se.p=n,ae.T=r}}function g0(e,t,a,o){if(El){var r=yb(o);if(r===null)av(e,t,o,Dm,a),n_(e,o);else if(P6(r,e,t,a,o))o.stopPropagation();else if(n_(e,o),t&4&&-1<D6.indexOf(e)){for(;r!==null;){var n=Ml(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Ai(n.pendingLanes);if(i!==0){var s=n;s.pendingLanes|=2;for(s.entangledLanes|=2;i;){var l=1<<31-za(i);s.entanglements[1]|=l,i&=~l}ar(n),(we&6)===0&&(_m=Pa()+500,ad(0,!1))}}break;case 31:case 13:s=es(n,2),s!==null&&va(s,n,2),Wm(),h0(n,2)}if(n=yb(o),n===null&&av(e,t,o,Dm,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else av(e,t,o,null,a)}}function yb(e){return e=kb(e),y0(e)}function y0(e){if(Dm=null,e=Oi(e),e!==null){var t=Kc(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d_(t),e!==null)return e;e=null}else if(a===31){if(e=f_(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Dm=e,null}function sE(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(j3()){case x_:return 2;case v_:return 8;case um:case X3:return 32;case b_:return 268435456;default:return 32}default:return 32}}function n_(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":Vc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zc.delete(t.pointerId)}}function lc(e,t,a,o,r,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Ml(t),t!==null&&iE(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e}function P6(e,t,a,o,r){switch(t){case"focusin":return zn=lc(zn,e,t,a,o,r),!0;case"dragenter":return Bn=lc(Bn,e,t,a,o,r),!0;case"mouseover":return Fn=lc(Fn,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return Vc.set(n,lc(Vc.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,Zc.set(n,lc(Zc.get(n)||null,e,t,a,o,r)),!0}return!1}function lE(e){var t=Oi(e.target);if(t!==null){var a=Kc(t);if(a!==null){if(t=a.tag,t===13){if(t=d_(a),t!==null){e.blockedOn=t,MI(e.priority,function(){r_(a)});return}}else if(t===31){if(t=f_(a),t!==null){e.blockedOn=t,MI(e.priority,function(){r_(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=yb(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);vv=o,a.target.dispatchEvent(o),vv=null}else return t=Ml(a),t!==null&&iE(t),e.blockedOn=a,!1;t.shift()}return!0}function i_(e,t,a){nm(e)&&a.delete(t)}function O6(){xb=!1,zn!==null&&nm(zn)&&(zn=null),Bn!==null&&nm(Bn)&&(Bn=null),Fn!==null&&nm(Fn)&&(Fn=null),Vc.forEach(i_),Zc.forEach(i_)}function Bp(e,t){e.blockedOn===t&&(e.blockedOn=null,xb||(xb=!0,$s(qs,O6)))}function s_(e){Fp!==e&&(Fp=e,$s(qs,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!=="function")if(y0(o||a)===null)continue;else break;var n=Ml(a);n!==null&&(e.splice(t,3),t-=3,Pv(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function Nl(e){function t(l){return Bp(l,e)}zn!==null&&Bp(zn,e),Bn!==null&&Bp(Bn,e),Fn!==null&&Bp(Fn,e),Vc.forEach(t),Zc.forEach(t);for(var a=0;a<Ln.length;a++){var o=Ln[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ln.length&&(a=Ln[0],a.blockedOn===null);)lE(a),a.blockedOn===null&&Ln.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],i=r[wa]||null;if(typeof n==="function")i||s_(a);else if(i){var s=null;if(n&&n.hasAttribute("formAction")){if(r=n,i=n[wa]||null)s=i.formAction;else if(y0(r)!==null)continue}else s=i.action;typeof s==="function"?a[o+1]=s:(a.splice(o,3),o-=3),s_(a)}}}function uE(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function x0(e){this._internalRoot=e}function eh(e){this._internalRoot=e}var Pm,u_,Ws=null,iv=null,Oe,H3,Lp,uc,Qs,g_,lv,y_,jo,vb,uv,cv,bb,wn,dv,U3,G3,fv,q3,EI,$3,cc,ae,Se,Bi,mv,Js=-1,Qo,Nc,En,im,Ex,NI,Nx=!1,gv,wb,Mx,Z3,K3,Pa,j3,x_,v_,um,X3,b_,Y3,W3,jc=null,Oa=null,za,Q3,J3,Cp=256,kp=262144,Ip=4194304,Pr,Dt,wa,Al,DI,o4,r4,PI,Wc,cm,__,T_,n4,OI,zI,ve=!1,l4,u4,c4,d4,vv=null,el=null,dl=null,Ox=!1,Tr,bv=!1,Mi,kn=null,Ib=null,Gp=null,Vn,Bm,Qc,f4,zx,Bx,nc,Fm,GI,p4,m4,h4,Fx,g4,y4,x4,v4,b4,qI,w4,S4,L4,k4,I4,R4,$I,_4,T4,E4,N4,A4,M4,D4,P4,O4,z4,B4,_b,xc=null,F4,B_,VI,ZI=!1,tl=!1,G4,vc=null,Mc=null,G_=!1,fc,pc,$p,Fa,X4,al=null,Sv=null,bc=null,Lv=!1,ol,Hx,Z_,K_,j_,X_,Y4,W4,Q4,Y_,W_,Cv,J4=0,dm,Wa,rl=0,Eb=0,nl,eR,il,sl=0,pm=null,Pc=0,Qa,Ja=0,Hn=null,Yo=1,Wo="",Rt=null,He=null,le=!1,Nn=null,ao=!1,kv,Iv,ts=null,Ir=null,tF,aF,oF,lt,mc=null,wc=null,_v=0,Zi=0,fl=null,rR,Hi,Dl,Ob,$m,gm,Ui=null,pl=null,zc=0,Ki,sT,Sn=!1,Ev=!1,Gn,ym,Ft,Vt=null,zt,Nr=0,re=null,Ne=null,st=null,vm=!1,ml=!1,ji=!1,bm=0,Fc=0,hl=null,sF=0,wm,UT,GT,hF,Ov,Qb,ut=!1,Fv,km=!1,Ma=null,Ko=null,ya=0,Ct=!1,Ce=!1,qo=!1,Wx=!1,AR,kt=null,$o=!1,hc=!1,Im=!1,Xv=!1,Ze=null,ha=!1,wo=null,Pi=8192,CF,kF,we=0,Pe=null,me=null,ge=0,_e=0,Ea=null,Rn=!1,Ol=!1,i0=!1,Dr=0,Qe=0,$n=0,Gi=0,Rm=0,Da=0,Ll=0,Tc=null,ga=null,Qv=!1,Ym=0,w2=0,_m=1/0,Tm=null,On=null,Ke=0,Lo=null,Yi=null,Jo=0,Jv=0,eb=null,S2=null,gl=null,yl=null,xl=null,Ec=0,em=null,Il=null,Xs=null,nb=!1,Nm=!1,ev=!1,Tn=0,yc,ib,sb,gc,Hc,HF,zp,GF,qF,$F,ub=null,cb=null,ov=null,c0,jF,qR,$R,XF,So,rv=!1,hb=null,ro,WR,zr,zl,am=null,om=0,Mm=null,Tl,El=!0,Dm=null,xb=!1,zn=null,Bn=null,Fn=null,Vc,Zc,Ln,D6,Fp=null,l_,z6,Ys,cE=function(e,t){if(!c_(e))throw Error(M(299));var a=!1,o="",r=qT,n=$T,i=VT;return t!==null&&t!==void 0&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=oE(e,1,!1,null,null,a,o,null,r,n,i,uE),e[Al]=t.current,u0(e),new x0(t)},dE=function(e,t,a){if(!c_(e))throw Error(M(299));var o=!1,r="",n=qT,i=$T,s=VT,l=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),t=oE(e,1,!0,t,a!=null?a:null,o,r,l,n,i,s,uE),t.context=rE(null),a=t.current,o=Ba(),o=Sb(o),r=An(o),r.callback=null,Mn(a,r,o),a=o,t.current.lanes=a,Yc(t,a),ar(t),e[Al]=t.current,u0(e),new eh(t)},fE="19.3.0";var pE=_g(()=>{nI();Pm=U(V(),1),u_=U(Sp(),1);Oe=Object.assign,H3=Symbol.for("react.element"),Lp=Symbol.for("react.transitional.element"),uc=Symbol.for("react.portal"),Qs=Symbol.for("react.fragment"),g_=Symbol.for("react.strict_mode"),lv=Symbol.for("react.profiler"),y_=Symbol.for("react.consumer"),jo=Symbol.for("react.context"),vb=Symbol.for("react.forward_ref"),uv=Symbol.for("react.suspense"),cv=Symbol.for("react.suspense_list"),bb=Symbol.for("react.memo"),wn=Symbol.for("react.lazy"),dv=Symbol.for("react.activity"),U3=Symbol.for("react.legacy_hidden"),G3=Symbol.for("react.memo_cache_sentinel"),fv=Symbol.for("react.view_transition"),q3=Symbol.for("react.recoverable"),EI=Symbol.iterator;$3=Symbol.for("react.client.reference");cc=Array.isArray,ae=Pm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=u_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bi={pending:!1,data:null,method:null,action:null},mv=[];Qo=tr(null),Nc=tr(null),En=tr(null),im=tr(null);gv=Object.prototype.hasOwnProperty,wb=$s,Mx=kx,Z3=_x,K3=Rx,Pa=Go,j3=Ix,x_=Sx,v_=Cx,um=qs,X3=Lx,b_=wx,Y3=void 0,W3=void 0;za=Math.clz32?Math.clz32:e4,Q3=Math.log,J3=Math.LN2;Pr=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Pr,wa="__reactProps$"+Pr,Al="__reactContainer$"+Pr,DI="__reactEvents$"+Pr,o4="__reactListeners$"+Pr,r4="__reactHandles$"+Pr,PI="__reactResources$"+Pr,Wc="__reactMarker$"+Pr,cm="__reactLoad$"+Pr;__=new Set,T_={};n4=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]*$"),OI={},zI={};l4=/[\\n"\\\\]/g;u4=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(" "));c4=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"],["maskType","mask-type"],["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"]]),d4=/^[\\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;Tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u");if(Tr)try{Mi={},Object.defineProperty(Mi,"passive",{get:function(){bv=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch(e){bv=!1}Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bm=ta(Vn),Qc=Oe({},Vn,{view:0,detail:0}),f4=ta(Qc),Fm=Oe({},Qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rb,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){if("movementX"in e)return e.movementX;return e!==nc&&(nc&&e.type==="mousemove"?(zx=e.screenX-nc.screenX,Bx=e.screenY-nc.screenY):Bx=zx=0,nc=e),zx},movementY:function(e){return"movementY"in e?e.movementY:Bx}}),GI=ta(Fm),p4=Oe({},Fm,{dataTransfer:0}),m4=ta(p4),h4=Oe({},Qc,{relatedTarget:0}),Fx=ta(h4),g4=Oe({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),y4=ta(g4),x4=Oe({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v4=ta(x4),b4=Oe({},Vn,{data:0}),qI=ta(b4),w4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S4={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"},L4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};k4=Oe({},Qc,{key:function(e){if(e.key){var t=w4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rb,charCode:function(e){return e.type==="keypress"?qp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I4=ta(k4),R4=Oe({},Fm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$I=ta(R4),_4=Oe({},Vn,{submitter:0}),T4=ta(_4),E4=Oe({},Qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rb}),N4=ta(E4),A4=Oe({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),M4=ta(A4),D4=Oe({},Fm,{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}),P4=ta(D4),O4=Oe({},Vn,{newState:0,oldState:0,source:0}),z4=ta(O4),B4=[9,13,27,32],_b=Tr&&"CompositionEvent"in window;Tr&&"documentMode"in document&&(xc=document.documentMode);F4=Tr&&"TextEvent"in window&&!xc,B_=Tr&&(!_b||xc&&8<xc&&11>=xc),VI=String.fromCharCode(32);G4={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};if(Tr){if(Tr){if(pc="oninput"in document,!pc)$p=document.createElement("div"),$p.setAttribute("oninput","return;"),pc=typeof $p.oninput==="function";fc=pc}else fc=!1;G_=fc&&(!document.documentMode||9<document.documentMode)}Fa=typeof Object.is==="function"?Object.is:j4;X4=Tr&&"documentMode"in document&&11>=document.documentMode;ol={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},Hx={},Z_={};Tr&&(Z_=document.createElement("div").style,("AnimationEvent"in window)||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),("TransitionEvent"in window)||delete ol.transitionend.transition);K_=Ji("animationend"),j_=Ji("animationiteration"),X_=Ji("animationstart"),Y4=Ji("transitionrun"),W4=Ji("transitionstart"),Q4=Ji("transitioncancel"),Y_=Ji("transitionend"),W_=new Map,Cv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Cv.push("scrollEnd");dm=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)},Wa=[];nl={};eR=new WeakMap;il=[],Qa=[];kv=Error(M(519));Iv=tr(null);tF=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},aF=$s,oF=qs,lt={$$typeof:jo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};rR=ae.S;ae.S=function(e,t){if(w2=Pa(),typeof t==="object"&&t!==null&&typeof t.then==="function"&&nF(e,t),mc!==null)for(var a=Il;a!==null;)aR(a,mc),a=a.next;if(a=e.types,a!==null){for(var o=Il;o!==null;)aR(o,a),o=o.next;if(Zi!==0){o=mc,o===null&&(o=mc=[]);for(var r=0;r<a.length;r++){var n=a[r];o.indexOf(n)===-1&&o.push(n)}}}rR!==null&&rR(e,t)};Hi=tr(null);Dl=Error(M(460)),Ob=Error(M(474)),$m=Error(M(542)),gm={then:function(){}};Ki=iT(!0),sT=iT(!1);Gn=tr(null),ym=tr(0);Ft=tr(null);zt=tr(0);wm={readContext:Pt,use:Zm,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We,useEffectEvent:We},UT={readContext:Pt,use:Zm,useCallback:function(e,t){return ea().memoizedState=[e,t===void 0?null:t],e},useContext:Pt,useEffect:mR,useImperativeHandle:function(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,Xp(4194308,4,_T.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Xp(4194308,4,e,t)},useInsertionEffect:function(e,t){Xp(4,2,e,t)},useMemo:function(e,t){var a=ea();t=t===void 0?null:t;var o=e();if(ji){Cn(!0);try{e()}finally{Cn(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=ea();if(a!==void 0){var r=a(t);if(ji){Cn(!0);try{a(t)}finally{Cn(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=mF.bind(null,re,e),[o.memoizedState,e]},useRef:function(e){var t=ea();return e={current:e},t.memoizedState=e},useState:function(e){e=Mv(e);var t=e.queue,a=BT.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:jb,useDeferredValue:function(e,t){var a=ea();return Xb(a,e,t)},useTransition:function(){var e=Mv(!1);return e=MT.bind(null,re,e.queue,!0,!1),ea().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=re,r=ea();if(le){if(a===void 0)throw Error(M(407));a=a()}else{if(a=t(),Pe===null)throw Error(M(349));(ge&127)!==0||mT(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,mR(gT.bind(null,o,n,e),[e]),o.flags|=2048,Sl(9,{destroy:void 0},hT.bind(null,o,n,a,t),null),a},useId:function(){var e=ea(),t=Pe.identifierPrefix;if(le){var a=Wo,o=Yo;a=(o&~(1<<32-za(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=bm++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=sF++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Yb,useFormState:dR,useActionState:dR,useOptimistic:function(e){var t=ea();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Wb.bind(null,re,!0,a),a.dispatch=t,[e,t]},useMemoCache:Vb,useCacheRefresh:function(){return ea().memoizedState=pF.bind(null,re)},useEffectEvent:function(e){var t=ea(),a={impl:e};return t.memoizedState=a,function(){if((we&2)!==0)throw Error(M(440));return a.impl.apply(void 0,arguments)}}},GT={readContext:Pt,use:Zm,useCallback:ET,useContext:Pt,useEffect:Kb,useImperativeHandle:TT,useInsertionEffect:IT,useLayoutEffect:RT,useMemo:NT,useReducer:jp,useRef:CT,useState:function(){return jp(Ar)},useDebugValue:jb,useDeferredValue:function(e,t){var a=ot();return AT(a,Ne.memoizedState,e,t)},useTransition:function(){var e=jp(Ar)[0],t=ot().memoizedState;return[typeof e==="boolean"?e:ed(e),t]},useSyncExternalStore:pT,useId:OT,useHostTransitionStatus:Yb,useFormState:fR,useActionState:fR,useOptimistic:function(e,t){var a=ot();return vT(a,Ne,e,t)},useMemoCache:Vb,useCacheRefresh:zT,useEffectEvent:kT},hF={readContext:Pt,use:Zm,useCallback:ET,useContext:Pt,useEffect:Kb,useImperativeHandle:TT,useInsertionEffect:IT,useLayoutEffect:RT,useMemo:NT,useReducer:Vx,useRef:CT,useState:function(){return Vx(Ar)},useDebugValue:jb,useDeferredValue:function(e,t){var a=ot();return Ne===null?Xb(a,e,t):AT(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Vx(Ar)[0],t=ot().memoizedState;return[typeof e==="boolean"?e:ed(e),t]},useSyncExternalStore:pT,useId:OT,useHostTransitionStatus:Yb,useFormState:pR,useActionState:pR,useOptimistic:function(e,t){var a=ot();if(Ne!==null)return vT(a,Ne,e,t);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:Vb,useCacheRefresh:zT,useEffectEvent:kT};Ov={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ba(),r=An(o);r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=Mn(e,r,o),t!==null&&(va(t,e,o),Sc(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ba(),r=An(o);r.tag=1,r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=Mn(e,r,o),t!==null&&(va(t,e,o),Sc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ba(),o=An(a);o.tag=2,t!==void 0&&t!==null&&(o.callback=t),t=Mn(e,o,a),t!==null&&(va(t,e,a),Sc(t,e,a))}};Qb=Error(M(461));Fv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};AR=typeof WeakSet==="function"?WeakSet:Set;CF={getCacheForType:function(e){var t=Pt(lt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Pt(lt).controller.signal}},kF=typeof WeakMap==="function"?WeakMap:Map;for(gc=0;gc<Cv.length;gc++)yc=Cv[gc],ib=yc.toLowerCase(),sb=yc[0].toUpperCase()+yc.slice(1),Co(ib,"on"+sb);Co(K_,"onAnimationEnd");Co(j_,"onAnimationIteration");Co(X_,"onAnimationStart");Co("dblclick","onDoubleClick");Co("focusin","onFocus");Co("focusout","onBlur");Co(Y4,"onTransitionRun");Co(W4,"onTransitionStart");Co(Q4,"onTransitionCancel");Co(Y_,"onTransitionEnd");bl("onMouseEnter",["mouseout","mouseover"]);bl("onMouseLeave",["mouseout","mouseover"]);bl("onPointerEnter",["pointerout","pointerover"]);bl("onPointerLeave",["pointerout","pointerover"]);Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));Hc="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(" "),HF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hc));zp="_reactListening"+Math.random().toString(36).slice(2);GF=/\\r\\n?/g,qF=/\\u0000|\\uFFFD/g;$F={};c0=typeof setTimeout==="function"?setTimeout:void 0,jF=typeof clearTimeout==="function"?clearTimeout:void 0,qR=typeof Promise==="function"?Promise:void 0,$R=typeof requestAnimationFrame==="function"?requestAnimationFrame:c0,XF=typeof queueMicrotask==="function"?queueMicrotask:typeof qR<"u"?function(e){return qR.resolve(null).then(e).catch(YF)}:c0;zi.prototype.animate=function(e,t){return t=typeof t==="number"?{duration:t}:Oe({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};zi.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],r=0;r<a.length;r++){var n=a[r].effect;n!==null&&n.target===e&&n.pseudoElement===t&&o.push(a[r])}return o};zi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};Ha.prototype.addEventListener=function(e,t,a){var o=null,r=null;if(a!=null&&typeof a!=="boolean"&&(o=a.signal||null,o!==null&&o.aborted))return;this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(V2(n,e,t,a)===-1){var i=this,s=t;a!=null&&typeof a!=="boolean"&&a.once===!0&&(s=function(l){i.removeEventListener(e,t,a),typeof t==="function"?t.call(this,l):t.handleEvent(l)}),o!==null&&(r=i.removeEventListener.bind(i,e,t,a),o.addEventListener("abort",r,{once:!0}),r=o.removeEventListener.bind(o,"abort",r)),o=Rl(a),n.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:s,cleanup:r}),ba(this._fragmentFiber.child,!1,t6,e,s,o)}this._eventListeners=n};Ha.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=V2(o,e,t,a),t!==-1)){var r=o[t];a=r.attachedListener;var n=r.cleanup;r=Rl(r.optionsOrUseCapture),ba(this._fragmentFiber.child,!1,a6,e,a,r),o.splice(t,1),n!==null&&n()}};Ha.prototype.dispatchEvent=function(e){var t=Wi(this._fragmentFiber);if(t===null)return!0;t=yt(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var n=a[r];o.addEventListener(n.type,n.attachedListener,Rl(n.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(r=0;r<a.length;r++)n=a[r],o.removeEventListener(n.type,n.attachedListener,Rl(n.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};Ha.prototype.focus=function(e){ba(this._fragmentFiber.child,!0,Z2,e,void 0,void 0)};Ha.prototype.focusLast=function(e){var t=[];ba(this._fragmentFiber.child,!0,d0,t,void 0,void 0);for(var a=t.length-1;0<=a&&!Z2(t[a],e);a--);};Ha.prototype.blur=function(){var e=Wi(this._fragmentFiber);e!==null&&(e=yt(e),e=Gc(e).activeElement,e!==null&&ba(this._fragmentFiber.child,!1,o6,e,void 0,void 0))};Ha.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),ba(this._fragmentFiber.child,!1,r6,e,void 0,void 0)};Ha.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),ba(this._fragmentFiber.child,!1,n6,e,void 0,void 0);for(var a=t=0;a<So.length;a++){var o=So[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):So[t++]=o}So.length=t}};So=[];Ha.prototype.getClientRects=function(){var e=[];return ba(this._fragmentFiber.child,!1,s6,e,void 0,void 0),e};Ha.prototype.getRootNode=function(e){var t=Wi(this._fragmentFiber);return t===null?this:yt(t).getRootNode(e)};Ha.prototype.compareDocumentPosition=function(e){var t=Wi(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];ba(this._fragmentFiber.child,!1,d0,a,void 0,void 0);var o=yt(t);if(a.length===0){if(a=o,_I(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var r=o=a.compareDocumentPosition(e);return a===e?r=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=m_(t)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=yt(a).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=yt(a[0]),r=yt(a[a.length-1]);var n=_I(this._fragmentFiber)?t.parentElement:o;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),s=r.compareDocumentPosition(e),l=i&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=o&&n&&i&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||n&&r===e||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!n&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||l6(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};Ha.prototype.scrollIntoView=function(e){if(typeof e==="object")throw Error(M(566));var t=[];ba(this._fragmentFiber.child,!1,d0,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=m_(this._fragmentFiber);if(o=a?o[1]||o[0]||Wi(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=yt(o),jR(e,a);return}if(o=yt(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var r=t[o];r.tag===6?(r=yt(r),jR(r,a)):yt(r).scrollIntoView(e),o+=a?-1:1}};ro=new Map,WR=new Set;zr=Se.d;Se.d={f:g6,r:y6,D:x6,C:v6,L:b6,m:w6,X:L6,S:S6,M:C6};zl=typeof document>"u"?null:document;Tl={$$typeof:jo,Provider:null,Consumer:null,_currentValue:Bi,_currentValue2:Bi,_threadCount:0};Vc=new Map,Zc=new Map,Ln=[],D6="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(" ");eh.prototype.render=x0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));var a=t.current,o=Ba();nE(a,o,e,t,null,null)};eh.prototype.unmount=x0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nE(e.current,2,null,e,null,null),Wm(),t[Al]=null}};eh.prototype.unstable_scheduleHydration=function(e){if(e){var t=I_();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ln.length&&t!==0&&t<Ln[a].priority;a++);Ln.splice(a,0,e),a===0&&lE(e)}};l_=Pm.version;if(l_!=="19.3.0")throw Error(M(527,l_,"19.3.0"));Se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error(M(188));throw e=Object.keys(e).join(","),Error(M(268,e))}return e=z3(t),e=e!==null?p_(e):null,e=e===null?null:e.stateNode,e};z6={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ys.isDisabled&&Ys.supportsFiber)try{jc=Ys.inject(z6),Oa=Ys}catch(e){}}});var gE=Tf(function(Gae,hE){pE();function mE(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mE)}catch(e){console.error(e)}}mE(),hE.exports=v0});var IC=U(V(),1),Nf=IC.createContext(null);var RC=U(V(),1);function xe(e){let t=RC.useContext(Nf);if(!t)RB(e);return t}function RB(e){}var te=!1,_C=void 0;function ho(e){return e[e.length-1]}function tn(e,t){if(typeof e==="function")return e(t);return e}var Mf=Object.prototype.hasOwnProperty;function Tu(e){for(let t in e)if(Mf.call(e,t))return!0;return!1}var Eu=()=>Object.create(null),ci=(e,t)=>ja(e,t,!0);function ja(e,t,a,o=0){if(te)return t;if(e===t)return e;if(o++>500)return t;let r=Array.isArray(e)&&Array.isArray(t);if(!r&&!(Af(e)&&Af(t)))return t;let n=Object.keys(e),i=n.length,s=Object.keys(t),l=s.length;if(r?i!==e.length||l!==t.length||i&&ho(n)!==\`\${i-1}\`||l&&ho(s)!==\`\${l-1}\`:i!==Object.getOwnPropertyNames(e).length||l!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let u=0,d,m,p;if(r){for(;u<l;u++)if(p=u,m=e[p],d=t[p],d=m===d?m:typeof m==="object"?ja(m,d,a,o):d,d!==m)break;if(u===l&&i===l)return e}else{let g=i===l,y=!0;for(;u<l;u++){p=s[u],m=e[p];let b=t[p];d=m===b?m:typeof m==="object"?ja(m,b,a,o):b,g&&=d===m&&(n[u]===p||Mf.call(e,p)),y&&=Object.is(d,b),n[u]=d}if(g)return Object.getOwnPropertySymbols(e).length?t:e;if(y)return t}let f=r?s.fill(0):a?Eu():{};for(let g=0;g<l;g++)if(p=r?g:s[g],r){if(m=e[p],g>u)d=t[p],d=m===d?m:typeof m==="object"?ja(m,d,a,o):d;f[p]=g<u?m:d}else f[p]=n[g];return f}function Af(e){if(!e||typeof e!=="object")return!1;return(Object.getPrototypeOf(e)?.constructor??Object)===Object}function Ia(e,t,a,o){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++){let i=e[r],s=t[r];if(i!==s&&!Ia(i,s,a,o))return!1}return!0}if(Af(e)&&Af(t)){if(a){for(let n in t)if(o||t[n]!==void 0){if(!Ia(e[n],t[n],a,o))return!1}return!0}let r=0;if(o)r=Object.keys(e).length;else for(let n in e)if(e[n]!==void 0)r++;for(let n in t)if(o||t[n]!==void 0){if(r--===0||!Ia(e[n],t[n],a,o))return!1}return r===0}return!1}var _B=/[\\x00-\\x1f\\x7f"<>\`{}]/g;function TB(e){return e.replace(_B,(t)=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function TC(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,(a)=>{try{return decodeURI(a)}catch{return a}})}return TB(t)}var Df=["http:","https:","mailto:","tel:"];function yr(e){if(e[0]==="/")return;if(!e.includes(":"))return;return/^[\\x00-\\x20]*([a-z][a-z\\d+.\\t\\n\\r-]*:)/i.exec(e)?.[1]?.replace(/[\\t\\n\\r]/g,"").toLowerCase()}var Og=/^[\\x00-\\x20]*[\\\\/][\\t\\n\\r]*[\\\\/]/;function Nu(e,t){if(!e)return!1;if(Og.test(e))return!0;let a=yr(e);return a?!t.has(a):!1}function Is(e){if(!e)return e;let t=e;if(/[%\\\\\\x00-\\x1f\\x7f]/.test(e)){let a=/%25|%5C/gi,o=0,r;t="";while((r=a.exec(e))!==null)t+=TC(e.slice(o,r.index))+r[0],o=a.lastIndex;t+=TC(o?e.slice(o):e)}return t}function EC(e){if(!/[\\s\\u0080-\\uFFFF]/.test(e))return e;return e.replace(/\\s|[^\\u0000-\\u007F]/gu,encodeURIComponent)}function NC(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function an(){throw Error("Invariant failed")}function Bo(e){return e.replace(/\\/{2,}/g,"/")}function Au(e){return e==="/"?e:e.replace(/^\\/+/,"")}function $t(e){let t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\\/+$/,""):e}function Rs(e){return $t(Au(e))}function Pf(e,t){if(e?.endsWith("/")&&e!=="/"&&e!==\`\${t}/\`)return e.slice(0,-1);return e}function Mu(e,t,a="never",o){if(t.includes("//"))t=Bo(t);if(t.startsWith("/")){if(t.length===1||a==="preserve")return t;if(a==="always")return t.endsWith("/")?t:\`\${t}/\`;return t.endsWith("/")?t.slice(0,-1):t}let r=t===".",n;if(o){n=r?e:e+"\\x00"+t;let u=o.get(n);if(u)return u}let i;if(r)i=e.split("/");else{if(e.includes("//"))e=Bo(e);i=e.split("/");while(i.length>1&&ho(i)==="")i.pop();let u=t.split("/");for(let d=0,m=u.length;d<m;d++){let p=u[d];if(p===""){if(!d)i=[p];else if(d===m-1)i.push(p)}else if(p==="..")if(i.length>1)i.pop();else i=[""];else if(p===".");else i.push(p)}}if(i.length>1){if(ho(i)===""){if(a==="never")i.pop()}else if(a==="always")i.push("")}let s=i.join("/"),l=(r?Bo(s):s)||"/";if(n&&o)o.set(n,l);return l}function AC(e){let t=new Map(e.map((o)=>[encodeURIComponent(o),o])),a=new RegExp([...t.keys()].join("|").replace(/[.*()]/g,"\\\\$&"),"g");return(o)=>o.replace(a,(r)=>t.get(r)??r)}function EB(e){return e==null||e===""}function NB(e,t,a){if(typeof t!=="string")return""+(t??void 0);let o=e==="_splat";if(o&&(!t||/^[a-zA-Z0-9\\-._~!/]*$/.test(t)))return t;let r=encodeURIComponent(t);if(o)r=r.replaceAll("%2F","/");return a?a(r):r}function Du(e,t,a,o,r){let n=e.endsWith("/")?"/":"",i="";for(let s of t){if(typeof s==="string"){i+=s;continue}let[l,u,d,m]=s,p=l===2,f=p&&m!==void 0?m+n:m,g=a[u];if(l===3&&g==null)continue;if(r){if(r[u]=g,p)r["*"]=g}if(p&&EB(g)){if(d==="/"&&!f)continue;g=""}i+=d+NB(u,g,o)+(f||"")}return i+n||"/"}function on(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ca(e){return e?.isNotFound===!0}function MC(e,t=String){let a;for(let o in e){let r=e[o];if(r!==void 0)(a||=new URLSearchParams).set(o,t(r))}return a?a.toString():""}function zg(e){if(!e)return"";if(e==="false")return!1;if(e==="true")return!0;return+e*0===0&&+e+""===e?+e:e}function DC(e){let t=new URLSearchParams(e),a=Object.create(null);for(let[o,r]of t.entries()){let n=a[o];if(n==null)a[o]=zg(r);else if(Array.isArray(n))n.push(zg(r));else a[o]=[n,zg(r)]}return a}var PC=/^(?:\\s|["[{\\d-]|fa|nu|tr)/,Bg=OC(JSON.parse),Fg=zC(JSON.stringify,JSON.parse);function OC(e){let t=e===JSON.parse;return(a)=>{if(a[0]==="?")a=a.slice(1);let o=DC(a);for(let r in o){let n=o[r];if(typeof n==="string"){if(t&&!PC.test(n))continue;try{o[r]=e(n)}catch(i){}}}return o}}function zC(e,t){let a=t===JSON.parse;function o(r){if(r&&typeof r==="object")try{return e(r)}catch(n){}else if(t&&typeof r==="string"){if(a&&!PC.test(r))return r;try{return t(r),e(r)}catch(n){}}return r}return(r)=>{let n=MC(r,o);return n?\`?\${n}\`:""}}var Ra="__root__";function Of(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);if(e.href&&t.get("Location")===null)t.set("Location",e.href);let a=new Response(null,{status:e.statusCode,headers:t});if(a.options=e,e.throw)throw a;return a}function Pu(e){return e instanceof Response&&!!e.options}function _s(e){let t=new Map,a,o;return{get(r){let n=t.get(r);if(!n)return;return n.visited=!0,n.value},set(r,n){let i=t.get(r);if(i){i.value=n;return}if(t.size>=e){let l=a?.next().value;while(!l||l.visited){if(l)l.visited=!1;else a=t.values();l=a.next().value}if(l===o)a=void 0;t.delete(l.key)}let s={key:r,value:n,visited:!1};o=s,t.set(r,s)},clear(){t.clear(),a=void 0,o=void 0}}}var rn=4,FC=5;function AB(e){let t=e.names;if(t)return t;let a=[];for(let o of e)if(typeof o!=="string")a.push(o[1]);return e.names=a}function MB(e,t,a){let o=e.slice(t,a);if(o.charCodeAt(0)===36)return o.length===1?[2,"_splat","",void 0]:[1,o.slice(1),"",""];let r=o.indexOf("{");if(r>=0){let n=o.indexOf("}",r),i=o.charCodeAt(r+1)===45,s=r+(i?3:2);if(n>=0&&o.charCodeAt(s-1)===36&&(!i||s<n)){let l=o.slice(s,n);return[i?3:l?1:2,l||"_splat",o.slice(0,r),e.slice(t+n+1,l?a:e.length)]}}return o}function Ts(e,t,a,o,r,n){let i=a,s=t.fullPath??t.from,l=t.options,u=s.length,d=s.endsWith("/")?u-1:u,m=l?.caseSensitive??e,p=l?.params?.parse??l?.parseParams,f,g=n?a-1:0;if(!o||s.includes("$")){f=n?.slice()??[];let h=ho(f);if(h&&typeof h!=="string"&&h[0]===2)f[f.length-1]=[h[0],h[1],h[2],h[3]===void 0?void 0:h[3]+s.substring(a-(s[a-2]==="/"?2:1),d)],g=u}while(i<u){let h=i,x=s.indexOf("/",h),v=x===-1?u:x,w=MB(s,h,v);i=v+1;let C;if(typeof w==="string"){if(!o)continue;let I=w,L;if(m)L=o.static??=new Map;else I=w.toLowerCase(),L=o.staticInsensitive??=new Map;let k=L.get(I);if(k)C=k;else{let _=di(o);C=_,L.set(I,_)}}else{let I=w[0],L=w[2],k=w[3]??"";if(I===2)v=u,i=v+1;if(f&&g<v){if(g<h-1)f.push(s.slice(g,h-1));if(w[2]="/"+L,I===2&&w[3]!==void 0&&d<u)w[3]=k.slice(0,-1);f.push(w),g=v}if(!o)continue;let _=m&&!!(L||k);if(!m)L=L.toLowerCase(),k=k.toLowerCase();let T=I===1?o.dynamic??=[]:I===3?o.optional??=[]:o.wildcard??=[],O=I!==2&&!p&&T.find((D)=>!D.parse&&D.caseSensitive===_&&D.prefix===L&&D.suffix===k);if(O)C=O;else{let D=di(o,I,_,L,k);if(C=D,T.push(D),T.length===2)r?.push(T)}}o=C}if(f&&g<d)f.push(s.slice(g,d));let y=f?.slice();if(!o)return y;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf("/")+1)===95){let h=di(o,FC);(o.pathless??=[]).push(h),o=h}let b=(t.path||!t.children)&&!t.isRoot;if(b&&d<u){let h=di(o,rn);o.index=h,o=h}if(o.parse=p??null,o.priority=l?.params?.priority??0,!o.route){if(o.data=y,b)o.route=t}return[o,i,y]}function HC(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}if(e.prefix&&!t.prefix)return-1;if(!e.prefix&&t.prefix)return 1;if(e.suffix&&!t.suffix)return-1;if(!e.suffix&&t.suffix)return 1;if(e.caseSensitive&&!t.caseSensitive)return-1;if(!e.caseSensitive&&t.caseSensitive)return 1;return 0}function di(e,t=0,a,o,r){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:a,prefix:o,suffix:r}}function UC(e,t){let a=di(),o=[];function r(n,i,s,l){let[u,d,m]=Ts(!1,n,i,s,o,l);if(n.children)for(let p of n.children)r(p,d,u,m)}for(let n of e)r(n,1,a);for(let n of o)n.sort(HC);t.masksTree=a,t.flatCache=_s(1000)}function GC(e,t){e||="/";let a=t.flatCache.get(e);if(a!==void 0)return a;let o=Hg(e,t.masksTree);return t.flatCache.set(e,o),o}function qC(e,t,a,o,r){e||="/",o||="/";let n=t?\`case\\x00\${e}\`:e,i=r.singleCache.get(n);if(!i)i=di(),Ts(t,{from:e},1,i),r.singleCache.set(n,i);return Hg(o,i,a)}function $C(e,t,a=!1){let o=a?e:\`nofuzz\\x00\${e}\`,r=t.matchCache.get(o);if(r!==void 0)return r;e||="/";let n;try{n=Hg(e,t.segmentTree,a)}catch(i){if(i instanceof URIError)n=null;else throw i}if(n)n.branch=Ug(n.route);return t.matchCache.set(o,n),n}function VC(e,t=!1){let a=di(),o=[],r={},n={},i=0;function s(l,u,d,m){if(l.init(i),l.id in r)an();if(r[l.id]=l,i!==0&&l.path){let y=$t(l.fullPath);if(!n[y]||l.fullPath.endsWith("/"))n[y]=l}i++;let[p,f,g]=Ts(t,l,u,d,o,m);if(l._interpolation=g,l.children)for(let y of l.children)s(y,f,p,g)}s(e,1,a);for(let l of o)l.sort(HC);return{processedTree:{segmentTree:a,singleCache:_s(1000),matchCache:_s(1000),flatCache:null,masksTree:null},routesById:r,routesByPath:n}}function Hg(e,t,a=!1){let o=e.split("/"),r=PB(e,o,t,a);if(!r)return null;let[n]=ZC(e,o,r);return{route:r.node.route,rawParams:n}}function ZC(e,t,a){let o=DB(a.node),r=a.node.data&&AB(a.node.data),n=Object.create(null),i=a.extract?.part??0,s=a.extract?.node??0,l=a.extract?.path??0,u=a.extract?.param??0;for(;s<o.length;i++,s++,l++){let d=o[s];if(d.kind===rn)break;if(d.kind===FC){i--,l--;continue}let m=t[i],p=l;if(m)l+=m.length;if(d.kind===1||d.kind===3){let f=r[u++];if(d.kind===3&&a.skipped&1<<s){i--,l=p-1;continue}let g=d.suffix||d.prefix?m.substring(d.prefix.length,m.length-d.suffix.length):m;if(g||d.kind===1)n[f]=decodeURIComponent(g)}else if(d.kind===2){let f=d,g=e.substring(p+f.prefix.length,e.length-f.suffix.length),y=decodeURIComponent(g);n["*"]=y,n._splat=y;break}}if(a.rawParams)Object.assign(n,a.rawParams);return[n,{part:i,node:s,path:l,param:u}]}function Ug(e){let t=[e];while(e.parentRoute)e=e.parentRoute,t.push(e);return t.reverse(),t}function DB(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function PB(e,t,a,o){if(e==="/"&&a.index)return{node:a.index,skipped:0};let r=!ho(t),n=r&&e!=="/",i=t.length-(r?1:0),s=[{node:a,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;while(s.length){let d=s.pop(),{node:m,index:p,skipped:f,statics:g,dynamics:y,optionals:b}=d,{extract:h,rawParams:x}=d;if(m.kind===2&&m.route&&!Bf(u,d))continue;if(m.parse){if(!BC(e,t,d))continue;x=d.rawParams,h=d.extract}if(o&&m.route&&m.kind!==rn&&Bf(l,d))l=d;let v=p===i;if(v){if(m.route&&(!n||m.kind===rn||m.kind===2)&&Bf(u,d))u=d;if(!m.optional&&!m.wildcard&&!m.index&&!m.pathless)continue}let w=v?void 0:t[p],C;if(v&&m.index){let I={node:m.index,index:p,skipped:f,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x},L=!0;if(m.index.parse){if(!BC(e,t,I))L=!1}if(L){if(!y&&!b&&!f&&OB(g,i))return I;if(Bf(u,I))u=I}}if(m.wildcard)for(let I=m.wildcard.length-1;I>=0;I--){let L=m.wildcard[I],{prefix:k,suffix:_}=L;if(k){if(v)continue;if(!(L.caseSensitive?w:C??=w.toLowerCase()).startsWith(k))continue}if(_){if(v)continue;let T=t.slice(p).join("/"),O=T.slice(-_.length);if((L.caseSensitive?O:O.toLowerCase())!==_||T.length-_.length<k.length)continue}s.push({node:L,index:i,skipped:f,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x})}if(m.optional){let I=f|1<<m.depth+1;for(let L=m.optional.length-1;L>=0;L--){let k=m.optional[L];s.push({node:k,index:p,skipped:I,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x})}if(!v)for(let L=m.optional.length-1;L>=0;L--){let k=m.optional[L],{prefix:_,suffix:T}=k;if(_||T){let O=k.caseSensitive?w:C??=w.toLowerCase();if(_&&!O.startsWith(_))continue;if(T&&O.indexOf(T,O.length-T.length)<_.length)continue}s.push({node:k,index:p+1,skipped:f,statics:g,dynamics:y,optionals:b+zf(i,p),extract:h,rawParams:x})}}if(!v&&m.dynamic&&w)for(let I=m.dynamic.length-1;I>=0;I--){let L=m.dynamic[I],{prefix:k,suffix:_}=L;if(k||_){let T=L.caseSensitive?w:C??=w.toLowerCase();if(k&&!T.startsWith(k))continue;if(_&&T.indexOf(_,T.length-_.length)<k.length)continue}s.push({node:L,index:p+1,skipped:f,statics:g,dynamics:y+zf(i,p),optionals:b,extract:h,rawParams:x})}if(!v&&m.staticInsensitive){let I=m.staticInsensitive.get(C??=w.toLowerCase());if(I)s.push({node:I,index:p+1,skipped:f,statics:g+zf(i,p),dynamics:y,optionals:b,extract:h,rawParams:x})}if(!v&&m.static){let I=m.static.get(w);if(I)s.push({node:I,index:p+1,skipped:f,statics:g+zf(i,p),dynamics:y,optionals:b,extract:h,rawParams:x})}if(m.pathless)for(let I=m.pathless.length-1;I>=0;I--){let L=m.pathless[I];s.push({node:L,index:p,skipped:f,statics:g,dynamics:y,optionals:b,extract:h,rawParams:x})}}if(u)return u;if(o&&l){let d=l.index;for(let p=0;p<l.index;p++)d+=t[p].length;let m=d===e.length?"/":e.slice(d);return l.rawParams??=Object.create(null),l.rawParams["**"]=decodeURIComponent(m),l}return null}function zf(e,t){return 2**(e-t-1)}function OB(e,t){return e===2**(t-1)-1}function BC(e,t,a){let o,r;try{[o,r]=ZC(e,t,a)}catch{return null}if(a.rawParams=o,a.extract=r,!a.node.parse)return!0;try{if(a.node.parse(o)===!1)return null}catch{}return!0}function Bf(e,t){if(!e)return!0;return t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===rn)>(e.node.kind===rn)||t.node.kind===rn===(e.node.kind===rn)&&t.node.depth>e.node.depth)))}function zB(){try{return sessionStorage}catch{return}}var BB="tsr-scroll-restoration-v1_3",XC=zB();function FB(){try{return JSON.parse(XC?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}var Es=FB(),KC="data-scroll-restoration-id",HB=(e)=>e.state.__TSR_key||e.href;function UB(e){let t=e.getAttribute(KC);if(t)return\`[\${KC}="\${t}"]\`;let a="",o=e,r;while(r=o.parentNode){let n=1,i=o;while(i=i.previousElementSibling)n++;let s=\`\${o.localName}:nth-child(\${n})\`;a=a?\`\${s} > \${a}\`:s,o=r}return a}var Ff=!1,Hf="window";function Gg(e){try{return typeof e==="function"?e():document.querySelector(e)}catch{}}function jC(e){let t=new Set;for(let a of e){if(a===Hf)continue;let o=Gg(a);if(o)t.add(o)}return t}function YC(e,t){let a=t??e.options.scrollRestoration,o=e._scroll;if(a)o.e=!0;if(te??e.isServer)return;let r=e.options.getScrollRestorationKey||HB,n=new Set,i=(s)=>{let l=Es[s]||={};for(let u of n)if(u===document)l[Hf]={scrollX,scrollY};else if(u.isConnected)l[UB(u)]={scrollX:u.scrollLeft,scrollY:u.scrollTop}};if(a&&!o.s)o.s=!0,Ff=!1,history.scrollRestoration="manual",document.addEventListener("scroll",(s)=>{if(Ff)return;n.add(s.target)},!0),e.subscribe("onBeforeLoad",(s)=>{if(s.fromLocation)i(r(s.fromLocation));n.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",i(r(e.stores.resolvedLocation.get()??e.stores.location.get()));try{XC?.setItem(BB,JSON.stringify(Es))}catch{}}),addEventListener("pageshow",(s)=>{if(s.persisted)history.scrollRestoration="manual"});if(o.r)return;o.r=!0,e.subscribe("onRendered",(s)=>{let l=e.options.scrollRestorationBehavior,u=e.options.scrollToTopSelectors,d=o.n,m=o.h,p;if(n.clear(),o.n=!0,o.h=!1,typeof e.options.scrollRestoration==="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;let f=r(s.toLocation),g=s.fromLocation&&r(s.fromLocation);if(o.e&&g&&g!==f){let y=Es[g];if(y){let b=Es[f];for(let h in y){if(h===Hf){if(d)continue}else{let x=Gg(h);if(!x)continue;if(d&&u){if(p??=jC(u),p.has(x))continue}}if(!b)b=Es[f]={};b[h]??=y[h]}}}Ff=!0;try{let y=s.toLocation.hash,b=s.toLocation.state.__hashScrollIntoViewOptions??!0,h=!1;if(d){if(!y&&u)p??=jC(u);let x=y&&b&&m,v=o.e?Es[f]:void 0;if(v)for(let w in v){let{scrollX:C,scrollY:I}=v[w];if(w===Hf){if(x)continue;scrollTo({top:I,left:C,behavior:l}),h=!0}else{let L=Gg(w);if(L)L.scrollLeft=C,L.scrollTop=I,p?.delete(L)}}if(!y){let w={top:0,left:0,behavior:l};if(!h)scrollTo(w);if(p)for(let C of p)C.scrollTo(w)}}if(!h&&y&&b)document.getElementById(y)?.scrollIntoView(b)}finally{Ff=!1}})}function WC(e,t,a){let o=Rs(e),r=\`/\${o}\`,n=t?r:r.toLowerCase(),i=\`\${n}/\`,s={input:({url:l})=>{let u=t?l.pathname:l.pathname.toLowerCase();if(u===n)l.pathname="/";else if(u.startsWith(i))l.pathname=l.pathname.slice(r.length);return l},output:({url:l})=>(l.pathname=Bo(\`/\${o}\${l.pathname}\`),l)};return a?{input:({url:l})=>Uf(a,s.input({url:l})),output:({url:l})=>s.output({url:qg(a,l)})}:s}function Uf(e,t){let a=e?.input?.({url:t});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return t}function qg(e,t){let a=e?.output?.({url:t});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return t}function $g(e){let t=e;return{get(){return t},set(a){t=tn(a,t)}}}function Vg(e){return{get(){return e()}}}function QC(e,t){let{createMutableStore:a,createReadonlyStore:o,batch:r}=t,n=new Map,i=a("idle"),s=a(e),l=a(void 0),u=a([]),d=o(()=>u.get().map((y)=>n.get(y).get())),m=o(()=>({status:i.get(),isLoading:i.get()==="pending",matches:d.get(),location:s.get(),resolvedLocation:l.get()}));function p(y){let b=n.get(y);if(!b)b=a(void 0),n.set(y,b);return b}let f={status:i,location:s,resolvedLocation:l,ids:u,matches:d,byRoute:n,__store:m,getMatchStore:p,setMatches:g};function g(y){let b=u.get(),h=y.map((x)=>x.routeId);r(()=>{if(!NC(b,h))u.set(h);for(let x of b)if(!h.includes(x))n.get(x).set(()=>{return});for(let x of y){let v=p(x.routeId);if(v.get()!==x)v.set(x)}})}return f}var nn="__TSR_index",JC="popstate",ek="beforeunload",GB=/^[\\x00-\\x20]*(?:[\\\\/][\\t\\n\\r]*){2,}/;function Ou(e){let t=GB.exec(e);return t?"/"+e.slice(t[0].length):e}function Kg(e){if(/[\\x00-\\x1f\\x7f]/.test(e))e=e.replace(/[\\x00-\\x1f\\x7f]/g,(t)=>\`
7498
+ \\r\`.includes(t)?"":encodeURIComponent(t));return Ou(e)}function jg(e){let t=e.getLocation(),a=new Set,o=(i)=>{t=e.getLocation(),a.forEach((s)=>s({location:t,action:i}))},r=(i)=>{if(e.notifyOnIndexChange??!0)o(i);else t=e.getLocation()},n=async(i)=>{let s=i.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<"u"&&s?.length&&(i.type==="PUSH"||i.type==="REPLACE"))for(let l of s){let u=fi(i.path,i.state);if(await l.blockerFn({currentLocation:t,nextLocation:u,action:i.type})){e.onBlocked?.();return}}i.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:a,subscribe:(i)=>(a.add(i),()=>{a.delete(i)}),push:(i,s,l)=>{let u=t.state[nn];s=Zg(u+1,s),n({task:()=>{e.pushState(i,s),o({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:i,state:s})},replace:(i,s,l)=>{let u=t.state[nn];s=Zg(u,s),n({task:()=>{e.replaceState(i,s),o({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:i,state:s})},go:(i,s)=>{n({task:()=>{e.go(i,s?.ignoreBlocker??!1),r({type:"GO",index:i})},navigateOpts:s,type:"GO"})},back:(i)=>{n({task:()=>{e.back(i?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:(i)=>{n({task:()=>{e.forward(i?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[nn]!==0,createHref:(i)=>e.createHref(i),block:(i)=>{if(!e.setBlockers)return()=>{};let s=e.getBlockers?.()??[];return e.setBlockers([...s,i]),()=>{let l=e.getBlockers?.()??[];e.setBlockers?.(l.filter((u)=>u!==i))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:o,_getBlockers:()=>e.getBlockers?.()??[]}}function Zg(e,t){let a=Wg();return{...t,key:a,__TSR_key:a,[nn]:e}}function Gf(e){let t=e?.window??(typeof document<"u"?window:void 0),a=t.history.pushState,o=t.history.replaceState,r=[],n=()=>r,i=(L)=>r=L,s=(L)=>Kg(e?.createHref?e.createHref(L):L),l=e?.parseLocation??(()=>fi(\`\${t.location.pathname}\${t.location.search}\${t.location.hash}\`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let L=Wg();t.history.replaceState({[nn]:0,key:L,__TSR_key:L},"")}let u=l(),d,m=!1,p=!1,f=!1,g=!1,y=()=>u,b,h=()=>{if(!b)return;I._ignoreSubscribers=!0,(b[2]?t.history.pushState:t.history.replaceState)(b[1],"",b[0]),I._ignoreSubscribers=!1,b=void 0,d=void 0},x=(L,k,_)=>{let T=e?.createHref?s(k):void 0,O=!!b;if(!O)d=u;if(u=fi(k,_),b=[T??u.href,_,b?.[2]||L],!O)queueMicrotask(()=>h())},v=(L)=>{u=l(),I.notify({type:L})},w=async()=>{if(g=!1,p){p=!1;return}let L=l(),k=L.state[nn]-u.state[nn],_=k===1,T=k===-1,O=!_&&!T||m;m=!1;let D=O?"GO":T?"BACK":"FORWARD",z=O?{type:"GO",index:k}:{type:T?"BACK":"FORWARD"};if(f)f=!1;else{let R=n();if(typeof document<"u"&&R.length){for(let A of R)if(await A.blockerFn({currentLocation:u,nextLocation:L,action:D})){p=!0,t.history.go(-k),I.notify(z);return}}}u=l(),I.notify(z)},C=(L)=>{if(g){g=!1;return}let k=!1,_=n();if(typeof document<"u"&&_.length)for(let T of _){let O=T.enableBeforeUnload??!0;if(O===!0){k=!0;break}if(typeof O==="function"&&O()===!0){k=!0;break}}if(k)return L.preventDefault(),L.returnValue=""},I=jg({getLocation:y,getLength:()=>t.history.length,pushState:(L,k)=>x(!0,L,k),replaceState:(L,k)=>x(!1,L,k),back:(L)=>{if(L)f=!0,g=!0;return t.history.back()},forward:(L)=>{if(L)f=!0,g=!0;t.history.forward()},go:(L,k)=>{if(m=!0,k)f=!0,g=!0;t.history.go(L)},createHref:s,flush:h,destroy:()=>{t.history.pushState=a,t.history.replaceState=o,t.removeEventListener(ek,C,{capture:!0}),t.removeEventListener(JC,w)},onBlocked:()=>{if(d&&u!==d)u=d},getBlockers:n,setBlockers:i,notifyOnIndexChange:!1});return I._ignoreNextBeforeUnload=(L)=>{g=!1;try{L=new URL(L,t.document.baseURI).href,g=/^https?:/.test(L)&&(!L.includes("#")||L.split("#")[0]!==t.location.href.split("#")[0])}catch{}},t.addEventListener(ek,C,{capture:!0}),t.addEventListener(JC,w),t.history.pushState=function(...L){let k=a.apply(t.history,L);if(!I._ignoreSubscribers)v("PUSH");return k},t.history.replaceState=function(...L){let k=o.apply(t.history,L);if(!I._ignoreSubscribers)v("REPLACE");return k},I}function Xg(e){let t=e?.window??(typeof document<"u"?window:void 0);return Gf({window:t,parseLocation:()=>{let a=t.location.hash,o=a.indexOf("#",1);if(o<0)o=a.length;return fi(\`\${a?a.slice(1,o):"/"}\${t.location.search}\${a.slice(o)}\`,t.history.state)},createHref:(a)=>\`\${t.location.pathname}\${t.location.search}#\${a}\`})}function Yg(e={initialEntries:["/"]}){let t=e.initialEntries,a=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1,o=t.map((l,u)=>Zg(u,void 0)),r=()=>fi(t[a],o[a]),n=[];return jg({getLocation:r,getLength:()=>t.length,pushState:(l,u)=>{if(a=a<t.length-1?a+1:t.length,o[a]=u,t[a]=l,a<t.length-1)t.length=a+1,o.length=a+1},replaceState:(l,u)=>{o[a]=u,t[a]=l},back:()=>{a=Math.max(a-1,0)},forward:()=>{a=Math.min(a+1,t.length-1)},go:(l)=>{a=Math.min(Math.max(a+l,0),t.length-1)},createHref:Kg,getBlockers:()=>n,setBlockers:(l)=>n=l})}function fi(e,t){let a=Kg(e),o=a.indexOf("#"),r=a.indexOf("?");if(!t){let n=Wg();t={[nn]:0,key:n,__TSR_key:n}}return{href:a,pathname:a.slice(0,o>-1?r>-1?Math.min(o,r):o:r>-1?r:a.length),hash:o>-1?a.slice(o):"",search:r>-1?a.slice(r,o===-1?void 0:o):"",state:t}}function Wg(){return(Math.random()+1).toString(36).slice(7)}function Qg(e,t){return e.protocol!=="http:"&&e.protocol!=="https:"||e.origin!==t||!!e.username||!!e.password}function Jg(e){return e.pathname+e.search+e.hash}function tk(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function pi(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function ak({key:e,__TSR_key:t,__TSR_index:a,__hashScrollIntoViewOptions:o,...r}){return r}function nk(e){return e.findIndex((t)=>t.status==="error"||t.status==="notFound"||t._notFound)+1}function ik(e,t,a,o,r,n){if(o)t=t.slice(0,o);if(r)a=a.slice(0,r);for(let i of t){if(n&&e._tx!==n)return;if(!a.some((s)=>s.routeId===i.routeId))e.routesById[i.routeId].options.onLeave?.(i)}for(let i of a){if(n&&e._tx!==n)return;e.routesById[i.routeId].options[t.some((s)=>s.routeId===i.routeId)?"onStay":"onEnter"]?.(i)}}var ay=class{constructor(e,t){if(this.tempLocationKey=\`\${Math.round(Math.random()*1e7)}\`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async(a)=>(a(),!1),this.update=(a)=>{let o=this.options;if(this.options={...o,...a},this.isServer=this.options.isServer??te??typeof document>"u",!(te??this.isServer))this.staticLocations=new WeakMap;if(this.protocolAllowlist=new Set(this.options.protocolAllowlist),!this.history||this.options.history&&this.options.history!==this.history)if(!this.options.history){if(!(te??this.isServer))this.history=Gf()}else this.history=this.options.history;if(this.origin=this.options.origin,!this.origin)if(!(te??this.isServer)&&window?.origin&&window.origin!=="null")this.origin=window.origin;else this.origin="http://localhost";let r=this.options.basepath??"/",n=this.options.rewrite,i=this.basepath!==r||o?.rewrite!==n||o?.caseSensitive!==this.options.caseSensitive;if(i)this.basepath=r,this.rewrite=r!=="/"&&Rs(r)?WC(r,this.options.caseSensitive,n):n;if(this.history)this.updateLatestLocation();if(this.options.routeTree!==this.routeTree||(te??this.isServer)&&o?.caseSensitive!==this.options.caseSensitive){this.routeTree=this.options.routeTree;let s;if((te??this.isServer)&&globalThis.__TSR_CACHE__&&globalThis.__TSR_CACHE__.routeTree===this.routeTree&&globalThis.__TSR_CACHE__.caseSensitive===this.options.caseSensitive)s=globalThis.__TSR_CACHE__.processRouteTreeResult;else if(s=this.buildRouteTree(),(te??this.isServer)&&globalThis.__TSR_CACHE__===void 0)globalThis.__TSR_CACHE__={routeTree:this.routeTree,caseSensitive:this.options.caseSensitive,processRouteTreeResult:s};this.setRoutes(s)}if(!this.stores){if(this.latestLocation){let s=this.getStoreConfig(this);if(this.batch=s.batch,this.stores=QC(this.latestLocation,s),!(te??this.isServer))YC(this)}}else if(i)this.stores.location.set(this.latestLocation)},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let a=VC(this.routeTree,this.options.caseSensitive);if(this.options.routeMasks)UC(this.options.routeMasks,a.processedTree);return{...a,resolvePathCache:_s(1000)}},this.subscribe=(a,o)=>{let r={eventType:a,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=(a)=>{for(let o of this.subscribers)if(o.eventType===a.type)try{o.fn(a)}catch(r){console.error(r)}},this.parseLocation=(a,o)=>{let r=({pathname:l,search:u,hash:d,href:m},p)=>{if(!this.rewrite&&!/[ \\x00-\\x1f\\x7f\\u0080-\\uffff]/.test(l)){let b=this.options.parseSearch(u),h=this.options.stringifySearch(b);return{href:l+h+d,publicHref:l+h+d,pathname:Is(l),external:!1,searchStr:h,search:ci(o?.search,b),hash:Is(d.slice(1)),state:ja(o?.state,p)}}let f=Uf(this.rewrite,new URL(m,this.origin)),g=this.options.parseSearch(f.search),y=this.options.stringifySearch(g);return f.search=y,{href:f.href.replace(f.origin,""),publicHref:m,pathname:Is(Ou(f.pathname)),external:!!this.rewrite&&Qg(f,this.origin),searchStr:y,search:ci(o?.search,g),hash:Is(f.hash.slice(1)),state:ja(o?.state,p)}},n=r(a,a.state),{__tempLocation:i,__tempKey:s}=n.state;if(i&&(!s||s===this.tempLocationKey)){let l=r(i,{...i.state,__tempLocation:void 0,key:n.state.key,__TSR_key:n.state.__TSR_key});return l.maskedLocation=n,l}return n},this.matchRoutes=(a,o,r)=>{if(typeof a==="string")return this.matchRoutesInternal({pathname:a,search:o},r);return this.matchRoutesInternal(a,o)},this.getMatchedRoutes=(a)=>{let o=Object.create(null),r=$C($t(a),this.processedTree,!0);if(r)Object.assign(o,r.rawParams);return[r?.branch||[this.routesById.__root__],o,r?.route]},this.buildLocation=(a)=>{if(!(te??this.isServer)){let i=this.staticLocations.get(a);if(i)return i}let o=!1,r=(i={})=>{if(i.href){let R=fi(i.href,{});i={...i,to:Uf(this.rewrite,new URL(R.pathname,this.origin)).pathname,search:this.options.parseSearch(R.search),hash:R.hash.slice(1)}}let s=a._fromLocation||this._pendingLocation||this.latestLocation,l,u=()=>(o=!0,s),d=()=>l??=this.matchRoutesLightweight(u()),m=i.to?\`\${i.to}\`:".",p=Mu(m[0]==="/"?"":i.unsafeRelative==="path"?u().pathname:i.from??d()[1],m,this.options.trailingSlash,this.resolvePathCache),f=this.routesByPath[$t(p)],g=p.includes("$"),y;if(f)y=f._branch??=Ug(f);else if(g)y=[];else{let[R,A,E]=this.getMatchedRoutes(p);if(y=R,this.options.notFoundRoute&&(!E||E.path!=="/"&&A["**"]))y=[...y,this.options.notFoundRoute]}let b=g?f?._interpolation??Ts(!1,{fullPath:p},0):void 0,h;for(let R of y){let A=R.options.params?.stringify??R.options.stringifyParams;if(A){let E=d()[3];if(h??=ey(i.params,E),!Tu(h))break;if(h===E)h=Object.assign(Eu(),h);try{Object.assign(h,A(h))}catch{}}}h??=ey(i.params,qB(i.params,b)?d()[3]:ty);let x=a.leaveParams?p:Ou(Is(b?Du(p,b,h,this.pathParamsDecoder):p)),v=$B(y,a._includeValidateSearch),w=()=>{let R=d()[2];if(a._includeValidateSearch&&this.options.search?.strict){let A={};y.forEach((E)=>{if(E.options.validateSearch)try{Object.assign(A,qf(E.options.validateSearch,{...A,...R}))}catch{}}),R=A}return R},C=v.length?VB(v,w(),i):i.search===!0?w():typeof i.search==="function"?i.search(w()):i.search||ty,I=this.options.stringifySearch(C),L=i.hash===!0?u().hash:typeof i.hash==="function"?i.hash(u().hash):i.hash||void 0,k=L?\`#\${L}\`:"",_=!i.state?ty:i.state===!0?u().state:typeof i.state==="function"?i.state(u().state):i.state,T=\`\${x}\${I}\${k}\`,O,D,z=!1;if(this.rewrite){let R=new URL(T,this.origin),A=R.origin,E=qg(this.rewrite,R);if(O=Jg(R),Qg(E,A))D=E.href,z=!0;else D=Ou(Jg(E))}else O=EC(T),D=O;return{publicHref:D,href:O,pathname:x,search:C,searchStr:I,state:_,hash:L??"",external:z,unmaskOnReload:i.unmaskOnReload}},n=r(a);if(a.mask)n.maskedLocation=r({from:a.from,...a.mask});else if(this.options.routeMasks){let i=GC(n.pathname,this.processedTree);if(i){let s=Object.assign(Eu(),i.rawParams),{from:l,params:u,...d}=i.route,m=ey(u,s);n.maskedLocation=r({from:a.from,...d,params:m})}}if(!(te??this.isServer)&&!o&&a._fromLocation)this.staticLocations.set(a,n);return n},this.commitLocation=async({viewTransition:a,ignoreBlocker:o,...r})=>{if(te??this.isServer)return;let n=r.maskedLocation??r;if(n.external&&!(te??this.isServer))return ok(this,n.publicHref,{replace:r.replace,ignoreBlocker:o});let i,s=$t(this.latestLocation.href)===$t(r.href)&&Ia(ak(r.state),ak(this.latestLocation.state)),l=this._commitPromise,u,d=new Promise((m)=>{u=m});if(d.resolve=()=>{u(),l?.resolve()},this._commitPromise=d,s)this.load();else{let{maskedLocation:m,hashScrollIntoView:p,...f}=r;if(m){if(f={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...f,search:f.searchStr,state:{...f.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},f.unmaskOnReload??this.options.unmaskOnReload??!1)f.state.__tempKey=this.tempLocationKey}if(f.state={...f.state,__hashScrollIntoViewOptions:p??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=a,i=r.replace?"REPLACE":"PUSH",this.history[i==="REPLACE"?"replace":"push"](f.publicHref,f.state,{ignoreBlocker:o}),!this.history.subscribers.size)this.load({action:{type:i}})}return this._scroll.n=r.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:a,resetScroll:o,hashScrollIntoView:r,viewTransition:n,ignoreBlocker:i,...s}={})=>{if(te??this.isServer)return Promise.resolve();let l=this.buildLocation({...s,_includeValidateSearch:!0});this._pendingLocation=l;let u=this.commitLocation({...l,viewTransition:n,replace:a,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:i});return queueMicrotask(()=>{if(this._pendingLocation===l)this._pendingLocation=void 0}),u},this.navigate=async({to:a,reloadDocument:o,href:r,publicHref:n,...i})=>{if(te??this.isServer)return;let s=r?yr(r):void 0;if(s||o){if(a!==void 0||!r){let u=this.buildLocation({to:a,...i}),d=u.maskedLocation??u;r??=d.publicHref,n??=d.publicHref}return ok(this,!s&&n?n:r,i)}return this.buildAndCommitLocation({...i,href:r,to:a,_isNavigate:!0})},this.load=async(a)=>{if(te??this.isServer)return _C(this,a);if(this.updateLatestLocation(),a?.action)this._scroll.h=a.action.type==="PUSH"||a.action.type==="REPLACE";await lk(this,a)},this.startViewTransition=(a)=>{let o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&!(te??typeof document>"u")&&typeof document.startViewTransition==="function"){let r;if(typeof o==="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){let n=this.latestLocation,i=this.stores.resolvedLocation.get(),s=typeof o.types==="function"?o.types(pi(n,i)):o.types;if(s===!1)return a();r={update:a,types:s}}else r=a;return document.startViewTransition(r).updateCallbackDone}return a()},this.invalidate=(a)=>{let o=this._committed,r=a?.filter,n=this._preloads,i=new Set,s=(d)=>{if(!r||r(d))i.add(d.id)};o.forEach(s),this._cache.forEach(s),n?.forEach((d)=>d.forEach(s)),this._tx?.[3].forEach(s);let l=[];for(let[d,m]of n??[])if(m.some((p)=>i.has(p.id)))n.delete(d),l.push(d);let u=(d)=>{if(i.has(d.id)){let m=this.routesById[d.routeId],p={...d,invalid:!0,...(a?.forcePending||d.status==="error"||d.status==="notFound")&&tk(m)?{status:"pending",error:void 0}:void 0};return d._flight=void 0,p}return d};this._committed=o.map(u);for(let[d,m]of this._cache)if(i.has(d)){if(m.invalid=!0,a?.forcePending)m.status="pending"}for(let d of i){let m=this._flights?.get(d);if(this._flights?.delete(d),m&&!m[2])l.push(m[1])}for(let d of l)d.abort();return this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.resolveRedirect=(a)=>{let o=a.options,r=a.headers.get("Location")||o.href;if(!r){let i=this.buildLocation(o);r=(i.maskedLocation??i).publicHref||"/"}let n;if(Og.test(r)||(n=yr(r))&&!this.protocolAllowlist.has(n))throw Error("Redirect blocked: unsafe protocol");if(n==="http:"||n==="https:"){let i=new URL(r);if(i.pathname.startsWith("//"))r=i.href;else if(!Qg(i,this.origin))r=Jg(i),n=void 0}if(n)o.reloadDocument=!0;return o.href=r,a.headers.set("Location",r),a},this.clearCache=(a)=>{let o=this._cache,r=this._preloads,n=a?.filter,i=[],s=[];for(let[u,d]of o)if(!n||n(d))s.push(u),i.push(d);let l=[];for(let[u,d]of r??[])if(!n||d.some(n))l.push(u),i.push(...d);for(let u of s)o.delete(u);for(let u of l)r.delete(u);for(let u of i){let d=u._flight;if(u._flight=void 0,d&&!--d[2]){if(this._flights?.get(u.id)===d)this._flights.delete(u.id);l.push(d[1])}}for(let u of l)u.abort()},this.loadRouteChunk=mi,this.preloadRoute=(a)=>uk(this,a),this.matchRoute=(a,o)=>{let r={...a,to:a.to?Mu(a.from||"",a.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:a.params||{},leaveParams:!0},n=this.buildLocation(r),i=this.stores.status.get()==="pending";if(o?.pending&&!i)return!1;let s=o?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),l=qC(n.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,s.pathname,this.processedTree);if(!l)return!1;if(a.params){if(!Ia(l.rawParams,a.params,!0))return!1}if(o?.includeSearch??!0)return Ia(s.search,n.search,!0)?l.rawParams:!1;return l.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length)this.pathParamsDecoder=AC(e.pathParamsAllowedCharacters);if(this.update({defaultPreloadDelay:50,defaultPendingMs:1000,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??Fg,parseSearch:e.parseSearch??Bg,protocolAllowlist:e.protocolAllowlist??Df}),!(te??typeof document>"u"))self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){if(Object.assign(this,e),this.lightweightCache=new WeakMap,!(te??this.isServer))this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;if(t){if(t.init(99999999999),this.routesById[t.id]!==t)t._interpolation=Ts(!1,t,0);this.routesById[t.id]=t}}matchRoutesInternal(e,t){let[a,o,r]=this.getMatchedRoutes(e.pathname),n=a,i=!1;if(r?r.path!=="/"&&o["**"]:$t(e.pathname))if(this.options.notFoundRoute)n=[...n,this.options.notFoundRoute];else i=!0;let s=i?ZB(this.options.notFoundMode,n):void 0,l=Array(n.length),u=this._committed,d=(p,f)=>{let g=u[f];return g?.routeId===p.id?g:p===this.options.notFoundRoute?u.find((y)=>y.routeId===p.id):void 0},m;for(let p=0;p<n.length;p++){let f=n[p],g=l[p-1],y,b,h;{let z=g?.search??e.search,R=g?._strictSearch??void 0;try{let A=qf(f.options.validateSearch,{...z})??void 0;y={...z,...A},b={...R,...A}}catch(A){let E=A;if(!(A instanceof Ns))E=new Ns(A.message,{cause:A});if(t?.throwOnError)throw E;y=z,b={},h=E}}let x="",v="";try{x=f.options.loaderDeps?.({search:y})??"",v=x?JSON.stringify(x)||"":""}catch(z){if(t?.throwOnError)throw z;h??=z}let w=Eu(),C=f._interpolation?Du(f.fullPath,f._interpolation,o,this.pathParamsDecoder,w):f.fullPath,I=f.id+C+v,L=d(f,p),k=this._cache.get(I)??(L?.id===I?L:void 0);m=k?._strictParams??Object.assign(w,m);let _;if(!k)try{rk(f,m)}catch(z){if(ca(z)||Pu(z))_=z;else _=new sk(z.message,{cause:z});if(t?.throwOnError)throw _}let T=L?"stay":"enter",O;if(k)O={...k,cause:T,search:L?ci(L.search,y):ci(k.search,y),_strictSearch:b,searchError:h};else{let z=tk(f)?"pending":"success";O={id:I,ssr:te??this.isServer?void 0:f.options.ssr,index:p,routeId:f.id,params:L?.params??m,_strictParams:m,pathname:C,updatedAt:Date.now(),search:L?ci(L.search,y):y,_strictSearch:b,searchError:h,status:z,isFetching:!1,error:void 0,paramsError:_,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:L?ja(L.loaderDeps,x):x,invalid:!1,preload:!1,staticData:f.options.staticData||{},fullPath:f.fullPath}}let D=s===f.id;if(O._notFound&&!D)O.error=void 0;O._notFound=D,l[p]=O}for(let p=0;p<l.length;p++){let f=l[p];if(f.params=f.cause==="stay"?ci(f.params,m):m,t?._controller)f.context={}}return l}matchRoutesLightweight(e){let t=ho(this.stores.ids.get()),a=t?this.stores.byRoute.get(t).get():void 0,o=a?.id,r=this.lightweightCache.get(e);if(r&&r[0]===o)return r[1];let[n,i]=this.getMatchedRoutes(e.pathname),s=ho(n),l={...e.search};for(let p of n)try{Object.assign(l,qf(p.options.validateSearch,l))}catch{}let u=a&&a.routeId===s.id&&a.pathname===e.pathname,d;if(u)d=a.params;else{let p=i;for(let f of n)try{rk(f,p)}catch{}d=p}let m=[n,s.fullPath,l,d];return this.lightweightCache.set(e,[o,m]),m}};async function ok(e,t,{replace:a,ignoreBlocker:o}){if(Nu(t,e.protocolAllowlist))return;if(!o){let r=e.history._getBlockers();for(let n of r)if(n?.blockerFn){if(await n.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:a?"REPLACE":"PUSH"}))return}}if(e.history._ignoreNextBeforeUnload?.(t),a)window.location.replace(t);else window.location.href=t}var Ns=class extends Error{},sk=class extends Error{};function qf(e,t){if(e==null)return{};if("~standard"in e){let a=e["~standard"].validate(t);if(a instanceof Promise)throw new Ns("Async validation not supported");if(a.issues)throw new Ns(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}if("parse"in e)return e.parse(t);if(typeof e==="function")return e(t);return{}}function ey(e,t){if(e===void 0||e===!0)return t;let a=Object.create(null);if(e===!1||e===null)return a;if(typeof e==="function")return Object.assign(a,t),Object.assign(a,e(a));return Object.assign(a,t,e)}function qB(e,t){if(typeof e==="function")return!0;if(!t||e===!1||e===null)return!1;return e===void 0||e===!0||t.some((a)=>typeof a!=="string"&&!Mf.call(e,a[1]))}var ty=Object.freeze({});function $B(e,t){let a=[];for(let o=0;o<e.length;o++){let r=e[o].options;if("search"in r){if(r.search?.middlewares)a.push(...r.search.middlewares)}else if(r.preSearchFilters||r.postSearchFilters){let i=({search:s,next:l})=>{let u=l(r.preSearchFilters?r.preSearchFilters.reduce((d,m)=>m(d),s):s);return r.postSearchFilters?r.postSearchFilters.reduce((d,m)=>m(d),u):u};a.push(i)}let n=r.validateSearch;if(t&&n){let i=({search:s,next:l,meta:u})=>{let d=l(s);try{let m=qf(n,d);if(u&&m){for(let p in m)if(!(p in d))(u.defaulted||=new Map).set(p,m[p])}return{...d,...m}}catch{}return d};a.push(i)}}return a}function VB(e,t,a){let o=(r,n,i)=>{if(r>=e.length){if(!a.search)return{};if(a.search===!0)return n;let l=tn(a.search,n);if(i)i.explicit=l;return l}let s=(l,u)=>{if(u){let d=i||{};return{search:o(r+1,l,d),meta:d}}return o(r+1,l,i)};return e[r]({search:n,next:s,meta:i})};return o(0,t)}function ZB(e,t){if(e!=="root"){let a;for(let o=t.length-1;o>=0;o--){let r=t[o];if(r.options.notFoundComponent)return r.id;a||=r.children&&r.id}if(a)return a}return Ra}function rk(e,t){let a=e.options.params?.parse??e.options.parseParams;if(a)Object.assign(t,a(t))}function oy(e,t){return e.options[t]?.preload?.()}function KB(e,t){let a=oy(e,"component"),o=oy(e,"pendingComponent");if(t)if(o)o=o.then(t);else t();if(a&&o)return Promise.all([a,o]).then(()=>{});return a??o}function mi(e,t,a){let o=()=>t===!1?void 0:t?oy(e,t):KB(e,a),r=e._lazy;if(r)return r===!0?o():r.then(o);if(!e.lazyFn)return o();let n=e.lazyFn().then((i)=>{{let{id:s,...l}=i.options;Object.assign(e.options,l),e._lazy=!0}},(i)=>{throw e._lazy=void 0,i});return e._lazy=n,n.then(o)}function Vf(e){let t=e.findIndex((a)=>a.status!=="success"||a._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function iy(e,t,a){let o=e._tx;return t&&o?.[2]===a&&!o[3].some((r)=>r.routeId===t)}var Fo=0,vr=1,Zf=2,Xt=3,sn=[4];function Fu(e){return typeof e[0]==="number"}function gi(e,t){if(t.aborted)return Promise.race([Promise.reject(t),e]);return new Promise((a,o)=>{let r=()=>o(t);t.addEventListener("abort",r,{once:!0}),Promise.resolve(e).then(a,o).then(()=>t.removeEventListener("abort",r))})}function yi(e,t){return e.routesById[t.routeId]}function Hu(e,t,a){if(Pu(e))return[Xt,e];if(ca(e))return e.routeId||=a,[Zf,e];if(!t)return[Fo,e];if(typeof e?.then==="function")e=Error("A Promise was thrown",{cause:e});return[vr,e]}function sy(e,t){let a=Hu(t,!0,e.id);if(a[0]!==vr)return a;try{e.options.onError?.(a[1])}catch(o){a=Hu(o,!0,e.id)}return a}function Bu(e,t,a,o,r){if(r[0].signal.aborted)return sn;return cy(e,t,a,sy(a,o),r)}async function jB(e,t,a,o,r,n){let[i,s]=t,l=a[0].signal,u=!!a[3];for(let d=a[6]??0;d<o;d++){let m=s[d],p=yi(e,m);m.abortController=a[0];let f=s[d-1]?.context??e.options.context??{},g={params:m.params,location:i,navigate:(x)=>e.navigate({...x,_fromLocation:i}),buildLocation:e.buildLocation,cause:u?"preload":m.cause,abortController:a[0],preload:u,matches:s,routeId:p.id};try{let x=m._ctx||=p.options.context?p.options.context({...g,deps:m.loaderDeps,context:f})||{}:void 0;m.context={...f,...x}}catch(x){return xr(e,m),[d,Bu(e,t,p,x,a)]}if(l.aborted)return[d,sn];let y=m.paramsError??m.searchError;if(y!==void 0)return xr(e,m),[d,Bu(e,t,p,y,a)];let b=p.options.beforeLoad;if(!b)continue;let h=m.status;if(d>=n)m.status="pending",a[7]?.();try{Uu(e,m,"beforeLoad",a[0]);let x=b({...g,search:m.search,context:m.context,...e.options.additionalContext}),v=await(typeof x?.then==="function"?gi(x,l):x);if(l.aborted)return[d,sn];let w=cy(e,t,p,Hu(v,!1,p.id),a);if(w[0]!==Fo)return xr(e,m),[d,w];m.context={...m.context,...v}}catch(x){return xr(e,m),[d,Bu(e,t,p,x,a)]}finally{m.status=h,Uu(e,m,!1,a[0])}}r()}function ly(e,t,a){if(!a||--a[2])return;if(e._flights?.get(t.id)===a){let o=e._tx;if(o&&!o[0].signal.aborted&&!o[3].includes(t)&&o[3].some((r)=>r.id===t.id)&&o[3].some((r)=>r.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return a[1]}function xr(e,t){let a=t._flight;t._flight=void 0,ly(e,t,a)?.abort()}function da(e,t,a,o){let r=[];for(let n of t)if(!a?.includes(n)){let i=n._flight;if(n._flight=void 0,o&&i?.[2]===1&&e._flights?.get(n.id)===i&&a?.some((s)=>s.id===n.id))i[2]=0;else{let s=ly(e,n,i);if(s)r.push(s)}}for(let n of r)n.abort()}function uy(e){for(let t of e){let a=t._flight;if(a)a[2]++}}function Uu(e,t,a,o){if(t.isFetching=a,o&&e._tx?.[0]!==o)return;let r=e.stores.byRoute.get(t.routeId),n=r?.get();if(n?.id===t.id)r.set({...n,isFetching:a})}function hk(e,t,a,o,r,n,i){let s=t[0];return{params:a.params,location:s,navigate:(l)=>e.navigate({...l,_fromLocation:s}),cause:i?"preload":a.cause,abortController:r,preload:i,deps:a.loaderDeps,parentMatchPromise:n,context:a.context,route:o,...e.options.additionalContext}}async function ck(e,t,a,o,r,n,i){let s=i[0],l=s.signal;if(l.aborted)return sn;if(!r)return[Fo,void 0];let u=a._flight;Uu(e,a,"loader",s);try{if(!u){let d=new AbortController;u=[Promise.resolve().then(()=>r(hk(e,t,a,o,d,n,!!i[3]))).then((m)=>Hu(m,!1,o.id),(m)=>Hu(m,!0,o.id)).then((m)=>{if(m[0]!==Fo&&e._flights?.get(a.id)===u){if(e._flights.delete(a.id),!u[2])d.abort()}return m[0]===vr&&u[2]?sy(o,m[1]):m}),d,1],(e._flights??=new Map).set(a.id,u)}return a._flight=u,a.abortController=u[1],cy(e,t,o,await gi(u[0],l),i)}catch(d){if(d!==l||!l.aborted)throw d;return xr(e,a),sn}finally{Uu(e,a,!1,s)}}function dk(e,t,a){if(t[0]===Xt)return;if(e.status="success",e.error=void 0,t[0]===Fo)e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=a;else e.invalid=!0}function XB(e,t,a){let o=e._cache.get(t.id);if(o!==a||e._committed.some((n)=>n.id===t.id&&n._flight===t._flight))return;let r={...t,_notFound:void 0,context:{}};if(r._flight)r._flight[2]++;if(e._cache.set(t.id,r),o)xr(e,o)}function fk(e,t){if(t[0]===vr||t[0]===Zf)return{...e,status:t[0]===vr?"error":"notFound",error:t[1],_flight:void 0};return e}function YB(e,t,a,o,r,n,i){let s=t[1][a],l=yi(e,s),u=!!n[3],d=e._cache.get(s.id),m,p=!1,f;try{if(s.status==="success"){if(m=l.options.shouldReload,typeof m==="function")m=m(hk(e,t,s,l,n[0],r,u));if(n[0].signal.aborted)f=sn}if(!f)if(s.status!=="success")p=!0;else{let D=u||s.preload?l.options.preloadStaleTime??e.options.defaultPreloadStaleTime??30000:l.options.staleTime??e.options.defaultStaleTime??0;p=!!(s.invalid||m||m===void 0&&Date.now()-s.updatedAt>=D&&(n[5]||s.cause==="enter"||n[2].some((z)=>z.routeId===s.routeId&&z.id!==s.id)))}}catch(D){s.invalid=!0,xr(e,s),f=Bu(e,t,l,D,n)}let g=l.options.loader,y=typeof g==="function",b=y?g:g?.handler,h=!u||l.options.preload!==!1,x=h&&g?e._flights?.get(s.id):void 0;if(x===s._flight||f)x=void 0;else if(x&&!p&&!u&&m===void 0)p=!0;else if(!p)x=void 0;let v=!!(g&&p&&s.status==="success"&&!u&&!n[4]&&((y?void 0:g.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),w=p&&h,C=w&&!v&&(s.status!=="success"||!!g),I=a>=i?n[7]:void 0,L=l.lazyFn&&l._lazy!==!0?I:void 0;if(w&&!g)s.invalid=!1,s.updatedAt=Date.now();if(x)x[2]++;if(C){let D=s._flight;if(s._flight=x,ly(e,s,D)?.abort(),a>=i)s.status="pending";I?.()}if(!w)s.isFetching=!1;let k=!f&&C?ck(e,t,s,l,b,r,n).then((D)=>{if(dk(s,D,u),D[0]===Fo){if(g&&!n[0].signal.aborted)XB(e,s,d);if(a>=i)s.status="pending"}return D}):Promise.resolve(f??[Fo,s.loaderData]),_=(async()=>{try{let z=mi(l,void 0,L);if(z)await gi(z,n[0].signal)}catch(z){if(!t[1].some((R,A)=>A<=a&&(R.status==="error"||R.status==="notFound"||R._notFound)))return[a,Bu(e,t,l,z,n)]}let D=await k;if(C&&D[0]===Fo&&s.status==="pending"&&!n[0].signal.aborted)s.status="success",I?.()})();if(o.push([a,k,_]),!v)return k.then((D)=>fk(s,D));let T={...s,status:"pending",preload:!1,_flight:x};s.invalid=!1,s.isFetching="loader";let O=ck(e,t,T,l,b,r,n).then((D)=>(s.isFetching=!1,dk(T,D,!1),D));return(t[2]??=[]).push([a,O,_,T]),O.then((D)=>fk(T,D))}async function ry(e,t,a,o,r=0){let n=a?.[1][1],i=n?.routeId?t.findIndex((s)=>s.routeId===n.routeId):a?.[0]??t.length-1;if(i<0)i=0;for(let s=i;s>=0;s--){let l=yi(e,t[s]);try{let u=mi(l,!1);if(u)await gi(u,o)}catch(u){if(u===o&&o.aborted)throw u}if(l.options.notFoundComponent)return s}return n?.routeId?i:r}function hi(e,t){if(t[2])da(e,t[2].map((a)=>a[3])),t[2]=void 0}async function pk(e,t,a,o){let r;try{await Promise.all(e.map((n)=>n[1].then(async(i)=>{let s=n[0];if(o&&s>=await o)return;if(i[0]>=Xt)throw[s,i];if(!r&&i[0]!==Fo)r=[s,i],await Promise.all((a??[]).map((l)=>{if(l[0]<=s)return;return l[1].then((u)=>{if(u[0]===Xt)throw[l[0],u]})}))})))}catch(n){return n}return t??r}function cy(e,t,a,o,r,n){while(o[0]===Xt){let i=o[1],s=i.options;try{if(s.href||i.headers.has("Location")){if(e.resolveRedirect(i),s.reloadDocument)return o}if(s.reloadDocument?r[3]:r[1]>=20)return o;let l=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),u=l.maskedLocation??l;if(u.external){let d=i.clone();return d.options={...s},d.headers.set("Location",u.publicHref),e.resolveRedirect(d),r[3]?[Xt,d]:[Xt,d,u]}return[Xt,i,l]}catch(l){o=n?[vr,l]:sy(a,l),n=!0}}return o}async function gk(e,t,a,o,r,n){let i=t[1],s=await r,l=!1,u=i.findIndex((f)=>f._notFound),d=(f)=>f[1][0]===Zf?ry(e,i,f,o.signal):f[0],m=u<0?i.length:u;if((s?.[1][0]??0)>=Xt)m=0;else if(s){m=s[2]??=await d(s);for(let f of a){if(f[0]>=m)break;let g=await f[1];if(g[0]!==Fo&&g[0]<Xt&&!("loaderData"in i[f[0]])){s=[f[0],g],m=s[2]=await d(s);break}}}for(let f of a){if(f[0]>=m)break;let g=await f[2];if(!g)continue;s=g;break}if((s?.[1][0]??0)>=Xt){let f=s[1];if(f[0]!==Xt||f[1].options.reloadDocument||f[2])return hi(e,t),f;l=!0,s=[0,[vr,Error("Too many redirects")]]}let p=s?s[2]??await d(s):u;if(p>=0){let f=s?.[1],g=f?.[0],y=i[p],b=f?.[1],h=()=>{if(f){if(y._notFound=void 0,g===vr)y.status="error";else if(b.routeId=y.routeId,y.routeId===e.routeTree.id)y.status="success",y._notFound=!0;else y.status="notFound";y.error=b,y.isFetching=!1}};if(h(),!f)n?.();let x=yi(e,y);try{await gi(f?Promise.resolve().then(()=>mi(x,g===vr?"errorComponent":"notFoundComponent")):Promise.all([mi(x),mi(x,"notFoundComponent")]),o.signal)}catch(v){if(v===o.signal&&o.signal.aborted)return hi(e,t),sn}if(!f)y.status="success";else if(l)o.abort(),await Promise.all([...a.map((v)=>v[1]),...a.map((v)=>v[2]),...(t[2]??[]).map((v)=>v[1])]),hi(e,t),da(e,i),h()}return t}async function yk(e,t,a,o=0,r=t[1].length){let n=t[1];for(let i=o;i<r;i++){let s=n[i],l=yi(e,s).options;if(l.head||l.scripts)try{let u={ssr:e.options.ssr,matches:n,match:s,params:s.params,loaderData:s.loaderData},[d,m]=await gi(Promise.all([l.head?.(u),l.scripts?.(u)]),a);s.meta=d?.meta,s.links=d?.links,s.headScripts=d?.scripts,s.styles=d?.styles,s.scripts=m}catch(u){if(u===a&&a.aborted)break;console.error(u)}if(s.status!=="success"||s._notFound)break}return t}async function xk(e,t,a,o){let r=[t,a],n=o[0].signal,i;try{let s=e.stores.matches.get(),l=a.findIndex((h)=>h._notFound);if(e.options.notFoundMode!=="root"&&l>=0){let h=await ry(e,a,void 0,n,l);a[l]._notFound=void 0,a[h]._notFound=!0,l=h}let u=l<0?a.length:l+1,d=0;while(d<u&&d!==l){let h=a[d],x=o[2][d],v=s[d];if(x?.id!==h.id||x.status!=="success"||h.preload||v?.id!==h.id||v.status!=="success")break;if(d++,x._notFound||v._notFound)break}let m=[],p=o[6]??0,f=p?Promise.resolve(a[p-1]):void 0,g=()=>{for(let h=p;h<u;h++){if(n.aborted)break;f=YB(e,r,h,m,f,o,d)}},y=await jB(e,r,o,u,g,d);if(y){if(o[4]=!0,u=y[0],y[1][0]===Zf){let h=await ry(e,a,y,n);y[2]=h,u=Math.min(u,h+1)}else if(y[1][0]>=Xt)u=0;g()}if(!n.aborted&&!o[3]){let h=[];for(let[x,v]of e._flights??[])if(!v[2])e._flights.delete(x),h.push(v[1]);for(let x of h)x.abort()}let b=gk(e,r,m,o[0],pk(m,y,r[2]),o[7]);if(r[2]?.length)r[3]=pk(r[2],void 0,void 0,b.then((h)=>Fu(h)?0:Vf(a).length,()=>0));i=await b}catch(s){if(hi(e,r),s===n&&n.aborted)return sn;throw s}if(Fu(i))return i;return yk(e,i,n,o[6]===a.length?o[6]:0)}function ny(e,t){if(e._tx!==t)return;let a=t[3],o=e.stores.matches.get(),r=e._pending;for(let n=0;n<a.length;n++){let i=a[n],s=i.status==="success"&&!i._notFound,l=o[n]?.id===i.id&&o[n]?.status==="pending";if(s&&!l)continue;let u=yi(e,i),d=s||i.invalid?0:u.options.pendingMs??e.options.defaultPendingMs,m=u.options.pendingComponent??e.options.defaultPendingComponent;if(!m||typeof d!=="number"||d===1/0){if(r)r[0]=t,r[2]=0,r[4]=!0;return}let p=u.options.pendingMinMs??e.options.defaultPendingMinMs??0,f=!1;if(r?.[1]===i.id)f=r[0]!==t,r[0]=t;else clearTimeout(r?.[3]),e._pending=r=void 0;if(!r)e._pending=r=[t,i.id,l?Date.now()+p:t[4]+d,void 0,l||void 0,m];if(r[4]&&!f&&r[5]===m)return;if(r[5]=m,!r[4]){clearTimeout(r[3]);let b=r[2]-Date.now();if(b>0){r[3]=setTimeout(()=>ny(e,t),b);return}r[2]=0}let g=a.map((b)=>({...b,_flight:void 0}));g[n].status="pending";let y=r[4]=e.startTransition(()=>e.stores.setMatches(g),g).then((b)=>{if(b&&e._pending===r&&r[4]===y&&!r[2])r[2]=Date.now()+p;return b});return}}function zu(e,t){let a=e._pending;if(e._tx===t||!e._tx?.[3].some((o)=>o.id===a?.[1]))clearTimeout(a?.[3]),e._pending=void 0}async function mk(e,t){let a=e._pending;if(!a)return;clearTimeout(a[3]);let o=a[2]-Date.now();if(!a[4]||o<=0||!Vf(t[3]).some((n)=>n.id===a[1]))return;let r;try{await gi(new Promise((n)=>{r=setTimeout(n,o)}),t[0].signal)}catch{}clearTimeout(r)}function vk(e,t){e._committed=t,e.stores.setMatches(t)}function WB(e,t,a,o){let{_committed:r,_lifecycleEnd:n,_cache:i}=e;for(let d of a)if(d.preload=!1,o)d._assetEnd=void 0;let s=Vf(a).length,l=new Map;{let d=Date.now(),m=new Set;for(let p=0;p<a.length;p++){let f=a[p];if(p<s||f.status==="success")m.add(f.id)}for(let p of[...r,...i.values()]){if(p.status!=="success"||m.has(p.id))continue;let f=yi(e,p);if(!f.options.loader||d-p.updatedAt>=(p.preload?f.options.preloadGcTime??e.options.defaultPreloadGcTime??300000:f.options.gcTime??e.options.defaultGcTime??300000))continue;l.set(p.id,i.get(p.id)===p?p:{...p,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=l;let u=e._lifecycleEnd=nk(a);vk(e,a),da(e,[...i.values(),...r].filter((d)=>d._flight&&l.get(d.id)!==d),a),ik(e,r,a,n,u,t)}async function $f(e,t){let a=e._tx;while(a&&a!==t)t=a,await a[5],a=e._tx}function bk(e,t,a){let o=a[1].options,r=a[2];if(!r)return e.navigate({...o,replace:!0,ignoreBlocker:!0});if(o.reloadDocument)return e.navigate({href:(r.maskedLocation??r).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});r._redirects=t[1]+1,e._pendingLocation=r;let n=e.commitLocation({...r,viewTransition:o.viewTransition,replace:!0,resetScroll:o.resetScroll,hashScrollIntoView:o.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{if(e._pendingLocation===r)e._pendingLocation=void 0}),n}async function QB(e,t,a,o,r){let n=a.map((l)=>({...l}));uy(n);for(let l of o)xr(e,n[l[0]]),n[l[0]]=l[3];let i=[t[2],n],s;try{s=await gk(e,i,o,t[0],r)}catch(l){throw da(e,n),l}if(Fu(s)){if(da(e,n),s[0]===Xt&&e._tx===t&&e._committed===a)await bk(e,t,s);return}if(await yk(e,s,t[0].signal),e._tx!==t||e._committed!==a){da(e,n);return}for(let l of n){let u=e._cache.get(l.id);if(u?._flight&&u._flight===l._flight)e._cache.delete(l.id),xr(e,u)}vk(e,n),da(e,a,n)}async function JB(e,t,a,o,r,n){let i=await xk(e,t[2],t[3],[t[0],t[1],e._committed,void 0,r,a,n,o]);if(Fu(i)){let m=i[0]===Xt&&e._tx===t;if(!m||i[1].options.reloadDocument)zu(e,t);if(da(e,t[3]),t[3]=[],!m)return;if(e._tx!==t){zu(e,t);return}await bk(e,t,i);return}let s=i[1];if(e._tx===t)await mk(e,t);if(e._tx!==t){zu(e,t),da(e,s),hi(e,i);return}let l=t[2],u=pi(l,e.stores.resolvedLocation.get()),d=i[2];await e.startViewTransition(async()=>{if(e._tx===t)await mk(e,t);if(e._tx!==t){zu(e,t),da(e,s),hi(e,i);return}let m=()=>{if(zu(e,t),WB(e,t,s,n),e._tx!==t)return;if(e.emit({type:"onLoad",...u}),e._tx===t)e.emit({type:"onBeforeRouteMount",...u})},p=await e.startTransition(m,s);if(e._tx!==t){hi(e,i);return}if(d?.length)QB(e,t,s,d,i[3]).catch(console.error);if(e.batch(()=>{if(e.stores.resolvedLocation.set(l),e.stores.status.set("idle"),e._tx===t)e.emit({type:"onResolved",...u});if(p&&e._tx===t)e.emit({type:"onRendered",...u})}),e._tx!==t)return;e._commitPromise?.resolve(),e._commitPromise=void 0})}async function lk(e,t){let a=!1,o=e._tx,r=e.stores.resolvedLocation.get(),n=r??e.stores.location.get(),i=e.latestLocation,s=e._pendingLocation,l=s?.href===i.href?s._redirects??0:0,u=e._handoff,d=a?void 0:u?.[0](),m=new AbortController,p=e._preflight;if(e._preflight=m,!a&&!d)u?.[1]();if(p?.abort(),!m.signal.aborted){let C=pi(i,r);if(e.emit({type:"onBeforeNavigate",...C}),!m.signal.aborted)e.emit({type:"onBeforeLoad",...C})}if(m.signal.aborted){await $f(e,o);return}let f=n.href===i.href,g=m,y=e.matchRoutes(i,{_controller:m});uy(y);let b=d?u[1](y):void 0;if(b)g=d;else d?.abort();if(m.signal.aborted){da(e,y),await $f(e,o);return}e._preflight=void 0;let h,x=()=>JB(e,w,f,()=>ny(e,w),t?.sync,b),v=t?.sync?new Promise((C)=>h=C):Promise.resolve().then(x),w=[g,l,i,y,Date.now(),v.then(()=>$f(e,w))];if(e._tx=w,o){for(let C of e.stores.matches.get()){if(e._tx!==w)break;if(C.isFetching)Uu(e,C,!1)}o[0].abort(),da(e,o[3],w[3],!0)}if(e._tx!==w){da(e,w[3]),w[3]=[],h?.(),await $f(e,w);return}if(e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(i)}),b||!e._committed.length&&y[0]?.status!=="success"&&!y.some((C)=>C._notFound))ny(e,w);h?.(x()),await w[5]}async function uk(e,t){let a=e.buildLocation(t);for(let o=0;;o++){let r=e._committed,n=new AbortController,i,s,l;try{try{i=e.matchRoutes(a,{_controller:n}),uy(i),s=(e._preloads??=new Map).set(n,i),l=await xk(e,a,i,[n,o,r,!0])}finally{if(s)s=s.delete(n),da(e,i);n.abort()}if(!Fu(l))return l[1];if(!s||l.length<3)return;a=l[2]}catch(u){if(!ca(u))console.error(u);return}}}var dy="Error preloading route! \u261D\uFE0F";var Kf=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=(t)=>{this.originalIndex=t,this._branch=void 0;let a=this.options,o=!a?.path&&!a?.id;if(this.parentRoute=this.options.getParentRoute?.(),o)this._path=Ra;else if(!this.parentRoute)an();let r=o?Ra:a?.path;if(r&&r!=="/")r=Au(r);let n=a?.id||r,i=o?Ra:Bo((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(n??""));if(r==="__root__")r="/";let s=i==="__root__"?"/":r===void 0?this.parentRoute.fullPath:Bo(this.parentRoute.fullPath+"/"+r);this._path=r,this._id=i,this._fullPath=s,this._to=$t(s)},this.addChildren=(t)=>this._addFileChildren(t),this._addFileChildren=(t)=>{if(Array.isArray(t))this.children=t;if(typeof t==="object"&&t!==null)this.children=Object.values(t);return this},this._addFileTypes=()=>this,this.updateLoader=(t)=>(Object.assign(this.options,t),this),this.update=(t)=>(Object.assign(this.options,t),this),this.lazy=(t)=>(this.lazyFn=t,this),this.redirect=(t)=>Of({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}},fy=class{constructor({id:e}){this.notFound=(t)=>on({routeId:this.id,...t}),this.redirect=(t)=>Of({from:this.id,...t}),this.id=e}},py=class extends Kf{constructor(e){super(e)}};var my=U(V(),1);function wk(e,t){let a=e.stores.location,o=new Set,r,n,i=(s)=>{if(!iy(e,t,s))r=s,o.forEach((l)=>l())};return[()=>r??a.get(),(s)=>{if(!o.size)r=a.get(),n=a.subscribe(i).unsubscribe;return o.add(s),()=>{if(o.delete(s),!o.size)n(),r=void 0}}]}var ln=my.createContext(void 0),Sk=my.createContext(void 0);var Wf=U(V(),1);var yy=U(V(),1);var un=U(V(),1),m5=Lk();function h5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var g5=typeof Object.is==="function"?Object.is:h5,y5=m5.useSyncExternalStore,x5=un.useRef,v5=un.useEffect,b5=un.useMemo,w5=un.useDebugValue;var gy=function(e,t,a,o,r){var n=x5(null);if(n.current===null){var i={hasValue:!1,value:null};n.current=i}else i=n.current;n=b5(function(){function l(f){if(!u){if(u=!0,d=f,f=o(f),r!==void 0&&i.hasValue){var g=i.value;if(r(g,f))return m=g}return m=f}if(g=m,g5(d,f))return g;var y=o(f);if(r!==void 0&&r(g,y))return d=f,g;return d=f,m=y}var u=!1,d,m,p=a===void 0?null:a;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,a,o,r]);var s=y5(e,n[0],n[1]);return v5(function(){i.hasValue=!0,i.value=s},[s]),w5(s),s};function S5(e,t){return e===t}function Xe(e,t=(o)=>o,a){let o=a?.compare??S5,r=yy.useCallback((i)=>{let{unsubscribe:s}=e.subscribe(i);return s},[e]),n=yy.useCallback(()=>e.get(),[e]);return gy(r,n,n,t,o)}function Ck({update:e,notify:t,unwatched:a}){return{link:o,unlink:r,propagate:n,checkDirty:i,shallowPropagate:s};function o(u,d,m){let p=d.depsTail;if(p!==void 0&&p.dep===u)return;let f=p!==void 0?p.nextDep:d.deps;if(f!==void 0&&f.dep===u){f.version=m,d.depsTail=f;return}let g=u.subsTail;if(g!==void 0&&g.version===m&&g.sub===d)return;let y=d.depsTail=u.subsTail={version:m,dep:u,sub:d,prevDep:p,nextDep:f,prevSub:g,nextSub:void 0};if(f!==void 0)f.prevDep=y;if(p!==void 0)p.nextDep=y;else d.deps=y;if(g!==void 0)g.nextSub=y;else u.subs=y}function r(u,d=u.sub){let{dep:m,prevDep:p,nextDep:f,nextSub:g,prevSub:y}=u;if(f!==void 0)f.prevDep=p;else d.depsTail=p;if(p!==void 0)p.nextDep=f;else d.deps=f;if(g!==void 0)g.prevSub=y;else m.subsTail=y;if(y!==void 0)y.nextSub=g;else if((m.subs=g)===void 0)a(m);return f}function n(u){let d=u.nextSub,m;e:do{let p=u.sub,f=p.flags;if(!(f&60))p.flags=f|32;else if(!(f&12))f=0;else if(!(f&4))p.flags=f&-9|32;else if(!(f&48)&&l(u,p))p.flags=f|40,f&=1;else f=0;if(f&2)t(p);if(f&1){let g=p.subs;if(g!==void 0){let y=(u=g).nextSub;if(y!==void 0)m={value:d,prev:m},d=y;continue}}if((u=d)!==void 0){d=u.nextSub;continue}while(m!==void 0)if(u=m.value,m=m.prev,u!==void 0){d=u.nextSub;continue e}break}while(!0)}function i(u,d){let m,p=0,f=!1;e:do{let g=u.dep,y=g.flags;if(d.flags&16)f=!0;else if((y&17)===17){if(e(g)){let b=g.subs;if(b.nextSub!==void 0)s(b);f=!0}}else if((y&33)===33){if(u.nextSub!==void 0||u.prevSub!==void 0)m={value:u,prev:m};u=g.deps,d=g,++p;continue}if(!f){let b=u.nextDep;if(b!==void 0){u=b;continue}}while(p--){let b=d.subs,h=b.nextSub!==void 0;if(h)u=m.value,m=m.prev;else u=b;if(f){if(e(d)){if(h)s(b);d=u.sub;continue}f=!1}else d.flags&=-33;d=u.sub;let x=u.nextDep;if(x!==void 0){u=x;continue e}}return f}while(!0)}function s(u){do{let d=u.sub,m=d.flags;if((m&48)===32){if(d.flags=m|16,(m&6)===2)t(d)}}while((u=u.nextSub)!==void 0)}function l(u,d){let m=d.depsTail;while(m!==void 0){if(m===u)return!0;m=m.prevDep}return!1}}function Gu(e,t,a){let o=typeof e==="object",r=o?e:void 0;return{next:(o?e.next:e)?.bind(r),error:(o?e.error:t)?.bind(r),complete:(o?e.complete:a)?.bind(r)}}var xy=[],Xf=0,{link:kk,unlink:L5,propagate:C5,checkDirty:Rk,shallowPropagate:Ik}=Ck({update(e){return e._update()},notify(e){xy[vy++]=e,e.flags&=-3},unwatched(e){if(e.depsTail!==void 0)e.depsTail=void 0,e.flags=17,Yf(e)}}),jf=0,vy=0,yo,by=0;function wy(e){try{++by,e()}finally{if(!--by)Sy()}}function Yf(e){let t=e.depsTail,a=t!==void 0?t.nextDep:e.deps;while(a!==void 0)a=L5(a,e)}function Sy(){if(by>0)return;while(jf<vy){let e=xy[jf];xy[jf++]=void 0,e.notify()}jf=0,vy=0}function xi(e,t){let a=typeof e==="function",o=e,r={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?0:1,get(){if(yo!==void 0)kk(r,yo,Xf);return r._snapshot},subscribe(n){let i=Gu(n),s={current:!1},l=k5(()=>{if(r.get(),!s.current)s.current=!0;else yo=void 0,i.next?.(r._snapshot)});return{unsubscribe:()=>{l.stop()}}},_update(n){let i=yo,s=t?.compare??Object.is;if(a)yo=r,++Xf,r.depsTail=void 0;else if(n===void 0)return!1;if(a)r.flags=5;try{let l=r._snapshot,u=typeof n==="function"?n(l):n===void 0&&a?o(l):n;if(l===void 0||!s(l,u))return r._snapshot=u,!0;return!1}finally{if(yo=i,a)r.flags&=-5;Yf(r)}}};if(a)r.flags=17,r.get=function(){let n=r.flags;if(n&16||n&32&&Rk(r.deps,r)){if(r._update()){let i=r.subs;if(i!==void 0)Ik(i)}}else if(n&32)r.flags=n&-33;if(yo!==void 0)kk(r,yo,Xf);return r._snapshot};else r.set=function(n){if(r._update(n)){let i=r.subs;if(i!==void 0)C5(i),Ik(i),Sy()}};return r}function k5(e){let t=()=>{let o=yo;yo=a,++Xf,a.depsTail=void 0,a.flags=6;try{return e()}finally{yo=o,a.flags&=-5,Yf(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let o=this.flags;if(o&16||o&32&&Rk(this.deps,this))t();else this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Yf(this)}};return t(),a}var Ly=class{constructor(e,t){if(this.atom=xi(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t)this.actions=t(this)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Gu(e))}},_k=class{constructor(e){this.atom=xi(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Gu(e))}};function Cy(e,t){if(typeof e==="function")return new _k(e);if(t)return new Ly(e,t);return new Ly(e)}var Tk={};function ky(e,t){let a=Wf.useRef();return(o)=>{let r=e?.select?e.select(o):o;if(e?.structuralSharing??t.options.defaultStructuralSharing)return a.current=ja(a.current,r);return r}}function At(e){let t=xe(),a=Wf.useContext(e.from?Sk:ln),o=e.from??a,r=t.stores.getMatchStore(o);if(te??t.isServer){let s=r.get();if(!s){if(e.shouldThrow??!0)an();return}return e.select?e.select(s):s}let n=ky(e,t),i=Xe(r,(s)=>s?n(s):Tk);if(i!==Tk)return i;if(e.shouldThrow??!0)an()}var Ye=U(V(),1);var I5=Symbol.for("react.transitional.element"),R5=Symbol.for("react.fragment");function Ek(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:I5,type:e,key:o,ref:t!==void 0?t:null,props:a}}var he=R5,c=Ek,S=Ek;function _5(...e){let t=Ye.useRef(e),a=t.current;return e.forEach((o,r)=>{if(!Ia(a[r],o,!1,!0))a[r]=o}),t.current}function Qf(e,t){e.preloadRoute(t).catch((a)=>{console.warn(a),console.warn(dy)})}function Nk(e,t){let a=typeof e==="string"&&yr(e);if(!a)return;if(!t.has(a))return null;return e}function Ak(e,t,a,o){let r=Pf(e.pathname,o),n=Pf(t.pathname,o);if(a?.exact?r!==n:!(r.startsWith(n)&&(r.length===n.length||r[n.length]==="/")))return!1;if(a?.includeSearch??!0){if(!Ia(e.search,t.search,!a?.exact,a?.explicitUndefined))return!1}return!a?.includeHash||e.hash===t.hash}function Mk(e,t,a){let o=xe();if(te??o.isServer)return N5(o,e,t,a);let r=Ye.useRef(null),n=Ye.useCallback((N)=>{if(r.current=N,typeof t==="function")return t(N);if(t)t.current=N},[t]),{activeOptions:i,to:s,preload:l,preloadDelay:u,disabled:d,target:m,onClick:p,onBlur:f,onFocus:g,onMouseEnter:y,onMouseLeave:b,onTouchStart:h}=e,[x,v,w]=_5(e.search,e.params,i),C=Ye.useContext(ln),I=(o.stores._linkScopes??={})[C]??=wk(o,C),[L,k,_]=Ye.useMemo(()=>{let N=Nk(s,o.protocolAllowlist);if(N!==void 0){let fe=[N??void 0];return[e,()=>fe]}let Z={...e},Q,H,J,oe=()=>{let fe=I[0]();if(fe!==Q){Z._fromLocation=fe;let ne=o.buildLocation(Z),Ka=zk(ne,o,d),li=d||Ka&&!yr(Ka)?Ak(fe,ne,w,o.basepath):void 0;if(!H||H[0]!==Ka||H[1]!==li)H=[Ka,li];Q=fe}return H};return[Z,oe,w?.includeHash&&(()=>{let fe=oe();return fe[1]?J??=[fe[0],!1]:fe})]},[o,I,e.from,e.hash,e.href,s,x,v,e.state,e.mask,e.unsafeRelative,w,d]),[T,O]=Ye.useSyncExternalStore(I[1],k,_||k),D=O===void 0&&T,z=d||T===void 0,R=Ye.useRef(!1),A=e.reloadDocument||D||z?!1:l??o.options.defaultPreload,E=u??o.options.defaultPreloadDelay??0,B=Ye.useCallback((N)=>{let Z=N?.isIntersecting;if(!(Z??A==="intent")){if(Z===!1)Jf(r);return}if(!E){Qf(o,L);return}r.t??=setTimeout(()=>{r.t=void 0,Qf(o,L)},E)},[o,L,r,A,E]);Ye.useEffect(()=>{if(!A)return;if(A==="render"&&!R.current)R.current=!0,Qf(o,L);let N=!0,Z;if(A==="viewport"&&r.current&&typeof IntersectionObserver==="function")Z=new IntersectionObserver((Q)=>{if(N)B(Q.pop())},{rootMargin:"100px"}),Z.observe(r.current);return()=>{N=!1,Z?.disconnect(),Jf(r)}},[o,L,A,B,r]);let X=Pk(e,a);if(X.ref=t?n:r,D)return X.href=D,X;let ee=(N)=>{let Z=m??N.currentTarget.getAttribute("target");if(!z&&!(N.metaKey||N.altKey||N.ctrlKey||N.shiftKey)&&!N.defaultPrevented&&(!Z||Z==="_self")&&N.button===0)N.preventDefault(),Jf(r),o.navigate({...e,_fromLocation:L._fromLocation})},F=()=>{if(A==="intent")Qf(o,L)},ce=()=>{if(A==="intent")Jf(r)};return X.onClick=As(p,ee),X.onBlur=As(f,ce),X.onFocus=As(g,B),X.onMouseEnter=As(y,B),X.onMouseLeave=As(b,ce),X.onTouchStart=As(h,F),Ok(X,e,O,T,z,a)}var T5={},E5={className:"active"},Dk=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function Pk(e,t){let a={};for(let o in e){if(Dk.has(o)||o==="type"&&t!==void 0||o==="disabled"&&t==="a")continue;a[o]=e[o]}return a}function Ok(e,t,a,o,r,n){let{activeProps:i,inactiveProps:s,className:l,style:u,target:d}=t,m=tn(a?i:s,{})??(a?E5:T5);if(Object.assign(e,m),e.href=o,n!=="a")e.disabled=r;e.target=d;let p=m.style;if(u||p)e.style=u&&p?{...u,...p}:u||p;let f=m.className;if(l||f)e.className=l?f?\`\${l} \${f}\`:l:f;if(r)e.role="link",e["aria-disabled"]=!0;if(a)e["data-status"]="active",e["aria-current"]="page";return e}function N5(e,t,a,o){let{to:r,disabled:n,activeOptions:i}=t,s=Nk(r,e.protocolAllowlist),l=s===void 0?e.buildLocation(t):void 0,u=l?zk(l,e,n):s??void 0,d=n||!u,m=s??(u&&yr(u)?u:void 0),p=Pk(t,o);if(p.ref=a,m)return p.href=m,p;return Ok(p,t,!!l&&!(!n&&!u)&&!i?.includeHash&&Ak(e.stores.location.get(),l,i,e.basepath),u,d,o)}var Jf=(e)=>{clearTimeout(e.t),e.t=void 0},As=(e,t)=>{if(!e)return t;return(a)=>a.defaultPrevented||(e(a),a.defaultPrevented||t(a))};function zk(e,t,a){if(a)return;let o=e.maskedLocation??e,r=o.external?o.publicHref:t.history.createHref(o.publicHref)||"/";if((o.external||r!==o.publicHref)&&Nu(r,t.protocolAllowlist))return;return r}function Iy(e){return Ye.forwardRef(function(a,o){return c(Ms,{...a,_asChild:e,ref:o})})}var Ms=Ye.memo(Ye.forwardRef((e,t)=>{let a=e._asChild||"a",o=Mk(e,t,a),r=typeof e.children==="function"?e.children({isActive:o["data-status"]==="active"}):e.children;return Ye.createElement(a,o,r)}),A5);function A5(e,t){let a=0;for(let o in t){if(a++,e[o]===t[o])continue;if(!Dk.has(o)||!Ia(e[o],t[o],!1,!0))return!1}for(let o in e)a--;return a===0}function ep(e){return At({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:(t)=>e.select?e.select(t.loaderData):t.loaderData})}function tp(e){let{select:t,...a}=e;return At({...a,select:(o)=>t?t(o.loaderDeps):o.loaderDeps})}function ap(e){return At({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:(t)=>{let a=e.strict===!1?t.params:t._strictParams;return e.select?e.select(a):a}})}function op(e){return At({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:(t)=>e.select?e.select(t.search):t.search})}var qu=U(V(),1);var rp=te??typeof window>"u"?qu.useEffect:qu.useLayoutEffect;var Ry=U(V(),1);function np(e){let t=xe();return Ry.useCallback((a)=>t.navigate({...a,from:a.from??e?.from}),[e?.from,t])}function ip(e){return At({...e,select:(t)=>e.select?e.select(t.context):t.context})}var sp=U(V(),1);function $u(e){return new Bk({id:e})}var Bk=class extends fy{constructor({id:e}){super({id:e});this.useMatch=(t)=>At({...t,from:this.id}),this.useRouteContext=(t)=>ip({...t,from:this.id}),this.useSearch=(t)=>op({...t,from:this.id}),this.useParams=(t)=>ap({...t,from:this.id}),this.useLoaderDeps=(t)=>tp({...t,from:this.id,strict:!1}),this.useLoaderData=(t)=>ep({...t,from:this.id,strict:!1}),this.useNavigate=()=>{let t=xe();return np({from:t.routesById[this.id].fullPath})},this.notFound=(t)=>on({routeId:this.id,...t}),this.Link=sp.default.forwardRef((t,a)=>{let o=xe().routesById[this.id].fullPath;return c(Ms,{ref:a,from:o,...t})})}},Fk=class extends Kf{constructor(e){super(e);this.useMatch=(t)=>At({...t,from:this.id}),this.useRouteContext=(t)=>ip({...t,from:this.id}),this.useSearch=(t)=>op({...t,from:this.id}),this.useParams=(t)=>ap({...t,from:this.id}),this.useLoaderDeps=(t)=>tp({...t,from:this.id}),this.useLoaderData=(t)=>ep({...t,from:this.id}),this.useNavigate=()=>np({from:this.fullPath}),this.Link=sp.default.forwardRef((t,a)=>c(Ms,{ref:a,from:this.fullPath,...t}))}};function cn(e){return new Fk(e)}function _y(){return(e)=>Uk(e)}var Hk=class extends py{constructor(e){super(e);this.useMatch=(t)=>At({...t,from:this.id}),this.useRouteContext=(t)=>ip({...t,from:this.id}),this.useSearch=(t)=>op({...t,from:this.id}),this.useParams=(t)=>ap({...t,from:this.id}),this.useLoaderDeps=(t)=>tp({...t,from:this.id}),this.useLoaderData=(t)=>ep({...t,from:this.id}),this.useNavigate=()=>np({from:this.fullPath}),this.Link=sp.default.forwardRef((t,a)=>c(Ms,{ref:a,from:this.fullPath,...t}))}};function Uk(e){return new Hk(e)}var Ds=U(V(),1);var vi=class extends Ds.Component{constructor(...e){super(...e);this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let a=e.getResetKey();if(t.error&&t.resetKey!==a)return{resetKey:a,error:0};return{resetKey:a}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;if(e)return Ds.createElement(this.props.errorComponent??Ty,{error:e[0],reset:this.reset});return this.props.children}};function Ty({error:e}){let[t,a]=Ds.useState(!1);return S("div",{style:{padding:".5rem",maxWidth:"100%"},children:[S("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[c("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),c("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a((o)=>!o),children:t?"Hide Error":"Show Error"})]}),c("div",{style:{height:".25rem"}}),t?c("div",{children:c("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e?.message?c("code",{children:e.message}):null})}):null]})}var Ey=U(V(),1);var Gk=()=>!0,M5=()=>!1;function qk({children:e,fallback:t=null}){return c(Ey.default.Fragment,{children:D5()?e:t})}function D5(e=!0){return Ey.default.useSyncExternalStore(P5,Gk,e?M5:Gk)}function P5(){return()=>{}}var zX=U(V(),1);function $k(e){let t=xe();if(te??t.isServer){let o=\`not-found-\${t.stores.location.get().pathname}-\${t.stores.status.get()}\`;return c(vi,{getResetKey:()=>o,onCatch:(r,n)=>{if(ca(r))e.onCatch?.(r,n);else throw r},errorComponent:({error:r})=>{if(ca(r))return e.fallback?.(r);else throw r},children:e.children})}let a=\`not-found-\${Xe(t.stores.location,(o)=>o.pathname)}-\${Xe(t.stores.status)}\`;return c(vi,{getResetKey:()=>a,onCatch:(o,r)=>{if(ca(o))e.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(ca(o))return e.fallback?.(o);else throw o},children:e.children})}function Vk(){return c("p",{children:"Not Found"})}var qX=U(V(),1);function Ny(e,t,a){if(!t.options.notFoundComponent){if(e.options.defaultNotFoundComponent)return c(e.options.defaultNotFoundComponent,{...a});return c(Vk,{})}return c(t.options.notFoundComponent,{...a})}function Zk({children:e}){let t=xe();if(!(te??t.isServer))return null;return c("script",{nonce:t.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+";document.currentScript.remove()"}})}function Kk(e){return null}function jk(){let e=xe(),t=Kk(e);if(!t)return null;return c(Zk,{children:t})}var fa=U(V(),1);function Vu(e,t){let a=t?.options.pendingComponent??e.options.defaultPendingComponent;if(!a)return null;return c(a,{})}var O5=(e,t)=>e[0]===t[0]&&e[1]===t[1],Yk=(e,t,a)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||a===!1||a==="data-only"||!((te??e.isServer)||e.ssr),lp=fa.memo(function({routeId:t}){let a=xe();if(te??a.isServer)return Xk(a,a.stores.byRoute.get(t).get());let o=a.stores.getMatchStore(t);return Xk(a,Xe(o))});function Xk(e,t){let a=e.routesById[t.routeId],o=Vu(e,a),r=a.options.errorComponent??e.options.defaultErrorComponent,n=a.options.onCatch??e.options.defaultOnCatch,i=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,s=t.ssr===!1||t.ssr==="data-only",l=Yk(e,a,t.ssr)&&(a.options.wrapInSuspense??o??(a.options.errorComponent?.preload||s)),u=c(z5,{match:t});if(s)u=c(qk,{fallback:o,children:u});if(i)u=c($k,{fallback:(p)=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return fa.createElement(i,p)},children:u});if(r)u=c(vi,{getResetKey:()=>t,errorComponent:r,onCatch:(p,f)=>{if(ca(p))throw p.routeId??=t.routeId,p;n?.(p,f)},children:u});if(l)u=c(fa.Suspense,{fallback:o,children:u});let d=(te??e.isServer)&&a.parentRoute?.id===Ra&&e.options.scrollRestoration?c(jk,{}):null,m=a.isRoot&&a.options.shellComponent;return m?c(ln.Provider,{value:t.routeId,children:S(m,{children:[u,d]})}):S(ln.Provider,{value:t.routeId,children:[u,d]})}var z5=fa.memo(function({match:t}){let a=xe(),o=t.routeId,r=a.routesById[o],n=fa.useMemo(()=>{let s=(r.options.remountDeps??a.options.defaultRemountDeps)?.({routeId:o,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return s?JSON.stringify(s):void 0},[o,t.loaderDeps,t._strictParams,t._strictSearch,r.options.remountDeps,a.options.defaultRemountDeps]),i=fa.useMemo(()=>{let s=r.options.component??a.options.defaultComponent;return s?c(s,{},n):c(up,{})},[n,r.options.component,a.options.defaultComponent]);if(t.status==="pending"){if(a.ssr&&!Yk(a,r,t.ssr))return i;if(a._tx)throw a._tx[5];return Vu(a,r)}if(t.status==="notFound")return Ny(a,r,t.error);if(t.status==="error"){if(te??a.isServer){let s=(r.options.errorComponent??a.options.defaultErrorComponent)||Ty;return c(s,{error:t.error,reset:void 0,info:{componentStack:""}})}throw t.error}return i}),up=fa.memo(function(){let t=xe(),a=fa.useContext(ln),o,r,n;if(te??t.isServer){let s=t.stores.matches.get(),l=s.findIndex((d)=>d.routeId===a),u=s[l];o=!!u._notFound,r=u.error,n=s[l+1]?.routeId}else{let s=t.stores.getMatchStore(a);[o,r]=Xe(s,(l)=>[!!l._notFound,l.error],{compare:O5}),n=Xe(t.stores.ids,(l)=>l[l.indexOf(a)+1])}if(o)return Ny(t,t.routesById[a],r);if(!n)return null;let i=c(lp,{routeId:n});if(a===Ra)return c(fa.Suspense,{fallback:Vu(t),children:i});return i});var Wk=(e)=>{if(te??e.isServer)return{createMutableStore:$g,createReadonlyStore:Vg,batch:(t)=>t()};return{createMutableStore:xi,createReadonlyStore:xi,batch:wy}};var Ay=(e)=>new Qk(e),Qk=class extends ay{constructor(e){super(e,Wk)}};var My=U(V(),1);function Dy(e,t){let a=e[1];e.length=0,a?.(t)}function Jk({t:e}){let t=xe(),a=t._rendered??=[],o=void 0;return t.startTransition=(r,n)=>new Promise((i)=>{Dy(a,!1),a.push(n,i),e(t),My.startTransition(r)}),rp(()=>{let r=t.history.subscribe(t.load);if((void 0)?.current)return r;t.updateLatestLocation();let n=t.latestLocation,i=t.buildLocation({to:n.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if($t(n.publicHref)!==$t(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),r;let s=t.stores.resolvedLocation.get();if(s?.href===n.href&&s.state.__TSR_key===n.state.__TSR_key)a.push(t.stores.matches.get(),(l)=>{if(l)t.emit({type:"onRendered",...pi(s,s)})});else if(!t._tx)t.load({sync:!0}).catch(console.error);return r},[t,t.history]),null}var Ps=U(V(),1);function t1(){let e=xe(),t=e.routesById[Ra],a=Vu(e,t),o=S(he,{children:[!(te??e.isServer)&&c(Jk,{t:Ps.useState()[1]}),(te??e.isServer)||e.ssr?c(e1,{}):c(Ps.Suspense,{fallback:a,children:c(e1,{})})]});return e.options.InnerWrap?c(e.options.InnerWrap,{children:o}):o}function e1(){let e=xe(),t=e._rendered,a=te??e.isServer?e.stores.matches.get():Xe(e.stores.matches,(i)=>t[0]??i),o=a[0],r=o?.routeId;rp(()=>{if(t[0]===a)Dy(t,!0)},[t,a]);let n=r?c(lp,{routeId:r}):null;return e.options.disableGlobalCatchBoundary?n:c(vi,{getResetKey:()=>o,onCatch:void 0,children:n})}var FY=U(V(),1);function a1({router:e,children:t,...a}){if(Tu(a))e.update({...e.options,...a,context:{...e.options.context,...a.context}});let o=c(Nf.Provider,{value:e,children:t});if(e.options.Wrap)return c(e.options.Wrap,{children:o});return o}function Py({router:e,...t}){return c(a1,{router:e,...t,children:c(t1,{})})}function Zu(e){let t=xe();if(te??t.isServer){let a=t.stores.location.get();return e?.select?e.select(a):a}return Xe(t.stores.location,ky(e,t))}function zy(e){let t=Object.values(e).filter((o)=>typeof o==="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function o1(e,t){if(typeof t==="bigint")return t.toString();return t}class r1{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;if(e!==void 0)this._value=e(),this._getter=void 0;return this._value}}function n1(e){return new r1(e)}function i1(e){return e===null||e===void 0}function s1(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function l1(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}var By="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function cp(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Fy(e){if(cp(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!=="function")return!0;let a=t.prototype;if(cp(a)===!1)return!1;if(Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)return!1;return!0}function Hy(e){if(Fy(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}var u1=new Set(["string","number","symbol"]);function Uy(e){return e.replace(/[.*+?^\${}()|[\\]\\\\]/g,"\\\\$&")}function dp(e,t,a){let o=new e._zod.constr(t??e._zod.def);if(!t||a?.parent)o._zod.parent=e;return o}function _a(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both \`message\` and \`error\` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function c1(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}function wi(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function d1(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue===!1)return!0;return!1}function Si(e,t){return t.map((a)=>{var o;return(o=a).path??(o.path=[]),a.path.unshift(e),a})}function Ku(e){return typeof e==="string"?e:e?.message}function Gy(e,t,a){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=a)}function fn(e,t,a){var o;let r=e.inst?._zod?.traits;if(r?.has("$ZodType"))if(r.has("$ZodCheck"))(o=e).schema??(o.schema=e.inst);else e.schema=e.inst;let n=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,i=e.message?e.message:Ku(e.inst?._zod.def?.error?.(e))??Ku(n?.(e))??Ku(t?.error?.(e))??Ku(a.customError?.(e))??Ku(a.localeError?.(e))??"Invalid input",s={};for(let l of Object.keys(e)){if(l==="inst"||l==="schema"||l==="continue"||l==="input"||l==="__proto__")continue;s[l]=e[l]}if(s.path??(s.path=[]),s.message=i,t?.reportInput)s.input=e.input;return s}var B5=/[\\uD800-\\uDBFF]/;function qy(e){let t=e.length;if(!B5.test(e))return t;let a=t;for(let o=0;o<t-1;o++)if((e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320)a--,o++;return a}function $y(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function Vy(...e){let[t,a,o]=e;if(typeof t==="string")return{message:t,code:"custom",input:a,inst:o};return{...t}}function f1(e,t){for(let a in t){let o=Object.getOwnPropertyDescriptor(t,a);if(o.get)Object.defineProperty(e,a,{...o,enumerable:!1});else F5(e,a,o.value)}}function bi(e,t,a,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:a}),a}function Zy(e,t,a){return bi(e,t,a,!1)}function F5(e,t,a){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?a:bi(this,t,a.bind(this))},set(o){bi(this,t,o)}})}function H5(e,t){let a=Object.getPrototypeOf(e);return t in a?void 0:a}var Oy,dn=!1,U5={configurable:!0,get(){dn=!0;return}};function Li(e,t,a){let o=Object.getPrototypeOf(e._zod);if(t in o&&Oy!==e._zod){Oy=void 0;return}Oy=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,U5);let r=dn;dn=!1;try{let n=a(this);if(dn)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});return dn=dn||r,n}catch(n){throw delete this[t],dn=dn||r,n}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function p1(e,t,a,o){let r=H5(e,t);if(!r)return;Object.defineProperty(r,t,{configurable:!0,get(){let n={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,n),n.value=a(this),Object.defineProperty(this,t,n),n.value},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:n})}})}var m1;var Ky={value:void 0,enumerable:!1},h1="captureStackTrace"in Error?Error:null;function G5(e){let t=h1;if(t){let a=t.stackTraceLimit;if(typeof a==="number"){try{t.stackTraceLimit=0}catch{return h1=null,new e}try{return new e}finally{t.stackTraceLimit=a}}}return new e}function be(e,t,a,o){let r={};function n(p){this.def=p,this.constr=m,this.traits=new Set}n.prototype=r;let i=a,s=i&&new WeakSet;function l(p,f){if(!p._zod){Ky.value=new n(f);try{Object.defineProperty(p,"_zod",Ky)}finally{Ky.value=void 0}}else if(p._zod.traits.has(e))return;if(p._zod.traits.add(e),t(p,f),s){let y=Object.getPrototypeOf(p),b=p._zod.constr.prototype,h=y;while(h&&h!==b)h=Object.getPrototypeOf(h);let x=h??y;if(!s.has(x))s.add(x),f1(x,i)}let g=m.prototype;for(let y in g){if(!Object.prototype.hasOwnProperty.call(g,y))continue;if(!(y in p))p[y]=g[y].bind(p)}}let u=o?.Parent??Object;class d extends u{}Object.defineProperty(d,"name",{value:e});function m(p){let f=o?.Parent?G5(d):this;l(f,p);let g=f._zod.deferred;if(g){for(let b of g)b();f._zod.deferred=void 0}let y=globalThis.__zod_globalConfig?.postProcessor;if(y)y(f);return f}return Object.defineProperty(m,"init",{value:l}),Object.defineProperty(m,Symbol.hasInstance,{value:(p)=>{if(o?.Parent&&p instanceof o.Parent)return!0;return p?._zod?.traits?.has(e)}}),Object.defineProperty(m,"name",{value:e}),m}class pn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}(m1=globalThis).__zod_globalConfig??(m1.__zod_globalConfig={});var ju=globalThis.__zod_globalConfig;function mn(e){if(e)Object.assign(ju,e);return ju}function q5(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,o1,2)),e.message}function $5(e){this._zod.message=e}var V5={get:q5,set:$5,enumerable:!0,configurable:!0},Xy={value:void 0,enumerable:!1},g1=new WeakSet([Object.prototype,Error.prototype]),y1=(e,t)=>{e.name="$ZodError",Xy.value=t,Object.defineProperty(e,"issues",Xy),Xy.value=void 0,Object.defineProperty(e,"message",V5);let a=Object.getPrototypeOf(e);if(!g1.has(a))g1.add(a),Object.defineProperty(a,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}})},RQ=be("$ZodError",y1),Xu=be("$ZodError",y1,void 0,{Parent:Error});var K5=(e)=>{let t=(a,o,r,n)=>{let i=r?{...r,async:!1}:{async:!1},s=a._zod.run({value:o,issues:[]},i);if(s instanceof Promise)throw new pn;if(s.issues.length){let l=new(n?.Err??e)(s.issues.map((u)=>fn(u,i,mn())));throw By(l,n?.callee??t),l}return s.value};return t},Yy=K5(Xu),j5=(e)=>{let t=async(a,o,r,n)=>{let i=r?{...r,async:!0}:{async:!0},s=a._zod.run({value:o,issues:[]},i);if(s instanceof Promise)s=await s;if(s.issues.length){let l=new(n?.Err??e)(s.issues.map((u)=>fn(u,i,mn())));throw By(l,n?.callee??t),l}return s.value};return t},Wy=j5(Xu),X5=(e)=>(t,a,o)=>{let r=o?{...o,async:!1}:{async:!1},n=t._zod.run({value:a,issues:[]},r);if(n instanceof Promise)throw new pn;return n.issues.length?x1(e,n.issues,r):{success:!0,data:n.value}},Qy=X5(Xu);function x1(e,t,a){let o;return{success:!1,get error(){if(!o)o=new e(t.map((r)=>fn(r,a,mn()))),t=void 0,a=void 0;return o},set error(r){o=r,t=void 0,a=void 0}}}var Y5=(e)=>async(t,a,o)=>{let r=o?{...o,async:!0}:{async:!0},n=t._zod.run({value:a,issues:[]},r);if(n instanceof Promise)n=await n;return n.issues.length?x1(e,n.issues,r):{success:!0,data:n.value}},Jy=Y5(Xu);var v1=/^[\\s\\S]{0,}$/;var ex=/^-?\\d+(?:\\.\\d+)?$/,b1=/^(?:true|false)$/i;var ki=be("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])});var S1=(e)=>{let t=e.value;return!i1(t)&&t.length!==void 0};var L1=be("$ZodCheckMinLength",(e,t)=>{var a;ki.init(e,t),(a=e._zod.def).when??(a.when=S1),e._zod.check=(o)=>{let r=o.value,n=r.length;if((typeof r==="string"&&n>=t.minimum&&n<t.minimum*2?qy(r):n)>=t.minimum)return;let s=$y(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),C1=be("$ZodCheckLengthEquals",(e,t)=>{var a;ki.init(e,t),(a=e._zod.def).when??(a.when=S1),e._zod.check=(o)=>{let r=o.value,n=r.length,i=typeof r==="string"&&n>=t.length&&n<=t.length*2?qy(r):n;if(i===t.length)return;let s=$y(r),l=i>t.length;o.issues.push({origin:s,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),k1=be("$ZodCheckStringFormat",(e,t)=>{var a,o;if(ki.init(e,t),t.pattern)(a=e._zod).check??(a.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(o=e._zod).check??(o.check=()=>{})}),I1=be("$ZodCheckRegex",(e,t)=>{k1.init(e,t),e._zod.check=(a)=>{if(t.pattern.lastIndex=0,t.pattern.test(a.value))return;a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var _1={major:4,minor:6,patch:5};var xo=be("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_1;let o=e._zod.def.checks,r=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let n of r)for(let i of n._zod.onattach)i(e);if(r.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,l,u)=>{if(s.memo)return s;let d=wi(s),m;for(let p of l){if(p._zod.def.when){if(d1(s))continue;if(!p._zod.def.when(s))continue}else if(d)continue;let f=s.issues.length,g=p._zod.check(s);if(g instanceof Promise&&u?.async===!1)throw new pn;if(m||g instanceof Promise)m=(m??Promise.resolve()).then(async()=>{if(await g,s.issues.length===f)return;if(Gy(s.issues,f,e),!d)d=wi(s,f)});else{if(s.issues.length===f)continue;if(Gy(s.issues,f,e),!d)d=wi(s,f)}}if(m)return m.then(()=>s);return s},i=(s,l,u)=>{if(wi(s))return s.aborted=!0,s;let d=n(l,r,u);if(d instanceof Promise){if(u.async===!1)throw new pn;return d.then((m)=>e._zod.parse(m,u))}return e._zod.parse(d,u)};e._zod.run=(s,l)=>{if(l.skipChecks)return e._zod.parse(s,l);if(l.direction==="backward"){let d=e._zod.parse({value:s.value,issues:[]},{...l,skipChecks:!0});if(d instanceof Promise)return d.then((m)=>i(m,s,l));return i(d,s,l)}let u=e._zod.parse(s,l);if(u instanceof Promise){if(l.async===!1)throw new pn;return u.then((d)=>n(d,r,l))}return n(u,r,l)}}},{get "~standard"(){return Zy(this,"~standard",Q5(this))},set "~standard"(e){bi(this,"~standard",e)}}),A1=(e,t)=>e.issues.length?{issues:e.issues.map((a)=>fn(a,t,mn()))}:{value:e.value};async function W5(e,t){let a={async:!0};return A1(await e._zod.run({value:t,issues:[]},a),a)}function Q5(e){return{validate:(t)=>{let a={async:!1};try{let o=e._zod.run({value:t,issues:[]},a);if(!(o instanceof Promise))return A1(o,a)}catch(o){}return W5(e,t)},vendor:"zod",version:1}}var M1=be("$ZodString",(e,t)=>{xo.init(e,t),e._zod.pattern=t.pattern??v1,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=String(a.value)}catch(r){}if(typeof a.value==="string")return a;return a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}});var D1=be("$ZodBoolean",(e,t)=>{xo.init(e,t),e._zod.pattern=b1,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=Boolean(a.value)}catch(n){}let r=a.value;if(typeof r==="boolean")return a;return a.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),a}});var P1=be("$ZodNever",(e,t)=>{xo.init(e,t),e._zod.parse=(a,o)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function fp(e,t,a,o,r,n){let i=a in o,s=n==="optional";if(!i&&s&&r==="optional")return;if(e.issues.length){if(r!==void 0&&s&&!i)return;t.issues.push(...Si(a,e.issues))}if(!i&&r===void 0){if(!e.issues.length)t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}if(e.value===void 0){if(i||r==="defaulted"&&!s)t.value[a]=void 0}else t.value[a]=e.value}var J5=[];function e3(e){let t=Object.keys(e.shape),a=Object.getOwnPropertySymbols(e.shape),o=a.length?a:J5,r=o.length?[...t,...o]:t;for(let i of r)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw Error(\`Invalid element at key "\${String(i)}": expected a Zod schema\`);let n=c1(e.shape);return{...e,allKeys:r,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function t3(e,t,a,o,r,n,i){let s=[],l=r.keySet,u=r.catchall._zod,d=u.def.type,m=u.optin,p=u.optout,f=0;for(let g in t){if(i&&a.issues.length!==f){if(wi(a,f))break;f=a.issues.length}if(l.has(g))continue;if(g==="__proto__"){if(d==="never")s.push(g);continue}if(d==="never"){s.push(g);continue}let y=u.run({value:t[g],issues:[]},o);if(y instanceof Promise)e.push(y.then((b)=>fp(b,a,g,t,m,p)));else fp(y,a,g,t,m,p)}if(s.length)a.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:n,continue:!0});if(!e.length)return a;return Promise.all(e).then(()=>a)}var O1=be("$ZodObject",(e,t)=>{xo.init(e,t);let a=Object.getOwnPropertyDescriptor(t,"shape"),o=a?.get?a.get.raw:t.shape??{};if(o){let u=()=>{let d={...o};return Object.defineProperty(t,"shape",{value:d}),u.raw=d,d};u.raw=o,Object.defineProperty(t,"shape",{get:u})}let r=n1(()=>e3(t));Li(e,"propValues",(u)=>{let d=u.def.shape,m={};for(let p in d){let f=d[p]._zod;if(f.values){if(!Object.prototype.hasOwnProperty.call(m,p))l1(m,p,new Set);for(let g of f.values)m[p].add(g);if(f.optin!==void 0)m[p].add(void 0)}}return m});let n=cp,i=t.catchall,s,l=ju.memoizer;l?.attach(e),e._zod.parse=(u,d)=>{s??(s=r.value);let m=u.value;if(!n(m))return u.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),u;u.value=l?l.alloc(e,u,{},d):{};let p=[],f=s.shape,g=d?.abortEarly,y=u.issues.length;for(let b of s.allKeys){if(g&&u.issues.length!==y){if(wi(u,y))break;y=u.issues.length}if(b==="__proto__")continue;let h=f[b],x=h._zod.optin,v=h._zod.optout,w=h._zod.run({value:m[b],issues:[]},d);if(w instanceof Promise)p.push(w.then((C)=>fp(C,u,b,m,x,v)));else fp(w,u,b,m,x,v)}if(!i)return p.length?Promise.all(p).then(()=>u):u;return t3(p,m,u,d,r.value,e,g===!0)}});var z1=be("$ZodRecord",(e,t)=>{xo.init(e,t);let a=ju.memoizer;a?.attach(e),e._zod.parse=(o,r)=>{let n=o.value;if(!Fy(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),o;let i=[],s=t.keyType._zod.values;if(s&&!t.partial){o.value=a?a.alloc(e,o,{},r):{};let l=new Set;for(let d of s)if(typeof d==="string"||typeof d==="number"||typeof d==="symbol"){if(l.add(typeof d==="number"?d.toString():d),d==="__proto__")continue;let m=t.keyType._zod.run({value:d,issues:[]},r);if(m instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(m.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map((g)=>fn(g,r,mn())),input:d,path:[d],inst:e});continue}let p=m.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:n[d],issues:[]},r);if(f instanceof Promise)i.push(f.then((g)=>{if(g.issues.length)o.issues.push(...Si(d,g.issues));o.value[p]=g.value}));else{if(f.issues.length)o.issues.push(...Si(d,f.issues));o.value[p]=f.value}}let u;for(let d in n)if(!l.has(d))if(t.mode==="loose"){if(d==="__proto__")continue;o.value[d]=n[d]}else u=u??[],u.push(d);if(u&&u.length>0)o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u,continue:!0})}else{o.value=a?a.alloc(e,o,{},r):{};let l;for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(n,u))continue;let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof u==="string"&&ex.test(u)&&d.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},r);if(g instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(g.issues.length===0)d=g}if(d.issues.length){if(t.mode==="loose")o.value[u]=n[u];else if(s)l=l??[],l.push(u);else o.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map((g)=>fn(g,r,mn())),input:u,path:[u],inst:e});continue}let p=d.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:n[u],issues:[]},r);if(f instanceof Promise)i.push(f.then((g)=>{if(g.issues.length)o.issues.push(...Si(u,g.issues));o.value[p]=g.value}));else{if(f.issues.length)o.issues.push(...Si(u,f.issues));o.value[p]=f.value}}if(l&&l.length>0)o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l,continue:!0})}if(i.length)return Promise.all(i).then(()=>o);return o}});var B1=be("$ZodEnum",(e,t)=>{xo.init(e,t);let a=zy(t.entries),o=new Set(a);e._zod.values=o,Li(e,"pattern",(r)=>{let n=zy(r.def.entries).filter((i)=>u1.has(typeof i));return new RegExp(n.length?\`^(\${n.map((i)=>Uy(i.toString())).join("|")})$\`:"^[^\\\\s\\\\S]$")}),e._zod.parse=(r,n)=>{let i=r.value;if(o.has(i))return r;return r.issues.push({code:"invalid_value",values:a,input:i,inst:e}),r}});function T1(e,t){return e.value=t.issues.length?void 0:t.value,e}var F1=be("$ZodOptional",(e,t)=>{xo.init(e,t),Li(e,"optin",(a)=>a.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Li(e,"values",(a)=>{let o=a.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),Li(e,"pattern",(a)=>{let o=a.def.innerType._zod.pattern;return o?new RegExp(\`^(\${s1(o.source)})?$\`):void 0}),e._zod.parse=(a,o)=>{if(a.value===void 0){if(t.innerType._zod.optin!=="defaulted")return a;let r=t.innerType._zod.run({value:a.value,issues:[]},o);if(r instanceof Promise)return r.then((n)=>T1(a,n));return T1(a,r)}return t.innerType._zod.run(a,o)}});var H1=be("$ZodDefault",(e,t)=>{xo.init(e,t),e._zod.optin="defaulted",Li(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,o)=>{if(o.direction==="backward")return t.innerType._zod.run(a,o);if(a.value===void 0)return a.value=t.defaultValue,a;let r=t.innerType._zod.run(a,o);if(r instanceof Promise)return r.then((n)=>E1(n,t));return E1(r,t)}});function E1(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var U1=be("$ZodCustom",(e,t)=>{ki.init(e,t),xo.init(e,t),e._zod.parse=(a,o)=>a,e._zod.check=(a)=>{let o=a.value,r=t.fn(o);if(r instanceof Promise)return r.then((n)=>N1(n,a,o,e));N1(r,a,o,e);return}});function N1(e,t,a,o){if(!e){let r={code:"custom",input:a,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};if(o._zod.def.params)r.params=o._zod.def.params;t.issues.push(Vy(r))}}function a3(e){if(e.checks)e.checks=[...e.checks];return e}function G1(e,t){return new e(a3({type:"string",..._a(t)}))}function q1(e,t){return new e({type:"boolean",..._a(t)})}function $1(e,t){return new e({type:"never",..._a(t)})}function Lt(e,t){return new L1({check:"min_length",..._a(t),minimum:e})}function tx(e,t){return new C1({check:"length_equals",..._a(t),length:e})}function ax(e,t){return new I1({check:"string_format",format:"regex",..._a(t),pattern:e})}function V1(e,t,a){return new e({type:"custom",check:"custom",fn:t,..._a(a)})}var br=be("ZodMiniType",(e,t)=>{if(!e._zod)throw Error("Uninitialized schema in ZodMiniType.");xo.init(e,t),e.def=t,e.type=t.type},{get with(){return this.check},set with(e){bi(this,"with",e)},parse(e,t){return Yy(this,e,t,{callee:this.parse})},parseAsync(e,t){return Wy(this,e,t,{callee:this.parseAsync})},safeParse(e,t){return Qy(this,e,t)},safeParseAsync(e,t){return Jy(this,e,t)},check(...e){let t=this.def;return this.clone({...t,checks:[...t.checks??[],...e.map((a)=>typeof a==="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]},{parent:!0})},clone(e,t){return dp(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},apply(e,...t){return t.length===0?e(this):e(this,...t)}}),r3=be("ZodMiniString",(e,t)=>{M1.init(e,t),br.init(e,t)});function qe(e){return G1(r3,e)}var n3=be("ZodMiniBoolean",(e,t)=>{D1.init(e,t),br.init(e,t)});function Ii(e){return q1(n3,e)}var i3=be("ZodMiniNever",(e,t)=>{P1.init(e,t),br.init(e,t)});function s3(e){return $1(i3,e)}var l3=be("ZodMiniObject",(e,t)=>{O1.init(e,t),br.init(e,t),p1(e,"shape",(a)=>a._zod.def.shape,!1)});function Os(e,t){return new l3({type:"object",shape:e,catchall:s3(),..._a(t)})}var Z1=be("ZodMiniRecord",(e,t)=>{z1.init(e,t),br.init(e,t)});function zs(e,t,a){if(!t||!t._zod)return new Z1({type:"record",keyType:qe(),valueType:e,..._a(t)});return new Z1({type:"record",keyType:e,valueType:t,..._a(a)})}var u3=be("ZodMiniEnum",(e,t)=>{B1.init(e,t),br.init(e,t),e.options=[...e._zod.values]});function K1(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map((o)=>[o,o])):e;return new u3({type:"enum",entries:a,..._a(t)})}var c3=be("ZodMiniOptional",(e,t)=>{F1.init(e,t),br.init(e,t)});function j1(e){return new c3({type:"optional",innerType:e})}var d3=be("ZodMiniDefault",(e,t)=>{H1.init(e,t),br.init(e,t)});function Ri(e,t){return new d3({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():Hy(t)}})}var f3=be("ZodMiniCustom",(e,t)=>{U1.init(e,t),br.init(e,t)});function ox(e,t={}){return V1(f3,e,t)}var h3=K1(["section","folder","file","source","symbol","entry","member"]),g3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1)),member:Ri(Ii(),!1)}),y3=Os({kind:qe().check(Lt(1)),group:h3,label:qe().check(Lt(1)),description:qe().check(Lt(1)),letter:j1(qe().check(tx(1))),prose:Ri(Ii(),!1),typeLike:Ri(Ii(),!1),container:Ri(Ii(),!1),described:Ri(Ii(),!1)}),x3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1))}),v3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1)),colorToken:qe().check(ax(/^--edge-[a-z]+$/))}),b3=Os({label:qe().check(Lt(1)),description:qe().check(Lt(1)),forward:qe().check(Lt(1)),backward:qe().check(Lt(1)),from:qe().check(Lt(1)),to:qe().check(Lt(1)),family:qe().check(Lt(1)),dashed:Ri(Ii(),!1)}),X1={skills:{label:"Skills",description:"Every \`SKILL.md\` inside the directory of an AI tool, such as \`.claude\`, and the files beside it."},docs:{label:"Docs",description:"Markdown files."},code:{label:"Code",description:"Source files with their classes and functions, and JSON, TOML and YAML files, OpenAPI documents and JSON Schemas among them."},database:{label:"Database",description:"SQL files, as schemas with their tables and as query catalogs."},tasks:{label:"Tasks",description:"Plans, their phases and their tasks, as task-manager keeps them."}},rx={folder:{label:"folder",description:"A directory of the repository."},package:{label:"package",description:"A directory with a package manifest: an app, a library or a workspace."},file:{label:"file",description:"A file: source code, markdown, JSON, TOML, YAML, a skill, a schema, SQL and the rest."},namespace:{label:"namespace",description:"A namespace or a module."},class:{label:"class",description:"A class."},interface:{label:"interface",description:"An interface or a protocol."},struct:{label:"struct",description:"A struct or a record."},enum:{label:"enum",description:"An enumeration."},trait:{label:"trait",description:"A trait or a mixin."},type:{label:"type",description:"A type alias."},function:{label:"function",description:"A function or a method."},term:{label:"term",description:"A word of the project and what it means."},decision:{label:"decision",description:"A choice that is costly to undo, with its reason."},table:{label:"table",description:"A table of a SQL schema."},query:{label:"query",description:"An entry of a SQL query catalog."},plan:{label:"plan",description:"A plan of the task tree."},phase:{label:"phase",description:"A phase of a plan."},task:{label:"task",description:"One unit of work of a phase, with its status."},operation:{label:"operation",description:"A method on a path of an API. Found by search, which returns its file.",member:!0},definition:{label:"definition",description:"A named JSON Schema. Found by search, which returns its file.",member:!0},parameter:{label:"parameter",description:"A parameter of a function, an operation or a query. Found by search, which returns its owner.",member:!0},field:{label:"field",description:"A field of a type, a property, a column or a result column. Found by search, which returns its owner.",member:!0}},Y1={section:{kind:"folder",group:"section",label:"section",description:"A top-level group of the site."},folder:{kind:"folder",group:"folder",label:"folder",description:"A directory of the repository."},package:{kind:"package",group:"folder",label:"package",description:"A directory with a package manifest: an app, a library or a workspace."},skill:{kind:"file",group:"file",label:"skill",description:"A \`SKILL.md\`. The other files of its directory belong to it."},reference:{kind:"file",group:"file",label:"reference",description:"A markdown file of a skill."},agent:{kind:"file",group:"file",label:"agent",description:"A file in the \`agents/\` directory of a skill."},hook:{kind:"file",group:"file",label:"hook",description:"A file in the \`hooks/\` directory of a skill."},schema:{kind:"file",group:"file",label:"schema",description:"A JSON Schema, or a schema file of a skill."},asset:{kind:"file",group:"file",label:"file",description:"Any other file of a skill."},document:{kind:"file",group:"file",label:"document",description:"A markdown file."},json:{kind:"file",group:"file",label:"JSON",description:"A JSON file."},toml:{kind:"file",group:"file",label:"TOML",description:"A TOML file."},yaml:{kind:"file",group:"file",label:"YAML",description:"A YAML file."},glossary:{kind:"file",group:"file",label:"glossary",description:"A \`glossary.md\`. Its terms are its entries."},decisions:{kind:"file",group:"file",label:"decisions",description:"A \`decisions.md\`. Its decisions are its entries."},api:{kind:"file",group:"file",label:"API",description:"An OpenAPI document. Its operations and definitions are its entries."},database:{kind:"file",group:"file",label:"database",description:"A \`.sql\` file that creates tables. Its tables are its entries."},catalog:{kind:"file",group:"file",label:"catalog",description:"A directory of \`.sql\` files that create no table. Its queries are its entries."},plan:{kind:"plan",group:"file",label:"plan",description:"A plan of the task tree. Its phases are its children."},phase:{kind:"phase",group:"file",label:"phase",description:"A phase of a plan. Its tasks are its entries."},source:{kind:"file",group:"source",label:"code",description:"A source file. Its classes and functions are its entries."},namespace:{kind:"namespace",group:"symbol",label:"namespace",description:"A namespace or a module.",letter:"N",container:!0},class:{kind:"class",group:"symbol",label:"class",description:"A class.",letter:"C",typeLike:!0,container:!0},interface:{kind:"interface",group:"symbol",label:"interface",description:"An interface or a protocol.",letter:"I",typeLike:!0,container:!0},struct:{kind:"struct",group:"symbol",label:"struct",description:"A struct or a record.",letter:"S",typeLike:!0,container:!0},enum:{kind:"enum",group:"symbol",label:"enum",description:"An enumeration.",letter:"E",typeLike:!0,container:!0},trait:{kind:"trait",group:"symbol",label:"trait",description:"A trait or a mixin.",letter:"T",typeLike:!0,container:!0},type:{kind:"type",group:"symbol",label:"type",description:"A type alias.",letter:"T",typeLike:!0,container:!0},function:{kind:"function",group:"symbol",label:"function",description:"A function.",letter:"F"},method:{kind:"function",group:"symbol",label:"method",description:"A method of a type.",letter:"M"},term:{kind:"term",group:"entry",label:"term",description:"A word of the project and what it means.",prose:!0},decision:{kind:"decision",group:"entry",label:"decision",description:"A choice that is costly to undo, with its reason.",prose:!0},operation:{kind:"operation",group:"entry",label:"operation",description:"A method on a path of an API.",described:!0},definition:{kind:"definition",group:"entry",label:"definition",description:"A named JSON Schema.",described:!0},table:{kind:"table",group:"entry",label:"table",description:"A table of a SQL schema.",described:!0},query:{kind:"query",group:"entry",label:"query",description:"An entry of a SQL query catalog.",described:!0},task:{kind:"task",group:"entry",label:"task",description:"One unit of work of a phase, with its status.",prose:!0},parameter:{kind:"parameter",group:"member",label:"parameter",description:"A parameter of a function, an operation or a query."},field:{kind:"field",group:"member",label:"field",description:"A field of a type, a property, a column or a result column."}},nx={typing:{label:"typing",description:"What a declaration is made of.",colorToken:"--edge-typing"},result:{label:"result",description:"What a call gives back.",colorToken:"--edge-result"},prose:{label:"prose",description:"What a text points at.",colorToken:"--edge-prose"},term:{label:"term",description:"A text that uses a glossary term.",colorToken:"--edge-term"},key:{label:"key",description:"A foreign key between two tables.",colorToken:"--edge-key"},query:{label:"query",description:"A table a query reads or writes.",colorToken:"--edge-query"},task:{label:"task",description:"What a task names, and what it waits for.",colorToken:"--edge-task"}},W1={type:{label:"type",description:"A parameter or field has that type, or the request body of an operation has that schema.",forward:"has type",backward:"is the type of",from:"parameter, field, property or operation",to:"type or definition",family:"typing"},returns:{label:"returns",description:"A function returns that type, or an operation answers with that schema.",forward:"returns",backward:"is returned by",from:"function, method or operation",to:"type or definition",family:"result"},throws:{label:"throws",description:"A function throws that type, or an operation answers an error with that schema.",forward:"throws",backward:"is thrown by",from:"function, method or operation",to:"type or definition",family:"result",dashed:!0},extends:{label:"extends",description:"A type extends, implements or is composed of that type.",forward:"extends",backward:"is extended by",from:"type or definition",to:"type or definition",family:"typing",dashed:!0},mentions:{label:"mentions",description:"A page or a description links to that node.",forward:"mentions",backward:"is mentioned by",from:"page or entry",to:"any node",family:"prose"},uses:{label:"uses",description:"A page, a description or a decision uses that glossary term.",forward:"uses",backward:"is used by",from:"page, entry, parameter or field",to:"term",family:"term"},affects:{label:"affects",description:"A decision is about that node.",forward:"affects",backward:"is affected by",from:"decision",to:"any node",family:"prose",dashed:!0},references:{label:"references",description:"A table has a foreign key to that table.",forward:"references",backward:"is referenced by",from:"table",to:"table",family:"key"},reads:{label:"reads",description:"A query selects from that table.",forward:"reads",backward:"is read by",from:"query",to:"table",family:"query"},writes:{label:"writes",description:"A statement inserts into, updates or deletes from that table.",forward:"writes",backward:"is written by",from:"query",to:"table",family:"query",dashed:!0},names:{label:"names",description:"A plan, a phase or a task links to that node or names it in inline code.",forward:"names",backward:"is named by",from:"plan, phase or task",to:"any node",family:"task"},depends:{label:"depends",description:"A plan, a phase or a task waits for that one to be completed.",forward:"depends on",backward:"is depended on by",from:"plan, phase or task",to:"plan, phase or task",family:"task",dashed:!0}};function w3(){let e=zs(qe(),g3).parse(rx),t=zs(qe(),y3.check(ox((n)=>(n.kind in rx),"unknown kind"))).parse(Y1),a=zs(qe(),x3).parse(X1),o=zs(qe(),v3).parse(nx),r=zs(qe(),b3.check(ox((n)=>(n.family in nx),"unknown family"))).parse(W1);for(let n of Object.keys(o)){let i=Object.values(r).filter((s)=>s.family===n);if(i.length>2||i.filter((s)=>s.dashed).length!==i.length-1)throw Error(\`Relation family \${n} needs one solid kind and at most one dashed kind\`)}return{nodeKinds:e,nodeTypes:t,sections:a,families:o,relations:r}}var Yu=w3(),Ho=Yu.nodeTypes,hn=Yu.nodeKinds,ix=Yu.sections,S3=Yu.families,wr=Yu.relations,Wu=Object.keys(X1),sx=Object.keys(Y1),_i=Object.keys(rx);function pa(e){return Ho[e].kind}function Bs(e){return hn[e].member}var Ti=Object.keys(W1),L3=Object.keys(nx);function Fs(...e){return sx.filter((t)=>e.includes(Ho[t].group))}function Qu(e){return new Set(sx.filter((t)=>Ho[t][e]))}var lx=Fs("symbol"),Oae=Qu("typeLike"),zae=Qu("container"),C3=Fs("file"),k3=Fs("symbol","entry"),Bae=Fs("section","folder","file","source","symbol","entry"),I3=new Set(lx),R3=new Set(C3),_3=new Set(k3),T3=Qu("described");function ma(e){return I3.has(e)}function E3(e){return R3.has(e)}function Ta(e){return _3.has(e)}function Ju(e){return ma(e.kind)}function pp(e){return Ta(e.kind)}function Yt(e){return E3(e.kind)}function Hs(e){return ma(e.kind)||T3.has(e.kind)}var ux=3;function Ve(e,t){return\`\${ma(e)?"symbol":e}:\${t}\`}function Q1(e,t){let a=[],o;for(let r=t;r!==null;){let n=e[r];if(!n)throw Error(\`No node at \${r}\`);if(Ta(n.kind))o??=Ve(n.kind,n.anchor??"");else if(n.kind!=="parameter"&&n.kind!=="field")a.unshift(n.slug??n.name);r=n.parent}return{path:a.join("/"),hash:o}}function mp(e){return\`#/\${e.path.split("/").map(encodeURIComponent).join("/")}\${e.hash?\`#\${e.hash}\`:""}\`}var J1="analyze-data",cx="analyze-root",dx="analyze:color-mode";var lz=U(V(),1),uz=U(gE(),1);var H6=new Set(["parameter","field"]);function ko(e){return H6.has(e)}class th{meta;semantic;nodes;childRefs;routes;pages=new Map;anchors=new Map;outgoing;incoming;sections;constructor(e){this.meta=e.meta,this.semantic=e.semantic,this.nodes=e.nodes,this.childRefs=e.nodes.map(()=>[]),this.outgoing=e.nodes.map(()=>[]),this.incoming=e.nodes.map(()=>[]),this.routes=e.nodes.map((t,a)=>Q1(e.nodes,a)),e.nodes.forEach((t,a)=>{if(t.parent!==null)this.childRefs[t.parent]?.push(a);let{path:o,hash:r}=this.route(a);if(pp(t))this.anchors.set(\`\${o}#\${r}\`,a);else if(!ko(t.kind))this.pages.set(o,a)});for(let t of e.edges)this.outgoing[t[0]]?.push(t),this.incoming[t[2]]?.push(t);this.sections=Wu.flatMap((t)=>{let a=this.pages.get(t);return a===void 0?[]:[{slug:t,node:a}]})}node(e){let t=this.nodes[e];if(!t)throw Error(\`No node at \${e}\`);return t}children(e){return this.childRefs[e]??[]}ancestors(e){let t=[];for(let a=this.node(e).parent;a!==null;a=this.node(a).parent)t.unshift(a);return t}route(e){let t=this.routes[e];if(!t)throw Error(\`No node at \${e}\`);return t}at(e,t){let a=e.replace(/^\\/+|\\/+$/g,"");return(t?this.anchors.get(\`\${a}#\${t}\`):void 0)??this.pages.get(a)}section(e){let t=this.pages.get(e);if(t===void 0)throw Error(\`The bundle has no "\${e}" section\`);return t}sectionOf(e){return this.ancestors(e)[0]??e}*descendants(e){for(let t of this.children(e))yield t,yield*this.descendants(t)}count(e,t){let a=0;for(let o of this.descendants(e))if(t.has(this.node(o).kind))a++;return a}edgesFrom(e){return this.outgoing[e]??[]}edgesTo(e){return this.incoming[e]??[]}qualifiedName(e){let t=this.node(e);if("path"in t)return t.path;if(!Hs(t)&&!ko(t.kind))return t.name;let a=t.parent===null?null:this.node(t.parent),o=a&&t.parent!==null&&Hs(a)?this.qualifiedName(t.parent):"";if(t.kind==="parameter")return\`\${o}(\${t.name})\`;return o?\`\${o}.\${t.name}\`:t.name}}var U6=new Map([["admin","administrator"],["arg","argument"],["args","arguments"],["arr","array"],["attr","attribute"],["attrs","attributes"],["auth","authentication"],["btn","button"],["calc","calculate"],["cfg","configuration"],["cmd","command"],["config","configuration"],["configs","configurations"],["ctx","context"],["db","database"],["dest","destination"],["dir","directory"],["doc","document"],["docs","documentation"],["dst","destination"],["env","environment"],["err","error"],["exec","execute"],["fn","function"],["func","function"],["idx","index"],["img","image"],["impl","implementation"],["info","information"],["lang","language"],["len","length"],["lib","library"],["msg","message"],["nav","navigation"],["num","number"],["obj","object"],["opt","option"],["opts","options"],["param","parameter"],["params","parameters"],["pkg","package"],["pref","preference"],["prefs","preferences"],["prev","previous"],["prop","property"],["props","properties"],["pwd","password"],["repo","repository"],["req","request"],["spec","specification"],["specs","specifications"],["src","source"],["str","string"],["tmp","temporary"],["util","utility"],["utils","utilities"],["var","variable"],["vars","variables"]]);function nd(e){return U6.get(e)??e}function Fl(e){let t=0;for(let o of e)t+=o*o;if(t===0)return null;let a=Math.sqrt(t);for(let o=0;o<e.length;o++)e[o]=(e[o]??0)/a;return e}function ah(e,t,a){let o=a*e.length,r=0,n=0;for(let i=0;i<e.length;i++){let s=t[o+i]??0;r+=(e[i]??0)*s,n+=s*s}return n===0?0:r/Math.sqrt(n)}function b0(e,t,a){return Fl(Float32Array.from(e.subarray(t*a,(t+1)*a)))}var G6=7;function yE(e,t){let a=new Int8Array(t);for(let o=0;o<t;o++){let r=(e[o>>1]??0)>>(o%2===0?4:0)&15;a[o]=r>G6?r-16:r}return a}function oh(e){let t=atob(e),a=new Int8Array(t.length);for(let o=0;o<t.length;o++)a[o]=t.charCodeAt(o);return a}function w0(e,t){let a=oh(e);return yE(new Uint8Array(a.buffer,a.byteOffset,a.byteLength),t)}var Z6=/[\\p{Cc}\\p{Cf}]/gu,K6=/\\p{Mn}/gu,j6=/[\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]/g,xE=/[!-/:-@[-\`{-~\\p{P}]/u,X6=[["ies","y"],["ing",""],["ed",""],["es",""],["s",""],["d",""]],Y6=3;function W6(e){return e.replace(/([\\p{Ll}\\p{N}])(\\p{Lu})/gu,"$1 $2").replace(/(\\p{Lu}+)(\\p{Lu}\\p{Ll})/gu,"$1 $2").replace(/(\\p{L})(\\p{N})|(\\p{N})(\\p{L})/gu,"$1$3 $2$4")}function Hl(e){let t=W6(e).replace(Z6," ").replace(j6," $& ").toLowerCase().normalize("NFD").replace(K6,""),a=[],o=(r)=>{if(r)a.push(nd(r))};for(let r of t.split(/\\s+/)){let n="";for(let i of r){if(!xE.test(i)){n+=i;continue}o(n),a.push(i),n=""}o(n)}return a}function S0(e){return e.length===1&&xE.test(e)}class rh{rows;constructor(e){this.rows=new Map(e.map((t,a)=>[t,a]))}rowOf(e){let t=this.rows.get(e);if(t!==void 0)return t;for(let[a,o]of X6){if(!e.endsWith(a))continue;let r=\`\${e.slice(0,-a.length)}\${o}\`,n=r.length>=Y6?this.rows.get(r):void 0;if(n!==void 0)return n}return}}var Q6=0.55;class nh{name;dimensions;vectors;vocabulary;medianLength=null;constructor(e){if(e.vectors.length!==e.vocabulary.length*e.dimensions)throw Error(\`Embedding model "\${e.name}" is damaged: \${e.vocabulary.length} words of \${e.dimensions} values need \${e.vocabulary.length*e.dimensions} values, found \${e.vectors.length}.\`);this.name=e.name,this.dimensions=e.dimensions,this.vectors=e.vectors,this.vocabulary=new rh(e.vocabulary)}embed(e){let t=new Float32Array(this.dimensions);for(let a of Hl(e)){let o=this.vocabulary.rowOf(a);if(o===void 0)continue;let r=o*this.dimensions;for(let n=0;n<this.dimensions;n++)t[n]=(t[n]??0)+(this.vectors[r+n]??0)}return Fl(t)}embedParts(e){let t=new Float32Array(this.dimensions);for(let{text:a,weight:o}of e){let r=this.embed(a);if(!r)continue;for(let n=0;n<this.dimensions;n++)t[n]=(t[n]??0)+o*(r[n]??0)}return Fl(t)}contentWords(e){let t=new Set;for(let a of Hl(e))if(a.length>1&&!this.isFunctionWord(a))t.add(a);return[...t]}wordVector(e){let t=this.vocabulary.rowOf(e);return t===void 0?null:Fl(Float32Array.from(this.row(t)))}wordWeight(e){let t=this.vocabulary.rowOf(e);return t===void 0?this.median():this.lengthOf(t)}isFunctionWord(e){let t=this.vocabulary.rowOf(e);return t!==void 0&&this.lengthOf(t)<Q6*this.median()}row(e){return this.vectors.subarray(e*this.dimensions,(e+1)*this.dimensions)}lengthOf(e){let t=(e+1)*this.dimensions,a=0;for(let o=e*this.dimensions;o<t;o++){let r=this.vectors[o]??0;a+=r*r}return Math.sqrt(a)}median(){if(this.medianLength===null){let e=this.vectors.length/this.dimensions,t=Float32Array.from({length:e},(a,o)=>this.lengthOf(o)).sort();this.medianLength=t[t.length>>1]??0}return this.medianLength}}var J6=0.9,eH=[1,0.2,0.35],tH=0.5;class ih{index;modelName;dimensions;nodes;nodeVectors;rows;words;wordIds;model=null;wordVectors=null;constructor(e){this.index=e;this.modelName=e.model,this.dimensions=e.dimensions,this.nodes=e.nodes,this.nodeVectors=oh(e.nodeVectors),this.rows=new Map(e.nodes.map((t,a)=>[t,a])),this.words=e.words.length>0?e.words.split(\`
7499
+ \`):[],this.wordIds=new Map(this.words.map((t,a)=>[t,a]))}search(e,t,a){let o=this.loadModel(),r=o.embed(e),n=this.queryWords(o,e);if(!r&&n.length===0)return[];let i=n.reduce((u,d)=>u+d.weight,0),s=i===0?1:eH[n.length]??tH,l=[];return this.nodes.forEach((u,d)=>{let m=r?Math.max(0,ah(r,this.nodeVectors,d)):0,p=0;if(i>0){let[g,y]=this.index.nodeWords[d]??[[],[]];for(let{weight:b,likeness:h}of n){let x=0;for(let v of g)x=Math.max(x,h[v]??0);for(let v of y)x=Math.max(x,J6*(h[v]??0));p+=b*x}p/=i}let f=s*m+(1-s)*p;if(f>=a)l.push({node:u,score:f})}),l.sort((u,d)=>d.score-u.score).slice(0,t)}similarTo(e,t,a){let o=this.rows.get(e),r=o===void 0?null:b0(this.nodeVectors,o,this.dimensions);if(!r)return[];let n=[];return this.nodes.forEach((i,s)=>{if(i===e)return;let l=ah(r,this.nodeVectors,s);if(l>=a)n.push({node:i,score:l})}),n.sort((i,s)=>s.score-i.score).slice(0,t)}loadModel(){if(!this.model){let e=this.index.vocabulary.split(\`
7500
+ \`);this.model=new nh({name:this.index.model,dimensions:this.dimensions,vocabulary:e,vectors:w0(this.index.vocabularyVectors,e.length*this.dimensions)})}return this.model}queryWords(e,t){this.wordVectors??=this.words.map((o)=>e.wordVector(o));let a=this.wordVectors;return e.contentWords(t).map((o)=>{let r=e.wordVector(o),n=new Float32Array(this.words.length);if(r)a.forEach((s,l)=>{if(!s)return;let u=0;for(let d=0;d<r.length;d++)u+=(r[d]??0)*(s[d]??0);n[l]=Math.max(0,u)});let i=this.wordIds.get(o);if(i!==void 0)n[i]=1;return{weight:e.wordWeight(o),likeness:n}})}}var aH={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "},oH=/&(?:#x([0-9a-f]+)|#(\\d+)|([a-z]+));/gi;var rH=/<\\/?(?:p|div|li|ul|ol|tr|td|th|h[1-6]|pre|blockquote|table|br|hr)\\b[^>]*>/gi,nH=/<[^>]*>/g;function iH(e){return e.replace(oH,(t,a,o,r)=>{if(a)return String.fromCodePoint(Number.parseInt(a,16));if(o)return String.fromCodePoint(Number.parseInt(o,10));return aH[(r??"").toLowerCase()]??t})}function Io(e){return iH(e.replace(rH," ").replace(nH,"")).replace(/\\s+/g," ").trim()}function L0(e){return Hl(e).filter((t)=>!S0(t)).join(" ")}function id(e){return e.toLowerCase().split(/[^\\p{L}\\p{N}]+/u).filter(Boolean).map((t)=>\` \${t}\`).join("")}function sH(e,t,a){for(let o=e.node(t).parent;o!==null;o=e.node(o).parent)if(!Bs(pa(e.node(o).kind)))return a.get(o);return}function C0(e){let t=[],a=new Map;for(let{node:o}of e.sections){let r=e.node(o).name,n="";for(let i of e.descendants(o)){let s=e.node(i),l,u,d="",m="";if(Yt(s))n=s.path,l=s.title,u=s.kind==="skill"?s.description:s.path,m=\`\${s.description} \${s.content.format==="markdown"?Io(s.content.html):""}\`;else if(s.kind==="source")n=s.path,l=s.path,u=s.language;else if(pp(s)){if(l=s.kind==="decision"&&s.id?\`\${s.id}. \${s.name}\`:s.kind==="task"?\`\${s.id} \${s.name}\`:s.name,u=n,s.kind==="term")d=s.avoid.join(" "),m=Io(s.definitionHtml);else if(s.kind==="decision")m=Io(s.html);else if(s.kind==="task")d=\`\${s.id} \${s.package} \${s.status}\`,u=s.sourcePath,m=\`\${s.summary} \${Io(s.html)}\`;else if(Hs(s)){if(m=Io(s.descriptionHtml),s.kind==="operation")d=\`\${s.operationId} \${L0(s.operationId)} \${s.summary}\`;if(s.kind==="query")u=s.sourcePath,m=\`\${m} \${s.verb} \${s.tables.map((g)=>g.name).join(" ")}\`}}else if(s.kind==="parameter"||s.kind==="field")l=e.qualifiedName(i),u=n,m=Io(s.descriptionHtml);else continue;let p=\`\${l} \${d} \${L0(s.name)}\`.toLowerCase();if(Bs(pa(s.kind))){let g=\`\${s.name} \${d} \${L0(s.name)}\`.toLowerCase(),y=t[sH(e,i,a)??-1];if(y)y.haystack=\`\${y.haystack} \${g}\`,y.text=\`\${y.text}\${id(m)}\`;let b=id(m);t.push({node:i,member:!0,kind:s.kind,group:r,title:s.name,detail:u,haystack:g,place:id(u),text:b});continue}let f=id(u);a.set(i,t.length),t.push({node:i,member:!1,kind:s.kind,group:r,title:l,detail:u,haystack:p,place:f,text:id(m)})}}return t}var lH=4,vE=5;function uH(e,t){if(e===t)return 0;if(e.startsWith(t))return 1;return e.includes(t)?2:3}function cH(e){let t=new Set([e,nd(e)]);if(e.length>3&&e.endsWith("ies"))t.add(\`\${e.slice(0,-3)}y\`);else if(e.length>3&&e.endsWith("s")&&!e.endsWith("ss"))t.add(e.slice(0,-1));return[...t]}function k0(e,t,a){let o=t.toLowerCase().split(/\\s+/).filter(Boolean);if(o.length===0)return[];let r=o.join(" "),n=o.map(cH),i=(d,m)=>m.some((p)=>d.haystack.includes(p)),s=(d,m)=>m.some((p)=>d.place.includes(\` \${p}\`)),l=(d,m)=>m.some((p)=>d.text.includes(\` \${p}\`)),u=[];for(let d of e){let m=n.every((g)=>i(d,g)),p=m||n.every((g)=>i(d,g)||s(d,g));if(!p&&!n.every((g)=>i(d,g)||s(d,g)||l(d,g)))continue;let f=m?uH(d.title.toLowerCase(),r):p?lH:vE;u.push({entry:d,score:f})}return u.sort((d,m)=>d.score-m.score||d.entry.title.length-m.entry.title.length).slice(0,a).map(({entry:d,score:m})=>({entry:d,found:m===vE?"text":"name"}))}var dH=0.5,fH=6,pH=0.6,mH=4,bE=new WeakMap;function wE(e){return e.semantic?.format===ux?e.semantic:void 0}function SE(e){let t=bE.get(e);if(t===void 0){let a=wE(e);t=a?new ih(a):null,bE.set(e,t)}return t}function I0(e,t,a,o={}){let{limit:r=fH,accepts:n=()=>!0}=o;return(SE(e)?.search(t,Number.MAX_SAFE_INTEGER,dH)??[]).filter((s)=>n(s.node)&&!a.has(s.node)).slice(0,r)}function R0(e,t){return SE(e)?.similarTo(t,mH,pH)??[]}function _0(e){return wE(e)?.model??null}function LE(){let e=document.getElementById(J1)?.textContent??"";try{return JSON.parse(e)}catch{throw Error("This page holds no documentation data. Generate it with \`g3n-analyze create_docs\`.")}}var sd=hH()||!gH();function hH(){try{return window.self!==window.top}catch{return!0}}function gH(){let e=(t)=>t.split("#",1)[0]??t;return e(new URL("#",document.baseURI).href)===e(window.location.href)}var T0="data-href";function CE(e){return sd?e.replaceAll('<a href="#',\`<a role="link" tabindex="0" \${T0}="#\`):e}function Ul({title:e,children:t}){return S("div",{className:"mx-auto max-w-md px-4 py-24 text-center",children:[c("h1",{className:"text-lg font-semibold tracking-tight",children:e}),c("div",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:t})]})}function Gl(e){return hn[pa(e)].label}function kE(e){let t=pa(e);return(t in Ho?Ho[t].letter:void 0)??Gl(e).charAt(0).toUpperCase()}var yH="break-all font-mono",xH="break-words";function ql(e){return Ho[e].prose?xH:yH}function IE(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=IE(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function sh(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=IE(e))&&(o&&(o+=" "),o+=t);return o}var vH=(e,t)=>{let a=Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},bH=(e,t)=>({classGroupId:e,validator:t}),AE=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var RE=[];var wH=(e)=>{let t=LH(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:(i)=>{if(i.startsWith("[")&&i.endsWith("]"))return SH(i);let s=i.split("-"),l=s[0]===""&&s.length>1?1:0;return ME(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){let l=o[i],u=a[i];if(l){if(u)return vH(u,l);return l}return u||RE}return a[i]||RE}}},ME=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=ME(e,t+1,n);if(u)return u}let i=a.validators;if(i===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=i.length;for(let u=0;u<l;u++){let d=i[u];if(d.validator(s))return d.classGroupId}return},SH=(e)=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?"arbitrary.."+o:void 0})(),LH=(e)=>{let{theme:t,classGroups:a}=e;return CH(a,t)},CH=(e,t)=>{let a=AE();for(let o in e){let r=e[o];N0(r,a,o,t)}return a},N0=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let i=e[n];kH(i,t,a,o)}},kH=(e,t,a,o)=>{if(typeof e==="string"){IH(e,t,a);return}if(typeof e==="function"){RH(e,t,a,o);return}_H(e,t,a,o)},IH=(e,t,a)=>{let o=e===""?t:DE(t,e);o.classGroupId=a},RH=(e,t,a,o)=>{if(TH(e)){N0(e(o),t,a,o);return}if(t.validators===null)t.validators=[];t.validators.push(bH(a,e))},_H=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let i=0;i<n;i++){let[s,l]=r[i];N0(l,DE(t,s),a,o)}},DE=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let i=o[n],s=a.nextPart.get(i);if(!s)s=AE(),a.nextPart.set(i,s);a=s}return a},TH=(e)=>("isThemeGetter"in e)&&e.isThemeGetter===!0,EH=(e)=>{if(e<1)return{get:()=>{return},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,i)=>{if(a[n]=i,t++,t>e)t=0,o=a,a=Object.create(null)};return{get(n){let i=a[n];if(i!==void 0)return i;if((i=o[n])!==void 0)return r(n,i),i},set(n,i){if(n in a)a[n]=i;else r(n,i)}}};var NH=[],_E=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),AH=(e)=>{let{prefix:t,experimentalParseClassName:a}=e,o=(r)=>{let n=[],i=0,s=0,l=0,u,d=r.length;for(let y=0;y<d;y++){let b=r[y];if(i===0&&s===0){if(b===":"){n.push(r.slice(l,y)),l=y+1;continue}if(b==="/"){u=y;continue}}if(b==="[")i++;else if(b==="]")i--;else if(b==="(")s++;else if(b===")")s--}let m=n.length===0?r:r.slice(l),p=m,f=!1;if(m.endsWith("!"))p=m.slice(0,-1),f=!0;else if(m.startsWith("!"))p=m.slice(1),f=!0;let g=u&&u>l?u-l:void 0;return _E(n,f,p,g)};if(t){let r=t+":",n=o;o=(i)=>i.startsWith(r)?n(i.slice(r.length)):_E(NH,!1,i,void 0,!0)}if(a){let r=o;o=(n)=>a({className:n,parseClassName:r})}return o},MH=(e)=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),(a)=>{let o=[],r=[];for(let n=0;n<a.length;n++){let i=a[n],s=i[0]==="[",l=t.has(i);if(s||l){if(r.length>0)r.sort(),o.push(...r),r=[];o.push(i)}else r.push(i)}if(r.length>0)r.sort(),o.push(...r);return o}},DH=(e)=>({cache:EH(e.cacheSize),parseClassName:AH(e),sortModifiers:MH(e),postfixLookupClassGroupIds:PH(e),...wH(e)}),PH=(e)=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},OH=/\\s+/,zH=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(OH),u="";for(let d=l.length-1;d>=0;d-=1){let m=l[d],{isExternal:p,modifiers:f,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:b}=a(m);if(p){u=m+(u.length>0?" "+u:u);continue}let h=!!b,x;if(h){let L=y.substring(0,b);x=o(L);let k=x&&i[x]?o(y):void 0;if(k&&k!==x)x=k,h=!1}else x=o(y);if(!x){if(!h){u=m+(u.length>0?" "+u:u);continue}if(x=o(y),!x){u=m+(u.length>0?" "+u:u);continue}h=!1}let v=f.length===0?"":f.length===1?f[0]:n(f).join(":"),w=g?v+"!":v,C=w+x;if(s.indexOf(C)>-1)continue;s.push(C);let I=r(x,h);for(let L=0;L<I.length;++L){let k=I[L];s.push(w+k)}u=m+(u.length>0?" "+u:u)}return u},BH=(...e)=>{let t=0,a,o,r="";while(t<e.length)if(a=e[t++]){if(o=PE(a))r&&(r+=" "),r+=o}return r},PE=(e)=>{if(typeof e==="string")return e;let t,a="";for(let o=0;o<e.length;o++)if(e[o]){if(t=PE(e[o]))a&&(a+=" "),a+=t}return a},FH=(e,...t)=>{let a,o,r,n,i=(l)=>{let u=t.reduce((d,m)=>m(d),e());return a=DH(u),o=a.cache.get,r=a.cache.set,n=s,s(l)},s=(l)=>{let u=o(l);if(u)return u;let d=zH(l,a);return r(l,d),d};return n=i,(...l)=>n(BH(...l))},HH=[],xt=(e)=>{let t=(a)=>a[e]||HH;return t.isThemeGetter=!0,t.themeKey=e,t},OE=/^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i,zE=/^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i,UH=/^\\d+(?:\\.\\d+)?\\/\\d+(?:\\.\\d+)?$/,GH=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,qH=/\\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$/,$H=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\\(.+\\)$/,VH=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,ZH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,Kn=(e)=>UH.test(e),ue=(e)=>!!e&&!Number.isNaN(Number(e)),or=(e)=>!!e&&Number.isInteger(Number(e)),E0=(e)=>e.endsWith("%")&&ue(e.slice(0,-1)),Br=(e)=>GH.test(e),BE=()=>!0,KH=(e)=>qH.test(e)&&!$H.test(e),A0=()=>!1,jH=(e)=>VH.test(e),XH=(e)=>ZH.test(e),YH=(e)=>!j(e)&&!Y(e),WH=(e)=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),QH=(e)=>jn(e,UE,A0),j=(e)=>OE.test(e),as=(e)=>jn(e,GE,KH),TE=(e)=>jn(e,iU,ue),JH=(e)=>jn(e,$E,BE),eU=(e)=>jn(e,qE,A0),EE=(e)=>jn(e,FE,A0),tU=(e)=>jn(e,HE,XH),lh=(e)=>jn(e,VE,jH),Y=(e)=>zE.test(e),ld=(e)=>os(e,GE),aU=(e)=>os(e,qE),NE=(e)=>os(e,FE),oU=(e)=>os(e,UE),rU=(e)=>os(e,HE),uh=(e)=>os(e,VE,!0),nU=(e)=>os(e,$E,!0),jn=(e,t,a)=>{let o=OE.exec(e);if(o){if(o[1])return t(o[1]);return a(o[2])}return!1},os=(e,t,a=!1)=>{let o=zE.exec(e);if(o){if(o[1])return t(o[1]);return a}return!1},FE=(e)=>e==="position"||e==="percentage",HE=(e)=>e==="image"||e==="url",UE=(e)=>e==="length"||e==="size"||e==="bg-size",GE=(e)=>e==="length",iU=(e)=>e==="number",qE=(e)=>e==="family-name",$E=(e)=>e==="number"||e==="weight",VE=(e)=>e==="shadow";var sU=()=>{let e=xt("color"),t=xt("font"),a=xt("text"),o=xt("font-weight"),r=xt("tracking"),n=xt("leading"),i=xt("breakpoint"),s=xt("container"),l=xt("spacing"),u=xt("radius"),d=xt("shadow"),m=xt("inset-shadow"),p=xt("text-shadow"),f=xt("drop-shadow"),g=xt("blur"),y=xt("perspective"),b=xt("aspect"),h=xt("ease"),x=xt("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...w(),Y,j],I=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],k=()=>[Y,j,l],_=()=>[Kn,"full","auto",...k()],T=()=>[or,"none","subgrid",Y,j],O=()=>["auto",{span:["full",or,Y,j]},or,Y,j],D=()=>[or,"auto",Y,j],z=()=>["auto","min","max","fr",Y,j],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...k()],B=()=>[Kn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],X=()=>[s,Kn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ee=()=>[Kn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],F=()=>[e,Y,j],ce=()=>[...w(),NE,EE,{position:[Y,j]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",oU,QH,{size:[Y,j]}],Q=()=>[E0,ld,as],H=()=>["","none","full",u,Y,j],J=()=>["",ue,ld,as],oe=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[ue,E0,NE,EE],Ka=()=>["","none",g,Y,j],li=()=>["none",ue,Y,j],Rf=()=>["none",ue,Y,j],Ig=()=>[ue,Y,j],_f=()=>[Kn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Br],breakpoint:[Br],color:[BE],container:[Br],"drop-shadow":[Br],ease:["in","out","in-out"],font:[YH],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Br],shadow:[Br],spacing:["px",ue],text:[Br],"text-shadow":[Br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kn,j,Y,b]}],container:["container"],"container-type":[{"@container":["","normal","size",Y,j]}],"container-named":[WH],columns:[{columns:[ue,"auto",j,Y,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{"inset-s":_(),start:_()}],end:[{"inset-e":_(),end:_()}],"inset-bs":[{"inset-bs":_()}],"inset-be":[{"inset-be":_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[or,"auto",Y,j]}],basis:[{basis:[Kn,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,Kn,"auto","initial","none",j]}],grow:[{grow:["",ue,Y,j]}],shrink:[{shrink:["",ue,Y,j]}],order:[{order:[or,"first","last","none",Y,j]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh","none",...B()]}],"font-size":[{text:["base",a,ld,as]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,nU,JH]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",E0,j]}],"font-family":[{font:[aU,eU,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Y,j]}],"line-clamp":[{"line-clamp":[ue,"none",Y,TE]}],leading:[{leading:["none",n,...k()]}],"list-image":[{"list-image":["none",Y,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",Y,as]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[ue,"auto",Y,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[or,Y,j]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},or,Y,j],radial:["",Y,j],conic:["",or,Y,j]},rU,tU]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,Y,j]}],"outline-w":[{outline:["",ue,ld,as]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","inner","none",d,uh,lh]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",m,uh,lh]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[ue,as]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",p,uh,lh]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[ue,Y,j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Y,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,j]}],filter:[{filter:["","none",Y,j]}],blur:[{blur:Ka()}],brightness:[{brightness:[ue,Y,j]}],contrast:[{contrast:[ue,Y,j]}],"drop-shadow":[{"drop-shadow":["","none",f,uh,lh]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",ue,Y,j]}],"hue-rotate":[{"hue-rotate":[ue,Y,j]}],invert:[{invert:["",ue,Y,j]}],saturate:[{saturate:[ue,Y,j]}],sepia:[{sepia:["",ue,Y,j]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,j]}],"backdrop-blur":[{"backdrop-blur":Ka()}],"backdrop-brightness":[{"backdrop-brightness":[ue,Y,j]}],"backdrop-contrast":[{"backdrop-contrast":[ue,Y,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,Y,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,Y,j]}],"backdrop-invert":[{"backdrop-invert":["",ue,Y,j]}],"backdrop-opacity":[{"backdrop-opacity":[ue,Y,j]}],"backdrop-saturate":[{"backdrop-saturate":[ue,Y,j]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,Y,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",Y,j]}],ease:[{ease:["linear","initial",h,Y,j]}],delay:[{delay:[ue,Y,j]}],animate:[{animate:["none",x,Y,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Y,j]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:li()}],"rotate-x":[{"rotate-x":li()}],"rotate-y":[{"rotate-y":li()}],"rotate-z":[{"rotate-z":li()}],scale:[{scale:Rf()}],"scale-x":[{"scale-x":Rf()}],"scale-y":[{"scale-y":Rf()}],"scale-z":[{"scale-z":Rf()}],"scale-3d":["scale-3d"],skew:[{skew:Ig()}],"skew-x":[{"skew-x":Ig()}],"skew-y":[{"skew-y":Ig()}],transform:[{transform:[Y,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_f()}],"translate-x":[{"translate-x":_f()}],"translate-y":[{"translate-y":_f()}],"translate-z":[{"translate-z":_f()}],"translate-none":["translate-none"],zoom:[{zoom:[or,Y,j]}],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",Y,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Y,j]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[ue,ld,as,TE]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var ZE=FH(sU);function P(...e){return ZE(sh(e))}var KE="inline-flex shrink-0 select-none items-center justify-center bg-kind font-mono font-semibold text-kind-foreground leading-none";function ye({kind:e,className:t,...a}){return c("span",{"data-kind":e,className:P(KE,"h-6 rounded-md px-2 text-xs",t),...a,children:Gl(e)})}function jE({kind:e,className:t,...a}){return S("span",{"data-kind":e,className:P(KE,"size-4 rounded-sm text-[0.625rem]",t),...a,children:[c("span",{"aria-hidden":!0,children:kE(e)}),c("span",{className:"sr-only",children:Gl(e)})]})}function lU({href:e,className:t,onKeyDown:a,...o}){if(!sd)return c("a",{href:e,className:t,onKeyDown:a,...o});let r=(n)=>{if(a?.(n),n.key==="Enter"&&!n.defaultPrevented)n.currentTarget.click()};return c("a",{role:"link",tabIndex:0,className:P("cursor-pointer",t),onKeyDown:r,...o})}var rt=Iy(lU);var uU=$u("__root__");function q(){return uU.useRouteContext({select:(e)=>e.graph})}function ct(){let e=q(),t=At({from:"/$",shouldThrow:!1})?.params._splat,a=Zu({select:(o)=>o.hash});return t===void 0?void 0:e.at(t,a)}var cU=new Set(["source","glossary","decisions","schema","api","database","catalog"]);function ie({node:e,...t}){let a=q(),{path:o,hash:r}=a.route(e),{kind:n}=a.node(e),i=cU.has(n)||Ta(n)||n==="parameter"||n==="field";return c(rt,{to:"/$",params:{_splat:o},hash:r,activeOptions:{exact:!0,includeHash:i},...t})}var ch=U(V(),1);var XE=(e)=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function YE(e,t,a=[]){if(t==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:XE(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var WE=(e)=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}if(t.length===0)t+=o.toLowerCase();else t+=a?o.toUpperCase():o;a=!1}return t};var QE=(e)=>{let t=WE(e);return t.charAt(0).toUpperCase()+t.slice(1)};var cd=U(V(),1);var ud=(...e)=>e.filter((t,a,o)=>Boolean(t)&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Xn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function M0(e){return e!==null&&e!==void 0}function JE(e,t={}){let a=t.attributeNames??{},o=(p)=>a[p]??p,r=e.size??e.width??Xn.width,n=e.size??e.height??Xn.height,i=e.aliases?.filter((p)=>typeof p==="string"&&p.trim()!=="").map((p)=>\`lucide-\${p}\`)??[],s=[...e.name?[\`lucide-\${e.name}\`]:[],...i],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?ud(...l):ud("lucide",...s,...l),d=t.absoluteStrokeWidth?Number(t.strokeWidth??Xn["stroke-width"])*Number(e.size??e.width??Xn.width)/Number(t.size??t.width??Xn.width):t.strokeWidth??Xn["stroke-width"];return["svg",{...Object.entries(Xn).reduce((p,[f,g])=>(p[o(f)]=g,p),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&M0(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&M0(t.width)&&{[o("width")]:t.width},..."height"in t&&M0(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:d,...u&&{[o("class")]:u},[o("viewBox")]:\`0 0 \${r} \${n}\`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map((p)=>{let[f,g,y]=p,b=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...g}:g;return y?[f,b,y]:[f,b]})]}function eN(e,t={}){return JE(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var tN=(e)=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var $l=U(V(),1),dU=$l.createContext({});var aN=()=>$l.useContext(dU);var oN=cd.forwardRef(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:i,className:s="",children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...m},p)=>{let{size:f=24,strokeWidth:g=2,absoluteStrokeWidth:y=!1,nonScalingStroke:b=!1,color:h="currentColor",className:x=""}=aN()??{},v=Boolean(l)||tN(m),[w,C,I=[]]=eN(d,{color:e??h,width:a??t??f,height:o??t??f,strokeWidth:r??g,absoluteStrokeWidth:n??y,nonScalingStroke:i??b,className:ud(x,s),hasA11yProp:v,attributes:m});return cd.createElement(w,{ref:p,...C},[...I.map(([L,k])=>cd.createElement(L,k)),...Array.isArray(l)?l:[l]])});function G(e,t=[],a=[]){let o=typeof e==="string"?YE(e,t,a):e,r=ch.forwardRef(({className:n,...i},s)=>ch.createElement(oN,{ref:s,icon:o,className:n,...i}));if(o.name)r.displayName=QE(o.name);return r}var rN={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};rN.node;var Ro=G(rN);var nN={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};nN.node;var Ua=G(nN);var iN={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};iN.node;var Yn=G(iN);var sN={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};sN.node;var Fr=G(sN);var lN={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};lN.node;var dd=G(lN);var uN={name:"arrow-right-left",size:24,node:[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]};uN.node;var fd=G(uN);var cN={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};cN.node;var pd=G(cN);var dN={name:"book-a",size:24,node:[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]]};dN.node;var md=G(dN);var fN={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};fN.node;var Vl=G(fN);var pN={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};pN.node;var hd=G(pN);var mN={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};mN.node;var gd=G(mN);var hN={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};hN.node;var rs=G(hN);var gN={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};gN.node;var Zl=G(gN);var yN={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};yN.node;var yd=G(yN);var xN={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};xN.node;var xd=G(xN);var vN={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};vN.node;var Kl=G(vN);var bN={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};bN.node;var vd=G(bN);var wN={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};wN.node;var bd=G(wN);var SN={name:"gavel",size:24,node:[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]]};SN.node;var wd=G(SN);var LN={name:"library",size:24,node:[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]};LN.node;var Sd=G(LN);var CN={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};CN.node;var Ld=G(CN);var kN={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};kN.node;var Cd=G(kN);var IN={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};IN.node;var kd=G(IN);var RN={name:"maximize",size:24,node:[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]};RN.node;var Id=G(RN);var _N={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};_N.node;var Rd=G(_N);var TN={name:"milestone",size:24,node:[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M18.172 6a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",key:"8gz4t4"}]]};TN.node;var _d=G(TN);var EN={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};EN.node;var ns=G(EN);var NN={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};NN.node;var Td=G(NN);var AN={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};AN.node;var Ed=G(AN);var MN={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};MN.node;var Nd=G(MN);var DN={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};DN.node;var Ad=G(DN);var PN={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};PN.node;var is=G(PN);var ON={name:"scale",size:24,node:[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]]};ON.node;var Md=G(ON);var zN={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};zN.node;var Hr=G(zN);var BN={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};BN.node;var Dd=G(BN);var FN={name:"table-2",size:24,node:[["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]};FN.node;var Pd=G(FN);var HN={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};HN.node;var Od=G(HN);var UN={name:"waypoints",size:24,node:[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]};UN.node;var _o=G(UN);var GN={name:"webhook",size:24,node:[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]};GN.node;var zd=G(GN);var qN={name:"whole-word",size:24,node:[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]};qN.node;var Bd=G(qN);var $N={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};$N.node;var To=G($N);var VN=(e)=>typeof e==="boolean"?\`\${e}\`:e===0?"0":e,ZN=sh,jl=(e,t)=>(a)=>{var o;if((t===null||t===void 0?void 0:t.variants)==null)return ZN(e,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className);let{variants:r,defaultVariants:n}=t,i=Object.keys(r).map((u)=>{let d=a===null||a===void 0?void 0:a[u],m=n===null||n===void 0?void 0:n[u];if(d===null)return null;let p=VN(d)||VN(m);return r[u][p]}),s=a&&Object.entries(a).reduce((u,d)=>{let[m,p]=d;if(p===void 0)return u;return u[m]=p,u},{}),l=t===null||t===void 0?void 0:(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:m,className:p,...f}=d;return Object.entries(f).every((g)=>{let[y,b]=g;return Array.isArray(b)?b.includes({...n,...s}[y]):{...n,...s}[y]===b})?[...u,m,p]:u},[]);return ZN(e,i,l,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className)};var eu={};ui(eu,{Collapsible:()=>UU,CollapsibleContent:()=>$U,CollapsibleTrigger:()=>qU,Content:()=>$U,Root:()=>UU,Trigger:()=>qU,createCollapsibleScope:()=>FU});var Gt=U(V(),1);var fU=Object.defineProperty,Xl=(e,t)=>fU(e,"name",{value:t,configurable:!0}),KN=!!(typeof window<"u"&&window.document&&window.document.createElement);function ke(e,t,{checkForDefaultPrevented:a=!0}={}){return Xl(function(r){if(e?.(r),a===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}Xl(ke,"composeEventHandlers");function pU(e){if(!KN)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Xl(pU,"getOwnerWindow");function D0(e){if(!KN)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Xl(D0,"getOwnerDocument");function jN(e,t=!1){let{activeElement:a}=D0(e);if(!a?.nodeName)return null;if(XN(a)&&a.contentDocument)return jN(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=D0(a).getElementById(o);if(r)return r}}return a}Xl(jN,"getActiveElement");function XN(e){return e.tagName==="IFRAME"}Xl(XN,"isFrame");var io=U(V(),1);var mU=Object.defineProperty,no=(e,t)=>mU(e,"name",{value:t,configurable:!0});function hU(e,t){let a=io.createContext(t);a.displayName=e+"Context";let o=no((n)=>{let{children:i,...s}=n,l=io.useMemo(()=>s,Object.values(s));return c(a.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(n,i={}){let{optional:s=!1}=i,l=io.useContext(a);if(l)return l;if(t!==void 0)return t;if(s)return;throw Error(\`\\\`\${n}\\\` must be used within \\\`\${e}\\\`\`)}return no(r,"useContext"),[o,r]}no(hU,"createContext");function aa(e,t=[]){let a=[];function o(n,i){let s=io.createContext(i);s.displayName=n+"Context";let l=a.length;a=[...a,i];let u=no((m)=>{let{scope:p,children:f,...g}=m,y=p?.[e]?.[l]||s,b=io.useMemo(()=>g,Object.values(g));return c(y.Provider,{value:b,children:f})},"Provider");u.displayName=n+"Provider";function d(m,p,f={}){let{optional:g=!1}=f,y=p?.[e]?.[l]||s,b=io.useContext(y);if(b)return b;if(i!==void 0)return i;if(g)return;throw Error(\`\\\`\${m}\\\` must be used within \\\`\${n}\\\`\`)}return no(d,"useContext"),[u,d]}no(o,"createContext");let r=no(()=>{let n=a.map((i)=>io.createContext(i));return no(function(s){let l=s?.[e]||n;return io.useMemo(()=>({[\`__scope\${e}\`]:{...s,[e]:l}}),[s,l])},"useScope")},"createScope");return r.scopeName=e,[o,YN(r,...t)]}no(aa,"createContextScope");function YN(...e){let t=e[0];if(e.length===1)return t;let a=no(()=>{let o=e.map((r)=>({useScope:r(),scopeName:r.scopeName}));return no(function(n){let i=o.reduce((s,{useScope:l,scopeName:u})=>{let m=l(n)[\`__scope\${u}\`];return{...s,...m}},{});return io.useMemo(()=>({[\`__scope\${t.scopeName}\`]:i}),[i])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}no(YN,"composeContextScopes");var so=U(V(),1);var Yl=!1;var WN=U(V(),1),dt=globalThis?.document?WN.useLayoutEffect:()=>{};var Eo=U(V(),1);var Wl=U(V(),1),gU=Object.defineProperty,yU=(e,t)=>gU(e,"name",{value:t,configurable:!0}),QN=Wl[" useEffectEvent ".trim().toString()],JN=Wl[" useInsertionEffect ".trim().toString()];function P0(e){if(typeof QN==="function")return QN(e);let t=Wl.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});if(typeof JN==="function")JN(()=>{t.current=e});else dt(()=>{t.current=e});return Wl.useMemo(()=>(...a)=>t.current?.(...a),[])}yU(P0,"useEffectEvent");var xU=Object.defineProperty,Fd=(e,t)=>xU(e,"name",{value:t,configurable:!0}),vU=so[" useInsertionEffect ".trim().toString()]||dt;function lo({prop:e,defaultProp:t,onChange:a=Fd(()=>{},"onChange"),caller:o}){let[r,n,i]=tA({defaultProp:t,onChange:a}),s=e!==void 0,l=s?e:r;if(Yl){let d=so.useRef(e!==void 0);so.useEffect(()=>{let m=d.current;if(m!==s)console.warn(\`\${o} is changing from \${m?"controlled":"uncontrolled"} to \${s?"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.\`);d.current=s},[s,o])}let u=so.useCallback((d)=>{if(s){let m=aA(d)?d(e):d;if(m!==e)i.current?.(m)}else n(d)},[s,e,n,i]);return[l,u]}Fd(lo,"useControllableState");function tA({defaultProp:e,onChange:t}){let[a,o]=so.useState(e),r=so.useRef(a),n=so.useRef(t);return vU(()=>{n.current=t},[t]),so.useEffect(()=>{if(r.current!==a)n.current?.(a),r.current=a},[a,r]),[a,o,n]}Fd(tA,"useUncontrolledState");function aA(e){return typeof e==="function"}Fd(aA,"isFunction");var eA=Symbol("RADIX:SYNC_STATE");function bU(e,t,a,o){let{prop:r,defaultProp:n,onChange:i,caller:s}=t,l=r!==void 0,u=P0(i);if(Yl){let b=Eo.useRef(r!==void 0);Eo.useEffect(()=>{let h=b.current;if(h!==l)console.warn(\`\${s} is changing from \${h?"controlled":"uncontrolled"} to \${l?"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.\`);b.current=l},[l,s])}let d=[{...a,state:n}];if(o)d.push(o);let[m,p]=Eo.useReducer((b,h)=>{if(h.type===eA)return{...b,state:h.state};let x=e(b,h);if(l&&!Object.is(x.state,b.state))u(x.state);return x},...d),f=m.state,g=Eo.useRef(f);Eo.useEffect(()=>{if(g.current!==f){if(g.current=f,!l)u(f)}},[f,g,l]);let y=Eo.useMemo(()=>{if(r!==void 0)return{...m,state:r};return m},[m,r]);return Eo.useEffect(()=>{if(l&&!Object.is(r,m.state))p({type:eA,state:r})},[r,m.state,l]),[y,p]}Fd(bU,"useControllableStateReducer");var oA=U(V(),1),wU=Object.defineProperty,z0=(e,t)=>wU(e,"name",{value:t,configurable:!0});function O0(e,t){if(typeof e==="function")return e(t);else if(e!==null&&e!==void 0)e.current=t}z0(O0,"setRef");function Wn(...e){return(t)=>{let a=!1,o=e.map((r)=>{let n=O0(r,t);if(!a&&typeof n=="function")a=!0;return n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];if(typeof n=="function")n();else O0(e[r],null)}}}}z0(Wn,"composeRefs");function Ie(...e){return oA.useCallback(Wn(...e),e)}z0(Ie,"useComposedRefs");var cA=U(V(),1),dA=U(Sp(),1);var Ql={};ui(Ql,{Root:()=>LU,Slot:()=>LU,Slottable:()=>CU,createSlot:()=>Ga,createSlottable:()=>Hd});var Ht=U(V(),1);var SU=Object.defineProperty,uo=(e,t)=>SU(e,"name",{value:t,configurable:!0});function Ga(e){let t=Ht.forwardRef((a,o)=>{let{children:r,...n}=a,i=null,s=!1,l=[];if(B0(r)&&typeof dh==="function")r=dh(r._payload);if(Ht.Children.forEach(r,(p)=>{if(sA(p)){s=!0;let f=p,g="child"in f.props?f.props.child:f.props.children;if(B0(g)&&typeof dh==="function")g=dh(g._payload);i=kU(f,g),l.push(i?.props?.children)}else l.push(p)}),i)i=Ht.cloneElement(i,void 0,l);else if(!s&&Ht.Children.count(r)===1&&Ht.isValidElement(r))i=r;let u=i?iA(i):void 0,d=Ie(o,u);if(!i){if(r||r===0)throw Error(s?_U(e):RU(e));return r}let m=nA(n,i.props??{});if(i.type!==Ht.Fragment)m.ref=o?d:u;return Ht.cloneElement(i,m)});return t.displayName=\`\${e}.Slot\`,t}uo(Ga,"createSlot");var LU=Ga("Slot"),rA=Symbol.for("radix.slottable");function Hd(e){let t=uo((a)=>("child"in a)?a.children(a.child):a.children,"Slottable");return t.displayName=\`\${e}.Slottable\`,t.__radixId=rA,t}uo(Hd,"createSlottable");var CU=Hd("Slottable"),kU=uo((e,t)=>{if("child"in e.props){let a=e.props.child;if(!Ht.isValidElement(a))return null;return Ht.cloneElement(a,void 0,e.props.children(a.props.children))}return Ht.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function nA(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];if(/^on[A-Z]/.test(o)){if(r&&n)a[o]=(...s)=>{let l=n(...s);return r(...s),l};else if(r)a[o]=r}else if(o==="style")a[o]={...r,...n};else if(o==="className")a[o]=[r,n].filter(Boolean).join(" ");else if(o==="aria-describedby")a[o]=uA(n,r)}return{...e,...a}}uo(nA,"mergeProps");function iA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;if(a)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}uo(iA,"getElementRef");function sA(e){return Ht.isValidElement(e)&&typeof e.type==="function"&&"__radixId"in e.type&&e.type.__radixId===rA}uo(sA,"isSlottable");var IU=Symbol.for("react.lazy");function B0(e){return e!=null&&typeof e==="object"&&"$$typeof"in e&&e.$$typeof===IU&&"_payload"in e&&lA(e._payload)}uo(B0,"isLazyComponent");function lA(e){return typeof e==="object"&&e!==null&&"then"in e}uo(lA,"isPromiseLike");function uA(...e){let t=new Set;for(let a of e){if(typeof a!=="string")continue;for(let o of String(a).trim().split(/\\s+/))if(o)t.add(o)}return t.size>0?Array.from(t).join(" "):void 0}uo(uA,"concatAriaDescribedby");var RU=uo((e)=>\`\${e} failed to slot onto its children. Expected a single React element child or \\\`Slottable\\\`.\`,"createSlotError"),_U=uo((e)=>\`\${e} failed to slot onto its \\\`Slottable\\\`. Expected \\\`Slottable\\\` to receive a single React element child.\`,"createSlottableError"),dh=Ht[" use ".trim().toString()];var TU=Object.defineProperty,EU=(e,t)=>TU(e,"name",{value:t,configurable:!0}),NU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=NU.reduce((e,t)=>{let a=Ga(\`Primitive.\${t}\`),o=cA.forwardRef((r,n)=>{let{asChild:i,...s}=r,l=i?a:t;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return c(l,{...s,ref:n})});return o.displayName=\`Primitive.\${t}\`,{...e,[t]:o}},{});function F0(e,t){if(e)dA.flushSync(()=>e.dispatchEvent(t))}EU(F0,"dispatchDiscreteCustomEvent");var Ut=U(V(),1);var fA=U(V(),1),AU=Object.defineProperty,Ur=(e,t)=>AU(e,"name",{value:t,configurable:!0});function pA(e,t){return fA.useReducer((a,o)=>t[a][o]??a,e)}Ur(pA,"useStateMachine");var No=Ur((e)=>{let{present:t,children:a}=e,o=mA(t),r=typeof a==="function"?a({present:o.isPresent}):Ut.Children.only(a),n=hA(o.ref,gA(r));return typeof a==="function"||o.isPresent?Ut.cloneElement(r,{ref:n}):null},"Presence");function mA(e){let[t,a]=Ut.useState(),o=Ut.useRef(null),r=Ut.useRef(e),n=Ut.useRef("none"),i=Ut.useRef(void 0),s=e?"mounted":"unmounted",[l,u]=pA(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ut.useEffect(()=>{if(l==="mounted")n.current=i.current??Jl(o.current),i.current=void 0;else n.current="none"},[l]),dt(()=>{let d=o.current,m=r.current;if(m!==e){let f=n.current,g=Jl(d);if(e)i.current=g,u("MOUNT");else if(g==="none"||d?.display==="none")u("UNMOUNT");else if(m&&f!==g)u("ANIMATION_OUT");else u("UNMOUNT");r.current=e}},[e,u]),dt(()=>{if(t){let d,m=t.ownerDocument.defaultView??window,p=Ur((g)=>{let b=Jl(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&b){if(u("ANIMATION_END"),!r.current){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{if(t.style.animationFillMode==="forwards")t.style.animationFillMode=h})}}},"handleAnimationEnd"),f=Ur((g)=>{if(g.target===t)n.current=Jl(o.current)},"handleAnimationStart");return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:Ut.useCallback((d)=>{if(d){let m=getComputedStyle(d);o.current=m,i.current=Jl(m)}else o.current=null;a(d)},[])}}Ur(mA,"usePresence");function H0(e,t){if(typeof e==="function")return e(t);else if(e!==null&&e!==void 0)e.current=t}Ur(H0,"setRef");function hA(...e){let t=Ut.useRef(e);return t.current=e,Ut.useCallback((a)=>{let o=t.current,r=!1,n=o.map((i)=>{let s=H0(i,a);if(!r&&typeof s==="function")r=!0;return s});if(r)return()=>{for(let i=0;i<n.length;i++){let s=n[i];if(typeof s==="function")s();else H0(o[i],null)}}},[])}Ur(hA,"useStableComposedRefs");function Jl(e){return e?.animationName||"none"}Ur(Jl,"getAnimationName");function gA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;if(a)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}Ur(gA,"getElementRef");var U0=U(V(),1);var MU=Object.defineProperty,DU=(e,t)=>MU(e,"name",{value:t,configurable:!0}),PU=U0[" useId ".trim().toString()]||(()=>{return}),OU=0;function Zt(e){let[t,a]=U0.useState(PU());return dt(()=>{if(!e)a((o)=>o??String(OU++))},[e]),e||(t?\`radix-\${t}\`:"")}DU(Zt,"useId");var zU=Object.defineProperty,Ud=(e,t)=>zU(e,"name",{value:t,configurable:!0}),G0="Collapsible",[BU,FU]=aa(G0),[HU,q0]=BU(G0),UU=Gt.forwardRef(Ud(function(t,a){let{__scopeCollapsible:o,open:r,defaultOpen:n,disabled:i,onOpenChange:s,...l}=t,[u,d]=lo({prop:r,defaultProp:n??!1,onChange:s,caller:G0});return c(HU,{scope:o,disabled:i,contentId:Zt(),open:u,onOpenToggle:Gt.useCallback(()=>d((m)=>!m),[d]),children:c(se.div,{"data-state":fh(u),"data-disabled":i?"":void 0,...l,ref:a})})},"Collapsible")),GU="CollapsibleTrigger",qU=Gt.forwardRef(Ud(function(t,a){let{__scopeCollapsible:o,...r}=t,n=q0(GU,o);return c(se.button,{type:"button","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open||!1,"data-state":fh(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:a,onClick:ke(t.onClick,n.onOpenToggle)})},"CollapsibleTrigger")),yA="CollapsibleContent",$U=Gt.forwardRef(Ud(function(t,a){let{forceMount:o,...r}=t,n=q0(yA,t.__scopeCollapsible);return c(No,{present:o||n.open,children:({present:i})=>c(VU,{...r,ref:a,present:i})})},"CollapsibleContent")),VU=Gt.forwardRef(Ud(function(t,a){let{__scopeCollapsible:o,present:r,children:n,...i}=t,s=q0(yA,o),[l,u]=Gt.useState(r),d=Gt.useRef(null),m=Ie(a,d),p=Gt.useRef(0),f=p.current,g=Gt.useRef(0),y=g.current,b=s.open||l,h=Gt.useRef(b),x=Gt.useRef(void 0);return Gt.useEffect(()=>{let v=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(v)},[]),dt(()=>{let v=d.current;if(v){x.current=x.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";let w=v.getBoundingClientRect();if(p.current=w.height,g.current=w.width,!h.current)v.style.transitionDuration=x.current.transitionDuration,v.style.animationName=x.current.animationName;u(r)}},[s.open,r]),c(se.div,{"data-state":fh(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b,...i,ref:m,style:{["--radix-collapsible-content-height"]:f?\`\${f}px\`:void 0,["--radix-collapsible-content-width"]:y?\`\${y}px\`:void 0,...t.style},children:b&&n})},"CollapsibleContentImpl"));function fh(e){return e?"open":"closed"}Ud(fh,"getState");var pt={};ui(pt,{Close:()=>UG,Content:()=>Lw,Description:()=>FG,Dialog:()=>bw,DialogClose:()=>UG,DialogContent:()=>Lw,DialogDescription:()=>FG,DialogOverlay:()=>Sw,DialogPortal:()=>ww,DialogTitle:()=>BG,DialogTrigger:()=>AG,Overlay:()=>Sw,Portal:()=>ww,Root:()=>bw,Title:()=>BG,Trigger:()=>AG,WarningProvider:()=>GG,createDialogScope:()=>TG});var Me=U(V(),1);var Ae=U(V(),1);var tu=U(V(),1),ZU=Object.defineProperty,KU=(e,t)=>ZU(e,"name",{value:t,configurable:!0});function _t(e){let t=tu.useRef(e);return tu.useEffect(()=>{t.current=e}),tu.useMemo(()=>(...a)=>t.current?.(...a),[])}KU(_t,"useCallbackRef");var jU=Object.defineProperty,Tt=(e,t)=>jU(e,"name",{value:t,configurable:!0}),$0="dismissableLayer.update",XU="dismissableLayer.pointerDownOutside",YU="dismissableLayer.focusOutside",xA,vA=Ae.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),bA=Ae.forwardRef(Tt(function(t,a){let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=t,m=Ae.useContext(vA),[p,f]=Ae.useState(null),g=p?.ownerDocument??globalThis?.document,[,y]=Ae.useState({}),b=Ie(a,f),h=Array.from(m.layers),[x]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),v=x?h.indexOf(x):-1,w=p?h.indexOf(p):-1,C=m.layersWithOutsidePointerEventsDisabled.size>0,I=w>=v,L=Ae.useRef(!1),k=wA((D)=>{if(i?.(D),l?.(D),!D.defaultPrevented)u?.()},{ownerDocument:g,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:L,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:Ae.useCallback((D)=>{if(!(D instanceof Node))return!1;let z=[...m.branches].some((R)=>R.contains(D));return I&&!z},[m.branches,I])}),_=SA((D)=>{if(r&&L.current)return;let z=D.target;if([...m.branches].some((A)=>A.contains(z)))return;if(s?.(D),l?.(D),!D.defaultPrevented)u?.()},g),T=p?w===h.length-1:!1,O=_t((D)=>{if(D.key!=="Escape")return;if(n?.(D),!D.defaultPrevented&&u)D.preventDefault(),u()});return Ae.useEffect(()=>{if(!T)return;return g.addEventListener("keydown",O,{capture:!0}),()=>g.removeEventListener("keydown",O,{capture:!0})},[g,T,O]),Ae.useEffect(()=>{if(!p)return;if(o){if(m.layersWithOutsidePointerEventsDisabled.size===0)xA=g.body.style.pointerEvents,g.body.style.pointerEvents="none";m.layersWithOutsidePointerEventsDisabled.add(p)}return m.layers.add(p),V0(),()=>{if(o){if(m.layersWithOutsidePointerEventsDisabled.delete(p),m.layersWithOutsidePointerEventsDisabled.size===0)g.body.style.pointerEvents=xA}}},[p,g,o,m]),Ae.useEffect(()=>()=>{if(!p)return;m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),V0()},[p,m]),Ae.useEffect(()=>{let D=Tt(()=>y({}),"handleUpdate");return document.addEventListener($0,D),()=>document.removeEventListener($0,D)},[]),c(se.div,{...d,ref:b,style:{pointerEvents:C?I?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,_.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function Z0(){let e=Ae.useContext(vA),[t,a]=Ae.useState(null);return Ae.useEffect(()=>{if(!t)return;return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}Tt(Z0,"useDismissableLayerSurface");var WU=Tt(()=>!0,"IS_TRUE");function wA(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:n,shouldHandlePointerDownOutside:i=WU}=t,s=_t(e),l=Ae.useRef(!1),u=Ae.useRef(!1),d=Ae.useRef(new Map),m=Ae.useRef(()=>{});return Ae.useEffect(()=>{function p(){u.current=!1,r.current=!1,d.current.clear()}Tt(p,"resetOutsideInteraction");function f(){return Array.from(d.current.values()).some(Boolean)}Tt(f,"isOutsideInteractionIntercepted");function g(v){if(!u.current)return;let w=v.target;if(!(w instanceof Node&&[...n].some((I)=>I.contains(w))))d.current.set(v.type,!0);if(v.type==="click")window.setTimeout(()=>{if(u.current)m.current()},0)}Tt(g,"handleInteractionCapture");function y(v){if(u.current)d.current.set(v.type,!1)}Tt(y,"handleInteractionBubble");let b=Tt((v)=>{if(v.target&&!l.current){let C=function(){a.removeEventListener("click",m.current);let L=f();if(p(),!L)K0(XU,s,I,{discrete:!0})};var w=C;if(Tt(C,"handleAndDispatchPointerDownOutsideEvent"),!i(v.target)){a.removeEventListener("click",m.current),p(),l.current=!1;return}let I={originalEvent:v};if(u.current=!0,r.current=o&&v.button===0,d.current.clear(),!o||v.button!==0)C();else a.removeEventListener("click",m.current),m.current=C,a.addEventListener("click",m.current,{once:!0})}else a.removeEventListener("click",m.current),p();l.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let v of h)a.addEventListener(v,g,!0),a.addEventListener(v,y);let x=window.setTimeout(()=>{a.addEventListener("pointerdown",b)},0);return()=>{window.clearTimeout(x),a.removeEventListener("pointerdown",b),a.removeEventListener("click",m.current);for(let v of h)a.removeEventListener(v,g,!0),a.removeEventListener(v,y)}},[a,s,o,r,n,i]),{onPointerDownCapture:Tt(()=>l.current=!0,"onPointerDownCapture")}}Tt(wA,"usePointerDownOutside");function SA(e,t=globalThis?.document){let a=_t(e),o=Ae.useRef(!1);return Ae.useEffect(()=>{let r=Tt((n)=>{if(n.target&&!o.current)K0(YU,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:Tt(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Tt(()=>o.current=!1,"onBlurCapture")}}Tt(SA,"useFocusOutside");function V0(){let e=new CustomEvent($0);document.dispatchEvent(e)}Tt(V0,"dispatchUpdate");function K0(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});if(t)r.addEventListener(e,t,{once:!0});if(o)F0(r,n);else r.dispatchEvent(n)}Tt(K0,"handleAndDispatchCustomEvent");var je=U(V(),1);var QU=Object.defineProperty,ft=(e,t)=>QU(e,"name",{value:t,configurable:!0}),j0="focusScope.autoFocusOnMount",X0="focusScope.autoFocusOnUnmount",LA={bubbles:!1,cancelable:!0},kA=je.forwardRef(ft(function(t,a){let{loop:o=!1,trapped:r=!1,branches:n,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[u,d]=je.useState(null),m=_t(i),p=_t(s),f=je.useRef(null),g=Ie(a,d),y=je.useRef(n);je.useEffect(()=>{y.current=n});let b=je.useCallback((v)=>{if(!v)return!1;if(u?.contains(v))return!0;return Boolean(y.current?.some((w)=>w.contains(v)))},[u]),h=je.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;je.useEffect(()=>{if(r){let I=function(T){if(h.paused||!u)return;let O=T.target;if(b(O))f.current=O;else Gr(f.current,{select:!0})},L=function(T){if(h.paused||!u)return;let O=T.relatedTarget;if(O===null)return;if(!b(O))Gr(f.current,{select:!0})},k=function(T){if(document.activeElement!==document.body)return;for(let D of T)if(D.removedNodes.length>0)Gr(u)};var v=I,w=L,C=k;ft(I,"handleFocusIn"),ft(L,"handleFocusOut"),ft(k,"handleMutations"),document.addEventListener("focusin",I),document.addEventListener("focusout",L);let _=new MutationObserver(k);if(u)_.observe(u,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",L),_.disconnect()}}},[r,u,h.paused,b]),je.useEffect(()=>{if(u){CA.add(h);let v=document.activeElement;if(!u.contains(v)){let C=new CustomEvent(j0,LA);if(u.addEventListener(j0,m),u.dispatchEvent(C),!C.defaultPrevented){if(RA(AA(ew(u)),{select:!0}),document.activeElement===v)Gr(u)}}return()=>{u.removeEventListener(j0,m),setTimeout(()=>{let C=new CustomEvent(X0,LA);if(u.addEventListener(X0,p),u.dispatchEvent(C),!C.defaultPrevented)Gr(v??document.body,{select:!0});u.removeEventListener(X0,p),CA.remove(h)},0)}}},[u,m,p,h]);let x=je.useCallback((v)=>{if(!o&&!r)return;if(h.paused)return;let w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,C=document.activeElement;if(w&&C){let I=v.currentTarget,[L,k]=_A(I);if(!(L&&k)){if(C===I)v.preventDefault()}else if(!v.shiftKey&&C===k){if(v.preventDefault(),o)Gr(L,{select:!0})}else if(v.shiftKey&&C===L){if(v.preventDefault(),o)Gr(k,{select:!0})}}},[o,r,h.paused]);return c(se.div,{tabIndex:-1,...l,ref:g,onKeyDown:x})},"FocusScope")),IA=je.createContext(null);function Q0({registry:e,children:t}){if(!e)return t;return c(IA.Provider,{value:e,children:t})}ft(Q0,"FocusScopeBranchProvider");function J0(){let[e,t]=je.useState([]),a=je.useMemo(()=>({add:ft((o)=>t((r)=>r.includes(o)?r:[...r,o]),"add"),remove:ft((o)=>t((r)=>r.filter((n)=>n!==o)),"remove")}),[]);return{nodes:e,registry:a}}ft(J0,"useFocusScopeBranchRegistry");function JU(e){let t=je.useContext(IA);je.useEffect(()=>{if(!e||!t)return;return t.add(e),()=>t.remove(e)},[e,t])}ft(JU,"useFocusScopeBranch");function RA(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(Gr(o,{select:t}),document.activeElement!==a)return}ft(RA,"focusFirst");function _A(e){let t=ew(e),a=Y0(t,e),o=Y0(t.reverse(),e);return[a,o]}ft(_A,"getTabbableEdges");function ew(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ft((o)=>{let r=o.tagName==="INPUT"&&o.type==="hidden";if(o.disabled||o.hidden||r)return NodeFilter.FILTER_SKIP;return o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});while(a.nextNode())t.push(a.currentNode);return t}ft(ew,"getTabbableCandidates");function Y0(e,t){let a=typeof t.checkVisibility==="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let o of e)if(!(a?!o.checkVisibility({checkVisibilityCSS:!0}):TA(o,{upTo:t})))return o}ft(Y0,"findVisible");function TA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;while(e){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}ft(TA,"isHidden");function EA(e){return e instanceof HTMLInputElement&&"select"in e}ft(EA,"isSelectableInput");function Gr(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;if(e.focus({preventScroll:!0}),e!==a&&EA(e)&&t)e.select()}}ft(Gr,"focus");var CA=NA();function NA(){let e=[];return{add(t){let a=e[0];if(t!==a)a?.pause();e=W0(e,t),e.unshift(t)},remove(t){e=W0(e,t),e[0]?.resume()}}}ft(NA,"createFocusScopesStack");function W0(e,t){let a=[...e],o=a.indexOf(t);if(o!==-1)a.splice(o,1);return a}ft(W0,"arrayRemove");function AA(e){return e.filter((t)=>t.tagName!=="A")}ft(AA,"removeLinks");var ph=U(V(),1),MA=U(Sp(),1);var eG=Object.defineProperty,tG=(e,t)=>eG(e,"name",{value:t,configurable:!0}),DA=ph.forwardRef(tG(function(t,a){let{container:o,...r}=t,[n,i]=ph.useState(!1);dt(()=>i(!0),[]);let s=o||n&&globalThis?.document?.body;return s?MA.createPortal(c(se.div,{...r,ref:a}),s):null},"Portal"));var PA=U(V(),1),aG=Object.defineProperty,aw=(e,t)=>aG(e,"name",{value:t,configurable:!0}),mh=0,au=null;function oG(e){return hh(),e.children}aw(oG,"FocusGuards");function hh(){PA.useEffect(()=>{if(!au)au={start:tw(),end:tw()};let{start:e,end:t}=au;if(document.body.firstElementChild!==e)document.body.insertAdjacentElement("afterbegin",e);if(document.body.lastElementChild!==t)document.body.insertAdjacentElement("beforeend",t);return mh++,()=>{if(mh===1)au?.start.remove(),au?.end.remove(),au=null;mh=Math.max(0,mh-1)}},[])}aw(hh,"useFocusGuards");function tw(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}aw(tw,"createFocusGuard");var Sa=function(){return Sa=Object.assign||function(t){for(var a,o=1,r=arguments.length;o<r;o++){a=arguments[o];for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n))t[n]=a[n]}return t},Sa.apply(this,arguments)};function gh(e,t){var a={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)a[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)if(t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r]))a[o[r]]=e[o[r]]}return a}function OA(e,t,a){if(a||arguments.length===2){for(var o=0,r=t.length,n;o<r;o++)if(n||!(o in t)){if(!n)n=Array.prototype.slice.call(t,0,o);n[o]=t[o]}}return e.concat(n||Array.prototype.slice.call(t))}var wh=U(V(),1);var Kt=U(V(),1);var ss="right-scroll-bar-position",ls="width-before-scroll-bar",ow="with-scroll-bars-hidden",rw="--removed-body-scroll-bar-size";var xh=U(V(),1);function yh(e,t){if(typeof e==="function")e(t);else if(e)e.current=t;return e}var zA=U(V(),1);function BA(e,t){var a=zA.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(o){var r=a.value;if(r!==o)a.value=o,a.callback(o,r)}}}})[0];return a.callback=t,a.facade}var rG=typeof window<"u"?xh.useLayoutEffect:xh.useEffect,FA=new WeakMap;function nw(e,t){var a=BA(t||null,function(o){return e.forEach(function(r){return yh(r,o)})});return rG(function(){var o=FA.get(a);if(o){var r=new Set(o),n=new Set(e),i=a.current;r.forEach(function(s){if(!n.has(s))yh(s,null)}),n.forEach(function(s){if(!r.has(s))yh(s,i)})}FA.set(a,e)},[e]),a}function nG(e){return e}function iG(e,t){if(t===void 0)t=nG;var a=[],o=!1,r={read:function(){if(o)throw Error("Sidecar: could not \`read\` from an \`assigned\` medium. \`read\` could be used only with \`useMedium\`.");if(a.length)return a[a.length-1];return e},useMedium:function(n){var i=t(n,o);return a.push(i),function(){a=a.filter(function(s){return s!==i})}},assignSyncMedium:function(n){o=!0;while(a.length){var i=a;a=[],i.forEach(n)}a={push:function(s){return n(s)},filter:function(){return a}}},assignMedium:function(n){o=!0;var i=[];if(a.length){var s=a;a=[],s.forEach(n),i=a}var l=function(){var d=i;i=[],d.forEach(n)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),a}}}};return r}function iw(e){if(e===void 0)e={};var t=iG(null);return t.options=Sa({async:!0,ssr:!1},e),t}var HA=U(V(),1),UA=function(e){var t=e.sideCar,a=gh(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide \`sideCar\` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return HA.createElement(o,Sa({},a))};UA.isSideCarExport=!0;function sw(e,t){return e.useMedium(t),UA}var vh=iw();var lw=function(){return},Gd=Kt.forwardRef(function(e,t){var a=Kt.useRef(null),o=Kt.useState({onScrollCapture:lw,onWheelCapture:lw,onTouchMoveCapture:lw}),r=o[0],n=o[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,m=e.shards,p=e.sideCar,f=e.noRelative,g=e.noIsolation,y=e.inert,b=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,v=e.gapMode,w=gh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,I=nw([a,t]),L=Sa(Sa({},w),r);return Kt.createElement(Kt.Fragment,null,d&&Kt.createElement(C,{sideCar:vh,removeScrollBar:u,shards:m,noRelative:f,noIsolation:g,inert:y,setCallbacks:n,allowPinchZoom:!!b,lockRef:a,gapMode:v}),i?Kt.cloneElement(Kt.Children.only(s),Sa(Sa({},L),{ref:I})):Kt.createElement(x,Sa({},L,{className:l,ref:I}),s))});Gd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gd.classNames={fullWidth:ls,zeroRight:ss};var $e=U(V(),1);var ru=U(V(),1);var $A=U(V(),1);var GA;var qA=function(){if(GA)return GA;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function sG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qA();if(t)e.setAttribute("nonce",t);return e}function lG(e,t){if(e.styleSheet)e.styleSheet.cssText=t;else e.appendChild(document.createTextNode(t))}function uG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uw=function(){var e=0,t=null;return{add:function(a){if(e==0){if(t=sG())lG(t,a),uG(t)}e++},remove:function(){if(e--,!e&&t)t.parentNode&&t.parentNode.removeChild(t),t=null}}};var cw=function(){var e=uw();return function(t,a){$A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var qd=function(){var e=cw(),t=function(a){var{styles:o,dynamic:r}=a;return e(o,r),null};return t};var cG={left:0,top:0,right:0,gap:0},dw=function(e){return parseInt(e||"",10)||0},dG=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[dw(a),dw(o),dw(r)]},fw=function(e){if(e===void 0)e="margin";if(typeof window>"u")return cG;var t=dG(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var fG=qd(),ou="data-scroll-locked",pG=function(e,t,a,o){var{left:r,top:n,right:i,gap:s}=e;if(a===void 0)a="margin";return\`
7501
+ .\`.concat(ow,\` {
7502
7502
  overflow: hidden \`).concat(o,\`;
7503
7503
  padding-right: \`).concat(s,"px ").concat(o,\`;
7504
7504
  }
@@ -7532,20 +7532,20 @@ Error generating stack: \`+o.message+\`
7532
7532
  }
7533
7533
 
7534
7534
  body[\`).concat(ou,\`] {
7535
- \`).concat(aw,": ").concat(s,\`px;
7535
+ \`).concat(rw,": ").concat(s,\`px;
7536
7536
  }
7537
- \`)},qA=function(){var e=parseInt(document.body.getAttribute(ou)||"0",10);return isFinite(e)?e:0},RG=function(){ru.useEffect(function(){return document.body.setAttribute(ou,(qA()+1).toString()),function(){var e=qA()-1;if(e<=0)document.body.removeAttribute(ou);else document.body.setAttribute(ou,e.toString())}},[])},dw=function(e){var{noRelative:t,noImportant:a,gapMode:o}=e,r=o===void 0?"margin":o;RG();var n=ru.useMemo(function(){return cw(r)},[r]);return ru.createElement(kG,{styles:IG(n,!t,r,!a?"!important":"")})};var fw=!1;if(typeof window<"u")try{nu=Object.defineProperty({},"passive",{get:function(){return fw=!0,!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch(e){fw=!1}var nu,us=fw?{passive:!1}:!1;var _G=function(e){return e.tagName==="TEXTAREA"},$A=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!_G(e)&&a[t]==="visible")},TG=function(e){return $A(e,"overflowY")},EG=function(e){return $A(e,"overflowX")},pw=function(e,t){var a=t.ownerDocument,o=t;do{if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot)o=o.host;var r=VA(e,o);if(r){var n=ZA(e,o),i=n[1],s=n[2];if(i>s)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},NG=function(e){var{scrollTop:t,scrollHeight:a,clientHeight:o}=e;return[t,a,o]},AG=function(e){var{scrollLeft:t,scrollWidth:a,clientWidth:o}=e;return[t,a,o]},VA=function(e,t){return e==="v"?TG(t):EG(t)},ZA=function(e,t){return e==="v"?NG(t):AG(t)},MG=function(e,t){return e==="h"&&t==="rtl"?-1:1},KA=function(e,t,a,o,r){var n=MG(e,window.getComputedStyle(t).direction),i=n*o,s=a.target,l=t.contains(s),u=!1,d=i>0,m=0,p=0;do{if(!s)break;var f=ZA(e,s),g=f[0],y=f[1],b=f[2],h=y-b-n*g;if(g||h){if(VA(e,s))m+=h,p+=g}var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));if(d&&(r&&Math.abs(m)<1||!r&&i>m))u=!0;else if(!d&&(r&&Math.abs(p)<1||!r&&-i>p))u=!0;return u};var vh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jA=function(e){return[e.deltaX,e.deltaY]},XA=function(e){return e&&"current"in e?e.current:e},DG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PG=function(e){return\`
7537
+ \`)},VA=function(){var e=parseInt(document.body.getAttribute(ou)||"0",10);return isFinite(e)?e:0},mG=function(){ru.useEffect(function(){return document.body.setAttribute(ou,(VA()+1).toString()),function(){var e=VA()-1;if(e<=0)document.body.removeAttribute(ou);else document.body.setAttribute(ou,e.toString())}},[])},pw=function(e){var{noRelative:t,noImportant:a,gapMode:o}=e,r=o===void 0?"margin":o;mG();var n=ru.useMemo(function(){return fw(r)},[r]);return ru.createElement(fG,{styles:pG(n,!t,r,!a?"!important":"")})};var mw=!1;if(typeof window<"u")try{nu=Object.defineProperty({},"passive",{get:function(){return mw=!0,!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch(e){mw=!1}var nu,us=mw?{passive:!1}:!1;var hG=function(e){return e.tagName==="TEXTAREA"},ZA=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!hG(e)&&a[t]==="visible")},gG=function(e){return ZA(e,"overflowY")},yG=function(e){return ZA(e,"overflowX")},hw=function(e,t){var a=t.ownerDocument,o=t;do{if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot)o=o.host;var r=KA(e,o);if(r){var n=jA(e,o),i=n[1],s=n[2];if(i>s)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},xG=function(e){var{scrollTop:t,scrollHeight:a,clientHeight:o}=e;return[t,a,o]},vG=function(e){var{scrollLeft:t,scrollWidth:a,clientWidth:o}=e;return[t,a,o]},KA=function(e,t){return e==="v"?gG(t):yG(t)},jA=function(e,t){return e==="v"?xG(t):vG(t)},bG=function(e,t){return e==="h"&&t==="rtl"?-1:1},XA=function(e,t,a,o,r){var n=bG(e,window.getComputedStyle(t).direction),i=n*o,s=a.target,l=t.contains(s),u=!1,d=i>0,m=0,p=0;do{if(!s)break;var f=jA(e,s),g=f[0],y=f[1],b=f[2],h=y-b-n*g;if(g||h){if(KA(e,s))m+=h,p+=g}var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));if(d&&(r&&Math.abs(m)<1||!r&&i>m))u=!0;else if(!d&&(r&&Math.abs(p)<1||!r&&-i>p))u=!0;return u};var bh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},YA=function(e){return[e.deltaX,e.deltaY]},WA=function(e){return e&&"current"in e?e.current:e},wG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SG=function(e){return\`
7538
7538
  .block-interactivity-\`.concat(e,\` {pointer-events: none;}
7539
7539
  .allow-interactivity-\`).concat(e,\` {pointer-events: all;}
7540
- \`)},OG=0,iu=[];function YA(e){var t=$e.useRef([]),a=$e.useRef([0,0]),o=$e.useRef(),r=$e.useState(OG++)[0],n=$e.useState(Gd)[0],i=$e.useRef(e);$e.useEffect(function(){i.current=e},[e]),$e.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var y=DA([e.lockRef.current],(e.shards||[]).map(XA),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}return},[e.inert,e.lockRef.current,e.shards]);var s=$e.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!i.current.allowPinchZoom;var h=vh(y),x=a.current,v="deltaX"in y?y.deltaX:x[0]-h[0],w="deltaY"in y?y.deltaY:x[1]-h[1],C,I=y.target,L=Math.abs(v)>Math.abs(w)?"h":"v";if("touches"in y&&L==="h"&&I.type==="range")return!1;var k=window.getSelection(),_=k&&k.anchorNode,T=_?_===I||_.contains(I):!1;if(T)return!1;var O=pw(L,I);if(!O)return!0;if(O)C=L;else C=L==="v"?"h":"v",O=pw(L,I);if(!O)return!1;if(!o.current&&"changedTouches"in y&&(v||w))o.current=C;if(!C)return!0;var D=o.current||C;return KA(D,b,y,D==="h"?v:w,!0)},[]),l=$e.useCallback(function(y){var b=y;if(!iu.length||iu[iu.length-1]!==n)return;var h="deltaY"in b?jA(b):vh(b),x=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&DG(C.delta,h)})[0];if(x&&x.should){if(b.cancelable)b.preventDefault();return}if(!x){var v=(i.current.shards||[]).map(XA).filter(Boolean).filter(function(C){return C.contains(b.target)}),w=v.length>0?s(b,v[0]):!i.current.noIsolation;if(w){if(b.cancelable)b.preventDefault()}}},[]),u=$e.useCallback(function(y,b,h,x){var v={name:y,delta:b,target:h,should:x,shadowParent:zG(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(w){return w!==v})},1)},[]),d=$e.useCallback(function(y){a.current=vh(y),o.current=void 0},[]),m=$e.useCallback(function(y){u(y.type,jA(y),y.target,s(y,e.lockRef.current))},[]),p=$e.useCallback(function(y){u(y.type,vh(y),y.target,s(y,e.lockRef.current))},[]);$e.useEffect(function(){return iu.push(n),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",l,us),document.addEventListener("touchmove",l,us),document.addEventListener("touchstart",d,us),function(){iu=iu.filter(function(y){return y!==n}),document.removeEventListener("wheel",l,us),document.removeEventListener("touchmove",l,us),document.removeEventListener("touchstart",d,us)}},[]);var{removeScrollBar:f,inert:g}=e;return $e.createElement($e.Fragment,null,g?$e.createElement(n,{styles:PG(r)}):null,f?$e.createElement(dw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zG(e){var t=null;while(e!==null){if(e instanceof ShadowRoot)t=e.host,e=e.host;e=e.parentNode}return t}var WA=nw(xh,YA);var QA=bh.forwardRef(function(e,t){return bh.createElement(Ud,Sa({},e,{ref:t,sideCar:WA}))});QA.classNames=Ud.classNames;var mw=QA;var BG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},su=new WeakMap,wh=new WeakMap,Sh={},hw=0,JA=function(e){return e&&(e.host||JA(e.parentNode))},FG=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=JA(a);if(o&&e.contains(o))return o;return console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null}).filter(function(a){return Boolean(a)})},HG=function(e,t,a,o){var r=FG(t,Array.isArray(e)?e:[e]);if(!Sh[a])Sh[a]=new WeakMap;var n=Sh[a],i=[],s=new Set,l=new Set(r),u=function(m){if(!m||s.has(m))return;s.add(m),u(m.parentNode)};r.forEach(u);var d=function(m){if(!m||l.has(m))return;Array.prototype.forEach.call(m.children,function(p){if(s.has(p))d(p);else try{var f=p.getAttribute(o),g=f!==null&&f!=="false",y=(su.get(p)||0)+1,b=(n.get(p)||0)+1;if(su.set(p,y),n.set(p,b),i.push(p),y===1&&g)wh.set(p,!0);if(b===1)p.setAttribute(a,"true");if(!g)p.setAttribute(o,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return d(t),s.clear(),hw++,function(){if(i.forEach(function(m){var p=su.get(m)-1,f=n.get(m)-1;if(su.set(m,p),n.set(m,f),!p){if(!wh.has(m))m.removeAttribute(o);wh.delete(m)}if(!f)m.removeAttribute(a)}),hw--,!hw)su=new WeakMap,su=new WeakMap,wh=new WeakMap,Sh={}}},eM=function(e,t,a){if(a===void 0)a="data-aria-hidden";var o=Array.from(Array.isArray(e)?e:[e]),r=t||BG(e);if(!r)return function(){return null};return o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),HG(o,r,a,"aria-hidden")};var UG=Object.defineProperty,oa=(e,t)=>UG(e,"name",{value:t,configurable:!0}),yw="Dialog",[tM,GG]=aa(yw),[qG,Ao]=tM(yw),xw=oa((e)=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:i=!0}=e,s=Me.useRef(null),l=Me.useRef(null),{nodes:u,registry:d}=W0(),[m,p]=lo({prop:o,defaultProp:r??!1,onChange:n,caller:yw}),[f,g]=Me.useState(0),[y,b]=Me.useState(0);return c(qG,{scope:t,triggerRef:s,contentRef:l,contentId:Zt(),titleId:Zt(),descriptionId:Zt(),titlePresent:f>0,descriptionPresent:y>0,setTitleCount:g,setDescriptionCount:b,open:m,onOpenChange:p,onOpenToggle:Me.useCallback(()=>p((h)=>!h),[p]),modal:i,branchNodes:u,branchRegistry:d,children:a})},"Dialog"),$G="DialogTrigger",VG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao($G,o),i=Ie(a,n.triggerRef);return c(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":Lh(n.open),...r,ref:i,onClick:ke(t.onClick,n.onOpenToggle)})},"DialogTrigger")),aM="DialogPortal",[ZG,oM]=tM(aM,{forceMount:void 0}),vw=oa((e)=>{let{__scopeDialog:t,forceMount:a,children:o,container:r}=e,n=Ao(aM,t);return c(ZG,{scope:t,forceMount:a,children:Me.Children.map(o,(i)=>c(No,{present:a||n.open,children:c(AA,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),gw="DialogOverlay",bw=Me.forwardRef(oa(function(t,a){let o=oM(gw,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,i=Ao(gw,t.__scopeDialog);return i.modal?c(No,{present:r||i.open,children:c(jG,{...n,ref:a})}):null},"DialogOverlay")),KG=Ga("DialogOverlay.RemoveScroll"),jG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao(gw,o),i=$0(),s=Ie(a,i);return c(mw,{as:KG,allowPinchZoom:!0,shards:Me.useMemo(()=>[n.contentRef,...n.branchNodes.map((l)=>({current:l}))],[n.contentRef,n.branchNodes]),children:c(se.div,{"data-state":Lh(n.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),qd="DialogContent",ww=Me.forwardRef(oa(function(t,a){let o=oM(qd,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,i=Ao(qd,t.__scopeDialog);return c(No,{present:r||i.open,children:i.modal?c(XG,{...n,ref:a}):c(YG,{...n,ref:a})})},"DialogContent")),XG=Me.forwardRef(oa(function(t,a){let o=Ao(qd,t.__scopeDialog),r=Me.useRef(null),n=Ie(a,o.contentRef,r);return Me.useEffect(()=>{let i=r.current;if(i)return eM(i)},[]),c(rM,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:ke(t.onCloseAutoFocus,(i)=>{i.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:ke(t.onPointerDownOutside,(i)=>{let s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;if(s.button===2||l)i.preventDefault()}),onFocusOutside:ke(t.onFocusOutside,(i)=>i.preventDefault())})},"DialogContentModal")),YG=Me.forwardRef(oa(function(t,a){let o=Ao(qd,t.__scopeDialog),r=Me.useRef(!1),n=Me.useRef(!1);return c(rM,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(i)=>{if(t.onCloseAutoFocus?.(i),!i.defaultPrevented){if(!r.current)o.triggerRef.current?.focus();i.preventDefault()}r.current=!1,n.current=!1},onInteractOutside:(i)=>{if(t.onInteractOutside?.(i),!i.defaultPrevented){if(r.current=!0,i.detail.originalEvent.type==="pointerdown")n.current=!0}let s=i.target;if(o.triggerRef.current?.contains(s))i.preventDefault();if(i.detail.originalEvent.type==="focusin"&&n.current)i.preventDefault()}})},"DialogContentNonModal")),rM=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:i,"aria-describedby":s,children:l,...u}=t,d=Ao(qd,o);return mh(),c(Y0,{registry:d.branchRegistry,children:c(LA,{asChild:!0,loop:!0,trapped:r,branches:d.branchNodes,onMountAutoFocus:n,onUnmountAutoFocus:i,children:c(xA,{role:"dialog",id:d.contentId,"aria-labelledby":d.titlePresent?d.titleId:void 0,"aria-describedby":d.descriptionPresent?nM(s,d.descriptionId):s,"data-state":Lh(d.open),...u,ref:a,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1),children:l})})})},"DialogContentImpl")),WG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao("DialogTitle",o),{setTitleCount:i}=n;return dt(()=>(i((s)=>s+1),()=>i((s)=>s-1)),[i]),c(se.h2,{id:n.titleId,...r,ref:a})},"DialogTitle")),QG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao("DialogDescription",o),{setDescriptionCount:i}=n;return dt(()=>(i((s)=>s+1),()=>i((s)=>s-1)),[i]),c(se.p,{id:n.descriptionId,...r,ref:a})},"DialogDescription")),JG="DialogClose",e8=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao(JG,o);return c(se.button,{type:"button",...r,ref:a,onClick:ke(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose")),t8=oa((e)=>e.children,"WarningProvider");function nM(...e){let t=new Set;for(let a of e){if(typeof a!=="string")continue;for(let o of String(a).trim().split(/\\s+/))if(o)t.add(o)}return t.size>0?Array.from(t).join(" "):void 0}oa(nM,"concatAriaDescribedby");function Lh(e){return e?"open":"closed"}oa(Lh,"getState");var Qn={};ui(Qn,{Content:()=>Cw,Corner:()=>L8,Root:()=>d8,ScrollArea:()=>d8,ScrollAreaContent:()=>Cw,ScrollAreaCorner:()=>L8,ScrollAreaScrollbar:()=>h8,ScrollAreaThumb:()=>w8,ScrollAreaViewport:()=>f8,Scrollbar:()=>h8,Thumb:()=>w8,Viewport:()=>f8,createScrollAreaScope:()=>u8});var W=U(V(),1);var Ch=U(V(),1);var a8=Object.defineProperty,o8=(e,t)=>a8(e,"name",{value:t,configurable:!0}),r8={LTR:"ltr",RTL:"rtl"},n8=Ch.createContext(void 0);function cs(e){let t=Ch.useContext(n8);return e||t||r8.LTR}o8(cs,"useDirection");var i8=Object.defineProperty,s8=(e,t)=>i8(e,"name",{value:t,configurable:!0});function Sw(e,[t,a]){return Math.min(a,Math.max(t,e))}s8(Sw,"clamp");var sM=U(V(),1);var l8=Object.defineProperty,de=(e,t)=>l8(e,"name",{value:t,configurable:!0});function lM(e,t){return sM.useReducer((a,o)=>t[a][o]??a,e)}de(lM,"useStateMachine");var lu={Auto:"auto",Always:"always",Scroll:"scroll",Hover:"hover"},uu={Vertical:"vertical",Horizontal:"horizontal"},rr={LTR:"ltr",RTL:"rtl"},uM="ScrollArea",[cM,u8]=aa(uM),[c8,qa]=cM(uM),d8=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,type:r=lu.Hover,dir:n,scrollHideDelay:i=600,...s}=t,[l,u]=W.useState(null),[d,m]=W.useState(null),[p,f]=W.useState(null),[g,y]=W.useState(null),[b,h]=W.useState(null),[x,v]=W.useState(0),[w,C]=W.useState(0),[I,L]=W.useState(!1),[k,_]=W.useState(!1),T=Ie(a,u),O=cs(n);return c(c8,{scope:o,type:r,dir:O,scrollHideDelay:i,scrollArea:l,viewport:d,onViewportChange:m,content:p,onContentChange:f,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:I,onScrollbarXEnabledChange:L,scrollbarY:b,onScrollbarYChange:h,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:v,onCornerHeightChange:C,children:c(se.div,{dir:O,...s,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":w+"px",...t.style}})})},"ScrollArea")),Lw="ScrollAreaViewport",iM=Fd(Lw),f8=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,children:r,nonce:n,disableImplicitContentElement:i,...s}=t,l=qa(Lw,o),u=W.useRef(null),d=Ie(a,u,l.onViewportChange),m=W.isValidElement(r);if(Yl){let p=W.useRef(!1),f=t.asChild===!0&&!i&&!m;W.useEffect(()=>{if(f&&!p.current)p.current=!0,console.warn(\`\${Lw}: \\\`asChild\\\` expects a single React element child, so its props have been applied to the implicitly rendered content element instead. Wrap the children in a single element, or opt into \\\`disableImplicitContentElement\\\` and render a \\\`ScrollArea.Content\\\` inside the viewport.\`)},[f])}return S(he,{children:[c(p8,{nonce:n}),c(se.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...t.style},children:i?r:m?c(iM,{child:r,children:(p)=>c(Cw,{__scopeScrollArea:o,children:p})}):c(iM,{children:c(Cw,{__scopeScrollArea:o,children:r})})})]})},"ScrollAreaViewport")),p8=W.memo(de(function({nonce:t}){return c("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t})},"ScrollAreaViewportStyle"),(e,t)=>e.nonce===t.nonce),m8="ScrollAreaContent",Cw=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,children:r,...n}=t,i=qa(m8,o),s=Ie(a,i.onContentChange);return c(se.div,{...n,ref:s,style:{minWidth:"100%",display:"table",...t.style},children:r})},"ScrollAreaContent")),qr="ScrollAreaScrollbar",h8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=qa(qr,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=n,l=t.orientation===uu.Horizontal;return W.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),n.type===lu.Hover?c(g8,{...r,ref:a,forceMount:o}):n.type===lu.Scroll?c(y8,{...r,ref:a,forceMount:o}):n.type===lu.Auto?c(dM,{...r,ref:a,forceMount:o}):n.type===lu.Always?c(Rw,{...r,ref:a,"data-state":"visible"}):null},"ScrollAreaScrollbar")),g8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=qa(qr,t.__scopeScrollArea),[i,s]=W.useState(!1);return W.useEffect(()=>{let l=n.scrollArea,u=0;if(l){let d=de(()=>{window.clearTimeout(u),s(!0)},"handlePointerEnter"),m=de(()=>{u=window.setTimeout(()=>s(!1),n.scrollHideDelay)},"handlePointerLeave");return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",m),()=>{window.clearTimeout(u),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",m)}}},[n.scrollArea,n.scrollHideDelay]),c(No,{present:o||i,children:c(dM,{"data-state":i?"visible":"hidden",...r,ref:a})})},"ScrollAreaScrollbarHover")),y8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=qa(qr,t.__scopeScrollArea),i=t.orientation===uu.Horizontal,s=Zd(()=>u("SCROLL_END"),100),[l,u]=lM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return W.useEffect(()=>{if(l==="idle"){let d=window.setTimeout(()=>u("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,n.scrollHideDelay,u]),W.useEffect(()=>{let d=n.viewport,m=i?"scrollLeft":"scrollTop";if(d){let p=d[m],f=de(()=>{let g=d[m];if(p!==g)u("SCROLL"),s();p=g},"handleScroll");return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[n.viewport,i,u,s]),c(No,{present:o||l!=="hidden",children:c(Rw,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:a,onPointerEnter:ke(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ke(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),dM=W.forwardRef(de(function(t,a){let o=qa(qr,t.__scopeScrollArea),{forceMount:r,...n}=t,[i,s]=W.useState(!1),l=t.orientation===uu.Horizontal,u=Zd(()=>{if(o.viewport){let d=o.viewport.offsetWidth<o.viewport.scrollWidth,m=o.viewport.offsetHeight<o.viewport.scrollHeight;s(l?d:m)}},10);return ds(o.viewport,u),ds(o.content,u),c(No,{present:r||i,children:c(Rw,{"data-state":i?"visible":"hidden",...n,ref:a})})},"ScrollAreaScrollbarAuto")),Rw=W.forwardRef(de(function(t,a){let{orientation:o=uu.Vertical,...r}=t,n=qa(qr,t.__scopeScrollArea),i=W.useRef(null),s=W.useRef(0),[l,u]=W.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=_w(l.viewport,l.content),m={...r,sizes:l,onSizesChange:u,hasThumb:Boolean(d>0&&d<1),onThumbChange:de((f)=>i.current=f,"onThumbChange"),onThumbPointerUp:de(()=>s.current=0,"onThumbPointerUp"),onThumbPointerDown:de((f)=>s.current=f,"onThumbPointerDown")};function p(f,g){return hM(f,s.current,l,g)}if(de(p,"getScrollPosition"),o===uu.Horizontal)return c(x8,{...m,ref:a,onThumbPositionChange:()=>{if(n.viewport&&i.current){let f=n.viewport.scrollLeft,g=Iw(f,l,n.dir);i.current.style.transform=\`translate3d(\${g}px, 0, 0)\`}},onWheelScroll:(f)=>{if(n.viewport)n.viewport.scrollLeft=f},onDragScroll:(f)=>{if(n.viewport)n.viewport.scrollLeft=p(f,n.dir)}});if(o===uu.Vertical)return c(v8,{...m,ref:a,onThumbPositionChange:()=>{if(n.viewport&&i.current){let f=n.viewport.scrollTop,g=Iw(f,l);i.current.style.transform=\`translate3d(0, \${g}px, 0)\`}},onWheelScroll:(f)=>{if(n.viewport)n.viewport.scrollTop=f},onDragScroll:(f)=>{if(n.viewport)n.viewport.scrollTop=p(f)}});return null},"ScrollAreaScrollbarVisible")),x8=W.forwardRef(de(function(t,a){let{sizes:o,onSizesChange:r,...n}=t,i=qa(qr,t.__scopeScrollArea),[s,l]=W.useState(),u=W.useRef(null),d=Ie(a,u,i.onScrollbarXChange);return W.useEffect(()=>{if(u.current)l(getComputedStyle(u.current))},[u]),c(pM,{"data-orientation":"horizontal",...n,ref:d,sizes:o,style:{bottom:0,left:i.dir===rr.RTL?"var(--radix-scroll-area-corner-width)":0,right:i.dir===rr.LTR?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Vd(o)+"px",...t.style},onThumbPointerDown:(m)=>t.onThumbPointerDown(m.x),onDragScroll:(m)=>t.onDragScroll(m.x),onWheelScroll:(m,p)=>{if(i.viewport){let f=i.viewport.scrollLeft+m.deltaX;if(t.onWheelScroll(f),Ew(f,p))m.preventDefault()}},onResize:()=>{if(u.current&&i.viewport&&s)r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:$d(s.paddingLeft),paddingEnd:$d(s.paddingRight)}})}})},"ScrollAreaScrollbarX")),v8=W.forwardRef(de(function(t,a){let{sizes:o,onSizesChange:r,...n}=t,i=qa(qr,t.__scopeScrollArea),[s,l]=W.useState(),u=W.useRef(null),d=Ie(a,u,i.onScrollbarYChange);return W.useEffect(()=>{if(u.current)l(getComputedStyle(u.current))},[u]),c(pM,{"data-orientation":"vertical",...n,ref:d,sizes:o,style:{top:0,right:i.dir===rr.LTR?0:void 0,left:i.dir===rr.RTL?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Vd(o)+"px",...t.style},onThumbPointerDown:(m)=>t.onThumbPointerDown(m.y),onDragScroll:(m)=>t.onDragScroll(m.y),onWheelScroll:(m,p)=>{if(i.viewport){let f=i.viewport.scrollTop+m.deltaY;if(t.onWheelScroll(f),Ew(f,p))m.preventDefault()}},onResize:()=>{if(u.current&&i.viewport&&s)r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:$d(s.paddingTop),paddingEnd:$d(s.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[b8,fM]=cM(qr),pM=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,sizes:r,hasThumb:n,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:m,onResize:p,...f}=t,g=qa(qr,o),[y,b]=W.useState(null),h=Ie(a,b),x=W.useRef(null),v=W.useRef(""),w=g.viewport,C=r.content-r.viewport,I=_t(m),L=_t(u),k=Zd(p,10);function _(T){if(x.current){let O=T.clientX-x.current.left,D=T.clientY-x.current.top;d({x:O,y:D})}}return de(_,"handleDragScroll"),W.useEffect(()=>{let T=de((O)=>{let D=O.target;if(y?.contains(D))I(O,C)},"handleWheel");return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[w,y,C,I]),W.useEffect(L,[r,L]),ds(y,k),ds(g.content,k),c(b8,{scope:o,scrollbar:y,hasThumb:n,onThumbChange:_t(i),onThumbPointerUp:_t(s),onThumbPositionChange:L,onThumbPointerDown:_t(l),children:c(se.div,{...f,ref:h,style:{position:"absolute",...f.style},onPointerDown:ke(t.onPointerDown,(T)=>{if(T.button===0){if(T.target.setPointerCapture(T.pointerId),x.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport)g.viewport.style.scrollBehavior="auto";_(T)}}),onPointerMove:ke(t.onPointerMove,_),onPointerUp:ke(t.onPointerUp,(T)=>{let O=T.target;if(O.hasPointerCapture(T.pointerId))O.releasePointerCapture(T.pointerId);if(document.body.style.webkitUserSelect=v.current,g.viewport)g.viewport.style.scrollBehavior="";x.current=null})})})},"ScrollAreaScrollbarImpl")),kw="ScrollAreaThumb",w8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=fM(kw,t.__scopeScrollArea);return c(No,{present:o||n.hasThumb,children:c(S8,{ref:a,...r})})},"ScrollAreaThumb")),S8=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,style:r,...n}=t,i=qa(kw,o),s=fM(kw,o),{onThumbPositionChange:l}=s,u=Ie(a,s.onThumbChange),d=W.useRef(void 0),m=Zd(()=>{if(d.current)d.current(),d.current=void 0},100);return W.useEffect(()=>{let p=i.viewport;if(p){let f=de(()=>{if(m(),!d.current){let g=k8(p,l);d.current=g,l()}},"handleScroll");return l(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[i.viewport,m,l]),c(se.div,{"data-state":s.hasThumb?"visible":"hidden",...n,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ke(t.onPointerDownCapture,(p)=>{let g=p.target.getBoundingClientRect(),y=p.clientX-g.left,b=p.clientY-g.top;s.onThumbPointerDown({x:y,y:b})}),onPointerUp:ke(t.onPointerUp,s.onThumbPointerUp)})},"ScrollAreaThumbImpl")),mM="ScrollAreaCorner",L8=W.forwardRef(de(function(t,a){let o=qa(mM,t.__scopeScrollArea),r=Boolean(o.scrollbarX&&o.scrollbarY);return o.type!==lu.Scroll&&r?c(C8,{...t,ref:a}):null},"ScrollAreaCorner")),C8=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,...r}=t,n=qa(mM,o),[i,s]=W.useState(0),[l,u]=W.useState(0),d=Boolean(i&&l),{onCornerWidthChange:m,onCornerHeightChange:p}=n;return ds(n.scrollbarX,()=>{let f=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(f),u(f)}),ds(n.scrollbarY,()=>{let f=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(f),s(f)}),W.useEffect(()=>()=>{m(0),p(0)},[m,p]),d?c(se.div,{...r,ref:a,style:{width:i,height:l,position:"absolute",right:n.dir===rr.LTR?0:void 0,left:n.dir===rr.RTL?0:void 0,bottom:0,...t.style}}):null},"ScrollAreaCornerImpl"));function $d(e){return e?parseInt(e,10):0}de($d,"toInt");function _w(e,t){let a=e/t;return isNaN(a)?0:a}de(_w,"getThumbRatio");function Vd(e){let t=_w(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-a)*t;return Math.max(o,18)}de(Vd,"getThumbSize");function hM(e,t,a,o=rr.LTR){let r=Vd(a),n=r/2,i=t||n,s=r-i,l=a.scrollbar.paddingStart+i,u=a.scrollbar.size-a.scrollbar.paddingEnd-s,d=a.content-a.viewport,m=o===rr.LTR?[0,d]:[d*-1,0];return Tw([l,u],m)(e)}de(hM,"getScrollPositionFromPointer");function Iw(e,t,a=rr.LTR){let o=Vd(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-r,i=t.content-t.viewport,s=n-o,l=a===rr.LTR?[0,i]:[i*-1,0],u=Sw(e,l);return Tw([0,i],[0,s])(u)}de(Iw,"getThumbOffsetFromScroll");function Tw(e,t){return(a)=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(a-e[0])}}de(Tw,"linearScale");function Ew(e,t){return e>0&&e<t}de(Ew,"isScrollingWithinScrollbarBounds");var k8=de((e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},o=0;return de(function r(){let n={left:e.scrollLeft,top:e.scrollTop},i=a.left!==n.left,s=a.top!==n.top;if(i||s)t();a=n,o=window.requestAnimationFrame(r)},"loop")(),()=>window.cancelAnimationFrame(o)},"addUnlinkedScrollListener");function Zd(e,t){let a=_t(e),o=W.useRef(0);return W.useEffect(()=>()=>window.clearTimeout(o.current),[]),W.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(a,t)},[a,t])}de(Zd,"useDebounceCallback");function ds(e,t){let a=_t(t);dt(()=>{let o=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(a)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,a])}de(ds,"useResizeObserver");var gM=U(V(),1);var I8=Object.defineProperty,R8=(e,t)=>I8(e,"name",{value:t,configurable:!0}),_8="Toggle",yM=gM.forwardRef(R8(function(t,a){let{pressed:o,defaultPressed:r,onPressedChange:n,...i}=t,[s,l]=lo({prop:o,onChange:n,defaultProp:r??!1,caller:_8});return c(se.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":t.disabled?"":void 0,...i,ref:a,onClick:ke(t.onClick,()=>{if(!t.disabled)l(!s)})})},"Toggle"));var jd={};ui(jd,{Item:()=>W8,Root:()=>Z8,ToggleGroup:()=>Z8,ToggleGroupItem:()=>W8,createToggleGroupScope:()=>V8});var ra=U(V(),1);var Nt=U(V(),1);var Mo=U(V(),1);var La=U(V(),1);var T8=Object.defineProperty,Et=(e,t)=>T8(e,"name",{value:t,configurable:!0});function Mw(e){let t=e+"CollectionProvider",[a,o]=aa(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),i=Et((y)=>{let{scope:b,children:h}=y,x=Mo.useRef(null),v=Mo.useRef(new Map).current;return c(r,{scope:b,itemMap:v,collectionRef:x,children:h})},"CollectionProvider");i.displayName=t;let s=e+"CollectionSlot",l=Ga(s),u=Mo.forwardRef((y,b)=>{let{scope:h,children:x}=y,v=n(s,h),w=Ie(b,v.collectionRef);return c(l,{ref:w,children:x})});u.displayName=s;let d=e+"CollectionItemSlot",m="data-radix-collection-item",p=Ga(d),f=Mo.forwardRef((y,b)=>{let{scope:h,children:x,...v}=y,w=Mo.useRef(null),C=Ie(b,w),I=n(d,h);return Mo.useEffect(()=>(I.itemMap.set(w,{ref:w,...v}),()=>void I.itemMap.delete(w))),c(p,{...{[m]:""},ref:C,children:x})});f.displayName=d;function g(y){let b=n(e+"CollectionConsumer",y);return Mo.useCallback(()=>{let x=b.collectionRef.current;if(!x)return[];let v=Array.from(x.querySelectorAll(\`[\${m}]\`));return Array.from(b.itemMap.values()).sort((I,L)=>v.indexOf(I.ref.current)-v.indexOf(L.ref.current))},[b.collectionRef,b.itemMap])}return Et(g,"useCollection"),[{Provider:i,Slot:u,ItemSlot:f},g,o]}Et(Mw,"createCollection");var xM=new WeakMap,Nw=class e extends Map{static{Et(this,"OrderedDict")}#e;constructor(t){super(t);this.#e=[...super.keys()],xM.set(this,!0)}set(t,a){if(xM.get(this))if(this.has(t))this.#e[this.#e.indexOf(t)]=t;else this.#e.push(t);return super.set(t,a),this}insert(t,a,o){let r=this.has(a),n=this.#e.length,i=Dw(t),s=i>=0?i:n+i,l=s<0||s>=n?-1:s;if(l===this.size||r&&l===this.size-1||l===-1)return this.set(a,o),this;let u=this.size+(r?0:1);if(i<0)s++;let d=[...this.#e],m,p=!1;for(let f=s;f<u;f++)if(s===f){let g=d[f];if(d[f]===a)g=d[f+1];if(r)this.delete(a);m=this.get(g),this.set(a,o)}else{if(!p&&d[f-1]===a)p=!0;let g=d[p?f:f-1],y=m;m=this.get(g),this.delete(g),this.set(g,y)}return this}with(t,a,o){let r=new e(this);return r.insert(t,a,o),r}before(t){let a=this.#e.indexOf(t)-1;if(a<0)return;return this.entryAt(a)}setBefore(t,a,o){let r=this.#e.indexOf(t);if(r===-1)return this;return this.insert(r,a,o)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a===-1)return;return this.entryAt(a)}setAfter(t,a,o){let r=this.#e.indexOf(t);if(r===-1)return this;return this.insert(r+1,a,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);if(a)this.#e.splice(this.#e.indexOf(t),1);return a}deleteAt(t){let a=this.keyAt(t);if(a!==void 0)return this.delete(a);return!1}at(t){let a=kh(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=kh(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return kh(this.#e,t)}from(t,a){let o=this.indexOf(t);if(o===-1)return;let r=o+a;if(r<0)r=0;if(r>=this.size)r=this.size-1;return this.at(r)}keyFrom(t,a){let o=this.indexOf(t);if(o===-1)return;let r=o+a;if(r<0)r=0;if(r>=this.size)r=this.size-1;return this.keyAt(r)}find(t,a){let o=0;for(let r of this){if(Reflect.apply(t,a,[r,o,this]))return r;o++}return}findIndex(t,a){let o=0;for(let r of this){if(Reflect.apply(t,a,[r,o,this]))return o;o++}return-1}filter(t,a){let o=[],r=0;for(let n of this){if(Reflect.apply(t,a,[n,r,this]))o.push(n);r++}return new e(o)}map(t,a){let o=[],r=0;for(let n of this)o.push([n[0],Reflect.apply(t,a,[n,r,this])]),r++;return new e(o)}reduce(...t){let[a,o]=t,r=0,n=o??this.at(0);for(let i of this){if(r===0&&t.length===1)n=i;else n=Reflect.apply(a,this,[n,i,r,this]);r++}return n}reduceRight(...t){let[a,o]=t,r=o??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);if(n===this.size-1&&t.length===1)r=i;else r=Reflect.apply(a,this,[r,i,n,this])}return r}toSorted(t){let a=[...this.entries()].sort(t);return new e(a)}toReversed(){let t=new e;for(let a=this.size-1;a>=0;a--){let o=this.keyAt(a),r=this.get(o);t.set(o,r)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new e(a)}slice(t,a){let o=new e,r=this.size-1;if(t===void 0)return o;if(t<0)t=t+this.size;if(a!==void 0&&a>0)r=a-1;for(let n=t;n<=r;n++){let i=this.keyAt(n),s=this.get(i);o.set(i,s)}return o}every(t,a){let o=0;for(let r of this){if(!Reflect.apply(t,a,[r,o,this]))return!1;o++}return!0}some(t,a){let o=0;for(let r of this){if(Reflect.apply(t,a,[r,o,this]))return!0;o++}return!1}};function kh(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=vM(e,t);return a===-1?void 0:e[a]}Et(kh,"at");function vM(e,t){let a=e.length,o=Dw(t),r=o>=0?o:a+o;return r<0||r>=a?-1:r}Et(vM,"toSafeIndex");function Dw(e){return e!==e||e===0?0:Math.trunc(e)}Et(Dw,"toSafeInteger");function E8(e){let t=e+"CollectionProvider",[a,o]=aa(t),[r,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Nw,setItemMap:Et(()=>{return},"setItemMap")}),i=Et(({state:v,...w})=>v?c(l,{...w,state:v}):c(s,{...w}),"CollectionProvider");i.displayName=t;let s=Et((v)=>{let w=b();return c(l,{...v,state:w})},"CollectionInit");s.displayName=t+"Init";let l=Et((v)=>{let{scope:w,children:C,state:I}=v,L=La.useRef(null),[k,_]=La.useState(null),T=Ie(L,_),[O,D]=I;return La.useEffect(()=>{if(!k)return;let z=SM(()=>{});return z.observe(k,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[k]),c(r,{scope:w,itemMap:O,setItemMap:D,collectionRef:T,collectionRefObject:L,collectionElement:k,children:C})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",d=Ga(u),m=La.forwardRef((v,w)=>{let{scope:C,children:I}=v,L=n(u,C),k=Ie(w,L.collectionRef);return c(d,{ref:k,children:I})});m.displayName=u;let p=e+"CollectionItemSlot",f="data-radix-collection-item",g=Ga(p),y=La.forwardRef((v,w)=>{let{scope:C,children:I,...L}=v,k=La.useRef(null),[_,T]=La.useState(null),O=Ie(w,k,T),D=n(p,C),{setItemMap:z}=D,R=La.useRef(L);if(!bM(R.current,L))R.current=L;let A=R.current;return La.useEffect(()=>{let E=A;return z((B)=>{if(!_)return B;if(!B.has(_))return B.set(_,{...E,element:_}),B.toSorted(Aw);return B.set(_,{...E,element:_}).toSorted(Aw)}),()=>{z((B)=>{if(!_||!B.has(_))return B;return B.delete(_),new Nw(B)})}},[_,A,z]),c(g,{...{[f]:""},ref:O,children:I})});y.displayName=p;function b(){return La.useState(new Nw)}Et(b,"useInitCollection");function h(v){let{itemMap:w}=n(e+"CollectionConsumer",v);return w}return Et(h,"useCollection"),[{Provider:i,Slot:m,ItemSlot:y},{createCollectionScope:o,useCollection:h,useInitCollection:b}]}Et(E8,"createCollection");function bM(e,t){if(e===t)return!0;if(typeof e!=="object"||typeof t!=="object")return!1;if(e==null||t==null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let r of a){if(!Object.prototype.hasOwnProperty.call(t,r))return!1;if(e[r]!==t[r])return!1}return!0}Et(bM,"shallowEqual");function wM(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Et(wM,"isElementPreceding");function Aw(e,t){return!e[1].element||!t[1].element?0:wM(e[1].element,t[1].element)?-1:1}Et(Aw,"sortByDocumentPosition");function SM(e){return new MutationObserver((a)=>{for(let o of a)if(o.type==="childList"){e();return}})}Et(SM,"getChildListObserver");var A8=U(V(),1),Ih=U(V(),1),N8=Object.defineProperty,Ow=(e,t)=>N8(e,"name",{value:t,configurable:!0}),Pw=!1;function LM(){let[e,t]=Ih.useState(Pw);return Ih.useEffect(()=>{if(!Pw)Pw=!0,t(!0)},[]),e}Ow(LM,"useIsHydrated");var CM=A8[" useSyncExternalStore ".trim().toString()];function kM(){return()=>{}}Ow(kM,"subscribe");function IM(){return CM(kM,()=>!0,()=>!1)}Ow(IM,"useIsHydratedModern");var RM=typeof CM==="function"?IM:LM;var M8=Object.defineProperty,fs=(e,t)=>M8(e,"name",{value:t,configurable:!0}),zw="rovingFocusGroup.onEntryFocus",D8={bubbles:!1,cancelable:!0},Rh="RovingFocusGroup",[Bw,TM,P8]=Mw(Rh),[O8,Fw]=aa(Rh,[P8]),_M={Vertical:"vertical",Horizontal:"horizontal"},z8={LTR:"ltr",RTL:"rtl"},[B8,F8]=O8(Rh),EM=Nt.forwardRef(fs(function(t,a){return c(Bw.Provider,{scope:t.__scopeRovingFocusGroup,children:c(Bw.Slot,{scope:t.__scopeRovingFocusGroup,children:c(H8,{...t,ref:a})})})},"RovingFocusGroup")),H8=Nt.forwardRef(fs(function(t,a){let{__scopeRovingFocusGroup:o,orientation:r,loop:n=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...p}=t,f=Nt.useRef(null),g=Ie(a,f),y=cs(i),[b,h]=lo({prop:s,defaultProp:l??null,onChange:u,caller:Rh}),[x,v]=Nt.useState(!1),w=_t(d),C=TM(o),I=Nt.useRef(!1),[L,k]=Nt.useState(0);return Nt.useEffect(()=>{let _=f.current;if(_)return _.addEventListener(zw,w),()=>_.removeEventListener(zw,w)},[w]),c(B8,{scope:o,orientation:r,dir:y,loop:n,currentTabStopId:b,onItemFocus:Nt.useCallback((_)=>h(_),[h]),onItemShiftTab:Nt.useCallback(()=>v(!0),[]),onFocusableItemAdd:Nt.useCallback(()=>k((_)=>_+1),[]),onFocusableItemRemove:Nt.useCallback(()=>k((_)=>_-1),[]),children:c(se.div,{tabIndex:x||L===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...t.style},onMouseDown:ke(t.onMouseDown,()=>{I.current=!0}),onFocus:ke(t.onFocus,(_)=>{let T=!I.current;if(_.target===_.currentTarget&&T&&!x){let O=new CustomEvent(zw,D8);if(_.currentTarget.dispatchEvent(O),!O.defaultPrevented){let D=C().filter((B)=>B.focusable),z=D.find((B)=>B.active),R=D.find((B)=>B.id===b),E=[z,R,...D].filter(Boolean).map((B)=>B.ref.current);Hw(E,m)}}I.current=!1}),onBlur:ke(t.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),U8="RovingFocusGroupItem",NM=Nt.forwardRef(fs(function(t,a){let{__scopeRovingFocusGroup:o,focusable:r=!0,active:n=!1,tabStopId:i,children:s,...l}=t,u=Zt(),d=i||u,m=F8(U8,o),p=m.currentTabStopId===d,f=TM(o),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:b}=m,h=RM();return dt(()=>{if(!h||!r)return;return g(),()=>y()},[h,r,g,y]),Nt.useEffect(()=>{if(h||!r)return;return g(),()=>y()},[h,r,g,y]),c(Bw.ItemSlot,{scope:o,id:d,focusable:r,active:n,children:c(se.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...l,ref:a,onMouseDown:ke(t.onMouseDown,(x)=>{if(!r)x.preventDefault();else m.onItemFocus(d)}),onFocus:ke(t.onFocus,()=>m.onItemFocus(d)),onKeyDown:ke(t.onKeyDown,(x)=>{if(x.key==="Tab"&&x.shiftKey){m.onItemShiftTab();return}if(x.target!==x.currentTarget)return;let v=MM(x,m.orientation,m.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=f().filter((I)=>I.focusable).map((I)=>I.ref.current);if(v==="last")C.reverse();else if(v==="prev"||v==="next"){if(v==="prev")C.reverse();let I=C.indexOf(x.currentTarget);C=m.loop?DM(C,I+1):C.slice(I+1)}setTimeout(()=>Hw(C))}}),children:typeof s==="function"?s({isCurrentTabStop:p,hasTabStop:b!=null}):s})})},"RovingFocusGroupItem")),G8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function AM(e,t){if(t!==z8.RTL)return e;return e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}fs(AM,"getDirectionAwareKey");function MM(e,t,a){let o=AM(e.key,a);if(t===_M.Vertical&&["ArrowLeft","ArrowRight"].includes(o))return;if(t===_M.Horizontal&&["ArrowUp","ArrowDown"].includes(o))return;return G8[o]}fs(MM,"getFocusIntent");function Hw(e,t=!1){let a=document.activeElement;for(let o of e){if(o===a)return;if(o.focus({preventScroll:t}),document.activeElement!==a)return}}fs(Hw,"focusFirst");function DM(e,t){return e.map((a,o)=>e[(t+o)%e.length])}fs(DM,"wrapArray");var $8=Object.defineProperty,Jn=(e,t)=>$8(e,"name",{value:t,configurable:!0}),cu="ToggleGroup",Kd={Single:"single",Multiple:"multiple"},[OM,V8]=aa(cu,[Fw]),zM=Fw(),Z8=ra.forwardRef(Jn(function(t,a){let{type:o,...r}=t;if(o===Kd.Single)return c(K8,{role:"radiogroup",...r,ref:a});if(o===Kd.Multiple)return c(j8,{role:"toolbar",...r,ref:a});throw Error(\`Missing prop \\\`type\\\` expected on \\\`\${cu}\\\`\`)},"ToggleGroup")),[BM,FM]=OM(cu),K8=ra.forwardRef(Jn(function(t,a){let{value:o,defaultValue:r,onValueChange:n=Jn(()=>{},"onValueChange"),...i}=t,[s,l]=lo({prop:o,defaultProp:r??"",onChange:n,caller:cu});return c(BM,{scope:t.__scopeToggleGroup,type:Kd.Single,value:ra.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:ra.useCallback(()=>l(""),[l]),children:c(HM,{...i,ref:a})})},"ToggleGroupImplSingle")),j8=ra.forwardRef(Jn(function(t,a){let{value:o,defaultValue:r,onValueChange:n=Jn(()=>{},"onValueChange"),...i}=t,[s,l]=lo({prop:o,defaultProp:r??[],onChange:n,caller:cu}),u=ra.useCallback((m)=>l((p=[])=>[...p,m]),[l]),d=ra.useCallback((m)=>l((p=[])=>p.filter((f)=>f!==m)),[l]);return c(BM,{scope:t.__scopeToggleGroup,type:Kd.Multiple,value:s,onItemActivate:u,onItemDeactivate:d,children:c(HM,{...i,ref:a})})},"ToggleGroupImplMultiple")),[X8,Y8]=OM(cu),HM=ra.forwardRef(Jn(function(t,a){let{__scopeToggleGroup:o,disabled:r=!1,rovingFocus:n=!0,orientation:i,dir:s,loop:l=!0,...u}=t,d=zM(o),m=cs(s),p={dir:m,...u};return c(X8,{scope:o,rovingFocus:n,disabled:r,children:n?c(EM,{asChild:!0,...d,orientation:i,dir:m,loop:l,children:c(se.div,{...p,ref:a})}):c(se.div,{...p,ref:a})})},"ToggleGroupImpl")),Uw="ToggleGroupItem",W8=ra.forwardRef(Jn(function(t,a){let o=FM(Uw,t.__scopeToggleGroup),r=Y8(Uw,t.__scopeToggleGroup),n=zM(t.__scopeToggleGroup),i=o.value.includes(t.value),s=r.disabled||t.disabled,l={...t,pressed:i,disabled:s},u=ra.useRef(null);return r.rovingFocus?c(NM,{asChild:!0,...n,focusable:!s,active:i,ref:u,children:c(PM,{...l,ref:a})}):c(PM,{...l,ref:a})},"ToggleGroupItem")),PM=ra.forwardRef(Jn(function(t,a){let{__scopeToggleGroup:o,value:r,...n}=t,i=FM(Uw,o),s={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},l=i.type===Kd.Single?s:void 0;return c(yM,{...l,...n,ref:a,onPressedChange:(u)=>{if(u)i.onItemActivate(r);else i.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));var Q8=jl("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function vt({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let n=o?Ql.Root:"button";return c(n,{"data-slot":"button","data-variant":t,"data-size":a,className:P(Q8({variant:t,size:a,className:e})),...r})}var du=["system","light","dark"];function _h(e){let t=e==="dark"||e==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",t)}var J8={level:null,selected:null,hiddenKinds:[],colorBy:"section",hiddenPackages:[]};function eq(){try{let e=localStorage.getItem(ux);return du.find((t)=>t===e)??"system"}catch{return"system"}}function tq(e){try{localStorage.setItem(ux,e)}catch{}}var De=Sy({colorMode:eq(),expanded:{},searchOpen:!1,graphView:J8},({setState:e})=>({setColorMode(t){e((a)=>({...a,colorMode:t})),_h(t),tq(t)},setExpanded(t,a){e((o)=>({...o,expanded:{...o.expanded,[t]:a}}))},reveal(t){e((a)=>{if(t.every((r)=>a.expanded[r]===!0))return a;let o={...a.expanded};for(let r of t)o[r]=!0;return{...a,expanded:o}})},setSearchOpen(t){e((a)=>({...a,searchOpen:t}))},setGraphLevel(t){e((a)=>({...a,graphView:{...a.graphView,level:t}}))},selectInGraph(t){e((a)=>({...a,graphView:{...a.graphView,selected:t}}))},focusInGraph(t,a){e((o)=>({...o,graphView:{...o.graphView,selected:t,level:a??o.graphView.level}}))},setHiddenEdgeKinds(t){e((a)=>({...a,graphView:{...a.graphView,hiddenKinds:t}}))},setGraphColorBy(t){e((a)=>({...a,graphView:{...a.graphView,colorBy:t}}))},setHiddenPackages(t){e((a)=>({...a,graphView:{...a.graphView,hiddenPackages:t}}))}}));function UM(){_h(De.get().colorMode),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>_h(De.get().colorMode))}function co({node:e,className:t}){let a=q(),{kind:o,name:r}=a.node(e);return c(vt,{asChild:!0,variant:"ghost",size:"icon",className:P("size-7 text-muted-foreground",t),children:c(rt,{to:"/graph","aria-label":\`Show \${r} in the graph\`,title:"Show in graph",onClick:()=>De.actions.focusInGraph(e,Ta(o)?"entries":void 0),children:c(_o,{})})})}var aq={prose:"max-w-3xl",wide:"max-w-5xl",full:""};function Ge({children:e,aside:t,width:a="prose"}){return S("div",{className:"flex gap-10 px-4 py-8 sm:px-8 lg:px-10 lg:py-10",children:[c("main",{className:P("min-w-0 flex-1",aq[a]),children:e}),t&&c("aside",{className:"sticky top-10 hidden h-fit max-h-[calc(100dvh-5rem)] w-56 shrink-0 overflow-y-auto xl:block",children:t})]})}var oq="rounded-xs outline-hidden hover:text-foreground hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50";function Je({node:e}){let t=q(),[a,...o]=t.ancestors(e);return S("nav",{"aria-label":"Breadcrumb",className:"mb-4 flex items-start gap-3",children:[S("ol",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-x-1.5 gap-y-1 py-1 font-mono text-muted-foreground text-xs",children:[a!==void 0&&c("li",{children:c(ie,{node:a,className:"rounded-sm bg-primary px-1.5 py-0.5 font-sans font-semibold text-primary-foreground outline-hidden hover:bg-primary/90 focus-visible:ring-3 focus-visible:ring-ring/50",children:t.node(a).name})}),o.map((r)=>S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,children:"/"}),c(ie,{node:r,className:P(oq,"break-all"),children:t.node(r).name})]},r)),a!==void 0&&S("li",{"aria-current":"page",className:"flex items-center gap-1.5 font-medium text-foreground",children:[c("span",{"aria-hidden":!0,className:"font-normal text-muted-foreground",children:"/"}),c("span",{className:"break-all",children:t.node(e).name})]})]}),c(co,{node:e,className:"-my-0.5 shrink-0"})]})}function mt({headings:e}){if(e.length===0)return null;return S("nav",{"aria-label":"On this page",className:"text-sm",children:[c("p",{className:"mb-2 font-semibold",children:"On this page"}),c("ul",{className:"space-y-1.5 border-l",children:e.map((t)=>c("li",{children:c(rt,{to:".",hash:t.id,replace:!0,activeOptions:{exact:!0,includeHash:!0},className:P("-ml-px block border-transparent border-l py-0.5 pl-3 text-muted-foreground transition-colors [overflow-wrap:anywhere] hover:text-foreground aria-[current=page]:border-primary aria-[current=page]:font-medium aria-[current=page]:text-primary",t.depth>2&&"pl-6"),children:t.text})},t.id))})]})}var GM=U(V(),1);function Re(e){GM.useEffect(()=>{document.title=e},[e])}function fu({node:e,kind:t,anchor:a,title:o,meta:r,active:n,children:i}){return S("section",{id:Ve(t,a),"data-kind":t,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",n&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(ye,{kind:t}),c("h3",{className:"min-w-0 font-bold text-lg tracking-tight",children:c(ie,{node:e,className:"break-words rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o})}),r,c(co,{node:e,className:"-my-1 -mr-1.5 ml-auto"})]}),c("div",{className:"space-y-4 border-t p-4",children:i})]})}function $r({html:e,className:t,...a}){return c("div",{className:P("min-w-0",t),dangerouslySetInnerHTML:{__html:e},...a})}var $M=U(V(),1);function qM(e){let t=e instanceof Element?e.closest("a"):null,a=t?.getAttribute("href")??t?.getAttribute(R0);return a?.startsWith("#")?a:null}function ze({html:e,compact:t=!1,className:a,...o}){let r=xe(),n=$M.useMemo(()=>SE(e),[e]),i=(u)=>{if(u.startsWith("#/"))r.navigate({href:u.slice(1)});else r.navigate({to:".",hash:decodeURIComponent(u.slice(1)),replace:!0})},s=(u)=>{let d=qM(u.target);if(d===null||u.metaKey||u.ctrlKey||u.shiftKey)return;u.preventDefault(),i(d)},l=(u)=>{let d=u.key==="Enter"?qM(u.target):null;if(d===null||u.target.closest("a")?.hasAttribute("href"))return;u.preventDefault(),i(d)};return c("div",{className:P("prose",t&&"prose-compact",a),onClick:s,onKeyDown:l,dangerouslySetInnerHTML:{__html:n},...o})}function VM(e){if(e<1000)return\`\${e} bytes\`;return e<1e6?\`\${(e/1000).toFixed(0)} kB\`:\`\${(e/1e6).toFixed(1)} MB\`}function jt({content:e,name:t}){if(e.format==="markdown")return c(ze,{html:e.html});if(e.format==="text")return c($r,{html:e.html,className:"[&>pre]:max-h-[44rem]"});if(e.format==="image")return c("img",{src:e.src,alt:t,className:"max-w-full rounded-md border bg-card p-4"});return c("p",{className:"rounded-md border border-dashed px-4 py-6 text-center text-muted-foreground text-sm",children:e.reason==="binary"?\`This file is not text, so its content is not shown (\${VM(e.bytes)}).\`:\`This file is too large to show here (\${VM(e.bytes)}).\`})}function ei({node:e,kind:t,title:a}){let o=q(),r=o.edgesFrom(e).flatMap(([,n,i])=>n===t?[i]:[]);if(r.length===0)return null;return S("div",{className:"space-y-2",children:[c("h4",{className:"font-semibold text-sm",children:a}),c("ul",{className:"flex flex-wrap gap-x-3 gap-y-1",children:r.map((n)=>S("li",{className:"flex min-w-0 items-center gap-1.5",children:[c(ye,{kind:o.node(n).kind,className:"h-5 px-1.5 text-[0.6875rem]"}),c(ie,{node:n,className:"break-all rounded-xs font-medium font-mono text-[0.8125rem] text-primary leading-6 underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50",children:o.qualifiedName(n)})]},n))})]})}var ZM=U(V(),1);function nr({node:e,title:t}){let a=q();return c(ie,{node:e,title:t,className:P("rounded-xs font-medium text-primary leading-6 underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50","text-[0.8125rem]",ql(a.node(e).kind)),children:a.qualifiedName(e)})}function pu({node:e}){let t=q(),a=ZM.useMemo(()=>k0(t,e),[t,e]);if(a.length===0)return null;return S("div",{className:"space-y-2",children:[c("h4",{className:"font-semibold text-sm",children:"Similar in meaning"}),c("ul",{className:"flex flex-wrap gap-x-3 gap-y-1",children:a.map(({node:o,score:r})=>S("li",{className:"flex min-w-0 items-center gap-1.5",children:[c(ye,{kind:t.node(o).kind,className:"h-5 px-1.5 text-[0.6875rem]"}),c(nr,{node:o,title:\`Similarity \${Math.round(r*100)}%\`})]},o))})]})}function $a({status:e,className:t,children:a,...o}){return S("span",{"data-status":e,className:P("inline-flex items-center gap-1.5 rounded-md border border-status/40 bg-status/15 px-2 py-0.5 text-xs font-medium text-foreground",t),...o,children:[c("span",{"aria-hidden":!0,className:"size-1.5 rounded-full bg-status"}),a]})}var jM=U(V(),1);var KM=6,rq=["Parameter of","Field of","Request body of","Returned by","Response of","Thrown by","Error response of","Subtypes","Used by type","Part of","Referenced by table","Read by","Written by","Decisions","Used in","Mentioned in"];function nq(e,[t,a]){let o=e.node(t).kind;if(o==="operation"&&a==="type")return"Request body of";if(o==="operation"&&a==="returns")return"Response of";if(o==="operation"&&a==="throws")return"Error response of";if(a==="type")return o==="field"?"Field of":"Parameter of";if(a==="returns")return"Returned by";if(a==="throws")return"Thrown by";if(a==="extends"&&o==="definition")return"Part of";if(a==="extends")return o==="type"?"Used by type":"Subtypes";if(a==="references")return"Referenced by table";if(a==="reads")return"Read by";if(a==="writes")return"Written by";if(a==="affects")return"Decisions";if(a==="uses")return"Used in";return"Mentioned in"}function iq(e,t){let a=new Map;for(let o of e.edgesTo(t)){let r=nq(e,o),n=a.get(r)??new Set;n.add(o[0]),a.set(r,n)}return rq.flatMap((o)=>{let r=a.get(o);return r?[{label:o,sources:[...r]}]:[]})}function Le({node:e,title:t}){let a=q(),[o,r]=jM.useState(!1),n=iq(a,e);if(n.length===0)return null;let i=n.reduce((s,l)=>s+Math.max(0,l.sources.length-KM),0);return S("div",{className:"space-y-2",children:[c("h4",{className:"font-semibold text-sm",children:t}),c("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm",children:n.map((s)=>S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"text-muted-foreground leading-6",children:s.label}),c("dd",{className:"flex min-w-0 flex-wrap gap-x-3 gap-y-1",children:(o?s.sources:s.sources.slice(0,KM)).map((l)=>c(nr,{node:l},l))})]},s.label))}),i>0&&!o&&S("button",{type:"button",onClick:()=>r(!0),className:"rounded-xs font-medium text-primary text-sm underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50",children:["Show ",i," more"]})]})}var sq=[["accept","success"],["approv","success"],["adopt","success"],["propos","info"],["draft","info"],["open","info"],["supersed","off"],["deprecat","off"],["replac","off"],["reject","error"],["declin","error"]];function XM(e){let t=e.trim().toLowerCase();return sq.find(([a])=>t.startsWith(a))?.[1]??"unknown"}function YM({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=Gw(a,e),n=r.map(({decision:s})=>({id:Ve("decision",s.anchor),text:WM(s.id,s.name),depth:2})),i=t.content.format==="markdown"&&t.content.html.includes("<h1");return S(Ge,{aside:c(mt,{headings:n}),children:[c(Je,{node:e}),S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"decisions"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),S("span",{className:"text-muted-foreground text-sm",children:[r.length," ",r.length===1?"decision":"decisions"]})]}),!i&&c("h1",{className:"mb-6 font-bold text-3xl tracking-tight",children:t.title}),c(jt,{content:t.content,name:t.name}),c(qw,{decisions:r,active:o}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function WM(e,t){return e?\`\${e}. \${t}\`:t}function Gw(e,t){return e.children(t).flatMap((a)=>{let o=e.node(a);return o.kind==="decision"?[{ref:a,decision:o}]:[]})}function qw({decisions:e,active:t}){return c("div",{className:"mt-8 space-y-4",children:e.map(({ref:a,decision:o})=>S(fu,{node:a,kind:"decision",anchor:o.anchor,title:WM(o.id,o.name),active:a===t,meta:S(he,{children:[o.status&&c($a,{status:XM(o.status),children:o.status}),o.date&&c("span",{className:"font-mono text-muted-foreground text-xs",children:o.date})]}),children:[o.html&&c(ze,{compact:!0,html:o.html}),c(ei,{node:a,kind:"affects",title:"Affects"}),c(Le,{node:a,title:"Referenced by"}),c(pu,{node:a})]},a))})}var lq=jl("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function na({className:e,variant:t="default",asChild:a=!1,...o}){let r=a?Ql.Root:"span";return c(r,{"data-slot":"badge","data-variant":t,className:P(lq({variant:t}),e),...o})}function uq(e){return\`group:\${e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}\`}function QM({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=$w(a,e),n=r.reduce((l,u)=>l+u.terms.length,0),i=r.flatMap((l)=>[...l.name?[{id:l.id,text:l.name,depth:2}]:[],...l.terms.map(({term:u})=>({id:Ve("term",u.anchor),text:u.name,depth:3}))]),s=t.content.format==="markdown"&&t.content.html.includes("<h1");return S(Ge,{aside:c(mt,{headings:i}),children:[c(Je,{node:e}),S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"glossary"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),S("span",{className:"text-muted-foreground text-sm",children:[n," ",n===1?"term":"terms"]})]}),!s&&c("h1",{className:"mb-6 font-bold text-3xl tracking-tight",children:t.title}),c(jt,{content:t.content,name:t.name}),c(Vw,{groups:r,active:o}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function $w(e,t){let a=[];for(let o of e.children(t)){let r=e.node(o);if(r.kind!=="term")continue;let n=a.at(-1);if(!n||n.name!==r.group)n={name:r.group,id:uq(r.group),terms:[]},a.push(n);n.terms.push({ref:o,term:r})}return a}function Vw({groups:e,active:t}){return e.map((a)=>S("section",{"aria-label":a.name||"Terms",className:"mt-8 space-y-4",children:[a.name&&c("h2",{id:a.id,className:"scroll-mt-20 border-b pb-2 font-bold text-xl tracking-tight lg:scroll-mt-6",children:a.name}),a.terms.map(({ref:o,term:r})=>S(fu,{node:o,kind:"term",anchor:r.anchor,title:r.name,active:o===t,children:[r.definitionHtml&&c(ze,{compact:!0,html:r.definitionHtml}),r.avoid.length>0&&S("div",{className:"flex flex-wrap items-center gap-1.5 text-sm",children:[c("span",{className:"mr-1 font-semibold",children:"Avoid"}),r.avoid.map((n)=>c(na,{variant:"outline",className:"bg-background font-normal",children:n},n))]}),c(Le,{node:o,title:"Used by"}),c(pu,{node:o})]},o))]},a.id))}var cq={glossary:{title:"Glossary",file:"glossary.md",unit:["term","terms"],goal:"recording a glossary"},decisions:{title:"Decisions",file:"decisions.md",unit:["decision","decisions"],goal:"recording decisions"}};function Zw({kind:e}){let t=q(),a=ct(),{title:o,file:r,unit:n,goal:i}=cq[e];Re(\`\${o} \xB7 \${t.meta.title}\`);let s=[];for(let{node:u}of t.sections)for(let d of t.descendants(u)){let m=t.node(d);if(m.kind===e)s.push({ref:d,file:m})}if(s.length===0)return c(Ul,{title:\`No \${r} yet\`,children:S("p",{children:["Create a ",c("code",{className:"font-mono text-foreground",children:r})," file to start ",i,", then run the command again."]})});let l=s.map(({ref:u,file:d})=>({id:\`file-\${u}\`,text:d.path,depth:2}));return S(Ge,{aside:c(mt,{headings:l}),children:[S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:e}),c("h1",{className:"font-bold text-3xl tracking-tight",children:o}),S("span",{className:"text-muted-foreground text-sm",children:[s.length," ",s.length===1?"file":"files"]})]}),s.map(({ref:u,file:d})=>{let m=e==="decisions"?Gw(t,u):[],p=e==="glossary"?$w(t,u):[],f=e==="decisions"?m.length:p.reduce((g,y)=>g+y.terms.length,0);return S("section",{"aria-label":d.path,className:"mt-12 first-of-type:mt-0",children:[S("h2",{id:\`file-\${u}\`,className:"flex scroll-mt-20 flex-wrap items-baseline gap-x-3 border-b pb-2 lg:scroll-mt-6",children:[c(ie,{node:u,className:"break-all font-mono font-semibold text-lg hover:underline",children:d.path}),S("span",{className:"font-normal text-muted-foreground text-sm",children:[f," ",f===1?n[0]:n[1]]})]}),e==="decisions"?c(qw,{decisions:m,active:a}):c(Vw,{groups:p,active:a})]},u)})]})}var lr=U(V(),1);var dq={typing:"stroke-edge-typing",result:"stroke-edge-result",prose:"stroke-edge-prose",term:"stroke-edge-term",key:"stroke-edge-key",query:"stroke-edge-query",task:"stroke-edge-task"},Th=Object.fromEntries(Ti.map((e)=>{let{family:t,dashed:a}=wr[e];return[e,{family:t,dashed:a,stroke:dq[t]}]})),Eh="4 4";function Nh({kind:e,className:t}){let{stroke:a,dashed:o}=Th[e];return c("svg",{"aria-hidden":!0,"data-edge-sample":e,viewBox:"0 0 16 16",className:P("size-4 shrink-0 fill-none",a,t),children:c("path",{d:"M1 8H15",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:o?Eh:void 0})})}var Oo=U(V(),1);var fq={value:()=>{}};function eD(){for(var e=0,t=arguments.length,a={},o;e<t;++e){if(!(o=arguments[e]+"")||o in a||/[\\s.]/.test(o))throw Error("illegal type: "+o);a[o]=[]}return new Ah(a)}function Ah(e){this._=e}function pq(e,t){return e.trim().split(/^|\\s+/).map(function(a){var o="",r=a.indexOf(".");if(r>=0)o=a.slice(r+1),a=a.slice(0,r);if(a&&!t.hasOwnProperty(a))throw Error("unknown type: "+a);return{type:a,name:o}})}Ah.prototype=eD.prototype={constructor:Ah,on:function(e,t){var a=this._,o=pq(e+"",a),r,n=-1,i=o.length;if(arguments.length<2){while(++n<i)if((r=(e=o[n]).type)&&(r=mq(a[r],e.name)))return r;return}if(t!=null&&typeof t!=="function")throw Error("invalid callback: "+t);while(++n<i)if(r=(e=o[n]).type)a[r]=JM(a[r],e.name,t);else if(t==null)for(r in a)a[r]=JM(a[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var a in t)e[a]=t[a].slice();return new Ah(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var a=Array(r),o=0,r,n;o<r;++o)a[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(n=this._[e],o=0,r=n.length;o<r;++o)n[o].value.apply(t,a)},apply:function(e,t,a){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var o=this._[e],r=0,n=o.length;r<n;++r)o[r].value.apply(t,a)}};function mq(e,t){for(var a=0,o=e.length,r;a<o;++a)if((r=e[a]).name===t)return r.value}function JM(e,t,a){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=fq,e=e.slice(0,o).concat(e.slice(o+1));break}if(a!=null)e.push({name:t,value:a});return e}var Vr=eD;function mu(e){return function(){return this.matches(e)}}function Mh(e){return function(t){return t.matches(e)}}var Dh="http://www.w3.org/1999/xhtml",Kw={svg:"http://www.w3.org/2000/svg",xhtml:Dh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ir(e){var t=e+="",a=t.indexOf(":");if(a>=0&&(t=e.slice(0,a))!=="xmlns")e=e.slice(a+1);return Kw.hasOwnProperty(t)?{space:Kw[t],local:e}:e}function jw(e){let t;while(t=e.sourceEvent)e=t;return e}function ia(e,t){if(e=jw(e),t===void 0)t=e.currentTarget;if(t){var a=t.ownerSVGElement||t;if(a.createSVGPoint){var o=a.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}function hq(){}function ti(e){return e==null?hq:function(){return this.querySelector(e)}}function Xw(e){if(typeof e!=="function")e=ti(e);for(var t=this._groups,a=t.length,o=Array(a),r=0;r<a;++r)for(var n=t[r],i=n.length,s=o[r]=Array(i),l,u,d=0;d<i;++d)if((l=n[d])&&(u=e.call(l,l.__data__,d,n))){if("__data__"in l)u.__data__=l.__data__;s[d]=u}return new et(o,this._parents)}function Yw(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gq(){return[]}function hu(e){return e==null?gq:function(){return this.querySelectorAll(e)}}function yq(e){return function(){return Yw(e.apply(this,arguments))}}function Ww(e){if(typeof e==="function")e=yq(e);else e=hu(e);for(var t=this._groups,a=t.length,o=[],r=[],n=0;n<a;++n)for(var i=t[n],s=i.length,l,u=0;u<s;++u)if(l=i[u])o.push(e.call(l,l.__data__,u,i)),r.push(l);return new et(o,r)}var xq=Array.prototype.find;function vq(e){return function(){return xq.call(this.children,e)}}function bq(){return this.firstElementChild}function Qw(e){return this.select(e==null?bq:vq(typeof e==="function"?e:Mh(e)))}var wq=Array.prototype.filter;function Sq(){return Array.from(this.children)}function Lq(e){return function(){return wq.call(this.children,e)}}function Jw(e){return this.selectAll(e==null?Sq:Lq(typeof e==="function"?e:Mh(e)))}function eS(e){if(typeof e!=="function")e=mu(e);for(var t=this._groups,a=t.length,o=Array(a),r=0;r<a;++r)for(var n=t[r],i=n.length,s=o[r]=[],l,u=0;u<i;++u)if((l=n[u])&&e.call(l,l.__data__,u,n))s.push(l);return new et(o,this._parents)}function Xd(e){return Array(e.length)}function tS(){return new et(this._enter||this._groups.map(Xd),this._parents)}function Yd(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Yd.prototype={constructor:Yd,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function aS(e){return function(){return e}}function Cq(e,t,a,o,r,n){var i=0,s,l=t.length,u=n.length;for(;i<u;++i)if(s=t[i])s.__data__=n[i],o[i]=s;else a[i]=new Yd(e,n[i]);for(;i<l;++i)if(s=t[i])r[i]=s}function kq(e,t,a,o,r,n,i){var s,l,u=new Map,d=t.length,m=n.length,p=Array(d),f;for(s=0;s<d;++s)if(l=t[s])if(p[s]=f=i.call(l,l.__data__,s,t)+"",u.has(f))r[s]=l;else u.set(f,l);for(s=0;s<m;++s)if(f=i.call(e,n[s],s,n)+"",l=u.get(f))o[s]=l,l.__data__=n[s],u.delete(f);else a[s]=new Yd(e,n[s]);for(s=0;s<d;++s)if((l=t[s])&&u.get(p[s])===l)r[s]=l}function Iq(e){return e.__data__}function oS(e,t){if(!arguments.length)return Array.from(this,Iq);var a=t?kq:Cq,o=this._parents,r=this._groups;if(typeof e!=="function")e=aS(e);for(var n=r.length,i=Array(n),s=Array(n),l=Array(n),u=0;u<n;++u){var d=o[u],m=r[u],p=m.length,f=Rq(e.call(d,d&&d.__data__,u,o)),g=f.length,y=s[u]=Array(g),b=i[u]=Array(g),h=l[u]=Array(p);a(d,m,y,b,h,f,t);for(var x=0,v=0,w,C;x<g;++x)if(w=y[x]){if(x>=v)v=x+1;while(!(C=b[v])&&++v<g);w._next=C||null}}return i=new et(i,o),i._enter=s,i._exit=l,i}function Rq(e){return typeof e==="object"&&"length"in e?e:Array.from(e)}function rS(){return new et(this._exit||this._groups.map(Xd),this._parents)}function nS(e,t,a){var o=this.enter(),r=this,n=this.exit();if(typeof e==="function"){if(o=e(o),o)o=o.selection()}else o=o.append(e+"");if(t!=null){if(r=t(r),r)r=r.selection()}if(a==null)n.remove();else a(n);return o&&r?o.merge(r).order():r}function iS(e){var t=e.selection?e.selection():e;for(var a=this._groups,o=t._groups,r=a.length,n=o.length,i=Math.min(r,n),s=Array(r),l=0;l<i;++l)for(var u=a[l],d=o[l],m=u.length,p=s[l]=Array(m),f,g=0;g<m;++g)if(f=u[g]||d[g])p[g]=f;for(;l<r;++l)s[l]=a[l];return new et(s,this._parents)}function sS(){for(var e=this._groups,t=-1,a=e.length;++t<a;)for(var o=e[t],r=o.length-1,n=o[r],i;--r>=0;)if(i=o[r]){if(n&&i.compareDocumentPosition(n)^4)n.parentNode.insertBefore(i,n);n=i}return this}function lS(e){if(!e)e=_q;function t(m,p){return m&&p?e(m.__data__,p.__data__):!m-!p}for(var a=this._groups,o=a.length,r=Array(o),n=0;n<o;++n){for(var i=a[n],s=i.length,l=r[n]=Array(s),u,d=0;d<s;++d)if(u=i[d])l[d]=u;l.sort(t)}return new et(r,this._parents).order()}function _q(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function uS(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cS(){return Array.from(this)}function dS(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var o=e[t],r=0,n=o.length;r<n;++r){var i=o[r];if(i)return i}return null}function fS(){let e=0;for(let t of this)++e;return e}function pS(){return!this.node()}function mS(e){for(var t=this._groups,a=0,o=t.length;a<o;++a)for(var r=t[a],n=0,i=r.length,s;n<i;++n)if(s=r[n])e.call(s,s.__data__,n,r);return this}function Tq(e){return function(){this.removeAttribute(e)}}function Eq(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nq(e,t){return function(){this.setAttribute(e,t)}}function Aq(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Mq(e,t){return function(){var a=t.apply(this,arguments);if(a==null)this.removeAttribute(e);else this.setAttribute(e,a)}}function Dq(e,t){return function(){var a=t.apply(this,arguments);if(a==null)this.removeAttributeNS(e.space,e.local);else this.setAttributeNS(e.space,e.local,a)}}function hS(e,t){var a=ir(e);if(arguments.length<2){var o=this.node();return a.local?o.getAttributeNS(a.space,a.local):o.getAttribute(a)}return this.each((t==null?a.local?Eq:Tq:typeof t==="function"?a.local?Dq:Mq:a.local?Aq:Nq)(a,t))}function Wd(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Pq(e){return function(){this.style.removeProperty(e)}}function Oq(e,t,a){return function(){this.style.setProperty(e,t,a)}}function zq(e,t,a){return function(){var o=t.apply(this,arguments);if(o==null)this.style.removeProperty(e);else this.style.setProperty(e,o,a)}}function gS(e,t,a){return arguments.length>1?this.each((t==null?Pq:typeof t==="function"?zq:Oq)(e,t,a==null?"":a)):ai(this.node(),e)}function ai(e,t){return e.style.getPropertyValue(t)||Wd(e).getComputedStyle(e,null).getPropertyValue(t)}function Bq(e){return function(){delete this[e]}}function Fq(e,t){return function(){this[e]=t}}function Hq(e,t){return function(){var a=t.apply(this,arguments);if(a==null)delete this[e];else this[e]=a}}function yS(e,t){return arguments.length>1?this.each((t==null?Bq:typeof t==="function"?Hq:Fq)(e,t)):this.node()[e]}function tD(e){return e.trim().split(/^|\\s+/)}function xS(e){return e.classList||new aD(e)}function aD(e){this._node=e,this._names=tD(e.getAttribute("class")||"")}aD.prototype={add:function(e){var t=this._names.indexOf(e);if(t<0)this._names.push(e),this._node.setAttribute("class",this._names.join(" "))},remove:function(e){var t=this._names.indexOf(e);if(t>=0)this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(e){return this._names.indexOf(e)>=0}};function oD(e,t){var a=xS(e),o=-1,r=t.length;while(++o<r)a.add(t[o])}function rD(e,t){var a=xS(e),o=-1,r=t.length;while(++o<r)a.remove(t[o])}function Uq(e){return function(){oD(this,e)}}function Gq(e){return function(){rD(this,e)}}function qq(e,t){return function(){(t.apply(this,arguments)?oD:rD)(this,e)}}function vS(e,t){var a=tD(e+"");if(arguments.length<2){var o=xS(this.node()),r=-1,n=a.length;while(++r<n)if(!o.contains(a[r]))return!1;return!0}return this.each((typeof t==="function"?qq:t?Uq:Gq)(a,t))}function $q(){this.textContent=""}function Vq(e){return function(){this.textContent=e}}function Zq(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function bS(e){return arguments.length?this.each(e==null?$q:(typeof e==="function"?Zq:Vq)(e)):this.node().textContent}function Kq(){this.innerHTML=""}function jq(e){return function(){this.innerHTML=e}}function Xq(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function wS(e){return arguments.length?this.each(e==null?Kq:(typeof e==="function"?Xq:jq)(e)):this.node().innerHTML}function Yq(){if(this.nextSibling)this.parentNode.appendChild(this)}function SS(){return this.each(Yq)}function Wq(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function LS(){return this.each(Wq)}function Qq(e){return function(){var t=this.ownerDocument,a=this.namespaceURI;return a===Dh&&t.documentElement.namespaceURI===Dh?t.createElement(e):t.createElementNS(a,e)}}function Jq(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Qd(e){var t=ir(e);return(t.local?Jq:Qq)(t)}function CS(e){var t=typeof e==="function"?e:Qd(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function e$(){return null}function kS(e,t){var a=typeof e==="function"?e:Qd(e),o=t==null?e$:typeof t==="function"?t:ti(t);return this.select(function(){return this.insertBefore(a.apply(this,arguments),o.apply(this,arguments)||null)})}function t$(){var e=this.parentNode;if(e)e.removeChild(this)}function IS(){return this.each(t$)}function a$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function o$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function RS(e){return this.select(e?o$:a$)}function _S(e){return arguments.length?this.property("__data__",e):this.node().__data__}function r$(e){return function(t){e.call(this,t,this.__data__)}}function n$(e){return e.trim().split(/^|\\s+/).map(function(t){var a="",o=t.indexOf(".");if(o>=0)a=t.slice(o+1),t=t.slice(0,o);return{type:t,name:a}})}function i$(e){return function(){var t=this.__on;if(!t)return;for(var a=0,o=-1,r=t.length,n;a<r;++a)if(n=t[a],(!e.type||n.type===e.type)&&n.name===e.name)this.removeEventListener(n.type,n.listener,n.options);else t[++o]=n;if(++o)t.length=o;else delete this.__on}}function s$(e,t,a){return function(){var o=this.__on,r,n=r$(t);if(o){for(var i=0,s=o.length;i<s;++i)if((r=o[i]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=n,r.options=a),r.value=t;return}}if(this.addEventListener(e.type,n,a),r={type:e.type,name:e.name,value:t,listener:n,options:a},!o)this.__on=[r];else o.push(r)}}function TS(e,t,a){var o=n$(e+""),r,n=o.length,i;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,d;l<u;++l)for(r=0,d=s[l];r<n;++r)if((i=o[r]).type===d.type&&i.name===d.name)return d.value}return}s=t?s$:i$;for(r=0;r<n;++r)this.each(s(o[r],t,a));return this}function nD(e,t,a){var o=Wd(e),r=o.CustomEvent;if(typeof r==="function")r=new r(t,a);else if(r=o.document.createEvent("Event"),a)r.initEvent(t,a.bubbles,a.cancelable),r.detail=a.detail;else r.initEvent(t,!1,!1);e.dispatchEvent(r)}function l$(e,t){return function(){return nD(this,e,t)}}function u$(e,t){return function(){return nD(this,e,t.apply(this,arguments))}}function ES(e,t){return this.each((typeof t==="function"?u$:l$)(e,t))}function*NS(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var o=e[t],r=0,n=o.length,i;r<n;++r)if(i=o[r])yield i}var AS=[null];function et(e,t){this._groups=e,this._parents=t}function iD(){return new et([[document.documentElement]],AS)}function c$(){return this}et.prototype=iD.prototype={constructor:et,select:Xw,selectAll:Ww,selectChild:Qw,selectChildren:Jw,filter:eS,data:oS,enter:tS,exit:rS,join:nS,merge:iS,selection:c$,order:sS,sort:lS,call:uS,nodes:cS,node:dS,size:fS,empty:pS,each:mS,attr:hS,style:gS,property:yS,classed:vS,text:bS,html:wS,raise:SS,lower:LS,append:CS,insert:kS,remove:IS,clone:RS,datum:_S,on:TS,dispatch:ES,[Symbol.iterator]:NS};var Zr=iD;function ht(e){return typeof e==="string"?new et([[document.querySelector(e)]],[document.documentElement]):new et([[e]],AS)}var sD={passive:!1},ps={capture:!0,passive:!1};function Ph(e){e.stopImmediatePropagation()}function Kr(e){e.preventDefault(),e.stopImmediatePropagation()}function gu(e){var t=e.document.documentElement,a=ht(e).on("dragstart.drag",Kr,ps);if("onselectstart"in t)a.on("selectstart.drag",Kr,ps);else t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none"}function Jd(e,t){var a=e.document.documentElement,o=ht(e).on("dragstart.drag",null);if(t)o.on("click.drag",Kr,ps),setTimeout(function(){o.on("click.drag",null)},0);if("onselectstart"in a)o.on("selectstart.drag",null);else a.style.MozUserSelect=a.__noselect,delete a.__noselect}var ef=(e)=>()=>e;function tf(e,{sourceEvent:t,subject:a,target:o,identifier:r,active:n,x:i,y:s,dx:l,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:a,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:n,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}tf.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function d$(e){return!e.ctrlKey&&!e.button}function f$(){return this.parentNode}function p$(e,t){return t==null?{x:e.x,y:e.y}:t}function m$(){return navigator.maxTouchPoints||"ontouchstart"in this}function Oh(){var e=d$,t=f$,a=p$,o=m$,r={},n=Vr("start","drag","end"),i=0,s,l,u,d,m=0;function p(w){w.on("mousedown.drag",f).filter(o).on("touchstart.drag",b).on("touchmove.drag",h,sD).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(w,C){if(d||!e.call(this,w,C))return;var I=v(this,t.call(this,w,C),w,C,"mouse");if(!I)return;ht(w.view).on("mousemove.drag",g,ps).on("mouseup.drag",y,ps),gu(w.view),Ph(w),u=!1,s=w.clientX,l=w.clientY,I("start",w)}function g(w){if(Kr(w),!u){var C=w.clientX-s,I=w.clientY-l;u=C*C+I*I>m}r.mouse("drag",w)}function y(w){ht(w.view).on("mousemove.drag mouseup.drag",null),Jd(w.view,u),Kr(w),r.mouse("end",w)}function b(w,C){if(!e.call(this,w,C))return;var I=w.changedTouches,L=t.call(this,w,C),k=I.length,_,T;for(_=0;_<k;++_)if(T=v(this,L,w,C,I[_].identifier,I[_]))Ph(w),T("start",w,I[_])}function h(w){var C=w.changedTouches,I=C.length,L,k;for(L=0;L<I;++L)if(k=r[C[L].identifier])Kr(w),k("drag",w,C[L])}function x(w){var C=w.changedTouches,I=C.length,L,k;if(d)clearTimeout(d);d=setTimeout(function(){d=null},500);for(L=0;L<I;++L)if(k=r[C[L].identifier])Ph(w),k("end",w,C[L])}function v(w,C,I,L,k,_){var T=n.copy(),O=ia(_||I,C),D,z,R;if((R=a.call(w,new tf("beforestart",{sourceEvent:I,target:p,identifier:k,active:i,x:O[0],y:O[1],dx:0,dy:0,dispatch:T}),L))==null)return;return D=R.x-O[0]||0,z=R.y-O[1]||0,function A(E,B,X){var ee=O,F;switch(E){case"start":r[k]=A,F=i++;break;case"end":delete r[k],--i;case"drag":O=ia(X||B,C),F=i;break}T.call(E,w,new tf(E,{sourceEvent:B,subject:R,target:p,identifier:k,active:F,x:O[0]+D,y:O[1]+z,dx:O[0]-ee[0],dy:O[1]-ee[1],dispatch:T}),L)}}return p.filter=function(w){return arguments.length?(e=typeof w==="function"?w:ef(!!w),p):e},p.container=function(w){return arguments.length?(t=typeof w==="function"?w:ef(w),p):t},p.subject=function(w){return arguments.length?(a=typeof w==="function"?w:ef(w),p):a},p.touchable=function(w){return arguments.length?(o=typeof w==="function"?w:ef(!!w),p):o},p.on=function(){var w=n.on.apply(n,arguments);return w===n?p:w},p.clickDistance=function(w){return arguments.length?(m=(w=+w)*w,p):Math.sqrt(m)},p}function MS(e){let t=+this._x.call(null,e),a=+this._y.call(null,e);return lD(this.cover(t,a),t,a,e)}function lD(e,t,a,o){if(isNaN(t)||isNaN(a))return e;var r,n=e._root,i={data:o},s=e._x0,l=e._y0,u=e._x1,d=e._y1,m,p,f,g,y,b,h,x;if(!n)return e._root=i,e;while(n.length){if(y=t>=(m=(s+u)/2))s=m;else u=m;if(b=a>=(p=(l+d)/2))l=p;else d=p;if(r=n,!(n=n[h=b<<1|y]))return r[h]=i,e}if(f=+e._x.call(null,n.data),g=+e._y.call(null,n.data),t===f&&a===g)return i.next=n,r?r[h]=i:e._root=i,e;do{if(r=r?r[h]=[,,,,]:e._root=[,,,,],y=t>=(m=(s+u)/2))s=m;else u=m;if(b=a>=(p=(l+d)/2))l=p;else d=p}while((h=b<<1|y)===(x=(g>=p)<<1|f>=m));return r[x]=n,r[h]=i,e}function uD(e){var t,a,o=e.length,r,n,i=Array(o),s=Array(o),l=1/0,u=1/0,d=-1/0,m=-1/0;for(a=0;a<o;++a){if(isNaN(r=+this._x.call(null,t=e[a]))||isNaN(n=+this._y.call(null,t)))continue;if(i[a]=r,s[a]=n,r<l)l=r;if(r>d)d=r;if(n<u)u=n;if(n>m)m=n}if(l>d||u>m)return this;this.cover(l,u).cover(d,m);for(a=0;a<o;++a)lD(this,i[a],s[a],e[a]);return this}function DS(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var a=this._x0,o=this._y0,r=this._x1,n=this._y1;if(isNaN(a))r=(a=Math.floor(e))+1,n=(o=Math.floor(t))+1;else{var i=r-a||1,s=this._root,l,u;while(a>e||e>=r||o>t||t>=n)switch(u=(t<o)<<1|e<a,l=[,,,,],l[u]=s,s=l,i*=2,u){case 0:r=a+i,n=o+i;break;case 1:a=r-i,n=o+i;break;case 2:r=a+i,o=n-i;break;case 3:a=r-i,o=n-i;break}if(this._root&&this._root.length)this._root=s}return this._x0=a,this._y0=o,this._x1=r,this._y1=n,this}function PS(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function OS(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function bt(e,t,a,o,r){this.node=e,this.x0=t,this.y0=a,this.x1=o,this.y1=r}function zS(e,t,a){var o,r=this._x0,n=this._y0,i,s,l,u,d=this._x1,m=this._y1,p=[],f=this._root,g,y;if(f)p.push(new bt(f,r,n,d,m));if(a==null)a=1/0;else r=e-a,n=t-a,d=e+a,m=t+a,a*=a;while(g=p.pop()){if(!(f=g.node)||(i=g.x0)>d||(s=g.y0)>m||(l=g.x1)<r||(u=g.y1)<n)continue;if(f.length){var b=(i+l)/2,h=(s+u)/2;if(p.push(new bt(f[3],b,h,l,u),new bt(f[2],i,h,b,u),new bt(f[1],b,s,l,h),new bt(f[0],i,s,b,h)),y=(t>=h)<<1|e>=b)g=p[p.length-1],p[p.length-1]=p[p.length-1-y],p[p.length-1-y]=g}else{var x=e-+this._x.call(null,f.data),v=t-+this._y.call(null,f.data),w=x*x+v*v;if(w<a){var C=Math.sqrt(a=w);r=e-C,n=t-C,d=e+C,m=t+C,o=f.data}}}return o}function BS(e){if(isNaN(d=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,a=this._root,o,r,n,i=this._x0,s=this._y0,l=this._x1,u=this._y1,d,m,p,f,g,y,b,h;if(!a)return this;if(a.length)while(!0){if(g=d>=(p=(i+l)/2))i=p;else l=p;if(y=m>=(f=(s+u)/2))s=f;else u=f;if(t=a,!(a=a[b=y<<1|g]))return this;if(!a.length)break;if(t[b+1&3]||t[b+2&3]||t[b+3&3])o=t,h=b}while(a.data!==e)if(r=a,!(a=a.next))return this;if(n=a.next)delete a.next;if(r)return n?r.next=n:delete r.next,this;if(!t)return this._root=n,this;if(n?t[b]=n:delete t[b],(a=t[0]||t[1]||t[2]||t[3])&&a===(t[3]||t[2]||t[1]||t[0])&&!a.length)if(o)o[h]=a;else this._root=a;return this}function cD(e){for(var t=0,a=e.length;t<a;++t)this.remove(e[t]);return this}function FS(){return this._root}function HS(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function US(e){var t=[],a,o=this._root,r,n,i,s,l;if(o)t.push(new bt(o,this._x0,this._y0,this._x1,this._y1));while(a=t.pop())if(!e(o=a.node,n=a.x0,i=a.y0,s=a.x1,l=a.y1)&&o.length){var u=(n+s)/2,d=(i+l)/2;if(r=o[3])t.push(new bt(r,u,d,s,l));if(r=o[2])t.push(new bt(r,n,d,u,l));if(r=o[1])t.push(new bt(r,u,i,s,d));if(r=o[0])t.push(new bt(r,n,i,u,d))}return this}function GS(e){var t=[],a=[],o;if(this._root)t.push(new bt(this._root,this._x0,this._y0,this._x1,this._y1));while(o=t.pop()){var r=o.node;if(r.length){var n,i=o.x0,s=o.y0,l=o.x1,u=o.y1,d=(i+l)/2,m=(s+u)/2;if(n=r[0])t.push(new bt(n,i,s,d,m));if(n=r[1])t.push(new bt(n,d,s,l,m));if(n=r[2])t.push(new bt(n,i,m,d,u));if(n=r[3])t.push(new bt(n,d,m,l,u))}a.push(o)}while(o=a.pop())e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function dD(e){return e[0]}function qS(e){return arguments.length?(this._x=e,this):this._x}function fD(e){return e[1]}function $S(e){return arguments.length?(this._y=e,this):this._y}function ms(e,t,a){var o=new VS(t==null?dD:t,a==null?fD:a,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function VS(e,t,a,o,r,n){this._x=e,this._y=t,this._x0=a,this._y0=o,this._x1=r,this._y1=n,this._root=void 0}function pD(e){var t={data:e.data},a=t;while(e=e.next)a=a.next={data:e.data};return t}var sa=ms.prototype=VS.prototype;sa.copy=function(){var e=new VS(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,a,o;if(!t)return e;if(!t.length)return e._root=pD(t),e;a=[{source:t,target:e._root=[,,,,]}];while(t=a.pop())for(var r=0;r<4;++r)if(o=t.source[r])if(o.length)a.push({source:o,target:t.target[r]=[,,,,]});else t.target[r]=pD(o);return e};sa.add=MS;sa.addAll=uD;sa.cover=DS;sa.data=PS;sa.extent=OS;sa.find=zS;sa.remove=BS;sa.removeAll=cD;sa.root=FS;sa.size=HS;sa.visit=US;sa.visitAfter=GS;sa.x=qS;sa.y=$S;function nt(e){return function(){return e}}function fo(e){return(e()-0.5)*0.000001}function h$(e){return e.x+e.vx}function g$(e){return e.y+e.vy}function zh(e){var t,a,o,r=1,n=1;if(typeof e!=="function")e=nt(e==null?1:+e);function i(){var u,d=t.length,m,p,f,g,y,b;for(var h=0;h<n;++h){m=ms(t,h$,g$).visitAfter(s);for(u=0;u<d;++u)p=t[u],y=a[p.index],b=y*y,f=p.x+p.vx,g=p.y+p.vy,m.visit(x)}function x(v,w,C,I,L){var{data:k,r:_}=v,T=y+_;if(k){if(k.index>p.index){var O=f-k.x-k.vx,D=g-k.y-k.vy,z=O*O+D*D;if(z<T*T){if(O===0)O=fo(o),z+=O*O;if(D===0)D=fo(o),z+=D*D;z=(T-(z=Math.sqrt(z)))/z*r,p.vx+=(O*=z)*(T=(_*=_)/(b+_)),p.vy+=(D*=z)*T,k.vx-=O*(T=1-T),k.vy-=D*T}}return}return w>f+T||I<f-T||C>g+T||L<g-T}}function s(u){if(u.data)return u.r=a[u.data.index];for(var d=u.r=0;d<4;++d)if(u[d]&&u[d].r>u.r)u.r=u[d].r}function l(){if(!t)return;var u,d=t.length,m;a=Array(d);for(u=0;u<d;++u)m=t[u],a[m.index]=+e(m,u,t)}return i.initialize=function(u,d){t=u,o=d,l()},i.iterations=function(u){return arguments.length?(n=+u,i):n},i.strength=function(u){return arguments.length?(r=+u,i):r},i.radius=function(u){return arguments.length?(e=typeof u==="function"?u:nt(+u),l(),i):e},i}function y$(e){return e.index}function mD(e,t){var a=e.get(t);if(!a)throw Error("node not found: "+t);return a}function Bh(e){var t=y$,a=m,o,r=nt(30),n,i,s,l,u,d=1;if(e==null)e=[];function m(b){return 1/Math.min(s[b.source.index],s[b.target.index])}function p(b){for(var h=0,x=e.length;h<d;++h)for(var v=0,w,C,I,L,k,_,T;v<x;++v)w=e[v],C=w.source,I=w.target,L=I.x+I.vx-C.x-C.vx||fo(u),k=I.y+I.vy-C.y-C.vy||fo(u),_=Math.sqrt(L*L+k*k),_=(_-n[v])/_*b*o[v],L*=_,k*=_,I.vx-=L*(T=l[v]),I.vy-=k*T,C.vx+=L*(T=1-T),C.vy+=k*T}function f(){if(!i)return;var b,h=i.length,x=e.length,v=new Map(i.map((C,I)=>[t(C,I,i),C])),w;for(b=0,s=Array(h);b<x;++b){if(w=e[b],w.index=b,typeof w.source!=="object")w.source=mD(v,w.source);if(typeof w.target!=="object")w.target=mD(v,w.target);s[w.source.index]=(s[w.source.index]||0)+1,s[w.target.index]=(s[w.target.index]||0)+1}for(b=0,l=Array(x);b<x;++b)w=e[b],l[b]=s[w.source.index]/(s[w.source.index]+s[w.target.index]);o=Array(x),g(),n=Array(x),y()}function g(){if(!i)return;for(var b=0,h=e.length;b<h;++b)o[b]=+a(e[b],b,e)}function y(){if(!i)return;for(var b=0,h=e.length;b<h;++b)n[b]=+r(e[b],b,e)}return p.initialize=function(b,h){i=b,u=h,f()},p.links=function(b){return arguments.length?(e=b,f(),p):e},p.id=function(b){return arguments.length?(t=b,p):t},p.iterations=function(b){return arguments.length?(d=+b,p):d},p.strength=function(b){return arguments.length?(a=typeof b==="function"?b:nt(+b),g(),p):a},p.distance=function(b){return arguments.length?(r=typeof b==="function"?b:nt(+b),y(),p):r},p}var yu=0,of=0,af=0,gD=1000,Fh,rf,Hh=0,hs=0,Uh=0,nf=typeof performance==="object"&&performance.now?performance:Date,yD=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function lf(){return hs||(yD(x$),hs=nf.now()+Uh)}function x$(){hs=0}function sf(){this._call=this._time=this._next=null}sf.prototype=xu.prototype={constructor:sf,restart:function(e,t,a){if(typeof e!=="function")throw TypeError("callback is not a function");if(a=(a==null?lf():+a)+(t==null?0:+t),!this._next&&rf!==this){if(rf)rf._next=this;else Fh=this;rf=this}this._call=e,this._time=a,ZS()},stop:function(){if(this._call)this._call=null,this._time=1/0,ZS()}};function xu(e,t,a){var o=new sf;return o.restart(e,t,a),o}function xD(){lf(),++yu;var e=Fh,t;while(e){if((t=hs-e._time)>=0)e._call.call(void 0,t);e=e._next}--yu}function hD(){hs=(Hh=nf.now())+Uh,yu=of=0;try{xD()}finally{yu=0,b$(),hs=0}}function v$(){var e=nf.now(),t=e-Hh;if(t>gD)Uh-=t,Hh=e}function b$(){var e,t=Fh,a,o=1/0;while(t)if(t._call){if(o>t._time)o=t._time;e=t,t=t._next}else a=t._next,t._next=null,t=e?e._next=a:Fh=a;rf=e,ZS(o)}function ZS(e){if(yu)return;if(of)of=clearTimeout(of);var t=e-hs;if(t>24){if(e<1/0)of=setTimeout(hD,e-nf.now()-Uh);if(af)af=clearInterval(af)}else{if(!af)Hh=nf.now(),af=setInterval(v$,gD);yu=1,yD(hD)}}function uf(e,t,a){var o=new sf;return t=t==null?0:+t,o.restart((r)=>{o.stop(),e(r+t)},t,a),o}function KS(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function vD(e){return e.x}function bD(e){return e.y}var w$=10,S$=Math.PI*(3-Math.sqrt(5));function Gh(e){var t,a=1,o=0.001,r=1-Math.pow(o,0.0033333333333333335),n=0,i=0.6,s=new Map,l=xu(m),u=Vr("tick","end"),d=KS();if(e==null)e=[];function m(){if(p(),u.call("tick",t),a<o)l.stop(),u.call("end",t)}function p(y){var b,h=e.length,x;if(y===void 0)y=1;for(var v=0;v<y;++v){a+=(n-a)*r,s.forEach(function(w){w(a)});for(b=0;b<h;++b){if(x=e[b],x.fx==null)x.x+=x.vx*=i;else x.x=x.fx,x.vx=0;if(x.fy==null)x.y+=x.vy*=i;else x.y=x.fy,x.vy=0}}return t}function f(){for(var y=0,b=e.length,h;y<b;++y){if(h=e[y],h.index=y,h.fx!=null)h.x=h.fx;if(h.fy!=null)h.y=h.fy;if(isNaN(h.x)||isNaN(h.y)){var x=w$*Math.sqrt(0.5+y),v=y*S$;h.x=x*Math.cos(v),h.y=x*Math.sin(v)}if(isNaN(h.vx)||isNaN(h.vy))h.vx=h.vy=0}}function g(y){if(y.initialize)y.initialize(e,d);return y}return f(),t={tick:p,restart:function(){return l.restart(m),t},stop:function(){return l.stop(),t},nodes:function(y){return arguments.length?(e=y,f(),s.forEach(g),t):e},alpha:function(y){return arguments.length?(a=+y,t):a},alphaMin:function(y){return arguments.length?(o=+y,t):o},alphaDecay:function(y){return arguments.length?(r=+y,t):+r},alphaTarget:function(y){return arguments.length?(n=+y,t):n},velocityDecay:function(y){return arguments.length?(i=1-y,t):1-i},randomSource:function(y){return arguments.length?(d=y,s.forEach(g),t):d},force:function(y,b){return arguments.length>1?(b==null?s.delete(y):s.set(y,g(b)),t):s.get(y)},find:function(y,b,h){var x=0,v=e.length,w,C,I,L,k;if(h==null)h=1/0;else h*=h;for(x=0;x<v;++x)if(L=e[x],w=y-L.x,C=b-L.y,I=w*w+C*C,I<h)k=L,h=I;return k},on:function(y,b){return arguments.length>1?(u.on(y,b),t):u.on(y)}}}function qh(){var e,t,a,o,r=nt(-30),n,i=1,s=1/0,l=0.81;function u(f){var g,y=e.length,b=ms(e,vD,bD).visitAfter(m);for(o=f,g=0;g<y;++g)t=e[g],b.visit(p)}function d(){if(!e)return;var f,g=e.length,y;n=Array(g);for(f=0;f<g;++f)y=e[f],n[y.index]=+r(y,f,e)}function m(f){var g=0,y,b,h=0,x,v,w;if(f.length){for(x=v=w=0;w<4;++w)if((y=f[w])&&(b=Math.abs(y.value)))g+=y.value,h+=b,x+=b*y.x,v+=b*y.y;f.x=x/h,f.y=v/h}else{y=f,y.x=y.data.x,y.y=y.data.y;do g+=n[y.data.index];while(y=y.next)}f.value=g}function p(f,g,y,b){if(!f.value)return!0;var h=f.x-t.x,x=f.y-t.y,v=b-g,w=h*h+x*x;if(v*v/l<w){if(w<s){if(h===0)h=fo(a),w+=h*h;if(x===0)x=fo(a),w+=x*x;if(w<i)w=Math.sqrt(i*w);t.vx+=h*f.value*o/w,t.vy+=x*f.value*o/w}return!0}else if(f.length||w>=s)return;if(f.data!==t||f.next){if(h===0)h=fo(a),w+=h*h;if(x===0)x=fo(a),w+=x*x;if(w<i)w=Math.sqrt(i*w)}do if(f.data!==t)v=n[f.data.index]*o/w,t.vx+=h*v,t.vy+=x*v;while(f=f.next)}return u.initialize=function(f,g){e=f,a=g,d()},u.strength=function(f){return arguments.length?(r=typeof f==="function"?f:nt(+f),d(),u):r},u.distanceMin=function(f){return arguments.length?(i=f*f,u):Math.sqrt(i)},u.distanceMax=function(f){return arguments.length?(s=f*f,u):Math.sqrt(s)},u.theta=function(f){return arguments.length?(l=f*f,u):Math.sqrt(l)},u}function $h(e){var t=nt(0.1),a,o,r;if(typeof e!=="function")e=nt(e==null?0:+e);function n(s){for(var l=0,u=a.length,d;l<u;++l)d=a[l],d.vx+=(r[l]-d.x)*o[l]*s}function i(){if(!a)return;var s,l=a.length;o=Array(l),r=Array(l);for(s=0;s<l;++s)o[s]=isNaN(r[s]=+e(a[s],s,a))?0:+t(a[s],s,a)}return n.initialize=function(s){a=s,i()},n.strength=function(s){return arguments.length?(t=typeof s==="function"?s:nt(+s),i(),n):t},n.x=function(s){return arguments.length?(e=typeof s==="function"?s:nt(+s),i(),n):e},n}function Vh(e){var t=nt(0.1),a,o,r;if(typeof e!=="function")e=nt(e==null?0:+e);function n(s){for(var l=0,u=a.length,d;l<u;++l)d=a[l],d.vy+=(r[l]-d.y)*o[l]*s}function i(){if(!a)return;var s,l=a.length;o=Array(l),r=Array(l);for(s=0;s<l;++s)o[s]=isNaN(r[s]=+e(a[s],s,a))?0:+t(a[s],s,a)}return n.initialize=function(s){a=s,i()},n.strength=function(s){return arguments.length?(t=typeof s==="function"?s:nt(+s),i(),n):t},n.y=function(s){return arguments.length?(e=typeof s==="function"?s:nt(+s),i(),n):e},n}function Va(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}var XS=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,jS=new RegExp(XS.source,"g");function L$(e){return function(){return e}}function C$(e){return function(t){return e(t)+""}}function Zh(e,t){var a=XS.lastIndex=jS.lastIndex=0,o,r,n,i=-1,s=[],l=[];e=e+"",t=t+"";while((o=XS.exec(e))&&(r=jS.exec(t))){if((n=r.index)>a)if(n=t.slice(a,n),s[i])s[i]+=n;else s[++i]=n;if((o=o[0])===(r=r[0]))if(s[i])s[i]+=r;else s[++i]=r;else s[++i]=null,l.push({i,x:Va(o,r)});a=jS.lastIndex}if(a<t.length)if(n=t.slice(a),s[i])s[i]+=n;else s[++i]=n;return s.length<2?l[0]?C$(l[0].x):L$(t):(t=l.length,function(u){for(var d=0,m;d<t;++d)s[(m=l[d]).i]=m.x(u);return s.join("")})}var wD=180/Math.PI,Kh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jh(e,t,a,o,r,n){var i,s,l;if(i=Math.sqrt(e*e+t*t))e/=i,t/=i;if(l=e*a+t*o)a-=e*l,o-=t*l;if(s=Math.sqrt(a*a+o*o))a/=s,o/=s,l/=s;if(e*o<t*a)e=-e,t=-t,l=-l,i=-i;return{translateX:r,translateY:n,rotate:Math.atan2(t,e)*wD,skewX:Math.atan(l)*wD,scaleX:i,scaleY:s}}var Xh;function SD(e){let t=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Kh:jh(t.a,t.b,t.c,t.d,t.e,t.f)}function LD(e){if(e==null)return Kh;if(!Xh)Xh=document.createElementNS("http://www.w3.org/2000/svg","g");if(Xh.setAttribute("transform",e),!(e=Xh.transform.baseVal.consolidate()))return Kh;return e=e.matrix,jh(e.a,e.b,e.c,e.d,e.e,e.f)}function CD(e,t,a,o){function r(u){return u.length?u.pop()+" ":""}function n(u,d,m,p,f,g){if(u!==m||d!==p){var y=f.push("translate(",null,t,null,a);g.push({i:y-4,x:Va(u,m)},{i:y-2,x:Va(d,p)})}else if(m||p)f.push("translate("+m+t+p+a)}function i(u,d,m,p){if(u!==d){if(u-d>180)d+=360;else if(d-u>180)u+=360;p.push({i:m.push(r(m)+"rotate(",null,o)-2,x:Va(u,d)})}else if(d)m.push(r(m)+"rotate("+d+o)}function s(u,d,m,p){if(u!==d)p.push({i:m.push(r(m)+"skewX(",null,o)-2,x:Va(u,d)});else if(d)m.push(r(m)+"skewX("+d+o)}function l(u,d,m,p,f,g){if(u!==m||d!==p){var y=f.push(r(f)+"scale(",null,",",null,")");g.push({i:y-4,x:Va(u,m)},{i:y-2,x:Va(d,p)})}else if(m!==1||p!==1)f.push(r(f)+"scale("+m+","+p+")")}return function(u,d){var m=[],p=[];return u=e(u),d=e(d),n(u.translateX,u.translateY,d.translateX,d.translateY,m,p),i(u.rotate,d.rotate,m,p),s(u.skewX,d.skewX,m,p),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,m,p),u=d=null,function(f){var g=-1,y=p.length,b;while(++g<y)m[(b=p[g]).i]=b.x(f);return m.join("")}}}var YS=CD(SD,"px, ","px)","deg)"),WS=CD(LD,", ",")",")");var k$=0.000000000001;function kD(e){return((e=Math.exp(e))+1/e)/2}function I$(e){return((e=Math.exp(e))-1/e)/2}function R$(e){return((e=Math.exp(2*e))-1)/(e+1)}var QS=function e(t,a,o){function r(n,i){var s=n[0],l=n[1],u=n[2],d=i[0],m=i[1],p=i[2],f=d-s,g=m-l,y=f*f+g*g,b,h;if(y<k$)h=Math.log(p/u)/t,b=function(L){return[s+L*f,l+L*g,u*Math.exp(t*L*h)]};else{var x=Math.sqrt(y),v=(p*p-u*u+o*y)/(2*u*a*x),w=(p*p-u*u-o*y)/(2*p*a*x),C=Math.log(Math.sqrt(v*v+1)-v),I=Math.log(Math.sqrt(w*w+1)-w);h=(I-C)/t,b=function(L){var k=L*h,_=kD(C),T=u/(a*x)*(_*R$(t*k+C)-I$(C));return[s+T*f,l+T*g,u*_/kD(t*k+C)]}}return b.duration=h*1000*t/Math.SQRT2,b}return r.rho=function(n){var i=Math.max(0.001,+n),s=i*i,l=s*s;return e(i,s,l)},r}(Math.SQRT2,2,4);function cf(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function JS(e,t){var a=Object.create(e.prototype);for(var o in t)a[o]=t[o];return a}function pf(){}var df=0.7,Qh=1/df,vu="\\\\s*([+-]?\\\\d+)\\\\s*",ff="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*",sr="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*",_$=/^#([0-9a-f]{3,8})$/,T$=new RegExp(\`^rgb\\\\(\${vu},\${vu},\${vu}\\\\)$\`),E$=new RegExp(\`^rgb\\\\(\${sr},\${sr},\${sr}\\\\)$\`),N$=new RegExp(\`^rgba\\\\(\${vu},\${vu},\${vu},\${ff}\\\\)$\`),A$=new RegExp(\`^rgba\\\\(\${sr},\${sr},\${sr},\${ff}\\\\)$\`),M$=new RegExp(\`^hsl\\\\(\${ff},\${sr},\${sr}\\\\)$\`),D$=new RegExp(\`^hsla\\\\(\${ff},\${sr},\${sr},\${ff}\\\\)$\`),ID={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cf(pf,oi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:RD,formatHex:RD,formatHex8:P$,formatHsl:O$,formatRgb:_D,toString:_D});function RD(){return this.rgb().formatHex()}function P$(){return this.rgb().formatHex8()}function O$(){return DD(this).formatHsl()}function _D(){return this.rgb().formatRgb()}function oi(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=_$.exec(e))?(a=t[1].length,t=parseInt(t[1],16),a===6?TD(t):a===3?new Ca(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):a===8?Yh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):a===4?Yh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=T$.exec(e))?new Ca(t[1],t[2],t[3],1):(t=E$.exec(e))?new Ca(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=N$.exec(e))?Yh(t[1],t[2],t[3],t[4]):(t=A$.exec(e))?Yh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=M$.exec(e))?AD(t[1],t[2]/100,t[3]/100,1):(t=D$.exec(e))?AD(t[1],t[2]/100,t[3]/100,t[4]):ID.hasOwnProperty(e)?TD(ID[e]):e==="transparent"?new Ca(NaN,NaN,NaN,0):null}function TD(e){return new Ca(e>>16&255,e>>8&255,e&255,1)}function Yh(e,t,a,o){if(o<=0)e=t=a=NaN;return new Ca(e,t,a,o)}function z$(e){if(!(e instanceof pf))e=oi(e);if(!e)return new Ca;return e=e.rgb(),new Ca(e.r,e.g,e.b,e.opacity)}function bu(e,t,a,o){return arguments.length===1?z$(e):new Ca(e,t,a,o==null?1:o)}function Ca(e,t,a,o){this.r=+e,this.g=+t,this.b=+a,this.opacity=+o}cf(Ca,bu,JS(pf,{brighter(e){return e=e==null?Qh:Math.pow(Qh,e),new Ca(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?df:Math.pow(df,e),new Ca(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ca(ys(this.r),ys(this.g),ys(this.b),Jh(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:ED,formatHex:ED,formatHex8:B$,formatRgb:ND,toString:ND}));function ED(){return\`#\${gs(this.r)}\${gs(this.g)}\${gs(this.b)}\`}function B$(){return\`#\${gs(this.r)}\${gs(this.g)}\${gs(this.b)}\${gs((isNaN(this.opacity)?1:this.opacity)*255)}\`}function ND(){let e=Jh(this.opacity);return\`\${e===1?"rgb(":"rgba("}\${ys(this.r)}, \${ys(this.g)}, \${ys(this.b)}\${e===1?")":\`, \${e})\`}\`}function Jh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ys(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gs(e){return e=ys(e),(e<16?"0":"")+e.toString(16)}function AD(e,t,a,o){if(o<=0)e=t=a=NaN;else if(a<=0||a>=1)e=t=NaN;else if(t<=0)e=NaN;return new Do(e,t,a,o)}function DD(e){if(e instanceof Do)return new Do(e.h,e.s,e.l,e.opacity);if(!(e instanceof pf))e=oi(e);if(!e)return new Do;if(e instanceof Do)return e;e=e.rgb();var t=e.r/255,a=e.g/255,o=e.b/255,r=Math.min(t,a,o),n=Math.max(t,a,o),i=NaN,s=n-r,l=(n+r)/2;if(s){if(t===n)i=(a-o)/s+(a<o)*6;else if(a===n)i=(o-t)/s+2;else i=(t-a)/s+4;s/=l<0.5?n+r:2-n-r,i*=60}else s=l>0&&l<1?0:i;return new Do(i,s,l,e.opacity)}function PD(e,t,a,o){return arguments.length===1?DD(e):new Do(e,t,a,o==null?1:o)}function Do(e,t,a,o){this.h=+e,this.s=+t,this.l=+a,this.opacity=+o}cf(Do,PD,JS(pf,{brighter(e){return e=e==null?Qh:Math.pow(Qh,e),new Do(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?df:Math.pow(df,e),new Do(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,o=a+(a<0.5?a:1-a)*t,r=2*a-o;return new Ca(eL(e>=240?e-240:e+120,r,o),eL(e,r,o),eL(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new Do(MD(this.h),Wh(this.s),Wh(this.l),Jh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let e=Jh(this.opacity);return\`\${e===1?"hsl(":"hsla("}\${MD(this.h)}, \${Wh(this.s)*100}%, \${Wh(this.l)*100}%\${e===1?")":\`, \${e})\`}\`}}));function MD(e){return e=(e||0)%360,e<0?e+360:e}function Wh(e){return Math.max(0,Math.min(1,e||0))}function eL(e,t,a){return(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)*255}function tL(e,t,a,o,r){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*a+(1+3*e+3*n-3*i)*o+i*r)/6}function aL(e){var t=e.length-1;return function(a){var o=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),r=e[o],n=e[o+1],i=o>0?e[o-1]:2*r-n,s=o<t-1?e[o+2]:2*n-r;return tL((a-o/t)*t,i,r,n,s)}}function oL(e){var t=e.length;return function(a){var o=Math.floor(((a%=1)<0?++a:a)*t),r=e[(o+t-1)%t],n=e[o%t],i=e[(o+1)%t],s=e[(o+2)%t];return tL((a-o/t)*t,r,n,i,s)}}var rL=(e)=>()=>e;function F$(e,t){return function(a){return e+a*t}}function H$(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(o){return Math.pow(e+o*t,a)}}function OD(e){return(e=+e)===1?eg:function(t,a){return a-t?H$(t,a,e):rL(isNaN(t)?a:t)}}function eg(e,t){var a=t-e;return a?F$(e,a):rL(isNaN(e)?t:e)}var tg=function e(t){var a=OD(t);function o(r,n){var i=a((r=bu(r)).r,(n=bu(n)).r),s=a(r.g,n.g),l=a(r.b,n.b),u=eg(r.opacity,n.opacity);return function(d){return r.r=i(d),r.g=s(d),r.b=l(d),r.opacity=u(d),r+""}}return o.gamma=e,o}(1);function zD(e){return function(t){var a=t.length,o=Array(a),r=Array(a),n=Array(a),i,s;for(i=0;i<a;++i)s=bu(t[i]),o[i]=s.r||0,r[i]=s.g||0,n[i]=s.b||0;return o=e(o),r=e(r),n=e(n),s.opacity=1,function(l){return s.r=o(l),s.g=r(l),s.b=n(l),s+""}}}var U$=zD(aL),G$=zD(oL);var q$=Vr("start","end","cancel","interrupt"),$$=[],HD=0,BD=1,og=2,ag=3,FD=4,rg=5,mf=6;function jr(e,t,a,o,r,n){var i=e.__transition;if(!i)e.__transition={};else if(a in i)return;V$(e,a,{name:t,index:o,group:r,on:q$,tween:$$,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:HD})}function hf(e,t){var a=wt(e,t);if(a.state>HD)throw Error("too late; already scheduled");return a}function qt(e,t){var a=wt(e,t);if(a.state>ag)throw Error("too late; already running");return a}function wt(e,t){var a=e.__transition;if(!a||!(a=a[t]))throw Error("transition not found");return a}function V$(e,t,a){var o=e.__transition,r;o[t]=a,a.timer=xu(n,0,a.time);function n(u){if(a.state=BD,a.timer.restart(i,a.delay,a.time),a.delay<=u)i(u-a.delay)}function i(u){var d,m,p,f;if(a.state!==BD)return l();for(d in o){if(f=o[d],f.name!==a.name)continue;if(f.state===ag)return uf(i);if(f.state===FD)f.state=mf,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[d];else if(+d<t)f.state=mf,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[d]}if(uf(function(){if(a.state===ag)a.state=FD,a.timer.restart(s,a.delay,a.time),s(u)}),a.state=og,a.on.call("start",e,e.__data__,a.index,a.group),a.state!==og)return;a.state=ag,r=Array(p=a.tween.length);for(d=0,m=-1;d<p;++d)if(f=a.tween[d].value.call(e,e.__data__,a.index,a.group))r[++m]=f;r.length=m+1}function s(u){var d=u<a.duration?a.ease.call(null,u/a.duration):(a.timer.restart(l),a.state=rg,1),m=-1,p=r.length;while(++m<p)r[m].call(e,d);if(a.state===rg)a.on.call("end",e,e.__data__,a.index,a.group),l()}function l(){a.state=mf,a.timer.stop(),delete o[t];for(var u in o)return;delete e.__transition}}function ri(e,t){var a=e.__transition,o,r,n=!0,i;if(!a)return;t=t==null?null:t+"";for(i in a){if((o=a[i]).name!==t){n=!1;continue}r=o.state>og&&o.state<rg,o.state=mf,o.timer.stop(),o.on.call(r?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete a[i]}if(n)delete e.__transition}function nL(e){return this.each(function(){ri(this,e)})}function Z$(e,t){var a,o;return function(){var r=qt(this,e),n=r.tween;if(n!==a){o=a=n;for(var i=0,s=o.length;i<s;++i)if(o[i].name===t){o=o.slice(),o.splice(i,1);break}}r.tween=o}}function K$(e,t,a){var o,r;if(typeof a!=="function")throw Error();return function(){var n=qt(this,e),i=n.tween;if(i!==o){r=(o=i).slice();for(var s={name:t,value:a},l=0,u=r.length;l<u;++l)if(r[l].name===t){r[l]=s;break}if(l===u)r.push(s)}n.tween=r}}function iL(e,t){var a=this._id;if(e+="",arguments.length<2){var o=wt(this.node(),a).tween;for(var r=0,n=o.length,i;r<n;++r)if((i=o[r]).name===e)return i.value;return null}return this.each((t==null?Z$:K$)(a,e,t))}function wu(e,t,a){var o=e._id;return e.each(function(){var r=qt(this,o);(r.value||(r.value={}))[t]=a.apply(this,arguments)}),function(r){return wt(r,o).value[t]}}function gf(e,t){var a;return(typeof t==="number"?Va:t instanceof oi?tg:(a=oi(t))?(t=a,tg):Zh)(e,t)}function j$(e){return function(){this.removeAttribute(e)}}function X$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Y$(e,t,a){var o,r=a+"",n;return function(){var i=this.getAttribute(e);return i===r?null:i===o?n:n=t(o=i,a)}}function W$(e,t,a){var o,r=a+"",n;return function(){var i=this.getAttributeNS(e.space,e.local);return i===r?null:i===o?n:n=t(o=i,a)}}function Q$(e,t,a){var o,r,n;return function(){var i,s=a(this),l;if(s==null)return void this.removeAttribute(e);return i=this.getAttribute(e),l=s+"",i===l?null:i===o&&l===r?n:(r=l,n=t(o=i,s))}}function J$(e,t,a){var o,r,n;return function(){var i,s=a(this),l;if(s==null)return void this.removeAttributeNS(e.space,e.local);return i=this.getAttributeNS(e.space,e.local),l=s+"",i===l?null:i===o&&l===r?n:(r=l,n=t(o=i,s))}}function sL(e,t){var a=ir(e),o=a==="transform"?WS:gf;return this.attrTween(e,typeof t==="function"?(a.local?J$:Q$)(a,o,wu(this,"attr."+e,t)):t==null?(a.local?X$:j$)(a):(a.local?W$:Y$)(a,o,t))}function eV(e,t){return function(a){this.setAttribute(e,t.call(this,a))}}function tV(e,t){return function(a){this.setAttributeNS(e.space,e.local,t.call(this,a))}}function aV(e,t){var a,o;function r(){var n=t.apply(this,arguments);if(n!==o)a=(o=n)&&tV(e,n);return a}return r._value=t,r}function oV(e,t){var a,o;function r(){var n=t.apply(this,arguments);if(n!==o)a=(o=n)&&eV(e,n);return a}return r._value=t,r}function lL(e,t){var a="attr."+e;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!=="function")throw Error();var o=ir(e);return this.tween(a,(o.local?aV:oV)(o,t))}function rV(e,t){return function(){hf(this,e).delay=+t.apply(this,arguments)}}function nV(e,t){return t=+t,function(){hf(this,e).delay=t}}function uL(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?rV:nV)(t,e)):wt(this.node(),t).delay}function iV(e,t){return function(){qt(this,e).duration=+t.apply(this,arguments)}}function sV(e,t){return t=+t,function(){qt(this,e).duration=t}}function cL(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?iV:sV)(t,e)):wt(this.node(),t).duration}function lV(e,t){if(typeof t!=="function")throw Error();return function(){qt(this,e).ease=t}}function dL(e){var t=this._id;return arguments.length?this.each(lV(t,e)):wt(this.node(),t).ease}function uV(e,t){return function(){var a=t.apply(this,arguments);if(typeof a!=="function")throw Error();qt(this,e).ease=a}}function fL(e){if(typeof e!=="function")throw Error();return this.each(uV(this._id,e))}function pL(e){if(typeof e!=="function")e=mu(e);for(var t=this._groups,a=t.length,o=Array(a),r=0;r<a;++r)for(var n=t[r],i=n.length,s=o[r]=[],l,u=0;u<i;++u)if((l=n[u])&&e.call(l,l.__data__,u,n))s.push(l);return new la(o,this._parents,this._name,this._id)}function mL(e){if(e._id!==this._id)throw Error();for(var t=this._groups,a=e._groups,o=t.length,r=a.length,n=Math.min(o,r),i=Array(o),s=0;s<n;++s)for(var l=t[s],u=a[s],d=l.length,m=i[s]=Array(d),p,f=0;f<d;++f)if(p=l[f]||u[f])m[f]=p;for(;s<o;++s)i[s]=t[s];return new la(i,this._parents,this._name,this._id)}function cV(e){return(e+"").trim().split(/^|\\s+/).every(function(t){var a=t.indexOf(".");if(a>=0)t=t.slice(0,a);return!t||t==="start"})}function dV(e,t,a){var o,r,n=cV(t)?hf:qt;return function(){var i=n(this,e),s=i.on;if(s!==o)(r=(o=s).copy()).on(t,a);i.on=r}}function hL(e,t){var a=this._id;return arguments.length<2?wt(this.node(),a).on.on(e):this.each(dV(a,e,t))}function fV(e){return function(){var t=this.parentNode;for(var a in this.__transition)if(+a!==e)return;if(t)t.removeChild(this)}}function gL(){return this.on("end.remove",fV(this._id))}function yL(e){var t=this._name,a=this._id;if(typeof e!=="function")e=ti(e);for(var o=this._groups,r=o.length,n=Array(r),i=0;i<r;++i)for(var s=o[i],l=s.length,u=n[i]=Array(l),d,m,p=0;p<l;++p)if((d=s[p])&&(m=e.call(d,d.__data__,p,s))){if("__data__"in d)m.__data__=d.__data__;u[p]=m,jr(u[p],t,a,p,u,wt(d,a))}return new la(n,this._parents,t,a)}function xL(e){var t=this._name,a=this._id;if(typeof e!=="function")e=hu(e);for(var o=this._groups,r=o.length,n=[],i=[],s=0;s<r;++s)for(var l=o[s],u=l.length,d,m=0;m<u;++m)if(d=l[m]){for(var p=e.call(d,d.__data__,m,l),f,g=wt(d,a),y=0,b=p.length;y<b;++y)if(f=p[y])jr(f,t,a,y,p,g);n.push(p),i.push(d)}return new la(n,i,t,a)}var pV=Zr.prototype.constructor;function vL(){return new pV(this._groups,this._parents)}function mV(e,t){var a,o,r;return function(){var n=ai(this,e),i=(this.style.removeProperty(e),ai(this,e));return n===i?null:n===a&&i===o?r:r=t(a=n,o=i)}}function UD(e){return function(){this.style.removeProperty(e)}}function hV(e,t,a){var o,r=a+"",n;return function(){var i=ai(this,e);return i===r?null:i===o?n:n=t(o=i,a)}}function gV(e,t,a){var o,r,n;return function(){var i=ai(this,e),s=a(this),l=s+"";if(s==null)l=s=(this.style.removeProperty(e),ai(this,e));return i===l?null:i===o&&l===r?n:(r=l,n=t(o=i,s))}}function yV(e,t){var a,o,r,n="style."+t,i="end."+n,s;return function(){var l=qt(this,e),u=l.on,d=l.value[n]==null?s||(s=UD(t)):void 0;if(u!==a||r!==d)(o=(a=u).copy()).on(i,r=d);l.on=o}}function bL(e,t,a){var o=(e+="")==="transform"?YS:gf;return t==null?this.styleTween(e,mV(e,o)).on("end.style."+e,UD(e)):typeof t==="function"?this.styleTween(e,gV(e,o,wu(this,"style."+e,t))).each(yV(this._id,e)):this.styleTween(e,hV(e,o,t),a).on("end.style."+e,null)}function xV(e,t,a){return function(o){this.style.setProperty(e,t.call(this,o),a)}}function vV(e,t,a){var o,r;function n(){var i=t.apply(this,arguments);if(i!==r)o=(r=i)&&xV(e,i,a);return o}return n._value=t,n}function wL(e,t,a){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!=="function")throw Error();return this.tween(o,vV(e,t,a==null?"":a))}function bV(e){return function(){this.textContent=e}}function wV(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function SL(e){return this.tween("text",typeof e==="function"?wV(wu(this,"text",e)):bV(e==null?"":e+""))}function SV(e){return function(t){this.textContent=e.call(this,t)}}function LV(e){var t,a;function o(){var r=e.apply(this,arguments);if(r!==a)t=(a=r)&&SV(r);return t}return o._value=e,o}function LL(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=="function")throw Error();return this.tween(t,LV(e))}function CL(){var e=this._name,t=this._id,a=ng();for(var o=this._groups,r=o.length,n=0;n<r;++n)for(var i=o[n],s=i.length,l,u=0;u<s;++u)if(l=i[u]){var d=wt(l,t);jr(l,e,a,u,i,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new la(o,this._parents,e,a)}function kL(){var e,t,a=this,o=a._id,r=a.size();return new Promise(function(n,i){var s={value:i},l={value:function(){if(--r===0)n()}};if(a.each(function(){var u=qt(this,o),d=u.on;if(d!==e)t=(e=d).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l);u.on=t}),r===0)n()})}var CV=0;function la(e,t,a,o){this._groups=e,this._parents=t,this._name=a,this._id=o}function GD(e){return Zr().transition(e)}function ng(){return++CV}var Xr=Zr.prototype;la.prototype=GD.prototype={constructor:la,select:yL,selectAll:xL,selectChild:Xr.selectChild,selectChildren:Xr.selectChildren,filter:pL,merge:mL,selection:vL,transition:CL,call:Xr.call,nodes:Xr.nodes,node:Xr.node,size:Xr.size,empty:Xr.empty,each:Xr.each,on:hL,attr:sL,attrTween:lL,style:bL,styleTween:wL,text:SL,textTween:LL,remove:gL,tween:iL,delay:uL,duration:cL,ease:dL,easeVarying:fL,end:kL,[Symbol.iterator]:Xr[Symbol.iterator]};function ig(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var kV={time:null,delay:0,duration:250,ease:ig};function IV(e,t){var a;while(!(a=e.__transition)||!(a=a[t]))if(!(e=e.parentNode))throw Error(\`transition \${t} not found\`);return a}function IL(e){var t,a;if(e instanceof la)t=e._id,e=e._name;else t=ng(),(a=kV).time=lf(),e=e==null?null:e+"";for(var o=this._groups,r=o.length,n=0;n<r;++n)for(var i=o[n],s=i.length,l,u=0;u<s;++u)if(l=i[u])jr(l,e,t,u,i,a||IV(l,t));return new la(o,this._parents,e,t)}Zr.prototype.interrupt=nL;Zr.prototype.transition=IL;var yf=(e)=>()=>e;function RL(e,{sourceEvent:t,target:a,transform:o,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function Po(e,t,a){this.k=e,this.x=t,this.y=a}Po.prototype={constructor:Po,scale:function(e){return e===1?this:new Po(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Po(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ni=new Po(1,0,0);_L.prototype=Po.prototype;function _L(e){while(!e.__zoom)if(!(e=e.parentNode))return ni;return e.__zoom}function sg(e){e.stopImmediatePropagation()}function xs(e){e.preventDefault(),e.stopImmediatePropagation()}function RV(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function _V(){var e=this;if(e instanceof SVGElement){if(e=e.ownerSVGElement||e,e.hasAttribute("viewBox"))return e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]];return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}return[[0,0],[e.clientWidth,e.clientHeight]]}function qD(){return this.__zoom||ni}function TV(e){return-e.deltaY*(e.deltaMode===1?0.05:e.deltaMode?1:0.002)*(e.ctrlKey?10:1)}function EV(){return navigator.maxTouchPoints||"ontouchstart"in this}function NV(e,t,a){var o=e.invertX(t[0][0])-a[0][0],r=e.invertX(t[1][0])-a[1][0],n=e.invertY(t[0][1])-a[0][1],i=e.invertY(t[1][1])-a[1][1];return e.translate(r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r),i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i))}function lg(){var e=RV,t=_V,a=NV,o=TV,r=EV,n=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],s=250,l=QS,u=Vr("start","zoom","end"),d,m,p,f=500,g=150,y=0,b=10;function h(R){R.property("__zoom",qD).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",T).filter(r).on("touchstart.zoom",O).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}h.transform=function(R,A,E,B){var X=R.selection?R.selection():R;if(X.property("__zoom",qD),R!==X)C(R,A,E,B);else X.interrupt().each(function(){I(this,arguments).event(B).start().zoom(null,typeof A==="function"?A.apply(this,arguments):A).end()})},h.scaleBy=function(R,A,E,B){h.scaleTo(R,function(){var X=this.__zoom.k,ee=typeof A==="function"?A.apply(this,arguments):A;return X*ee},E,B)},h.scaleTo=function(R,A,E,B){h.transform(R,function(){var X=t.apply(this,arguments),ee=this.__zoom,F=E==null?w(X):typeof E==="function"?E.apply(this,arguments):E,ce=ee.invert(F),N=typeof A==="function"?A.apply(this,arguments):A;return a(v(x(ee,N),F,ce),X,i)},E,B)},h.translateBy=function(R,A,E,B){h.transform(R,function(){return a(this.__zoom.translate(typeof A==="function"?A.apply(this,arguments):A,typeof E==="function"?E.apply(this,arguments):E),t.apply(this,arguments),i)},null,B)},h.translateTo=function(R,A,E,B,X){h.transform(R,function(){var ee=t.apply(this,arguments),F=this.__zoom,ce=B==null?w(ee):typeof B==="function"?B.apply(this,arguments):B;return a(ni.translate(ce[0],ce[1]).scale(F.k).translate(typeof A==="function"?-A.apply(this,arguments):-A,typeof E==="function"?-E.apply(this,arguments):-E),ee,i)},B,X)};function x(R,A){return A=Math.max(n[0],Math.min(n[1],A)),A===R.k?R:new Po(A,R.x,R.y)}function v(R,A,E){var B=A[0]-E[0]*R.k,X=A[1]-E[1]*R.k;return B===R.x&&X===R.y?R:new Po(R.k,B,X)}function w(R){return[(+R[0][0]+ +R[1][0])/2,(+R[0][1]+ +R[1][1])/2]}function C(R,A,E,B){R.on("start.zoom",function(){I(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(B).end()}).tween("zoom",function(){var X=this,ee=arguments,F=I(X,ee).event(B),ce=t.apply(X,ee),N=E==null?w(ce):typeof E==="function"?E.apply(X,ee):E,Z=Math.max(ce[1][0]-ce[0][0],ce[1][1]-ce[0][1]),Q=X.__zoom,H=typeof A==="function"?A.apply(X,ee):A,J=l(Q.invert(N).concat(Z/Q.k),H.invert(N).concat(Z/H.k));return function(oe){if(oe===1)oe=H;else{var fe=J(oe),ne=Z/fe[2];oe=new Po(ne,N[0]-fe[0]*ne,N[1]-fe[1]*ne)}F.zoom(null,oe)}})}function I(R,A,E){return!E&&R.__zooming||new L(R,A)}function L(R,A){this.that=R,this.args=A,this.active=0,this.sourceEvent=null,this.extent=t.apply(R,A),this.taps=0}L.prototype={event:function(R){if(R)this.sourceEvent=R;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(R,A){if(this.mouse&&R!=="mouse")this.mouse[1]=A.invert(this.mouse[0]);if(this.touch0&&R!=="touch")this.touch0[1]=A.invert(this.touch0[0]);if(this.touch1&&R!=="touch")this.touch1[1]=A.invert(this.touch1[0]);return this.that.__zoom=A,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(R){var A=ht(this.that).datum();u.call(R,this.that,new RL(R,{sourceEvent:this.sourceEvent,target:h,type:R,transform:this.that.__zoom,dispatch:u}),A)}};function k(R,...A){if(!e.apply(this,arguments))return;var E=I(this,A).event(R),B=this.__zoom,X=Math.max(n[0],Math.min(n[1],B.k*Math.pow(2,o.apply(this,arguments)))),ee=ia(R);if(E.wheel){if(E.mouse[0][0]!==ee[0]||E.mouse[0][1]!==ee[1])E.mouse[1]=B.invert(E.mouse[0]=ee);clearTimeout(E.wheel)}else if(B.k===X)return;else E.mouse=[ee,B.invert(ee)],ri(this),E.start();xs(R),E.wheel=setTimeout(F,g),E.zoom("mouse",a(v(x(B,X),E.mouse[0],E.mouse[1]),E.extent,i));function F(){E.wheel=null,E.end()}}function _(R,...A){if(p||!e.apply(this,arguments))return;var E=R.currentTarget,B=I(this,A,!0).event(R),X=ht(R.view).on("mousemove.zoom",N,!0).on("mouseup.zoom",Z,!0),ee=ia(R,E),F=R.clientX,ce=R.clientY;gu(R.view),sg(R),B.mouse=[ee,this.__zoom.invert(ee)],ri(this),B.start();function N(Q){if(xs(Q),!B.moved){var H=Q.clientX-F,J=Q.clientY-ce;B.moved=H*H+J*J>y}B.event(Q).zoom("mouse",a(v(B.that.__zoom,B.mouse[0]=ia(Q,E),B.mouse[1]),B.extent,i))}function Z(Q){X.on("mousemove.zoom mouseup.zoom",null),Jd(Q.view,B.moved),xs(Q),B.event(Q).end()}}function T(R,...A){if(!e.apply(this,arguments))return;var E=this.__zoom,B=ia(R.changedTouches?R.changedTouches[0]:R,this),X=E.invert(B),ee=E.k*(R.shiftKey?0.5:2),F=a(v(x(E,ee),B,X),t.apply(this,A),i);if(xs(R),s>0)ht(this).transition().duration(s).call(C,F,B,R);else ht(this).call(h.transform,F,B,R)}function O(R,...A){if(!e.apply(this,arguments))return;var E=R.touches,B=E.length,X=I(this,A,R.changedTouches.length===B).event(R),ee,F,ce,N;sg(R);for(F=0;F<B;++F)if(ce=E[F],N=ia(ce,this),N=[N,this.__zoom.invert(N),ce.identifier],!X.touch0)X.touch0=N,ee=!0,X.taps=1+!!d;else if(!X.touch1&&X.touch0[2]!==N[2])X.touch1=N,X.taps=0;if(d)d=clearTimeout(d);if(ee){if(X.taps<2)m=N[0],d=setTimeout(function(){d=null},f);ri(this),X.start()}}function D(R,...A){if(!this.__zooming)return;var E=I(this,A).event(R),B=R.changedTouches,X=B.length,ee,F,ce,N;xs(R);for(ee=0;ee<X;++ee)if(F=B[ee],ce=ia(F,this),E.touch0&&E.touch0[2]===F.identifier)E.touch0[0]=ce;else if(E.touch1&&E.touch1[2]===F.identifier)E.touch1[0]=ce;if(F=E.that.__zoom,E.touch1){var Z=E.touch0[0],Q=E.touch0[1],H=E.touch1[0],J=E.touch1[1],oe=(oe=H[0]-Z[0])*oe+(oe=H[1]-Z[1])*oe,fe=(fe=J[0]-Q[0])*fe+(fe=J[1]-Q[1])*fe;F=x(F,Math.sqrt(oe/fe)),ce=[(Z[0]+H[0])/2,(Z[1]+H[1])/2],N=[(Q[0]+J[0])/2,(Q[1]+J[1])/2]}else if(E.touch0)ce=E.touch0[0],N=E.touch0[1];else return;E.zoom("touch",a(v(F,ce,N),E.extent,i))}function z(R,...A){if(!this.__zooming)return;var E=I(this,A).event(R),B=R.changedTouches,X=B.length,ee,F;if(sg(R),p)clearTimeout(p);p=setTimeout(function(){p=null},f);for(ee=0;ee<X;++ee)if(F=B[ee],E.touch0&&E.touch0[2]===F.identifier)delete E.touch0;else if(E.touch1&&E.touch1[2]===F.identifier)delete E.touch1;if(E.touch1&&!E.touch0)E.touch0=E.touch1,delete E.touch1;if(E.touch0)E.touch0[1]=this.__zoom.invert(E.touch0[0]);else if(E.end(),E.taps===2){if(F=ia(F,this),Math.hypot(m[0]-F[0],m[1]-F[1])<b){var ce=ht(this).on("dblclick.zoom");if(ce)ce.apply(this,arguments)}}}return h.wheelDelta=function(R){return arguments.length?(o=typeof R==="function"?R:yf(+R),h):o},h.filter=function(R){return arguments.length?(e=typeof R==="function"?R:yf(!!R),h):e},h.touchable=function(R){return arguments.length?(r=typeof R==="function"?R:yf(!!R),h):r},h.extent=function(R){return arguments.length?(t=typeof R==="function"?R:yf([[+R[0][0],+R[0][1]],[+R[1][0],+R[1][1]]]),h):t},h.scaleExtent=function(R){return arguments.length?(n[0]=+R[0],n[1]=+R[1],h):[n[0],n[1]]},h.translateExtent=function(R){return arguments.length?(i[0][0]=+R[0][0],i[1][0]=+R[1][0],i[0][1]=+R[0][1],i[1][1]=+R[1][1],h):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},h.constrain=function(R){return arguments.length?(a=R,h):a},h.duration=function(R){return arguments.length?(s=+R,h):s},h.interpolate=function(R){return arguments.length?(l=R,h):l},h.on=function(){var R=u.on.apply(u,arguments);return R===u?h:R},h.clickDistance=function(R){return arguments.length?(y=(R=+R)*R,h):Math.sqrt(y)},h.tapDistance=function(R){return arguments.length?(b=+R,h):b},h}var TL=["section","kind","package"],AV={skills:"var(--chart-3)",docs:"var(--chart-2)",code:"var(--chart-1)",database:"var(--section-database)",tasks:"var(--section-tasks)"},EL="var(--graph-other)";function xf(e){let t=(250+e*137.508)%360;return\`oklch(\${[0.62,0.74,0.5][e%3]} 0.16 \${t.toFixed(1)})\`}function ug(e,t,a){if(t==="section")return AV[e.section];if(t==="kind")return xf(_i.indexOf(pa(e.kind)));let o=e.package===null?-1:a.indexOf(e.package);return o<0?EL:xf(o)}var ii=3,MV=1.6,cg=16,DV=70,$D=0.6,VD=0.04,PV=160,ZD=72;function KD(e){let t=Yu.map((i)=>e.flatMap((s,l)=>s.section===i?[l]:[])).filter((i)=>i.length>0),a=t.map((i)=>OV(e,i)),o=Array(t.length),r=t.map((i,s)=>s).sort((i,s)=>(a[s]?.radius??0)-(a[i]?.radius??0));for(let i of r){let s=a[i]?.radius??0,l=(d,m)=>o.every((p)=>!p||Math.hypot(p.x-d,p.y-m)>=p.radius+s+PV),u={x:0,y:0};for(let d=0,m=o.every((p)=>!p);!m;d+=cg*4)for(let p=0;p<ZD&&!m;p++){let f=-Math.PI/2+2*Math.PI*p/ZD,g=Math.cos(f)*d,y=Math.sin(f)*d;if(l(g,y))u={x:g,y},m=!0}o[i]={...u,radius:s}}let n=Array(e.length);return t.forEach((i,s)=>{let{x:l,y:u}=o[s]??{x:0,y:0};i.forEach((d,m)=>{let p=a[s]?.spots[m];if(p)n[d]={...p,x:l+p.x,y:u+p.y,cx:l,cy:u}})}),n}function OV(e,t){let a=new Map(t.map((h,x)=>[h,x])),o=t.map((h)=>{let x=e[h]?.parent;return x===null||x===void 0?void 0:a.get(x)}),r=t.map(()=>[]),n=[];o.forEach((h,x)=>{if(h===void 0)n.push(x);else r[h]?.push(x)});let i=t.map(()=>1),s=t.map(()=>1);o.forEach((h,x)=>{if(h!==void 0)s[x]=(s[h]??0)+1});for(let h=t.length-1;h>=0;h--){let x=o[h];if(x!==void 0)i[x]=(i[x]??1)+(i[h]??1)}let l=(h)=>(1-$D**(h-1))/(1-$D),u=(h)=>MV*2*cg*Math.sqrt((i[h]??1)/Math.PI),d=new Map;s.forEach((h,x)=>{if(h>ii||h===1)return;let v=h===ii?Math.max(cg,u(x)):cg;d.set(h,(d.get(h)??0)+v)});let m=Math.max(DV,...[...d].map(([h,x])=>x/(2*Math.PI*l(h)))),p=Array(t.length),f=(h,x,v,w)=>{let C=h.reduce((k,_)=>k+(i[_]??1),0),I=Math.max(0,v-x-w*Math.max(0,h.length-1)),L=x;for(let k of h){let _=I*(i[k]??1)/C;g(k,L,L+_),L+=_+w}},g=(h,x,v)=>{let w=s[h]??1,C=(x+v)/2,I=l(w)*m;p[h]={x:Math.cos(C)*I,y:Math.sin(C)*I,start:x,end:v,depth:w},f(r[h]??[],x,v,(v-x)*VD)};f(n,-Math.PI/2,3*Math.PI/2,2*Math.PI*VD);let y=Math.min(ii,Math.max(...s)),b=Math.max(0,...s.map((h,x)=>h===y?u(x):0));return{spots:p,radius:l(y)*m+b}}var zV="http://www.w3.org/2000/svg",BV="fill-none stroke-border data-[dim]:opacity-30",jD="fill-none [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:1.25px] data-[dim]:opacity-10 [&>[data-thin]]:[stroke-width:0.6px]",FV="uses",HV="[&>[data-thin]]:[stroke-opacity:0.6]",UV=250,GV="data-[dim]:opacity-15",qV="fill-none stroke-border",$V="fill-none [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:1.75px]",NL="[vector-effect:non-scaling-stroke]",iP="[stroke-width:1.5px] [vector-effect:non-scaling-stroke] data-[selected]:stroke-foreground data-[selected]:[stroke-width:2.5px]",VV="pointer-events-none select-none fill-muted-foreground stroke-card text-[11px] [paint-order:stroke] [stroke-linejoin:round] [stroke-width:3px] data-[hot]:fill-foreground data-[hot]:font-medium",ZV=12,dg=5,XD=4,KV=6.3,YD=14,jV=300,fg=40,XV=[0.1,8],YV=1.6,Su={top:28,right:110,bottom:28,left:28},WD=300,WV=0.02,QV=6,JV=4,eZ=250,QD=0.2;function JD(e,t,a){let o=t.kind==="folder"||t.kind==="package";e.setAttribute("class",\`\${iP} \${o?"fill-card":"stroke-card"}\`),e.style.fill=o?"":a,e.style.stroke=o?a:""}function eP(e){if(e==="section")return 10;if(e==="skill")return 7.5;if(e==="folder")return 4.5;if(e==="package")return 6.5;if(e==="function"||e==="method")return 3;return Ta(e)?4.5:6}function tP(e){if(e==="section")return 0;if(e==="skill")return 1;if(e==="package")return 2;if(e==="folder")return 6;if(e==="function"||e==="method")return 5;return Ta(e)?4:2}var tZ=-45,aZ=0.6,oZ=-2;function rZ(e){return Math.min(oZ,tZ*aZ**(e-1))}var nZ=0.35,iZ=40,sZ=0.7,aP=14,lZ=Math.PI*(3-Math.sqrt(5)),uZ=-12,cZ=80,oP=120;function rP(e){return e<=ii?nZ:0}function dZ(e,t){let a=new Map;for(let n of e){let i=n.node.parent;if(i===null)continue;let s=a.get(i)??[e[i]];s.push(n),a.set(i,s)}let o=[...a.values()].map((n)=>({members:n,push:t(n[0])}));return(n)=>{for(let{members:i,push:s}of o)for(let l=0;l<i.length;l++)for(let u=l+1;u<i.length;u++){let d=i[l],m=i[u],p=m.x-d.x,f=m.y-d.y,g=p*p+f*f;if(g>oP*oP)continue;if(g===0)p=0.001*(u-l),f=0.001,g=p*p+f*f;let y=s*n/g;if(l===0)m.vx=(m.vx??0)-p*y,m.vy=(m.vy??0)-f*y;else d.vx=(d.vx??0)+p*y,d.vy=(d.vy??0)+f*y,m.vx=(m.vx??0)-p*y,m.vy=(m.vy??0)-f*y}}}function Yr(e,t){let a=document.createElementNS(zV,e);if(t)a.setAttribute("class",t);return a}var Wr=(e)=>e.toFixed(1);function fZ({source:e,target:t,shaft:a,head:o}){let r=t.x-e.x,n=t.y-e.y,i=Math.hypot(r,n)||1,s=r/i,l=n/i,u=t.x-s*(t.radius+2),d=t.y-l*(t.radius+2);a.x1.baseVal.value=e.x+s*(e.radius+1),a.y1.baseVal.value=e.y+l*(e.radius+1),a.x2.baseVal.value=u,a.y2.baseVal.value=d;let m=u-s*dg,p=d-l*dg,f=-l*dg*0.5,g=s*dg*0.5;o.setAttribute("points",\`\${Wr(m+f)},\${Wr(p+g)} \${Wr(u)},\${Wr(d)} \${Wr(m-f)},\${Wr(p-g)}\`)}function nP(e,t){return e[2]>=t[0]&&e[0]<=t[2]&&e[3]>=t[1]&&e[1]<=t[3]}class AL{svg;viewport;tieLayer;arrowLayer;dotLayer;focusTieLayer;focusArrowLayer;focusDotLayer;dots;ties;arrows;labelOrder;simulation;zoomBehavior;resizeObserver;listeners=new AbortController;onSelect;onHover;transform=ni;width=0;height=0;visibleKinds=new Set;hiddenPackages=new Set;selected=null;hovered=null;focusSet=null;lifted=[];marked=[];gesturing=!1;moved=!1;layoutFrame=0;labelFrame=0;labelsPlacedAt=0;constructor({svg:e,view:t,onSelect:a,onHover:o}){this.svg=e,this.onSelect=a,this.onHover=o,this.viewport=Yr("g");let r=(f)=>this.viewport.appendChild(Yr("g",f));this.tieLayer=r(BV);let n=t.references.length>UV;this.arrowLayer=r(n?\`\${jD} \${HV}\`:jD),this.dotLayer=r(GV),this.focusTieLayer=r(qV),this.focusArrowLayer=r($V),this.focusDotLayer=r();let i=e.getBoundingClientRect(),s=KD(t.nodes),l=(f)=>[s[f]?.x??0,s[f]?.y??0],u=[],d=new Map;t.nodes.forEach((f,g)=>{let y=f.parent;if((s[g]?.depth??1)<=ii||y===null){u.push(l(g));return}let b=d.get(y)??0;d.set(y,b+1);let[h,x]=u[y]??l(y),v=b*lZ,w=aP*(1+Math.sqrt(b)/2);u.push([h+Math.cos(v)*w,x+Math.sin(v)*w])}),this.dots=t.nodes.map((f,g)=>{let y=eP(f.kind),[b,h]=u[g]??l(g),x=this.dotLayer.appendChild(Yr("g")),v=x.appendChild(Yr("circle",iP));JD(v,f,ug(f,"section",[])),v.setAttribute("r",String(y));let w=x.appendChild(Yr("text",VV));return w.setAttribute("y","4"),w.style.display="none",w.textContent=f.name,{id:g,node:f,radius:y,x:b,y:h,group:x,circle:v,label:w,labelShown:!1,labelScale:0}});let m=(f)=>{let g=this.dots[f];if(!g)throw Error(\`No dot at \${f}\`);return g};this.ties=this.dots.flatMap((f)=>{if(f.node.parent===null)return[];let g=this.tieLayer.appendChild(Yr("line",NL));return[{source:m(f.node.parent),target:f,line:g}]}),this.arrows=t.references.map(({source:f,target:g,kind:y})=>{let{stroke:b,dashed:h}=Th[y],x=this.arrowLayer.appendChild(Yr("g",b));x.dataset.kind=y,x.toggleAttribute("data-thin",y===FV);let v=x.appendChild(Yr("line",NL));if(h)v.setAttribute("stroke-dasharray",Eh);let w=x.appendChild(Yr("polyline",NL));return{source:m(f),target:m(g),kind:y,group:x,shaft:v,head:w}}),this.labelOrder=[...this.dots].sort((f,g)=>tP(f.node.kind)-tP(g.node.kind)),this.simulation=Gh(this.dots).force("ties",Bh(this.ties).distance(({source:f,target:g})=>{let y=s[g.id]?.depth??1;if(y<=ii){let[b,h]=l(f.id),[x,v]=l(g.id);return Math.hypot(x-b,v-h)}return Math.max(aP,iZ*sZ**(y-ii-1))}).strength(0.5)).force("charge",dZ(this.dots,(f)=>rZ(Math.max(1,(s[f.id]?.depth??1)-1)))).force("spread",qh().strength(uZ).distanceMax(cZ)).force("x",$h((f)=>l(f.id)[0]).strength((f)=>rP(s[f.id]?.depth??1))).force("y",Vh((f)=>l(f.id)[1]).strength((f)=>rP(s[f.id]?.depth??1))).force("collide",zh((f)=>f.radius+1)).stop(),this.warmUp(),this.zoomBehavior=lg().scaleExtent(XV).on("start",(f)=>{if(f.sourceEvent)this.gesturing=!0}).on("zoom",(f)=>this.zoomed(f)).on("end",()=>{this.gesturing=!1}),ht(e).call(this.dragBehavior()).call(this.zoomBehavior).on("dblclick.zoom",null);let{signal:p}=this.listeners;e.addEventListener("pointermove",(f)=>this.hover(this.gesturing?void 0:this.dotUnder(f)),{signal:p}),e.addEventListener("pointerleave",()=>this.hover(void 0),{signal:p}),e.addEventListener("click",(f)=>{if(!f.defaultPrevented)this.onSelect(this.dotUnder(f)?.id??null)},{signal:p}),e.appendChild(this.viewport),this.draw(),this.resizeObserver=new ResizeObserver(([f])=>{if(f)this.resized(f.contentRect.width,f.contentRect.height)}),this.resizeObserver.observe(e),this.resized(i.width,i.height),this.run()}setSelection(e){if(e===this.selected)return;this.selected=e,this.refresh();let t=e===null?void 0:this.dots[e];if(t)this.reveal(t)}setColors(e){for(let t of this.dots)JD(t.circle,t.node,e(t.node))}setVisibleKinds(e){this.visibleKinds=e,this.applyVisibility()}setHiddenPackages(e){this.hiddenPackages=e,this.applyVisibility()}isHidden(e){return e.node.package!==null&&this.hiddenPackages.has(e.node.package)}applyVisibility(){for(let e of this.dots)e.group.style.display=this.isHidden(e)?"none":"";for(let e of this.ties)e.line.style.display=this.isHidden(e.source)||this.isHidden(e.target)?"none":"";for(let e of this.arrows)e.group.style.display=this.isDrawn(e)?"":"none";this.refresh()}isDrawn(e){return this.visibleKinds.has(e.kind)&&!this.isHidden(e.source)&&!this.isHidden(e.target)}zoomBy(e){this.moved=!0,this.zoomBehavior.scaleBy(ht(this.svg),e)}fit(){if(this.width===0||this.height===0||this.dots.length===0)return;let[e,t,a,o]=[1/0,1/0,-1/0,-1/0];for(let{x:l,y:u,radius:d}of this.dots)e=Math.min(e,l-d),t=Math.min(t,u-d),a=Math.max(a,l+d),o=Math.max(o,u+d);let r={width:Math.max(this.width-Su.left-Su.right,1),height:Math.max(this.height-Su.top-Su.bottom,1)},n=Math.min(r.width/Math.max(a-e,1),r.height/Math.max(o-t,1),YV),i=Su.left+(r.width-n*(e+a))/2,s=Su.top+(r.height-n*(t+o))/2;this.moved=!1,this.zoomBehavior.transform(ht(this.svg),ni.translate(i,s).scale(n))}destroy(){cancelAnimationFrame(this.layoutFrame),cancelAnimationFrame(this.labelFrame),this.resizeObserver.disconnect(),this.listeners.abort(),ht(this.svg).on(".zoom",null).on(".drag",null),this.viewport.remove()}get settled(){return this.simulation.alpha()<=this.simulation.alphaMin()}warmUp(){let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches,t=e?this.simulation.alphaMin():WV,a=performance.now()+(e?WD*5:WD);while(this.simulation.alpha()>t&&performance.now()<a)this.simulation.tick();if(e)this.simulation.alpha(0)}run(){if(this.layoutFrame===0&&!this.settled)this.layoutFrame=requestAnimationFrame(()=>this.step())}step(){this.layoutFrame=0;let e=performance.now()+QV,t=0;do this.simulation.tick(),t++;while(!this.settled&&t<JV&&performance.now()<e);if(this.draw(),!this.moved)this.fit();if(this.settled||performance.now()-this.labelsPlacedAt>eZ)this.placeLabels();this.run()}dragBehavior(){return Oh().subject((e)=>{let t=this.dotNear(e.x,e.y);return t&&{dot:t,x:this.transform.applyX(t.x),y:this.transform.applyY(t.y)}}).on("start",(e)=>{this.gesturing=!0;let{dot:t}=e.subject;t.fx=t.x,t.fy=t.y}).on("drag",(e)=>{if(this.simulation.alphaTarget(QD),this.settled)this.simulation.alpha(QD);this.moved=!0,this.hover(void 0),e.subject.dot.fx=this.transform.invertX(e.x),e.subject.dot.fy=this.transform.invertY(e.y),this.run()}).on("end",(e)=>{this.simulation.alphaTarget(0),this.gesturing=!1,e.subject.dot.fx=null,e.subject.dot.fy=null})}zoomed(e){if(this.transform=e.transform,this.viewport.setAttribute("transform",e.transform.toString()),e.sourceEvent)this.moved=!0,this.hover(void 0);if(e.sourceEvent||this.settled)this.scheduleLabels()}resized(e,t){if(e===this.width&&t===this.height)return;if(this.width=e,this.height=t,this.moved)this.scheduleLabels();else this.fit()}dotUnder(e){let[t,a]=ia(e,this.svg);return this.dotNear(t,a)}dotNear(e,t){let[a,o]=this.transform.invert([e,t]),r=ZV/this.transform.k,n=this.simulation.find(a,o,r+eP("section"));if(!n||this.isHidden(n))return;return Math.hypot(n.x-a,n.y-o)<=n.radius+r?n:void 0}hover(e){let t=e?.id??null;if(t===this.hovered)return;this.hovered=t,this.svg.style.cursor=e?"pointer":"",this.refresh(),this.onHover(e?{index:e.id,x:this.transform.applyX(e.x),y:this.transform.applyY(e.y)}:null)}reveal(e){let t=this.transform.applyX(e.x),a=this.transform.applyY(e.y),o=24;if(t>=24&&t<=this.width-24&&a>=24&&a<=this.height-24)return;this.moved=!0,this.zoomBehavior.translateTo(ht(this.svg),e.x,e.y)}refresh(){for(let{element:i,home:s}of this.lifted)s.appendChild(i);this.lifted=[];for(let i of this.marked)i.circle.removeAttribute("data-selected"),i.label.removeAttribute("data-hot");this.marked=[];let e=this.selected??this.hovered,t=e!==null;for(let i of[this.tieLayer,this.arrowLayer,this.dotLayer])i.toggleAttribute("data-dim",t);let a=(i,s,l)=>{l.appendChild(i),this.lifted.push({element:i,home:s})},o=(i)=>i.source.id===e||i.target.id===e,r=new Set(e===null?[]:[e]);if(t){for(let i of this.ties){if(!o(i)||this.isHidden(i.source)||this.isHidden(i.target))continue;r.add(i.source.id).add(i.target.id),a(i.line,this.tieLayer,this.focusTieLayer)}for(let i of this.arrows){if(!o(i)||!this.isDrawn(i))continue;r.add(i.source.id).add(i.target.id),a(i.group,this.arrowLayer,this.focusArrowLayer)}for(let i of r){let s=this.dots[i];if(s)a(s.group,this.dotLayer,this.focusDotLayer)}}this.focusSet=t?r:null;let n=(i,s)=>{let l=this.dots[i??-1];if(!l)return;(s==="data-selected"?l.circle:l.label).setAttribute(s,""),this.marked.push(l)};n(this.selected,"data-selected"),n(e,"data-hot"),n(this.hovered,"data-hot"),this.scheduleLabels()}draw(){for(let{source:e,target:t,line:a}of this.ties)a.x1.baseVal.value=e.x,a.y1.baseVal.value=e.y,a.x2.baseVal.value=t.x,a.y2.baseVal.value=t.y;for(let e of this.arrows)fZ(e);for(let e of this.dots)e.group.setAttribute("transform",\`translate(\${Wr(e.x)},\${Wr(e.y)})\`)}scheduleLabels(){if(this.labelFrame!==0)return;this.labelFrame=requestAnimationFrame(()=>{this.labelFrame=0,this.placeLabels()})}placeLabels(){this.labelsPlacedAt=performance.now();let{k:e}=this.transform,t=[],a=new Set,o=this.dotGrid(),r=(n,i)=>{if(!n||a.has(n)||a.size>=jV||this.isHidden(n))return;let s=this.transform.applyX(n.x)+n.radius*e+XD,l=this.transform.applyY(n.y),u=[s,l-YD/2,s+n.node.name.length*KV,l+YD/2];if(i!=="always"){if(!(u[2]>=0&&u[0]<=this.width&&u[3]>=0&&u[1]<=this.height)||t.some((m)=>nP(u,m)))return;if(i==="rest"&&o(u,n))return}t.push(u),a.add(n)};r(this.dots[this.hovered??-1],"always"),r(this.dots[this.selected??-1],"always");for(let n of this.labelOrder)if(this.focusSet?.has(n.id))r(n,"focus");for(let n of this.labelOrder)r(n,"rest");for(let n of this.dots){let i=a.has(n);if(i!==n.labelShown)n.label.style.display=i?"":"none",n.labelShown=i;if(!i||n.labelScale===e)continue;n.label.setAttribute("transform",\`scale(\${1/e})\`),n.label.setAttribute("x",Wr(n.radius*e+XD)),n.labelScale=e}}dotGrid(){let{k:e}=this.transform,t=new Map,a=function*([o,r,n,i]){for(let s=Math.floor(o/fg);s<=Math.floor(n/fg);s++)for(let l=Math.floor(r/fg);l<=Math.floor(i/fg);l++)yield\`\${s}:\${l}\`};for(let o of this.dots){let r=this.transform.applyX(o.x),n=this.transform.applyY(o.y),i=o.radius*e;if(r+i<0||r-i>this.width||n+i<0||n-i>this.height)continue;let s={dot:o,box:[r-i,n-i,r+i,n+i]};for(let l of a(s.box)){let u=t.get(l);if(u)u.push(s);else t.set(l,[s])}}return(o,r)=>{for(let n of a(o))if(t.get(n)?.some((i)=>i.dot!==r&&nP(o,i.box)))return!0;return!1}}}var sP=1.5,ML=120,pZ=72;function lP({view:e,selected:t,visibleKinds:a,hiddenPackages:o,color:r,onSelect:n,className:i}){let s=q(),l=Oo.useRef(null),u=Oo.useRef(null),[d,m]=Oo.useState(null);Oo.useEffect(()=>{if(!l.current)return;let g=new AL({svg:l.current,view:e,onSelect:n,onHover:m});return u.current=g,()=>{g.destroy(),u.current=null,m(null)}},[e,n]),Oo.useEffect(()=>u.current?.setVisibleKinds(a),[e,a]),Oo.useEffect(()=>u.current?.setSelection(t),[e,t]),Oo.useEffect(()=>u.current?.setColors(r),[e,r]),Oo.useEffect(()=>u.current?.setHiddenPackages(o),[e,o]);let p=d===null?void 0:e.nodes[d.index],f=l.current?.clientWidth??0;return S("div",{className:P("relative overflow-hidden rounded-xl border bg-card text-card-foreground shadow-sm",i),children:[c("svg",{ref:l,role:"img","aria-label":\`Graph of \${e.nodes.length} nodes and \${e.references.length} references. Select a node to list its links beside the graph.\`,className:"block size-full cursor-grab touch-none active:cursor-grabbing"}),S("div",{className:"absolute top-3 right-3 flex gap-1",children:[c(vt,{variant:"outline",size:"icon","aria-label":"Zoom out",title:"Zoom out",onClick:()=>u.current?.zoomBy(1/sP),children:c(ns,{})}),c(vt,{variant:"outline",size:"icon","aria-label":"Zoom in",title:"Zoom in",onClick:()=>u.current?.zoomBy(sP),children:c(is,{})}),c(vt,{variant:"outline",size:"icon","aria-label":"Fit the graph to the view",title:"Fit to view",onClick:()=>u.current?.fit(),children:c(kd,{})})]}),d&&p&&S("div",{"aria-hidden":!0,style:{left:Math.min(Math.max(d.x,ML),Math.max(f-ML,ML)),top:d.y},className:P("pointer-events-none absolute z-10 flex max-w-60 -translate-x-1/2 items-center gap-2 rounded-md border bg-popover px-2.5 py-1.5 text-popover-foreground shadow-md",d.y>pZ?"-translate-y-[calc(100%+0.875rem)]":"translate-y-3.5"),children:[c(ye,{kind:p.kind,className:"h-5 px-1.5 text-[0.6875rem]"}),c("span",{className:"truncate font-medium font-mono text-xs",children:s.qualifiedName(p.ref)})]})]})}var cP="flex w-full items-baseline gap-2 rounded-md px-2 py-1 text-left text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-3 focus-visible:ring-ring/50";function mZ(e,t){if(e.node(t).kind==="section")return null;for(let o of[t,...e.ancestors(t).reverse()]){let r=e.node(o);if("path"in r)return o===t?r.path:\`in \${r.path}\`}return e.route(t).path.split("/").slice(1).join("/")}function dP({view:e,selected:t,visibleKinds:a,onSelect:o,className:r}){let n=q(),i=t===null?void 0:e.nodes[t];if(t===null||!i)return S("aside",{"aria-label":"Selected node",className:P("text-muted-foreground text-sm leading-6",r),children:[c("h2",{className:"font-semibold text-foreground",children:"No node selected"}),c("p",{className:"mt-1",children:"Click a dot to list what it links to and what links to it."}),c("p",{className:"mt-3",children:"Drag the background to pan. Scroll or pinch to zoom. Drag a dot to move it."})]});let s=e.references.filter((p)=>a.has(p.kind)),l=s.filter((p)=>p.source===t),u=s.filter((p)=>p.target===t),d=i.parent===null?void 0:e.nodes[i.parent],m=mZ(n,i.ref);return S("aside",{"aria-label":"Selected node",className:P("flex min-h-0 flex-col",r),children:[S("div",{className:"flex items-start gap-2",children:[c(ye,{kind:i.kind,className:"mt-0.5"}),c("h2",{className:P("min-w-0 flex-1 font-bold text-base leading-6",ql(i.kind)),children:ma(i.kind)?n.qualifiedName(i.ref):i.name}),c(vt,{variant:"ghost",size:"icon",className:"-mt-1.5 -mr-2","aria-label":"Clear the selection",title:"Clear the selection",onClick:()=>o(null),children:c(To,{})})]}),m&&c("p",{className:"mt-1 break-all font-mono text-muted-foreground text-xs",children:m}),c(vt,{asChild:!0,size:"sm",className:"mt-3 w-fit",children:S(ie,{node:i.ref,children:["Open page",c(fd,{})]})}),S("div",{className:"mt-5 min-h-0 flex-1 space-y-5 overflow-y-auto",children:[d&&S("section",{"aria-label":"Inside",children:[c("h3",{className:"font-semibold text-sm",children:"Inside"}),S("button",{type:"button",className:P(cP,"mt-1"),onClick:()=>o(i.parent),children:[c("span",{className:"w-16 shrink-0 text-muted-foreground text-xs",children:Gl(d.kind)}),c("span",{className:P("min-w-0 text-[0.8125rem]",ql(d.kind)),children:d.name})]})]}),c(uP,{title:"Links to",empty:"This node links to nothing.",references:l,end:"target",view:e,onSelect:o}),c(uP,{title:"Linked from",empty:"Nothing links to this node.",references:u,end:"source",view:e,onSelect:o})]})]})}function uP({title:e,empty:t,references:a,end:o,view:r,onSelect:n}){let i=q();return S("section",{"aria-label":e,children:[S("h3",{className:"font-semibold text-sm",children:[e," ",c("span",{className:"font-normal text-muted-foreground tabular-nums",children:a.length})]}),a.length===0?c("p",{className:"mt-1 px-2 text-muted-foreground text-sm",children:t}):c("ul",{className:"mt-1",children:a.map((s)=>{let l=r.nodes[s[o]];if(!l)return null;return c("li",{children:S("button",{type:"button",className:cP,onClick:()=>n(s[o]),children:[c(Nh,{kind:s.kind,className:"mt-0.5 self-start"}),c("span",{className:"w-16 shrink-0 text-muted-foreground text-xs",title:wr[s.kind][o==="target"?"forward":"backward"],children:wr[s.kind].label}),c("span",{className:P("min-w-0 text-[0.8125rem]",ql(l.kind)),children:i.qualifiedName(l.ref)}),s.count>1&&S("span",{className:"ml-auto shrink-0 text-muted-foreground text-xs tabular-nums",children:[s.count," times"]})]})},\`\${s.kind}:\${s[o]}\`)})})]})}var pg=U(V(),1);var fP=jl("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});var pP=pg.createContext({size:"default",variant:"default",spacing:0});function vf({className:e,variant:t,size:a,spacing:o=0,children:r,...n}){return c(jd.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":o,style:{"--gap":o},className:P("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=0]:data-[variant=outline]:shadow-xs",e),...n,children:c(pP.Provider,{value:{variant:t,size:a,spacing:o},children:r})})}function bf({className:e,children:t,variant:a,size:o,...r}){let n=pg.useContext(pP);return c(jd.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||a,"data-size":n.size||o,"data-spacing":n.spacing,className:P(fP({variant:n.variant||a,size:n.size||o}),"min-w-0 shrink-0 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",e),...r,children:t})}var DL=["files","entries","all"],hZ=600;class mP{level;nodes;references;shownBy;constructor(e,t,a,o){this.level=e;this.nodes=t;this.references=a;this.shownBy=o}locate(e){return this.shownBy.get(e)}}function hP(e,t,a){let{kind:o}=e.node(t);if(o==="section")return e.children(t).length>0;if(Bs(pa(o))){if(a!=="all")return!1;return!ko(o)||e.edgesFrom(t).length>0}return a!=="files"||!Ta(o)}function gP(e,t){let a=[],o=new Map,r=new Map;for(let{slug:i,node:s}of e.sections)for(let l of[s,...e.descendants(s)]){let u=e.node(l),{kind:d,name:m,parent:p}=u,f=u.kind==="package"?u.path:p===null?null:r.get(p)??null;r.set(l,f);let g=p===null?void 0:o.get(p);if(!hP(e,l,t)){if(g!==void 0)o.set(l,g);continue}o.set(l,a.length),a.push({ref:l,kind:d,name:m,section:i,parent:g??null,package:f})}let n=new Map;for(let[i,s]of o)for(let[,l,u]of e.edgesFrom(i)){let d=o.get(u);if(d===void 0||d===s)continue;let m=\`\${s}:\${l}:\${d}\`;n.set(m,{source:s,target:d,kind:l,count:(n.get(m)?.count??0)+1})}return new mP(t,a,[...n.values()],o)}function yP(e){let t=0;for(let{node:a}of e.sections)for(let o of e.descendants(a))if(hP(e,o,"entries"))t++;return t<=hZ?"entries":"files"}function xP(e){let t=new Set;for(let{node:a}of e.sections)for(let o of e.descendants(a)){let r=e.node(o);if(r.kind==="package")t.add(r.path)}return[...t].sort()}var vP={skills:{bg:"bg-chart-3",fill:"fill-chart-3",stroke:"stroke-chart-3"},docs:{bg:"bg-chart-2",fill:"fill-chart-2",stroke:"stroke-chart-2"},code:{bg:"bg-chart-1",fill:"fill-chart-1",stroke:"stroke-chart-1"},database:{bg:"bg-section-database",fill:"fill-section-database",stroke:"stroke-section-database"},tasks:{bg:"bg-section-tasks",fill:"fill-section-tasks",stroke:"stroke-section-tasks"}};var gZ={files:"Files",entries:"Entries",all:"All"},yZ={files:"Folders, packages and files",entries:"Files, and inside them every class, function, glossary term, decision, table, query and task",all:"Entries, and every operation and definition, and each parameter and field that refers to a type of the repository"},xZ={section:"Section",kind:"Kind",package:"Package"},vZ={section:"One color per section",kind:"One color per kind: file, class, function, interface and so on",package:"One color per package, gray outside every package"},mg="font-medium text-muted-foreground text-xs";function bP(e,t){return\`\${e.toLocaleString()} \${t}\${e===1?"":"s"}\`}function wP(){let e=q();Re(\`Graph \xB7 \${e.meta.title}\`);let t=Xe(De,(f)=>f.graphView),a=t.level??yP(e),o=lr.useMemo(()=>xP(e),[e]),r=lr.useMemo(()=>new Set(t.hiddenPackages),[t.hiddenPackages]),n=lr.useMemo(()=>gP(e,a),[e,a]),i=lr.useMemo(()=>wZ(n),[n]),s=lr.useMemo(()=>new Set(Ti.filter((f)=>!t.hiddenKinds.includes(f))),[t.hiddenKinds]),l=t.selected===null?null:n.locate(t.selected)??null,u=lr.useCallback((f)=>ug(f,t.colorBy,o),[t.colorBy,o]),d=lr.useCallback((f)=>De.actions.selectInGraph(f===null?null:n.nodes[f]?.ref??null),[n]),m=new Map;for(let{kind:f}of n.references)m.set(f,(m.get(f)??0)+1);let p=Ti.filter((f)=>m.has(f));return S("main",{className:"flex min-h-[calc(100dvh-3.5rem)] flex-col gap-4 p-4 sm:p-6 xl:h-dvh xl:min-h-0",children:[S("header",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[c("h1",{className:"font-bold text-3xl tracking-tight",children:"Graph"}),S("p",{className:"text-muted-foreground text-sm",children:[bP(n.nodes.length,"node"),", ",bP(n.references.length,"reference")]})]}),S("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3",children:[S("div",{className:"flex items-center gap-2",children:[c("span",{id:"graph-level",className:mg,children:"Show"}),c(vf,{type:"single",variant:"outline",size:"sm","aria-labelledby":"graph-level",value:a,onValueChange:(f)=>{let g=DL.find((y)=>y===f);if(g)De.actions.setGraphLevel(g)},children:DL.map((f)=>c(bf,{value:f,title:yZ[f],className:"px-3",children:gZ[f]},f))})]}),S("div",{className:"flex items-center gap-2",children:[c("span",{id:"graph-color-by",className:mg,children:"Color by"}),c(vf,{type:"single",variant:"outline",size:"sm","aria-labelledby":"graph-color-by",value:t.colorBy,onValueChange:(f)=>{let g=TL.find((y)=>y===f);if(g)De.actions.setGraphColorBy(g)},children:TL.map((f)=>c(bf,{value:f,title:vZ[f],className:"px-3",disabled:f==="package"&&o.length===0,children:xZ[f]},f))})]}),p.length>0&&S("div",{className:"flex items-start gap-2",children:[c("span",{id:"graph-kinds",className:P(mg,"flex h-8 shrink-0 items-center"),children:"References"}),c(vf,{type:"multiple",variant:"outline",size:"sm",spacing:1,className:"flex-wrap","aria-labelledby":"graph-kinds",value:p.filter((f)=>s.has(f)),onValueChange:(f)=>De.actions.setHiddenEdgeKinds(Ti.filter((g)=>!f.includes(g))),children:p.map((f)=>S(bf,{value:f,className:"gap-1.5 px-2",title:wr[f].description,children:[c(Nh,{kind:f}),wr[f].label,c("span",{className:"text-muted-foreground text-xs tabular-nums",children:m.get(f)})]},f))})]}),o.length>0&&S("div",{className:"flex items-start gap-2",children:[c("span",{id:"graph-packages",className:P(mg,"flex h-8 shrink-0 items-center"),children:"Packages"}),c(vf,{type:"multiple",variant:"outline",size:"sm",spacing:1,className:"flex-wrap","aria-labelledby":"graph-packages",value:o.filter((f)=>!r.has(f)),onValueChange:(f)=>De.actions.setHiddenPackages(o.filter((g)=>!f.includes(g))),children:o.map((f,g)=>S(bf,{value:f,className:"gap-1.5 px-2",title:\`Show or hide \${f}\`,children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5"),style:{background:xf(g)}}),f,c("span",{className:"text-muted-foreground text-xs tabular-nums",children:i.get(f)??0})]},f))})]})]}),c(SZ,{colorBy:t.colorBy,view:n}),S("div",{className:"flex min-h-0 flex-1 flex-col gap-4 xl:flex-row",children:[c(lP,{view:n,selected:l,visibleKinds:s,hiddenPackages:r,color:u,onSelect:d,className:"h-[70dvh] min-h-96 xl:h-auto xl:min-h-0 xl:flex-1"}),c(dP,{view:n,selected:l,visibleKinds:s,onSelect:d,className:"rounded-xl border bg-card p-4 text-card-foreground shadow-sm xl:w-80 xl:shrink-0"})]})]})}var vs="inline-block shrink-0 rounded-full",bZ=(()=>{let e=_i.filter((t)=>!["folder","package","file","plan","phase"].includes(t)).map((t)=>hn[t].label);return\`\${e.slice(0,-1).join(", ")} or \${e.at(-1)}\`})();function wZ(e){let t=new Map;for(let a of e.nodes)if(a.package!==null)t.set(a.package,(t.get(a.package)??0)+1);return t}function SZ({colorBy:e,view:t}){let a=q(),o=lr.useMemo(()=>{let r=new Map;for(let n of t.nodes)r.set(pa(n.kind),(r.get(pa(n.kind))??0)+1);return _i.filter((n)=>r.has(n)).map((n)=>[n,r.get(n)??0])},[t]);return S("ul",{"aria-label":"Legend",className:"flex flex-wrap items-center gap-x-5 gap-y-1.5 text-muted-foreground text-xs",children:[e==="section"&&a.sections.map(({slug:r,node:n})=>S("li",{className:"flex items-center gap-1.5 font-medium text-foreground",title:rx[r].description,children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5",vP[r].bg)}),a.node(n).name]},r)),e==="kind"&&o.map(([r,n])=>S("li",{className:"flex items-center gap-1.5 font-medium text-foreground",title:hn[r].description,children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5"),style:{background:xf(_i.indexOf(r))}}),hn[r].label,c("span",{className:"text-muted-foreground tabular-nums",children:n})]},r)),e==="package"&&S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5"),style:{background:EL}}),"outside every package; each package has the color of its button"]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-3 bg-muted-foreground")}),"file"]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-1.5 bg-muted-foreground")}),"entry: ",bZ]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5 border-[1.5px] border-muted-foreground")}),"folder or package"]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:"h-px w-5 bg-border"}),"contains"]}),S("li",{className:"flex items-center gap-1.5",children:[c("svg",{"aria-hidden":!0,viewBox:"0 0 22 8",className:"h-2 w-5.5 fill-none stroke-muted-foreground",children:c("path",{d:"M1 4H20M16 1.5L20 4L16 6.5",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),"reference, in the color of its kind"]})]})}var zL=U(V(),1);var PL="rounded-xs font-medium text-primary underline decoration-primary/40 underline-offset-4 outline-hidden transition-colors hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function SP({id:e,title:t,children:a}){return S("section",{"aria-labelledby":e,children:[c("h2",{id:e,children:t}),a]})}function po({head:e,children:t}){let[,a,o]=e,r=o===void 0?void 0:{"--label-2":JSON.stringify(a),"--label-3":JSON.stringify(o)};return S("table",{className:"row-cards",style:r,children:[c("thead",{children:c("tr",{children:e.map((n)=>c("th",{scope:"col",children:n},n))})}),c("tbody",{children:t})]})}function zo({title:e,code:t}){return S("figure",{className:"my-4 min-w-0",children:[c("figcaption",{className:"mb-1.5 font-medium text-muted-foreground text-xs",children:e}),c("pre",{className:"shiki my-0",children:c("code",{children:t})})]})}function hg({children:e}){return c("kbd",{className:"rounded-sm border bg-muted px-1.5 py-0.5 font-mono text-[0.85em] text-accent-foreground",children:e})}function Lu({children:e="This site has none."}){return S("span",{className:"text-muted-foreground",children:[" ",e]})}var LZ="## Project knowledge\\n\\nQuery the project with \`analyze\` before reading whole files:\\n\\n- \`g3n-analyze search <words>\` finds pages, functions, terms, decisions, tables and queries.\\n- \`g3n-analyze show <id or name>\` prints one of them in full, with its references.\\n- \`g3n-analyze refs <id or name>\` lists what it links to and what links to it.\\n- Before changing code, run \`g3n-analyze refs <name> --edge affects --incoming\`\\n and read the decisions it lists.\\n- Use the terms of \`glossary.md\`. Do not use the words under _Avoid_.";function LP(){return S(he,{children:[S("p",{children:["A coding agent can run the retrieval commands and gets the answer the site would show, without reading whole files. Put this in the instruction file of the agent, such as ",c("code",{children:"CLAUDE.md"})," or ",c("code",{children:"AGENTS.md"}),"."]}),c(zo,{title:"Instructions for the agent",code:LZ}),S("p",{children:["An agent without the repository reads a built file: ",c("code",{children:"g3n-analyze search <words> --from analyze_out/index.html"}),"."]})]})}var CZ=\`bun add -g @g3nomaly/analyze
7540
+ \`)},LG=0,iu=[];function QA(e){var t=$e.useRef([]),a=$e.useRef([0,0]),o=$e.useRef(),r=$e.useState(LG++)[0],n=$e.useState(qd)[0],i=$e.useRef(e);$e.useEffect(function(){i.current=e},[e]),$e.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var y=OA([e.lockRef.current],(e.shards||[]).map(WA),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}return},[e.inert,e.lockRef.current,e.shards]);var s=$e.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!i.current.allowPinchZoom;var h=bh(y),x=a.current,v="deltaX"in y?y.deltaX:x[0]-h[0],w="deltaY"in y?y.deltaY:x[1]-h[1],C,I=y.target,L=Math.abs(v)>Math.abs(w)?"h":"v";if("touches"in y&&L==="h"&&I.type==="range")return!1;var k=window.getSelection(),_=k&&k.anchorNode,T=_?_===I||_.contains(I):!1;if(T)return!1;var O=hw(L,I);if(!O)return!0;if(O)C=L;else C=L==="v"?"h":"v",O=hw(L,I);if(!O)return!1;if(!o.current&&"changedTouches"in y&&(v||w))o.current=C;if(!C)return!0;var D=o.current||C;return XA(D,b,y,D==="h"?v:w,!0)},[]),l=$e.useCallback(function(y){var b=y;if(!iu.length||iu[iu.length-1]!==n)return;var h="deltaY"in b?YA(b):bh(b),x=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&wG(C.delta,h)})[0];if(x&&x.should){if(b.cancelable)b.preventDefault();return}if(!x){var v=(i.current.shards||[]).map(WA).filter(Boolean).filter(function(C){return C.contains(b.target)}),w=v.length>0?s(b,v[0]):!i.current.noIsolation;if(w){if(b.cancelable)b.preventDefault()}}},[]),u=$e.useCallback(function(y,b,h,x){var v={name:y,delta:b,target:h,should:x,shadowParent:CG(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(w){return w!==v})},1)},[]),d=$e.useCallback(function(y){a.current=bh(y),o.current=void 0},[]),m=$e.useCallback(function(y){u(y.type,YA(y),y.target,s(y,e.lockRef.current))},[]),p=$e.useCallback(function(y){u(y.type,bh(y),y.target,s(y,e.lockRef.current))},[]);$e.useEffect(function(){return iu.push(n),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",l,us),document.addEventListener("touchmove",l,us),document.addEventListener("touchstart",d,us),function(){iu=iu.filter(function(y){return y!==n}),document.removeEventListener("wheel",l,us),document.removeEventListener("touchmove",l,us),document.removeEventListener("touchstart",d,us)}},[]);var{removeScrollBar:f,inert:g}=e;return $e.createElement($e.Fragment,null,g?$e.createElement(n,{styles:SG(r)}):null,f?$e.createElement(pw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function CG(e){var t=null;while(e!==null){if(e instanceof ShadowRoot)t=e.host,e=e.host;e=e.parentNode}return t}var JA=sw(vh,QA);var eM=wh.forwardRef(function(e,t){return wh.createElement(Gd,Sa({},e,{ref:t,sideCar:JA}))});eM.classNames=Gd.classNames;var gw=eM;var kG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},su=new WeakMap,Sh=new WeakMap,Lh={},yw=0,tM=function(e){return e&&(e.host||tM(e.parentNode))},IG=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=tM(a);if(o&&e.contains(o))return o;return console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null}).filter(function(a){return Boolean(a)})},RG=function(e,t,a,o){var r=IG(t,Array.isArray(e)?e:[e]);if(!Lh[a])Lh[a]=new WeakMap;var n=Lh[a],i=[],s=new Set,l=new Set(r),u=function(m){if(!m||s.has(m))return;s.add(m),u(m.parentNode)};r.forEach(u);var d=function(m){if(!m||l.has(m))return;Array.prototype.forEach.call(m.children,function(p){if(s.has(p))d(p);else try{var f=p.getAttribute(o),g=f!==null&&f!=="false",y=(su.get(p)||0)+1,b=(n.get(p)||0)+1;if(su.set(p,y),n.set(p,b),i.push(p),y===1&&g)Sh.set(p,!0);if(b===1)p.setAttribute(a,"true");if(!g)p.setAttribute(o,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return d(t),s.clear(),yw++,function(){if(i.forEach(function(m){var p=su.get(m)-1,f=n.get(m)-1;if(su.set(m,p),n.set(m,f),!p){if(!Sh.has(m))m.removeAttribute(o);Sh.delete(m)}if(!f)m.removeAttribute(a)}),yw--,!yw)su=new WeakMap,su=new WeakMap,Sh=new WeakMap,Lh={}}},aM=function(e,t,a){if(a===void 0)a="data-aria-hidden";var o=Array.from(Array.isArray(e)?e:[e]),r=t||kG(e);if(!r)return function(){return null};return o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),RG(o,r,a,"aria-hidden")};var _G=Object.defineProperty,oa=(e,t)=>_G(e,"name",{value:t,configurable:!0}),vw="Dialog",[oM,TG]=aa(vw),[EG,Ao]=oM(vw),bw=oa((e)=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:i=!0}=e,s=Me.useRef(null),l=Me.useRef(null),{nodes:u,registry:d}=J0(),[m,p]=lo({prop:o,defaultProp:r??!1,onChange:n,caller:vw}),[f,g]=Me.useState(0),[y,b]=Me.useState(0);return c(EG,{scope:t,triggerRef:s,contentRef:l,contentId:Zt(),titleId:Zt(),descriptionId:Zt(),titlePresent:f>0,descriptionPresent:y>0,setTitleCount:g,setDescriptionCount:b,open:m,onOpenChange:p,onOpenToggle:Me.useCallback(()=>p((h)=>!h),[p]),modal:i,branchNodes:u,branchRegistry:d,children:a})},"Dialog"),NG="DialogTrigger",AG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao(NG,o),i=Ie(a,n.triggerRef);return c(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":Ch(n.open),...r,ref:i,onClick:ke(t.onClick,n.onOpenToggle)})},"DialogTrigger")),rM="DialogPortal",[MG,nM]=oM(rM,{forceMount:void 0}),ww=oa((e)=>{let{__scopeDialog:t,forceMount:a,children:o,container:r}=e,n=Ao(rM,t);return c(MG,{scope:t,forceMount:a,children:Me.Children.map(o,(i)=>c(No,{present:a||n.open,children:c(DA,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),xw="DialogOverlay",Sw=Me.forwardRef(oa(function(t,a){let o=nM(xw,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,i=Ao(xw,t.__scopeDialog);return i.modal?c(No,{present:r||i.open,children:c(PG,{...n,ref:a})}):null},"DialogOverlay")),DG=Ga("DialogOverlay.RemoveScroll"),PG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao(xw,o),i=Z0(),s=Ie(a,i);return c(gw,{as:DG,allowPinchZoom:!0,shards:Me.useMemo(()=>[n.contentRef,...n.branchNodes.map((l)=>({current:l}))],[n.contentRef,n.branchNodes]),children:c(se.div,{"data-state":Ch(n.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),$d="DialogContent",Lw=Me.forwardRef(oa(function(t,a){let o=nM($d,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,i=Ao($d,t.__scopeDialog);return c(No,{present:r||i.open,children:i.modal?c(OG,{...n,ref:a}):c(zG,{...n,ref:a})})},"DialogContent")),OG=Me.forwardRef(oa(function(t,a){let o=Ao($d,t.__scopeDialog),r=Me.useRef(null),n=Ie(a,o.contentRef,r);return Me.useEffect(()=>{let i=r.current;if(i)return aM(i)},[]),c(iM,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:ke(t.onCloseAutoFocus,(i)=>{i.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:ke(t.onPointerDownOutside,(i)=>{let s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;if(s.button===2||l)i.preventDefault()}),onFocusOutside:ke(t.onFocusOutside,(i)=>i.preventDefault())})},"DialogContentModal")),zG=Me.forwardRef(oa(function(t,a){let o=Ao($d,t.__scopeDialog),r=Me.useRef(!1),n=Me.useRef(!1);return c(iM,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(i)=>{if(t.onCloseAutoFocus?.(i),!i.defaultPrevented){if(!r.current)o.triggerRef.current?.focus();i.preventDefault()}r.current=!1,n.current=!1},onInteractOutside:(i)=>{if(t.onInteractOutside?.(i),!i.defaultPrevented){if(r.current=!0,i.detail.originalEvent.type==="pointerdown")n.current=!0}let s=i.target;if(o.triggerRef.current?.contains(s))i.preventDefault();if(i.detail.originalEvent.type==="focusin"&&n.current)i.preventDefault()}})},"DialogContentNonModal")),iM=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:i,"aria-describedby":s,children:l,...u}=t,d=Ao($d,o);return hh(),c(Q0,{registry:d.branchRegistry,children:c(kA,{asChild:!0,loop:!0,trapped:r,branches:d.branchNodes,onMountAutoFocus:n,onUnmountAutoFocus:i,children:c(bA,{role:"dialog",id:d.contentId,"aria-labelledby":d.titlePresent?d.titleId:void 0,"aria-describedby":d.descriptionPresent?sM(s,d.descriptionId):s,"data-state":Ch(d.open),...u,ref:a,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1),children:l})})})},"DialogContentImpl")),BG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao("DialogTitle",o),{setTitleCount:i}=n;return dt(()=>(i((s)=>s+1),()=>i((s)=>s-1)),[i]),c(se.h2,{id:n.titleId,...r,ref:a})},"DialogTitle")),FG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao("DialogDescription",o),{setDescriptionCount:i}=n;return dt(()=>(i((s)=>s+1),()=>i((s)=>s-1)),[i]),c(se.p,{id:n.descriptionId,...r,ref:a})},"DialogDescription")),HG="DialogClose",UG=Me.forwardRef(oa(function(t,a){let{__scopeDialog:o,...r}=t,n=Ao(HG,o);return c(se.button,{type:"button",...r,ref:a,onClick:ke(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose")),GG=oa((e)=>e.children,"WarningProvider");function sM(...e){let t=new Set;for(let a of e){if(typeof a!=="string")continue;for(let o of String(a).trim().split(/\\s+/))if(o)t.add(o)}return t.size>0?Array.from(t).join(" "):void 0}oa(sM,"concatAriaDescribedby");function Ch(e){return e?"open":"closed"}oa(Ch,"getState");var Qn={};ui(Qn,{Content:()=>Iw,Corner:()=>c8,Root:()=>QG,ScrollArea:()=>QG,ScrollAreaContent:()=>Iw,ScrollAreaCorner:()=>c8,ScrollAreaScrollbar:()=>a8,ScrollAreaThumb:()=>l8,ScrollAreaViewport:()=>JG,Scrollbar:()=>a8,Thumb:()=>l8,Viewport:()=>JG,createScrollAreaScope:()=>YG});var W=U(V(),1);var kh=U(V(),1);var qG=Object.defineProperty,$G=(e,t)=>qG(e,"name",{value:t,configurable:!0}),VG={LTR:"ltr",RTL:"rtl"},ZG=kh.createContext(void 0);function cs(e){let t=kh.useContext(ZG);return e||t||VG.LTR}$G(cs,"useDirection");var KG=Object.defineProperty,jG=(e,t)=>KG(e,"name",{value:t,configurable:!0});function Cw(e,[t,a]){return Math.min(a,Math.max(t,e))}jG(Cw,"clamp");var uM=U(V(),1);var XG=Object.defineProperty,de=(e,t)=>XG(e,"name",{value:t,configurable:!0});function cM(e,t){return uM.useReducer((a,o)=>t[a][o]??a,e)}de(cM,"useStateMachine");var lu={Auto:"auto",Always:"always",Scroll:"scroll",Hover:"hover"},uu={Vertical:"vertical",Horizontal:"horizontal"},rr={LTR:"ltr",RTL:"rtl"},dM="ScrollArea",[fM,YG]=aa(dM),[WG,qa]=fM(dM),QG=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,type:r=lu.Hover,dir:n,scrollHideDelay:i=600,...s}=t,[l,u]=W.useState(null),[d,m]=W.useState(null),[p,f]=W.useState(null),[g,y]=W.useState(null),[b,h]=W.useState(null),[x,v]=W.useState(0),[w,C]=W.useState(0),[I,L]=W.useState(!1),[k,_]=W.useState(!1),T=Ie(a,u),O=cs(n);return c(WG,{scope:o,type:r,dir:O,scrollHideDelay:i,scrollArea:l,viewport:d,onViewportChange:m,content:p,onContentChange:f,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:I,onScrollbarXEnabledChange:L,scrollbarY:b,onScrollbarYChange:h,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:v,onCornerHeightChange:C,children:c(se.div,{dir:O,...s,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":w+"px",...t.style}})})},"ScrollArea")),kw="ScrollAreaViewport",lM=Hd(kw),JG=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,children:r,nonce:n,disableImplicitContentElement:i,...s}=t,l=qa(kw,o),u=W.useRef(null),d=Ie(a,u,l.onViewportChange),m=W.isValidElement(r);if(Yl){let p=W.useRef(!1),f=t.asChild===!0&&!i&&!m;W.useEffect(()=>{if(f&&!p.current)p.current=!0,console.warn(\`\${kw}: \\\`asChild\\\` expects a single React element child, so its props have been applied to the implicitly rendered content element instead. Wrap the children in a single element, or opt into \\\`disableImplicitContentElement\\\` and render a \\\`ScrollArea.Content\\\` inside the viewport.\`)},[f])}return S(he,{children:[c(e8,{nonce:n}),c(se.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...t.style},children:i?r:m?c(lM,{child:r,children:(p)=>c(Iw,{__scopeScrollArea:o,children:p})}):c(lM,{children:c(Iw,{__scopeScrollArea:o,children:r})})})]})},"ScrollAreaViewport")),e8=W.memo(de(function({nonce:t}){return c("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t})},"ScrollAreaViewportStyle"),(e,t)=>e.nonce===t.nonce),t8="ScrollAreaContent",Iw=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,children:r,...n}=t,i=qa(t8,o),s=Ie(a,i.onContentChange);return c(se.div,{...n,ref:s,style:{minWidth:"100%",display:"table",...t.style},children:r})},"ScrollAreaContent")),qr="ScrollAreaScrollbar",a8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=qa(qr,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=n,l=t.orientation===uu.Horizontal;return W.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),n.type===lu.Hover?c(o8,{...r,ref:a,forceMount:o}):n.type===lu.Scroll?c(r8,{...r,ref:a,forceMount:o}):n.type===lu.Auto?c(pM,{...r,ref:a,forceMount:o}):n.type===lu.Always?c(Tw,{...r,ref:a,"data-state":"visible"}):null},"ScrollAreaScrollbar")),o8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=qa(qr,t.__scopeScrollArea),[i,s]=W.useState(!1);return W.useEffect(()=>{let l=n.scrollArea,u=0;if(l){let d=de(()=>{window.clearTimeout(u),s(!0)},"handlePointerEnter"),m=de(()=>{u=window.setTimeout(()=>s(!1),n.scrollHideDelay)},"handlePointerLeave");return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",m),()=>{window.clearTimeout(u),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",m)}}},[n.scrollArea,n.scrollHideDelay]),c(No,{present:o||i,children:c(pM,{"data-state":i?"visible":"hidden",...r,ref:a})})},"ScrollAreaScrollbarHover")),r8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=qa(qr,t.__scopeScrollArea),i=t.orientation===uu.Horizontal,s=Kd(()=>u("SCROLL_END"),100),[l,u]=cM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return W.useEffect(()=>{if(l==="idle"){let d=window.setTimeout(()=>u("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,n.scrollHideDelay,u]),W.useEffect(()=>{let d=n.viewport,m=i?"scrollLeft":"scrollTop";if(d){let p=d[m],f=de(()=>{let g=d[m];if(p!==g)u("SCROLL"),s();p=g},"handleScroll");return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[n.viewport,i,u,s]),c(No,{present:o||l!=="hidden",children:c(Tw,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:a,onPointerEnter:ke(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ke(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),pM=W.forwardRef(de(function(t,a){let o=qa(qr,t.__scopeScrollArea),{forceMount:r,...n}=t,[i,s]=W.useState(!1),l=t.orientation===uu.Horizontal,u=Kd(()=>{if(o.viewport){let d=o.viewport.offsetWidth<o.viewport.scrollWidth,m=o.viewport.offsetHeight<o.viewport.scrollHeight;s(l?d:m)}},10);return ds(o.viewport,u),ds(o.content,u),c(No,{present:r||i,children:c(Tw,{"data-state":i?"visible":"hidden",...n,ref:a})})},"ScrollAreaScrollbarAuto")),Tw=W.forwardRef(de(function(t,a){let{orientation:o=uu.Vertical,...r}=t,n=qa(qr,t.__scopeScrollArea),i=W.useRef(null),s=W.useRef(0),[l,u]=W.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Ew(l.viewport,l.content),m={...r,sizes:l,onSizesChange:u,hasThumb:Boolean(d>0&&d<1),onThumbChange:de((f)=>i.current=f,"onThumbChange"),onThumbPointerUp:de(()=>s.current=0,"onThumbPointerUp"),onThumbPointerDown:de((f)=>s.current=f,"onThumbPointerDown")};function p(f,g){return yM(f,s.current,l,g)}if(de(p,"getScrollPosition"),o===uu.Horizontal)return c(n8,{...m,ref:a,onThumbPositionChange:()=>{if(n.viewport&&i.current){let f=n.viewport.scrollLeft,g=_w(f,l,n.dir);i.current.style.transform=\`translate3d(\${g}px, 0, 0)\`}},onWheelScroll:(f)=>{if(n.viewport)n.viewport.scrollLeft=f},onDragScroll:(f)=>{if(n.viewport)n.viewport.scrollLeft=p(f,n.dir)}});if(o===uu.Vertical)return c(i8,{...m,ref:a,onThumbPositionChange:()=>{if(n.viewport&&i.current){let f=n.viewport.scrollTop,g=_w(f,l);i.current.style.transform=\`translate3d(0, \${g}px, 0)\`}},onWheelScroll:(f)=>{if(n.viewport)n.viewport.scrollTop=f},onDragScroll:(f)=>{if(n.viewport)n.viewport.scrollTop=p(f)}});return null},"ScrollAreaScrollbarVisible")),n8=W.forwardRef(de(function(t,a){let{sizes:o,onSizesChange:r,...n}=t,i=qa(qr,t.__scopeScrollArea),[s,l]=W.useState(),u=W.useRef(null),d=Ie(a,u,i.onScrollbarXChange);return W.useEffect(()=>{if(u.current)l(getComputedStyle(u.current))},[u]),c(hM,{"data-orientation":"horizontal",...n,ref:d,sizes:o,style:{bottom:0,left:i.dir===rr.RTL?"var(--radix-scroll-area-corner-width)":0,right:i.dir===rr.LTR?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Zd(o)+"px",...t.style},onThumbPointerDown:(m)=>t.onThumbPointerDown(m.x),onDragScroll:(m)=>t.onDragScroll(m.x),onWheelScroll:(m,p)=>{if(i.viewport){let f=i.viewport.scrollLeft+m.deltaX;if(t.onWheelScroll(f),Aw(f,p))m.preventDefault()}},onResize:()=>{if(u.current&&i.viewport&&s)r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Vd(s.paddingLeft),paddingEnd:Vd(s.paddingRight)}})}})},"ScrollAreaScrollbarX")),i8=W.forwardRef(de(function(t,a){let{sizes:o,onSizesChange:r,...n}=t,i=qa(qr,t.__scopeScrollArea),[s,l]=W.useState(),u=W.useRef(null),d=Ie(a,u,i.onScrollbarYChange);return W.useEffect(()=>{if(u.current)l(getComputedStyle(u.current))},[u]),c(hM,{"data-orientation":"vertical",...n,ref:d,sizes:o,style:{top:0,right:i.dir===rr.LTR?0:void 0,left:i.dir===rr.RTL?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Zd(o)+"px",...t.style},onThumbPointerDown:(m)=>t.onThumbPointerDown(m.y),onDragScroll:(m)=>t.onDragScroll(m.y),onWheelScroll:(m,p)=>{if(i.viewport){let f=i.viewport.scrollTop+m.deltaY;if(t.onWheelScroll(f),Aw(f,p))m.preventDefault()}},onResize:()=>{if(u.current&&i.viewport&&s)r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Vd(s.paddingTop),paddingEnd:Vd(s.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[s8,mM]=fM(qr),hM=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,sizes:r,hasThumb:n,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:m,onResize:p,...f}=t,g=qa(qr,o),[y,b]=W.useState(null),h=Ie(a,b),x=W.useRef(null),v=W.useRef(""),w=g.viewport,C=r.content-r.viewport,I=_t(m),L=_t(u),k=Kd(p,10);function _(T){if(x.current){let O=T.clientX-x.current.left,D=T.clientY-x.current.top;d({x:O,y:D})}}return de(_,"handleDragScroll"),W.useEffect(()=>{let T=de((O)=>{let D=O.target;if(y?.contains(D))I(O,C)},"handleWheel");return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[w,y,C,I]),W.useEffect(L,[r,L]),ds(y,k),ds(g.content,k),c(s8,{scope:o,scrollbar:y,hasThumb:n,onThumbChange:_t(i),onThumbPointerUp:_t(s),onThumbPositionChange:L,onThumbPointerDown:_t(l),children:c(se.div,{...f,ref:h,style:{position:"absolute",...f.style},onPointerDown:ke(t.onPointerDown,(T)=>{if(T.button===0){if(T.target.setPointerCapture(T.pointerId),x.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport)g.viewport.style.scrollBehavior="auto";_(T)}}),onPointerMove:ke(t.onPointerMove,_),onPointerUp:ke(t.onPointerUp,(T)=>{let O=T.target;if(O.hasPointerCapture(T.pointerId))O.releasePointerCapture(T.pointerId);if(document.body.style.webkitUserSelect=v.current,g.viewport)g.viewport.style.scrollBehavior="";x.current=null})})})},"ScrollAreaScrollbarImpl")),Rw="ScrollAreaThumb",l8=W.forwardRef(de(function(t,a){let{forceMount:o,...r}=t,n=mM(Rw,t.__scopeScrollArea);return c(No,{present:o||n.hasThumb,children:c(u8,{ref:a,...r})})},"ScrollAreaThumb")),u8=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,style:r,...n}=t,i=qa(Rw,o),s=mM(Rw,o),{onThumbPositionChange:l}=s,u=Ie(a,s.onThumbChange),d=W.useRef(void 0),m=Kd(()=>{if(d.current)d.current(),d.current=void 0},100);return W.useEffect(()=>{let p=i.viewport;if(p){let f=de(()=>{if(m(),!d.current){let g=f8(p,l);d.current=g,l()}},"handleScroll");return l(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[i.viewport,m,l]),c(se.div,{"data-state":s.hasThumb?"visible":"hidden",...n,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ke(t.onPointerDownCapture,(p)=>{let g=p.target.getBoundingClientRect(),y=p.clientX-g.left,b=p.clientY-g.top;s.onThumbPointerDown({x:y,y:b})}),onPointerUp:ke(t.onPointerUp,s.onThumbPointerUp)})},"ScrollAreaThumbImpl")),gM="ScrollAreaCorner",c8=W.forwardRef(de(function(t,a){let o=qa(gM,t.__scopeScrollArea),r=Boolean(o.scrollbarX&&o.scrollbarY);return o.type!==lu.Scroll&&r?c(d8,{...t,ref:a}):null},"ScrollAreaCorner")),d8=W.forwardRef(de(function(t,a){let{__scopeScrollArea:o,...r}=t,n=qa(gM,o),[i,s]=W.useState(0),[l,u]=W.useState(0),d=Boolean(i&&l),{onCornerWidthChange:m,onCornerHeightChange:p}=n;return ds(n.scrollbarX,()=>{let f=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(f),u(f)}),ds(n.scrollbarY,()=>{let f=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(f),s(f)}),W.useEffect(()=>()=>{m(0),p(0)},[m,p]),d?c(se.div,{...r,ref:a,style:{width:i,height:l,position:"absolute",right:n.dir===rr.LTR?0:void 0,left:n.dir===rr.RTL?0:void 0,bottom:0,...t.style}}):null},"ScrollAreaCornerImpl"));function Vd(e){return e?parseInt(e,10):0}de(Vd,"toInt");function Ew(e,t){let a=e/t;return isNaN(a)?0:a}de(Ew,"getThumbRatio");function Zd(e){let t=Ew(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-a)*t;return Math.max(o,18)}de(Zd,"getThumbSize");function yM(e,t,a,o=rr.LTR){let r=Zd(a),n=r/2,i=t||n,s=r-i,l=a.scrollbar.paddingStart+i,u=a.scrollbar.size-a.scrollbar.paddingEnd-s,d=a.content-a.viewport,m=o===rr.LTR?[0,d]:[d*-1,0];return Nw([l,u],m)(e)}de(yM,"getScrollPositionFromPointer");function _w(e,t,a=rr.LTR){let o=Zd(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-r,i=t.content-t.viewport,s=n-o,l=a===rr.LTR?[0,i]:[i*-1,0],u=Cw(e,l);return Nw([0,i],[0,s])(u)}de(_w,"getThumbOffsetFromScroll");function Nw(e,t){return(a)=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(a-e[0])}}de(Nw,"linearScale");function Aw(e,t){return e>0&&e<t}de(Aw,"isScrollingWithinScrollbarBounds");var f8=de((e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},o=0;return de(function r(){let n={left:e.scrollLeft,top:e.scrollTop},i=a.left!==n.left,s=a.top!==n.top;if(i||s)t();a=n,o=window.requestAnimationFrame(r)},"loop")(),()=>window.cancelAnimationFrame(o)},"addUnlinkedScrollListener");function Kd(e,t){let a=_t(e),o=W.useRef(0);return W.useEffect(()=>()=>window.clearTimeout(o.current),[]),W.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(a,t)},[a,t])}de(Kd,"useDebounceCallback");function ds(e,t){let a=_t(t);dt(()=>{let o=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(a)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,a])}de(ds,"useResizeObserver");var xM=U(V(),1);var p8=Object.defineProperty,m8=(e,t)=>p8(e,"name",{value:t,configurable:!0}),h8="Toggle",vM=xM.forwardRef(m8(function(t,a){let{pressed:o,defaultPressed:r,onPressedChange:n,...i}=t,[s,l]=lo({prop:o,onChange:n,defaultProp:r??!1,caller:h8});return c(se.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":t.disabled?"":void 0,...i,ref:a,onClick:ke(t.onClick,()=>{if(!t.disabled)l(!s)})})},"Toggle"));var Xd={};ui(Xd,{Item:()=>B8,Root:()=>M8,ToggleGroup:()=>M8,ToggleGroupItem:()=>B8,createToggleGroupScope:()=>A8});var ra=U(V(),1);var Nt=U(V(),1);var Mo=U(V(),1);var La=U(V(),1);var g8=Object.defineProperty,Et=(e,t)=>g8(e,"name",{value:t,configurable:!0});function Pw(e){let t=e+"CollectionProvider",[a,o]=aa(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),i=Et((y)=>{let{scope:b,children:h}=y,x=Mo.useRef(null),v=Mo.useRef(new Map).current;return c(r,{scope:b,itemMap:v,collectionRef:x,children:h})},"CollectionProvider");i.displayName=t;let s=e+"CollectionSlot",l=Ga(s),u=Mo.forwardRef((y,b)=>{let{scope:h,children:x}=y,v=n(s,h),w=Ie(b,v.collectionRef);return c(l,{ref:w,children:x})});u.displayName=s;let d=e+"CollectionItemSlot",m="data-radix-collection-item",p=Ga(d),f=Mo.forwardRef((y,b)=>{let{scope:h,children:x,...v}=y,w=Mo.useRef(null),C=Ie(b,w),I=n(d,h);return Mo.useEffect(()=>(I.itemMap.set(w,{ref:w,...v}),()=>void I.itemMap.delete(w))),c(p,{...{[m]:""},ref:C,children:x})});f.displayName=d;function g(y){let b=n(e+"CollectionConsumer",y);return Mo.useCallback(()=>{let x=b.collectionRef.current;if(!x)return[];let v=Array.from(x.querySelectorAll(\`[\${m}]\`));return Array.from(b.itemMap.values()).sort((I,L)=>v.indexOf(I.ref.current)-v.indexOf(L.ref.current))},[b.collectionRef,b.itemMap])}return Et(g,"useCollection"),[{Provider:i,Slot:u,ItemSlot:f},g,o]}Et(Pw,"createCollection");var bM=new WeakMap,Mw=class e extends Map{static{Et(this,"OrderedDict")}#e;constructor(t){super(t);this.#e=[...super.keys()],bM.set(this,!0)}set(t,a){if(bM.get(this))if(this.has(t))this.#e[this.#e.indexOf(t)]=t;else this.#e.push(t);return super.set(t,a),this}insert(t,a,o){let r=this.has(a),n=this.#e.length,i=Ow(t),s=i>=0?i:n+i,l=s<0||s>=n?-1:s;if(l===this.size||r&&l===this.size-1||l===-1)return this.set(a,o),this;let u=this.size+(r?0:1);if(i<0)s++;let d=[...this.#e],m,p=!1;for(let f=s;f<u;f++)if(s===f){let g=d[f];if(d[f]===a)g=d[f+1];if(r)this.delete(a);m=this.get(g),this.set(a,o)}else{if(!p&&d[f-1]===a)p=!0;let g=d[p?f:f-1],y=m;m=this.get(g),this.delete(g),this.set(g,y)}return this}with(t,a,o){let r=new e(this);return r.insert(t,a,o),r}before(t){let a=this.#e.indexOf(t)-1;if(a<0)return;return this.entryAt(a)}setBefore(t,a,o){let r=this.#e.indexOf(t);if(r===-1)return this;return this.insert(r,a,o)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a===-1)return;return this.entryAt(a)}setAfter(t,a,o){let r=this.#e.indexOf(t);if(r===-1)return this;return this.insert(r+1,a,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);if(a)this.#e.splice(this.#e.indexOf(t),1);return a}deleteAt(t){let a=this.keyAt(t);if(a!==void 0)return this.delete(a);return!1}at(t){let a=Ih(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=Ih(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return Ih(this.#e,t)}from(t,a){let o=this.indexOf(t);if(o===-1)return;let r=o+a;if(r<0)r=0;if(r>=this.size)r=this.size-1;return this.at(r)}keyFrom(t,a){let o=this.indexOf(t);if(o===-1)return;let r=o+a;if(r<0)r=0;if(r>=this.size)r=this.size-1;return this.keyAt(r)}find(t,a){let o=0;for(let r of this){if(Reflect.apply(t,a,[r,o,this]))return r;o++}return}findIndex(t,a){let o=0;for(let r of this){if(Reflect.apply(t,a,[r,o,this]))return o;o++}return-1}filter(t,a){let o=[],r=0;for(let n of this){if(Reflect.apply(t,a,[n,r,this]))o.push(n);r++}return new e(o)}map(t,a){let o=[],r=0;for(let n of this)o.push([n[0],Reflect.apply(t,a,[n,r,this])]),r++;return new e(o)}reduce(...t){let[a,o]=t,r=0,n=o??this.at(0);for(let i of this){if(r===0&&t.length===1)n=i;else n=Reflect.apply(a,this,[n,i,r,this]);r++}return n}reduceRight(...t){let[a,o]=t,r=o??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);if(n===this.size-1&&t.length===1)r=i;else r=Reflect.apply(a,this,[r,i,n,this])}return r}toSorted(t){let a=[...this.entries()].sort(t);return new e(a)}toReversed(){let t=new e;for(let a=this.size-1;a>=0;a--){let o=this.keyAt(a),r=this.get(o);t.set(o,r)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new e(a)}slice(t,a){let o=new e,r=this.size-1;if(t===void 0)return o;if(t<0)t=t+this.size;if(a!==void 0&&a>0)r=a-1;for(let n=t;n<=r;n++){let i=this.keyAt(n),s=this.get(i);o.set(i,s)}return o}every(t,a){let o=0;for(let r of this){if(!Reflect.apply(t,a,[r,o,this]))return!1;o++}return!0}some(t,a){let o=0;for(let r of this){if(Reflect.apply(t,a,[r,o,this]))return!0;o++}return!1}};function Ih(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=wM(e,t);return a===-1?void 0:e[a]}Et(Ih,"at");function wM(e,t){let a=e.length,o=Ow(t),r=o>=0?o:a+o;return r<0||r>=a?-1:r}Et(wM,"toSafeIndex");function Ow(e){return e!==e||e===0?0:Math.trunc(e)}Et(Ow,"toSafeInteger");function y8(e){let t=e+"CollectionProvider",[a,o]=aa(t),[r,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Mw,setItemMap:Et(()=>{return},"setItemMap")}),i=Et(({state:v,...w})=>v?c(l,{...w,state:v}):c(s,{...w}),"CollectionProvider");i.displayName=t;let s=Et((v)=>{let w=b();return c(l,{...v,state:w})},"CollectionInit");s.displayName=t+"Init";let l=Et((v)=>{let{scope:w,children:C,state:I}=v,L=La.useRef(null),[k,_]=La.useState(null),T=Ie(L,_),[O,D]=I;return La.useEffect(()=>{if(!k)return;let z=CM(()=>{});return z.observe(k,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[k]),c(r,{scope:w,itemMap:O,setItemMap:D,collectionRef:T,collectionRefObject:L,collectionElement:k,children:C})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",d=Ga(u),m=La.forwardRef((v,w)=>{let{scope:C,children:I}=v,L=n(u,C),k=Ie(w,L.collectionRef);return c(d,{ref:k,children:I})});m.displayName=u;let p=e+"CollectionItemSlot",f="data-radix-collection-item",g=Ga(p),y=La.forwardRef((v,w)=>{let{scope:C,children:I,...L}=v,k=La.useRef(null),[_,T]=La.useState(null),O=Ie(w,k,T),D=n(p,C),{setItemMap:z}=D,R=La.useRef(L);if(!SM(R.current,L))R.current=L;let A=R.current;return La.useEffect(()=>{let E=A;return z((B)=>{if(!_)return B;if(!B.has(_))return B.set(_,{...E,element:_}),B.toSorted(Dw);return B.set(_,{...E,element:_}).toSorted(Dw)}),()=>{z((B)=>{if(!_||!B.has(_))return B;return B.delete(_),new Mw(B)})}},[_,A,z]),c(g,{...{[f]:""},ref:O,children:I})});y.displayName=p;function b(){return La.useState(new Mw)}Et(b,"useInitCollection");function h(v){let{itemMap:w}=n(e+"CollectionConsumer",v);return w}return Et(h,"useCollection"),[{Provider:i,Slot:m,ItemSlot:y},{createCollectionScope:o,useCollection:h,useInitCollection:b}]}Et(y8,"createCollection");function SM(e,t){if(e===t)return!0;if(typeof e!=="object"||typeof t!=="object")return!1;if(e==null||t==null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let r of a){if(!Object.prototype.hasOwnProperty.call(t,r))return!1;if(e[r]!==t[r])return!1}return!0}Et(SM,"shallowEqual");function LM(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Et(LM,"isElementPreceding");function Dw(e,t){return!e[1].element||!t[1].element?0:LM(e[1].element,t[1].element)?-1:1}Et(Dw,"sortByDocumentPosition");function CM(e){return new MutationObserver((a)=>{for(let o of a)if(o.type==="childList"){e();return}})}Et(CM,"getChildListObserver");var v8=U(V(),1),Rh=U(V(),1),x8=Object.defineProperty,Bw=(e,t)=>x8(e,"name",{value:t,configurable:!0}),zw=!1;function kM(){let[e,t]=Rh.useState(zw);return Rh.useEffect(()=>{if(!zw)zw=!0,t(!0)},[]),e}Bw(kM,"useIsHydrated");var IM=v8[" useSyncExternalStore ".trim().toString()];function RM(){return()=>{}}Bw(RM,"subscribe");function _M(){return IM(RM,()=>!0,()=>!1)}Bw(_M,"useIsHydratedModern");var TM=typeof IM==="function"?_M:kM;var b8=Object.defineProperty,fs=(e,t)=>b8(e,"name",{value:t,configurable:!0}),Fw="rovingFocusGroup.onEntryFocus",w8={bubbles:!1,cancelable:!0},_h="RovingFocusGroup",[Hw,NM,S8]=Pw(_h),[L8,Uw]=aa(_h,[S8]),EM={Vertical:"vertical",Horizontal:"horizontal"},C8={LTR:"ltr",RTL:"rtl"},[k8,I8]=L8(_h),AM=Nt.forwardRef(fs(function(t,a){return c(Hw.Provider,{scope:t.__scopeRovingFocusGroup,children:c(Hw.Slot,{scope:t.__scopeRovingFocusGroup,children:c(R8,{...t,ref:a})})})},"RovingFocusGroup")),R8=Nt.forwardRef(fs(function(t,a){let{__scopeRovingFocusGroup:o,orientation:r,loop:n=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...p}=t,f=Nt.useRef(null),g=Ie(a,f),y=cs(i),[b,h]=lo({prop:s,defaultProp:l??null,onChange:u,caller:_h}),[x,v]=Nt.useState(!1),w=_t(d),C=NM(o),I=Nt.useRef(!1),[L,k]=Nt.useState(0);return Nt.useEffect(()=>{let _=f.current;if(_)return _.addEventListener(Fw,w),()=>_.removeEventListener(Fw,w)},[w]),c(k8,{scope:o,orientation:r,dir:y,loop:n,currentTabStopId:b,onItemFocus:Nt.useCallback((_)=>h(_),[h]),onItemShiftTab:Nt.useCallback(()=>v(!0),[]),onFocusableItemAdd:Nt.useCallback(()=>k((_)=>_+1),[]),onFocusableItemRemove:Nt.useCallback(()=>k((_)=>_-1),[]),children:c(se.div,{tabIndex:x||L===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...t.style},onMouseDown:ke(t.onMouseDown,()=>{I.current=!0}),onFocus:ke(t.onFocus,(_)=>{let T=!I.current;if(_.target===_.currentTarget&&T&&!x){let O=new CustomEvent(Fw,w8);if(_.currentTarget.dispatchEvent(O),!O.defaultPrevented){let D=C().filter((B)=>B.focusable),z=D.find((B)=>B.active),R=D.find((B)=>B.id===b),E=[z,R,...D].filter(Boolean).map((B)=>B.ref.current);Gw(E,m)}}I.current=!1}),onBlur:ke(t.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),_8="RovingFocusGroupItem",MM=Nt.forwardRef(fs(function(t,a){let{__scopeRovingFocusGroup:o,focusable:r=!0,active:n=!1,tabStopId:i,children:s,...l}=t,u=Zt(),d=i||u,m=I8(_8,o),p=m.currentTabStopId===d,f=NM(o),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:b}=m,h=TM();return dt(()=>{if(!h||!r)return;return g(),()=>y()},[h,r,g,y]),Nt.useEffect(()=>{if(h||!r)return;return g(),()=>y()},[h,r,g,y]),c(Hw.ItemSlot,{scope:o,id:d,focusable:r,active:n,children:c(se.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...l,ref:a,onMouseDown:ke(t.onMouseDown,(x)=>{if(!r)x.preventDefault();else m.onItemFocus(d)}),onFocus:ke(t.onFocus,()=>m.onItemFocus(d)),onKeyDown:ke(t.onKeyDown,(x)=>{if(x.key==="Tab"&&x.shiftKey){m.onItemShiftTab();return}if(x.target!==x.currentTarget)return;let v=PM(x,m.orientation,m.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=f().filter((I)=>I.focusable).map((I)=>I.ref.current);if(v==="last")C.reverse();else if(v==="prev"||v==="next"){if(v==="prev")C.reverse();let I=C.indexOf(x.currentTarget);C=m.loop?OM(C,I+1):C.slice(I+1)}setTimeout(()=>Gw(C))}}),children:typeof s==="function"?s({isCurrentTabStop:p,hasTabStop:b!=null}):s})})},"RovingFocusGroupItem")),T8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function DM(e,t){if(t!==C8.RTL)return e;return e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}fs(DM,"getDirectionAwareKey");function PM(e,t,a){let o=DM(e.key,a);if(t===EM.Vertical&&["ArrowLeft","ArrowRight"].includes(o))return;if(t===EM.Horizontal&&["ArrowUp","ArrowDown"].includes(o))return;return T8[o]}fs(PM,"getFocusIntent");function Gw(e,t=!1){let a=document.activeElement;for(let o of e){if(o===a)return;if(o.focus({preventScroll:t}),document.activeElement!==a)return}}fs(Gw,"focusFirst");function OM(e,t){return e.map((a,o)=>e[(t+o)%e.length])}fs(OM,"wrapArray");var N8=Object.defineProperty,Jn=(e,t)=>N8(e,"name",{value:t,configurable:!0}),cu="ToggleGroup",jd={Single:"single",Multiple:"multiple"},[BM,A8]=aa(cu,[Uw]),FM=Uw(),M8=ra.forwardRef(Jn(function(t,a){let{type:o,...r}=t;if(o===jd.Single)return c(D8,{role:"radiogroup",...r,ref:a});if(o===jd.Multiple)return c(P8,{role:"toolbar",...r,ref:a});throw Error(\`Missing prop \\\`type\\\` expected on \\\`\${cu}\\\`\`)},"ToggleGroup")),[HM,UM]=BM(cu),D8=ra.forwardRef(Jn(function(t,a){let{value:o,defaultValue:r,onValueChange:n=Jn(()=>{},"onValueChange"),...i}=t,[s,l]=lo({prop:o,defaultProp:r??"",onChange:n,caller:cu});return c(HM,{scope:t.__scopeToggleGroup,type:jd.Single,value:ra.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:ra.useCallback(()=>l(""),[l]),children:c(GM,{...i,ref:a})})},"ToggleGroupImplSingle")),P8=ra.forwardRef(Jn(function(t,a){let{value:o,defaultValue:r,onValueChange:n=Jn(()=>{},"onValueChange"),...i}=t,[s,l]=lo({prop:o,defaultProp:r??[],onChange:n,caller:cu}),u=ra.useCallback((m)=>l((p=[])=>[...p,m]),[l]),d=ra.useCallback((m)=>l((p=[])=>p.filter((f)=>f!==m)),[l]);return c(HM,{scope:t.__scopeToggleGroup,type:jd.Multiple,value:s,onItemActivate:u,onItemDeactivate:d,children:c(GM,{...i,ref:a})})},"ToggleGroupImplMultiple")),[O8,z8]=BM(cu),GM=ra.forwardRef(Jn(function(t,a){let{__scopeToggleGroup:o,disabled:r=!1,rovingFocus:n=!0,orientation:i,dir:s,loop:l=!0,...u}=t,d=FM(o),m=cs(s),p={dir:m,...u};return c(O8,{scope:o,rovingFocus:n,disabled:r,children:n?c(AM,{asChild:!0,...d,orientation:i,dir:m,loop:l,children:c(se.div,{...p,ref:a})}):c(se.div,{...p,ref:a})})},"ToggleGroupImpl")),qw="ToggleGroupItem",B8=ra.forwardRef(Jn(function(t,a){let o=UM(qw,t.__scopeToggleGroup),r=z8(qw,t.__scopeToggleGroup),n=FM(t.__scopeToggleGroup),i=o.value.includes(t.value),s=r.disabled||t.disabled,l={...t,pressed:i,disabled:s},u=ra.useRef(null);return r.rovingFocus?c(MM,{asChild:!0,...n,focusable:!s,active:i,ref:u,children:c(zM,{...l,ref:a})}):c(zM,{...l,ref:a})},"ToggleGroupItem")),zM=ra.forwardRef(Jn(function(t,a){let{__scopeToggleGroup:o,value:r,...n}=t,i=UM(qw,o),s={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},l=i.type===jd.Single?s:void 0;return c(vM,{...l,...n,ref:a,onPressedChange:(u)=>{if(u)i.onItemActivate(r);else i.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));var F8=jl("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function vt({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let n=o?Ql.Root:"button";return c(n,{"data-slot":"button","data-variant":t,"data-size":a,className:P(F8({variant:t,size:a,className:e})),...r})}var du=["system","light","dark"];function Th(e){let t=e==="dark"||e==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",t)}var H8={level:null,selected:null,hiddenKinds:[],colorBy:"section",hiddenPackages:[]};function U8(){try{let e=localStorage.getItem(dx);return du.find((t)=>t===e)??"system"}catch{return"system"}}function G8(e){try{localStorage.setItem(dx,e)}catch{}}var De=Cy({colorMode:U8(),expanded:{},searchOpen:!1,graphView:H8},({setState:e})=>({setColorMode(t){e((a)=>({...a,colorMode:t})),Th(t),G8(t)},setExpanded(t,a){e((o)=>({...o,expanded:{...o.expanded,[t]:a}}))},reveal(t){e((a)=>{if(t.every((r)=>a.expanded[r]===!0))return a;let o={...a.expanded};for(let r of t)o[r]=!0;return{...a,expanded:o}})},setSearchOpen(t){e((a)=>({...a,searchOpen:t}))},setGraphLevel(t){e((a)=>({...a,graphView:{...a.graphView,level:t}}))},selectInGraph(t){e((a)=>({...a,graphView:{...a.graphView,selected:t}}))},focusInGraph(t,a){e((o)=>({...o,graphView:{...o.graphView,selected:t,level:a??o.graphView.level}}))},setHiddenEdgeKinds(t){e((a)=>({...a,graphView:{...a.graphView,hiddenKinds:t}}))},setGraphColorBy(t){e((a)=>({...a,graphView:{...a.graphView,colorBy:t}}))},setHiddenPackages(t){e((a)=>({...a,graphView:{...a.graphView,hiddenPackages:t}}))}}));function qM(){Th(De.get().colorMode),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>Th(De.get().colorMode))}function co({node:e,className:t}){let a=q(),{kind:o,name:r}=a.node(e);return c(vt,{asChild:!0,variant:"ghost",size:"icon",className:P("size-7 text-muted-foreground",t),children:c(rt,{to:"/graph","aria-label":\`Show \${r} in the graph\`,title:"Show in graph",onClick:()=>De.actions.focusInGraph(e,Ta(o)?"entries":void 0),children:c(_o,{})})})}var q8={prose:"max-w-3xl",wide:"max-w-5xl",full:""};function Ge({children:e,aside:t,width:a="prose"}){return S("div",{className:"flex gap-10 px-4 py-8 sm:px-8 lg:px-10 lg:py-10",children:[c("main",{className:P("min-w-0 flex-1",q8[a]),children:e}),t&&c("aside",{className:"sticky top-10 hidden h-fit max-h-[calc(100dvh-5rem)] w-56 shrink-0 overflow-y-auto xl:block",children:t})]})}var $8="rounded-xs outline-hidden hover:text-foreground hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50";function Je({node:e}){let t=q(),[a,...o]=t.ancestors(e);return S("nav",{"aria-label":"Breadcrumb",className:"mb-4 flex items-start gap-3",children:[S("ol",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-x-1.5 gap-y-1 py-1 font-mono text-muted-foreground text-xs",children:[a!==void 0&&c("li",{children:c(ie,{node:a,className:"rounded-sm bg-primary px-1.5 py-0.5 font-sans font-semibold text-primary-foreground outline-hidden hover:bg-primary/90 focus-visible:ring-3 focus-visible:ring-ring/50",children:t.node(a).name})}),o.map((r)=>S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,children:"/"}),c(ie,{node:r,className:P($8,"break-all"),children:t.node(r).name})]},r)),a!==void 0&&S("li",{"aria-current":"page",className:"flex items-center gap-1.5 font-medium text-foreground",children:[c("span",{"aria-hidden":!0,className:"font-normal text-muted-foreground",children:"/"}),c("span",{className:"break-all",children:t.node(e).name})]})]}),c(co,{node:e,className:"-my-0.5 shrink-0"})]})}function mt({headings:e}){if(e.length===0)return null;return S("nav",{"aria-label":"On this page",className:"text-sm",children:[c("p",{className:"mb-2 font-semibold",children:"On this page"}),c("ul",{className:"space-y-1.5 border-l",children:e.map((t)=>c("li",{children:c(rt,{to:".",hash:t.id,replace:!0,activeOptions:{exact:!0,includeHash:!0},className:P("-ml-px block border-transparent border-l py-0.5 pl-3 text-muted-foreground transition-colors [overflow-wrap:anywhere] hover:text-foreground aria-[current=page]:border-primary aria-[current=page]:font-medium aria-[current=page]:text-primary",t.depth>2&&"pl-6"),children:t.text})},t.id))})]})}var $M=U(V(),1);function Re(e){$M.useEffect(()=>{document.title=e},[e])}function fu({node:e,kind:t,anchor:a,title:o,meta:r,active:n,children:i}){return S("section",{id:Ve(t,a),"data-kind":t,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",n&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(ye,{kind:t}),c("h3",{className:"min-w-0 font-bold text-lg tracking-tight",children:c(ie,{node:e,className:"break-words rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o})}),r,c(co,{node:e,className:"-my-1 -mr-1.5 ml-auto"})]}),c("div",{className:"space-y-4 border-t p-4",children:i})]})}function $r({html:e,className:t,...a}){return c("div",{className:P("min-w-0",t),dangerouslySetInnerHTML:{__html:e},...a})}var ZM=U(V(),1);function VM(e){let t=e instanceof Element?e.closest("a"):null,a=t?.getAttribute("href")??t?.getAttribute(T0);return a?.startsWith("#")?a:null}function ze({html:e,compact:t=!1,className:a,...o}){let r=xe(),n=ZM.useMemo(()=>CE(e),[e]),i=(u)=>{if(u.startsWith("#/"))r.navigate({href:u.slice(1)});else r.navigate({to:".",hash:decodeURIComponent(u.slice(1)),replace:!0})},s=(u)=>{let d=VM(u.target);if(d===null||u.metaKey||u.ctrlKey||u.shiftKey)return;u.preventDefault(),i(d)},l=(u)=>{let d=u.key==="Enter"?VM(u.target):null;if(d===null||u.target.closest("a")?.hasAttribute("href"))return;u.preventDefault(),i(d)};return c("div",{className:P("prose",t&&"prose-compact",a),onClick:s,onKeyDown:l,dangerouslySetInnerHTML:{__html:n},...o})}function KM(e){if(e<1000)return\`\${e} bytes\`;return e<1e6?\`\${(e/1000).toFixed(0)} kB\`:\`\${(e/1e6).toFixed(1)} MB\`}function jt({content:e,name:t}){if(e.format==="markdown")return c(ze,{html:e.html});if(e.format==="text")return c($r,{html:e.html,className:"[&>pre]:max-h-[44rem]"});if(e.format==="image")return c("img",{src:e.src,alt:t,className:"max-w-full rounded-md border bg-card p-4"});return c("p",{className:"rounded-md border border-dashed px-4 py-6 text-center text-muted-foreground text-sm",children:e.reason==="binary"?\`This file is not text, so its content is not shown (\${KM(e.bytes)}).\`:\`This file is too large to show here (\${KM(e.bytes)}).\`})}function ei({node:e,kind:t,title:a}){let o=q(),r=o.edgesFrom(e).flatMap(([,n,i])=>n===t?[i]:[]);if(r.length===0)return null;return S("div",{className:"space-y-2",children:[c("h4",{className:"font-semibold text-sm",children:a}),c("ul",{className:"flex flex-wrap gap-x-3 gap-y-1",children:r.map((n)=>S("li",{className:"flex min-w-0 items-center gap-1.5",children:[c(ye,{kind:o.node(n).kind,className:"h-5 px-1.5 text-[0.6875rem]"}),c(ie,{node:n,className:"break-all rounded-xs font-medium font-mono text-[0.8125rem] text-primary leading-6 underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50",children:o.qualifiedName(n)})]},n))})]})}var jM=U(V(),1);function nr({node:e,title:t}){let a=q();return c(ie,{node:e,title:t,className:P("rounded-xs font-medium text-primary leading-6 underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50","text-[0.8125rem]",ql(a.node(e).kind)),children:a.qualifiedName(e)})}function pu({node:e}){let t=q(),a=jM.useMemo(()=>R0(t,e),[t,e]);if(a.length===0)return null;return S("div",{className:"space-y-2",children:[c("h4",{className:"font-semibold text-sm",children:"Similar in meaning"}),c("ul",{className:"flex flex-wrap gap-x-3 gap-y-1",children:a.map(({node:o,score:r})=>S("li",{className:"flex min-w-0 items-center gap-1.5",children:[c(ye,{kind:t.node(o).kind,className:"h-5 px-1.5 text-[0.6875rem]"}),c(nr,{node:o,title:\`Similarity \${Math.round(r*100)}%\`})]},o))})]})}function $a({status:e,className:t,children:a,...o}){return S("span",{"data-status":e,className:P("inline-flex items-center gap-1.5 rounded-md border border-status/40 bg-status/15 px-2 py-0.5 text-xs font-medium text-foreground",t),...o,children:[c("span",{"aria-hidden":!0,className:"size-1.5 rounded-full bg-status"}),a]})}var YM=U(V(),1);var XM=6,V8=["Parameter of","Field of","Request body of","Returned by","Response of","Thrown by","Error response of","Subtypes","Used by type","Part of","Referenced by table","Read by","Written by","Decisions","Used in","Mentioned in"];function Z8(e,[t,a]){let o=e.node(t).kind;if(o==="operation"&&a==="type")return"Request body of";if(o==="operation"&&a==="returns")return"Response of";if(o==="operation"&&a==="throws")return"Error response of";if(a==="type")return o==="field"?"Field of":"Parameter of";if(a==="returns")return"Returned by";if(a==="throws")return"Thrown by";if(a==="extends"&&o==="definition")return"Part of";if(a==="extends")return o==="type"?"Used by type":"Subtypes";if(a==="references")return"Referenced by table";if(a==="reads")return"Read by";if(a==="writes")return"Written by";if(a==="affects")return"Decisions";if(a==="uses")return"Used in";return"Mentioned in"}function K8(e,t){let a=new Map;for(let o of e.edgesTo(t)){let r=Z8(e,o),n=a.get(r)??new Set;n.add(o[0]),a.set(r,n)}return V8.flatMap((o)=>{let r=a.get(o);return r?[{label:o,sources:[...r]}]:[]})}function Le({node:e,title:t}){let a=q(),[o,r]=YM.useState(!1),n=K8(a,e);if(n.length===0)return null;let i=n.reduce((s,l)=>s+Math.max(0,l.sources.length-XM),0);return S("div",{className:"space-y-2",children:[c("h4",{className:"font-semibold text-sm",children:t}),c("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm",children:n.map((s)=>S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"text-muted-foreground leading-6",children:s.label}),c("dd",{className:"flex min-w-0 flex-wrap gap-x-3 gap-y-1",children:(o?s.sources:s.sources.slice(0,XM)).map((l)=>c(nr,{node:l},l))})]},s.label))}),i>0&&!o&&S("button",{type:"button",onClick:()=>r(!0),className:"rounded-xs font-medium text-primary text-sm underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50",children:["Show ",i," more"]})]})}var j8=[["accept","success"],["approv","success"],["adopt","success"],["propos","info"],["draft","info"],["open","info"],["supersed","off"],["deprecat","off"],["replac","off"],["reject","error"],["declin","error"]];function WM(e){let t=e.trim().toLowerCase();return j8.find(([a])=>t.startsWith(a))?.[1]??"unknown"}function QM({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=$w(a,e),n=r.map(({decision:s})=>({id:Ve("decision",s.anchor),text:JM(s.id,s.name),depth:2})),i=t.content.format==="markdown"&&t.content.html.includes("<h1");return S(Ge,{aside:c(mt,{headings:n}),children:[c(Je,{node:e}),S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"decisions"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),S("span",{className:"text-muted-foreground text-sm",children:[r.length," ",r.length===1?"decision":"decisions"]})]}),!i&&c("h1",{className:"mb-6 font-bold text-3xl tracking-tight",children:t.title}),c(jt,{content:t.content,name:t.name}),c(Vw,{decisions:r,active:o}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function JM(e,t){return e?\`\${e}. \${t}\`:t}function $w(e,t){return e.children(t).flatMap((a)=>{let o=e.node(a);return o.kind==="decision"?[{ref:a,decision:o}]:[]})}function Vw({decisions:e,active:t}){return c("div",{className:"mt-8 space-y-4",children:e.map(({ref:a,decision:o})=>S(fu,{node:a,kind:"decision",anchor:o.anchor,title:JM(o.id,o.name),active:a===t,meta:S(he,{children:[o.status&&c($a,{status:WM(o.status),children:o.status}),o.date&&c("span",{className:"font-mono text-muted-foreground text-xs",children:o.date})]}),children:[o.html&&c(ze,{compact:!0,html:o.html}),c(ei,{node:a,kind:"affects",title:"Affects"}),c(Le,{node:a,title:"Referenced by"}),c(pu,{node:a})]},a))})}var X8=jl("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function na({className:e,variant:t="default",asChild:a=!1,...o}){let r=a?Ql.Root:"span";return c(r,{"data-slot":"badge","data-variant":t,className:P(X8({variant:t}),e),...o})}function Y8(e){return\`group:\${e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}\`}function eD({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=Zw(a,e),n=r.reduce((l,u)=>l+u.terms.length,0),i=r.flatMap((l)=>[...l.name?[{id:l.id,text:l.name,depth:2}]:[],...l.terms.map(({term:u})=>({id:Ve("term",u.anchor),text:u.name,depth:3}))]),s=t.content.format==="markdown"&&t.content.html.includes("<h1");return S(Ge,{aside:c(mt,{headings:i}),children:[c(Je,{node:e}),S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"glossary"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),S("span",{className:"text-muted-foreground text-sm",children:[n," ",n===1?"term":"terms"]})]}),!s&&c("h1",{className:"mb-6 font-bold text-3xl tracking-tight",children:t.title}),c(jt,{content:t.content,name:t.name}),c(Kw,{groups:r,active:o}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function Zw(e,t){let a=[];for(let o of e.children(t)){let r=e.node(o);if(r.kind!=="term")continue;let n=a.at(-1);if(!n||n.name!==r.group)n={name:r.group,id:Y8(r.group),terms:[]},a.push(n);n.terms.push({ref:o,term:r})}return a}function Kw({groups:e,active:t}){return e.map((a)=>S("section",{"aria-label":a.name||"Terms",className:"mt-8 space-y-4",children:[a.name&&c("h2",{id:a.id,className:"scroll-mt-20 border-b pb-2 font-bold text-xl tracking-tight lg:scroll-mt-6",children:a.name}),a.terms.map(({ref:o,term:r})=>S(fu,{node:o,kind:"term",anchor:r.anchor,title:r.name,active:o===t,children:[r.definitionHtml&&c(ze,{compact:!0,html:r.definitionHtml}),r.avoid.length>0&&S("div",{className:"flex flex-wrap items-center gap-1.5 text-sm",children:[c("span",{className:"mr-1 font-semibold",children:"Avoid"}),r.avoid.map((n)=>c(na,{variant:"outline",className:"bg-background font-normal",children:n},n))]}),c(Le,{node:o,title:"Used by"}),c(pu,{node:o})]},o))]},a.id))}var W8={glossary:{title:"Glossary",file:"glossary.md",unit:["term","terms"],goal:"recording a glossary"},decisions:{title:"Decisions",file:"decisions.md",unit:["decision","decisions"],goal:"recording decisions"}};function jw({kind:e}){let t=q(),a=ct(),{title:o,file:r,unit:n,goal:i}=W8[e];Re(\`\${o} \xB7 \${t.meta.title}\`);let s=[];for(let{node:u}of t.sections)for(let d of t.descendants(u)){let m=t.node(d);if(m.kind===e)s.push({ref:d,file:m})}if(s.length===0)return c(Ul,{title:\`No \${r} yet\`,children:S("p",{children:["Create a ",c("code",{className:"font-mono text-foreground",children:r})," file to start ",i,", then run the command again."]})});let l=s.map(({ref:u,file:d})=>({id:\`file-\${u}\`,text:d.path,depth:2}));return S(Ge,{aside:c(mt,{headings:l}),children:[S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:e}),c("h1",{className:"font-bold text-3xl tracking-tight",children:o}),S("span",{className:"text-muted-foreground text-sm",children:[s.length," ",s.length===1?"file":"files"]})]}),s.map(({ref:u,file:d})=>{let m=e==="decisions"?$w(t,u):[],p=e==="glossary"?Zw(t,u):[],f=e==="decisions"?m.length:p.reduce((g,y)=>g+y.terms.length,0);return S("section",{"aria-label":d.path,className:"mt-12 first-of-type:mt-0",children:[S("h2",{id:\`file-\${u}\`,className:"flex scroll-mt-20 flex-wrap items-baseline gap-x-3 border-b pb-2 lg:scroll-mt-6",children:[c(ie,{node:u,className:"break-all font-mono font-semibold text-lg hover:underline",children:d.path}),S("span",{className:"font-normal text-muted-foreground text-sm",children:[f," ",f===1?n[0]:n[1]]})]}),e==="decisions"?c(Vw,{decisions:m,active:a}):c(Kw,{groups:p,active:a})]},u)})]})}var lr=U(V(),1);var Q8={typing:"stroke-edge-typing",result:"stroke-edge-result",prose:"stroke-edge-prose",term:"stroke-edge-term",key:"stroke-edge-key",query:"stroke-edge-query",task:"stroke-edge-task"},Eh=Object.fromEntries(Ti.map((e)=>{let{family:t,dashed:a}=wr[e];return[e,{family:t,dashed:a,stroke:Q8[t]}]})),Nh="4 4";function Ah({kind:e,className:t}){let{stroke:a,dashed:o}=Eh[e];return c("svg",{"aria-hidden":!0,"data-edge-sample":e,viewBox:"0 0 16 16",className:P("size-4 shrink-0 fill-none",a,t),children:c("path",{d:"M1 8H15",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:o?Nh:void 0})})}var Oo=U(V(),1);var J8={value:()=>{}};function aD(){for(var e=0,t=arguments.length,a={},o;e<t;++e){if(!(o=arguments[e]+"")||o in a||/[\\s.]/.test(o))throw Error("illegal type: "+o);a[o]=[]}return new Mh(a)}function Mh(e){this._=e}function eq(e,t){return e.trim().split(/^|\\s+/).map(function(a){var o="",r=a.indexOf(".");if(r>=0)o=a.slice(r+1),a=a.slice(0,r);if(a&&!t.hasOwnProperty(a))throw Error("unknown type: "+a);return{type:a,name:o}})}Mh.prototype=aD.prototype={constructor:Mh,on:function(e,t){var a=this._,o=eq(e+"",a),r,n=-1,i=o.length;if(arguments.length<2){while(++n<i)if((r=(e=o[n]).type)&&(r=tq(a[r],e.name)))return r;return}if(t!=null&&typeof t!=="function")throw Error("invalid callback: "+t);while(++n<i)if(r=(e=o[n]).type)a[r]=tD(a[r],e.name,t);else if(t==null)for(r in a)a[r]=tD(a[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var a in t)e[a]=t[a].slice();return new Mh(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var a=Array(r),o=0,r,n;o<r;++o)a[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(n=this._[e],o=0,r=n.length;o<r;++o)n[o].value.apply(t,a)},apply:function(e,t,a){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var o=this._[e],r=0,n=o.length;r<n;++r)o[r].value.apply(t,a)}};function tq(e,t){for(var a=0,o=e.length,r;a<o;++a)if((r=e[a]).name===t)return r.value}function tD(e,t,a){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=J8,e=e.slice(0,o).concat(e.slice(o+1));break}if(a!=null)e.push({name:t,value:a});return e}var Vr=aD;function mu(e){return function(){return this.matches(e)}}function Dh(e){return function(t){return t.matches(e)}}var Ph="http://www.w3.org/1999/xhtml",Xw={svg:"http://www.w3.org/2000/svg",xhtml:Ph,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ir(e){var t=e+="",a=t.indexOf(":");if(a>=0&&(t=e.slice(0,a))!=="xmlns")e=e.slice(a+1);return Xw.hasOwnProperty(t)?{space:Xw[t],local:e}:e}function Yw(e){let t;while(t=e.sourceEvent)e=t;return e}function ia(e,t){if(e=Yw(e),t===void 0)t=e.currentTarget;if(t){var a=t.ownerSVGElement||t;if(a.createSVGPoint){var o=a.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}function aq(){}function ti(e){return e==null?aq:function(){return this.querySelector(e)}}function Ww(e){if(typeof e!=="function")e=ti(e);for(var t=this._groups,a=t.length,o=Array(a),r=0;r<a;++r)for(var n=t[r],i=n.length,s=o[r]=Array(i),l,u,d=0;d<i;++d)if((l=n[d])&&(u=e.call(l,l.__data__,d,n))){if("__data__"in l)u.__data__=l.__data__;s[d]=u}return new et(o,this._parents)}function Qw(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function oq(){return[]}function hu(e){return e==null?oq:function(){return this.querySelectorAll(e)}}function rq(e){return function(){return Qw(e.apply(this,arguments))}}function Jw(e){if(typeof e==="function")e=rq(e);else e=hu(e);for(var t=this._groups,a=t.length,o=[],r=[],n=0;n<a;++n)for(var i=t[n],s=i.length,l,u=0;u<s;++u)if(l=i[u])o.push(e.call(l,l.__data__,u,i)),r.push(l);return new et(o,r)}var nq=Array.prototype.find;function iq(e){return function(){return nq.call(this.children,e)}}function sq(){return this.firstElementChild}function eS(e){return this.select(e==null?sq:iq(typeof e==="function"?e:Dh(e)))}var lq=Array.prototype.filter;function uq(){return Array.from(this.children)}function cq(e){return function(){return lq.call(this.children,e)}}function tS(e){return this.selectAll(e==null?uq:cq(typeof e==="function"?e:Dh(e)))}function aS(e){if(typeof e!=="function")e=mu(e);for(var t=this._groups,a=t.length,o=Array(a),r=0;r<a;++r)for(var n=t[r],i=n.length,s=o[r]=[],l,u=0;u<i;++u)if((l=n[u])&&e.call(l,l.__data__,u,n))s.push(l);return new et(o,this._parents)}function Yd(e){return Array(e.length)}function oS(){return new et(this._enter||this._groups.map(Yd),this._parents)}function Wd(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Wd.prototype={constructor:Wd,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function rS(e){return function(){return e}}function dq(e,t,a,o,r,n){var i=0,s,l=t.length,u=n.length;for(;i<u;++i)if(s=t[i])s.__data__=n[i],o[i]=s;else a[i]=new Wd(e,n[i]);for(;i<l;++i)if(s=t[i])r[i]=s}function fq(e,t,a,o,r,n,i){var s,l,u=new Map,d=t.length,m=n.length,p=Array(d),f;for(s=0;s<d;++s)if(l=t[s])if(p[s]=f=i.call(l,l.__data__,s,t)+"",u.has(f))r[s]=l;else u.set(f,l);for(s=0;s<m;++s)if(f=i.call(e,n[s],s,n)+"",l=u.get(f))o[s]=l,l.__data__=n[s],u.delete(f);else a[s]=new Wd(e,n[s]);for(s=0;s<d;++s)if((l=t[s])&&u.get(p[s])===l)r[s]=l}function pq(e){return e.__data__}function nS(e,t){if(!arguments.length)return Array.from(this,pq);var a=t?fq:dq,o=this._parents,r=this._groups;if(typeof e!=="function")e=rS(e);for(var n=r.length,i=Array(n),s=Array(n),l=Array(n),u=0;u<n;++u){var d=o[u],m=r[u],p=m.length,f=mq(e.call(d,d&&d.__data__,u,o)),g=f.length,y=s[u]=Array(g),b=i[u]=Array(g),h=l[u]=Array(p);a(d,m,y,b,h,f,t);for(var x=0,v=0,w,C;x<g;++x)if(w=y[x]){if(x>=v)v=x+1;while(!(C=b[v])&&++v<g);w._next=C||null}}return i=new et(i,o),i._enter=s,i._exit=l,i}function mq(e){return typeof e==="object"&&"length"in e?e:Array.from(e)}function iS(){return new et(this._exit||this._groups.map(Yd),this._parents)}function sS(e,t,a){var o=this.enter(),r=this,n=this.exit();if(typeof e==="function"){if(o=e(o),o)o=o.selection()}else o=o.append(e+"");if(t!=null){if(r=t(r),r)r=r.selection()}if(a==null)n.remove();else a(n);return o&&r?o.merge(r).order():r}function lS(e){var t=e.selection?e.selection():e;for(var a=this._groups,o=t._groups,r=a.length,n=o.length,i=Math.min(r,n),s=Array(r),l=0;l<i;++l)for(var u=a[l],d=o[l],m=u.length,p=s[l]=Array(m),f,g=0;g<m;++g)if(f=u[g]||d[g])p[g]=f;for(;l<r;++l)s[l]=a[l];return new et(s,this._parents)}function uS(){for(var e=this._groups,t=-1,a=e.length;++t<a;)for(var o=e[t],r=o.length-1,n=o[r],i;--r>=0;)if(i=o[r]){if(n&&i.compareDocumentPosition(n)^4)n.parentNode.insertBefore(i,n);n=i}return this}function cS(e){if(!e)e=hq;function t(m,p){return m&&p?e(m.__data__,p.__data__):!m-!p}for(var a=this._groups,o=a.length,r=Array(o),n=0;n<o;++n){for(var i=a[n],s=i.length,l=r[n]=Array(s),u,d=0;d<s;++d)if(u=i[d])l[d]=u;l.sort(t)}return new et(r,this._parents).order()}function hq(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function dS(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function fS(){return Array.from(this)}function pS(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var o=e[t],r=0,n=o.length;r<n;++r){var i=o[r];if(i)return i}return null}function mS(){let e=0;for(let t of this)++e;return e}function hS(){return!this.node()}function gS(e){for(var t=this._groups,a=0,o=t.length;a<o;++a)for(var r=t[a],n=0,i=r.length,s;n<i;++n)if(s=r[n])e.call(s,s.__data__,n,r);return this}function gq(e){return function(){this.removeAttribute(e)}}function yq(e){return function(){this.removeAttributeNS(e.space,e.local)}}function xq(e,t){return function(){this.setAttribute(e,t)}}function vq(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function bq(e,t){return function(){var a=t.apply(this,arguments);if(a==null)this.removeAttribute(e);else this.setAttribute(e,a)}}function wq(e,t){return function(){var a=t.apply(this,arguments);if(a==null)this.removeAttributeNS(e.space,e.local);else this.setAttributeNS(e.space,e.local,a)}}function yS(e,t){var a=ir(e);if(arguments.length<2){var o=this.node();return a.local?o.getAttributeNS(a.space,a.local):o.getAttribute(a)}return this.each((t==null?a.local?yq:gq:typeof t==="function"?a.local?wq:bq:a.local?vq:xq)(a,t))}function Qd(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Sq(e){return function(){this.style.removeProperty(e)}}function Lq(e,t,a){return function(){this.style.setProperty(e,t,a)}}function Cq(e,t,a){return function(){var o=t.apply(this,arguments);if(o==null)this.style.removeProperty(e);else this.style.setProperty(e,o,a)}}function xS(e,t,a){return arguments.length>1?this.each((t==null?Sq:typeof t==="function"?Cq:Lq)(e,t,a==null?"":a)):ai(this.node(),e)}function ai(e,t){return e.style.getPropertyValue(t)||Qd(e).getComputedStyle(e,null).getPropertyValue(t)}function kq(e){return function(){delete this[e]}}function Iq(e,t){return function(){this[e]=t}}function Rq(e,t){return function(){var a=t.apply(this,arguments);if(a==null)delete this[e];else this[e]=a}}function vS(e,t){return arguments.length>1?this.each((t==null?kq:typeof t==="function"?Rq:Iq)(e,t)):this.node()[e]}function oD(e){return e.trim().split(/^|\\s+/)}function bS(e){return e.classList||new rD(e)}function rD(e){this._node=e,this._names=oD(e.getAttribute("class")||"")}rD.prototype={add:function(e){var t=this._names.indexOf(e);if(t<0)this._names.push(e),this._node.setAttribute("class",this._names.join(" "))},remove:function(e){var t=this._names.indexOf(e);if(t>=0)this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(e){return this._names.indexOf(e)>=0}};function nD(e,t){var a=bS(e),o=-1,r=t.length;while(++o<r)a.add(t[o])}function iD(e,t){var a=bS(e),o=-1,r=t.length;while(++o<r)a.remove(t[o])}function _q(e){return function(){nD(this,e)}}function Tq(e){return function(){iD(this,e)}}function Eq(e,t){return function(){(t.apply(this,arguments)?nD:iD)(this,e)}}function wS(e,t){var a=oD(e+"");if(arguments.length<2){var o=bS(this.node()),r=-1,n=a.length;while(++r<n)if(!o.contains(a[r]))return!1;return!0}return this.each((typeof t==="function"?Eq:t?_q:Tq)(a,t))}function Nq(){this.textContent=""}function Aq(e){return function(){this.textContent=e}}function Mq(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function SS(e){return arguments.length?this.each(e==null?Nq:(typeof e==="function"?Mq:Aq)(e)):this.node().textContent}function Dq(){this.innerHTML=""}function Pq(e){return function(){this.innerHTML=e}}function Oq(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function LS(e){return arguments.length?this.each(e==null?Dq:(typeof e==="function"?Oq:Pq)(e)):this.node().innerHTML}function zq(){if(this.nextSibling)this.parentNode.appendChild(this)}function CS(){return this.each(zq)}function Bq(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kS(){return this.each(Bq)}function Fq(e){return function(){var t=this.ownerDocument,a=this.namespaceURI;return a===Ph&&t.documentElement.namespaceURI===Ph?t.createElement(e):t.createElementNS(a,e)}}function Hq(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Jd(e){var t=ir(e);return(t.local?Hq:Fq)(t)}function IS(e){var t=typeof e==="function"?e:Jd(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Uq(){return null}function RS(e,t){var a=typeof e==="function"?e:Jd(e),o=t==null?Uq:typeof t==="function"?t:ti(t);return this.select(function(){return this.insertBefore(a.apply(this,arguments),o.apply(this,arguments)||null)})}function Gq(){var e=this.parentNode;if(e)e.removeChild(this)}function _S(){return this.each(Gq)}function qq(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function $q(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function TS(e){return this.select(e?$q:qq)}function ES(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Vq(e){return function(t){e.call(this,t,this.__data__)}}function Zq(e){return e.trim().split(/^|\\s+/).map(function(t){var a="",o=t.indexOf(".");if(o>=0)a=t.slice(o+1),t=t.slice(0,o);return{type:t,name:a}})}function Kq(e){return function(){var t=this.__on;if(!t)return;for(var a=0,o=-1,r=t.length,n;a<r;++a)if(n=t[a],(!e.type||n.type===e.type)&&n.name===e.name)this.removeEventListener(n.type,n.listener,n.options);else t[++o]=n;if(++o)t.length=o;else delete this.__on}}function jq(e,t,a){return function(){var o=this.__on,r,n=Vq(t);if(o){for(var i=0,s=o.length;i<s;++i)if((r=o[i]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=n,r.options=a),r.value=t;return}}if(this.addEventListener(e.type,n,a),r={type:e.type,name:e.name,value:t,listener:n,options:a},!o)this.__on=[r];else o.push(r)}}function NS(e,t,a){var o=Zq(e+""),r,n=o.length,i;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,d;l<u;++l)for(r=0,d=s[l];r<n;++r)if((i=o[r]).type===d.type&&i.name===d.name)return d.value}return}s=t?jq:Kq;for(r=0;r<n;++r)this.each(s(o[r],t,a));return this}function sD(e,t,a){var o=Qd(e),r=o.CustomEvent;if(typeof r==="function")r=new r(t,a);else if(r=o.document.createEvent("Event"),a)r.initEvent(t,a.bubbles,a.cancelable),r.detail=a.detail;else r.initEvent(t,!1,!1);e.dispatchEvent(r)}function Xq(e,t){return function(){return sD(this,e,t)}}function Yq(e,t){return function(){return sD(this,e,t.apply(this,arguments))}}function AS(e,t){return this.each((typeof t==="function"?Yq:Xq)(e,t))}function*MS(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var o=e[t],r=0,n=o.length,i;r<n;++r)if(i=o[r])yield i}var DS=[null];function et(e,t){this._groups=e,this._parents=t}function lD(){return new et([[document.documentElement]],DS)}function Wq(){return this}et.prototype=lD.prototype={constructor:et,select:Ww,selectAll:Jw,selectChild:eS,selectChildren:tS,filter:aS,data:nS,enter:oS,exit:iS,join:sS,merge:lS,selection:Wq,order:uS,sort:cS,call:dS,nodes:fS,node:pS,size:mS,empty:hS,each:gS,attr:yS,style:xS,property:vS,classed:wS,text:SS,html:LS,raise:CS,lower:kS,append:IS,insert:RS,remove:_S,clone:TS,datum:ES,on:NS,dispatch:AS,[Symbol.iterator]:MS};var Zr=lD;function ht(e){return typeof e==="string"?new et([[document.querySelector(e)]],[document.documentElement]):new et([[e]],DS)}var uD={passive:!1},ps={capture:!0,passive:!1};function Oh(e){e.stopImmediatePropagation()}function Kr(e){e.preventDefault(),e.stopImmediatePropagation()}function gu(e){var t=e.document.documentElement,a=ht(e).on("dragstart.drag",Kr,ps);if("onselectstart"in t)a.on("selectstart.drag",Kr,ps);else t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none"}function ef(e,t){var a=e.document.documentElement,o=ht(e).on("dragstart.drag",null);if(t)o.on("click.drag",Kr,ps),setTimeout(function(){o.on("click.drag",null)},0);if("onselectstart"in a)o.on("selectstart.drag",null);else a.style.MozUserSelect=a.__noselect,delete a.__noselect}var tf=(e)=>()=>e;function af(e,{sourceEvent:t,subject:a,target:o,identifier:r,active:n,x:i,y:s,dx:l,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:a,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:n,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}af.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Qq(e){return!e.ctrlKey&&!e.button}function Jq(){return this.parentNode}function e$(e,t){return t==null?{x:e.x,y:e.y}:t}function t$(){return navigator.maxTouchPoints||"ontouchstart"in this}function zh(){var e=Qq,t=Jq,a=e$,o=t$,r={},n=Vr("start","drag","end"),i=0,s,l,u,d,m=0;function p(w){w.on("mousedown.drag",f).filter(o).on("touchstart.drag",b).on("touchmove.drag",h,uD).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(w,C){if(d||!e.call(this,w,C))return;var I=v(this,t.call(this,w,C),w,C,"mouse");if(!I)return;ht(w.view).on("mousemove.drag",g,ps).on("mouseup.drag",y,ps),gu(w.view),Oh(w),u=!1,s=w.clientX,l=w.clientY,I("start",w)}function g(w){if(Kr(w),!u){var C=w.clientX-s,I=w.clientY-l;u=C*C+I*I>m}r.mouse("drag",w)}function y(w){ht(w.view).on("mousemove.drag mouseup.drag",null),ef(w.view,u),Kr(w),r.mouse("end",w)}function b(w,C){if(!e.call(this,w,C))return;var I=w.changedTouches,L=t.call(this,w,C),k=I.length,_,T;for(_=0;_<k;++_)if(T=v(this,L,w,C,I[_].identifier,I[_]))Oh(w),T("start",w,I[_])}function h(w){var C=w.changedTouches,I=C.length,L,k;for(L=0;L<I;++L)if(k=r[C[L].identifier])Kr(w),k("drag",w,C[L])}function x(w){var C=w.changedTouches,I=C.length,L,k;if(d)clearTimeout(d);d=setTimeout(function(){d=null},500);for(L=0;L<I;++L)if(k=r[C[L].identifier])Oh(w),k("end",w,C[L])}function v(w,C,I,L,k,_){var T=n.copy(),O=ia(_||I,C),D,z,R;if((R=a.call(w,new af("beforestart",{sourceEvent:I,target:p,identifier:k,active:i,x:O[0],y:O[1],dx:0,dy:0,dispatch:T}),L))==null)return;return D=R.x-O[0]||0,z=R.y-O[1]||0,function A(E,B,X){var ee=O,F;switch(E){case"start":r[k]=A,F=i++;break;case"end":delete r[k],--i;case"drag":O=ia(X||B,C),F=i;break}T.call(E,w,new af(E,{sourceEvent:B,subject:R,target:p,identifier:k,active:F,x:O[0]+D,y:O[1]+z,dx:O[0]-ee[0],dy:O[1]-ee[1],dispatch:T}),L)}}return p.filter=function(w){return arguments.length?(e=typeof w==="function"?w:tf(!!w),p):e},p.container=function(w){return arguments.length?(t=typeof w==="function"?w:tf(w),p):t},p.subject=function(w){return arguments.length?(a=typeof w==="function"?w:tf(w),p):a},p.touchable=function(w){return arguments.length?(o=typeof w==="function"?w:tf(!!w),p):o},p.on=function(){var w=n.on.apply(n,arguments);return w===n?p:w},p.clickDistance=function(w){return arguments.length?(m=(w=+w)*w,p):Math.sqrt(m)},p}function PS(e){let t=+this._x.call(null,e),a=+this._y.call(null,e);return cD(this.cover(t,a),t,a,e)}function cD(e,t,a,o){if(isNaN(t)||isNaN(a))return e;var r,n=e._root,i={data:o},s=e._x0,l=e._y0,u=e._x1,d=e._y1,m,p,f,g,y,b,h,x;if(!n)return e._root=i,e;while(n.length){if(y=t>=(m=(s+u)/2))s=m;else u=m;if(b=a>=(p=(l+d)/2))l=p;else d=p;if(r=n,!(n=n[h=b<<1|y]))return r[h]=i,e}if(f=+e._x.call(null,n.data),g=+e._y.call(null,n.data),t===f&&a===g)return i.next=n,r?r[h]=i:e._root=i,e;do{if(r=r?r[h]=[,,,,]:e._root=[,,,,],y=t>=(m=(s+u)/2))s=m;else u=m;if(b=a>=(p=(l+d)/2))l=p;else d=p}while((h=b<<1|y)===(x=(g>=p)<<1|f>=m));return r[x]=n,r[h]=i,e}function dD(e){var t,a,o=e.length,r,n,i=Array(o),s=Array(o),l=1/0,u=1/0,d=-1/0,m=-1/0;for(a=0;a<o;++a){if(isNaN(r=+this._x.call(null,t=e[a]))||isNaN(n=+this._y.call(null,t)))continue;if(i[a]=r,s[a]=n,r<l)l=r;if(r>d)d=r;if(n<u)u=n;if(n>m)m=n}if(l>d||u>m)return this;this.cover(l,u).cover(d,m);for(a=0;a<o;++a)cD(this,i[a],s[a],e[a]);return this}function OS(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var a=this._x0,o=this._y0,r=this._x1,n=this._y1;if(isNaN(a))r=(a=Math.floor(e))+1,n=(o=Math.floor(t))+1;else{var i=r-a||1,s=this._root,l,u;while(a>e||e>=r||o>t||t>=n)switch(u=(t<o)<<1|e<a,l=[,,,,],l[u]=s,s=l,i*=2,u){case 0:r=a+i,n=o+i;break;case 1:a=r-i,n=o+i;break;case 2:r=a+i,o=n-i;break;case 3:a=r-i,o=n-i;break}if(this._root&&this._root.length)this._root=s}return this._x0=a,this._y0=o,this._x1=r,this._y1=n,this}function zS(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function BS(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function bt(e,t,a,o,r){this.node=e,this.x0=t,this.y0=a,this.x1=o,this.y1=r}function FS(e,t,a){var o,r=this._x0,n=this._y0,i,s,l,u,d=this._x1,m=this._y1,p=[],f=this._root,g,y;if(f)p.push(new bt(f,r,n,d,m));if(a==null)a=1/0;else r=e-a,n=t-a,d=e+a,m=t+a,a*=a;while(g=p.pop()){if(!(f=g.node)||(i=g.x0)>d||(s=g.y0)>m||(l=g.x1)<r||(u=g.y1)<n)continue;if(f.length){var b=(i+l)/2,h=(s+u)/2;if(p.push(new bt(f[3],b,h,l,u),new bt(f[2],i,h,b,u),new bt(f[1],b,s,l,h),new bt(f[0],i,s,b,h)),y=(t>=h)<<1|e>=b)g=p[p.length-1],p[p.length-1]=p[p.length-1-y],p[p.length-1-y]=g}else{var x=e-+this._x.call(null,f.data),v=t-+this._y.call(null,f.data),w=x*x+v*v;if(w<a){var C=Math.sqrt(a=w);r=e-C,n=t-C,d=e+C,m=t+C,o=f.data}}}return o}function HS(e){if(isNaN(d=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,a=this._root,o,r,n,i=this._x0,s=this._y0,l=this._x1,u=this._y1,d,m,p,f,g,y,b,h;if(!a)return this;if(a.length)while(!0){if(g=d>=(p=(i+l)/2))i=p;else l=p;if(y=m>=(f=(s+u)/2))s=f;else u=f;if(t=a,!(a=a[b=y<<1|g]))return this;if(!a.length)break;if(t[b+1&3]||t[b+2&3]||t[b+3&3])o=t,h=b}while(a.data!==e)if(r=a,!(a=a.next))return this;if(n=a.next)delete a.next;if(r)return n?r.next=n:delete r.next,this;if(!t)return this._root=n,this;if(n?t[b]=n:delete t[b],(a=t[0]||t[1]||t[2]||t[3])&&a===(t[3]||t[2]||t[1]||t[0])&&!a.length)if(o)o[h]=a;else this._root=a;return this}function fD(e){for(var t=0,a=e.length;t<a;++t)this.remove(e[t]);return this}function US(){return this._root}function GS(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function qS(e){var t=[],a,o=this._root,r,n,i,s,l;if(o)t.push(new bt(o,this._x0,this._y0,this._x1,this._y1));while(a=t.pop())if(!e(o=a.node,n=a.x0,i=a.y0,s=a.x1,l=a.y1)&&o.length){var u=(n+s)/2,d=(i+l)/2;if(r=o[3])t.push(new bt(r,u,d,s,l));if(r=o[2])t.push(new bt(r,n,d,u,l));if(r=o[1])t.push(new bt(r,u,i,s,d));if(r=o[0])t.push(new bt(r,n,i,u,d))}return this}function $S(e){var t=[],a=[],o;if(this._root)t.push(new bt(this._root,this._x0,this._y0,this._x1,this._y1));while(o=t.pop()){var r=o.node;if(r.length){var n,i=o.x0,s=o.y0,l=o.x1,u=o.y1,d=(i+l)/2,m=(s+u)/2;if(n=r[0])t.push(new bt(n,i,s,d,m));if(n=r[1])t.push(new bt(n,d,s,l,m));if(n=r[2])t.push(new bt(n,i,m,d,u));if(n=r[3])t.push(new bt(n,d,m,l,u))}a.push(o)}while(o=a.pop())e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function pD(e){return e[0]}function VS(e){return arguments.length?(this._x=e,this):this._x}function mD(e){return e[1]}function ZS(e){return arguments.length?(this._y=e,this):this._y}function ms(e,t,a){var o=new KS(t==null?pD:t,a==null?mD:a,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function KS(e,t,a,o,r,n){this._x=e,this._y=t,this._x0=a,this._y0=o,this._x1=r,this._y1=n,this._root=void 0}function hD(e){var t={data:e.data},a=t;while(e=e.next)a=a.next={data:e.data};return t}var sa=ms.prototype=KS.prototype;sa.copy=function(){var e=new KS(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,a,o;if(!t)return e;if(!t.length)return e._root=hD(t),e;a=[{source:t,target:e._root=[,,,,]}];while(t=a.pop())for(var r=0;r<4;++r)if(o=t.source[r])if(o.length)a.push({source:o,target:t.target[r]=[,,,,]});else t.target[r]=hD(o);return e};sa.add=PS;sa.addAll=dD;sa.cover=OS;sa.data=zS;sa.extent=BS;sa.find=FS;sa.remove=HS;sa.removeAll=fD;sa.root=US;sa.size=GS;sa.visit=qS;sa.visitAfter=$S;sa.x=VS;sa.y=ZS;function nt(e){return function(){return e}}function fo(e){return(e()-0.5)*0.000001}function a$(e){return e.x+e.vx}function o$(e){return e.y+e.vy}function Bh(e){var t,a,o,r=1,n=1;if(typeof e!=="function")e=nt(e==null?1:+e);function i(){var u,d=t.length,m,p,f,g,y,b;for(var h=0;h<n;++h){m=ms(t,a$,o$).visitAfter(s);for(u=0;u<d;++u)p=t[u],y=a[p.index],b=y*y,f=p.x+p.vx,g=p.y+p.vy,m.visit(x)}function x(v,w,C,I,L){var{data:k,r:_}=v,T=y+_;if(k){if(k.index>p.index){var O=f-k.x-k.vx,D=g-k.y-k.vy,z=O*O+D*D;if(z<T*T){if(O===0)O=fo(o),z+=O*O;if(D===0)D=fo(o),z+=D*D;z=(T-(z=Math.sqrt(z)))/z*r,p.vx+=(O*=z)*(T=(_*=_)/(b+_)),p.vy+=(D*=z)*T,k.vx-=O*(T=1-T),k.vy-=D*T}}return}return w>f+T||I<f-T||C>g+T||L<g-T}}function s(u){if(u.data)return u.r=a[u.data.index];for(var d=u.r=0;d<4;++d)if(u[d]&&u[d].r>u.r)u.r=u[d].r}function l(){if(!t)return;var u,d=t.length,m;a=Array(d);for(u=0;u<d;++u)m=t[u],a[m.index]=+e(m,u,t)}return i.initialize=function(u,d){t=u,o=d,l()},i.iterations=function(u){return arguments.length?(n=+u,i):n},i.strength=function(u){return arguments.length?(r=+u,i):r},i.radius=function(u){return arguments.length?(e=typeof u==="function"?u:nt(+u),l(),i):e},i}function r$(e){return e.index}function gD(e,t){var a=e.get(t);if(!a)throw Error("node not found: "+t);return a}function Fh(e){var t=r$,a=m,o,r=nt(30),n,i,s,l,u,d=1;if(e==null)e=[];function m(b){return 1/Math.min(s[b.source.index],s[b.target.index])}function p(b){for(var h=0,x=e.length;h<d;++h)for(var v=0,w,C,I,L,k,_,T;v<x;++v)w=e[v],C=w.source,I=w.target,L=I.x+I.vx-C.x-C.vx||fo(u),k=I.y+I.vy-C.y-C.vy||fo(u),_=Math.sqrt(L*L+k*k),_=(_-n[v])/_*b*o[v],L*=_,k*=_,I.vx-=L*(T=l[v]),I.vy-=k*T,C.vx+=L*(T=1-T),C.vy+=k*T}function f(){if(!i)return;var b,h=i.length,x=e.length,v=new Map(i.map((C,I)=>[t(C,I,i),C])),w;for(b=0,s=Array(h);b<x;++b){if(w=e[b],w.index=b,typeof w.source!=="object")w.source=gD(v,w.source);if(typeof w.target!=="object")w.target=gD(v,w.target);s[w.source.index]=(s[w.source.index]||0)+1,s[w.target.index]=(s[w.target.index]||0)+1}for(b=0,l=Array(x);b<x;++b)w=e[b],l[b]=s[w.source.index]/(s[w.source.index]+s[w.target.index]);o=Array(x),g(),n=Array(x),y()}function g(){if(!i)return;for(var b=0,h=e.length;b<h;++b)o[b]=+a(e[b],b,e)}function y(){if(!i)return;for(var b=0,h=e.length;b<h;++b)n[b]=+r(e[b],b,e)}return p.initialize=function(b,h){i=b,u=h,f()},p.links=function(b){return arguments.length?(e=b,f(),p):e},p.id=function(b){return arguments.length?(t=b,p):t},p.iterations=function(b){return arguments.length?(d=+b,p):d},p.strength=function(b){return arguments.length?(a=typeof b==="function"?b:nt(+b),g(),p):a},p.distance=function(b){return arguments.length?(r=typeof b==="function"?b:nt(+b),y(),p):r},p}var yu=0,rf=0,of=0,xD=1000,Hh,nf,Uh=0,hs=0,Gh=0,sf=typeof performance==="object"&&performance.now?performance:Date,vD=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function uf(){return hs||(vD(n$),hs=sf.now()+Gh)}function n$(){hs=0}function lf(){this._call=this._time=this._next=null}lf.prototype=xu.prototype={constructor:lf,restart:function(e,t,a){if(typeof e!=="function")throw TypeError("callback is not a function");if(a=(a==null?uf():+a)+(t==null?0:+t),!this._next&&nf!==this){if(nf)nf._next=this;else Hh=this;nf=this}this._call=e,this._time=a,jS()},stop:function(){if(this._call)this._call=null,this._time=1/0,jS()}};function xu(e,t,a){var o=new lf;return o.restart(e,t,a),o}function bD(){uf(),++yu;var e=Hh,t;while(e){if((t=hs-e._time)>=0)e._call.call(void 0,t);e=e._next}--yu}function yD(){hs=(Uh=sf.now())+Gh,yu=rf=0;try{bD()}finally{yu=0,s$(),hs=0}}function i$(){var e=sf.now(),t=e-Uh;if(t>xD)Gh-=t,Uh=e}function s$(){var e,t=Hh,a,o=1/0;while(t)if(t._call){if(o>t._time)o=t._time;e=t,t=t._next}else a=t._next,t._next=null,t=e?e._next=a:Hh=a;nf=e,jS(o)}function jS(e){if(yu)return;if(rf)rf=clearTimeout(rf);var t=e-hs;if(t>24){if(e<1/0)rf=setTimeout(yD,e-sf.now()-Gh);if(of)of=clearInterval(of)}else{if(!of)Uh=sf.now(),of=setInterval(i$,xD);yu=1,vD(yD)}}function cf(e,t,a){var o=new lf;return t=t==null?0:+t,o.restart((r)=>{o.stop(),e(r+t)},t,a),o}function XS(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function wD(e){return e.x}function SD(e){return e.y}var l$=10,u$=Math.PI*(3-Math.sqrt(5));function qh(e){var t,a=1,o=0.001,r=1-Math.pow(o,0.0033333333333333335),n=0,i=0.6,s=new Map,l=xu(m),u=Vr("tick","end"),d=XS();if(e==null)e=[];function m(){if(p(),u.call("tick",t),a<o)l.stop(),u.call("end",t)}function p(y){var b,h=e.length,x;if(y===void 0)y=1;for(var v=0;v<y;++v){a+=(n-a)*r,s.forEach(function(w){w(a)});for(b=0;b<h;++b){if(x=e[b],x.fx==null)x.x+=x.vx*=i;else x.x=x.fx,x.vx=0;if(x.fy==null)x.y+=x.vy*=i;else x.y=x.fy,x.vy=0}}return t}function f(){for(var y=0,b=e.length,h;y<b;++y){if(h=e[y],h.index=y,h.fx!=null)h.x=h.fx;if(h.fy!=null)h.y=h.fy;if(isNaN(h.x)||isNaN(h.y)){var x=l$*Math.sqrt(0.5+y),v=y*u$;h.x=x*Math.cos(v),h.y=x*Math.sin(v)}if(isNaN(h.vx)||isNaN(h.vy))h.vx=h.vy=0}}function g(y){if(y.initialize)y.initialize(e,d);return y}return f(),t={tick:p,restart:function(){return l.restart(m),t},stop:function(){return l.stop(),t},nodes:function(y){return arguments.length?(e=y,f(),s.forEach(g),t):e},alpha:function(y){return arguments.length?(a=+y,t):a},alphaMin:function(y){return arguments.length?(o=+y,t):o},alphaDecay:function(y){return arguments.length?(r=+y,t):+r},alphaTarget:function(y){return arguments.length?(n=+y,t):n},velocityDecay:function(y){return arguments.length?(i=1-y,t):1-i},randomSource:function(y){return arguments.length?(d=y,s.forEach(g),t):d},force:function(y,b){return arguments.length>1?(b==null?s.delete(y):s.set(y,g(b)),t):s.get(y)},find:function(y,b,h){var x=0,v=e.length,w,C,I,L,k;if(h==null)h=1/0;else h*=h;for(x=0;x<v;++x)if(L=e[x],w=y-L.x,C=b-L.y,I=w*w+C*C,I<h)k=L,h=I;return k},on:function(y,b){return arguments.length>1?(u.on(y,b),t):u.on(y)}}}function $h(){var e,t,a,o,r=nt(-30),n,i=1,s=1/0,l=0.81;function u(f){var g,y=e.length,b=ms(e,wD,SD).visitAfter(m);for(o=f,g=0;g<y;++g)t=e[g],b.visit(p)}function d(){if(!e)return;var f,g=e.length,y;n=Array(g);for(f=0;f<g;++f)y=e[f],n[y.index]=+r(y,f,e)}function m(f){var g=0,y,b,h=0,x,v,w;if(f.length){for(x=v=w=0;w<4;++w)if((y=f[w])&&(b=Math.abs(y.value)))g+=y.value,h+=b,x+=b*y.x,v+=b*y.y;f.x=x/h,f.y=v/h}else{y=f,y.x=y.data.x,y.y=y.data.y;do g+=n[y.data.index];while(y=y.next)}f.value=g}function p(f,g,y,b){if(!f.value)return!0;var h=f.x-t.x,x=f.y-t.y,v=b-g,w=h*h+x*x;if(v*v/l<w){if(w<s){if(h===0)h=fo(a),w+=h*h;if(x===0)x=fo(a),w+=x*x;if(w<i)w=Math.sqrt(i*w);t.vx+=h*f.value*o/w,t.vy+=x*f.value*o/w}return!0}else if(f.length||w>=s)return;if(f.data!==t||f.next){if(h===0)h=fo(a),w+=h*h;if(x===0)x=fo(a),w+=x*x;if(w<i)w=Math.sqrt(i*w)}do if(f.data!==t)v=n[f.data.index]*o/w,t.vx+=h*v,t.vy+=x*v;while(f=f.next)}return u.initialize=function(f,g){e=f,a=g,d()},u.strength=function(f){return arguments.length?(r=typeof f==="function"?f:nt(+f),d(),u):r},u.distanceMin=function(f){return arguments.length?(i=f*f,u):Math.sqrt(i)},u.distanceMax=function(f){return arguments.length?(s=f*f,u):Math.sqrt(s)},u.theta=function(f){return arguments.length?(l=f*f,u):Math.sqrt(l)},u}function Vh(e){var t=nt(0.1),a,o,r;if(typeof e!=="function")e=nt(e==null?0:+e);function n(s){for(var l=0,u=a.length,d;l<u;++l)d=a[l],d.vx+=(r[l]-d.x)*o[l]*s}function i(){if(!a)return;var s,l=a.length;o=Array(l),r=Array(l);for(s=0;s<l;++s)o[s]=isNaN(r[s]=+e(a[s],s,a))?0:+t(a[s],s,a)}return n.initialize=function(s){a=s,i()},n.strength=function(s){return arguments.length?(t=typeof s==="function"?s:nt(+s),i(),n):t},n.x=function(s){return arguments.length?(e=typeof s==="function"?s:nt(+s),i(),n):e},n}function Zh(e){var t=nt(0.1),a,o,r;if(typeof e!=="function")e=nt(e==null?0:+e);function n(s){for(var l=0,u=a.length,d;l<u;++l)d=a[l],d.vy+=(r[l]-d.y)*o[l]*s}function i(){if(!a)return;var s,l=a.length;o=Array(l),r=Array(l);for(s=0;s<l;++s)o[s]=isNaN(r[s]=+e(a[s],s,a))?0:+t(a[s],s,a)}return n.initialize=function(s){a=s,i()},n.strength=function(s){return arguments.length?(t=typeof s==="function"?s:nt(+s),i(),n):t},n.y=function(s){return arguments.length?(e=typeof s==="function"?s:nt(+s),i(),n):e},n}function Va(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}var WS=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,YS=new RegExp(WS.source,"g");function c$(e){return function(){return e}}function d$(e){return function(t){return e(t)+""}}function Kh(e,t){var a=WS.lastIndex=YS.lastIndex=0,o,r,n,i=-1,s=[],l=[];e=e+"",t=t+"";while((o=WS.exec(e))&&(r=YS.exec(t))){if((n=r.index)>a)if(n=t.slice(a,n),s[i])s[i]+=n;else s[++i]=n;if((o=o[0])===(r=r[0]))if(s[i])s[i]+=r;else s[++i]=r;else s[++i]=null,l.push({i,x:Va(o,r)});a=YS.lastIndex}if(a<t.length)if(n=t.slice(a),s[i])s[i]+=n;else s[++i]=n;return s.length<2?l[0]?d$(l[0].x):c$(t):(t=l.length,function(u){for(var d=0,m;d<t;++d)s[(m=l[d]).i]=m.x(u);return s.join("")})}var LD=180/Math.PI,jh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Xh(e,t,a,o,r,n){var i,s,l;if(i=Math.sqrt(e*e+t*t))e/=i,t/=i;if(l=e*a+t*o)a-=e*l,o-=t*l;if(s=Math.sqrt(a*a+o*o))a/=s,o/=s,l/=s;if(e*o<t*a)e=-e,t=-t,l=-l,i=-i;return{translateX:r,translateY:n,rotate:Math.atan2(t,e)*LD,skewX:Math.atan(l)*LD,scaleX:i,scaleY:s}}var Yh;function CD(e){let t=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jh:Xh(t.a,t.b,t.c,t.d,t.e,t.f)}function kD(e){if(e==null)return jh;if(!Yh)Yh=document.createElementNS("http://www.w3.org/2000/svg","g");if(Yh.setAttribute("transform",e),!(e=Yh.transform.baseVal.consolidate()))return jh;return e=e.matrix,Xh(e.a,e.b,e.c,e.d,e.e,e.f)}function ID(e,t,a,o){function r(u){return u.length?u.pop()+" ":""}function n(u,d,m,p,f,g){if(u!==m||d!==p){var y=f.push("translate(",null,t,null,a);g.push({i:y-4,x:Va(u,m)},{i:y-2,x:Va(d,p)})}else if(m||p)f.push("translate("+m+t+p+a)}function i(u,d,m,p){if(u!==d){if(u-d>180)d+=360;else if(d-u>180)u+=360;p.push({i:m.push(r(m)+"rotate(",null,o)-2,x:Va(u,d)})}else if(d)m.push(r(m)+"rotate("+d+o)}function s(u,d,m,p){if(u!==d)p.push({i:m.push(r(m)+"skewX(",null,o)-2,x:Va(u,d)});else if(d)m.push(r(m)+"skewX("+d+o)}function l(u,d,m,p,f,g){if(u!==m||d!==p){var y=f.push(r(f)+"scale(",null,",",null,")");g.push({i:y-4,x:Va(u,m)},{i:y-2,x:Va(d,p)})}else if(m!==1||p!==1)f.push(r(f)+"scale("+m+","+p+")")}return function(u,d){var m=[],p=[];return u=e(u),d=e(d),n(u.translateX,u.translateY,d.translateX,d.translateY,m,p),i(u.rotate,d.rotate,m,p),s(u.skewX,d.skewX,m,p),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,m,p),u=d=null,function(f){var g=-1,y=p.length,b;while(++g<y)m[(b=p[g]).i]=b.x(f);return m.join("")}}}var QS=ID(CD,"px, ","px)","deg)"),JS=ID(kD,", ",")",")");var f$=0.000000000001;function RD(e){return((e=Math.exp(e))+1/e)/2}function p$(e){return((e=Math.exp(e))-1/e)/2}function m$(e){return((e=Math.exp(2*e))-1)/(e+1)}var eL=function e(t,a,o){function r(n,i){var s=n[0],l=n[1],u=n[2],d=i[0],m=i[1],p=i[2],f=d-s,g=m-l,y=f*f+g*g,b,h;if(y<f$)h=Math.log(p/u)/t,b=function(L){return[s+L*f,l+L*g,u*Math.exp(t*L*h)]};else{var x=Math.sqrt(y),v=(p*p-u*u+o*y)/(2*u*a*x),w=(p*p-u*u-o*y)/(2*p*a*x),C=Math.log(Math.sqrt(v*v+1)-v),I=Math.log(Math.sqrt(w*w+1)-w);h=(I-C)/t,b=function(L){var k=L*h,_=RD(C),T=u/(a*x)*(_*m$(t*k+C)-p$(C));return[s+T*f,l+T*g,u*_/RD(t*k+C)]}}return b.duration=h*1000*t/Math.SQRT2,b}return r.rho=function(n){var i=Math.max(0.001,+n),s=i*i,l=s*s;return e(i,s,l)},r}(Math.SQRT2,2,4);function df(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function tL(e,t){var a=Object.create(e.prototype);for(var o in t)a[o]=t[o];return a}function mf(){}var ff=0.7,Jh=1/ff,vu="\\\\s*([+-]?\\\\d+)\\\\s*",pf="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*",sr="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*",h$=/^#([0-9a-f]{3,8})$/,g$=new RegExp(\`^rgb\\\\(\${vu},\${vu},\${vu}\\\\)$\`),y$=new RegExp(\`^rgb\\\\(\${sr},\${sr},\${sr}\\\\)$\`),x$=new RegExp(\`^rgba\\\\(\${vu},\${vu},\${vu},\${pf}\\\\)$\`),v$=new RegExp(\`^rgba\\\\(\${sr},\${sr},\${sr},\${pf}\\\\)$\`),b$=new RegExp(\`^hsl\\\\(\${pf},\${sr},\${sr}\\\\)$\`),w$=new RegExp(\`^hsla\\\\(\${pf},\${sr},\${sr},\${pf}\\\\)$\`),_D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};df(mf,oi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:TD,formatHex:TD,formatHex8:S$,formatHsl:L$,formatRgb:ED,toString:ED});function TD(){return this.rgb().formatHex()}function S$(){return this.rgb().formatHex8()}function L$(){return OD(this).formatHsl()}function ED(){return this.rgb().formatRgb()}function oi(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=h$.exec(e))?(a=t[1].length,t=parseInt(t[1],16),a===6?ND(t):a===3?new Ca(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):a===8?Wh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):a===4?Wh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=g$.exec(e))?new Ca(t[1],t[2],t[3],1):(t=y$.exec(e))?new Ca(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=x$.exec(e))?Wh(t[1],t[2],t[3],t[4]):(t=v$.exec(e))?Wh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=b$.exec(e))?DD(t[1],t[2]/100,t[3]/100,1):(t=w$.exec(e))?DD(t[1],t[2]/100,t[3]/100,t[4]):_D.hasOwnProperty(e)?ND(_D[e]):e==="transparent"?new Ca(NaN,NaN,NaN,0):null}function ND(e){return new Ca(e>>16&255,e>>8&255,e&255,1)}function Wh(e,t,a,o){if(o<=0)e=t=a=NaN;return new Ca(e,t,a,o)}function C$(e){if(!(e instanceof mf))e=oi(e);if(!e)return new Ca;return e=e.rgb(),new Ca(e.r,e.g,e.b,e.opacity)}function bu(e,t,a,o){return arguments.length===1?C$(e):new Ca(e,t,a,o==null?1:o)}function Ca(e,t,a,o){this.r=+e,this.g=+t,this.b=+a,this.opacity=+o}df(Ca,bu,tL(mf,{brighter(e){return e=e==null?Jh:Math.pow(Jh,e),new Ca(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ff:Math.pow(ff,e),new Ca(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ca(ys(this.r),ys(this.g),ys(this.b),eg(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:AD,formatHex:AD,formatHex8:k$,formatRgb:MD,toString:MD}));function AD(){return\`#\${gs(this.r)}\${gs(this.g)}\${gs(this.b)}\`}function k$(){return\`#\${gs(this.r)}\${gs(this.g)}\${gs(this.b)}\${gs((isNaN(this.opacity)?1:this.opacity)*255)}\`}function MD(){let e=eg(this.opacity);return\`\${e===1?"rgb(":"rgba("}\${ys(this.r)}, \${ys(this.g)}, \${ys(this.b)}\${e===1?")":\`, \${e})\`}\`}function eg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ys(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gs(e){return e=ys(e),(e<16?"0":"")+e.toString(16)}function DD(e,t,a,o){if(o<=0)e=t=a=NaN;else if(a<=0||a>=1)e=t=NaN;else if(t<=0)e=NaN;return new Do(e,t,a,o)}function OD(e){if(e instanceof Do)return new Do(e.h,e.s,e.l,e.opacity);if(!(e instanceof mf))e=oi(e);if(!e)return new Do;if(e instanceof Do)return e;e=e.rgb();var t=e.r/255,a=e.g/255,o=e.b/255,r=Math.min(t,a,o),n=Math.max(t,a,o),i=NaN,s=n-r,l=(n+r)/2;if(s){if(t===n)i=(a-o)/s+(a<o)*6;else if(a===n)i=(o-t)/s+2;else i=(t-a)/s+4;s/=l<0.5?n+r:2-n-r,i*=60}else s=l>0&&l<1?0:i;return new Do(i,s,l,e.opacity)}function zD(e,t,a,o){return arguments.length===1?OD(e):new Do(e,t,a,o==null?1:o)}function Do(e,t,a,o){this.h=+e,this.s=+t,this.l=+a,this.opacity=+o}df(Do,zD,tL(mf,{brighter(e){return e=e==null?Jh:Math.pow(Jh,e),new Do(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ff:Math.pow(ff,e),new Do(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,o=a+(a<0.5?a:1-a)*t,r=2*a-o;return new Ca(aL(e>=240?e-240:e+120,r,o),aL(e,r,o),aL(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new Do(PD(this.h),Qh(this.s),Qh(this.l),eg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let e=eg(this.opacity);return\`\${e===1?"hsl(":"hsla("}\${PD(this.h)}, \${Qh(this.s)*100}%, \${Qh(this.l)*100}%\${e===1?")":\`, \${e})\`}\`}}));function PD(e){return e=(e||0)%360,e<0?e+360:e}function Qh(e){return Math.max(0,Math.min(1,e||0))}function aL(e,t,a){return(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)*255}function oL(e,t,a,o,r){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*a+(1+3*e+3*n-3*i)*o+i*r)/6}function rL(e){var t=e.length-1;return function(a){var o=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),r=e[o],n=e[o+1],i=o>0?e[o-1]:2*r-n,s=o<t-1?e[o+2]:2*n-r;return oL((a-o/t)*t,i,r,n,s)}}function nL(e){var t=e.length;return function(a){var o=Math.floor(((a%=1)<0?++a:a)*t),r=e[(o+t-1)%t],n=e[o%t],i=e[(o+1)%t],s=e[(o+2)%t];return oL((a-o/t)*t,r,n,i,s)}}var iL=(e)=>()=>e;function I$(e,t){return function(a){return e+a*t}}function R$(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(o){return Math.pow(e+o*t,a)}}function BD(e){return(e=+e)===1?tg:function(t,a){return a-t?R$(t,a,e):iL(isNaN(t)?a:t)}}function tg(e,t){var a=t-e;return a?I$(e,a):iL(isNaN(e)?t:e)}var ag=function e(t){var a=BD(t);function o(r,n){var i=a((r=bu(r)).r,(n=bu(n)).r),s=a(r.g,n.g),l=a(r.b,n.b),u=tg(r.opacity,n.opacity);return function(d){return r.r=i(d),r.g=s(d),r.b=l(d),r.opacity=u(d),r+""}}return o.gamma=e,o}(1);function FD(e){return function(t){var a=t.length,o=Array(a),r=Array(a),n=Array(a),i,s;for(i=0;i<a;++i)s=bu(t[i]),o[i]=s.r||0,r[i]=s.g||0,n[i]=s.b||0;return o=e(o),r=e(r),n=e(n),s.opacity=1,function(l){return s.r=o(l),s.g=r(l),s.b=n(l),s+""}}}var _$=FD(rL),T$=FD(nL);var E$=Vr("start","end","cancel","interrupt"),N$=[],GD=0,HD=1,rg=2,og=3,UD=4,ng=5,hf=6;function jr(e,t,a,o,r,n){var i=e.__transition;if(!i)e.__transition={};else if(a in i)return;A$(e,a,{name:t,index:o,group:r,on:E$,tween:N$,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:GD})}function gf(e,t){var a=wt(e,t);if(a.state>GD)throw Error("too late; already scheduled");return a}function qt(e,t){var a=wt(e,t);if(a.state>og)throw Error("too late; already running");return a}function wt(e,t){var a=e.__transition;if(!a||!(a=a[t]))throw Error("transition not found");return a}function A$(e,t,a){var o=e.__transition,r;o[t]=a,a.timer=xu(n,0,a.time);function n(u){if(a.state=HD,a.timer.restart(i,a.delay,a.time),a.delay<=u)i(u-a.delay)}function i(u){var d,m,p,f;if(a.state!==HD)return l();for(d in o){if(f=o[d],f.name!==a.name)continue;if(f.state===og)return cf(i);if(f.state===UD)f.state=hf,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[d];else if(+d<t)f.state=hf,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[d]}if(cf(function(){if(a.state===og)a.state=UD,a.timer.restart(s,a.delay,a.time),s(u)}),a.state=rg,a.on.call("start",e,e.__data__,a.index,a.group),a.state!==rg)return;a.state=og,r=Array(p=a.tween.length);for(d=0,m=-1;d<p;++d)if(f=a.tween[d].value.call(e,e.__data__,a.index,a.group))r[++m]=f;r.length=m+1}function s(u){var d=u<a.duration?a.ease.call(null,u/a.duration):(a.timer.restart(l),a.state=ng,1),m=-1,p=r.length;while(++m<p)r[m].call(e,d);if(a.state===ng)a.on.call("end",e,e.__data__,a.index,a.group),l()}function l(){a.state=hf,a.timer.stop(),delete o[t];for(var u in o)return;delete e.__transition}}function ri(e,t){var a=e.__transition,o,r,n=!0,i;if(!a)return;t=t==null?null:t+"";for(i in a){if((o=a[i]).name!==t){n=!1;continue}r=o.state>rg&&o.state<ng,o.state=hf,o.timer.stop(),o.on.call(r?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete a[i]}if(n)delete e.__transition}function sL(e){return this.each(function(){ri(this,e)})}function M$(e,t){var a,o;return function(){var r=qt(this,e),n=r.tween;if(n!==a){o=a=n;for(var i=0,s=o.length;i<s;++i)if(o[i].name===t){o=o.slice(),o.splice(i,1);break}}r.tween=o}}function D$(e,t,a){var o,r;if(typeof a!=="function")throw Error();return function(){var n=qt(this,e),i=n.tween;if(i!==o){r=(o=i).slice();for(var s={name:t,value:a},l=0,u=r.length;l<u;++l)if(r[l].name===t){r[l]=s;break}if(l===u)r.push(s)}n.tween=r}}function lL(e,t){var a=this._id;if(e+="",arguments.length<2){var o=wt(this.node(),a).tween;for(var r=0,n=o.length,i;r<n;++r)if((i=o[r]).name===e)return i.value;return null}return this.each((t==null?M$:D$)(a,e,t))}function wu(e,t,a){var o=e._id;return e.each(function(){var r=qt(this,o);(r.value||(r.value={}))[t]=a.apply(this,arguments)}),function(r){return wt(r,o).value[t]}}function yf(e,t){var a;return(typeof t==="number"?Va:t instanceof oi?ag:(a=oi(t))?(t=a,ag):Kh)(e,t)}function P$(e){return function(){this.removeAttribute(e)}}function O$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function z$(e,t,a){var o,r=a+"",n;return function(){var i=this.getAttribute(e);return i===r?null:i===o?n:n=t(o=i,a)}}function B$(e,t,a){var o,r=a+"",n;return function(){var i=this.getAttributeNS(e.space,e.local);return i===r?null:i===o?n:n=t(o=i,a)}}function F$(e,t,a){var o,r,n;return function(){var i,s=a(this),l;if(s==null)return void this.removeAttribute(e);return i=this.getAttribute(e),l=s+"",i===l?null:i===o&&l===r?n:(r=l,n=t(o=i,s))}}function H$(e,t,a){var o,r,n;return function(){var i,s=a(this),l;if(s==null)return void this.removeAttributeNS(e.space,e.local);return i=this.getAttributeNS(e.space,e.local),l=s+"",i===l?null:i===o&&l===r?n:(r=l,n=t(o=i,s))}}function uL(e,t){var a=ir(e),o=a==="transform"?JS:yf;return this.attrTween(e,typeof t==="function"?(a.local?H$:F$)(a,o,wu(this,"attr."+e,t)):t==null?(a.local?O$:P$)(a):(a.local?B$:z$)(a,o,t))}function U$(e,t){return function(a){this.setAttribute(e,t.call(this,a))}}function G$(e,t){return function(a){this.setAttributeNS(e.space,e.local,t.call(this,a))}}function q$(e,t){var a,o;function r(){var n=t.apply(this,arguments);if(n!==o)a=(o=n)&&G$(e,n);return a}return r._value=t,r}function $$(e,t){var a,o;function r(){var n=t.apply(this,arguments);if(n!==o)a=(o=n)&&U$(e,n);return a}return r._value=t,r}function cL(e,t){var a="attr."+e;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!=="function")throw Error();var o=ir(e);return this.tween(a,(o.local?q$:$$)(o,t))}function V$(e,t){return function(){gf(this,e).delay=+t.apply(this,arguments)}}function Z$(e,t){return t=+t,function(){gf(this,e).delay=t}}function dL(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?V$:Z$)(t,e)):wt(this.node(),t).delay}function K$(e,t){return function(){qt(this,e).duration=+t.apply(this,arguments)}}function j$(e,t){return t=+t,function(){qt(this,e).duration=t}}function fL(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?K$:j$)(t,e)):wt(this.node(),t).duration}function X$(e,t){if(typeof t!=="function")throw Error();return function(){qt(this,e).ease=t}}function pL(e){var t=this._id;return arguments.length?this.each(X$(t,e)):wt(this.node(),t).ease}function Y$(e,t){return function(){var a=t.apply(this,arguments);if(typeof a!=="function")throw Error();qt(this,e).ease=a}}function mL(e){if(typeof e!=="function")throw Error();return this.each(Y$(this._id,e))}function hL(e){if(typeof e!=="function")e=mu(e);for(var t=this._groups,a=t.length,o=Array(a),r=0;r<a;++r)for(var n=t[r],i=n.length,s=o[r]=[],l,u=0;u<i;++u)if((l=n[u])&&e.call(l,l.__data__,u,n))s.push(l);return new la(o,this._parents,this._name,this._id)}function gL(e){if(e._id!==this._id)throw Error();for(var t=this._groups,a=e._groups,o=t.length,r=a.length,n=Math.min(o,r),i=Array(o),s=0;s<n;++s)for(var l=t[s],u=a[s],d=l.length,m=i[s]=Array(d),p,f=0;f<d;++f)if(p=l[f]||u[f])m[f]=p;for(;s<o;++s)i[s]=t[s];return new la(i,this._parents,this._name,this._id)}function W$(e){return(e+"").trim().split(/^|\\s+/).every(function(t){var a=t.indexOf(".");if(a>=0)t=t.slice(0,a);return!t||t==="start"})}function Q$(e,t,a){var o,r,n=W$(t)?gf:qt;return function(){var i=n(this,e),s=i.on;if(s!==o)(r=(o=s).copy()).on(t,a);i.on=r}}function yL(e,t){var a=this._id;return arguments.length<2?wt(this.node(),a).on.on(e):this.each(Q$(a,e,t))}function J$(e){return function(){var t=this.parentNode;for(var a in this.__transition)if(+a!==e)return;if(t)t.removeChild(this)}}function xL(){return this.on("end.remove",J$(this._id))}function vL(e){var t=this._name,a=this._id;if(typeof e!=="function")e=ti(e);for(var o=this._groups,r=o.length,n=Array(r),i=0;i<r;++i)for(var s=o[i],l=s.length,u=n[i]=Array(l),d,m,p=0;p<l;++p)if((d=s[p])&&(m=e.call(d,d.__data__,p,s))){if("__data__"in d)m.__data__=d.__data__;u[p]=m,jr(u[p],t,a,p,u,wt(d,a))}return new la(n,this._parents,t,a)}function bL(e){var t=this._name,a=this._id;if(typeof e!=="function")e=hu(e);for(var o=this._groups,r=o.length,n=[],i=[],s=0;s<r;++s)for(var l=o[s],u=l.length,d,m=0;m<u;++m)if(d=l[m]){for(var p=e.call(d,d.__data__,m,l),f,g=wt(d,a),y=0,b=p.length;y<b;++y)if(f=p[y])jr(f,t,a,y,p,g);n.push(p),i.push(d)}return new la(n,i,t,a)}var eV=Zr.prototype.constructor;function wL(){return new eV(this._groups,this._parents)}function tV(e,t){var a,o,r;return function(){var n=ai(this,e),i=(this.style.removeProperty(e),ai(this,e));return n===i?null:n===a&&i===o?r:r=t(a=n,o=i)}}function qD(e){return function(){this.style.removeProperty(e)}}function aV(e,t,a){var o,r=a+"",n;return function(){var i=ai(this,e);return i===r?null:i===o?n:n=t(o=i,a)}}function oV(e,t,a){var o,r,n;return function(){var i=ai(this,e),s=a(this),l=s+"";if(s==null)l=s=(this.style.removeProperty(e),ai(this,e));return i===l?null:i===o&&l===r?n:(r=l,n=t(o=i,s))}}function rV(e,t){var a,o,r,n="style."+t,i="end."+n,s;return function(){var l=qt(this,e),u=l.on,d=l.value[n]==null?s||(s=qD(t)):void 0;if(u!==a||r!==d)(o=(a=u).copy()).on(i,r=d);l.on=o}}function SL(e,t,a){var o=(e+="")==="transform"?QS:yf;return t==null?this.styleTween(e,tV(e,o)).on("end.style."+e,qD(e)):typeof t==="function"?this.styleTween(e,oV(e,o,wu(this,"style."+e,t))).each(rV(this._id,e)):this.styleTween(e,aV(e,o,t),a).on("end.style."+e,null)}function nV(e,t,a){return function(o){this.style.setProperty(e,t.call(this,o),a)}}function iV(e,t,a){var o,r;function n(){var i=t.apply(this,arguments);if(i!==r)o=(r=i)&&nV(e,i,a);return o}return n._value=t,n}function LL(e,t,a){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!=="function")throw Error();return this.tween(o,iV(e,t,a==null?"":a))}function sV(e){return function(){this.textContent=e}}function lV(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function CL(e){return this.tween("text",typeof e==="function"?lV(wu(this,"text",e)):sV(e==null?"":e+""))}function uV(e){return function(t){this.textContent=e.call(this,t)}}function cV(e){var t,a;function o(){var r=e.apply(this,arguments);if(r!==a)t=(a=r)&&uV(r);return t}return o._value=e,o}function kL(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=="function")throw Error();return this.tween(t,cV(e))}function IL(){var e=this._name,t=this._id,a=ig();for(var o=this._groups,r=o.length,n=0;n<r;++n)for(var i=o[n],s=i.length,l,u=0;u<s;++u)if(l=i[u]){var d=wt(l,t);jr(l,e,a,u,i,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new la(o,this._parents,e,a)}function RL(){var e,t,a=this,o=a._id,r=a.size();return new Promise(function(n,i){var s={value:i},l={value:function(){if(--r===0)n()}};if(a.each(function(){var u=qt(this,o),d=u.on;if(d!==e)t=(e=d).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l);u.on=t}),r===0)n()})}var dV=0;function la(e,t,a,o){this._groups=e,this._parents=t,this._name=a,this._id=o}function $D(e){return Zr().transition(e)}function ig(){return++dV}var Xr=Zr.prototype;la.prototype=$D.prototype={constructor:la,select:vL,selectAll:bL,selectChild:Xr.selectChild,selectChildren:Xr.selectChildren,filter:hL,merge:gL,selection:wL,transition:IL,call:Xr.call,nodes:Xr.nodes,node:Xr.node,size:Xr.size,empty:Xr.empty,each:Xr.each,on:yL,attr:uL,attrTween:cL,style:SL,styleTween:LL,text:CL,textTween:kL,remove:xL,tween:lL,delay:dL,duration:fL,ease:pL,easeVarying:mL,end:RL,[Symbol.iterator]:Xr[Symbol.iterator]};function sg(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var fV={time:null,delay:0,duration:250,ease:sg};function pV(e,t){var a;while(!(a=e.__transition)||!(a=a[t]))if(!(e=e.parentNode))throw Error(\`transition \${t} not found\`);return a}function _L(e){var t,a;if(e instanceof la)t=e._id,e=e._name;else t=ig(),(a=fV).time=uf(),e=e==null?null:e+"";for(var o=this._groups,r=o.length,n=0;n<r;++n)for(var i=o[n],s=i.length,l,u=0;u<s;++u)if(l=i[u])jr(l,e,t,u,i,a||pV(l,t));return new la(o,this._parents,e,t)}Zr.prototype.interrupt=sL;Zr.prototype.transition=_L;var xf=(e)=>()=>e;function TL(e,{sourceEvent:t,target:a,transform:o,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function Po(e,t,a){this.k=e,this.x=t,this.y=a}Po.prototype={constructor:Po,scale:function(e){return e===1?this:new Po(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Po(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ni=new Po(1,0,0);EL.prototype=Po.prototype;function EL(e){while(!e.__zoom)if(!(e=e.parentNode))return ni;return e.__zoom}function lg(e){e.stopImmediatePropagation()}function xs(e){e.preventDefault(),e.stopImmediatePropagation()}function mV(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function hV(){var e=this;if(e instanceof SVGElement){if(e=e.ownerSVGElement||e,e.hasAttribute("viewBox"))return e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]];return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}return[[0,0],[e.clientWidth,e.clientHeight]]}function VD(){return this.__zoom||ni}function gV(e){return-e.deltaY*(e.deltaMode===1?0.05:e.deltaMode?1:0.002)*(e.ctrlKey?10:1)}function yV(){return navigator.maxTouchPoints||"ontouchstart"in this}function xV(e,t,a){var o=e.invertX(t[0][0])-a[0][0],r=e.invertX(t[1][0])-a[1][0],n=e.invertY(t[0][1])-a[0][1],i=e.invertY(t[1][1])-a[1][1];return e.translate(r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r),i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i))}function ug(){var e=mV,t=hV,a=xV,o=gV,r=yV,n=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],s=250,l=eL,u=Vr("start","zoom","end"),d,m,p,f=500,g=150,y=0,b=10;function h(R){R.property("__zoom",VD).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",T).filter(r).on("touchstart.zoom",O).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}h.transform=function(R,A,E,B){var X=R.selection?R.selection():R;if(X.property("__zoom",VD),R!==X)C(R,A,E,B);else X.interrupt().each(function(){I(this,arguments).event(B).start().zoom(null,typeof A==="function"?A.apply(this,arguments):A).end()})},h.scaleBy=function(R,A,E,B){h.scaleTo(R,function(){var X=this.__zoom.k,ee=typeof A==="function"?A.apply(this,arguments):A;return X*ee},E,B)},h.scaleTo=function(R,A,E,B){h.transform(R,function(){var X=t.apply(this,arguments),ee=this.__zoom,F=E==null?w(X):typeof E==="function"?E.apply(this,arguments):E,ce=ee.invert(F),N=typeof A==="function"?A.apply(this,arguments):A;return a(v(x(ee,N),F,ce),X,i)},E,B)},h.translateBy=function(R,A,E,B){h.transform(R,function(){return a(this.__zoom.translate(typeof A==="function"?A.apply(this,arguments):A,typeof E==="function"?E.apply(this,arguments):E),t.apply(this,arguments),i)},null,B)},h.translateTo=function(R,A,E,B,X){h.transform(R,function(){var ee=t.apply(this,arguments),F=this.__zoom,ce=B==null?w(ee):typeof B==="function"?B.apply(this,arguments):B;return a(ni.translate(ce[0],ce[1]).scale(F.k).translate(typeof A==="function"?-A.apply(this,arguments):-A,typeof E==="function"?-E.apply(this,arguments):-E),ee,i)},B,X)};function x(R,A){return A=Math.max(n[0],Math.min(n[1],A)),A===R.k?R:new Po(A,R.x,R.y)}function v(R,A,E){var B=A[0]-E[0]*R.k,X=A[1]-E[1]*R.k;return B===R.x&&X===R.y?R:new Po(R.k,B,X)}function w(R){return[(+R[0][0]+ +R[1][0])/2,(+R[0][1]+ +R[1][1])/2]}function C(R,A,E,B){R.on("start.zoom",function(){I(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(B).end()}).tween("zoom",function(){var X=this,ee=arguments,F=I(X,ee).event(B),ce=t.apply(X,ee),N=E==null?w(ce):typeof E==="function"?E.apply(X,ee):E,Z=Math.max(ce[1][0]-ce[0][0],ce[1][1]-ce[0][1]),Q=X.__zoom,H=typeof A==="function"?A.apply(X,ee):A,J=l(Q.invert(N).concat(Z/Q.k),H.invert(N).concat(Z/H.k));return function(oe){if(oe===1)oe=H;else{var fe=J(oe),ne=Z/fe[2];oe=new Po(ne,N[0]-fe[0]*ne,N[1]-fe[1]*ne)}F.zoom(null,oe)}})}function I(R,A,E){return!E&&R.__zooming||new L(R,A)}function L(R,A){this.that=R,this.args=A,this.active=0,this.sourceEvent=null,this.extent=t.apply(R,A),this.taps=0}L.prototype={event:function(R){if(R)this.sourceEvent=R;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(R,A){if(this.mouse&&R!=="mouse")this.mouse[1]=A.invert(this.mouse[0]);if(this.touch0&&R!=="touch")this.touch0[1]=A.invert(this.touch0[0]);if(this.touch1&&R!=="touch")this.touch1[1]=A.invert(this.touch1[0]);return this.that.__zoom=A,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(R){var A=ht(this.that).datum();u.call(R,this.that,new TL(R,{sourceEvent:this.sourceEvent,target:h,type:R,transform:this.that.__zoom,dispatch:u}),A)}};function k(R,...A){if(!e.apply(this,arguments))return;var E=I(this,A).event(R),B=this.__zoom,X=Math.max(n[0],Math.min(n[1],B.k*Math.pow(2,o.apply(this,arguments)))),ee=ia(R);if(E.wheel){if(E.mouse[0][0]!==ee[0]||E.mouse[0][1]!==ee[1])E.mouse[1]=B.invert(E.mouse[0]=ee);clearTimeout(E.wheel)}else if(B.k===X)return;else E.mouse=[ee,B.invert(ee)],ri(this),E.start();xs(R),E.wheel=setTimeout(F,g),E.zoom("mouse",a(v(x(B,X),E.mouse[0],E.mouse[1]),E.extent,i));function F(){E.wheel=null,E.end()}}function _(R,...A){if(p||!e.apply(this,arguments))return;var E=R.currentTarget,B=I(this,A,!0).event(R),X=ht(R.view).on("mousemove.zoom",N,!0).on("mouseup.zoom",Z,!0),ee=ia(R,E),F=R.clientX,ce=R.clientY;gu(R.view),lg(R),B.mouse=[ee,this.__zoom.invert(ee)],ri(this),B.start();function N(Q){if(xs(Q),!B.moved){var H=Q.clientX-F,J=Q.clientY-ce;B.moved=H*H+J*J>y}B.event(Q).zoom("mouse",a(v(B.that.__zoom,B.mouse[0]=ia(Q,E),B.mouse[1]),B.extent,i))}function Z(Q){X.on("mousemove.zoom mouseup.zoom",null),ef(Q.view,B.moved),xs(Q),B.event(Q).end()}}function T(R,...A){if(!e.apply(this,arguments))return;var E=this.__zoom,B=ia(R.changedTouches?R.changedTouches[0]:R,this),X=E.invert(B),ee=E.k*(R.shiftKey?0.5:2),F=a(v(x(E,ee),B,X),t.apply(this,A),i);if(xs(R),s>0)ht(this).transition().duration(s).call(C,F,B,R);else ht(this).call(h.transform,F,B,R)}function O(R,...A){if(!e.apply(this,arguments))return;var E=R.touches,B=E.length,X=I(this,A,R.changedTouches.length===B).event(R),ee,F,ce,N;lg(R);for(F=0;F<B;++F)if(ce=E[F],N=ia(ce,this),N=[N,this.__zoom.invert(N),ce.identifier],!X.touch0)X.touch0=N,ee=!0,X.taps=1+!!d;else if(!X.touch1&&X.touch0[2]!==N[2])X.touch1=N,X.taps=0;if(d)d=clearTimeout(d);if(ee){if(X.taps<2)m=N[0],d=setTimeout(function(){d=null},f);ri(this),X.start()}}function D(R,...A){if(!this.__zooming)return;var E=I(this,A).event(R),B=R.changedTouches,X=B.length,ee,F,ce,N;xs(R);for(ee=0;ee<X;++ee)if(F=B[ee],ce=ia(F,this),E.touch0&&E.touch0[2]===F.identifier)E.touch0[0]=ce;else if(E.touch1&&E.touch1[2]===F.identifier)E.touch1[0]=ce;if(F=E.that.__zoom,E.touch1){var Z=E.touch0[0],Q=E.touch0[1],H=E.touch1[0],J=E.touch1[1],oe=(oe=H[0]-Z[0])*oe+(oe=H[1]-Z[1])*oe,fe=(fe=J[0]-Q[0])*fe+(fe=J[1]-Q[1])*fe;F=x(F,Math.sqrt(oe/fe)),ce=[(Z[0]+H[0])/2,(Z[1]+H[1])/2],N=[(Q[0]+J[0])/2,(Q[1]+J[1])/2]}else if(E.touch0)ce=E.touch0[0],N=E.touch0[1];else return;E.zoom("touch",a(v(F,ce,N),E.extent,i))}function z(R,...A){if(!this.__zooming)return;var E=I(this,A).event(R),B=R.changedTouches,X=B.length,ee,F;if(lg(R),p)clearTimeout(p);p=setTimeout(function(){p=null},f);for(ee=0;ee<X;++ee)if(F=B[ee],E.touch0&&E.touch0[2]===F.identifier)delete E.touch0;else if(E.touch1&&E.touch1[2]===F.identifier)delete E.touch1;if(E.touch1&&!E.touch0)E.touch0=E.touch1,delete E.touch1;if(E.touch0)E.touch0[1]=this.__zoom.invert(E.touch0[0]);else if(E.end(),E.taps===2){if(F=ia(F,this),Math.hypot(m[0]-F[0],m[1]-F[1])<b){var ce=ht(this).on("dblclick.zoom");if(ce)ce.apply(this,arguments)}}}return h.wheelDelta=function(R){return arguments.length?(o=typeof R==="function"?R:xf(+R),h):o},h.filter=function(R){return arguments.length?(e=typeof R==="function"?R:xf(!!R),h):e},h.touchable=function(R){return arguments.length?(r=typeof R==="function"?R:xf(!!R),h):r},h.extent=function(R){return arguments.length?(t=typeof R==="function"?R:xf([[+R[0][0],+R[0][1]],[+R[1][0],+R[1][1]]]),h):t},h.scaleExtent=function(R){return arguments.length?(n[0]=+R[0],n[1]=+R[1],h):[n[0],n[1]]},h.translateExtent=function(R){return arguments.length?(i[0][0]=+R[0][0],i[1][0]=+R[1][0],i[0][1]=+R[0][1],i[1][1]=+R[1][1],h):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},h.constrain=function(R){return arguments.length?(a=R,h):a},h.duration=function(R){return arguments.length?(s=+R,h):s},h.interpolate=function(R){return arguments.length?(l=R,h):l},h.on=function(){var R=u.on.apply(u,arguments);return R===u?h:R},h.clickDistance=function(R){return arguments.length?(y=(R=+R)*R,h):Math.sqrt(y)},h.tapDistance=function(R){return arguments.length?(b=+R,h):b},h}var NL=["section","kind","package"],vV={skills:"var(--chart-3)",docs:"var(--chart-2)",code:"var(--chart-1)",database:"var(--section-database)",tasks:"var(--section-tasks)"},AL="var(--graph-other)";function vf(e){let t=(250+e*137.508)%360;return\`oklch(\${[0.62,0.74,0.5][e%3]} 0.16 \${t.toFixed(1)})\`}function cg(e,t,a){if(t==="section")return vV[e.section];if(t==="kind")return vf(_i.indexOf(pa(e.kind)));let o=e.package===null?-1:a.indexOf(e.package);return o<0?AL:vf(o)}var ii=3,bV=1.6,dg=16,wV=70,ZD=0.6,KD=0.04,SV=160,jD=72;function XD(e){let t=Wu.map((i)=>e.flatMap((s,l)=>s.section===i?[l]:[])).filter((i)=>i.length>0),a=t.map((i)=>LV(e,i)),o=Array(t.length),r=t.map((i,s)=>s).sort((i,s)=>(a[s]?.radius??0)-(a[i]?.radius??0));for(let i of r){let s=a[i]?.radius??0,l=(d,m)=>o.every((p)=>!p||Math.hypot(p.x-d,p.y-m)>=p.radius+s+SV),u={x:0,y:0};for(let d=0,m=o.every((p)=>!p);!m;d+=dg*4)for(let p=0;p<jD&&!m;p++){let f=-Math.PI/2+2*Math.PI*p/jD,g=Math.cos(f)*d,y=Math.sin(f)*d;if(l(g,y))u={x:g,y},m=!0}o[i]={...u,radius:s}}let n=Array(e.length);return t.forEach((i,s)=>{let{x:l,y:u}=o[s]??{x:0,y:0};i.forEach((d,m)=>{let p=a[s]?.spots[m];if(p)n[d]={...p,x:l+p.x,y:u+p.y,cx:l,cy:u}})}),n}function LV(e,t){let a=new Map(t.map((h,x)=>[h,x])),o=t.map((h)=>{let x=e[h]?.parent;return x===null||x===void 0?void 0:a.get(x)}),r=t.map(()=>[]),n=[];o.forEach((h,x)=>{if(h===void 0)n.push(x);else r[h]?.push(x)});let i=t.map(()=>1),s=t.map(()=>1);o.forEach((h,x)=>{if(h!==void 0)s[x]=(s[h]??0)+1});for(let h=t.length-1;h>=0;h--){let x=o[h];if(x!==void 0)i[x]=(i[x]??1)+(i[h]??1)}let l=(h)=>(1-ZD**(h-1))/(1-ZD),u=(h)=>bV*2*dg*Math.sqrt((i[h]??1)/Math.PI),d=new Map;s.forEach((h,x)=>{if(h>ii||h===1)return;let v=h===ii?Math.max(dg,u(x)):dg;d.set(h,(d.get(h)??0)+v)});let m=Math.max(wV,...[...d].map(([h,x])=>x/(2*Math.PI*l(h)))),p=Array(t.length),f=(h,x,v,w)=>{let C=h.reduce((k,_)=>k+(i[_]??1),0),I=Math.max(0,v-x-w*Math.max(0,h.length-1)),L=x;for(let k of h){let _=I*(i[k]??1)/C;g(k,L,L+_),L+=_+w}},g=(h,x,v)=>{let w=s[h]??1,C=(x+v)/2,I=l(w)*m;p[h]={x:Math.cos(C)*I,y:Math.sin(C)*I,start:x,end:v,depth:w},f(r[h]??[],x,v,(v-x)*KD)};f(n,-Math.PI/2,3*Math.PI/2,2*Math.PI*KD);let y=Math.min(ii,Math.max(...s)),b=Math.max(0,...s.map((h,x)=>h===y?u(x):0));return{spots:p,radius:l(y)*m+b}}var CV="http://www.w3.org/2000/svg",kV="fill-none stroke-border data-[dim]:opacity-30",YD="fill-none [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:1.25px] data-[dim]:opacity-10 [&>[data-thin]]:[stroke-width:0.6px]",IV="uses",RV="[&>[data-thin]]:[stroke-opacity:0.6]",_V=250,TV="data-[dim]:opacity-15",EV="fill-none stroke-border",NV="fill-none [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:1.75px]",ML="[vector-effect:non-scaling-stroke]",lP="[stroke-width:1.5px] [vector-effect:non-scaling-stroke] data-[selected]:stroke-foreground data-[selected]:[stroke-width:2.5px]",AV="pointer-events-none select-none fill-muted-foreground stroke-card text-[11px] [paint-order:stroke] [stroke-linejoin:round] [stroke-width:3px] data-[hot]:fill-foreground data-[hot]:font-medium",MV=12,fg=5,WD=4,DV=6.3,QD=14,PV=300,pg=40,OV=[0.1,8],zV=1.6,Su={top:28,right:110,bottom:28,left:28},JD=300,BV=0.02,FV=6,HV=4,UV=250,eP=0.2;function tP(e,t,a){let o=t.kind==="folder"||t.kind==="package";e.setAttribute("class",\`\${lP} \${o?"fill-card":"stroke-card"}\`),e.style.fill=o?"":a,e.style.stroke=o?a:""}function aP(e){if(e==="section")return 10;if(e==="skill")return 7.5;if(e==="folder")return 4.5;if(e==="package")return 6.5;if(e==="function"||e==="method")return 3;return Ta(e)?4.5:6}function oP(e){if(e==="section")return 0;if(e==="skill")return 1;if(e==="package")return 2;if(e==="folder")return 6;if(e==="function"||e==="method")return 5;return Ta(e)?4:2}var GV=-45,qV=0.6,$V=-2;function VV(e){return Math.min($V,GV*qV**(e-1))}var ZV=0.35,KV=40,jV=0.7,rP=14,XV=Math.PI*(3-Math.sqrt(5)),YV=-12,WV=80,nP=120;function iP(e){return e<=ii?ZV:0}function QV(e,t){let a=new Map;for(let n of e){let i=n.node.parent;if(i===null)continue;let s=a.get(i)??[e[i]];s.push(n),a.set(i,s)}let o=[...a.values()].map((n)=>({members:n,push:t(n[0])}));return(n)=>{for(let{members:i,push:s}of o)for(let l=0;l<i.length;l++)for(let u=l+1;u<i.length;u++){let d=i[l],m=i[u],p=m.x-d.x,f=m.y-d.y,g=p*p+f*f;if(g>nP*nP)continue;if(g===0)p=0.001*(u-l),f=0.001,g=p*p+f*f;let y=s*n/g;if(l===0)m.vx=(m.vx??0)-p*y,m.vy=(m.vy??0)-f*y;else d.vx=(d.vx??0)+p*y,d.vy=(d.vy??0)+f*y,m.vx=(m.vx??0)-p*y,m.vy=(m.vy??0)-f*y}}}function Yr(e,t){let a=document.createElementNS(CV,e);if(t)a.setAttribute("class",t);return a}var Wr=(e)=>e.toFixed(1);function JV({source:e,target:t,shaft:a,head:o}){let r=t.x-e.x,n=t.y-e.y,i=Math.hypot(r,n)||1,s=r/i,l=n/i,u=t.x-s*(t.radius+2),d=t.y-l*(t.radius+2);a.x1.baseVal.value=e.x+s*(e.radius+1),a.y1.baseVal.value=e.y+l*(e.radius+1),a.x2.baseVal.value=u,a.y2.baseVal.value=d;let m=u-s*fg,p=d-l*fg,f=-l*fg*0.5,g=s*fg*0.5;o.setAttribute("points",\`\${Wr(m+f)},\${Wr(p+g)} \${Wr(u)},\${Wr(d)} \${Wr(m-f)},\${Wr(p-g)}\`)}function sP(e,t){return e[2]>=t[0]&&e[0]<=t[2]&&e[3]>=t[1]&&e[1]<=t[3]}class DL{svg;viewport;tieLayer;arrowLayer;dotLayer;focusTieLayer;focusArrowLayer;focusDotLayer;dots;ties;arrows;labelOrder;simulation;zoomBehavior;resizeObserver;listeners=new AbortController;onSelect;onHover;transform=ni;width=0;height=0;visibleKinds=new Set;hiddenPackages=new Set;selected=null;hovered=null;focusSet=null;lifted=[];marked=[];gesturing=!1;moved=!1;layoutFrame=0;labelFrame=0;labelsPlacedAt=0;constructor({svg:e,view:t,onSelect:a,onHover:o}){this.svg=e,this.onSelect=a,this.onHover=o,this.viewport=Yr("g");let r=(f)=>this.viewport.appendChild(Yr("g",f));this.tieLayer=r(kV);let n=t.references.length>_V;this.arrowLayer=r(n?\`\${YD} \${RV}\`:YD),this.dotLayer=r(TV),this.focusTieLayer=r(EV),this.focusArrowLayer=r(NV),this.focusDotLayer=r();let i=e.getBoundingClientRect(),s=XD(t.nodes),l=(f)=>[s[f]?.x??0,s[f]?.y??0],u=[],d=new Map;t.nodes.forEach((f,g)=>{let y=f.parent;if((s[g]?.depth??1)<=ii||y===null){u.push(l(g));return}let b=d.get(y)??0;d.set(y,b+1);let[h,x]=u[y]??l(y),v=b*XV,w=rP*(1+Math.sqrt(b)/2);u.push([h+Math.cos(v)*w,x+Math.sin(v)*w])}),this.dots=t.nodes.map((f,g)=>{let y=aP(f.kind),[b,h]=u[g]??l(g),x=this.dotLayer.appendChild(Yr("g")),v=x.appendChild(Yr("circle",lP));tP(v,f,cg(f,"section",[])),v.setAttribute("r",String(y));let w=x.appendChild(Yr("text",AV));return w.setAttribute("y","4"),w.style.display="none",w.textContent=f.name,{id:g,node:f,radius:y,x:b,y:h,group:x,circle:v,label:w,labelShown:!1,labelScale:0}});let m=(f)=>{let g=this.dots[f];if(!g)throw Error(\`No dot at \${f}\`);return g};this.ties=this.dots.flatMap((f)=>{if(f.node.parent===null)return[];let g=this.tieLayer.appendChild(Yr("line",ML));return[{source:m(f.node.parent),target:f,line:g}]}),this.arrows=t.references.map(({source:f,target:g,kind:y})=>{let{stroke:b,dashed:h}=Eh[y],x=this.arrowLayer.appendChild(Yr("g",b));x.dataset.kind=y,x.toggleAttribute("data-thin",y===IV);let v=x.appendChild(Yr("line",ML));if(h)v.setAttribute("stroke-dasharray",Nh);let w=x.appendChild(Yr("polyline",ML));return{source:m(f),target:m(g),kind:y,group:x,shaft:v,head:w}}),this.labelOrder=[...this.dots].sort((f,g)=>oP(f.node.kind)-oP(g.node.kind)),this.simulation=qh(this.dots).force("ties",Fh(this.ties).distance(({source:f,target:g})=>{let y=s[g.id]?.depth??1;if(y<=ii){let[b,h]=l(f.id),[x,v]=l(g.id);return Math.hypot(x-b,v-h)}return Math.max(rP,KV*jV**(y-ii-1))}).strength(0.5)).force("charge",QV(this.dots,(f)=>VV(Math.max(1,(s[f.id]?.depth??1)-1)))).force("spread",$h().strength(YV).distanceMax(WV)).force("x",Vh((f)=>l(f.id)[0]).strength((f)=>iP(s[f.id]?.depth??1))).force("y",Zh((f)=>l(f.id)[1]).strength((f)=>iP(s[f.id]?.depth??1))).force("collide",Bh((f)=>f.radius+1)).stop(),this.warmUp(),this.zoomBehavior=ug().scaleExtent(OV).on("start",(f)=>{if(f.sourceEvent)this.gesturing=!0}).on("zoom",(f)=>this.zoomed(f)).on("end",()=>{this.gesturing=!1}),ht(e).call(this.dragBehavior()).call(this.zoomBehavior).on("dblclick.zoom",null);let{signal:p}=this.listeners;e.addEventListener("pointermove",(f)=>this.hover(this.gesturing?void 0:this.dotUnder(f)),{signal:p}),e.addEventListener("pointerleave",()=>this.hover(void 0),{signal:p}),e.addEventListener("click",(f)=>{if(!f.defaultPrevented)this.onSelect(this.dotUnder(f)?.id??null)},{signal:p}),e.appendChild(this.viewport),this.draw(),this.resizeObserver=new ResizeObserver(([f])=>{if(f)this.resized(f.contentRect.width,f.contentRect.height)}),this.resizeObserver.observe(e),this.resized(i.width,i.height),this.run()}setSelection(e){if(e===this.selected)return;this.selected=e,this.refresh();let t=e===null?void 0:this.dots[e];if(t)this.reveal(t)}setColors(e){for(let t of this.dots)tP(t.circle,t.node,e(t.node))}setVisibleKinds(e){this.visibleKinds=e,this.applyVisibility()}setHiddenPackages(e){this.hiddenPackages=e,this.applyVisibility()}isHidden(e){return e.node.package!==null&&this.hiddenPackages.has(e.node.package)}applyVisibility(){for(let e of this.dots)e.group.style.display=this.isHidden(e)?"none":"";for(let e of this.ties)e.line.style.display=this.isHidden(e.source)||this.isHidden(e.target)?"none":"";for(let e of this.arrows)e.group.style.display=this.isDrawn(e)?"":"none";this.refresh()}isDrawn(e){return this.visibleKinds.has(e.kind)&&!this.isHidden(e.source)&&!this.isHidden(e.target)}zoomBy(e){this.moved=!0,this.zoomBehavior.scaleBy(ht(this.svg),e)}fit(){if(this.width===0||this.height===0||this.dots.length===0)return;let[e,t,a,o]=[1/0,1/0,-1/0,-1/0];for(let{x:l,y:u,radius:d}of this.dots)e=Math.min(e,l-d),t=Math.min(t,u-d),a=Math.max(a,l+d),o=Math.max(o,u+d);let r={width:Math.max(this.width-Su.left-Su.right,1),height:Math.max(this.height-Su.top-Su.bottom,1)},n=Math.min(r.width/Math.max(a-e,1),r.height/Math.max(o-t,1),zV),i=Su.left+(r.width-n*(e+a))/2,s=Su.top+(r.height-n*(t+o))/2;this.moved=!1,this.zoomBehavior.transform(ht(this.svg),ni.translate(i,s).scale(n))}destroy(){cancelAnimationFrame(this.layoutFrame),cancelAnimationFrame(this.labelFrame),this.resizeObserver.disconnect(),this.listeners.abort(),ht(this.svg).on(".zoom",null).on(".drag",null),this.viewport.remove()}get settled(){return this.simulation.alpha()<=this.simulation.alphaMin()}warmUp(){let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches,t=e?this.simulation.alphaMin():BV,a=performance.now()+(e?JD*5:JD);while(this.simulation.alpha()>t&&performance.now()<a)this.simulation.tick();if(e)this.simulation.alpha(0)}run(){if(this.layoutFrame===0&&!this.settled)this.layoutFrame=requestAnimationFrame(()=>this.step())}step(){this.layoutFrame=0;let e=performance.now()+FV,t=0;do this.simulation.tick(),t++;while(!this.settled&&t<HV&&performance.now()<e);if(this.draw(),!this.moved)this.fit();if(this.settled||performance.now()-this.labelsPlacedAt>UV)this.placeLabels();this.run()}dragBehavior(){return zh().subject((e)=>{let t=this.dotNear(e.x,e.y);return t&&{dot:t,x:this.transform.applyX(t.x),y:this.transform.applyY(t.y)}}).on("start",(e)=>{this.gesturing=!0;let{dot:t}=e.subject;t.fx=t.x,t.fy=t.y}).on("drag",(e)=>{if(this.simulation.alphaTarget(eP),this.settled)this.simulation.alpha(eP);this.moved=!0,this.hover(void 0),e.subject.dot.fx=this.transform.invertX(e.x),e.subject.dot.fy=this.transform.invertY(e.y),this.run()}).on("end",(e)=>{this.simulation.alphaTarget(0),this.gesturing=!1,e.subject.dot.fx=null,e.subject.dot.fy=null})}zoomed(e){if(this.transform=e.transform,this.viewport.setAttribute("transform",e.transform.toString()),e.sourceEvent)this.moved=!0,this.hover(void 0);if(e.sourceEvent||this.settled)this.scheduleLabels()}resized(e,t){if(e===this.width&&t===this.height)return;if(this.width=e,this.height=t,this.moved)this.scheduleLabels();else this.fit()}dotUnder(e){let[t,a]=ia(e,this.svg);return this.dotNear(t,a)}dotNear(e,t){let[a,o]=this.transform.invert([e,t]),r=MV/this.transform.k,n=this.simulation.find(a,o,r+aP("section"));if(!n||this.isHidden(n))return;return Math.hypot(n.x-a,n.y-o)<=n.radius+r?n:void 0}hover(e){let t=e?.id??null;if(t===this.hovered)return;this.hovered=t,this.svg.style.cursor=e?"pointer":"",this.refresh(),this.onHover(e?{index:e.id,x:this.transform.applyX(e.x),y:this.transform.applyY(e.y)}:null)}reveal(e){let t=this.transform.applyX(e.x),a=this.transform.applyY(e.y),o=24;if(t>=24&&t<=this.width-24&&a>=24&&a<=this.height-24)return;this.moved=!0,this.zoomBehavior.translateTo(ht(this.svg),e.x,e.y)}refresh(){for(let{element:i,home:s}of this.lifted)s.appendChild(i);this.lifted=[];for(let i of this.marked)i.circle.removeAttribute("data-selected"),i.label.removeAttribute("data-hot");this.marked=[];let e=this.selected??this.hovered,t=e!==null;for(let i of[this.tieLayer,this.arrowLayer,this.dotLayer])i.toggleAttribute("data-dim",t);let a=(i,s,l)=>{l.appendChild(i),this.lifted.push({element:i,home:s})},o=(i)=>i.source.id===e||i.target.id===e,r=new Set(e===null?[]:[e]);if(t){for(let i of this.ties){if(!o(i)||this.isHidden(i.source)||this.isHidden(i.target))continue;r.add(i.source.id).add(i.target.id),a(i.line,this.tieLayer,this.focusTieLayer)}for(let i of this.arrows){if(!o(i)||!this.isDrawn(i))continue;r.add(i.source.id).add(i.target.id),a(i.group,this.arrowLayer,this.focusArrowLayer)}for(let i of r){let s=this.dots[i];if(s)a(s.group,this.dotLayer,this.focusDotLayer)}}this.focusSet=t?r:null;let n=(i,s)=>{let l=this.dots[i??-1];if(!l)return;(s==="data-selected"?l.circle:l.label).setAttribute(s,""),this.marked.push(l)};n(this.selected,"data-selected"),n(e,"data-hot"),n(this.hovered,"data-hot"),this.scheduleLabels()}draw(){for(let{source:e,target:t,line:a}of this.ties)a.x1.baseVal.value=e.x,a.y1.baseVal.value=e.y,a.x2.baseVal.value=t.x,a.y2.baseVal.value=t.y;for(let e of this.arrows)JV(e);for(let e of this.dots)e.group.setAttribute("transform",\`translate(\${Wr(e.x)},\${Wr(e.y)})\`)}scheduleLabels(){if(this.labelFrame!==0)return;this.labelFrame=requestAnimationFrame(()=>{this.labelFrame=0,this.placeLabels()})}placeLabels(){this.labelsPlacedAt=performance.now();let{k:e}=this.transform,t=[],a=new Set,o=this.dotGrid(),r=(n,i)=>{if(!n||a.has(n)||a.size>=PV||this.isHidden(n))return;let s=this.transform.applyX(n.x)+n.radius*e+WD,l=this.transform.applyY(n.y),u=[s,l-QD/2,s+n.node.name.length*DV,l+QD/2];if(i!=="always"){if(!(u[2]>=0&&u[0]<=this.width&&u[3]>=0&&u[1]<=this.height)||t.some((m)=>sP(u,m)))return;if(i==="rest"&&o(u,n))return}t.push(u),a.add(n)};r(this.dots[this.hovered??-1],"always"),r(this.dots[this.selected??-1],"always");for(let n of this.labelOrder)if(this.focusSet?.has(n.id))r(n,"focus");for(let n of this.labelOrder)r(n,"rest");for(let n of this.dots){let i=a.has(n);if(i!==n.labelShown)n.label.style.display=i?"":"none",n.labelShown=i;if(!i||n.labelScale===e)continue;n.label.setAttribute("transform",\`scale(\${1/e})\`),n.label.setAttribute("x",Wr(n.radius*e+WD)),n.labelScale=e}}dotGrid(){let{k:e}=this.transform,t=new Map,a=function*([o,r,n,i]){for(let s=Math.floor(o/pg);s<=Math.floor(n/pg);s++)for(let l=Math.floor(r/pg);l<=Math.floor(i/pg);l++)yield\`\${s}:\${l}\`};for(let o of this.dots){let r=this.transform.applyX(o.x),n=this.transform.applyY(o.y),i=o.radius*e;if(r+i<0||r-i>this.width||n+i<0||n-i>this.height)continue;let s={dot:o,box:[r-i,n-i,r+i,n+i]};for(let l of a(s.box)){let u=t.get(l);if(u)u.push(s);else t.set(l,[s])}}return(o,r)=>{for(let n of a(o))if(t.get(n)?.some((i)=>i.dot!==r&&sP(o,i.box)))return!0;return!1}}}var uP=1.5,PL=120,eZ=72;function cP({view:e,selected:t,visibleKinds:a,hiddenPackages:o,color:r,onSelect:n,className:i}){let s=q(),l=Oo.useRef(null),u=Oo.useRef(null),[d,m]=Oo.useState(null);Oo.useEffect(()=>{if(!l.current)return;let g=new DL({svg:l.current,view:e,onSelect:n,onHover:m});return u.current=g,()=>{g.destroy(),u.current=null,m(null)}},[e,n]),Oo.useEffect(()=>u.current?.setVisibleKinds(a),[e,a]),Oo.useEffect(()=>u.current?.setSelection(t),[e,t]),Oo.useEffect(()=>u.current?.setColors(r),[e,r]),Oo.useEffect(()=>u.current?.setHiddenPackages(o),[e,o]);let p=d===null?void 0:e.nodes[d.index],f=l.current?.clientWidth??0;return S("div",{className:P("relative overflow-hidden rounded-xl border bg-card text-card-foreground shadow-sm",i),children:[c("svg",{ref:l,role:"img","aria-label":\`Graph of \${e.nodes.length} nodes and \${e.references.length} references. Select a node to list its links beside the graph.\`,className:"block size-full cursor-grab touch-none active:cursor-grabbing"}),S("div",{className:"absolute top-3 right-3 flex gap-1",children:[c(vt,{variant:"outline",size:"icon","aria-label":"Zoom out",title:"Zoom out",onClick:()=>u.current?.zoomBy(1/uP),children:c(ns,{})}),c(vt,{variant:"outline",size:"icon","aria-label":"Zoom in",title:"Zoom in",onClick:()=>u.current?.zoomBy(uP),children:c(is,{})}),c(vt,{variant:"outline",size:"icon","aria-label":"Fit the graph to the view",title:"Fit to view",onClick:()=>u.current?.fit(),children:c(Id,{})})]}),d&&p&&S("div",{"aria-hidden":!0,style:{left:Math.min(Math.max(d.x,PL),Math.max(f-PL,PL)),top:d.y},className:P("pointer-events-none absolute z-10 flex max-w-60 -translate-x-1/2 items-center gap-2 rounded-md border bg-popover px-2.5 py-1.5 text-popover-foreground shadow-md",d.y>eZ?"-translate-y-[calc(100%+0.875rem)]":"translate-y-3.5"),children:[c(ye,{kind:p.kind,className:"h-5 px-1.5 text-[0.6875rem]"}),c("span",{className:"truncate font-medium font-mono text-xs",children:s.qualifiedName(p.ref)})]})]})}var fP="flex w-full items-baseline gap-2 rounded-md px-2 py-1 text-left text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-3 focus-visible:ring-ring/50";function tZ(e,t){if(e.node(t).kind==="section")return null;for(let o of[t,...e.ancestors(t).reverse()]){let r=e.node(o);if("path"in r)return o===t?r.path:\`in \${r.path}\`}return e.route(t).path.split("/").slice(1).join("/")}function pP({view:e,selected:t,visibleKinds:a,onSelect:o,className:r}){let n=q(),i=t===null?void 0:e.nodes[t];if(t===null||!i)return S("aside",{"aria-label":"Selected node",className:P("text-muted-foreground text-sm leading-6",r),children:[c("h2",{className:"font-semibold text-foreground",children:"No node selected"}),c("p",{className:"mt-1",children:"Click a dot to list what it links to and what links to it."}),c("p",{className:"mt-3",children:"Drag the background to pan. Scroll or pinch to zoom. Drag a dot to move it."})]});let s=e.references.filter((p)=>a.has(p.kind)),l=s.filter((p)=>p.source===t),u=s.filter((p)=>p.target===t),d=i.parent===null?void 0:e.nodes[i.parent],m=tZ(n,i.ref);return S("aside",{"aria-label":"Selected node",className:P("flex min-h-0 flex-col",r),children:[S("div",{className:"flex items-start gap-2",children:[c(ye,{kind:i.kind,className:"mt-0.5"}),c("h2",{className:P("min-w-0 flex-1 font-bold text-base leading-6",ql(i.kind)),children:ma(i.kind)?n.qualifiedName(i.ref):i.name}),c(vt,{variant:"ghost",size:"icon",className:"-mt-1.5 -mr-2","aria-label":"Clear the selection",title:"Clear the selection",onClick:()=>o(null),children:c(To,{})})]}),m&&c("p",{className:"mt-1 break-all font-mono text-muted-foreground text-xs",children:m}),c(vt,{asChild:!0,size:"sm",className:"mt-3 w-fit",children:S(ie,{node:i.ref,children:["Open page",c(pd,{})]})}),S("div",{className:"mt-5 min-h-0 flex-1 space-y-5 overflow-y-auto",children:[d&&S("section",{"aria-label":"Inside",children:[c("h3",{className:"font-semibold text-sm",children:"Inside"}),S("button",{type:"button",className:P(fP,"mt-1"),onClick:()=>o(i.parent),children:[c("span",{className:"w-16 shrink-0 text-muted-foreground text-xs",children:Gl(d.kind)}),c("span",{className:P("min-w-0 text-[0.8125rem]",ql(d.kind)),children:d.name})]})]}),c(dP,{title:"Links to",empty:"This node links to nothing.",references:l,end:"target",view:e,onSelect:o}),c(dP,{title:"Linked from",empty:"Nothing links to this node.",references:u,end:"source",view:e,onSelect:o})]})]})}function dP({title:e,empty:t,references:a,end:o,view:r,onSelect:n}){let i=q();return S("section",{"aria-label":e,children:[S("h3",{className:"font-semibold text-sm",children:[e," ",c("span",{className:"font-normal text-muted-foreground tabular-nums",children:a.length})]}),a.length===0?c("p",{className:"mt-1 px-2 text-muted-foreground text-sm",children:t}):c("ul",{className:"mt-1",children:a.map((s)=>{let l=r.nodes[s[o]];if(!l)return null;return c("li",{children:S("button",{type:"button",className:fP,onClick:()=>n(s[o]),children:[c(Ah,{kind:s.kind,className:"mt-0.5 self-start"}),c("span",{className:"w-16 shrink-0 text-muted-foreground text-xs",title:wr[s.kind][o==="target"?"forward":"backward"],children:wr[s.kind].label}),c("span",{className:P("min-w-0 text-[0.8125rem]",ql(l.kind)),children:i.qualifiedName(l.ref)}),s.count>1&&S("span",{className:"ml-auto shrink-0 text-muted-foreground text-xs tabular-nums",children:[s.count," times"]})]})},\`\${s.kind}:\${s[o]}\`)})})]})}var mg=U(V(),1);var mP=jl("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});var hP=mg.createContext({size:"default",variant:"default",spacing:0});function bf({className:e,variant:t,size:a,spacing:o=0,children:r,...n}){return c(Xd.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":o,style:{"--gap":o},className:P("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=0]:data-[variant=outline]:shadow-xs",e),...n,children:c(hP.Provider,{value:{variant:t,size:a,spacing:o},children:r})})}function wf({className:e,children:t,variant:a,size:o,...r}){let n=mg.useContext(hP);return c(Xd.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||a,"data-size":n.size||o,"data-spacing":n.spacing,className:P(mP({variant:n.variant||a,size:n.size||o}),"min-w-0 shrink-0 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",e),...r,children:t})}var OL=["files","entries","all"],aZ=600;class gP{level;nodes;references;shownBy;constructor(e,t,a,o){this.level=e;this.nodes=t;this.references=a;this.shownBy=o}locate(e){return this.shownBy.get(e)}}function yP(e,t,a){let{kind:o}=e.node(t);if(o==="section")return e.children(t).length>0;if(Bs(pa(o))){if(a!=="all")return!1;return!ko(o)||e.edgesFrom(t).length>0}return a!=="files"||!Ta(o)}function xP(e,t){let a=[],o=new Map,r=new Map;for(let{slug:i,node:s}of e.sections)for(let l of[s,...e.descendants(s)]){let u=e.node(l),{kind:d,name:m,parent:p}=u,f=u.kind==="package"?u.path:p===null?null:r.get(p)??null;r.set(l,f);let g=p===null?void 0:o.get(p);if(!yP(e,l,t)){if(g!==void 0)o.set(l,g);continue}o.set(l,a.length),a.push({ref:l,kind:d,name:m,section:i,parent:g??null,package:f})}let n=new Map;for(let[i,s]of o)for(let[,l,u]of e.edgesFrom(i)){let d=o.get(u);if(d===void 0||d===s)continue;let m=\`\${s}:\${l}:\${d}\`;n.set(m,{source:s,target:d,kind:l,count:(n.get(m)?.count??0)+1})}return new gP(t,a,[...n.values()],o)}function vP(e){let t=0;for(let{node:a}of e.sections)for(let o of e.descendants(a))if(yP(e,o,"entries"))t++;return t<=aZ?"entries":"files"}function bP(e){let t=new Set;for(let{node:a}of e.sections)for(let o of e.descendants(a)){let r=e.node(o);if(r.kind==="package")t.add(r.path)}return[...t].sort()}var wP={skills:{bg:"bg-chart-3",fill:"fill-chart-3",stroke:"stroke-chart-3"},docs:{bg:"bg-chart-2",fill:"fill-chart-2",stroke:"stroke-chart-2"},code:{bg:"bg-chart-1",fill:"fill-chart-1",stroke:"stroke-chart-1"},database:{bg:"bg-section-database",fill:"fill-section-database",stroke:"stroke-section-database"},tasks:{bg:"bg-section-tasks",fill:"fill-section-tasks",stroke:"stroke-section-tasks"}};var oZ={files:"Files",entries:"Entries",all:"All"},rZ={files:"Folders, packages and files",entries:"Files, and inside them every class, function, glossary term, decision, table, query and task",all:"Entries, and every operation and definition, and each parameter and field that refers to a type of the repository"},nZ={section:"Section",kind:"Kind",package:"Package"},iZ={section:"One color per section",kind:"One color per kind: file, class, function, interface and so on",package:"One color per package, gray outside every package"},hg="font-medium text-muted-foreground text-xs";function SP(e,t){return\`\${e.toLocaleString()} \${t}\${e===1?"":"s"}\`}function LP(){let e=q();Re(\`Graph \xB7 \${e.meta.title}\`);let t=Xe(De,(f)=>f.graphView),a=t.level??vP(e),o=lr.useMemo(()=>bP(e),[e]),r=lr.useMemo(()=>new Set(t.hiddenPackages),[t.hiddenPackages]),n=lr.useMemo(()=>xP(e,a),[e,a]),i=lr.useMemo(()=>lZ(n),[n]),s=lr.useMemo(()=>new Set(Ti.filter((f)=>!t.hiddenKinds.includes(f))),[t.hiddenKinds]),l=t.selected===null?null:n.locate(t.selected)??null,u=lr.useCallback((f)=>cg(f,t.colorBy,o),[t.colorBy,o]),d=lr.useCallback((f)=>De.actions.selectInGraph(f===null?null:n.nodes[f]?.ref??null),[n]),m=new Map;for(let{kind:f}of n.references)m.set(f,(m.get(f)??0)+1);let p=Ti.filter((f)=>m.has(f));return S("main",{className:"flex min-h-[calc(100dvh-3.5rem)] flex-col gap-4 p-4 sm:p-6 xl:h-dvh xl:min-h-0",children:[S("header",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[c("h1",{className:"font-bold text-3xl tracking-tight",children:"Graph"}),S("p",{className:"text-muted-foreground text-sm",children:[SP(n.nodes.length,"node"),", ",SP(n.references.length,"reference")]})]}),S("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3",children:[S("div",{className:"flex items-center gap-2",children:[c("span",{id:"graph-level",className:hg,children:"Show"}),c(bf,{type:"single",variant:"outline",size:"sm","aria-labelledby":"graph-level",value:a,onValueChange:(f)=>{let g=OL.find((y)=>y===f);if(g)De.actions.setGraphLevel(g)},children:OL.map((f)=>c(wf,{value:f,title:rZ[f],className:"px-3",children:oZ[f]},f))})]}),S("div",{className:"flex items-center gap-2",children:[c("span",{id:"graph-color-by",className:hg,children:"Color by"}),c(bf,{type:"single",variant:"outline",size:"sm","aria-labelledby":"graph-color-by",value:t.colorBy,onValueChange:(f)=>{let g=NL.find((y)=>y===f);if(g)De.actions.setGraphColorBy(g)},children:NL.map((f)=>c(wf,{value:f,title:iZ[f],className:"px-3",disabled:f==="package"&&o.length===0,children:nZ[f]},f))})]}),p.length>0&&S("div",{className:"flex items-start gap-2",children:[c("span",{id:"graph-kinds",className:P(hg,"flex h-8 shrink-0 items-center"),children:"References"}),c(bf,{type:"multiple",variant:"outline",size:"sm",spacing:1,className:"flex-wrap","aria-labelledby":"graph-kinds",value:p.filter((f)=>s.has(f)),onValueChange:(f)=>De.actions.setHiddenEdgeKinds(Ti.filter((g)=>!f.includes(g))),children:p.map((f)=>S(wf,{value:f,className:"gap-1.5 px-2",title:wr[f].description,children:[c(Ah,{kind:f}),wr[f].label,c("span",{className:"text-muted-foreground text-xs tabular-nums",children:m.get(f)})]},f))})]}),o.length>0&&S("div",{className:"flex items-start gap-2",children:[c("span",{id:"graph-packages",className:P(hg,"flex h-8 shrink-0 items-center"),children:"Packages"}),c(bf,{type:"multiple",variant:"outline",size:"sm",spacing:1,className:"flex-wrap","aria-labelledby":"graph-packages",value:o.filter((f)=>!r.has(f)),onValueChange:(f)=>De.actions.setHiddenPackages(o.filter((g)=>!f.includes(g))),children:o.map((f,g)=>S(wf,{value:f,className:"gap-1.5 px-2",title:\`Show or hide \${f}\`,children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5"),style:{background:vf(g)}}),f,c("span",{className:"text-muted-foreground text-xs tabular-nums",children:i.get(f)??0})]},f))})]})]}),c(uZ,{colorBy:t.colorBy,view:n}),S("div",{className:"flex min-h-0 flex-1 flex-col gap-4 xl:flex-row",children:[c(cP,{view:n,selected:l,visibleKinds:s,hiddenPackages:r,color:u,onSelect:d,className:"h-[70dvh] min-h-96 xl:h-auto xl:min-h-0 xl:flex-1"}),c(pP,{view:n,selected:l,visibleKinds:s,onSelect:d,className:"rounded-xl border bg-card p-4 text-card-foreground shadow-sm xl:w-80 xl:shrink-0"})]})]})}var vs="inline-block shrink-0 rounded-full",sZ=(()=>{let e=_i.filter((t)=>!["folder","package","file","plan","phase"].includes(t)).map((t)=>hn[t].label);return\`\${e.slice(0,-1).join(", ")} or \${e.at(-1)}\`})();function lZ(e){let t=new Map;for(let a of e.nodes)if(a.package!==null)t.set(a.package,(t.get(a.package)??0)+1);return t}function uZ({colorBy:e,view:t}){let a=q(),o=lr.useMemo(()=>{let r=new Map;for(let n of t.nodes)r.set(pa(n.kind),(r.get(pa(n.kind))??0)+1);return _i.filter((n)=>r.has(n)).map((n)=>[n,r.get(n)??0])},[t]);return S("ul",{"aria-label":"Legend",className:"flex flex-wrap items-center gap-x-5 gap-y-1.5 text-muted-foreground text-xs",children:[e==="section"&&a.sections.map(({slug:r,node:n})=>S("li",{className:"flex items-center gap-1.5 font-medium text-foreground",title:ix[r].description,children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5",wP[r].bg)}),a.node(n).name]},r)),e==="kind"&&o.map(([r,n])=>S("li",{className:"flex items-center gap-1.5 font-medium text-foreground",title:hn[r].description,children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5"),style:{background:vf(_i.indexOf(r))}}),hn[r].label,c("span",{className:"text-muted-foreground tabular-nums",children:n})]},r)),e==="package"&&S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5"),style:{background:AL}}),"outside every package; each package has the color of its button"]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-3 bg-muted-foreground")}),"file"]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-1.5 bg-muted-foreground")}),"entry: ",sZ]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:P(vs,"size-2.5 border-[1.5px] border-muted-foreground")}),"folder or package"]}),S("li",{className:"flex items-center gap-1.5",children:[c("span",{"aria-hidden":!0,className:"h-px w-5 bg-border"}),"contains"]}),S("li",{className:"flex items-center gap-1.5",children:[c("svg",{"aria-hidden":!0,viewBox:"0 0 22 8",className:"h-2 w-5.5 fill-none stroke-muted-foreground",children:c("path",{d:"M1 4H20M16 1.5L20 4L16 6.5",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),"reference, in the color of its kind"]})]})}var FL=U(V(),1);var zL="rounded-xs font-medium text-primary underline decoration-primary/40 underline-offset-4 outline-hidden transition-colors hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function CP({id:e,title:t,children:a}){return S("section",{"aria-labelledby":e,children:[c("h2",{id:e,children:t}),a]})}function po({head:e,children:t}){let[,a,o]=e,r=o===void 0?void 0:{"--label-2":JSON.stringify(a),"--label-3":JSON.stringify(o)};return S("table",{className:"row-cards",style:r,children:[c("thead",{children:c("tr",{children:e.map((n)=>c("th",{scope:"col",children:n},n))})}),c("tbody",{children:t})]})}function zo({title:e,code:t}){return S("figure",{className:"my-4 min-w-0",children:[c("figcaption",{className:"mb-1.5 font-medium text-muted-foreground text-xs",children:e}),c("pre",{className:"shiki my-0",children:c("code",{children:t})})]})}function gg({children:e}){return c("kbd",{className:"rounded-sm border bg-muted px-1.5 py-0.5 font-mono text-[0.85em] text-accent-foreground",children:e})}function Lu({children:e="This site has none."}){return S("span",{className:"text-muted-foreground",children:[" ",e]})}var cZ="## Project knowledge\\n\\nQuery the project with \`analyze\` before reading whole files:\\n\\n- \`g3n-analyze search <words>\` finds pages, functions, terms, decisions, tables and queries.\\n- \`g3n-analyze show <id or name>\` prints one of them in full, with its references.\\n- \`g3n-analyze refs <id or name>\` lists what it links to and what links to it.\\n- Before changing code, run \`g3n-analyze refs <name> --edge affects --incoming\`\\n and read the decisions it lists.\\n- Use the terms of \`glossary.md\`. Do not use the words under _Avoid_.";function kP(){return S(he,{children:[S("p",{children:["A coding agent can run the retrieval commands and gets the answer the site would show, without reading whole files. Put this in the instruction file of the agent, such as ",c("code",{children:"CLAUDE.md"})," or ",c("code",{children:"AGENTS.md"}),"."]}),c(zo,{title:"Instructions for the agent",code:cZ}),S("p",{children:["An agent without the repository reads a built file: ",c("code",{children:"g3n-analyze search <words> --from analyze_out/index.html"}),"."]})]})}var dZ=\`bun add -g @g3nomaly/analyze
7541
7541
  cd ~/code/my-repo
7542
- g3n-analyze create_docs\`,kZ="bunx @g3nomaly/analyze create_docs --repo ~/code/my-repo";function CP(){return S(he,{children:[S("p",{children:[c("code",{children:"create_docs"})," reads a repository and writes one HTML file, ",c("code",{children:"analyze_out/index.html"})," in the repository. It needs Bun 1.2.21 or newer."]}),S("div",{className:"grid gap-x-5 md:grid-cols-2",children:[c(zo,{title:"Installed",code:CZ}),c(zo,{title:"Without installing",code:kZ})]}),S(po,{head:["Flag","Variable","Effect"],children:[S("tr",{children:[c("td",{children:c("code",{children:"--title <text>"})}),c("td",{children:c("code",{children:"ANALYZE_TITLE"})}),c("td",{children:"The site title. Default: the name of the repository directory"})]}),S("tr",{children:[c("td",{children:c("code",{children:"--repo <dir>"})}),c("td",{children:c("code",{children:"ANALYZE_REPO"})}),c("td",{children:"The repository to read. Default: the current directory"})]}),S("tr",{children:[c("td",{children:c("code",{children:"--exclude <glob>"})}),c("td",{children:c("code",{children:"ANALYZE_EXCLUDE"})}),S("td",{children:["Skip matching paths, such as ",c("code",{children:'"**/*.test.ts"'}),". Repeatable"]})]}),S("tr",{children:[S("td",{children:[c("code",{children:"--skills <dir>"}),", ",c("code",{children:"--docs <dir>"})]}),S("td",{children:[c("code",{children:"ANALYZE_SKILLS"}),", ",c("code",{children:"ANALYZE_DOCS"})]}),c("td",{children:"Read skills or docs from that directory instead of the whole repository. Repeatable"})]}),S("tr",{children:[c("td",{children:c("code",{children:"--no-embeddings"})}),c("td",{children:c("code",{children:"ANALYZE_EMBEDDINGS=off"})}),c("td",{children:"Leave out search by meaning. The file is about 3.2 MB smaller"})]})]}),S("ul",{children:[S("li",{children:["The file list comes from ",c("code",{children:"git ls-files"}),", so ",c("code",{children:".gitignore"})," applies."," ",c("code",{children:".analyzeignore"})," at the root lists what is skipped: ",c("code",{children:"node_modules"}),", ",c("code",{children:"vendor"}),", build output, ",c("code",{children:"data"})," and virtual environments to start with. analyze writes it when it is absent."]}),c("li",{children:"Exclude what a reader should not meet: tests, generated code, lock files. Every JSON, TOML and YAML file of the repository is a page under Code otherwise."}),c("li",{children:"The file shows the repository as it was when the command ran. Run the command again after a change, for example in CI, and publish the file from there."})]})]})}function kP(){return S("ul",{children:[S("li",{children:["It writes only into ",c("code",{children:"analyze_out/"})," in the repository: the site, ",c("code",{children:"index.html"}),", and the cache of the retrieval commands, ",c("code",{children:"cache/"}),". It never documents that directory."]}),c("li",{children:"It sends nothing over the network. The build runs offline, and this page loads no file from another host. Search by meaning looks words up in a table inside the page, on the CPU."}),S("li",{children:["It never runs SQL. It reads ",c("code",{children:".sql"})," files as text with the grammar of SQLite. The delete preview follows the foreign keys of the schema and touches no row."]}),c("li",{children:"It reads code in 13 languages: TypeScript, JavaScript, Python, Rust, Go, Java, Kotlin, Scala, C, C++, C#, Ruby and PHP. A file in another language is not listed under Code."}),S("li",{children:["It skips a ",c("code",{children:".sql"})," file above 512 kB and drops raw HTML in markdown. A Swagger 2.0 file stays a plain JSON page."]})]})}function wf({node:e,children:t}){if(e===null)return t;return c(ie,{node:e,className:PL,children:t})}function IP({pages:e}){let t=q(),a=(o,r)=>o===null?r:t.node(o).name;return S(po,{head:["To","Do this"],children:[S("tr",{children:[c("td",{children:"Find a page or an entry"}),S("td",{children:["Press ",c(hg,{children:"Ctrl K"}),", ",c(hg,{children:"\u2318K"})," or ",c(hg,{children:"/"}),". Search matches names and descriptions by their words. Below those hits it lists entries with a similar meaning."]})]}),S("tr",{children:[c("td",{children:"See what refers to a class, a function, a table or a term"}),S("td",{children:["Read ",c("strong",{children:"Used by"})," on its card. It lists what takes it, returns it, extends it or mentions it, and the decisions about it."]})]}),S("tr",{children:[c("td",{children:"See how the parts connect"}),S("td",{children:["Open the"," ",c(rt,{to:"/graph",className:PL,children:"Graph"}),". Click a dot to list its references. A line has the color of its kind of reference."]})]}),S("tr",{children:[c("td",{children:"Look up a word of the project"}),S("td",{children:["Open the ",c(wf,{node:e.glossary,children:"Glossary"}),". In running text a term has a dotted underline. Point at it to read the definition.",e.glossary===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"Find the reason behind a piece of code"}),S("td",{children:["Open ",c(wf,{node:e.decisions,children:"Decisions"}),". The code a decision names lists that decision under ",c("strong",{children:"Used by"}),".",e.decisions===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"See what is planned and where it stands"}),S("td",{children:["Open ",c(wf,{node:e.plan,children:a(e.plan,"a plan")})," under Tasks. A phase lists its tasks with their status, and a task lists the code and the docs it names.",e.plan===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"Read the tables of the database"}),S("td",{children:["Open ",c(wf,{node:e.database,children:a(e.database,"a schema file")})," under Database. The diagram draws every table once, with its columns and its foreign keys. Press the bin of a table to see what the delete of one row removes.",e.database===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"See which queries touch a table"}),S("td",{children:["Read ",c("strong",{children:"Queries by table"})," under the diagram, or open"," ",c(wf,{node:e.catalog,children:"the query catalog"}),".",e.catalog===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"Go from a page to its dot in the graph"}),S("td",{children:["Press the ",c(_o,{role:"img","aria-label":"Show in graph",className:"inline size-4 align-text-bottom"})," ","button at the top of the page. The card of an entry has one too."]})]}),S("tr",{children:[c("td",{children:"Send someone one entry"}),c("td",{children:"Copy the address from the browser. Every class, function, term, decision, table, query and task has an address of its own."})]})]})}function RP(){return S(he,{children:[S("p",{children:["Search works two ways. ",c("strong",{children:"By words"})," finds entries that hold the words of the query."," ",c("strong",{children:"By meaning"})," finds entries whose words mean about the same, and gives each a score."]}),S(po,{head:["When","Do this"],children:[S("tr",{children:[c("td",{children:"A search by words finds nothing"}),c("td",{children:"Use fewer words. An entry has to hold every word of the query"})]}),S("tr",{children:[c("td",{children:"Readers use a word the project does not"}),S("td",{children:["Add the word under ",c("code",{children:"_Avoid_:"})," of the glossary term. Search by words then finds the term by it"]})]}),S("tr",{children:[c("td",{children:"The project made a name up, such as an abbreviation"}),c("td",{children:"Define it in the glossary. Search by meaning knows 33,731 English words. It finds any other word by its spelling alone"})]}),S("tr",{children:[c("td",{children:"An entry is only found by its name"}),c("td",{children:"Give it a description. Both ways of search read descriptions"})]}),S("tr",{children:[c("td",{children:"A hit by meaning is wrong"}),c("td",{children:"Read the score as a suggestion. Hits are listed from 50%, and nobody wrote that link down"})]}),S("tr",{children:[c("td",{children:"The texts are not in English"}),S("td",{children:["Search by words works in any language. Search by meaning knows English, and ",c("code",{children:"--no-embeddings"})," ","leaves it out"]})]})]})]})}var IZ=["glossary","decisions","database","catalog","plan"],RZ=/^[\\w.-]+$/,_Z=/[\\p{L}\\p{N}]+/gu;function*_P(e){for(let{node:t}of e.sections){yield[t,e.node(t)];for(let a of e.descendants(t))yield[a,e.node(a)]}}function TP(e){let t=new Map,a={described:0,total:0},o={described:0,total:0},r={described:0,total:0},n={glossary:null,decisions:null,database:null,catalog:null,plan:null},i=0,s=0,l=(u,d)=>{if(d!=="")u.described++;u.total++};for(let[u,d]of _P(e)){t.set(d.kind,(t.get(d.kind)??0)+1);let m=IZ.find((p)=>p===d.kind);if(m)n[m]??=u;if(d.kind==="table")l(o,d.descriptionHtml);else if(d.kind==="query")l(r,d.descriptionHtml);else if(Qu(d))l(a,d.descriptionHtml);for(let p of e.edgesFrom(u))if(p[1]==="mentions")i++;else if(p[1]==="names")s++}return{skills:t.get("skill")??0,terms:t.get("term")??0,decisions:t.get("decision")??0,operations:t.get("operation")??0,definitions:t.get("definition")??0,plans:t.get("plan")??0,tasks:t.get("task")??0,named:s,mentions:i,symbols:a,tables:o,queries:r,pages:n}}function EP(e){return["g3n-analyze",...e.map((a)=>RZ.test(a)?a:\`'\${a.replaceAll("'","'\\\\''")}'\`)].join(" ")}function TZ(e,t){let a=e.node(t),o="descriptionHtml"in a&&a.descriptionHtml!=="";return e.edgesTo(t).length+(o?0.5:0)}function NP(e){let t=new Map;for(let[m,{kind:p,name:f}]of _P(e)){let g=t.get(p)??new Map;t.set(p,g.set(f,[...g.get(f)??[],m]))}let a=(...m)=>{for(let p of m){let f=null;for(let[g,y]of t.get(p)??[]){let[b,...h]=y;if(b===void 0||h.length>0)continue;let x=TZ(e,b);if(f===null||x>f.rank)f={name:g,target:[g,"--kind",p],rank:x}}if(f!==null)return f}return null},o=a("term"),r=a("function","method"),n=a("class","interface","struct"),i=a("table"),s=a("query"),l=(o??r??n??i)?.name.toLowerCase().match(_Z),u=[],d=(m,p)=>{if(m)u.push({args:m,prints:p})};return d(l&&["search",...l],"Pages and entries that hold the words, then entries with a similar meaning"),d(r&&["show",...r.target],"The signature, the description, the parameters and the references"),d(r&&["refs",...r.target,"--incoming"],"What refers to it: types, pages and decisions"),d(!r&&n&&["show",...n.target],"The type with its fields and its references"),d(o&&["show",...o.target],"The definition and the words to avoid in its place"),d(t.has("decision")&&["list","--kind","decision"],"Every decision with its status"),d(i&&["show",...i.target],"The columns, keys and indexes of the table"),d(i&&s&&["refs",...i.target,"--edge","reads","--edge","writes"],"The queries that read the table and the ones that write it"),d(s&&["show",...s.target],"The SQL, its placeholders and its result columns"),d(t.has("task")&&["list","--kind","task"],"Every task with its status"),u}function AP({commands:e}){return S(he,{children:[S("p",{children:["Four commands answer from the same linked model as this site. Run them inside the repository. They print markdown, or JSON with ",c("code",{children:"--json"}),"."]}),S(po,{head:["Command","Prints"],children:[S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze search <words>"})}),c("td",{children:"Up to 10 hits, each with an id, a file and a summary. Matches by words come first, then matches by meaning"})]}),S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze show <node>"})}),c("td",{children:"One page or entry in full: signature, description, parameters and references"})]}),S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze refs <node>"})}),c("td",{children:"What the node links to and what links to it"})]}),S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze list"})}),c("td",{children:"Every page and entry, one per line"})]})]}),S("p",{children:["A ",c("code",{children:"<node>"})," is an id from the output of ",c("code",{children:"search"})," or ",c("code",{children:"list"}),", the path of a file, or a name. When several nodes have the name, the command lists their ids and stops. ",c("code",{children:"--kind"})," ","and ",c("code",{children:"--section"})," narrow the choice."]}),e.length>0&&S(he,{children:[c("h3",{id:"terminal-examples",children:"Examples for this repository"}),c(po,{head:["Command","Prints"],children:e.map(({args:t,prints:a})=>S("tr",{children:[c("td",{children:c("code",{children:EP(t)})}),c("td",{children:a})]},t.join(" ")))})]}),c("h3",{id:"terminal-options",children:"Options"}),S(po,{head:["To","Add"],children:[S("tr",{children:[c("td",{children:"Read a built file. This needs no repository"}),c("td",{children:c("code",{children:"--from analyze_out/index.html"})})]}),S("tr",{children:[c("td",{children:"Get JSON"}),c("td",{children:c("code",{children:"--json"})})]}),S("tr",{children:[c("td",{children:"Keep to one kind or one section"}),S("td",{children:[c("code",{children:"--kind table"}),", ",c("code",{children:"--section database"})]})]}),S("tr",{children:[c("td",{children:"Search one way only"}),S("td",{children:[c("code",{children:"--by name"}),", ",c("code",{children:"--by meaning"})]})]}),S("tr",{children:[c("td",{children:"Get more results"}),c("td",{children:c("code",{children:"-n 25"})})]}),S("tr",{children:[c("td",{children:"Follow one direction or one kind of reference"}),S("td",{children:[c("code",{children:"--incoming"}),", ",c("code",{children:"--outgoing"}),", ",c("code",{children:"--edge reads"})]})]}),S("tr",{children:[c("td",{children:"Scan again although no file changed"}),c("td",{children:c("code",{children:"--no-cache"})})]})]}),S("p",{children:["Without ",c("code",{children:"--from"}),", a query scans the repository when a file changed since the last query. Otherwise it reads its cache in ",c("code",{children:"analyze_out/cache"})," of the repository."]})]})}var EZ=\`# Glossary
7542
+ g3n-analyze create_docs\`,fZ="bunx @g3nomaly/analyze create_docs --repo ~/code/my-repo";function IP(){return S(he,{children:[S("p",{children:[c("code",{children:"create_docs"})," reads a repository and writes one HTML file, ",c("code",{children:"analyze_out/index.html"})," in the repository. It needs Bun 1.2.21 or newer."]}),S("div",{className:"grid gap-x-5 md:grid-cols-2",children:[c(zo,{title:"Installed",code:dZ}),c(zo,{title:"Without installing",code:fZ})]}),S(po,{head:["Flag","Variable","Effect"],children:[S("tr",{children:[c("td",{children:c("code",{children:"--title <text>"})}),c("td",{children:c("code",{children:"ANALYZE_TITLE"})}),c("td",{children:"The site title. Default: the name of the repository directory"})]}),S("tr",{children:[c("td",{children:c("code",{children:"--repo <dir>"})}),c("td",{children:c("code",{children:"ANALYZE_REPO"})}),c("td",{children:"The repository to read. Default: the current directory"})]}),S("tr",{children:[c("td",{children:c("code",{children:"--exclude <glob>"})}),c("td",{children:c("code",{children:"ANALYZE_EXCLUDE"})}),S("td",{children:["Skip matching paths, such as ",c("code",{children:'"**/*.test.ts"'}),". Repeatable"]})]}),S("tr",{children:[S("td",{children:[c("code",{children:"--skills <dir>"}),", ",c("code",{children:"--docs <dir>"})]}),S("td",{children:[c("code",{children:"ANALYZE_SKILLS"}),", ",c("code",{children:"ANALYZE_DOCS"})]}),c("td",{children:"Read skills or docs from that directory instead of the whole repository. Repeatable"})]}),S("tr",{children:[c("td",{children:c("code",{children:"--no-embeddings"})}),c("td",{children:c("code",{children:"ANALYZE_EMBEDDINGS=off"})}),c("td",{children:"Leave out search by meaning. The file is about 3.2 MB smaller"})]})]}),S("ul",{children:[S("li",{children:["The file list comes from ",c("code",{children:"git ls-files"}),", so ",c("code",{children:".gitignore"})," applies."," ",c("code",{children:".analyzeignore"})," at the root lists what is skipped: ",c("code",{children:"node_modules"}),", ",c("code",{children:"vendor"}),", build output, ",c("code",{children:"data"})," and virtual environments to start with. analyze writes it when it is absent."]}),c("li",{children:"Exclude what a reader should not meet: tests, generated code, lock files. Every JSON, TOML and YAML file of the repository is a page under Code otherwise."}),c("li",{children:"The file shows the repository as it was when the command ran. Run the command again after a change, for example in CI, and publish the file from there."})]})]})}function RP(){return S("ul",{children:[S("li",{children:["It writes only into ",c("code",{children:"analyze_out/"})," in the repository: the site, ",c("code",{children:"index.html"}),", and the cache of the retrieval commands, ",c("code",{children:"cache/"}),". It never documents that directory."]}),c("li",{children:"It sends nothing over the network. The build runs offline, and this page loads no file from another host. Search by meaning looks words up in a table inside the page, on the CPU."}),S("li",{children:["It never runs SQL. It reads ",c("code",{children:".sql"})," files as text with the grammar of SQLite. The delete preview follows the foreign keys of the schema and touches no row."]}),c("li",{children:"It reads code in 13 languages: TypeScript, JavaScript, Python, Rust, Go, Java, Kotlin, Scala, C, C++, C#, Ruby and PHP. A file in another language is not listed under Code."}),S("li",{children:["It skips a ",c("code",{children:".sql"})," file above 512 kB and drops raw HTML in markdown. A Swagger 2.0 file stays a plain JSON page."]})]})}function Sf({node:e,children:t}){if(e===null)return t;return c(ie,{node:e,className:zL,children:t})}function _P({pages:e}){let t=q(),a=(o,r)=>o===null?r:t.node(o).name;return S(po,{head:["To","Do this"],children:[S("tr",{children:[c("td",{children:"Find a page or an entry"}),S("td",{children:["Press ",c(gg,{children:"Ctrl K"}),", ",c(gg,{children:"\u2318K"})," or ",c(gg,{children:"/"}),". Search matches names and descriptions by their words. Below those hits it lists entries with a similar meaning."]})]}),S("tr",{children:[c("td",{children:"See what refers to a class, a function, a table or a term"}),S("td",{children:["Read ",c("strong",{children:"Used by"})," on its card. It lists what takes it, returns it, extends it or mentions it, and the decisions about it."]})]}),S("tr",{children:[c("td",{children:"See how the parts connect"}),S("td",{children:["Open the"," ",c(rt,{to:"/graph",className:zL,children:"Graph"}),". Click a dot to list its references. A line has the color of its kind of reference."]})]}),S("tr",{children:[c("td",{children:"Look up a word of the project"}),S("td",{children:["Open the ",c(Sf,{node:e.glossary,children:"Glossary"}),". In running text a term has a dotted underline. Point at it to read the definition.",e.glossary===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"Find the reason behind a piece of code"}),S("td",{children:["Open ",c(Sf,{node:e.decisions,children:"Decisions"}),". The code a decision names lists that decision under ",c("strong",{children:"Used by"}),".",e.decisions===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"See what is planned and where it stands"}),S("td",{children:["Open ",c(Sf,{node:e.plan,children:a(e.plan,"a plan")})," under Tasks. A phase lists its tasks with their status, and a task lists the code and the docs it names.",e.plan===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"Read the tables of the database"}),S("td",{children:["Open ",c(Sf,{node:e.database,children:a(e.database,"a schema file")})," under Database. The diagram draws every table once, with its columns and its foreign keys. Press the bin of a table to see what the delete of one row removes.",e.database===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"See which queries touch a table"}),S("td",{children:["Read ",c("strong",{children:"Queries by table"})," under the diagram, or open"," ",c(Sf,{node:e.catalog,children:"the query catalog"}),".",e.catalog===null&&c(Lu,{})]})]}),S("tr",{children:[c("td",{children:"Go from a page to its dot in the graph"}),S("td",{children:["Press the ",c(_o,{role:"img","aria-label":"Show in graph",className:"inline size-4 align-text-bottom"})," ","button at the top of the page. The card of an entry has one too."]})]}),S("tr",{children:[c("td",{children:"Send someone one entry"}),c("td",{children:"Copy the address from the browser. Every class, function, term, decision, table, query and task has an address of its own."})]})]})}function TP(){return S(he,{children:[S("p",{children:["Search works two ways. ",c("strong",{children:"By words"})," finds entries that hold the words of the query."," ",c("strong",{children:"By meaning"})," finds entries whose words mean about the same, and gives each a score."]}),S(po,{head:["When","Do this"],children:[S("tr",{children:[c("td",{children:"A search by words finds nothing"}),c("td",{children:"Use fewer words. An entry has to hold every word of the query"})]}),S("tr",{children:[c("td",{children:"Readers use a word the project does not"}),S("td",{children:["Add the word under ",c("code",{children:"_Avoid_:"})," of the glossary term. Search by words then finds the term by it"]})]}),S("tr",{children:[c("td",{children:"The project made a name up, such as an abbreviation"}),c("td",{children:"Define it in the glossary. Search by meaning knows 33,731 English words. It finds any other word by its spelling alone"})]}),S("tr",{children:[c("td",{children:"An entry is only found by its name"}),c("td",{children:"Give it a description. Both ways of search read descriptions"})]}),S("tr",{children:[c("td",{children:"A hit by meaning is wrong"}),c("td",{children:"Read the score as a suggestion. Hits are listed from 50%, and nobody wrote that link down"})]}),S("tr",{children:[c("td",{children:"The texts are not in English"}),S("td",{children:["Search by words works in any language. Search by meaning knows English, and ",c("code",{children:"--no-embeddings"})," ","leaves it out"]})]})]})]})}var pZ=["glossary","decisions","database","catalog","plan"],mZ=/^[\\w.-]+$/,hZ=/[\\p{L}\\p{N}]+/gu;function*EP(e){for(let{node:t}of e.sections){yield[t,e.node(t)];for(let a of e.descendants(t))yield[a,e.node(a)]}}function NP(e){let t=new Map,a={described:0,total:0},o={described:0,total:0},r={described:0,total:0},n={glossary:null,decisions:null,database:null,catalog:null,plan:null},i=0,s=0,l=(u,d)=>{if(d!=="")u.described++;u.total++};for(let[u,d]of EP(e)){t.set(d.kind,(t.get(d.kind)??0)+1);let m=pZ.find((p)=>p===d.kind);if(m)n[m]??=u;if(d.kind==="table")l(o,d.descriptionHtml);else if(d.kind==="query")l(r,d.descriptionHtml);else if(Ju(d))l(a,d.descriptionHtml);for(let p of e.edgesFrom(u))if(p[1]==="mentions")i++;else if(p[1]==="names")s++}return{skills:t.get("skill")??0,terms:t.get("term")??0,decisions:t.get("decision")??0,operations:t.get("operation")??0,definitions:t.get("definition")??0,plans:t.get("plan")??0,tasks:t.get("task")??0,named:s,mentions:i,symbols:a,tables:o,queries:r,pages:n}}function AP(e){return["g3n-analyze",...e.map((a)=>mZ.test(a)?a:\`'\${a.replaceAll("'","'\\\\''")}'\`)].join(" ")}function gZ(e,t){let a=e.node(t),o="descriptionHtml"in a&&a.descriptionHtml!=="";return e.edgesTo(t).length+(o?0.5:0)}function MP(e){let t=new Map;for(let[m,{kind:p,name:f}]of EP(e)){let g=t.get(p)??new Map;t.set(p,g.set(f,[...g.get(f)??[],m]))}let a=(...m)=>{for(let p of m){let f=null;for(let[g,y]of t.get(p)??[]){let[b,...h]=y;if(b===void 0||h.length>0)continue;let x=gZ(e,b);if(f===null||x>f.rank)f={name:g,target:[g,"--kind",p],rank:x}}if(f!==null)return f}return null},o=a("term"),r=a("function","method"),n=a("class","interface","struct"),i=a("table"),s=a("query"),l=(o??r??n??i)?.name.toLowerCase().match(hZ),u=[],d=(m,p)=>{if(m)u.push({args:m,prints:p})};return d(l&&["search",...l],"Pages and entries that hold the words, then entries with a similar meaning"),d(r&&["show",...r.target],"The signature, the description, the parameters and the references"),d(r&&["refs",...r.target,"--incoming"],"What refers to it: types, pages and decisions"),d(!r&&n&&["show",...n.target],"The type with its fields and its references"),d(o&&["show",...o.target],"The definition and the words to avoid in its place"),d(t.has("decision")&&["list","--kind","decision"],"Every decision with its status"),d(i&&["show",...i.target],"The columns, keys and indexes of the table"),d(i&&s&&["refs",...i.target,"--edge","reads","--edge","writes"],"The queries that read the table and the ones that write it"),d(s&&["show",...s.target],"The SQL, its placeholders and its result columns"),d(t.has("task")&&["list","--kind","task"],"Every task with its status"),u}function DP({commands:e}){return S(he,{children:[S("p",{children:["Four commands answer from the same linked model as this site. Run them inside the repository. They print markdown, or JSON with ",c("code",{children:"--json"}),"."]}),S(po,{head:["Command","Prints"],children:[S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze search <words>"})}),c("td",{children:"Up to 10 hits, each with an id, a file and a summary. Matches by words come first, then matches by meaning"})]}),S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze show <node>"})}),c("td",{children:"One page or entry in full: signature, description, parameters and references"})]}),S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze refs <node>"})}),c("td",{children:"What the node links to and what links to it"})]}),S("tr",{children:[c("td",{children:c("code",{children:"g3n-analyze list"})}),c("td",{children:"Every page and entry, one per line"})]})]}),S("p",{children:["A ",c("code",{children:"<node>"})," is an id from the output of ",c("code",{children:"search"})," or ",c("code",{children:"list"}),", the path of a file, or a name. When several nodes have the name, the command lists their ids and stops. ",c("code",{children:"--kind"})," ","and ",c("code",{children:"--section"})," narrow the choice."]}),e.length>0&&S(he,{children:[c("h3",{id:"terminal-examples",children:"Examples for this repository"}),c(po,{head:["Command","Prints"],children:e.map(({args:t,prints:a})=>S("tr",{children:[c("td",{children:c("code",{children:AP(t)})}),c("td",{children:a})]},t.join(" ")))})]}),c("h3",{id:"terminal-options",children:"Options"}),S(po,{head:["To","Add"],children:[S("tr",{children:[c("td",{children:"Read a built file. This needs no repository"}),c("td",{children:c("code",{children:"--from analyze_out/index.html"})})]}),S("tr",{children:[c("td",{children:"Get JSON"}),c("td",{children:c("code",{children:"--json"})})]}),S("tr",{children:[c("td",{children:"Keep to one kind or one section"}),S("td",{children:[c("code",{children:"--kind table"}),", ",c("code",{children:"--section database"})]})]}),S("tr",{children:[c("td",{children:"Search one way only"}),S("td",{children:[c("code",{children:"--by name"}),", ",c("code",{children:"--by meaning"})]})]}),S("tr",{children:[c("td",{children:"Get more results"}),c("td",{children:c("code",{children:"-n 25"})})]}),S("tr",{children:[c("td",{children:"Follow one direction or one kind of reference"}),S("td",{children:[c("code",{children:"--incoming"}),", ",c("code",{children:"--outgoing"}),", ",c("code",{children:"--edge reads"})]})]}),S("tr",{children:[c("td",{children:"Scan again although no file changed"}),c("td",{children:c("code",{children:"--no-cache"})})]})]}),S("p",{children:["Without ",c("code",{children:"--from"}),", a query scans the repository when a file changed since the last query. Otherwise it reads its cache in ",c("code",{children:"analyze_out/cache"})," of the repository."]})]})}var yZ=\`# Glossary
7543
7543
 
7544
7544
  ## Routing
7545
7545
 
7546
7546
  **Sailing**:
7547
7547
  One vessel leaving one port on one day.
7548
- _Avoid_: departure, voyage\`,NZ=\`# Decisions
7548
+ _Avoid_: departure, voyage\`,xZ=\`# Decisions
7549
7549
 
7550
7550
  ## 4. Routes are chosen by price
7551
7551
 
@@ -7554,7 +7554,7 @@ Date: 2026-02-02
7554
7554
 
7555
7555
  \\\`choose_route\\\` drops every route that
7556
7556
  misses the deadline. Price decides
7557
- among the rest.\`,AZ=\`/**
7557
+ among the rest.\`,vZ=\`/**
7558
7558
  * Picks the cheapest route that meets
7559
7559
  * the deadline.
7560
7560
  *
@@ -7562,17 +7562,17 @@ among the rest.\`,AZ=\`/**
7562
7562
  * @param deadline Last day of arrival.
7563
7563
  * @returns The route, or null for none.
7564
7564
  */
7565
- function chooseRoute(routes, deadline)\`,MZ=\`-- One step of a route, on one sailing.
7565
+ function chooseRoute(routes, deadline)\`,bZ=\`-- One step of a route, on one sailing.
7566
7566
  CREATE TABLE route_leg (
7567
7567
  route_id INTEGER NOT NULL,
7568
7568
  position INTEGER NOT NULL, -- 0 is first.
7569
7569
  PRIMARY KEY (route_id, position)
7570
- );\`,DZ=\`-- Bookings that still wait for a route.
7570
+ );\`,wZ=\`-- Bookings that still wait for a route.
7571
7571
  SELECT b.booking_id, b.teu
7572
7572
  FROM booking b
7573
- WHERE b.status = :status;\`;function ur(e,t,a=\`\${t}s\`){return\`\${e.toLocaleString()} \${e===1?t:a}\`}function OL({described:e,total:t},a,o,r){if(t===0)return null;return\`\${e.toLocaleString()} of \${ur(t,a,o)} \${e===1?"has":"have"} \${r}\`}function Qr({children:e}){return c("td",{className:"tabular-nums",children:e||c("span",{className:"text-muted-foreground",children:"None found"})})}function MP({facts:e}){let{symbols:t,tables:a,queries:o}=e;return S(he,{children:[c("p",{children:"The site shows what the files say. Each row names something to write and what the site makes of it. The last column counts what this site found."}),S(po,{head:["Write","The site makes of it","In this site"],children:[S("tr",{children:[S("td",{children:["A file ",c("code",{children:"glossary.md"})," with one entry per term: a line ",c("code",{children:"**Term**:"}),", the definition, and"," ",c("code",{children:"_Avoid_:"})," with the words not to use"]}),c("td",{children:"A card per term. The first use of the term on any page links to it and shows the definition. Search finds the term by each word to avoid"}),c(Qr,{children:e.terms>0&&ur(e.terms,"term")})]}),S("tr",{children:[S("td",{children:["A file ",c("code",{children:"decisions.md"})," with one heading per decision, a ",c("code",{children:"Status:"})," line, a"," ",c("code",{children:"Date:"})," line, and inline code that names the code it is about"]}),S("td",{children:["A card per decision. The file, type or function it names lists the decision under ",c("strong",{children:"Used by"})]}),c(Qr,{children:e.decisions>0&&ur(e.decisions,"decision")})]}),S("tr",{children:[c("td",{children:"A doc comment on every function: what it does, one line per parameter, what it returns. On every class: what it is and where it is used"}),c("td",{children:"The description, the parameter table and the return value of the entry. Without a comment an entry has its signature and a generated example"}),c(Qr,{children:OL(t,"class or function","classes and functions","a description")})]}),S("tr",{children:[c("td",{children:"Relative links between markdown files, and inline code that names a type, a function or a file"}),S("td",{children:["A link at that place, and a line under ",c("strong",{children:"Used by"})," at the other end"]}),c(Qr,{children:e.mentions>0&&ur(e.mentions,"link from text","links from text")})]}),S("tr",{children:[S("td",{children:["A comment directly above a ",c("code",{children:"CREATE TABLE"}),", and behind or above a column"]}),c("td",{children:"The notes under the diagram, and the summary of the table in search. The diagram itself needs no comment"}),c(Qr,{children:OL(a,"table","tables","a comment")})]}),S("tr",{children:[S("td",{children:["A directory of ",c("code",{children:".sql"})," files that create no table: one query per file, named as the code names the query, with a comment above the SQL"]}),c("td",{children:"A query catalog. An entry shows its note, its SQL, its placeholders, its result columns and the tables it reads and writes"}),c(Qr,{children:OL(o,"query","queries","a note")})]}),S("tr",{children:[S("td",{children:["A directory with a ",c("code",{children:"SKILL.md"})," and the files the skill uses"]}),c("td",{children:"A skill page with its frontmatter, and a page for every file of the skill"}),c(Qr,{children:e.skills>0&&ur(e.skills,"skill")})]}),S("tr",{children:[S("td",{children:[c("code",{children:"summary"})," and ",c("code",{children:"description"})," in an OpenAPI document or a JSON Schema, and"," ",c("code",{children:"$ref"})," for a schema that several places share"]}),S("td",{children:["A card per operation and per definition. A ",c("code",{children:"$ref"})," is a link, so a definition lists the operations that use it"]}),c(Qr,{children:e.operations+e.definitions>0&&\`\${ur(e.operations,"operation")}, \${ur(e.definitions,"definition")}\`})]}),S("tr",{children:[c("td",{children:"Plans, phases and tasks kept by task-manager, with links and inline code that name the files, types and decisions a task changes"}),S("td",{children:["A page per plan and per phase, and a card per task with its status. What a task names lists the task under"," ",c("strong",{children:"Used by"}),", and ",c("code",{children:"depends_on"})," becomes a link"]}),c(Qr,{children:e.tasks>0&&\`\${ur(e.tasks,"task")} in \${ur(e.plans,"plan")}, \${ur(e.named,"named node")}\`})]})]}),c("h3",{id:"write-formats",children:"The formats"}),S("div",{className:"grid gap-x-5 md:grid-cols-2",children:[c(zo,{title:"glossary.md",code:EZ}),c(zo,{title:"decisions.md",code:NZ}),c(zo,{title:"A doc comment, here in TypeScript",code:AZ}),c(zo,{title:"schema.sql",code:MZ}),c(zo,{title:"catalog/list_open_bookings.sql",code:DZ})]}),c("h3",{id:"write-rules",children:"What decides a link"}),S("ul",{children:[S("li",{children:["The file names ",c("code",{children:"glossary"})," and ",c("code",{children:"decisions"})," are fixed. The folder, the capitals and the extension (",c("code",{children:".md"}),", ",c("code",{children:".markdown"}),", ",c("code",{children:".mdx"}),") are free."]}),S("li",{children:["A doc comment says what the code does. The reason goes in ",c("code",{children:"decisions.md"}),", with the name of the code as inline code. The code then lists the decision."]}),S("li",{children:["Inline code in a markdown file links when one thing in the repository has that name. For a method name that several classes have, write ",c("code",{children:"Route.direct"}),"."]}),S("li",{children:["A schema and its queries belong in one run. A placeholder takes its type from the table column it is compared with, and ",c("code",{children:"SELECT *"})," becomes the columns of its table."]}),S("li",{children:["A query file holds one entry, or several under lines such as ",c("code",{children:"-- name: list_ports"}),"."]})]})]})}function DP(){let e=q();Re(\`Guide \xB7 \${e.meta.title}\`);let t=zL.useMemo(()=>TP(e),[e]),a=zL.useMemo(()=>NP(e),[e]),o=[{id:"read",title:"Read this site",body:c(IP,{pages:t.pages})},{id:"build",title:"Build the site",body:c(CP,{})},{id:"terminal",title:"Query from a terminal",body:c(AP,{commands:a})},{id:"write",title:"Write the repository so the site shows more",body:c(MP,{facts:t})},{id:"search",title:"Get better search results",body:c(RP,{})},{id:"agent",title:"Use it with a coding agent",body:c(LP,{})},{id:"limits",title:"What the tool does not do",body:c(kP,{})}],r=o.map(({id:n,title:i})=>({id:n,text:i,depth:2}));return S(Ge,{width:"wide",aside:c(mt,{headings:r}),children:[c("h1",{className:"font-bold text-3xl tracking-tight",children:"Guide"}),c("p",{className:"mt-3 max-w-3xl text-muted-foreground",children:"How to read this site, how to build it and query it from a terminal, and what to write in the repository so both show more."}),c("nav",{"aria-label":"Parts of the guide",className:"mt-5 flex flex-wrap gap-2 xl:hidden",children:o.map(({id:n,title:i})=>c(rt,{to:".",hash:n,replace:!0,className:"rounded-md border bg-card px-2.5 py-1 font-medium text-card-foreground text-xs shadow-xs outline-hidden transition-colors hover:border-primary/50 focus-visible:ring-3 focus-visible:ring-ring/50",children:i},n))}),c("div",{className:"prose mt-2",children:o.map(({id:n,title:i,body:s})=>c(SP,{id:n,title:i,children:s},n))})]})}var PZ=40,OZ="inline-block max-w-full rounded-sm bg-accent px-1.5 py-0.5 font-mono text-[0.8125rem] text-accent-foreground",zZ="rounded-xs font-semibold text-primary underline decoration-primary/50 underline-offset-2 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function BZ({text:e,links:t}){let a=[],o=0;for(let[r,n,i]of t){if(r>o)a.push(e.slice(o,r));a.push(c(ie,{node:i,className:zZ,children:e.slice(r,n)},r)),o=n}if(o<e.length)a.push(e.slice(o));return a}function mo({value:e,className:t}){let a=typeof e==="string"?{text:e,links:[]}:e;return c("code",{className:P(OZ,a.text.length<PZ?"whitespace-nowrap":"break-words",t),children:BZ(a)})}function cr({className:e,...t}){return c("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:c("table",{"data-slot":"table",className:P("w-full caption-bottom text-sm",e),...t})})}function dr({className:e,...t}){return c("thead",{"data-slot":"table-header",className:P("[&_tr]:border-b",e),...t})}function fr({className:e,...t}){return c("tbody",{"data-slot":"table-body",className:P("[&_tr:last-child]:border-0",e),...t})}function ua({className:e,...t}){return c("tr",{"data-slot":"table-row",className:P("border-b transition-colors",e),...t})}function tt({className:e,...t}){return c("th",{"data-slot":"table-head",className:P("h-9 px-3 text-left align-middle font-medium whitespace-nowrap text-muted-foreground",e),...t})}function it({className:e,...t}){return c("td",{"data-slot":"table-cell",className:P("px-3 py-2 align-top",e),...t})}var PP="font-mono text-[0.8125rem]";function St({title:e,aside:t,children:a}){return S("div",{className:"space-y-2",children:[S("div",{className:"flex items-center gap-2",children:[c("h4",{className:"font-semibold text-sm",children:e}),t]}),a]})}function pr({rows:e,valueLabel:t}){let a=e.some((u)=>u.kind==="parameter"&&u.location),o=e.some((u)=>u.type),r=e.some((u)=>u.column!==void 0),n=e.some((u)=>u.defaultValue),i=e.some((u)=>u.descriptionHtml),s=i?"description":n?"value":r?"column":o?"type":"name",l=(u)=>u===s?"w-full":void 0;return c("div",{className:"overflow-hidden rounded-md border",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{className:l("name"),children:"Name"}),a&&c(tt,{children:"In"}),o&&c(tt,{className:l("type"),children:"Type"}),r&&c(tt,{className:l("column"),children:"Table column"}),n&&c(tt,{className:l("value"),children:t}),i&&c(tt,{className:l("description"),children:"Description"})]})}),c(fr,{children:e.map((u,d)=>S(ua,{children:[S(it,{className:P(PP,"whitespace-nowrap font-semibold"),children:[u.name,u.optional&&c("span",{className:"ml-2 font-normal font-sans text-muted-foreground text-xs",children:"optional"}),u.kind==="field"&&u.annotations.map((m)=>c("span",{className:"mt-1 block max-w-72 truncate font-normal text-muted-foreground text-xs",title:m,children:m},m))]}),a&&c(it,{className:"whitespace-nowrap text-muted-foreground",children:u.kind==="parameter"?u.location:""}),o&&c(it,{className:"min-w-24 max-w-md",children:u.type&&c(mo,{value:u.type})}),r&&c(it,{className:"min-w-32",children:u.column!==void 0&&c(nr,{node:u.column})}),n&&c(it,{className:P(PP,"max-w-xs break-words text-muted-foreground"),children:u.defaultValue}),i&&c(it,{className:"min-w-48",children:u.descriptionHtml&&c(ze,{compact:!0,html:u.descriptionHtml})})]},d))})]})})}function gg({definition:e,active:t}){let a=q(),o=a.node(e);if(o.kind!=="definition")return null;let r=a.children(e).flatMap((n)=>{let i=a.node(n);return i.kind==="field"?[i]:[]});return S("section",{id:Ve("definition",o.anchor),"data-kind":"definition","aria-label":\`definition \${o.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===t&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(ye,{kind:"definition"}),c("h3",{className:"min-w-0 font-bold font-mono text-lg tracking-tight",children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o.name})}),o.type&&c(mo,{value:o.type,className:"bg-background"}),o.deprecated&&c($a,{status:"warning",children:"Deprecated"}),c(co,{node:e,className:"-my-1 -mr-1.5 ml-auto"})]}),S("div",{className:"space-y-4 border-t p-4 empty:hidden",children:[o.descriptionHtml&&c(ze,{compact:!0,html:o.descriptionHtml}),o.constraints.length>0&&c(St,{title:"Constraints",children:c(OP,{values:o.constraints})}),o.values.length>0&&c(St,{title:"Allowed values",children:c(OP,{values:o.values})}),r.length>0&&c(St,{title:"Properties",children:c(pr,{rows:r,valueLabel:"Default"})}),c(Le,{node:e,title:"Used by"})]})]})}function OP({values:e}){return c("ul",{className:"flex flex-wrap gap-1.5",children:e.map((t)=>c("li",{className:"min-w-0",children:c(mo,{value:t})},t))})}var FZ={GET:"info",HEAD:"info",OPTIONS:"off",TRACE:"off",POST:"success",PUT:"warning",PATCH:"warning",DELETE:"error"};function HZ(e){return{1:"info",2:"success",3:"info",4:"warning",5:"error"}[e.charAt(0)]??"off"}function BP({operation:e,active:t}){let a=q(),o=a.node(e);if(o.kind!=="operation")return null;let r=a.children(e).flatMap((i)=>{let s=a.node(i);return s.kind==="parameter"?[s]:[]}),{requestBody:n}=o;return S("section",{id:Ve("operation",o.anchor),"data-kind":"operation","aria-label":\`operation \${o.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===t&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c("span",{"data-status":FZ[o.method]??"off",className:"inline-flex h-6 shrink-0 items-center rounded-md bg-status px-2 font-mono font-semibold text-status-foreground text-xs",children:o.method}),c("h3",{className:"min-w-0 font-bold font-mono text-lg tracking-tight",children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o.urlPath})}),o.summary&&c("span",{className:"text-muted-foreground text-sm",children:o.summary}),o.deprecated&&c($a,{status:"warning",children:"Deprecated"}),S("span",{className:"ml-auto flex items-center gap-1.5 whitespace-nowrap font-mono text-muted-foreground text-xs",children:[o.operationId,c(co,{node:e,className:"-my-1 -mr-1.5"})]})]}),S("div",{className:"space-y-4 border-t p-4 empty:hidden",children:[o.descriptionHtml&&c(ze,{compact:!0,html:o.descriptionHtml}),o.security.length>0&&c(St,{title:"Security",children:c("ul",{className:"flex flex-wrap items-center gap-1.5 text-muted-foreground text-xs",children:o.security.map((i,s)=>S("li",{className:"flex items-center gap-1.5",children:[s>0&&c("span",{children:"or"}),c(na,{variant:"outline",className:"bg-background font-mono font-normal",children:i})]},i))})}),r.length>0&&c(St,{title:"Parameters",children:c(pr,{rows:r,valueLabel:"Default"})}),n&&S(St,{title:"Request body",aside:c("span",{className:"text-muted-foreground text-xs",children:n.required?"required":"optional"}),children:[n.descriptionHtml&&c(ze,{compact:!0,html:n.descriptionHtml}),c(zP,{content:n.content})]}),o.responses.length>0&&c(St,{title:"Responses",children:c("div",{className:"overflow-hidden rounded-md border",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Status"}),c(tt,{children:"Body"}),c(tt,{className:"w-full",children:"Description"})]})}),c(fr,{children:o.responses.map((i)=>S(ua,{children:[c(it,{children:c($a,{status:HZ(i.status),className:"font-mono",children:i.status})}),c(it,{className:"min-w-24 max-w-md",children:c(zP,{content:i.content})}),c(it,{className:"min-w-48",children:i.descriptionHtml&&c(ze,{compact:!0,html:i.descriptionHtml})})]},i.status))})]})})}),c(Le,{node:e,title:"Used by"})]})]})}function zP({content:e}){if(e.length===0)return null;return c("ul",{className:"space-y-1",children:e.map(({mediaType:t,schema:a})=>S("li",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[a&&c(mo,{value:a}),c("span",{className:"font-mono text-muted-foreground text-xs",children:t})]},t))})}var BL="api-schemas",FP="scroll-mt-20 border-b pb-2 font-bold text-xl tracking-tight lg:scroll-mt-6";function UZ(e){return\`tag:\${e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}\`}function GZ(e,t){let a=new Map,o=(n,i="")=>{let s=a.get(n);if(!s)s={name:n,id:UZ(n||"operations"),descriptionHtml:i,operations:[]},a.set(n,s);return s};for(let n of e.tags)o(n.name,n.descriptionHtml);let r=t.filter(({operation:n})=>n.tags.length>0);for(let n of r)o(n.operation.tags[0]??"").operations.push(n);for(let n of t)if(n.operation.tags.length===0)o("").operations.push(n);return[...a.values()].filter((n)=>n.operations.length>0)}function HP({node:e,api:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=a.children(e).map((u)=>({ref:u,value:a.node(u)})),n=r.flatMap(({ref:u,value:d})=>d.kind==="operation"?[{ref:u,operation:d}]:[]),i=r.flatMap(({ref:u,value:d})=>d.kind==="definition"?[{ref:u,definition:d}]:[]),s=GZ(t,n),l=[...s.flatMap((u)=>[{id:u.id,text:u.name||"Operations",depth:2},...u.operations.map(({operation:d})=>({id:Ve("operation",d.anchor),text:d.name,depth:3}))]),...i.length>0?[{id:BL,text:"Schemas",depth:2}]:[],...i.map(({definition:u})=>({id:Ve("definition",u.anchor),text:u.name,depth:3}))];return S(Ge,{aside:c(mt,{headings:l}),width:"wide",children:[c(Je,{node:e}),S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"api"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),t.version&&S(na,{children:["version ",t.version]}),t.specVersion&&S(na,{variant:"outline",children:["OpenAPI ",t.specVersion]}),S("span",{className:"text-muted-foreground text-sm",children:[n.length," ",n.length===1?"operation":"operations",", ",i.length," ",i.length===1?"schema":"schemas"]})]}),c("h1",{className:"mb-3 break-words font-bold text-3xl tracking-tight",children:t.title}),t.description&&c("p",{className:"mb-6 text-lg text-muted-foreground leading-7",children:t.description}),c(jt,{content:t.content,name:t.name}),t.servers.length>0&&c("dl",{"aria-label":"Servers",className:"mt-6 grid grid-cols-[max-content_minmax(0,1fr)] gap-x-5 gap-y-1.5 rounded-lg border bg-card p-4 text-card-foreground text-sm shadow-sm",children:t.servers.map((u)=>S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"text-muted-foreground",children:u.description||"Server"}),c("dd",{className:"break-all font-mono text-[0.8125rem]",children:u.url})]},u.url))}),s.map((u)=>S("section",{"aria-labelledby":u.id,className:"mt-10 space-y-4",children:[c("h2",{id:u.id,className:FP,children:u.name||"Operations"}),u.descriptionHtml&&c(ze,{compact:!0,html:u.descriptionHtml}),u.operations.map(({ref:d})=>c(BP,{operation:d,active:o},d))]},u.id)),i.length>0&&S("section",{"aria-labelledby":BL,className:"mt-10 space-y-4",children:[c("h2",{id:BL,className:FP,children:"Schemas"}),i.map(({ref:u})=>c(gg,{definition:u,active:o},u))]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var qZ={SELECT:"info",VALUES:"info",EXPLAIN:"info",INSERT:"success",UPDATE:"warning",REPLACE:"warning",DELETE:"error",DROP:"error"},$Z={read:"Reads",write:"Writes"};function VZ(e){let t=e.sourcePath.split("/").at(-1)??e.sourcePath;return e.line>1?\`\${t}:\${e.line}\`:t}function UP({query:e,active:t}){let a=q(),o=a.node(e);if(o.kind!=="query")return null;let r=a.children(e).map((l)=>a.node(l)),n=r.flatMap((l)=>l.kind==="parameter"?[l]:[]),i=r.flatMap((l)=>l.kind==="field"?[l]:[]),[s=""]=o.verb.split(" ");return S("section",{id:Ve("query",o.anchor),"data-kind":"query","aria-label":\`query \${o.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===t&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c("span",{"data-status":qZ[s]??"off",className:"inline-flex h-6 shrink-0 items-center rounded-md bg-status px-2 font-mono font-semibold text-status-foreground text-xs",children:o.verb}),c("h3",{className:"min-w-0 font-bold font-mono text-lg tracking-tight",children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o.name})}),S("span",{className:"ml-auto flex items-center gap-1.5 whitespace-nowrap font-mono text-muted-foreground text-xs",children:[VZ(o),c(co,{node:e,className:"-my-1 -mr-1.5"})]})]}),S("div",{className:"space-y-4 border-t p-4",children:[o.descriptionHtml&&c(ze,{compact:!0,html:o.descriptionHtml}),c($r,{html:o.sqlHtml}),o.tables.length>0&&c("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm",children:["read","write"].map((l)=>{let u=o.tables.filter((d)=>d.access===l);if(u.length===0)return null;return S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"text-muted-foreground leading-6",children:$Z[l]}),c("dd",{className:"flex min-w-0 flex-wrap gap-x-3 gap-y-1",children:u.map((d)=>d.target===null?c("span",{className:"break-all font-mono text-[0.8125rem] leading-6",children:d.name},d.name):c(nr,{node:d.target},d.name))})]},l)})}),n.length>0&&c(St,{title:"Parameters",children:c(pr,{rows:n,valueLabel:"Default"})}),i.length>0&&c(St,{title:"Result columns",children:c(pr,{rows:i,valueLabel:"Default"})}),c(Le,{node:e,title:"Used by"})]})]})}var FL=["read","write","control"],yg={read:{title:"Queries",one:"query",many:"queries"},write:{title:"Statements",one:"statement",many:"statements"},control:{title:"Control statements",one:"control statement",many:"control statements"}};function HL(e,t){return e.children(t).flatMap((a)=>{let o=e.node(a);return o.kind==="query"?[{ref:a,query:o}]:[]})}function xg(e,t){let a=HL(e,t);return FL.flatMap((o)=>{let r=a.filter(({query:i})=>i.effect===o).length,n=yg[o];return r===0?[]:[\`\${r} \${r===1?n.one:n.many}\`]})}var ZZ="scroll-mt-20 border-b pb-2 font-bold text-xl tracking-tight lg:scroll-mt-6",KZ={read:"Return rows and change nothing.",write:"Change rows or the schema.",control:"Change the state of a transaction or of the connection."};function jZ(e){return\`effect:\${e}\`}function GP({node:e,catalog:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=HL(a,e),n=FL.flatMap((s)=>{let l=r.filter(({query:u})=>u.effect===s);return l.length===0?[]:[{effect:s,id:jZ(s),members:l}]}),i=n.flatMap((s)=>[{id:s.id,text:yg[s.effect].title,depth:2},...s.members.map(({query:l})=>({id:Ve("query",l.anchor),text:l.name,depth:3}))]);return S(Ge,{aside:c(mt,{headings:i}),width:"wide",children:[c(Je,{node:e}),S("header",{className:"mb-2 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c("h1",{className:"break-all font-bold font-mono text-3xl tracking-tight",children:t.name}),c(ye,{kind:"catalog"}),c("span",{className:"text-muted-foreground text-sm",children:xg(a,e).join(", ")})]}),c("p",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),n.map((s)=>S("section",{"aria-labelledby":s.id,className:"mt-10 space-y-4",children:[S("div",{children:[c("h2",{id:s.id,className:ZZ,children:yg[s.effect].title}),c("p",{className:"mt-2 text-muted-foreground text-sm",children:KZ[s.effect]})]}),s.members.map(({ref:l})=>c(UP,{query:l,active:o},l))]},s.id)),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var en=U(V(),1);var qP=U(V(),1);var $P="rounded-sm bg-muted px-1 py-0.5 font-mono text-[0.92em]",UL="mt-[0.3125rem] inline-block h-2.5 w-4 shrink-0 rounded-[3px] border-2 sm:mt-[0.4375rem]";function GL(e){return e.map((t,a)=>S(qP.Fragment,{children:[a>0&&(a===e.length-1?" and ":", "),c("code",{className:$P,children:t})]},t))}function VP({model:e,plan:t,onClear:a}){let o=(l)=>e.tables[l]?.name??"",r=o(t.source),n=t.removed.map(o),i=t.blockers.map(o),s=[...t.keys].flatMap(([l,u])=>{let d=e.keys[l];return u==="detach"&&d?[d]:[]});return S("div",{role:"status","data-slot":"delete-preview",className:"pointer-events-auto flex max-h-[32dvh] items-start gap-3 overflow-y-auto rounded-lg border border-destructive/70 bg-popover px-3 py-2 text-popover-foreground text-xs leading-5 shadow-lg sm:px-3.5 sm:py-2.5 sm:text-sm sm:leading-6",children:[S("div",{className:"min-w-0 flex-1",children:[S("p",{className:"font-semibold text-destructive",children:["Delete preview \xB7 ",r]}),S("ul",{className:"flex flex-col gap-x-6 lg:flex-row lg:flex-wrap",children:[S("li",{className:"flex gap-2",children:[n.length>0&&c("span",{"aria-hidden":!0,className:P(UL,"border-destructive")}),c("span",{children:n.length>0?S(he,{children:["Rows of ",GL(n)," are deleted with it."]}):"No other table loses rows."})]}),s.map((l)=>S("li",{className:"flex gap-2",children:[c("span",{"aria-hidden":!0,className:P(UL,"border-foreground")}),S("span",{children:["Rows of ",c("code",{className:$P,children:o(l.from)})," stay, with ",GL(l.columns)," set to"," ",l.onDelete==="SET DEFAULT"?"its default":"NULL","."]})]},\`\${l.from} \${l.columns.join(" ")}\`)),S("li",{className:"flex gap-2","data-status":"warning",children:[i.length>0&&c("span",{"aria-hidden":!0,className:P(UL,"border-status border-dashed")}),c("span",{children:i.length>0?S(he,{children:["Rows of ",GL(i)," stop the delete."]}):"Nothing stops the delete."})]})]}),c("p",{className:"text-muted-foreground text-xs",children:"Read from the schema. SQLite does this with foreign keys on."})]}),c(vt,{variant:"outline",size:"sm",className:"h-7 shrink-0 px-2.5 text-xs",onClick:a,children:"Clear"})]})}var Jr=U(V(),1);function ZP(e,t){let a=e.children(t).filter((i)=>e.node(i).kind==="table"),o=new Map(a.map((i,s)=>[i,s])),r=[];return{tables:a.flatMap((i,s)=>{let l=e.node(i);if(l.kind!=="table")return[];let u=new Set(l.foreignKeys.flatMap((p)=>p.columns)),d=new Set,m=e.children(i).flatMap((p)=>{let f=e.node(p);if(f.kind!=="field")return[];if(f.optional)d.add(f.name);let g=f.type?.text??"",y=[f.name,g,f.optional?"":"NOT NULL",f.defaultValue===null?"":\`DEFAULT \${f.defaultValue}\`,...f.annotations.filter((b)=>b!=="PRIMARY KEY")];return[{name:f.name,type:g,notNull:!f.optional,primaryKey:l.primaryKey.includes(f.name),foreignKey:u.has(f.name),hint:[y.filter(Boolean).join(" "),Io(f.descriptionHtml)].filter(Boolean).join(\`
7573
+ WHERE b.status = :status;\`;function ur(e,t,a=\`\${t}s\`){return\`\${e.toLocaleString()} \${e===1?t:a}\`}function BL({described:e,total:t},a,o,r){if(t===0)return null;return\`\${e.toLocaleString()} of \${ur(t,a,o)} \${e===1?"has":"have"} \${r}\`}function Qr({children:e}){return c("td",{className:"tabular-nums",children:e||c("span",{className:"text-muted-foreground",children:"None found"})})}function PP({facts:e}){let{symbols:t,tables:a,queries:o}=e;return S(he,{children:[c("p",{children:"The site shows what the files say. Each row names something to write and what the site makes of it. The last column counts what this site found."}),S(po,{head:["Write","The site makes of it","In this site"],children:[S("tr",{children:[S("td",{children:["A file ",c("code",{children:"glossary.md"})," with one entry per term: a line ",c("code",{children:"**Term**:"}),", the definition, and"," ",c("code",{children:"_Avoid_:"})," with the words not to use"]}),c("td",{children:"A card per term. The first use of the term on any page links to it and shows the definition. Search finds the term by each word to avoid"}),c(Qr,{children:e.terms>0&&ur(e.terms,"term")})]}),S("tr",{children:[S("td",{children:["A file ",c("code",{children:"decisions.md"})," with one heading per decision, a ",c("code",{children:"Status:"})," line, a"," ",c("code",{children:"Date:"})," line, and inline code that names the code it is about"]}),S("td",{children:["A card per decision. The file, type or function it names lists the decision under ",c("strong",{children:"Used by"})]}),c(Qr,{children:e.decisions>0&&ur(e.decisions,"decision")})]}),S("tr",{children:[c("td",{children:"A doc comment on every function: what it does, one line per parameter, what it returns. On every class: what it is and where it is used"}),c("td",{children:"The description, the parameter table and the return value of the entry. Without a comment an entry has its signature and a generated example"}),c(Qr,{children:BL(t,"class or function","classes and functions","a description")})]}),S("tr",{children:[c("td",{children:"Relative links between markdown files, and inline code that names a type, a function or a file"}),S("td",{children:["A link at that place, and a line under ",c("strong",{children:"Used by"})," at the other end"]}),c(Qr,{children:e.mentions>0&&ur(e.mentions,"link from text","links from text")})]}),S("tr",{children:[S("td",{children:["A comment directly above a ",c("code",{children:"CREATE TABLE"}),", and behind or above a column"]}),c("td",{children:"The notes under the diagram, and the summary of the table in search. The diagram itself needs no comment"}),c(Qr,{children:BL(a,"table","tables","a comment")})]}),S("tr",{children:[S("td",{children:["A directory of ",c("code",{children:".sql"})," files that create no table: one query per file, named as the code names the query, with a comment above the SQL"]}),c("td",{children:"A query catalog. An entry shows its note, its SQL, its placeholders, its result columns and the tables it reads and writes"}),c(Qr,{children:BL(o,"query","queries","a note")})]}),S("tr",{children:[S("td",{children:["A directory with a ",c("code",{children:"SKILL.md"})," and the files the skill uses"]}),c("td",{children:"A skill page with its frontmatter, and a page for every file of the skill"}),c(Qr,{children:e.skills>0&&ur(e.skills,"skill")})]}),S("tr",{children:[S("td",{children:[c("code",{children:"summary"})," and ",c("code",{children:"description"})," in an OpenAPI document or a JSON Schema, and"," ",c("code",{children:"$ref"})," for a schema that several places share"]}),S("td",{children:["A card per operation and per definition. A ",c("code",{children:"$ref"})," is a link, so a definition lists the operations that use it"]}),c(Qr,{children:e.operations+e.definitions>0&&\`\${ur(e.operations,"operation")}, \${ur(e.definitions,"definition")}\`})]}),S("tr",{children:[c("td",{children:"Plans, phases and tasks kept by task-manager, with links and inline code that name the files, types and decisions a task changes"}),S("td",{children:["A page per plan and per phase, and a card per task with its status. What a task names lists the task under"," ",c("strong",{children:"Used by"}),", and ",c("code",{children:"depends_on"})," becomes a link"]}),c(Qr,{children:e.tasks>0&&\`\${ur(e.tasks,"task")} in \${ur(e.plans,"plan")}, \${ur(e.named,"named node")}\`})]})]}),c("h3",{id:"write-formats",children:"The formats"}),S("div",{className:"grid gap-x-5 md:grid-cols-2",children:[c(zo,{title:"glossary.md",code:yZ}),c(zo,{title:"decisions.md",code:xZ}),c(zo,{title:"A doc comment, here in TypeScript",code:vZ}),c(zo,{title:"schema.sql",code:bZ}),c(zo,{title:"catalog/list_open_bookings.sql",code:wZ})]}),c("h3",{id:"write-rules",children:"What decides a link"}),S("ul",{children:[S("li",{children:["The file names ",c("code",{children:"glossary"})," and ",c("code",{children:"decisions"})," are fixed. The folder, the capitals and the extension (",c("code",{children:".md"}),", ",c("code",{children:".markdown"}),", ",c("code",{children:".mdx"}),") are free."]}),S("li",{children:["A doc comment says what the code does. The reason goes in ",c("code",{children:"decisions.md"}),", with the name of the code as inline code. The code then lists the decision."]}),S("li",{children:["Inline code in a markdown file links when one thing in the repository has that name. For a method name that several classes have, write ",c("code",{children:"Route.direct"}),"."]}),S("li",{children:["A schema and its queries belong in one run. A placeholder takes its type from the table column it is compared with, and ",c("code",{children:"SELECT *"})," becomes the columns of its table."]}),S("li",{children:["A query file holds one entry, or several under lines such as ",c("code",{children:"-- name: list_ports"}),"."]})]})]})}function OP(){let e=q();Re(\`Guide \xB7 \${e.meta.title}\`);let t=FL.useMemo(()=>NP(e),[e]),a=FL.useMemo(()=>MP(e),[e]),o=[{id:"read",title:"Read this site",body:c(_P,{pages:t.pages})},{id:"build",title:"Build the site",body:c(IP,{})},{id:"terminal",title:"Query from a terminal",body:c(DP,{commands:a})},{id:"write",title:"Write the repository so the site shows more",body:c(PP,{facts:t})},{id:"search",title:"Get better search results",body:c(TP,{})},{id:"agent",title:"Use it with a coding agent",body:c(kP,{})},{id:"limits",title:"What the tool does not do",body:c(RP,{})}],r=o.map(({id:n,title:i})=>({id:n,text:i,depth:2}));return S(Ge,{width:"wide",aside:c(mt,{headings:r}),children:[c("h1",{className:"font-bold text-3xl tracking-tight",children:"Guide"}),c("p",{className:"mt-3 max-w-3xl text-muted-foreground",children:"How to read this site, how to build it and query it from a terminal, and what to write in the repository so both show more."}),c("nav",{"aria-label":"Parts of the guide",className:"mt-5 flex flex-wrap gap-2 xl:hidden",children:o.map(({id:n,title:i})=>c(rt,{to:".",hash:n,replace:!0,className:"rounded-md border bg-card px-2.5 py-1 font-medium text-card-foreground text-xs shadow-xs outline-hidden transition-colors hover:border-primary/50 focus-visible:ring-3 focus-visible:ring-ring/50",children:i},n))}),c("div",{className:"prose mt-2",children:o.map(({id:n,title:i,body:s})=>c(CP,{id:n,title:i,children:s},n))})]})}var SZ=40,LZ="inline-block max-w-full rounded-sm bg-accent px-1.5 py-0.5 font-mono text-[0.8125rem] text-accent-foreground",CZ="rounded-xs font-semibold text-primary underline decoration-primary/50 underline-offset-2 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function kZ({text:e,links:t}){let a=[],o=0;for(let[r,n,i]of t){if(r>o)a.push(e.slice(o,r));a.push(c(ie,{node:i,className:CZ,children:e.slice(r,n)},r)),o=n}if(o<e.length)a.push(e.slice(o));return a}function mo({value:e,className:t}){let a=typeof e==="string"?{text:e,links:[]}:e;return c("code",{className:P(LZ,a.text.length<SZ?"whitespace-nowrap":"break-words",t),children:kZ(a)})}function cr({className:e,...t}){return c("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:c("table",{"data-slot":"table",className:P("w-full caption-bottom text-sm",e),...t})})}function dr({className:e,...t}){return c("thead",{"data-slot":"table-header",className:P("[&_tr]:border-b",e),...t})}function fr({className:e,...t}){return c("tbody",{"data-slot":"table-body",className:P("[&_tr:last-child]:border-0",e),...t})}function ua({className:e,...t}){return c("tr",{"data-slot":"table-row",className:P("border-b transition-colors",e),...t})}function tt({className:e,...t}){return c("th",{"data-slot":"table-head",className:P("h-9 px-3 text-left align-middle font-medium whitespace-nowrap text-muted-foreground",e),...t})}function it({className:e,...t}){return c("td",{"data-slot":"table-cell",className:P("px-3 py-2 align-top",e),...t})}var zP="font-mono text-[0.8125rem]";function St({title:e,aside:t,children:a}){return S("div",{className:"space-y-2",children:[S("div",{className:"flex items-center gap-2",children:[c("h4",{className:"font-semibold text-sm",children:e}),t]}),a]})}function pr({rows:e,valueLabel:t}){let a=e.some((u)=>u.kind==="parameter"&&u.location),o=e.some((u)=>u.type),r=e.some((u)=>u.column!==void 0),n=e.some((u)=>u.defaultValue),i=e.some((u)=>u.descriptionHtml),s=i?"description":n?"value":r?"column":o?"type":"name",l=(u)=>u===s?"w-full":void 0;return c("div",{className:"overflow-hidden rounded-md border",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{className:l("name"),children:"Name"}),a&&c(tt,{children:"In"}),o&&c(tt,{className:l("type"),children:"Type"}),r&&c(tt,{className:l("column"),children:"Table column"}),n&&c(tt,{className:l("value"),children:t}),i&&c(tt,{className:l("description"),children:"Description"})]})}),c(fr,{children:e.map((u,d)=>S(ua,{children:[S(it,{className:P(zP,"whitespace-nowrap font-semibold"),children:[u.name,u.optional&&c("span",{className:"ml-2 font-normal font-sans text-muted-foreground text-xs",children:"optional"}),u.kind==="field"&&u.annotations.map((m)=>c("span",{className:"mt-1 block max-w-72 truncate font-normal text-muted-foreground text-xs",title:m,children:m},m))]}),a&&c(it,{className:"whitespace-nowrap text-muted-foreground",children:u.kind==="parameter"?u.location:""}),o&&c(it,{className:"min-w-24 max-w-md",children:u.type&&c(mo,{value:u.type})}),r&&c(it,{className:"min-w-32",children:u.column!==void 0&&c(nr,{node:u.column})}),n&&c(it,{className:P(zP,"max-w-xs break-words text-muted-foreground"),children:u.defaultValue}),i&&c(it,{className:"min-w-48",children:u.descriptionHtml&&c(ze,{compact:!0,html:u.descriptionHtml})})]},d))})]})})}function yg({definition:e,active:t}){let a=q(),o=a.node(e);if(o.kind!=="definition")return null;let r=a.children(e).flatMap((n)=>{let i=a.node(n);return i.kind==="field"?[i]:[]});return S("section",{id:Ve("definition",o.anchor),"data-kind":"definition","aria-label":\`definition \${o.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===t&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(ye,{kind:"definition"}),c("h3",{className:"min-w-0 font-bold font-mono text-lg tracking-tight",children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o.name})}),o.type&&c(mo,{value:o.type,className:"bg-background"}),o.deprecated&&c($a,{status:"warning",children:"Deprecated"}),c(co,{node:e,className:"-my-1 -mr-1.5 ml-auto"})]}),S("div",{className:"space-y-4 border-t p-4 empty:hidden",children:[o.descriptionHtml&&c(ze,{compact:!0,html:o.descriptionHtml}),o.constraints.length>0&&c(St,{title:"Constraints",children:c(BP,{values:o.constraints})}),o.values.length>0&&c(St,{title:"Allowed values",children:c(BP,{values:o.values})}),r.length>0&&c(St,{title:"Properties",children:c(pr,{rows:r,valueLabel:"Default"})}),c(Le,{node:e,title:"Used by"})]})]})}function BP({values:e}){return c("ul",{className:"flex flex-wrap gap-1.5",children:e.map((t)=>c("li",{className:"min-w-0",children:c(mo,{value:t})},t))})}var IZ={GET:"info",HEAD:"info",OPTIONS:"off",TRACE:"off",POST:"success",PUT:"warning",PATCH:"warning",DELETE:"error"};function RZ(e){return{1:"info",2:"success",3:"info",4:"warning",5:"error"}[e.charAt(0)]??"off"}function HP({operation:e,active:t}){let a=q(),o=a.node(e);if(o.kind!=="operation")return null;let r=a.children(e).flatMap((i)=>{let s=a.node(i);return s.kind==="parameter"?[s]:[]}),{requestBody:n}=o;return S("section",{id:Ve("operation",o.anchor),"data-kind":"operation","aria-label":\`operation \${o.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===t&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c("span",{"data-status":IZ[o.method]??"off",className:"inline-flex h-6 shrink-0 items-center rounded-md bg-status px-2 font-mono font-semibold text-status-foreground text-xs",children:o.method}),c("h3",{className:"min-w-0 font-bold font-mono text-lg tracking-tight",children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o.urlPath})}),o.summary&&c("span",{className:"text-muted-foreground text-sm",children:o.summary}),o.deprecated&&c($a,{status:"warning",children:"Deprecated"}),S("span",{className:"ml-auto flex items-center gap-1.5 whitespace-nowrap font-mono text-muted-foreground text-xs",children:[o.operationId,c(co,{node:e,className:"-my-1 -mr-1.5"})]})]}),S("div",{className:"space-y-4 border-t p-4 empty:hidden",children:[o.descriptionHtml&&c(ze,{compact:!0,html:o.descriptionHtml}),o.security.length>0&&c(St,{title:"Security",children:c("ul",{className:"flex flex-wrap items-center gap-1.5 text-muted-foreground text-xs",children:o.security.map((i,s)=>S("li",{className:"flex items-center gap-1.5",children:[s>0&&c("span",{children:"or"}),c(na,{variant:"outline",className:"bg-background font-mono font-normal",children:i})]},i))})}),r.length>0&&c(St,{title:"Parameters",children:c(pr,{rows:r,valueLabel:"Default"})}),n&&S(St,{title:"Request body",aside:c("span",{className:"text-muted-foreground text-xs",children:n.required?"required":"optional"}),children:[n.descriptionHtml&&c(ze,{compact:!0,html:n.descriptionHtml}),c(FP,{content:n.content})]}),o.responses.length>0&&c(St,{title:"Responses",children:c("div",{className:"overflow-hidden rounded-md border",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Status"}),c(tt,{children:"Body"}),c(tt,{className:"w-full",children:"Description"})]})}),c(fr,{children:o.responses.map((i)=>S(ua,{children:[c(it,{children:c($a,{status:RZ(i.status),className:"font-mono",children:i.status})}),c(it,{className:"min-w-24 max-w-md",children:c(FP,{content:i.content})}),c(it,{className:"min-w-48",children:i.descriptionHtml&&c(ze,{compact:!0,html:i.descriptionHtml})})]},i.status))})]})})}),c(Le,{node:e,title:"Used by"})]})]})}function FP({content:e}){if(e.length===0)return null;return c("ul",{className:"space-y-1",children:e.map(({mediaType:t,schema:a})=>S("li",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[a&&c(mo,{value:a}),c("span",{className:"font-mono text-muted-foreground text-xs",children:t})]},t))})}var HL="api-schemas",UP="scroll-mt-20 border-b pb-2 font-bold text-xl tracking-tight lg:scroll-mt-6";function _Z(e){return\`tag:\${e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}\`}function TZ(e,t){let a=new Map,o=(n,i="")=>{let s=a.get(n);if(!s)s={name:n,id:_Z(n||"operations"),descriptionHtml:i,operations:[]},a.set(n,s);return s};for(let n of e.tags)o(n.name,n.descriptionHtml);let r=t.filter(({operation:n})=>n.tags.length>0);for(let n of r)o(n.operation.tags[0]??"").operations.push(n);for(let n of t)if(n.operation.tags.length===0)o("").operations.push(n);return[...a.values()].filter((n)=>n.operations.length>0)}function GP({node:e,api:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=a.children(e).map((u)=>({ref:u,value:a.node(u)})),n=r.flatMap(({ref:u,value:d})=>d.kind==="operation"?[{ref:u,operation:d}]:[]),i=r.flatMap(({ref:u,value:d})=>d.kind==="definition"?[{ref:u,definition:d}]:[]),s=TZ(t,n),l=[...s.flatMap((u)=>[{id:u.id,text:u.name||"Operations",depth:2},...u.operations.map(({operation:d})=>({id:Ve("operation",d.anchor),text:d.name,depth:3}))]),...i.length>0?[{id:HL,text:"Schemas",depth:2}]:[],...i.map(({definition:u})=>({id:Ve("definition",u.anchor),text:u.name,depth:3}))];return S(Ge,{aside:c(mt,{headings:l}),width:"wide",children:[c(Je,{node:e}),S("header",{className:"mb-6 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"api"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),t.version&&S(na,{children:["version ",t.version]}),t.specVersion&&S(na,{variant:"outline",children:["OpenAPI ",t.specVersion]}),S("span",{className:"text-muted-foreground text-sm",children:[n.length," ",n.length===1?"operation":"operations",", ",i.length," ",i.length===1?"schema":"schemas"]})]}),c("h1",{className:"mb-3 break-words font-bold text-3xl tracking-tight",children:t.title}),t.description&&c("p",{className:"mb-6 text-lg text-muted-foreground leading-7",children:t.description}),c(jt,{content:t.content,name:t.name}),t.servers.length>0&&c("dl",{"aria-label":"Servers",className:"mt-6 grid grid-cols-[max-content_minmax(0,1fr)] gap-x-5 gap-y-1.5 rounded-lg border bg-card p-4 text-card-foreground text-sm shadow-sm",children:t.servers.map((u)=>S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"text-muted-foreground",children:u.description||"Server"}),c("dd",{className:"break-all font-mono text-[0.8125rem]",children:u.url})]},u.url))}),s.map((u)=>S("section",{"aria-labelledby":u.id,className:"mt-10 space-y-4",children:[c("h2",{id:u.id,className:UP,children:u.name||"Operations"}),u.descriptionHtml&&c(ze,{compact:!0,html:u.descriptionHtml}),u.operations.map(({ref:d})=>c(HP,{operation:d,active:o},d))]},u.id)),i.length>0&&S("section",{"aria-labelledby":HL,className:"mt-10 space-y-4",children:[c("h2",{id:HL,className:UP,children:"Schemas"}),i.map(({ref:u})=>c(yg,{definition:u,active:o},u))]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var EZ={SELECT:"info",VALUES:"info",EXPLAIN:"info",INSERT:"success",UPDATE:"warning",REPLACE:"warning",DELETE:"error",DROP:"error"},NZ={read:"Reads",write:"Writes"};function AZ(e){let t=e.sourcePath.split("/").at(-1)??e.sourcePath;return e.line>1?\`\${t}:\${e.line}\`:t}function qP({query:e,active:t}){let a=q(),o=a.node(e);if(o.kind!=="query")return null;let r=a.children(e).map((l)=>a.node(l)),n=r.flatMap((l)=>l.kind==="parameter"?[l]:[]),i=r.flatMap((l)=>l.kind==="field"?[l]:[]),[s=""]=o.verb.split(" ");return S("section",{id:Ve("query",o.anchor),"data-kind":"query","aria-label":\`query \${o.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===t&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c("span",{"data-status":EZ[s]??"off",className:"inline-flex h-6 shrink-0 items-center rounded-md bg-status px-2 font-mono font-semibold text-status-foreground text-xs",children:o.verb}),c("h3",{className:"min-w-0 font-bold font-mono text-lg tracking-tight",children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:o.name})}),S("span",{className:"ml-auto flex items-center gap-1.5 whitespace-nowrap font-mono text-muted-foreground text-xs",children:[AZ(o),c(co,{node:e,className:"-my-1 -mr-1.5"})]})]}),S("div",{className:"space-y-4 border-t p-4",children:[o.descriptionHtml&&c(ze,{compact:!0,html:o.descriptionHtml}),c($r,{html:o.sqlHtml}),o.tables.length>0&&c("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm",children:["read","write"].map((l)=>{let u=o.tables.filter((d)=>d.access===l);if(u.length===0)return null;return S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"text-muted-foreground leading-6",children:NZ[l]}),c("dd",{className:"flex min-w-0 flex-wrap gap-x-3 gap-y-1",children:u.map((d)=>d.target===null?c("span",{className:"break-all font-mono text-[0.8125rem] leading-6",children:d.name},d.name):c(nr,{node:d.target},d.name))})]},l)})}),n.length>0&&c(St,{title:"Parameters",children:c(pr,{rows:n,valueLabel:"Default"})}),i.length>0&&c(St,{title:"Result columns",children:c(pr,{rows:i,valueLabel:"Default"})}),c(Le,{node:e,title:"Used by"})]})]})}var UL=["read","write","control"],xg={read:{title:"Queries",one:"query",many:"queries"},write:{title:"Statements",one:"statement",many:"statements"},control:{title:"Control statements",one:"control statement",many:"control statements"}};function GL(e,t){return e.children(t).flatMap((a)=>{let o=e.node(a);return o.kind==="query"?[{ref:a,query:o}]:[]})}function vg(e,t){let a=GL(e,t);return UL.flatMap((o)=>{let r=a.filter(({query:i})=>i.effect===o).length,n=xg[o];return r===0?[]:[\`\${r} \${r===1?n.one:n.many}\`]})}var MZ="scroll-mt-20 border-b pb-2 font-bold text-xl tracking-tight lg:scroll-mt-6",DZ={read:"Return rows and change nothing.",write:"Change rows or the schema.",control:"Change the state of a transaction or of the connection."};function PZ(e){return\`effect:\${e}\`}function $P({node:e,catalog:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=GL(a,e),n=UL.flatMap((s)=>{let l=r.filter(({query:u})=>u.effect===s);return l.length===0?[]:[{effect:s,id:PZ(s),members:l}]}),i=n.flatMap((s)=>[{id:s.id,text:xg[s.effect].title,depth:2},...s.members.map(({query:l})=>({id:Ve("query",l.anchor),text:l.name,depth:3}))]);return S(Ge,{aside:c(mt,{headings:i}),width:"wide",children:[c(Je,{node:e}),S("header",{className:"mb-2 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c("h1",{className:"break-all font-bold font-mono text-3xl tracking-tight",children:t.name}),c(ye,{kind:"catalog"}),c("span",{className:"text-muted-foreground text-sm",children:vg(a,e).join(", ")})]}),c("p",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),n.map((s)=>S("section",{"aria-labelledby":s.id,className:"mt-10 space-y-4",children:[S("div",{children:[c("h2",{id:s.id,className:MZ,children:xg[s.effect].title}),c("p",{className:"mt-2 text-muted-foreground text-sm",children:DZ[s.effect]})]}),s.members.map(({ref:l})=>c(qP,{query:l,active:o},l))]},s.id)),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var en=U(V(),1);var VP=U(V(),1);var ZP="rounded-sm bg-muted px-1 py-0.5 font-mono text-[0.92em]",qL="mt-[0.3125rem] inline-block h-2.5 w-4 shrink-0 rounded-[3px] border-2 sm:mt-[0.4375rem]";function $L(e){return e.map((t,a)=>S(VP.Fragment,{children:[a>0&&(a===e.length-1?" and ":", "),c("code",{className:ZP,children:t})]},t))}function KP({model:e,plan:t,onClear:a}){let o=(l)=>e.tables[l]?.name??"",r=o(t.source),n=t.removed.map(o),i=t.blockers.map(o),s=[...t.keys].flatMap(([l,u])=>{let d=e.keys[l];return u==="detach"&&d?[d]:[]});return S("div",{role:"status","data-slot":"delete-preview",className:"pointer-events-auto flex max-h-[32dvh] items-start gap-3 overflow-y-auto rounded-lg border border-destructive/70 bg-popover px-3 py-2 text-popover-foreground text-xs leading-5 shadow-lg sm:px-3.5 sm:py-2.5 sm:text-sm sm:leading-6",children:[S("div",{className:"min-w-0 flex-1",children:[S("p",{className:"font-semibold text-destructive",children:["Delete preview \xB7 ",r]}),S("ul",{className:"flex flex-col gap-x-6 lg:flex-row lg:flex-wrap",children:[S("li",{className:"flex gap-2",children:[n.length>0&&c("span",{"aria-hidden":!0,className:P(qL,"border-destructive")}),c("span",{children:n.length>0?S(he,{children:["Rows of ",$L(n)," are deleted with it."]}):"No other table loses rows."})]}),s.map((l)=>S("li",{className:"flex gap-2",children:[c("span",{"aria-hidden":!0,className:P(qL,"border-foreground")}),S("span",{children:["Rows of ",c("code",{className:ZP,children:o(l.from)})," stay, with ",$L(l.columns)," set to"," ",l.onDelete==="SET DEFAULT"?"its default":"NULL","."]})]},\`\${l.from} \${l.columns.join(" ")}\`)),S("li",{className:"flex gap-2","data-status":"warning",children:[i.length>0&&c("span",{"aria-hidden":!0,className:P(qL,"border-status border-dashed")}),c("span",{children:i.length>0?S(he,{children:["Rows of ",$L(i)," stop the delete."]}):"Nothing stops the delete."})]})]}),c("p",{className:"text-muted-foreground text-xs",children:"Read from the schema. SQLite does this with foreign keys on."})]}),c(vt,{variant:"outline",size:"sm",className:"h-7 shrink-0 px-2.5 text-xs",onClick:a,children:"Clear"})]})}var Jr=U(V(),1);function jP(e,t){let a=e.children(t).filter((i)=>e.node(i).kind==="table"),o=new Map(a.map((i,s)=>[i,s])),r=[];return{tables:a.flatMap((i,s)=>{let l=e.node(i);if(l.kind!=="table")return[];let u=new Set(l.foreignKeys.flatMap((p)=>p.columns)),d=new Set,m=e.children(i).flatMap((p)=>{let f=e.node(p);if(f.kind!=="field")return[];if(f.optional)d.add(f.name);let g=f.type?.text??"",y=[f.name,g,f.optional?"":"NOT NULL",f.defaultValue===null?"":\`DEFAULT \${f.defaultValue}\`,...f.annotations.filter((b)=>b!=="PRIMARY KEY")];return[{name:f.name,type:g,notNull:!f.optional,primaryKey:l.primaryKey.includes(f.name),foreignKey:u.has(f.name),hint:[y.filter(Boolean).join(" "),Io(f.descriptionHtml)].filter(Boolean).join(\`
7574
7574
  \`)}]});for(let p of l.foreignKeys){let f=p.target===null?void 0:o.get(p.target);if(f===void 0)continue;let g=\`\${p.table} (\${p.referencedColumns.join(", ")})\`,y=[p.onDelete&&\`ON DELETE \${p.onDelete}\`,p.onUpdate&&\`ON UPDATE \${p.onUpdate}\`];r.push({from:s,to:f,columns:p.columns,referencedColumns:p.referencedColumns,onDelete:p.onDelete,nullable:p.columns.some((b)=>d.has(b)),hint:[\`\${l.name} (\${p.columns.join(", ")}) \u2192 \${g}\`,p.name,...y].filter(Boolean).join(\`
7575
- \`)})}return[{ref:i,name:l.name,description:Io(l.descriptionHtml),columns:m,indexes:l.indexes,options:l.options}]}),keys:r}}var at={ROW:18,HEAD:24,SUMMARY:18,PAD:8,GAP_X:140,GAP_Y:44,MARGIN:40,STUB_FROM:22,STUB_TO:16,MIN_WIDTH:250,MAX_WIDTH:420,LOOP_ROOM:90};function Sf(e){return Math.round(e*10)/10}function XZ(e){let t=at.MIN_WIDTH;for(let a of e.tables){t=Math.max(t,a.name.length*8+40);for(let o of a.columns)t=Math.max(t,o.name.length*7+o.type.length*6.5+96)}return Math.min(t,at.MAX_WIDTH)}function YZ(e){return e.columns.length+e.indexes.length+(e.options.length>0?1:0)}function WZ(e){let t=e.tables.map(()=>[]);for(let n of e.keys)if(n.from!==n.to)t[n.from]?.push(n.to);let a=e.tables.map(()=>0),o=e.tables.map(()=>"new"),r=(n)=>{if(o[n]==="done")return a[n]??0;if(o[n]==="open")return-1;o[n]="open";let i=0;for(let s of t[n]??[])i=Math.max(i,r(s)+1);return o[n]="done",a[n]=i,i};return e.tables.forEach((n,i)=>{r(i)}),a}function QZ(e,t){let a=Math.max(0,...t)+1,o=Array.from({length:a},()=>[]);t.forEach((d,m)=>{o[d]?.push(m)});let r=e.tables.map(()=>0),n=()=>{for(let d of o)d.forEach((m,p)=>{r[m]=p})};n();let i=(d,m)=>{for(let p of d){let f=o[p]??[],g=new Map(f.map((y)=>{let b=m(y),h=b.reduce((x,v)=>x+(r[v]??0),0)/Math.max(b.length,1);return[y,b.length>0?h:r[y]??0]}));f.sort((y,b)=>(g.get(y)??0)-(g.get(b)??0)||(r[y]??0)-(r[b]??0)),n()}},s=(d)=>e.keys.flatMap((m)=>m.from===d&&(t[m.to]??0)<(t[d]??0)?[m.to]:[]),l=(d)=>e.keys.flatMap((m)=>m.to===d&&(t[m.from]??0)>(t[d]??0)?[m.from]:[]),u=o.map((d,m)=>m);for(let d=0;d<2;d++)i(u,s),i([...u].reverse(),l);return r}function JZ(e,t,a,o){let r=e.tables.map(()=>[]),n=[];e.tables.forEach((p,f)=>{let g=null;for(let y of e.keys){if(y.from!==f||(t[y.to]??0)>=(t[f]??0))continue;if(g===null||(t[y.to]??0)>(t[g]??0))g=y.to}if(g===null)n.push(f);else r[g]?.push(f)});let i=(p,f)=>(t[p]??0)-(t[f]??0)||(a[p]??0)-(a[f]??0);n.sort(i);for(let p of r)p.sort(i);let s=(p,f,g,y)=>{let b=p.get(f);p.set(f,b?[Math.min(b[0],g),Math.max(b[1],y)]:[g,y])},l=(p)=>{let f=new Map,g=new Map,y=[],b=0;return p.forEach((h,x)=>{let v=u(h),w=x>0?b:0;for(let[C,[I]]of v.extent){let L=g.get(C);if(L)w=Math.max(w,L[1]+at.GAP_Y-I)}for(let[C,I]of v.top)f.set(C,I+w);for(let[C,[I,L]]of v.extent)s(g,C,I+w,L+w);y.push((f.get(h)??0)+(o[h]??0)/2),b=w}),{top:f,extent:g,centers:y}},u=(p)=>{let f=o[p]??0,g=t[p]??0,y=r[p]??[];if(y.length===0)return{top:new Map([[p,0]]),extent:new Map([[g,[0,f]]])};let b=l(y),h=(Math.min(...b.centers)+Math.max(...b.centers))/2-f/2;return b.top.set(p,h),s(b.extent,g,h,h+f),b},d=l(n),m=Math.min(0,...d.top.values());return e.tables.map((p,f)=>(d.top.get(f)??0)-m)}function KP(e){let t=XZ(e),a=Math.floor((t-20)/5.6),o=e.tables.map((b)=>{let[h=""]=b.description.split(/(?<=[.!?])\\s/,1);return h.length>a?\`\${h.slice(0,a-1).trimEnd()}\u2026\`:h}),r=o.map((b)=>at.HEAD+(b?at.SUMMARY:0)),n=e.tables.map((b,h)=>(r[h]??0)+YZ(b)*at.ROW+at.PAD),i=WZ(e),s=JZ(e,i,QZ(e,i),n),l=Math.max(0,...i),u=e.tables.map((b,h)=>({x:at.MARGIN+(i[h]??0)*(t+at.GAP_X),y:Sf(at.MARGIN+(s[h]??0)),width:t,height:n[h]??0,rowsTop:r[h]??0,summary:o[h]??""})),d=new Map;for(let b of e.keys)d.set(\`\${b.from}:\${b.to}\`,(d.get(\`\${b.from}:\${b.to}\`)??0)+1);let m=new Map,p=!1,f=e.keys.map((b)=>{let h=u[b.from],x=u[b.to],v=e.tables[b.from],w=e.tables[b.to];if(!h||!x||!v||!w)return{path:"",foot:"",bars:"",ring:null,rows:[]};let C=\`\${b.from}:\${b.to}\`,I=m.get(C)??0;m.set(C,I+1);let L=(I-((d.get(C)??1)-1)/2)*5,k=(H,J)=>H.columns.findIndex((oe)=>oe.name.toLowerCase()===J?.toLowerCase()),_=(H,J)=>J<0?H.y+at.HEAD/2:H.y+H.rowsTop+J*at.ROW+at.ROW/2,T=k(v,b.columns[0]),O=k(w,b.referencedColumns[0]),D=Sf(_(h,T)),z=Sf(_(x,O)+L),R=h.x===x.x;if(R&&(i[b.from]??0)===l)p=!0;let A=x.x<h.x?-1:1,E=R?1:-A,B=A<0?h.x:h.x+h.width,X=E>0?x.x+x.width:x.x,ee=B+A*at.STUB_FROM,F=X+E*at.STUB_TO,ce=R?36+Math.min(Math.abs(D-z),160)/4:Math.max(60,Math.abs(ee-F)*0.5),N=Sf(ee+A*ce),Z=Sf(F+E*ce),Q=[...b.columns.map((H)=>\`\${b.from}:\${k(v,H)}\`),...b.referencedColumns.map((H)=>\`\${b.to}:\${k(w,H)}\`)];return{path:\`M\${B},\${D} L\${ee},\${D} C\${N},\${D} \${Z},\${z} \${F},\${z} L\${X},\${z}\`,foot:\`M\${B+A*11},\${D} L\${B},\${D-5} M\${B+A*11},\${D} L\${B},\${D+5}\`,bars:\`M\${X+E*6},\${z-5} V\${z+5} M\${X+E*11},\${z-5} V\${z+5}\`,ring:b.nullable?{cx:B+A*16,cy:D}:null,rows:Q}}),g=at.MARGIN+(l+1)*t+l*at.GAP_X,y=Math.max(0,...u.map((b)=>b.y+b.height));return{width:g+at.MARGIN+(p?at.LOOP_ROOM:0),height:Math.ceil(y+at.MARGIN),boxes:u,edges:f}}var qL="schema-key",jP=22,e9=new Set,QP="M9.5,9 H17.5 M12,9 V7.5 H15 V9 M10.5,9 L11,16.5 H16 L16.5,9";function XP(e){let t=e.closest('[data-slot="schema-window"]');if(!t)return"top";let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,0),n=Math.min(o.bottom,window.innerHeight);return a.top+a.height/2<(r+n)/2?"bottom":"top"}function t9(e,t){if(e.source===t)return"source";if(e.blockers.includes(t))return"blocker";if(e.removed.includes(t))return"removed";return e.detached.includes(t)?"detached":null}function a9(e,t,a){if(a===null)return null;let o=new Set,r=new Set,n=new Map;if("table"in a)o.add(a.table);return e.keys.forEach((i,s)=>{if(!("key"in a?a.key===s:i.from===a.table||i.to===a.table))return;r.add(s),o.add(i.from).add(i.to);for(let u of t.edges[s]?.rows??[]){let[d=0,m=-1]=u.split(":").map(Number),p=n.get(d)??new Set;p.add(m),n.set(d,p)}}),{tables:o,keys:r,rows:n}}function JP({model:e,layout:t,width:a,height:o,active:r,preview:n,onPreview:i}){let s=q(),l=xe(),[u,d]=Jr.useState(null),m=Jr.useMemo(()=>n?null:a9(e,t,u),[e,t,u,n]),p=Jr.useCallback((f)=>{l.navigate({href:pp(s.route(f)).slice(1),replace:!0})},[s,l]);return S("svg",{role:"img","aria-label":\`Diagram of \${e.tables.length} tables and \${e.keys.length} foreign keys\`,width:a,height:o,viewBox:\`0 0 \${t.width} \${t.height}\`,className:"block font-sans",children:[c("defs",{children:S("symbol",{id:qL,viewBox:"0 0 12 12",children:[c("circle",{cx:"3.6",cy:"6",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.4"}),c("path",{d:"M6 6H11.2M9.2 6V8.4M11.2 6V7.6",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}),t.edges.map((f,g)=>{let y=e.keys[g];if(!y)return null;let b=n?.keys.get(g)??null,h=n?b?"plain":"dim":m===null?"plain":m.keys.has(g)?"lit":"dim";return c(r9,{index:g,edge:f,foreignKey:y,state:h,effect:b,onHover:d},g)}),e.tables.map((f,g)=>{let y=t.boxes[g];if(!y)return null;let b=n?t9(n,g):null,h=n?b?"plain":"dim":m===null?"plain":m.tables.has(g)?"lit":"dim";return c(i9,{index:g,table:f,box:y,state:h,role:b,litRows:m?.rows.get(g)??e9,active:f.ref===r,onHover:d,onOpen:p,onPreview:i},f.ref)})]})}var YP="fill-none stroke-[1.3]",o9={cascade:"stroke-destructive",block:"stroke-status",detach:"stroke-foreground"},r9=Jr.memo(function({index:t,edge:a,foreignKey:o,state:r,effect:n,onHover:i}){let s=r==="lit"||n!==null;return S("g",{"data-diagram-part":"key","data-state":r,"data-delete":n??void 0,"data-status":n==="block"?"warning":void 0,className:P("transition-opacity",n?o9[n]:s?"stroke-primary":"stroke-muted-foreground",r==="dim"&&"opacity-15"),onMouseEnter:()=>i({key:t}),onMouseLeave:()=>i(null),children:[c("title",{children:o.hint}),c("path",{d:a.path,strokeDasharray:o.onDelete==="CASCADE"?"6 4":void 0,className:P("fill-none",s?"stroke-[2.2]":"stroke-[1.3] opacity-85")}),c("path",{d:a.path,className:"fill-none stroke-[12] stroke-transparent",pointerEvents:"stroke"}),c("path",{d:a.foot,className:YP}),c("path",{d:a.bars,className:YP}),a.ring&&c("circle",{cx:a.ring.cx,cy:a.ring.cy,r:"3.4",className:"fill-background stroke-[1.3]"})]})}),n9={source:"stroke-destructive stroke-[4]",removed:"stroke-destructive stroke-[2.5]",blocker:"stroke-status stroke-[2.5]",detached:"stroke-foreground stroke-[1.5]"},i9=Jr.memo(function(t){let{index:a,table:o,box:r,state:n,role:i,litRows:s,active:l,onHover:u,onOpen:d,onPreview:m}=t,{width:p,height:f,rowsTop:g}=r,{HEAD:y,ROW:b}=at,h=(v)=>g+v*b,x=o.columns.length;return S("g",{role:"link",tabIndex:0,"aria-label":\`Table \${o.name}\`,"data-diagram-part":"table","data-kind":"table","data-table":o.name,"data-state":n,"data-active":l||void 0,"data-delete":i??void 0,"data-status":i==="blocker"?"warning":void 0,transform:\`translate(\${r.x},\${r.y})\`,className:P("cursor-pointer outline-hidden drop-shadow-sm transition-opacity [&:focus-visible>rect:first-of-type]:stroke-ring",n==="dim"&&"opacity-30"),onMouseEnter:()=>u({table:a}),onMouseLeave:()=>u(null),onClick:()=>d(o.ref),onKeyDown:(v)=>{if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),d(o.ref)},children:[c("rect",{width:p,height:f,rx:"4",className:P("fill-card stroke-border",l?"stroke-[2.5] stroke-ring":"stroke-1")}),c("path",{d:\`M0,\${y} V4 a4,4 0 0 1 4,-4 H\${p-4} a4,4 0 0 1 4,4 V\${y} Z\`,className:"fill-kind"}),c("text",{x:p/2,y:"17",textAnchor:"middle",className:"fill-kind-foreground font-bold text-[13px]",children:o.name}),S("g",{role:"button",tabIndex:0,"aria-label":\`Delete preview for \${o.name}\`,"aria-pressed":i==="source","data-diagram-part":"delete",className:"group/bin outline-hidden [&:focus-visible>rect]:stroke-ring",onClick:(v)=>{v.stopPropagation(),m(a,XP(v.currentTarget))},onKeyDown:(v)=>{if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),v.stopPropagation(),m(a,XP(v.currentTarget))},children:[c("title",{children:\`Delete preview: what goes when a row of \${o.name} is deleted\`}),c("rect",{x:"5",y:"4",width:"17",height:"16",rx:"4",className:P("stroke-2 stroke-transparent transition-colors",i==="source"?"fill-destructive":"fill-black/25 group-hover/bin:fill-black/45")}),c("path",{d:QP,strokeLinecap:"round",strokeLinejoin:"round",className:P("fill-none stroke-[1.2]",i==="source"?"stroke-destructive-foreground":"stroke-kind-foreground")})]}),o.description&&c("title",{children:o.description}),r.summary&&c("text",{x:"10",y:y+13,className:"fill-muted-foreground text-[10.5px] italic",children:r.summary}),o.columns.map((v,w)=>{let C=h(w),I=v.type.length>jP?\`\${v.type.slice(0,jP-1)}\u2026\`:v.type;return S("g",{"data-column":v.name,children:[c("title",{children:v.hint}),c("rect",{x:"1",y:C,width:p-2,height:b,className:P("fill-primary",s.has(w)?"opacity-25":"opacity-0")}),v.primaryKey&&c("use",{href:\`#\${qL}\`,x:"8",y:C+3,width:"12",height:"12",className:"text-chart-5"}),v.foreignKey&&c("use",{href:\`#\${qL}\`,x:v.primaryKey?22:8,y:C+3,width:"12",height:"12",className:"text-chart-3"}),c("text",{x:"40",y:C+13,className:"fill-foreground text-[12px]",children:v.name}),c("text",{x:p-34,y:C+13,textAnchor:"end",className:"fill-muted-foreground text-[11px] italic",children:I}),v.notNull&&c("text",{x:p-8,y:C+13,textAnchor:"end",className:"fill-foreground font-semibold text-[11px]",children:"NN"})]},v.name)}),o.indexes.map((v,w)=>{let C=h(x+w);return S("g",{children:[c("title",{children:\`\${v.unique?"Unique index":"Index"} \${v.name}\`}),c("text",{x:"10",y:C+13,className:"fill-muted-foreground font-semibold text-[10px]",children:v.unique?"UQ":"IX"}),S("text",{x:"40",y:C+13,className:"fill-muted-foreground font-mono text-[11px]",children:["(",v.columns.join(", "),")"]})]},v.name)}),o.options.length>0&&c("text",{x:"40",y:h(x+o.indexes.length)+13,className:"fill-muted-foreground text-[10.5px] italic",children:o.options.join(", ")}),i&&c("rect",{width:p,height:f,rx:"4",strokeDasharray:i==="blocker"?"7 4":void 0,pointerEvents:"none",className:P("fill-none",n9[i])})]})});function eO(){return S("ul",{"aria-label":"Legend",className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-muted-foreground text-xs",children:[S("li",{className:"flex items-center gap-1.5",children:[c(WP,{className:"text-chart-5"}),"primary key"]}),S("li",{className:"flex items-center gap-1.5",children:[c(WP,{className:"text-chart-3"}),"foreign key"]}),S("li",{className:"flex items-center gap-1.5",children:[c("b",{className:"font-semibold text-[0.6875rem] text-foreground",children:"NN"}),"not null"]}),S("li",{className:"flex items-center gap-1.5",children:[c("b",{className:"font-semibold text-[0.625rem]",children:"IX"}),"index"]}),S("li",{className:"flex items-center gap-1.5",children:[c("svg",{"aria-hidden":!0,width:"64",height:"16",viewBox:"0 0 64 16",children:c("path",{d:"M0,8 H64 M10,3 V13 M15,3 V13 M52,8 L64,3 M52,8 L64,13",className:"fill-none stroke-muted-foreground stroke-[1.3]"})}),"one to many"]}),S("li",{className:"flex items-center gap-1.5",children:[S("svg",{"aria-hidden":!0,width:"40",height:"16",viewBox:"24 0 40 16",children:[c("path",{d:"M24,8 H64 M52,8 L64,3 M52,8 L64,13",className:"fill-none stroke-muted-foreground stroke-[1.3]"}),c("circle",{cx:"46",cy:"8",r:"3.4",className:"fill-background stroke-[1.3] stroke-muted-foreground"})]}),"may be null"]}),S("li",{className:"flex items-center gap-1.5",children:[c("svg",{"aria-hidden":!0,width:"36",height:"16",viewBox:"0 0 36 16",children:c("path",{d:"M0,8 H36",strokeDasharray:"6 4",className:"fill-none stroke-muted-foreground stroke-[1.3]"})}),"on delete cascade"]}),S("li",{className:"flex items-center gap-1.5",children:[S("svg",{"aria-hidden":!0,width:"17",height:"16",viewBox:"5 4 17 16",children:[c("rect",{x:"5",y:"4",width:"17",height:"16",rx:"4",className:"fill-muted-foreground"}),c("path",{d:QP,strokeLinecap:"round",strokeLinejoin:"round",className:"fill-none stroke-[1.2] stroke-card"})]}),"delete preview"]})]})}function WP({className:e}){return S("svg",{"aria-hidden":!0,width:"14",height:"14",viewBox:"0 0 12 12",className:e,children:[c("circle",{cx:"3.6",cy:"6",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.4"}),c("path",{d:"M6 6H11.2M9.2 6V8.4M11.2 6V7.6",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}var ka=U(V(),1);var Lf=1,rO=0.1,s9=0.5,tO=1.25,aO=48;function oO(e){return Math.min(Lf,Math.max(rO,e))}function nO(e){let{width:t,height:a,legend:o,focus:r=null,overlay:n,overlayEdge:i="top",children:s,className:l}=e,u=ka.useRef(null),[d,m]=ka.useState(Lf),p=ka.useRef({zoom:Lf,scroll:null}),f=ka.useCallback(()=>{let h=(u.current?.clientWidth??t)-2;return oO(h/t)},[t]),g=ka.useCallback((h,x,v)=>{let w=u.current,C=oO(h),I=p.current.zoom;if(!w||C===I)return;let L=w.getBoundingClientRect(),k=x===void 0?w.clientWidth/2:x-L.left,_=v===void 0?w.clientHeight/2:v-L.top,T=p.current.scroll??{left:w.scrollLeft,top:w.scrollTop};p.current={zoom:C,scroll:{left:(T.left+k)/I*C-k,top:(T.top+_)/I*C-_}},m(C)},[]);ka.useLayoutEffect(()=>{let h=Math.max(s9,f());p.current={zoom:h,scroll:null},m(h)},[f]),ka.useLayoutEffect(()=>{let h=u.current,{scroll:x}=p.current;if(!h||!x)return;h.scrollLeft=x.left,h.scrollTop=x.top,p.current.scroll=null},[d]),ka.useEffect(()=>{let h=u.current;if(!h||!r)return;let x=requestAnimationFrame(()=>{let v=p.current.zoom,w=r.x*v,C=r.y*v;if(!(w>=h.scrollLeft&&C>=h.scrollTop&&w+r.width*v<=h.scrollLeft+h.clientWidth&&C+r.height*v<=h.scrollTop+h.clientHeight))h.scrollTo({left:w-aO,top:C-aO,behavior:"smooth"})});return()=>cancelAnimationFrame(x)},[r?.x,r?.y,r?.width,r?.height]),ka.useEffect(()=>{let h=u.current;if(!h)return;let x=new Map,v=null,w=null,C=()=>[...x.values()],I=()=>{let[z,R]=C();return z&&R?Math.hypot(z.x-R.x,z.y-R.y)||1:1},L=()=>{let[z,R]=C();return z&&R?{x:(z.x+R.x)/2,y:(z.y+R.y)/2}:{x:0,y:0}},k=(z)=>{v={...z,left:h.scrollLeft,top:h.scrollTop},h.dataset.panning=""},_=(z)=>{if(!z.ctrlKey&&!z.metaKey)return;z.preventDefault();let R=Math.abs(z.deltaY)>=50?0.0015:0.01;g(p.current.zoom*Math.exp(-z.deltaY*R),z.clientX,z.clientY)},T=(z)=>{let R=z.target instanceof Element&&z.target.closest("[data-diagram-part]")!==null;if(z.pointerType==="mouse"&&(z.button!==0||R))return;x.set(z.pointerId,{x:z.clientX,y:z.clientY});let[A]=C();if(x.size===1&&A)k(A);else if(x.size===2)v=null,w={distance:I(),zoom:p.current.zoom,...L()}},O=(z)=>{if(!x.has(z.pointerId))return;if(x.set(z.pointerId,{x:z.clientX,y:z.clientY}),w&&x.size===2){let R=L();g(w.zoom*I()/w.distance,R.x,R.y),w.x=R.x,w.y=R.y}else if(v)h.scrollLeft=v.left-(z.clientX-v.x),h.scrollTop=v.top-(z.clientY-v.y)},D=(z)=>{x.delete(z.pointerId),w=null;let[R]=C();if(R)k(R);else v=null,delete h.dataset.panning};return h.addEventListener("wheel",_,{passive:!1}),h.addEventListener("pointerdown",T),window.addEventListener("pointermove",O),window.addEventListener("pointerup",D),window.addEventListener("pointercancel",D),()=>{h.removeEventListener("wheel",_),h.removeEventListener("pointerdown",T),window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D)}},[g]);let y=d>=Lf-0.000001,b=d<=rO+0.000001;return S("div",{className:P("overflow-clip rounded-xl border bg-card text-card-foreground shadow-sm",l),children:[S("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 border-b bg-muted/60 px-3 py-2",children:[o,S("div",{className:"ml-auto flex items-center gap-1.5",children:[c(vt,{variant:"outline",size:"icon",className:"size-7","aria-label":"Zoom out",title:"Zoom out",disabled:b,onClick:()=>g(p.current.zoom/tO),children:c(ns,{})}),S("output",{"aria-label":"Zoom level",className:"w-11 text-center font-medium text-xs tabular-nums",children:[Math.round(d*100),"%"]}),c(vt,{variant:"outline",size:"icon",className:"size-7","aria-label":"Zoom in",title:"Zoom in",disabled:y,onClick:()=>g(p.current.zoom*tO),children:c(is,{})}),c(vt,{variant:"outline",size:"sm",className:"h-7 px-2.5 text-xs",onClick:()=>g(f()),children:"Fit width"}),c(vt,{variant:"outline",size:"sm",className:"h-7 px-2.5 text-xs",disabled:y,onClick:()=>g(Lf),children:"100%"})]})]}),S("div",{className:"relative",children:[n&&c("div",{className:P("pointer-events-none absolute inset-0 z-10 flex flex-col px-3 pt-3 pb-6 sm:px-6",i==="bottom"&&"justify-end"),children:c("div",{className:"sticky top-16 bottom-3 lg:top-3",children:n})}),c("div",{ref:u,"data-slot":"schema-window",className:"h-[78dvh] min-h-[420px] cursor-grab touch-none overflow-auto bg-muted/40 data-[panning]:cursor-grabbing data-[panning]:select-none",children:s({width:t*d,height:a*d})})]})]})}var iO="rounded-xs font-medium font-mono text-[0.8125rem] text-primary underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function sO({tables:e,headingId:t,headingClassName:a}){let o=q(),r=e.map((s)=>{let l=(u)=>[...new Set(o.edgesTo(s.ref).flatMap((d)=>d[1]===u?[d[0]]:[]))];return{...s,readBy:l("reads"),writtenBy:l("writes")}}),n=r.filter((s)=>s.readBy.length>0||s.writtenBy.length>0);if(n.length===0)return null;let i=r.filter((s)=>s.readBy.length===0&&s.writtenBy.length===0);return S("section",{"aria-labelledby":t,className:"mt-10 max-w-5xl space-y-3",children:[c("h2",{id:t,className:a,children:"Queries by table"}),c("div",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Table"}),c(tt,{className:"w-1/2",children:"Read by"}),c(tt,{className:"w-1/2",children:"Written by"})]})}),c(fr,{children:n.map((s)=>S(ua,{children:[c(it,{className:"whitespace-nowrap align-top",children:c(ie,{node:s.ref,className:iO,children:s.name})}),[s.readBy,s.writtenBy].map((l,u)=>c(it,{className:"min-w-40 align-top",children:c("span",{className:"flex flex-wrap gap-x-3 gap-y-1",children:l.map((d)=>c(nr,{node:d},d))})},u))]},s.ref))})]})}),i.length>0&&S("p",{className:"text-muted-foreground text-sm",children:["No catalog entry names"," ",i.map((s,l)=>S("span",{children:[l>0&&(l===i.length-1?" or ":", "),c(ie,{node:s.ref,className:iO,children:s.name})]},s.ref)),"."]})]})}function lO(e){if(e.onDelete==="CASCADE")return"cascade";if(e.onDelete==="SET DEFAULT")return"detach";return e.onDelete==="SET NULL"&&e.nullable?"detach":"block"}function uO(e,t){let a=new Set([t]),o=new Map;for(let s=[t];s.length>0;){let l=s.shift();e.keys.forEach((u,d)=>{if(u.to!==l||lO(u)!=="cascade")return;if(o.set(d,"cascade"),a.has(u.from))return;a.add(u.from),s.push(u.from)})}let r=new Set,n=new Set;e.keys.forEach((s,l)=>{let u=lO(s);if(u==="cascade"||!a.has(s.to))return;if(!(!a.has(s.from)||s.from===s.to)&&s.onDelete!=="RESTRICT")return;o.set(l,u),(u==="block"?n:r).add(s.from)});let i=(s)=>e.tables.flatMap((l,u)=>s.has(u)?[u]:[]);return a.delete(t),{source:t,removed:i(a),detached:i(r),blockers:i(n),keys:o}}var $L="font-bold text-xl tracking-tight",l9="rounded-xs font-medium font-mono text-[0.8125rem] text-primary underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function cO(e,t){return\`\${e} \${t}\${e===1?"":"s"}\`}function dO({node:e,database:t}){let a=q(),o=ct();Re(\`\${t.name} \xB7 \${a.meta.title}\`);let r=en.useMemo(()=>ZP(a,e),[a,e]),n=en.useMemo(()=>KP(r),[r]),i=r.tables.findIndex((y)=>y.ref===o),s=n.boxes[i]??null,[l,u]=en.useState(null),d=r.tables.findIndex((y)=>y.ref===l?.table),m=en.useMemo(()=>d<0?null:uO(r,d),[r,d]),p=en.useCallback((y,b)=>{let h=r.tables[y]?.ref;u((x)=>h===void 0||x?.table===h?null:{table:h,edge:b})},[r]),f=en.useMemo(()=>r.tables.flatMap((y)=>{let b=a.node(y.ref),h=b.kind==="table"&&b.descriptionHtml?[b.descriptionHtml]:[],x=a.children(y.ref).flatMap((v)=>{let w=a.node(v);if(w.kind!=="field"||!w.descriptionHtml)return[];return[{table:y.ref,label:\`\${y.name}.\${w.name}\`,html:w.descriptionHtml}]});return[...h.map((v)=>({table:y.ref,label:y.name,html:v})),...x]}),[a,r]),g=r.tables.reduce((y,b)=>y+b.indexes.length,0);return S(Ge,{width:"full",children:[c(Je,{node:e}),S("header",{className:"mb-2 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c("h1",{className:"break-all font-bold font-mono text-3xl tracking-tight",children:t.name}),c(ye,{kind:"database"}),S("span",{className:"text-muted-foreground text-sm",children:[cO(r.tables.length,"table"),", ",cO(r.keys.length,"foreign key"),","," ",g===1?"1 index":\`\${g} indexes\`]})]}),c("p",{className:"mb-6 break-all font-mono text-muted-foreground text-xs",children:t.path}),c("div",{className:"mb-6 max-w-3xl empty:hidden",children:c(jt,{content:t.content,name:t.name})}),c(nO,{width:n.width,height:n.height,legend:c(eO,{}),focus:s,overlay:m&&c(VP,{model:r,plan:m,onClear:()=>u(null)}),overlayEdge:l?.edge,children:(y)=>c(JP,{model:r,layout:n,active:o,preview:m,onPreview:p,...y})}),c("p",{className:"mt-2 max-w-5xl text-muted-foreground text-sm",children:"Point at a table or a line to see what it is connected to. Press the bin on a table for a delete preview: every table that loses rows with a row of that table gets a red outline. Zoom with the buttons, or with Ctrl or \u2318 and the scroll wheel. Drag the background to move."}),f.length>0&&S("section",{"aria-labelledby":"database-notes",className:"mt-10 max-w-5xl space-y-3",children:[c("h2",{id:"database-notes",className:$L,children:"Notes"}),c("div",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Table or column"}),c(tt,{className:"w-full",children:"Note"})]})}),c(fr,{children:f.map((y)=>S(ua,{children:[c(it,{className:"whitespace-nowrap align-top",children:c(ie,{node:y.table,className:l9,children:y.label})}),c(it,{className:"min-w-48",children:c(ze,{compact:!0,html:y.html})})]},y.label))})]})})]}),c(sO,{tables:r.tables,headingId:"database-queries",headingClassName:$L}),t.objects.length>0&&S("section",{"aria-labelledby":"database-objects",className:"mt-10 max-w-5xl space-y-4",children:[c("h2",{id:"database-objects",className:$L,children:"Views and triggers"}),t.objects.map((y)=>S("article",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(na,{variant:"outline",className:"bg-background font-mono",children:y.kind}),c("h3",{className:"break-all font-bold font-mono text-base tracking-tight",children:y.name}),y.table&&S("span",{className:"text-muted-foreground text-sm",children:["on ",y.table]}),S("span",{className:"ml-auto whitespace-nowrap font-mono text-muted-foreground text-xs",children:["line ",y.line]})]}),S("div",{className:"space-y-3 border-t p-4",children:[y.descriptionHtml&&c(ze,{compact:!0,html:y.descriptionHtml}),c($r,{html:y.sqlHtml})]})]},\`\${y.kind} \${y.name}\`))]}),c("div",{className:"mt-10 max-w-5xl empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var u9={folder:vd,package:Ed,skill:Fr,reference:Vl,agent:md,hook:Od,schema:Ro,json:Ro,toml:Ro,yaml:Ro,asset:Kl,document:yd,source:gd,glossary:pd,term:zd,decisions:Ad,decision:bd,api:Nd,operation:dd,definition:hd,database:Zl,table:Dd,catalog:wd,query:Pd,plan:Cd,phase:Rd,task:Ld},c9={skills:Fr,docs:Vl,code:Yn,database:Zl,tasks:Sd};function Za({kind:e,section:t,open:a=!1,className:o}){if(ma(e))return c(ZE,{kind:e,className:o});let r=(e==="section"?c9[t??""]:e==="folder"&&a?xd:u9[e])??Kl;return c(r,{"aria-hidden":!0,className:P("size-4 shrink-0",o)})}function Cu(e,t){return\`\${e} \${t}\${e===1?"":"s"}\`}function d9(e,t){let a=e.node(t);if(a.kind==="glossary"||a.kind==="decisions")return Cu(e.children(t).length,a.kind==="glossary"?"term":"decision");if(a.kind==="database")return Cu(e.children(t).length,"table");if(a.kind==="plan"||a.kind==="phase"){let r=a.kind==="plan"?"phase":"task",n=e.children(t).filter((i)=>e.node(i).kind===r).length;return\`\${a.status}, \${Cu(n,r)}. \${a.summary}\`}if(a.kind==="catalog")return xg(e,t).join(", ");if(a.kind==="api"){let r=e.children(t).filter((n)=>e.node(n).kind==="operation").length;return[a.title,a.version,Cu(r,"operation")].filter(Boolean).join(", ")}if(Yt(a))return a.description||(a.title===a.name?"":a.title);if(a.kind==="source"){let r=[...e.descendants(t)].filter((n)=>ma(e.node(n).kind)).length;return r>0?\`\${a.language}, \${Cu(r,"symbol")}\`:a.language}let o=e.children(t).filter((r)=>!ko(e.node(r).kind)).length;return Cu(o,"item")}function ku({rows:e}){let t=q();return c("div",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Name"}),c(tt,{children:"Kind"}),c(tt,{className:"w-full",children:"About"})]})}),c(fr,{children:e.map(({node:a,label:o})=>{let{kind:r,name:n}=t.node(a);return S(ua,{children:[c(it,{children:S(ie,{node:a,className:"flex items-center gap-2 whitespace-nowrap rounded-xs font-medium font-mono text-[0.8125rem] text-primary underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50",children:[c(Za,{kind:r,className:"text-muted-foreground"}),c("span",{children:o??n})]})}),c(it,{children:c(ye,{kind:r})}),c(it,{className:"min-w-48 text-muted-foreground",children:d9(t,a)})]},a)})})]})})}function fO({node:e,file:t}){let a=q();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let{content:o}=t,r=o.format==="markdown",n=r&&o.html.includes("<h1"),i=a.route(e).path,s=t.kind==="skill"?[...a.descendants(e)].filter((l)=>{let{kind:u}=a.node(l);return u==="source"||Yt(a.node(l))}).map((l)=>({node:l,label:a.route(l).path.slice(i.length+1)})):[];return S(Ge,{aside:r?c(mt,{headings:o.headings}):void 0,width:r?"prose":"wide",children:[c(Je,{node:e}),t.kind==="skill"?S("dl",{className:"mb-8 grid grid-cols-[max-content_minmax(0,1fr)] gap-x-5 gap-y-2.5 rounded-lg border border-l-4 border-l-primary bg-card p-4 text-card-foreground text-sm leading-6 shadow-sm",children:[c("dt",{className:"font-mono text-muted-foreground",children:"name"}),c("dd",{className:"break-all font-mono font-semibold text-primary",children:t.name}),t.description&&S(he,{children:[c("dt",{className:"font-mono text-muted-foreground",children:"description"}),c("dd",{children:t.description})]}),c("dt",{className:"font-mono text-muted-foreground",children:"path"}),c("dd",{className:"break-all font-mono text-[0.8125rem] text-muted-foreground",children:t.path})]}):S("header",{className:"mb-6 space-y-2",children:[S("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:t.kind}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path})]}),t.description&&c("p",{className:"text-lg text-muted-foreground leading-7",children:t.description})]}),!n&&c("h1",{className:"mb-6 break-all font-bold text-3xl tracking-tight",children:t.title}),c(jt,{content:o,name:t.name}),s.length>0&&S("section",{"aria-labelledby":"skill-files",className:"mt-10 space-y-3",children:[c("h2",{id:"skill-files",className:"font-bold text-xl tracking-tight",children:"Files in this skill"}),c(ku,{rows:s})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var mr="font-mono text-foreground",f9={skills:{title:"No skills found",help:S(he,{children:["A skill is a directory with a ",c("code",{className:mr,children:"SKILL.md"})," file. Add one to the repository, or point at a skills directory with ",c("code",{className:mr,children:"--skills"}),", then run the command again."]})},docs:{title:"No docs found",help:S(he,{children:["Docs are the markdown files of the repository. Add a"," ",c("code",{className:mr,children:"README.md"}),", or point at a docs directory with ",c("code",{className:mr,children:"--docs"}),", then run the command again."]})},code:{title:"No code found",help:"The repository holds no source file in a supported language, or every file was excluded."},database:{title:"No SQL files found",help:S(he,{children:["This section shows the ",c("code",{className:mr,children:".sql"})," files of the repository: a file that creates tables as a diagram of its schema, and every other file as an entry of a query catalog."]})},tasks:{title:"No tasks found",help:S(he,{children:["This section shows the plans, phases and tasks that task-manager keeps in the directory"," ",c("code",{className:mr,children:"skills.settings.filetreeRoot"})," of ",c("code",{className:mr,children:".g3n.config.json"})," ","names, ",c("code",{className:mr,children:"docs/task-manager"})," by default."]})}};function pO({node:e}){let t=q(),a=t.node(e),o=t.children(e).filter((r)=>!ko(t.node(r).kind));if(Re(\`\${a.name} \xB7 \${t.meta.title}\`),a.kind==="section"&&o.length===0){let{title:r,help:n}=f9[a.slug];return c(Ul,{title:r,children:c("p",{children:n})})}return S(Ge,{width:"wide",children:[c(Je,{node:e}),c("h1",{className:"mb-6 break-all font-bold text-3xl tracking-tight",children:a.name}),a.kind==="package"&&S("div",{className:"mb-6 space-y-2",children:[S("div",{className:"flex flex-wrap items-center gap-2 text-muted-foreground text-sm",children:[c(na,{variant:"secondary",children:a.role}),c("code",{className:mr,children:a.packageName}),a.version!==null&&c("span",{children:a.version}),S("span",{children:["from ",c("code",{className:mr,children:a.manifest})]})]}),a.description&&c("p",{children:a.description})]}),c(ku,{rows:o.map((r)=>({node:r}))})]})}var p9={open:"off","in-progress":"info","in-review":"warning",completed:"success",blocked:"error"};function mO(e){return p9[e]}function vg({status:e,priority:t,extra:a=[]}){return S(he,{children:[c($a,{status:mO(e),children:e}),[\`\${t} priority\`,...a].map((o)=>c("span",{className:"font-mono text-muted-foreground text-xs",children:o},o))]})}function VL({node:e,file:t}){let a=t.content.format==="markdown"&&t.content.html.includes("<h1");return S(he,{children:[S("header",{className:"mb-6 space-y-2",children:[S("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:t.kind}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),c(vg,{status:t.status,priority:t.priority,extra:t.kind==="phase"&&t.parallel?["tasks run in parallel"]:[]})]}),c("p",{className:"text-lg text-muted-foreground leading-7",children:t.summary})]}),!a&&c("h1",{className:"mb-6 break-words font-bold text-3xl tracking-tight",children:t.title}),S("div",{className:"mb-6 space-y-4 empty:hidden",children:[c(ei,{node:e,kind:"depends",title:"Depends on"}),c(ei,{node:e,kind:"names",title:"Names"})]}),c(jt,{content:t.content,name:t.name})]})}function hO({node:e,file:t}){let a=q();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let o=a.children(e).filter((r)=>Yt(a.node(r)));return S(Ge,{aside:t.content.format==="markdown"?c(mt,{headings:t.content.headings}):void 0,children:[c(Je,{node:e}),c(VL,{node:e,file:t}),o.length>0&&S("section",{"aria-labelledby":"plan-phases",className:"mt-10 space-y-3",children:[c("h2",{id:"plan-phases",className:"font-bold text-xl tracking-tight",children:"Phases"}),c(ku,{rows:o.map((r)=>({node:r}))})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function gO({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=a.children(e).flatMap((i)=>{let s=a.node(i);return s.kind==="task"?[{ref:i,task:s}]:[]}),n=r.map(({task:i})=>({id:Ve("task",i.anchor),text:\`\${i.id} \${i.name}\`,depth:2}));return S(Ge,{aside:c(mt,{headings:n}),children:[c(Je,{node:e}),c(VL,{node:e,file:t}),S("section",{"aria-labelledby":"phase-tasks",className:"mt-10 space-y-4",children:[S("h2",{id:"phase-tasks",className:"font-bold text-xl tracking-tight",children:[r.length," ",r.length===1?"task":"tasks"]}),r.map(({ref:i,task:s})=>S(fu,{node:i,kind:"task",anchor:s.anchor,title:S(he,{children:[c("span",{className:"font-mono text-muted-foreground",children:s.id})," ",s.name]}),active:i===o,meta:c(vg,{status:s.status,priority:s.priority,extra:[\`package: \${s.package}\`,...s.complexity===null?[]:[\`complexity: \${s.complexity}\`]]}),children:[c("p",{className:"text-muted-foreground",children:s.summary}),s.html&&c(ze,{compact:!0,html:s.html}),c(ei,{node:i,kind:"depends",title:"Depends on"}),c(ei,{node:i,kind:"names",title:"Names"}),c(Le,{node:i,title:"Referenced by"}),c(pu,{node:i})]},i))]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function yO({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=a.children(e).flatMap((i)=>{let s=a.node(i);return s.kind==="definition"?[{ref:i,definition:s}]:[]}),n=[...r.map(({definition:i})=>({id:Ve("definition",i.anchor),text:i.name,depth:2})),{id:"schema-source",text:"Source",depth:2}];return S(Ge,{aside:c(mt,{headings:n}),width:"wide",children:[c(Je,{node:e}),c("header",{className:"mb-6 space-y-2",children:S("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"schema"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),S("span",{className:"text-muted-foreground text-sm",children:[r.length," ",r.length===1?"definition":"definitions"]})]})}),c("h1",{className:"mb-6 break-words font-bold text-3xl tracking-tight",children:t.title}),c("div",{className:"space-y-5",children:r.map(({ref:i})=>c(gg,{definition:i,active:o},i))}),S("section",{"aria-labelledby":"schema-source",className:"mt-10 space-y-3",children:[c("h2",{id:"schema-source",className:"scroll-mt-20 font-bold text-xl tracking-tight lg:scroll-mt-6",children:"Source"}),c(jt,{content:t.content,name:t.name})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var m9={throws:"Throws",deprecated:"Deprecated",see:"See also",since:"Since",other:"Note"},h9={typeParam:"Type parameter"};function g9(e){if(e.kind!=="other"||!e.label)return m9[e.kind];return h9[e.label]??e.label.charAt(0).toUpperCase()+e.label.slice(1)}function y9(e){if(e==="enum")return"Members";return e==="interface"||e==="type"?"Properties":"Fields"}function ZL({symbol:e,annotationLabel:t,active:a,depth:o=0}){let r=q(),n=r.node(e);if(!Qu(n))return null;let i=r.children(e).map((f)=>({ref:f,node:r.node(f)})),s=i.flatMap(({node:f})=>f.kind==="parameter"?[f]:[]),l=i.flatMap(({node:f})=>f.kind==="field"?[f]:[]),u=i.flatMap(({ref:f,node:g})=>Qu(g)?[f]:[]),d=r.edgesFrom(e).flatMap(([,f,g])=>f==="extends"?[g]:[]),m=o===0?"h2":"h3",p=n.tags.some((f)=>f.kind==="deprecated");return S("section",{id:Ve(n.kind,n.anchor),"data-kind":n.kind,"aria-label":\`\${n.kind} \${n.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===a&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(ye,{kind:n.kind}),c(m,{className:P("min-w-0 font-bold font-mono tracking-tight",o===0?"text-lg":"text-base"),children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:n.name})}),n.modifiers.map((f)=>c(na,{variant:"outline",className:"bg-background font-mono font-normal",children:f},f)),p&&c($a,{status:"warning",children:"Deprecated"}),S("span",{className:"ml-auto flex items-center gap-1.5 whitespace-nowrap font-mono text-muted-foreground text-xs",children:["line ",n.line,c(co,{node:e,className:"-my-1 -mr-1.5"})]})]}),S("div",{className:"space-y-4 border-t p-4 empty:hidden",children:[n.annotations.length>0&&c(St,{title:t,children:c("ul",{className:"flex flex-wrap gap-1.5",children:n.annotations.map((f)=>c("li",{className:"min-w-0",children:c(mo,{value:f})},f))})}),n.signatureHtml&&c($r,{html:n.signatureHtml}),n.descriptionHtml&&c(ze,{compact:!0,html:n.descriptionHtml}),d.length>0&&c(St,{title:n.kind==="type"?"Made of":"Base types",children:c("ul",{className:"flex flex-wrap gap-1.5",children:d.map((f)=>c("li",{className:"min-w-0",children:c(mo,{value:{text:r.node(f).name,links:[[0,r.node(f).name.length,f]]}})},f))})}),s.length>0&&c(St,{title:"Parameters",children:c(pr,{rows:s,valueLabel:"Default"})}),n.returns&&c(St,{title:"Returns",children:S("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1 text-sm",children:[n.returns.type&&c(mo,{value:n.returns.type}),n.returns.descriptionHtml&&c(ze,{compact:!0,html:n.returns.descriptionHtml})]})}),l.length>0&&c(St,{title:y9(n.kind),children:c(pr,{rows:l,valueLabel:n.kind==="enum"?"Value":"Default"})}),n.tags.length>0&&c(x9,{tags:n.tags}),n.example&&c(St,{title:"Example",aside:n.example.origin==="documented"?c($a,{status:"success",title:"Taken from the doc comment",children:"Documented"}):c($a,{status:"info",title:"Built from the signature",children:"Generated"}),children:c($r,{html:n.example.html})}),c(Le,{node:e,title:"Used by"})]}),u.length>0&&c("div",{className:"space-y-3 border-t bg-muted/30 p-3 sm:p-4",children:u.map((f)=>c(ZL,{symbol:f,annotationLabel:t,active:a,depth:o+1},f))})]})}function x9({tags:e}){return c("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-2 text-sm",children:e.map((t,a)=>S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"font-semibold leading-6",children:g9(t)}),S("dd",{className:"flex min-w-0 flex-wrap items-baseline gap-x-3 gap-y-1",children:[t.subject&&c(mo,{value:t.subject}),t.html&&c(ze,{compact:!0,html:t.html})]})]},a))})}function xO({node:e,source:t}){let a=q(),o=ct();Re(\`\${t.name} \xB7 \${a.meta.title}\`);let r=a.children(e).filter((i)=>ma(a.node(i).kind)),n=[...a.descendants(e)].filter((i)=>ma(a.node(i).kind)).length;return S(Ge,{width:"wide",children:[c(Je,{node:e}),S("header",{className:"mb-8 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c("h1",{className:"break-all font-bold font-mono text-3xl tracking-tight",children:t.name}),c(na,{children:t.language}),S("span",{className:"text-muted-foreground text-sm",children:[n," ",n===1?"symbol":"symbols"]})]}),c("div",{className:"space-y-5",children:r.map((i)=>c(ZL,{symbol:i,annotationLabel:t.annotationLabel,active:o},i))}),t.content&&S("section",{"aria-labelledby":"source-text",className:"mt-10 space-y-3 first:mt-0",children:[c("h2",{id:"source-text",className:"font-bold text-xl tracking-tight",children:"Source"}),c(jt,{content:t.content,name:t.name})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var v9=qu("/$");function vO(){let e=q(),t=v9.useLoaderData(),a=e.node(t);if(a.kind==="source")return c(xO,{node:t,source:a});if(a.kind==="glossary")return c(QM,{node:t,file:a});if(a.kind==="decisions")return c(YM,{node:t,file:a});if(a.kind==="api")return c(HP,{node:t,api:a});if(a.kind==="database")return c(dO,{node:t,database:a});if(a.kind==="catalog")return c(GP,{node:t,catalog:a});if(a.kind==="plan")return c(hO,{node:t,file:a});if(a.kind==="phase")return c(gO,{node:t,file:a});if(a.kind==="schema"&&e.children(t).some((o)=>e.node(o).kind==="definition"))return c(yO,{node:t,file:a});if(Yt(a))return c(fO,{node:t,file:a});return c(pO,{node:t})}var KL=8,bO="block truncate rounded-sm py-1 text-sm outline-hidden transition-colors hover:text-primary focus-visible:ring-3 focus-visible:ring-ring/50";function bs(e,t){return\`\${t}\${e===1?"":"s"}\`}var b9=new Set(ix),wO=new Set(["table"]),SO=new Set(["query"]),LO=new Set(["task"]),kO=new Set(["source","database","catalog"]),w9=[{slug:"skills",kinds:new Set(["skill"]),unit:(e)=>bs(e,"skill"),empty:"No SKILL.md files were found."},{slug:"docs",kinds:new Set(["document","json","glossary","decisions","schema","api"]),unit:(e)=>bs(e,"page"),empty:"No markdown, JSON, OpenAPI or JSON Schema files were found."},{slug:"code",kinds:new Set(["source"]),unit:(e,t,a)=>{let o=t.count(a,b9);return\`\${bs(e,"file")}, \${o.toLocaleString()} \${bs(o,"symbol")}\`},empty:"No source files in a supported language were found."},{slug:"database",kinds:new Set(["database","catalog"]),headline:(e,t)=>e.count(t,wO)+e.count(t,SO),unit:(e,t,a)=>{let o=t.count(a,wO),r=t.count(a,SO);return\`\${o.toLocaleString()} \${bs(o,"table")}, \${r.toLocaleString()} \${r===1?"query":"queries"}\`},empty:"No SQL files were found."},{slug:"tasks",kinds:new Set(["plan"]),headline:(e,t)=>e.count(t,LO),unit:(e,t,a)=>{let o=t.count(a,LO),r=[...t.descendants(a)].filter((n)=>{let i=t.node(n);return i.kind==="task"&&i.status==="completed"}).length;return\`\${bs(o,"task")}, \${r.toLocaleString()} completed, in \${e.toLocaleString()} \${bs(e,"plan")}\`},empty:"No task-manager plans were found."}];function IO(){let e=q(),{meta:t}=e;Re(t.title);let a=new Date(t.generatedAt).toLocaleDateString(void 0,{dateStyle:"long"}),o=new Set;for(let r of e.descendants(e.section("code"))){let n=e.node(r);if(n.kind==="source")o.add(n.language)}return S("main",{className:"w-full max-w-6xl px-4 py-10 sm:px-8 lg:px-10 lg:py-14",children:[c("h1",{className:"text-balance font-bold text-4xl tracking-tight sm:text-5xl",children:t.title}),S("p",{className:"mt-4 text-muted-foreground",children:["Generated on ",a," with ",t.generator,"."]}),c("div",{className:"mt-10 grid gap-5 md:grid-cols-2",children:w9.flatMap((r)=>{let n=e.sections.find(({slug:i})=>i===r.slug)?.node;return n===void 0?[]:[c(L9,{card:r,section:n},r.slug)]})}),S("div",{className:"mt-5 grid gap-5 md:grid-cols-2",children:[c(CO,{to:"/graph",icon:_o,title:"Graph",children:"Every file, class, function, term, decision, operation, table, query and task as one graph, with the references between them."}),c(CO,{to:"/guide",icon:Ua,title:"Guide",children:"How to read this site, how to query it from a terminal, and what to write in the repository so both show more."})]}),o.size>0&&c("ul",{"aria-label":"Languages in the code section",className:"mt-8 flex flex-wrap gap-2",children:[...o].sort().map((r)=>c("li",{className:"rounded-md border bg-card px-2.5 py-1 font-medium text-card-foreground text-xs shadow-xs",children:r},r))})]})}function CO({to:e,icon:t,title:a,children:o}){return S(rt,{to:e,className:"group flex items-center gap-3 rounded-xl border bg-card px-5 py-4 text-card-foreground shadow-sm outline-hidden transition-colors hover:border-primary/50 focus-visible:ring-3 focus-visible:ring-ring/50",children:[c(t,{className:"size-6 shrink-0 text-primary"}),S("span",{className:"min-w-0",children:[c("span",{className:"block font-bold text-lg tracking-tight",children:a}),c("span",{className:"block text-muted-foreground text-sm",children:o})]}),c(cd,{className:"ml-auto size-5 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-primary"})]})}function S9(e,t){let a=e.node(t);if("path"in a&&kO.has(a.kind))return a.path;return Yt(a)?a.title:a.name}function L9({card:e,section:t}){let a=q(),{name:o}=a.node(t),r=[...a.descendants(t)].filter((i)=>e.kinds.has(a.node(i).kind)).map((i)=>({ref:i,depth:a.ancestors(i).length})).sort((i,s)=>i.depth-s.depth),n=\`overview-\${e.slug}\`;return S("section",{"aria-labelledby":n,className:"min-w-0 overflow-hidden rounded-xl border bg-card text-card-foreground shadow-sm",children:[S(ie,{node:t,className:"flex items-center gap-3 bg-primary px-5 py-4 text-primary-foreground outline-hidden transition-colors hover:bg-primary/90 focus-visible:ring-3 focus-visible:ring-ring/50",children:[c(Za,{kind:"section",section:e.slug,className:"size-6"}),c("h2",{id:n,className:"font-bold text-xl tracking-tight",children:o}),S("span",{className:"ml-auto text-right text-sm leading-tight",children:[c("span",{className:"block font-bold text-2xl tabular-nums",children:(e.headline?.(a,t)??r.length).toLocaleString()}),e.unit(r.length,a,t)]})]}),S("div",{className:"px-5 py-4",children:[r.length===0?c("p",{className:"text-muted-foreground text-sm",children:e.empty}):c("ul",{children:r.slice(0,KL).map(({ref:i})=>c("li",{children:c(ie,{node:i,className:kO.has(a.node(i).kind)?\`\${bO} font-mono text-[0.8125rem]\`:bO,children:S9(a,i)})},i))}),r.length>KL&&S(ie,{node:t,className:"mt-2 inline-block font-medium text-primary text-sm underline decoration-primary/40 underline-offset-4 hover:decoration-primary",children:[r.length-KL," more"]})]})]})}var Cg=U(V(),1);var AO=U(V(),1);var C9={system:_d,light:Md,dark:Td};function RO({className:e}){let t=Xe(De,(r)=>r.colorMode),a=du[(du.indexOf(t)+1)%du.length]??"system",o=C9[t];return c(vt,{variant:"ghost",size:"icon",className:e,"aria-label":\`Color mode: \${t}. Switch to \${a}.\`,title:\`Color mode: \${t}\`,onClick:()=>De.actions.setColorMode(a),children:c(o,{})})}var hr=U(V(),1);function bg({...e}){return c(eu.Root,{"data-slot":"collapsible",...e})}function Iu({...e}){return c(eu.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function wg({...e}){return c(eu.CollapsibleContent,{"data-slot":"collapsible-content",...e})}var jL="relative flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-sidebar-foreground/85 outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60 aria-[current=page]:bg-sidebar-accent aria-[current=page]:font-medium aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:before:absolute aria-[current=page]:before:inset-y-1 aria-[current=page]:before:left-0 aria-[current=page]:before:w-0.5 aria-[current=page]:before:rounded-full aria-[current=page]:before:bg-sidebar-primary",k9={skills:new Set(["skill"]),docs:new Set(["document","json","glossary","decisions","schema","api"]),code:new Set(["source"]),database:new Set(["table","query"]),tasks:new Set(["task"])};function _O(e,t){return e.children(t).filter((a)=>!ko(e.node(a).kind))}function I9(e,t){let a=t,o=e.node(t).name;while(e.node(a).kind==="folder"){let[r,...n]=_O(e,a);if(r===void 0||n.length>0||e.node(r).kind!=="folder")break;a=r,o=\`\${o}/\${e.node(r).name}\`}return{node:a,label:o}}function TO(){let e=q(),t=ct(),a=hr.useRef(null);return hr.useEffect(()=>{if(t===void 0)return;De.actions.reveal([...e.ancestors(t),t]);let o=requestAnimationFrame(()=>{a.current?.querySelector(\`[data-node="\${t}"]\`)?.scrollIntoView({block:"nearest"})});return()=>cancelAnimationFrame(o)},[e,t]),S("ul",{ref:a,className:"space-y-1",children:[e.sections.map(({slug:o,node:r})=>c(XL,{node:r},o)),_9.map((o)=>c(E9,{...o},o.kind))]})}function XL({node:e}){let t=q(),{node:a,label:o}=I9(t,e),r=t.node(a),n=_O(t,a),i=r.kind==="section"?r.slug:void 0,s=(d)=>S(ie,{node:a,"data-node":a,title:Yt(r)&&r.title!==r.name?r.title:void 0,className:P(jL,i&&"font-semibold text-sidebar-accent-foreground",Ta(r.kind)&&!Ho[r.kind].prose&&"font-mono text-[0.8125rem]"),children:[c(Za,{kind:r.kind,section:i,open:d,className:i?"text-sidebar-primary":"text-sidebar-foreground/60"}),c("span",{className:"truncate",children:o}),i&&c("span",{className:"ml-auto rounded-full bg-sidebar-accent px-1.5 text-sidebar-foreground text-xs tabular-nums",children:t.count(a,k9[i])})]});if(!i&&n.length===0)return c("li",{className:"flex items-center pl-5",children:s(!1)});let l=r.parent===null?null:t.node(r.parent),u=i!==void 0||ma(r.kind)||(r.kind==="folder"||r.kind==="package")&&l?.kind==="section";return c(R9,{node:a,defaultOpen:u,row:s,children:n.length===0?c("p",{className:"px-2 py-1 text-sidebar-foreground/60 text-xs",children:"Nothing found"}):c("ul",{className:"space-y-0.5",children:n.map((d)=>c(XL,{node:d},d))})})}function R9({node:e,defaultOpen:t,row:a,children:o}){let r=Xe(De,(n)=>n.expanded[e]??t);return c("li",{children:S(bg,{open:r,onOpenChange:(n)=>De.actions.setExpanded(e,n),children:[S("div",{className:"flex items-center",children:[c(Iu,{"aria-label":r?"Collapse":"Expand",className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-sidebar-foreground/70 outline-hidden hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:c(rs,{className:P("size-3.5 transition-transform",r&&"rotate-90")})}),a(r)]}),c(wg,{className:"ml-2 border-sidebar-border border-l pl-1.5",children:o})]})})}var _9=[{kind:"glossary",label:"Glossary",empty:"No glossary.md yet"},{kind:"decisions",label:"Decisions",empty:"No decisions.md yet"}];function T9(e){let t={name:"",files:[],folders:new Map};for(let{node:o,path:r}of e){let n=t;for(let i of r.split("/").slice(0,-1)){let s=n.folders.get(i);if(!s)s={name:i,files:[],folders:new Map},n.folders.set(i,s);n=s}n.files.push(o)}let a=(o)=>{for(let[i,s]of o.folders)o.folders.set(i,a(s));let[r,...n]=[...o.folders.values()];if(o.name&&r&&n.length===0&&o.files.length===0)return{...r,name:\`\${o.name}/\${r.name}\`};return o};return a(t)}function E9({kind:e,label:t,empty:a}){let o=q(),r=hr.useMemo(()=>{let l=[];for(let{node:u}of o.sections)for(let d of o.descendants(u)){let m=o.node(d);if(m.kind===e)l.push({node:d,path:m.path})}return l},[o,e]),n=hr.useMemo(()=>T9(r),[r]),[i,s]=hr.useState(!0);return c("li",{children:S(bg,{open:i,onOpenChange:s,children:[S("div",{className:"flex items-center",children:[c(Iu,{"aria-label":i?"Collapse":"Expand",className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-sidebar-foreground/70 outline-hidden hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:c(rs,{className:P("size-3.5 transition-transform",i&&"rotate-90")})}),S(Iu,{className:P(jL,"font-semibold text-sidebar-accent-foreground"),children:[c(Za,{kind:e,className:"text-sidebar-primary"}),c("span",{className:"truncate",children:t}),c("span",{className:"ml-auto rounded-full bg-sidebar-accent px-1.5 text-sidebar-foreground text-xs tabular-nums",children:r.length})]})]}),c(wg,{className:"ml-2 border-sidebar-border border-l pl-1.5",children:r.length===0?c("p",{className:"px-2 py-1 text-sidebar-foreground/60 text-xs",children:a}):c(EO,{folder:n})})]})})}function EO({folder:e}){return S("ul",{className:"space-y-0.5",children:[[...e.folders.values()].map((t)=>c(N9,{folder:t},t.name)),e.files.map((t)=>c(XL,{node:t},t))]})}function N9({folder:e}){let[t,a]=hr.useState(!0);return c("li",{children:S(bg,{open:t,onOpenChange:a,children:[S("div",{className:"flex items-center",children:[c(Iu,{"aria-label":t?"Collapse":"Expand",className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-sidebar-foreground/70 outline-hidden hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:c(rs,{className:P("size-3.5 transition-transform",t&&"rotate-90")})}),S(Iu,{className:jL,children:[c(Za,{kind:"folder",open:t,className:"text-sidebar-foreground/60"}),c("span",{className:"truncate",children:e.name})]})]}),c(wg,{className:"ml-2 border-sidebar-border border-l pl-1.5",children:c(EO,{folder:e})})]})})}function NO({className:e,children:t,...a}){return S(Qn.Root,{"data-slot":"scroll-area",className:P("relative",e),...a,children:[c(Qn.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 [&>div]:block!",children:t}),c(A9,{}),c(Qn.Corner,{})]})}function A9({className:e,orientation:t="vertical",...a}){return c(Qn.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:t,className:P("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:c(Qn.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var M9=/Mac|iPhone|iPad/.test(navigator.userAgent)?"\u2318K":"Ctrl K",Sg="flex h-9 w-full items-center gap-2 rounded-md px-3 text-sidebar-foreground/85 text-sm outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60 aria-[current=page]:bg-sidebar-accent aria-[current=page]:font-medium aria-[current=page]:text-sidebar-accent-foreground",D9=[{kind:"glossary",label:"Glossary",to:"/glossary"},{kind:"decisions",label:"Decisions",to:"/decisions"}];function YL({action:e}){let t=q(),{meta:a}=t,o=AO.useMemo(()=>{let r=t.sections.find(({slug:n})=>n==="tasks")?.node;return r===void 0||t.children(r).length===0?void 0:r},[t]);return S("div",{className:"flex h-full min-h-0 flex-col",children:[S("div",{className:"space-y-3 border-sidebar-border border-b p-4",children:[S("div",{className:"flex items-center gap-2",children:[c(rt,{to:"/",className:"min-w-0 flex-1 truncate rounded-sm font-bold text-lg text-sidebar-accent-foreground tracking-tight outline-hidden focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:a.title}),c(RO,{className:"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"}),e]}),S("button",{type:"button",onClick:()=>De.actions.setSearchOpen(!0),className:"flex h-9 w-full items-center gap-2 rounded-md border border-sidebar-border bg-sidebar-accent/50 px-3 text-sidebar-foreground/80 text-sm outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:[c(Hr,{className:"size-4 shrink-0"}),"Search",c("kbd",{className:"ml-auto rounded-sm border border-sidebar-border px-1.5 font-mono text-[0.6875rem]",children:M9})]}),S("ul",{className:"space-y-0.5",children:[c("li",{children:S(rt,{to:"/graph",className:Sg,children:[c(_o,{className:"size-4 shrink-0 text-sidebar-primary"}),"Graph"]})}),D9.map(({kind:r,label:n,to:i})=>c("li",{children:S(rt,{to:i,className:Sg,children:[c(Za,{kind:r,className:"text-sidebar-primary"}),n]})},r)),o!==void 0&&c("li",{children:S(ie,{node:o,className:Sg,children:[c(Za,{kind:"section",section:"tasks",className:"text-sidebar-primary"}),"Tasks"]})}),c("li",{children:S(rt,{to:"/guide",className:Sg,children:[c(Ua,{className:"size-4 shrink-0 text-sidebar-primary"}),"Guide"]})})]})]}),c(NO,{className:"min-h-0 flex-1",children:c("nav",{"aria-label":"Contents",className:"p-3",children:c(TO,{})})}),c("p",{className:"border-sidebar-border border-t px-4 py-2 text-sidebar-foreground/60 text-xs",children:a.generator})]})}var gr=U(V(),1);var MO=1,P9=0.9,O9=0.8,z9=0.17,WL=0.1,QL=0.999,B9=0.9999,F9=0.99,H9=/[\\\\\\/_+.#"@\\[\\(\\{&]/,U9=/[\\\\\\/_+.#"@\\[\\(\\{&]/g,G9=/[\\s-]/,PO=/[\\s-]/g;function JL(e,t,a,o,r,n,i){if(n===t.length)return r===e.length?MO:F9;var s=\`\${r},\${n}\`;if(i[s]!==void 0)return i[s];for(var l=o.charAt(n),u=a.indexOf(l,r),d=0,m,p,f,g;u>=0;)m=JL(e,t,a,o,u+1,n+1,i),m>d&&(u===r?m*=MO:H9.test(e.charAt(u-1))?(m*=O9,f=e.slice(r,u-1).match(U9),f&&r>0&&(m*=Math.pow(QL,f.length))):G9.test(e.charAt(u-1))?(m*=P9,g=e.slice(r,u-1).match(PO),g&&r>0&&(m*=Math.pow(QL,g.length))):(m*=z9,r>0&&(m*=Math.pow(QL,u-r))),e.charAt(u)!==t.charAt(n)&&(m*=B9)),(m<WL&&a.charAt(u-1)===o.charAt(n+1)||o.charAt(n+1)===o.charAt(n)&&a.charAt(u-1)!==o.charAt(n))&&(p=JL(e,t,a,o,u+1,n+2,i),p*WL>m&&(m=p*WL)),m>d&&(d=m),u=a.indexOf(l,u+1);return i[s]=d,d}function DO(e){return e.toLowerCase().replace(PO," ")}function OO(e,t,a){return e=a&&a.length>0?\`\${e+" "+a.join(" ")}\`:e,JL(e,t,DO(e),DO(t),0,0,{})}var K=U(V(),1);var Cf='[cmdk-group=""]',eC='[cmdk-group-items=""]',q9='[cmdk-group-heading=""]',BO='[cmdk-item=""]',zO=\`\${BO}:not([aria-disabled="true"])\`,tC="cmdk-item-select",Ru="data-value",$9=(e,t,a)=>OO(e,t,a),FO=K.createContext(void 0),kf=()=>K.useContext(FO),HO=K.createContext(void 0),aC=()=>K.useContext(HO),UO=K.createContext(void 0),GO=K.forwardRef((e,t)=>{let a=_u(()=>{var N,Z;return{search:"",value:(Z=(N=e.value)!=null?N:e.defaultValue)!=null?Z:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=_u(()=>new Set),r=_u(()=>new Map),n=_u(()=>new Map),i=_u(()=>new Set),s=qO(e),{label:l,children:u,value:d,onValueChange:m,filter:p,shouldFilter:f,loop:g,disablePointerSelection:y=!1,vimBindings:b=!0,...h}=e,x=Zt(),v=Zt(),w=Zt(),C=K.useRef(null),I=t7();ws(()=>{if(d!==void 0){let N=d.trim();a.current.value=N,L.emit()}},[d]),ws(()=>{I(6,z)},[]);let L=K.useMemo(()=>({subscribe:(N)=>(i.current.add(N),()=>i.current.delete(N)),snapshot:()=>a.current,setState:(N,Z,Q)=>{var H,J,oe,fe;if(!Object.is(a.current[N],Z)){if(a.current[N]=Z,N==="search")D(),T(),I(1,O);else if(N==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ne=document.getElementById(w);ne?ne.focus():(H=document.getElementById(x))==null||H.focus()}if(I(7,()=>{var ne;a.current.selectedItemId=(ne=R())==null?void 0:ne.id,L.emit()}),Q||I(5,z),((J=s.current)==null?void 0:J.value)!==void 0){let ne=Z!=null?Z:"";(fe=(oe=s.current).onValueChange)==null||fe.call(oe,ne);return}}L.emit()}},emit:()=>{i.current.forEach((N)=>N())}}),[]),k=K.useMemo(()=>({value:(N,Z,Q)=>{var H;Z!==((H=n.current.get(N))==null?void 0:H.value)&&(n.current.set(N,{value:Z,keywords:Q}),a.current.filtered.items.set(N,_(Z,Q)),I(2,()=>{T(),L.emit()}))},item:(N,Z)=>(o.current.add(N),Z&&(r.current.has(Z)?r.current.get(Z).add(N):r.current.set(Z,new Set([N]))),I(3,()=>{D(),T(),a.current.value||O(),L.emit()}),()=>{n.current.delete(N),o.current.delete(N),a.current.filtered.items.delete(N);let Q=R();I(4,()=>{D(),(Q==null?void 0:Q.getAttribute("id"))===N&&O(),L.emit()})}),group:(N)=>(r.current.has(N)||r.current.set(N,new Set),()=>{n.current.delete(N),r.current.delete(N)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:w,labelId:v,listInnerRef:C}),[]);function _(N,Z){var Q,H;let J=(H=(Q=s.current)==null?void 0:Q.filter)!=null?H:$9;return N?J(N,a.current.search,Z):0}function T(){if(!a.current.search||s.current.shouldFilter===!1)return;let N=a.current.filtered.items,Z=[];a.current.filtered.groups.forEach((H)=>{let J=r.current.get(H),oe=0;J.forEach((fe)=>{let ne=N.get(fe);oe=Math.max(ne,oe)}),Z.push([H,oe])});let Q=C.current;A().sort((H,J)=>{var oe,fe;let ne=H.getAttribute("id"),Ka=J.getAttribute("id");return((oe=N.get(Ka))!=null?oe:0)-((fe=N.get(ne))!=null?fe:0)}).forEach((H)=>{let J=H.closest(eC);J?J.appendChild(H.parentElement===J?H:H.closest(\`\${eC} > *\`)):Q.appendChild(H.parentElement===Q?H:H.closest(\`\${eC} > *\`))}),Z.sort((H,J)=>J[1]-H[1]).forEach((H)=>{var J;let oe=(J=C.current)==null?void 0:J.querySelector(\`\${Cf}[\${Ru}="\${encodeURIComponent(H[0])}"]\`);oe==null||oe.parentElement.appendChild(oe)})}function O(){let N=A().find((Q)=>Q.getAttribute("aria-disabled")!=="true"),Z=N==null?void 0:N.getAttribute(Ru);L.setState("value",Z||void 0)}function D(){var N,Z,Q,H;if(!a.current.search||s.current.shouldFilter===!1){a.current.filtered.count=o.current.size;return}a.current.filtered.groups=new Set;let J=0;for(let oe of o.current){let fe=(Z=(N=n.current.get(oe))==null?void 0:N.value)!=null?Z:"",ne=(H=(Q=n.current.get(oe))==null?void 0:Q.keywords)!=null?H:[],Ka=_(fe,ne);a.current.filtered.items.set(oe,Ka),Ka>0&&J++}for(let[oe,fe]of r.current)for(let ne of fe)if(a.current.filtered.items.get(ne)>0){a.current.filtered.groups.add(oe);break}a.current.filtered.count=J}function z(){var N,Z,Q;let H=R();H&&(((N=H.parentElement)==null?void 0:N.firstChild)===H&&((Q=(Z=H.closest(Cf))==null?void 0:Z.querySelector(q9))==null||Q.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function R(){var N;return(N=C.current)==null?void 0:N.querySelector(\`\${BO}[aria-selected="true"]\`)}function A(){var N;return Array.from(((N=C.current)==null?void 0:N.querySelectorAll(zO))||[])}function E(N){let Z=A()[N];Z&&L.setState("value",Z.getAttribute(Ru))}function B(N){var Z;let Q=R(),H=A(),J=H.findIndex((fe)=>fe===Q),oe=H[J+N];(Z=s.current)!=null&&Z.loop&&(oe=J+N<0?H[H.length-1]:J+N===H.length?H[0]:H[J+N]),oe&&L.setState("value",oe.getAttribute(Ru))}function X(N){let Z=R(),Q=Z==null?void 0:Z.closest(Cf),H;for(;Q&&!H;)Q=N>0?J9(Q,Cf):e7(Q,Cf),H=Q==null?void 0:Q.querySelector(zO);H?L.setState("value",H.getAttribute(Ru)):B(N)}let ee=()=>E(A().length-1),F=(N)=>{N.preventDefault(),N.metaKey?ee():N.altKey?X(1):B(1)},ce=(N)=>{N.preventDefault(),N.metaKey?E(0):N.altKey?X(-1):B(-1)};return K.createElement(se.div,{ref:t,tabIndex:-1,...h,"cmdk-root":"",onKeyDown:(N)=>{var Z;(Z=h.onKeyDown)==null||Z.call(h,N);let Q=N.nativeEvent.isComposing||N.keyCode===229;if(!(N.defaultPrevented||Q))switch(N.key){case"n":case"j":{b&&N.ctrlKey&&F(N);break}case"ArrowDown":{F(N);break}case"p":case"k":{b&&N.ctrlKey&&ce(N);break}case"ArrowUp":{ce(N);break}case"Home":{N.preventDefault(),E(0);break}case"End":{N.preventDefault(),ee();break}case"Enter":{N.preventDefault();let H=R();if(H){let J=new Event(tC);H.dispatchEvent(J)}}}}},K.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:o7},l),Lg(e,(N)=>K.createElement(HO.Provider,{value:L},K.createElement(FO.Provider,{value:k},N))))}),V9=K.forwardRef((e,t)=>{var a,o;let r=Zt(),n=K.useRef(null),i=K.useContext(UO),s=kf(),l=qO(e),u=(o=(a=l.current)==null?void 0:a.forceMount)!=null?o:i==null?void 0:i.forceMount;ws(()=>{if(!u)return s.item(r,i==null?void 0:i.id)},[u]);let d=$O(r,n,[e.value,e.children,n],e.keywords),m=aC(),p=si((I)=>I.value&&I.value===d.current),f=si((I)=>u||s.filter()===!1?!0:I.search?I.filtered.items.get(r)>0:!0);K.useEffect(()=>{let I=n.current;if(!(!I||e.disabled))return I.addEventListener(tC,g),()=>I.removeEventListener(tC,g)},[f,e.onSelect,e.disabled]);function g(){var I,L;y(),(L=(I=l.current).onSelect)==null||L.call(I,d.current)}function y(){m.setState("value",d.current,!0)}if(!f)return null;let{disabled:b,value:h,onSelect:x,forceMount:v,keywords:w,...C}=e;return K.createElement(se.div,{ref:Wn(n,t),...C,id:r,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||s.getDisablePointerSelection()?void 0:y,onClick:b?void 0:g},e.children)}),Z9=K.forwardRef((e,t)=>{let{heading:a,children:o,forceMount:r,...n}=e,i=Zt(),s=K.useRef(null),l=K.useRef(null),u=Zt(),d=kf(),m=si((f)=>r||d.filter()===!1?!0:f.search?f.filtered.groups.has(i):!0);ws(()=>d.group(i),[]),$O(i,s,[e.value,e.heading,l]);let p=K.useMemo(()=>({id:i,forceMount:r}),[r]);return K.createElement(se.div,{ref:Wn(s,t),...n,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},a&&K.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},a),Lg(e,(f)=>K.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?u:void 0},K.createElement(UO.Provider,{value:p},f))))}),K9=K.forwardRef((e,t)=>{let{alwaysRender:a,...o}=e,r=K.useRef(null),n=si((i)=>!i.search);return!a&&!n?null:K.createElement(se.div,{ref:Wn(r,t),...o,"cmdk-separator":"",role:"separator"})}),j9=K.forwardRef((e,t)=>{let{onValueChange:a,...o}=e,r=e.value!=null,n=aC(),i=si((u)=>u.search),s=si((u)=>u.selectedItemId),l=kf();return K.useEffect(()=>{e.value!=null&&n.setState("search",e.value)},[e.value]),K.createElement(se.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:r?e.value:i,onChange:(u)=>{r||n.setState("search",u.target.value),a==null||a(u.target.value)}})}),X9=K.forwardRef((e,t)=>{let{children:a,label:o="Suggestions",...r}=e,n=K.useRef(null),i=K.useRef(null),s=si((u)=>u.selectedItemId),l=kf();return K.useEffect(()=>{if(i.current&&n.current){let u=i.current,d=n.current,m,p=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let f=u.offsetHeight;d.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return p.observe(u),()=>{cancelAnimationFrame(m),p.unobserve(u)}}},[]),K.createElement(se.div,{ref:Wn(n,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":o,id:l.listId},Lg(e,(u)=>K.createElement("div",{ref:Wn(i,l.listInnerRef),"cmdk-list-sizer":""},u)))}),Y9=K.forwardRef((e,t)=>{let{open:a,onOpenChange:o,overlayClassName:r,contentClassName:n,container:i,...s}=e;return K.createElement(xw,{open:a,onOpenChange:o},K.createElement(vw,{container:i},K.createElement(bw,{"cmdk-overlay":"",className:r}),K.createElement(ww,{"aria-label":e.label,"cmdk-dialog":"",className:n},K.createElement(GO,{ref:t,...s}))))}),W9=K.forwardRef((e,t)=>si((a)=>a.filtered.count===0)?K.createElement(se.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Q9=K.forwardRef((e,t)=>{let{progress:a,children:o,label:r="Loading...",...n}=e;return K.createElement(se.div,{ref:t,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Lg(e,(i)=>K.createElement("div",{"aria-hidden":!0},i)))}),Ss=Object.assign(GO,{List:X9,Item:V9,Input:j9,Group:Z9,Separator:K9,Dialog:Y9,Empty:W9,Loading:Q9});function J9(e,t){let a=e.nextElementSibling;for(;a;){if(a.matches(t))return a;a=a.nextElementSibling}}function e7(e,t){let a=e.previousElementSibling;for(;a;){if(a.matches(t))return a;a=a.previousElementSibling}}function qO(e){let t=K.useRef(e);return ws(()=>{t.current=e}),t}var ws=typeof window>"u"?K.useEffect:K.useLayoutEffect;function _u(e){let t=K.useRef();return t.current===void 0&&(t.current=e()),t}function si(e){let t=aC(),a=()=>e(t.snapshot());return K.useSyncExternalStore(t.subscribe,a,a)}function $O(e,t,a,o=[]){let r=K.useRef(),n=kf();return ws(()=>{var i;let s=(()=>{var u;for(let d of a){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():r.current}})(),l=o.map((u)=>u.trim());n.value(e,s,l),(i=t.current)==null||i.setAttribute(Ru,s),r.current=s}),r}var t7=()=>{let[e,t]=K.useState(),a=_u(()=>new Map);return ws(()=>{a.current.forEach((o)=>o()),a.current=new Map},[e]),(o,r)=>{a.current.set(o,r),t({})}};function a7(e){let t=e.type;return typeof t=="function"?t(e.props):("render"in t)?t.render(e.props):e}function Lg({asChild:e,children:t},a){return e&&K.isValidElement(t)?K.cloneElement(a7(t),{ref:t.ref},a(t.props.children)):a(t)}var o7={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function oC({...e}){return c(pt.Root,{"data-slot":"dialog",...e})}function r7({...e}){return c(pt.Portal,{"data-slot":"dialog-portal",...e})}function n7({className:e,...t}){return c(pt.Overlay,{"data-slot":"dialog-overlay",className:P("fixed inset-0 z-50 bg-foreground/40 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function rC({className:e,children:t,showCloseButton:a=!0,...o}){return S(r7,{"data-slot":"dialog-portal",children:[c(n7,{}),S(pt.Content,{"data-slot":"dialog-content",className:P("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-popover p-6 text-popover-foreground shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...o,children:[t,a&&S(pt.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 outline-hidden transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c(To,{}),c("span",{className:"sr-only",children:"Close"})]})]})]})}function nC({className:e,...t}){return c("div",{"data-slot":"dialog-header",className:P("flex flex-col gap-2 text-center sm:text-left",e),...t})}function iC({className:e,...t}){return c(pt.Title,{"data-slot":"dialog-title",className:P("text-lg leading-none font-semibold",e),...t})}function sC({className:e,...t}){return c(pt.Description,{"data-slot":"dialog-description",className:P("text-sm text-muted-foreground",e),...t})}function VO({className:e,...t}){return c(Ss,{"data-slot":"command",className:P("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})}function ZO({className:e,...t}){return S("div",{"data-slot":"command-input-wrapper",className:"flex h-12 items-center gap-2 border-b px-3",children:[c(Hr,{className:"size-4 shrink-0 opacity-50"}),c(Ss.Input,{"data-slot":"command-input",className:P("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function KO({className:e,...t}){return c(Ss.List,{"data-slot":"command-list",className:P("max-h-[min(24rem,60vh)] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function jO({...e}){return c(Ss.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm text-muted-foreground",...e})}function lC({className:e,...t}){return c(Ss.Group,{"data-slot":"command-group",className:P("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function uC({className:e,...t}){return c(Ss.Item,{"data-slot":"command-item",className:P("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}var i7=40;function s7(e){return e instanceof HTMLElement&&(e.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(e.tagName))}function XO({entry:e,score:t}){return S(he,{children:[c(Za,{kind:e.kind}),c("span",{className:"truncate font-medium",children:e.title}),c("span",{className:"ml-auto max-w-[50%] truncate text-muted-foreground text-xs",children:e.detail}),t!==void 0&&S("span",{className:"shrink-0 text-muted-foreground text-xs tabular-nums",children:[Math.round(t*100),"%"]})]})}function YO(){let e=q(),t=xe(),a=Xe(De,(p)=>p.searchOpen),[o,r]=gr.useState(""),n=gr.useMemo(()=>S0(e).filter((p)=>!p.member),[e]),i=gr.useMemo(()=>L0(n,o,i7).map((p)=>p.entry),[n,o]),s=gr.useMemo(()=>[...new Set(i.map((p)=>p.group))],[i]),l=gr.useMemo(()=>new Map(n.map((p)=>[p.node,p])),[n]),u=gr.useMemo(()=>{let p=new Set(i.map((f)=>f.node));return C0(e,o,p).flatMap(({node:f,score:g})=>{let y=l.get(f);return y?[{entry:y,score:g}]:[]})},[e,o,i,l]),d=I0(e);gr.useEffect(()=>{let p=(f)=>{if(!(f.key.toLowerCase()==="k"&&(f.metaKey||f.ctrlKey)||f.key==="/"&&!s7(f.target)))return;f.preventDefault(),De.actions.setSearchOpen(!De.get().searchOpen)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[]);let m=(p)=>{De.actions.setSearchOpen(!1),r(""),t.navigate({href:pp(e.route(p.node)).slice(1)})};return c(oC,{open:a,onOpenChange:De.actions.setSearchOpen,children:S(rC,{showCloseButton:!1,className:"top-[20%] translate-y-0 gap-0 overflow-hidden p-0 sm:max-w-xl",children:[S(nC,{className:"sr-only",children:[c(iC,{children:"Search"}),S(sC,{children:["Search skills, docs, code and the database by name",d?" or by meaning":"","."]})]}),S(VO,{shouldFilter:!1,children:[c(ZO,{value:o,onValueChange:r,placeholder:d?"Search by name or by meaning":"Search skills, docs, code and the database"}),S(KO,{children:[o.trim().length>0&&S(jO,{children:['Nothing matches "',o.trim(),'".']}),s.map((p)=>c(lC,{heading:p,children:i.filter((f)=>f.group===p).map((f)=>c(uC,{value:String(f.node),onSelect:()=>m(f),children:c(XO,{entry:f})},f.node))},p)),u.length>0&&c(lC,{heading:"Similar in meaning",children:u.map(({entry:p,score:f})=>c(uC,{value:\`similar-\${p.node}\`,onSelect:()=>m(p),children:c(XO,{entry:p,score:f})},p.node))})]})]})]})})}function WO({...e}){return c(pt.Root,{"data-slot":"sheet",...e})}function QO({...e}){return c(pt.Close,{"data-slot":"sheet-close",...e})}function l7({...e}){return c(pt.Portal,{"data-slot":"sheet-portal",...e})}function u7({className:e,...t}){return c(pt.Overlay,{"data-slot":"sheet-overlay",className:P("fixed inset-0 z-50 bg-foreground/40 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function JO({className:e,children:t,side:a="left",showCloseButton:o=!0,...r}){return S(l7,{children:[c(u7,{}),S(pt.Content,{"data-slot":"sheet-content",className:P("fixed z-50 flex flex-col bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-300",a==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",a==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",a==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",a==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...r,children:[t,o&&S(pt.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 outline-hidden transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none",children:[c(To,{className:"size-4"}),c("span",{className:"sr-only",children:"Close"})]})]})]})}function ez({className:e,...t}){return c("div",{"data-slot":"sheet-header",className:P("flex flex-col gap-1.5 p-4",e),...t})}function tz({className:e,...t}){return c(pt.Title,{"data-slot":"sheet-title",className:P("font-semibold text-foreground",e),...t})}function az({className:e,...t}){return c(pt.Description,{"data-slot":"sheet-description",className:P("text-sm text-muted-foreground",e),...t})}var oz="analyze-content",cC="flex size-9 shrink-0 items-center justify-center rounded-md text-sidebar-foreground outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60";function rz(){let{meta:e}=q(),[t,a]=Cg.useState(!1),o=Vu({select:(r)=>r.href});return Cg.useEffect(()=>a(!1),[o]),S("div",{className:"flex min-h-dvh bg-background text-foreground",children:[c("button",{type:"button",onClick:()=>document.getElementById(oz)?.focus(),className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:rounded-md focus:bg-primary focus:px-3 focus:py-2 focus:text-primary-foreground focus:text-sm",children:"Skip to content"}),c("aside",{className:"sticky top-0 hidden h-dvh w-80 shrink-0 bg-sidebar text-sidebar-foreground lg:block",children:c(YL,{})}),S("div",{className:"min-w-0 flex-1",children:[S("header",{className:"sticky top-0 z-30 flex h-14 items-center gap-2 bg-sidebar px-3 text-sidebar-foreground lg:hidden",children:[c("button",{type:"button","aria-label":"Open navigation",className:cC,onClick:()=>a(!0),children:c(Id,{className:"size-5"})}),c(rt,{to:"/",className:"min-w-0 flex-1 truncate font-bold text-sidebar-accent-foreground tracking-tight",children:e.title}),c("button",{type:"button","aria-label":"Search",className:cC,onClick:()=>De.actions.setSearchOpen(!0),children:c(Hr,{className:"size-5"})})]}),c("div",{id:oz,tabIndex:-1,className:"outline-hidden",children:c(lp,{})})]}),c(WO,{open:t,onOpenChange:a,children:S(JO,{showCloseButton:!1,className:"border-sidebar-border bg-sidebar text-sidebar-foreground",children:[S(ez,{className:"sr-only",children:[c(tz,{children:"Navigation"}),c(az,{children:"Skills, docs, code and the database as a file tree."})]}),c(YL,{action:c(QO,{"aria-label":"Close navigation",className:cC,children:c(To,{className:"size-5"})})})]})}),c(YO,{})]})}function dC(){return S(Ul,{title:"This page is not in the documentation",children:[c("p",{children:"The link may point to a file that was renamed or left out of the last run."}),c("p",{className:"mt-4",children:c(rt,{to:"/",className:"font-medium text-primary underline underline-offset-4",children:"Go to the overview"})})]})}var Ls=Iy()({component:rz,notFoundComponent:dC}),c7=cn({getParentRoute:()=>Ls,path:"/",component:IO}),d7=cn({getParentRoute:()=>Ls,path:"graph",component:wP}),f7=cn({getParentRoute:()=>Ls,path:"guide",component:DP}),p7=cn({getParentRoute:()=>Ls,path:"glossary",component:()=>c(Zw,{kind:"glossary"})}),m7=cn({getParentRoute:()=>Ls,path:"decisions",component:()=>c(Zw,{kind:"decisions"})}),h7=cn({getParentRoute:()=>Ls,path:"$",component:vO,loader:({context:e,params:t})=>{let a=e.graph.at(t._splat??"");if(a===void 0)throw on();return a}}),g7=Ls.addChildren([c7,d7,f7,p7,m7,h7]);function nz(e){return Ey({routeTree:g7,history:id?jg({initialEntries:["/"]}):Kg(),context:{graph:e},scrollRestoration:!0,defaultNotFoundComponent:dC})}function y7(){let e=document.getElementById(lx);if(!e)throw Error(\`Missing #\${lx} element\`);UM();try{let t=nz(new eh(wE()));sz.createRoot(e).render(c(iz.StrictMode,{children:c(My,{router:t})}))}catch(t){e.textContent=t instanceof Error?t.message:String(t)}}y7();
7575
+ \`)})}return[{ref:i,name:l.name,description:Io(l.descriptionHtml),columns:m,indexes:l.indexes,options:l.options}]}),keys:r}}var at={ROW:18,HEAD:24,SUMMARY:18,PAD:8,GAP_X:140,GAP_Y:44,MARGIN:40,STUB_FROM:22,STUB_TO:16,MIN_WIDTH:250,MAX_WIDTH:420,LOOP_ROOM:90};function Lf(e){return Math.round(e*10)/10}function OZ(e){let t=at.MIN_WIDTH;for(let a of e.tables){t=Math.max(t,a.name.length*8+40);for(let o of a.columns)t=Math.max(t,o.name.length*7+o.type.length*6.5+96)}return Math.min(t,at.MAX_WIDTH)}function zZ(e){return e.columns.length+e.indexes.length+(e.options.length>0?1:0)}function BZ(e){let t=e.tables.map(()=>[]);for(let n of e.keys)if(n.from!==n.to)t[n.from]?.push(n.to);let a=e.tables.map(()=>0),o=e.tables.map(()=>"new"),r=(n)=>{if(o[n]==="done")return a[n]??0;if(o[n]==="open")return-1;o[n]="open";let i=0;for(let s of t[n]??[])i=Math.max(i,r(s)+1);return o[n]="done",a[n]=i,i};return e.tables.forEach((n,i)=>{r(i)}),a}function FZ(e,t){let a=Math.max(0,...t)+1,o=Array.from({length:a},()=>[]);t.forEach((d,m)=>{o[d]?.push(m)});let r=e.tables.map(()=>0),n=()=>{for(let d of o)d.forEach((m,p)=>{r[m]=p})};n();let i=(d,m)=>{for(let p of d){let f=o[p]??[],g=new Map(f.map((y)=>{let b=m(y),h=b.reduce((x,v)=>x+(r[v]??0),0)/Math.max(b.length,1);return[y,b.length>0?h:r[y]??0]}));f.sort((y,b)=>(g.get(y)??0)-(g.get(b)??0)||(r[y]??0)-(r[b]??0)),n()}},s=(d)=>e.keys.flatMap((m)=>m.from===d&&(t[m.to]??0)<(t[d]??0)?[m.to]:[]),l=(d)=>e.keys.flatMap((m)=>m.to===d&&(t[m.from]??0)>(t[d]??0)?[m.from]:[]),u=o.map((d,m)=>m);for(let d=0;d<2;d++)i(u,s),i([...u].reverse(),l);return r}function HZ(e,t,a,o){let r=e.tables.map(()=>[]),n=[];e.tables.forEach((p,f)=>{let g=null;for(let y of e.keys){if(y.from!==f||(t[y.to]??0)>=(t[f]??0))continue;if(g===null||(t[y.to]??0)>(t[g]??0))g=y.to}if(g===null)n.push(f);else r[g]?.push(f)});let i=(p,f)=>(t[p]??0)-(t[f]??0)||(a[p]??0)-(a[f]??0);n.sort(i);for(let p of r)p.sort(i);let s=(p,f,g,y)=>{let b=p.get(f);p.set(f,b?[Math.min(b[0],g),Math.max(b[1],y)]:[g,y])},l=(p)=>{let f=new Map,g=new Map,y=[],b=0;return p.forEach((h,x)=>{let v=u(h),w=x>0?b:0;for(let[C,[I]]of v.extent){let L=g.get(C);if(L)w=Math.max(w,L[1]+at.GAP_Y-I)}for(let[C,I]of v.top)f.set(C,I+w);for(let[C,[I,L]]of v.extent)s(g,C,I+w,L+w);y.push((f.get(h)??0)+(o[h]??0)/2),b=w}),{top:f,extent:g,centers:y}},u=(p)=>{let f=o[p]??0,g=t[p]??0,y=r[p]??[];if(y.length===0)return{top:new Map([[p,0]]),extent:new Map([[g,[0,f]]])};let b=l(y),h=(Math.min(...b.centers)+Math.max(...b.centers))/2-f/2;return b.top.set(p,h),s(b.extent,g,h,h+f),b},d=l(n),m=Math.min(0,...d.top.values());return e.tables.map((p,f)=>(d.top.get(f)??0)-m)}function XP(e){let t=OZ(e),a=Math.floor((t-20)/5.6),o=e.tables.map((b)=>{let[h=""]=b.description.split(/(?<=[.!?])\\s/,1);return h.length>a?\`\${h.slice(0,a-1).trimEnd()}\u2026\`:h}),r=o.map((b)=>at.HEAD+(b?at.SUMMARY:0)),n=e.tables.map((b,h)=>(r[h]??0)+zZ(b)*at.ROW+at.PAD),i=BZ(e),s=HZ(e,i,FZ(e,i),n),l=Math.max(0,...i),u=e.tables.map((b,h)=>({x:at.MARGIN+(i[h]??0)*(t+at.GAP_X),y:Lf(at.MARGIN+(s[h]??0)),width:t,height:n[h]??0,rowsTop:r[h]??0,summary:o[h]??""})),d=new Map;for(let b of e.keys)d.set(\`\${b.from}:\${b.to}\`,(d.get(\`\${b.from}:\${b.to}\`)??0)+1);let m=new Map,p=!1,f=e.keys.map((b)=>{let h=u[b.from],x=u[b.to],v=e.tables[b.from],w=e.tables[b.to];if(!h||!x||!v||!w)return{path:"",foot:"",bars:"",ring:null,rows:[]};let C=\`\${b.from}:\${b.to}\`,I=m.get(C)??0;m.set(C,I+1);let L=(I-((d.get(C)??1)-1)/2)*5,k=(H,J)=>H.columns.findIndex((oe)=>oe.name.toLowerCase()===J?.toLowerCase()),_=(H,J)=>J<0?H.y+at.HEAD/2:H.y+H.rowsTop+J*at.ROW+at.ROW/2,T=k(v,b.columns[0]),O=k(w,b.referencedColumns[0]),D=Lf(_(h,T)),z=Lf(_(x,O)+L),R=h.x===x.x;if(R&&(i[b.from]??0)===l)p=!0;let A=x.x<h.x?-1:1,E=R?1:-A,B=A<0?h.x:h.x+h.width,X=E>0?x.x+x.width:x.x,ee=B+A*at.STUB_FROM,F=X+E*at.STUB_TO,ce=R?36+Math.min(Math.abs(D-z),160)/4:Math.max(60,Math.abs(ee-F)*0.5),N=Lf(ee+A*ce),Z=Lf(F+E*ce),Q=[...b.columns.map((H)=>\`\${b.from}:\${k(v,H)}\`),...b.referencedColumns.map((H)=>\`\${b.to}:\${k(w,H)}\`)];return{path:\`M\${B},\${D} L\${ee},\${D} C\${N},\${D} \${Z},\${z} \${F},\${z} L\${X},\${z}\`,foot:\`M\${B+A*11},\${D} L\${B},\${D-5} M\${B+A*11},\${D} L\${B},\${D+5}\`,bars:\`M\${X+E*6},\${z-5} V\${z+5} M\${X+E*11},\${z-5} V\${z+5}\`,ring:b.nullable?{cx:B+A*16,cy:D}:null,rows:Q}}),g=at.MARGIN+(l+1)*t+l*at.GAP_X,y=Math.max(0,...u.map((b)=>b.y+b.height));return{width:g+at.MARGIN+(p?at.LOOP_ROOM:0),height:Math.ceil(y+at.MARGIN),boxes:u,edges:f}}var VL="schema-key",YP=22,UZ=new Set,eO="M9.5,9 H17.5 M12,9 V7.5 H15 V9 M10.5,9 L11,16.5 H16 L16.5,9";function WP(e){let t=e.closest('[data-slot="schema-window"]');if(!t)return"top";let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,0),n=Math.min(o.bottom,window.innerHeight);return a.top+a.height/2<(r+n)/2?"bottom":"top"}function GZ(e,t){if(e.source===t)return"source";if(e.blockers.includes(t))return"blocker";if(e.removed.includes(t))return"removed";return e.detached.includes(t)?"detached":null}function qZ(e,t,a){if(a===null)return null;let o=new Set,r=new Set,n=new Map;if("table"in a)o.add(a.table);return e.keys.forEach((i,s)=>{if(!("key"in a?a.key===s:i.from===a.table||i.to===a.table))return;r.add(s),o.add(i.from).add(i.to);for(let u of t.edges[s]?.rows??[]){let[d=0,m=-1]=u.split(":").map(Number),p=n.get(d)??new Set;p.add(m),n.set(d,p)}}),{tables:o,keys:r,rows:n}}function tO({model:e,layout:t,width:a,height:o,active:r,preview:n,onPreview:i}){let s=q(),l=xe(),[u,d]=Jr.useState(null),m=Jr.useMemo(()=>n?null:qZ(e,t,u),[e,t,u,n]),p=Jr.useCallback((f)=>{l.navigate({href:mp(s.route(f)).slice(1),replace:!0})},[s,l]);return S("svg",{role:"img","aria-label":\`Diagram of \${e.tables.length} tables and \${e.keys.length} foreign keys\`,width:a,height:o,viewBox:\`0 0 \${t.width} \${t.height}\`,className:"block font-sans",children:[c("defs",{children:S("symbol",{id:VL,viewBox:"0 0 12 12",children:[c("circle",{cx:"3.6",cy:"6",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.4"}),c("path",{d:"M6 6H11.2M9.2 6V8.4M11.2 6V7.6",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}),t.edges.map((f,g)=>{let y=e.keys[g];if(!y)return null;let b=n?.keys.get(g)??null,h=n?b?"plain":"dim":m===null?"plain":m.keys.has(g)?"lit":"dim";return c(VZ,{index:g,edge:f,foreignKey:y,state:h,effect:b,onHover:d},g)}),e.tables.map((f,g)=>{let y=t.boxes[g];if(!y)return null;let b=n?GZ(n,g):null,h=n?b?"plain":"dim":m===null?"plain":m.tables.has(g)?"lit":"dim";return c(KZ,{index:g,table:f,box:y,state:h,role:b,litRows:m?.rows.get(g)??UZ,active:f.ref===r,onHover:d,onOpen:p,onPreview:i},f.ref)})]})}var QP="fill-none stroke-[1.3]",$Z={cascade:"stroke-destructive",block:"stroke-status",detach:"stroke-foreground"},VZ=Jr.memo(function({index:t,edge:a,foreignKey:o,state:r,effect:n,onHover:i}){let s=r==="lit"||n!==null;return S("g",{"data-diagram-part":"key","data-state":r,"data-delete":n??void 0,"data-status":n==="block"?"warning":void 0,className:P("transition-opacity",n?$Z[n]:s?"stroke-primary":"stroke-muted-foreground",r==="dim"&&"opacity-15"),onMouseEnter:()=>i({key:t}),onMouseLeave:()=>i(null),children:[c("title",{children:o.hint}),c("path",{d:a.path,strokeDasharray:o.onDelete==="CASCADE"?"6 4":void 0,className:P("fill-none",s?"stroke-[2.2]":"stroke-[1.3] opacity-85")}),c("path",{d:a.path,className:"fill-none stroke-[12] stroke-transparent",pointerEvents:"stroke"}),c("path",{d:a.foot,className:QP}),c("path",{d:a.bars,className:QP}),a.ring&&c("circle",{cx:a.ring.cx,cy:a.ring.cy,r:"3.4",className:"fill-background stroke-[1.3]"})]})}),ZZ={source:"stroke-destructive stroke-[4]",removed:"stroke-destructive stroke-[2.5]",blocker:"stroke-status stroke-[2.5]",detached:"stroke-foreground stroke-[1.5]"},KZ=Jr.memo(function(t){let{index:a,table:o,box:r,state:n,role:i,litRows:s,active:l,onHover:u,onOpen:d,onPreview:m}=t,{width:p,height:f,rowsTop:g}=r,{HEAD:y,ROW:b}=at,h=(v)=>g+v*b,x=o.columns.length;return S("g",{role:"link",tabIndex:0,"aria-label":\`Table \${o.name}\`,"data-diagram-part":"table","data-kind":"table","data-table":o.name,"data-state":n,"data-active":l||void 0,"data-delete":i??void 0,"data-status":i==="blocker"?"warning":void 0,transform:\`translate(\${r.x},\${r.y})\`,className:P("cursor-pointer outline-hidden drop-shadow-sm transition-opacity [&:focus-visible>rect:first-of-type]:stroke-ring",n==="dim"&&"opacity-30"),onMouseEnter:()=>u({table:a}),onMouseLeave:()=>u(null),onClick:()=>d(o.ref),onKeyDown:(v)=>{if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),d(o.ref)},children:[c("rect",{width:p,height:f,rx:"4",className:P("fill-card stroke-border",l?"stroke-[2.5] stroke-ring":"stroke-1")}),c("path",{d:\`M0,\${y} V4 a4,4 0 0 1 4,-4 H\${p-4} a4,4 0 0 1 4,4 V\${y} Z\`,className:"fill-kind"}),c("text",{x:p/2,y:"17",textAnchor:"middle",className:"fill-kind-foreground font-bold text-[13px]",children:o.name}),S("g",{role:"button",tabIndex:0,"aria-label":\`Delete preview for \${o.name}\`,"aria-pressed":i==="source","data-diagram-part":"delete",className:"group/bin outline-hidden [&:focus-visible>rect]:stroke-ring",onClick:(v)=>{v.stopPropagation(),m(a,WP(v.currentTarget))},onKeyDown:(v)=>{if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),v.stopPropagation(),m(a,WP(v.currentTarget))},children:[c("title",{children:\`Delete preview: what goes when a row of \${o.name} is deleted\`}),c("rect",{x:"5",y:"4",width:"17",height:"16",rx:"4",className:P("stroke-2 stroke-transparent transition-colors",i==="source"?"fill-destructive":"fill-black/25 group-hover/bin:fill-black/45")}),c("path",{d:eO,strokeLinecap:"round",strokeLinejoin:"round",className:P("fill-none stroke-[1.2]",i==="source"?"stroke-destructive-foreground":"stroke-kind-foreground")})]}),o.description&&c("title",{children:o.description}),r.summary&&c("text",{x:"10",y:y+13,className:"fill-muted-foreground text-[10.5px] italic",children:r.summary}),o.columns.map((v,w)=>{let C=h(w),I=v.type.length>YP?\`\${v.type.slice(0,YP-1)}\u2026\`:v.type;return S("g",{"data-column":v.name,children:[c("title",{children:v.hint}),c("rect",{x:"1",y:C,width:p-2,height:b,className:P("fill-primary",s.has(w)?"opacity-25":"opacity-0")}),v.primaryKey&&c("use",{href:\`#\${VL}\`,x:"8",y:C+3,width:"12",height:"12",className:"text-chart-5"}),v.foreignKey&&c("use",{href:\`#\${VL}\`,x:v.primaryKey?22:8,y:C+3,width:"12",height:"12",className:"text-chart-3"}),c("text",{x:"40",y:C+13,className:"fill-foreground text-[12px]",children:v.name}),c("text",{x:p-34,y:C+13,textAnchor:"end",className:"fill-muted-foreground text-[11px] italic",children:I}),v.notNull&&c("text",{x:p-8,y:C+13,textAnchor:"end",className:"fill-foreground font-semibold text-[11px]",children:"NN"})]},v.name)}),o.indexes.map((v,w)=>{let C=h(x+w);return S("g",{children:[c("title",{children:\`\${v.unique?"Unique index":"Index"} \${v.name}\`}),c("text",{x:"10",y:C+13,className:"fill-muted-foreground font-semibold text-[10px]",children:v.unique?"UQ":"IX"}),S("text",{x:"40",y:C+13,className:"fill-muted-foreground font-mono text-[11px]",children:["(",v.columns.join(", "),")"]})]},v.name)}),o.options.length>0&&c("text",{x:"40",y:h(x+o.indexes.length)+13,className:"fill-muted-foreground text-[10.5px] italic",children:o.options.join(", ")}),i&&c("rect",{width:p,height:f,rx:"4",strokeDasharray:i==="blocker"?"7 4":void 0,pointerEvents:"none",className:P("fill-none",ZZ[i])})]})});function aO(){return S("ul",{"aria-label":"Legend",className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-muted-foreground text-xs",children:[S("li",{className:"flex items-center gap-1.5",children:[c(JP,{className:"text-chart-5"}),"primary key"]}),S("li",{className:"flex items-center gap-1.5",children:[c(JP,{className:"text-chart-3"}),"foreign key"]}),S("li",{className:"flex items-center gap-1.5",children:[c("b",{className:"font-semibold text-[0.6875rem] text-foreground",children:"NN"}),"not null"]}),S("li",{className:"flex items-center gap-1.5",children:[c("b",{className:"font-semibold text-[0.625rem]",children:"IX"}),"index"]}),S("li",{className:"flex items-center gap-1.5",children:[c("svg",{"aria-hidden":!0,width:"64",height:"16",viewBox:"0 0 64 16",children:c("path",{d:"M0,8 H64 M10,3 V13 M15,3 V13 M52,8 L64,3 M52,8 L64,13",className:"fill-none stroke-muted-foreground stroke-[1.3]"})}),"one to many"]}),S("li",{className:"flex items-center gap-1.5",children:[S("svg",{"aria-hidden":!0,width:"40",height:"16",viewBox:"24 0 40 16",children:[c("path",{d:"M24,8 H64 M52,8 L64,3 M52,8 L64,13",className:"fill-none stroke-muted-foreground stroke-[1.3]"}),c("circle",{cx:"46",cy:"8",r:"3.4",className:"fill-background stroke-[1.3] stroke-muted-foreground"})]}),"may be null"]}),S("li",{className:"flex items-center gap-1.5",children:[c("svg",{"aria-hidden":!0,width:"36",height:"16",viewBox:"0 0 36 16",children:c("path",{d:"M0,8 H36",strokeDasharray:"6 4",className:"fill-none stroke-muted-foreground stroke-[1.3]"})}),"on delete cascade"]}),S("li",{className:"flex items-center gap-1.5",children:[S("svg",{"aria-hidden":!0,width:"17",height:"16",viewBox:"5 4 17 16",children:[c("rect",{x:"5",y:"4",width:"17",height:"16",rx:"4",className:"fill-muted-foreground"}),c("path",{d:eO,strokeLinecap:"round",strokeLinejoin:"round",className:"fill-none stroke-[1.2] stroke-card"})]}),"delete preview"]})]})}function JP({className:e}){return S("svg",{"aria-hidden":!0,width:"14",height:"14",viewBox:"0 0 12 12",className:e,children:[c("circle",{cx:"3.6",cy:"6",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.4"}),c("path",{d:"M6 6H11.2M9.2 6V8.4M11.2 6V7.6",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}var ka=U(V(),1);var Cf=1,iO=0.1,jZ=0.5,oO=1.25,rO=48;function nO(e){return Math.min(Cf,Math.max(iO,e))}function sO(e){let{width:t,height:a,legend:o,focus:r=null,overlay:n,overlayEdge:i="top",children:s,className:l}=e,u=ka.useRef(null),[d,m]=ka.useState(Cf),p=ka.useRef({zoom:Cf,scroll:null}),f=ka.useCallback(()=>{let h=(u.current?.clientWidth??t)-2;return nO(h/t)},[t]),g=ka.useCallback((h,x,v)=>{let w=u.current,C=nO(h),I=p.current.zoom;if(!w||C===I)return;let L=w.getBoundingClientRect(),k=x===void 0?w.clientWidth/2:x-L.left,_=v===void 0?w.clientHeight/2:v-L.top,T=p.current.scroll??{left:w.scrollLeft,top:w.scrollTop};p.current={zoom:C,scroll:{left:(T.left+k)/I*C-k,top:(T.top+_)/I*C-_}},m(C)},[]);ka.useLayoutEffect(()=>{let h=Math.max(jZ,f());p.current={zoom:h,scroll:null},m(h)},[f]),ka.useLayoutEffect(()=>{let h=u.current,{scroll:x}=p.current;if(!h||!x)return;h.scrollLeft=x.left,h.scrollTop=x.top,p.current.scroll=null},[d]),ka.useEffect(()=>{let h=u.current;if(!h||!r)return;let x=requestAnimationFrame(()=>{let v=p.current.zoom,w=r.x*v,C=r.y*v;if(!(w>=h.scrollLeft&&C>=h.scrollTop&&w+r.width*v<=h.scrollLeft+h.clientWidth&&C+r.height*v<=h.scrollTop+h.clientHeight))h.scrollTo({left:w-rO,top:C-rO,behavior:"smooth"})});return()=>cancelAnimationFrame(x)},[r?.x,r?.y,r?.width,r?.height]),ka.useEffect(()=>{let h=u.current;if(!h)return;let x=new Map,v=null,w=null,C=()=>[...x.values()],I=()=>{let[z,R]=C();return z&&R?Math.hypot(z.x-R.x,z.y-R.y)||1:1},L=()=>{let[z,R]=C();return z&&R?{x:(z.x+R.x)/2,y:(z.y+R.y)/2}:{x:0,y:0}},k=(z)=>{v={...z,left:h.scrollLeft,top:h.scrollTop},h.dataset.panning=""},_=(z)=>{if(!z.ctrlKey&&!z.metaKey)return;z.preventDefault();let R=Math.abs(z.deltaY)>=50?0.0015:0.01;g(p.current.zoom*Math.exp(-z.deltaY*R),z.clientX,z.clientY)},T=(z)=>{let R=z.target instanceof Element&&z.target.closest("[data-diagram-part]")!==null;if(z.pointerType==="mouse"&&(z.button!==0||R))return;x.set(z.pointerId,{x:z.clientX,y:z.clientY});let[A]=C();if(x.size===1&&A)k(A);else if(x.size===2)v=null,w={distance:I(),zoom:p.current.zoom,...L()}},O=(z)=>{if(!x.has(z.pointerId))return;if(x.set(z.pointerId,{x:z.clientX,y:z.clientY}),w&&x.size===2){let R=L();g(w.zoom*I()/w.distance,R.x,R.y),w.x=R.x,w.y=R.y}else if(v)h.scrollLeft=v.left-(z.clientX-v.x),h.scrollTop=v.top-(z.clientY-v.y)},D=(z)=>{x.delete(z.pointerId),w=null;let[R]=C();if(R)k(R);else v=null,delete h.dataset.panning};return h.addEventListener("wheel",_,{passive:!1}),h.addEventListener("pointerdown",T),window.addEventListener("pointermove",O),window.addEventListener("pointerup",D),window.addEventListener("pointercancel",D),()=>{h.removeEventListener("wheel",_),h.removeEventListener("pointerdown",T),window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D)}},[g]);let y=d>=Cf-0.000001,b=d<=iO+0.000001;return S("div",{className:P("overflow-clip rounded-xl border bg-card text-card-foreground shadow-sm",l),children:[S("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 border-b bg-muted/60 px-3 py-2",children:[o,S("div",{className:"ml-auto flex items-center gap-1.5",children:[c(vt,{variant:"outline",size:"icon",className:"size-7","aria-label":"Zoom out",title:"Zoom out",disabled:b,onClick:()=>g(p.current.zoom/oO),children:c(ns,{})}),S("output",{"aria-label":"Zoom level",className:"w-11 text-center font-medium text-xs tabular-nums",children:[Math.round(d*100),"%"]}),c(vt,{variant:"outline",size:"icon",className:"size-7","aria-label":"Zoom in",title:"Zoom in",disabled:y,onClick:()=>g(p.current.zoom*oO),children:c(is,{})}),c(vt,{variant:"outline",size:"sm",className:"h-7 px-2.5 text-xs",onClick:()=>g(f()),children:"Fit width"}),c(vt,{variant:"outline",size:"sm",className:"h-7 px-2.5 text-xs",disabled:y,onClick:()=>g(Cf),children:"100%"})]})]}),S("div",{className:"relative",children:[n&&c("div",{className:P("pointer-events-none absolute inset-0 z-10 flex flex-col px-3 pt-3 pb-6 sm:px-6",i==="bottom"&&"justify-end"),children:c("div",{className:"sticky top-16 bottom-3 lg:top-3",children:n})}),c("div",{ref:u,"data-slot":"schema-window",className:"h-[78dvh] min-h-[420px] cursor-grab touch-none overflow-auto bg-muted/40 data-[panning]:cursor-grabbing data-[panning]:select-none",children:s({width:t*d,height:a*d})})]})]})}var lO="rounded-xs font-medium font-mono text-[0.8125rem] text-primary underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function uO({tables:e,headingId:t,headingClassName:a}){let o=q(),r=e.map((s)=>{let l=(u)=>[...new Set(o.edgesTo(s.ref).flatMap((d)=>d[1]===u?[d[0]]:[]))];return{...s,readBy:l("reads"),writtenBy:l("writes")}}),n=r.filter((s)=>s.readBy.length>0||s.writtenBy.length>0);if(n.length===0)return null;let i=r.filter((s)=>s.readBy.length===0&&s.writtenBy.length===0);return S("section",{"aria-labelledby":t,className:"mt-10 max-w-5xl space-y-3",children:[c("h2",{id:t,className:a,children:"Queries by table"}),c("div",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Table"}),c(tt,{className:"w-1/2",children:"Read by"}),c(tt,{className:"w-1/2",children:"Written by"})]})}),c(fr,{children:n.map((s)=>S(ua,{children:[c(it,{className:"whitespace-nowrap align-top",children:c(ie,{node:s.ref,className:lO,children:s.name})}),[s.readBy,s.writtenBy].map((l,u)=>c(it,{className:"min-w-40 align-top",children:c("span",{className:"flex flex-wrap gap-x-3 gap-y-1",children:l.map((d)=>c(nr,{node:d},d))})},u))]},s.ref))})]})}),i.length>0&&S("p",{className:"text-muted-foreground text-sm",children:["No catalog entry names"," ",i.map((s,l)=>S("span",{children:[l>0&&(l===i.length-1?" or ":", "),c(ie,{node:s.ref,className:lO,children:s.name})]},s.ref)),"."]})]})}function cO(e){if(e.onDelete==="CASCADE")return"cascade";if(e.onDelete==="SET DEFAULT")return"detach";return e.onDelete==="SET NULL"&&e.nullable?"detach":"block"}function dO(e,t){let a=new Set([t]),o=new Map;for(let s=[t];s.length>0;){let l=s.shift();e.keys.forEach((u,d)=>{if(u.to!==l||cO(u)!=="cascade")return;if(o.set(d,"cascade"),a.has(u.from))return;a.add(u.from),s.push(u.from)})}let r=new Set,n=new Set;e.keys.forEach((s,l)=>{let u=cO(s);if(u==="cascade"||!a.has(s.to))return;if(!(!a.has(s.from)||s.from===s.to)&&s.onDelete!=="RESTRICT")return;o.set(l,u),(u==="block"?n:r).add(s.from)});let i=(s)=>e.tables.flatMap((l,u)=>s.has(u)?[u]:[]);return a.delete(t),{source:t,removed:i(a),detached:i(r),blockers:i(n),keys:o}}var ZL="font-bold text-xl tracking-tight",XZ="rounded-xs font-medium font-mono text-[0.8125rem] text-primary underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50";function fO(e,t){return\`\${e} \${t}\${e===1?"":"s"}\`}function pO({node:e,database:t}){let a=q(),o=ct();Re(\`\${t.name} \xB7 \${a.meta.title}\`);let r=en.useMemo(()=>jP(a,e),[a,e]),n=en.useMemo(()=>XP(r),[r]),i=r.tables.findIndex((y)=>y.ref===o),s=n.boxes[i]??null,[l,u]=en.useState(null),d=r.tables.findIndex((y)=>y.ref===l?.table),m=en.useMemo(()=>d<0?null:dO(r,d),[r,d]),p=en.useCallback((y,b)=>{let h=r.tables[y]?.ref;u((x)=>h===void 0||x?.table===h?null:{table:h,edge:b})},[r]),f=en.useMemo(()=>r.tables.flatMap((y)=>{let b=a.node(y.ref),h=b.kind==="table"&&b.descriptionHtml?[b.descriptionHtml]:[],x=a.children(y.ref).flatMap((v)=>{let w=a.node(v);if(w.kind!=="field"||!w.descriptionHtml)return[];return[{table:y.ref,label:\`\${y.name}.\${w.name}\`,html:w.descriptionHtml}]});return[...h.map((v)=>({table:y.ref,label:y.name,html:v})),...x]}),[a,r]),g=r.tables.reduce((y,b)=>y+b.indexes.length,0);return S(Ge,{width:"full",children:[c(Je,{node:e}),S("header",{className:"mb-2 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c("h1",{className:"break-all font-bold font-mono text-3xl tracking-tight",children:t.name}),c(ye,{kind:"database"}),S("span",{className:"text-muted-foreground text-sm",children:[fO(r.tables.length,"table"),", ",fO(r.keys.length,"foreign key"),","," ",g===1?"1 index":\`\${g} indexes\`]})]}),c("p",{className:"mb-6 break-all font-mono text-muted-foreground text-xs",children:t.path}),c("div",{className:"mb-6 max-w-3xl empty:hidden",children:c(jt,{content:t.content,name:t.name})}),c(sO,{width:n.width,height:n.height,legend:c(aO,{}),focus:s,overlay:m&&c(KP,{model:r,plan:m,onClear:()=>u(null)}),overlayEdge:l?.edge,children:(y)=>c(tO,{model:r,layout:n,active:o,preview:m,onPreview:p,...y})}),c("p",{className:"mt-2 max-w-5xl text-muted-foreground text-sm",children:"Point at a table or a line to see what it is connected to. Press the bin on a table for a delete preview: every table that loses rows with a row of that table gets a red outline. Zoom with the buttons, or with Ctrl or \u2318 and the scroll wheel. Drag the background to move."}),f.length>0&&S("section",{"aria-labelledby":"database-notes",className:"mt-10 max-w-5xl space-y-3",children:[c("h2",{id:"database-notes",className:ZL,children:"Notes"}),c("div",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Table or column"}),c(tt,{className:"w-full",children:"Note"})]})}),c(fr,{children:f.map((y)=>S(ua,{children:[c(it,{className:"whitespace-nowrap align-top",children:c(ie,{node:y.table,className:XZ,children:y.label})}),c(it,{className:"min-w-48",children:c(ze,{compact:!0,html:y.html})})]},y.label))})]})})]}),c(uO,{tables:r.tables,headingId:"database-queries",headingClassName:ZL}),t.objects.length>0&&S("section",{"aria-labelledby":"database-objects",className:"mt-10 max-w-5xl space-y-4",children:[c("h2",{id:"database-objects",className:ZL,children:"Views and triggers"}),t.objects.map((y)=>S("article",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(na,{variant:"outline",className:"bg-background font-mono",children:y.kind}),c("h3",{className:"break-all font-bold font-mono text-base tracking-tight",children:y.name}),y.table&&S("span",{className:"text-muted-foreground text-sm",children:["on ",y.table]}),S("span",{className:"ml-auto whitespace-nowrap font-mono text-muted-foreground text-xs",children:["line ",y.line]})]}),S("div",{className:"space-y-3 border-t p-4",children:[y.descriptionHtml&&c(ze,{compact:!0,html:y.descriptionHtml}),c($r,{html:y.sqlHtml})]})]},\`\${y.kind} \${y.name}\`))]}),c("div",{className:"mt-10 max-w-5xl empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var YZ={folder:bd,package:Nd,skill:Fr,reference:Vl,agent:hd,hook:zd,schema:Ro,json:Ro,toml:Ro,yaml:Ro,asset:Kl,document:xd,source:yd,glossary:md,term:Bd,decisions:Md,decision:wd,api:Ad,operation:fd,definition:gd,database:Zl,table:Pd,catalog:Sd,query:Od,plan:kd,phase:_d,task:Cd},WZ={skills:Fr,docs:Vl,code:Yn,database:Zl,tasks:Ld};function Za({kind:e,section:t,open:a=!1,className:o}){if(ma(e))return c(jE,{kind:e,className:o});let r=(e==="section"?WZ[t??""]:e==="folder"&&a?vd:YZ[e])??Kl;return c(r,{"aria-hidden":!0,className:P("size-4 shrink-0",o)})}function Cu(e,t){return\`\${e} \${t}\${e===1?"":"s"}\`}function QZ(e,t){let a=e.node(t);if(a.kind==="glossary"||a.kind==="decisions")return Cu(e.children(t).length,a.kind==="glossary"?"term":"decision");if(a.kind==="database")return Cu(e.children(t).length,"table");if(a.kind==="plan"||a.kind==="phase"){let r=a.kind==="plan"?"phase":"task",n=e.children(t).filter((i)=>e.node(i).kind===r).length;return\`\${a.status}, \${Cu(n,r)}. \${a.summary}\`}if(a.kind==="catalog")return vg(e,t).join(", ");if(a.kind==="api"){let r=e.children(t).filter((n)=>e.node(n).kind==="operation").length;return[a.title,a.version,Cu(r,"operation")].filter(Boolean).join(", ")}if(Yt(a))return a.description||(a.title===a.name?"":a.title);if(a.kind==="source"){let r=[...e.descendants(t)].filter((n)=>ma(e.node(n).kind)).length;return r>0?\`\${a.language}, \${Cu(r,"symbol")}\`:a.language}let o=e.children(t).filter((r)=>!ko(e.node(r).kind)).length;return Cu(o,"item")}function ku({rows:e}){let t=q();return c("div",{className:"overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",children:S(cr,{children:[c(dr,{className:"bg-muted/60",children:S(ua,{children:[c(tt,{children:"Name"}),c(tt,{children:"Kind"}),c(tt,{className:"w-full",children:"About"})]})}),c(fr,{children:e.map(({node:a,label:o})=>{let{kind:r,name:n}=t.node(a);return S(ua,{children:[c(it,{children:S(ie,{node:a,className:"flex items-center gap-2 whitespace-nowrap rounded-xs font-medium font-mono text-[0.8125rem] text-primary underline decoration-primary/40 underline-offset-4 outline-hidden hover:decoration-primary focus-visible:ring-3 focus-visible:ring-ring/50",children:[c(Za,{kind:r,className:"text-muted-foreground"}),c("span",{children:o??n})]})}),c(it,{children:c(ye,{kind:r})}),c(it,{className:"min-w-48 text-muted-foreground",children:QZ(t,a)})]},a)})})]})})}function mO({node:e,file:t}){let a=q();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let{content:o}=t,r=o.format==="markdown",n=r&&o.html.includes("<h1"),i=a.route(e).path,s=t.kind==="skill"?[...a.descendants(e)].filter((l)=>{let{kind:u}=a.node(l);return u==="source"||Yt(a.node(l))}).map((l)=>({node:l,label:a.route(l).path.slice(i.length+1)})):[];return S(Ge,{aside:r?c(mt,{headings:o.headings}):void 0,width:r?"prose":"wide",children:[c(Je,{node:e}),t.kind==="skill"?S("dl",{className:"mb-8 grid grid-cols-[max-content_minmax(0,1fr)] gap-x-5 gap-y-2.5 rounded-lg border border-l-4 border-l-primary bg-card p-4 text-card-foreground text-sm leading-6 shadow-sm",children:[c("dt",{className:"font-mono text-muted-foreground",children:"name"}),c("dd",{className:"break-all font-mono font-semibold text-primary",children:t.name}),t.description&&S(he,{children:[c("dt",{className:"font-mono text-muted-foreground",children:"description"}),c("dd",{children:t.description})]}),c("dt",{className:"font-mono text-muted-foreground",children:"path"}),c("dd",{className:"break-all font-mono text-[0.8125rem] text-muted-foreground",children:t.path})]}):S("header",{className:"mb-6 space-y-2",children:[S("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:t.kind}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path})]}),t.description&&c("p",{className:"text-lg text-muted-foreground leading-7",children:t.description})]}),!n&&c("h1",{className:"mb-6 break-all font-bold text-3xl tracking-tight",children:t.title}),c(jt,{content:o,name:t.name}),s.length>0&&S("section",{"aria-labelledby":"skill-files",className:"mt-10 space-y-3",children:[c("h2",{id:"skill-files",className:"font-bold text-xl tracking-tight",children:"Files in this skill"}),c(ku,{rows:s})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var mr="font-mono text-foreground",JZ={skills:{title:"No skills found",help:S(he,{children:["A skill is a directory with a ",c("code",{className:mr,children:"SKILL.md"})," file. Add one to the repository, or point at a skills directory with ",c("code",{className:mr,children:"--skills"}),", then run the command again."]})},docs:{title:"No docs found",help:S(he,{children:["Docs are the markdown files of the repository. Add a"," ",c("code",{className:mr,children:"README.md"}),", or point at a docs directory with ",c("code",{className:mr,children:"--docs"}),", then run the command again."]})},code:{title:"No code found",help:"The repository holds no source file in a supported language, or every file was excluded."},database:{title:"No SQL files found",help:S(he,{children:["This section shows the ",c("code",{className:mr,children:".sql"})," files of the repository: a file that creates tables as a diagram of its schema, and every other file as an entry of a query catalog."]})},tasks:{title:"No tasks found",help:S(he,{children:["This section shows the plans, phases and tasks that task-manager keeps in the directory"," ",c("code",{className:mr,children:"skills.settings.filetreeRoot"})," of ",c("code",{className:mr,children:".g3n.config.json"})," ","names, ",c("code",{className:mr,children:"docs/task-manager"})," by default."]})}};function hO({node:e}){let t=q(),a=t.node(e),o=t.children(e).filter((r)=>!ko(t.node(r).kind));if(Re(\`\${a.name} \xB7 \${t.meta.title}\`),a.kind==="section"&&o.length===0){let{title:r,help:n}=JZ[a.slug];return c(Ul,{title:r,children:c("p",{children:n})})}return S(Ge,{width:"wide",children:[c(Je,{node:e}),c("h1",{className:"mb-6 break-all font-bold text-3xl tracking-tight",children:a.name}),a.kind==="package"&&S("div",{className:"mb-6 space-y-2",children:[S("div",{className:"flex flex-wrap items-center gap-2 text-muted-foreground text-sm",children:[c(na,{variant:"secondary",children:a.role}),c("code",{className:mr,children:a.packageName}),a.version!==null&&c("span",{children:a.version}),S("span",{children:["from ",c("code",{className:mr,children:a.manifest})]})]}),a.description&&c("p",{children:a.description})]}),c(ku,{rows:o.map((r)=>({node:r}))})]})}var e9={open:"off","in-progress":"info","in-review":"warning",completed:"success",blocked:"error"};function gO(e){return e9[e]}function bg({status:e,priority:t,extra:a=[]}){return S(he,{children:[c($a,{status:gO(e),children:e}),[\`\${t} priority\`,...a].map((o)=>c("span",{className:"font-mono text-muted-foreground text-xs",children:o},o))]})}function KL({node:e,file:t}){let a=t.content.format==="markdown"&&t.content.html.includes("<h1");return S(he,{children:[S("header",{className:"mb-6 space-y-2",children:[S("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:t.kind}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),c(bg,{status:t.status,priority:t.priority,extra:t.kind==="phase"&&t.parallel?["tasks run in parallel"]:[]})]}),c("p",{className:"text-lg text-muted-foreground leading-7",children:t.summary})]}),!a&&c("h1",{className:"mb-6 break-words font-bold text-3xl tracking-tight",children:t.title}),S("div",{className:"mb-6 space-y-4 empty:hidden",children:[c(ei,{node:e,kind:"depends",title:"Depends on"}),c(ei,{node:e,kind:"names",title:"Names"})]}),c(jt,{content:t.content,name:t.name})]})}function yO({node:e,file:t}){let a=q();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let o=a.children(e).filter((r)=>Yt(a.node(r)));return S(Ge,{aside:t.content.format==="markdown"?c(mt,{headings:t.content.headings}):void 0,children:[c(Je,{node:e}),c(KL,{node:e,file:t}),o.length>0&&S("section",{"aria-labelledby":"plan-phases",className:"mt-10 space-y-3",children:[c("h2",{id:"plan-phases",className:"font-bold text-xl tracking-tight",children:"Phases"}),c(ku,{rows:o.map((r)=>({node:r}))})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function xO({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=a.children(e).flatMap((i)=>{let s=a.node(i);return s.kind==="task"?[{ref:i,task:s}]:[]}),n=r.map(({task:i})=>({id:Ve("task",i.anchor),text:\`\${i.id} \${i.name}\`,depth:2}));return S(Ge,{aside:c(mt,{headings:n}),children:[c(Je,{node:e}),c(KL,{node:e,file:t}),S("section",{"aria-labelledby":"phase-tasks",className:"mt-10 space-y-4",children:[S("h2",{id:"phase-tasks",className:"font-bold text-xl tracking-tight",children:[r.length," ",r.length===1?"task":"tasks"]}),r.map(({ref:i,task:s})=>S(fu,{node:i,kind:"task",anchor:s.anchor,title:S(he,{children:[c("span",{className:"font-mono text-muted-foreground",children:s.id})," ",s.name]}),active:i===o,meta:c(bg,{status:s.status,priority:s.priority,extra:[\`package: \${s.package}\`,...s.complexity===null?[]:[\`complexity: \${s.complexity}\`]]}),children:[c("p",{className:"text-muted-foreground",children:s.summary}),s.html&&c(ze,{compact:!0,html:s.html}),c(ei,{node:i,kind:"depends",title:"Depends on"}),c(ei,{node:i,kind:"names",title:"Names"}),c(Le,{node:i,title:"Referenced by"}),c(pu,{node:i})]},i))]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}function vO({node:e,file:t}){let a=q(),o=ct();Re(\`\${t.title} \xB7 \${a.meta.title}\`);let r=a.children(e).flatMap((i)=>{let s=a.node(i);return s.kind==="definition"?[{ref:i,definition:s}]:[]}),n=[...r.map(({definition:i})=>({id:Ve("definition",i.anchor),text:i.name,depth:2})),{id:"schema-source",text:"Source",depth:2}];return S(Ge,{aside:c(mt,{headings:n}),width:"wide",children:[c(Je,{node:e}),c("header",{className:"mb-6 space-y-2",children:S("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[c(ye,{kind:"schema"}),c("span",{className:"break-all font-mono text-muted-foreground text-xs",children:t.path}),S("span",{className:"text-muted-foreground text-sm",children:[r.length," ",r.length===1?"definition":"definitions"]})]})}),c("h1",{className:"mb-6 break-words font-bold text-3xl tracking-tight",children:t.title}),c("div",{className:"space-y-5",children:r.map(({ref:i})=>c(yg,{definition:i,active:o},i))}),S("section",{"aria-labelledby":"schema-source",className:"mt-10 space-y-3",children:[c("h2",{id:"schema-source",className:"scroll-mt-20 font-bold text-xl tracking-tight lg:scroll-mt-6",children:"Source"}),c(jt,{content:t.content,name:t.name})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var t9={throws:"Throws",deprecated:"Deprecated",see:"See also",since:"Since",other:"Note"},a9={typeParam:"Type parameter"};function o9(e){if(e.kind!=="other"||!e.label)return t9[e.kind];return a9[e.label]??e.label.charAt(0).toUpperCase()+e.label.slice(1)}function r9(e){if(e==="enum")return"Members";return e==="interface"||e==="type"?"Properties":"Fields"}function jL({symbol:e,annotationLabel:t,active:a,depth:o=0}){let r=q(),n=r.node(e);if(!Ju(n))return null;let i=r.children(e).map((f)=>({ref:f,node:r.node(f)})),s=i.flatMap(({node:f})=>f.kind==="parameter"?[f]:[]),l=i.flatMap(({node:f})=>f.kind==="field"?[f]:[]),u=i.flatMap(({ref:f,node:g})=>Ju(g)?[f]:[]),d=r.edgesFrom(e).flatMap(([,f,g])=>f==="extends"?[g]:[]),m=o===0?"h2":"h3",p=n.tags.some((f)=>f.kind==="deprecated");return S("section",{id:Ve(n.kind,n.anchor),"data-kind":n.kind,"aria-label":\`\${n.kind} \${n.name}\`,className:P("scroll-mt-20 overflow-hidden rounded-lg border border-l-4 border-l-kind bg-card text-card-foreground shadow-sm lg:scroll-mt-6",e===a&&"ring-3 ring-ring/50"),children:[S("header",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 bg-muted/60 px-4 py-2.5",children:[c(ye,{kind:n.kind}),c(m,{className:P("min-w-0 font-bold font-mono tracking-tight",o===0?"text-lg":"text-base"),children:c(ie,{node:e,className:"break-all rounded-sm outline-hidden hover:underline hover:underline-offset-4 focus-visible:ring-3 focus-visible:ring-ring/50",children:n.name})}),n.modifiers.map((f)=>c(na,{variant:"outline",className:"bg-background font-mono font-normal",children:f},f)),p&&c($a,{status:"warning",children:"Deprecated"}),S("span",{className:"ml-auto flex items-center gap-1.5 whitespace-nowrap font-mono text-muted-foreground text-xs",children:["line ",n.line,c(co,{node:e,className:"-my-1 -mr-1.5"})]})]}),S("div",{className:"space-y-4 border-t p-4 empty:hidden",children:[n.annotations.length>0&&c(St,{title:t,children:c("ul",{className:"flex flex-wrap gap-1.5",children:n.annotations.map((f)=>c("li",{className:"min-w-0",children:c(mo,{value:f})},f))})}),n.signatureHtml&&c($r,{html:n.signatureHtml}),n.descriptionHtml&&c(ze,{compact:!0,html:n.descriptionHtml}),d.length>0&&c(St,{title:n.kind==="type"?"Made of":"Base types",children:c("ul",{className:"flex flex-wrap gap-1.5",children:d.map((f)=>c("li",{className:"min-w-0",children:c(mo,{value:{text:r.node(f).name,links:[[0,r.node(f).name.length,f]]}})},f))})}),s.length>0&&c(St,{title:"Parameters",children:c(pr,{rows:s,valueLabel:"Default"})}),n.returns&&c(St,{title:"Returns",children:S("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1 text-sm",children:[n.returns.type&&c(mo,{value:n.returns.type}),n.returns.descriptionHtml&&c(ze,{compact:!0,html:n.returns.descriptionHtml})]})}),l.length>0&&c(St,{title:r9(n.kind),children:c(pr,{rows:l,valueLabel:n.kind==="enum"?"Value":"Default"})}),n.tags.length>0&&c(n9,{tags:n.tags}),n.example&&c(St,{title:"Example",aside:n.example.origin==="documented"?c($a,{status:"success",title:"Taken from the doc comment",children:"Documented"}):c($a,{status:"info",title:"Built from the signature",children:"Generated"}),children:c($r,{html:n.example.html})}),c(Le,{node:e,title:"Used by"})]}),u.length>0&&c("div",{className:"space-y-3 border-t bg-muted/30 p-3 sm:p-4",children:u.map((f)=>c(jL,{symbol:f,annotationLabel:t,active:a,depth:o+1},f))})]})}function n9({tags:e}){return c("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-2 text-sm",children:e.map((t,a)=>S("div",{className:"col-span-2 grid grid-cols-subgrid",children:[c("dt",{className:"font-semibold leading-6",children:o9(t)}),S("dd",{className:"flex min-w-0 flex-wrap items-baseline gap-x-3 gap-y-1",children:[t.subject&&c(mo,{value:t.subject}),t.html&&c(ze,{compact:!0,html:t.html})]})]},a))})}function bO({node:e,source:t}){let a=q(),o=ct();Re(\`\${t.name} \xB7 \${a.meta.title}\`);let r=a.children(e).filter((i)=>ma(a.node(i).kind)),n=[...a.descendants(e)].filter((i)=>ma(a.node(i).kind)).length;return S(Ge,{width:"wide",children:[c(Je,{node:e}),S("header",{className:"mb-8 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c("h1",{className:"break-all font-bold font-mono text-3xl tracking-tight",children:t.name}),c(na,{children:t.language}),S("span",{className:"text-muted-foreground text-sm",children:[n," ",n===1?"symbol":"symbols"]})]}),c("div",{className:"space-y-5",children:r.map((i)=>c(jL,{symbol:i,annotationLabel:t.annotationLabel,active:o},i))}),t.content&&S("section",{"aria-labelledby":"source-text",className:"mt-10 space-y-3 first:mt-0",children:[c("h2",{id:"source-text",className:"font-bold text-xl tracking-tight",children:"Source"}),c(jt,{content:t.content,name:t.name})]}),c("div",{className:"mt-10 empty:hidden",children:c(Le,{node:e,title:"Referenced by"})})]})}var i9=$u("/$");function wO(){let e=q(),t=i9.useLoaderData(),a=e.node(t);if(a.kind==="source")return c(bO,{node:t,source:a});if(a.kind==="glossary")return c(eD,{node:t,file:a});if(a.kind==="decisions")return c(QM,{node:t,file:a});if(a.kind==="api")return c(GP,{node:t,api:a});if(a.kind==="database")return c(pO,{node:t,database:a});if(a.kind==="catalog")return c($P,{node:t,catalog:a});if(a.kind==="plan")return c(yO,{node:t,file:a});if(a.kind==="phase")return c(xO,{node:t,file:a});if(a.kind==="schema"&&e.children(t).some((o)=>e.node(o).kind==="definition"))return c(vO,{node:t,file:a});if(Yt(a))return c(mO,{node:t,file:a});return c(hO,{node:t})}var XL=8,SO="block truncate rounded-sm py-1 text-sm outline-hidden transition-colors hover:text-primary focus-visible:ring-3 focus-visible:ring-ring/50";function bs(e,t){return\`\${t}\${e===1?"":"s"}\`}var s9=new Set(lx),LO=new Set(["table"]),CO=new Set(["query"]),kO=new Set(["task"]),RO=new Set(["source","database","catalog"]),l9=[{slug:"skills",kinds:new Set(["skill"]),unit:(e)=>bs(e,"skill"),empty:"No SKILL.md files were found."},{slug:"docs",kinds:new Set(["document","json","glossary","decisions","schema","api"]),unit:(e)=>bs(e,"page"),empty:"No markdown, JSON, OpenAPI or JSON Schema files were found."},{slug:"code",kinds:new Set(["source"]),unit:(e,t,a)=>{let o=t.count(a,s9);return\`\${bs(e,"file")}, \${o.toLocaleString()} \${bs(o,"symbol")}\`},empty:"No source files in a supported language were found."},{slug:"database",kinds:new Set(["database","catalog"]),headline:(e,t)=>e.count(t,LO)+e.count(t,CO),unit:(e,t,a)=>{let o=t.count(a,LO),r=t.count(a,CO);return\`\${o.toLocaleString()} \${bs(o,"table")}, \${r.toLocaleString()} \${r===1?"query":"queries"}\`},empty:"No SQL files were found."},{slug:"tasks",kinds:new Set(["plan"]),headline:(e,t)=>e.count(t,kO),unit:(e,t,a)=>{let o=t.count(a,kO),r=[...t.descendants(a)].filter((n)=>{let i=t.node(n);return i.kind==="task"&&i.status==="completed"}).length;return\`\${bs(o,"task")}, \${r.toLocaleString()} completed, in \${e.toLocaleString()} \${bs(e,"plan")}\`},empty:"No task-manager plans were found."}];function _O(){let e=q(),{meta:t}=e;Re(t.title);let a=new Date(t.generatedAt).toLocaleDateString(void 0,{dateStyle:"long"}),o=new Set;for(let r of e.descendants(e.section("code"))){let n=e.node(r);if(n.kind==="source")o.add(n.language)}return S("main",{className:"w-full max-w-6xl px-4 py-10 sm:px-8 lg:px-10 lg:py-14",children:[c("h1",{className:"text-balance font-bold text-4xl tracking-tight sm:text-5xl",children:t.title}),S("p",{className:"mt-4 text-muted-foreground",children:["Generated on ",a," with ",t.generator,"."]}),c("div",{className:"mt-10 grid gap-5 md:grid-cols-2",children:l9.flatMap((r)=>{let n=e.sections.find(({slug:i})=>i===r.slug)?.node;return n===void 0?[]:[c(c9,{card:r,section:n},r.slug)]})}),S("div",{className:"mt-5 grid gap-5 md:grid-cols-2",children:[c(IO,{to:"/graph",icon:_o,title:"Graph",children:"Every file, class, function, term, decision, operation, table, query and task as one graph, with the references between them."}),c(IO,{to:"/guide",icon:Ua,title:"Guide",children:"How to read this site, how to query it from a terminal, and what to write in the repository so both show more."})]}),o.size>0&&c("ul",{"aria-label":"Languages in the code section",className:"mt-8 flex flex-wrap gap-2",children:[...o].sort().map((r)=>c("li",{className:"rounded-md border bg-card px-2.5 py-1 font-medium text-card-foreground text-xs shadow-xs",children:r},r))})]})}function IO({to:e,icon:t,title:a,children:o}){return S(rt,{to:e,className:"group flex items-center gap-3 rounded-xl border bg-card px-5 py-4 text-card-foreground shadow-sm outline-hidden transition-colors hover:border-primary/50 focus-visible:ring-3 focus-visible:ring-ring/50",children:[c(t,{className:"size-6 shrink-0 text-primary"}),S("span",{className:"min-w-0",children:[c("span",{className:"block font-bold text-lg tracking-tight",children:a}),c("span",{className:"block text-muted-foreground text-sm",children:o})]}),c(dd,{className:"ml-auto size-5 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-primary"})]})}function u9(e,t){let a=e.node(t);if("path"in a&&RO.has(a.kind))return a.path;return Yt(a)?a.title:a.name}function c9({card:e,section:t}){let a=q(),{name:o}=a.node(t),r=[...a.descendants(t)].filter((i)=>e.kinds.has(a.node(i).kind)).map((i)=>({ref:i,depth:a.ancestors(i).length})).sort((i,s)=>i.depth-s.depth),n=\`overview-\${e.slug}\`;return S("section",{"aria-labelledby":n,className:"min-w-0 overflow-hidden rounded-xl border bg-card text-card-foreground shadow-sm",children:[S(ie,{node:t,className:"flex items-center gap-3 bg-primary px-5 py-4 text-primary-foreground outline-hidden transition-colors hover:bg-primary/90 focus-visible:ring-3 focus-visible:ring-ring/50",children:[c(Za,{kind:"section",section:e.slug,className:"size-6"}),c("h2",{id:n,className:"font-bold text-xl tracking-tight",children:o}),S("span",{className:"ml-auto text-right text-sm leading-tight",children:[c("span",{className:"block font-bold text-2xl tabular-nums",children:(e.headline?.(a,t)??r.length).toLocaleString()}),e.unit(r.length,a,t)]})]}),S("div",{className:"px-5 py-4",children:[r.length===0?c("p",{className:"text-muted-foreground text-sm",children:e.empty}):c("ul",{children:r.slice(0,XL).map(({ref:i})=>c("li",{children:c(ie,{node:i,className:RO.has(a.node(i).kind)?\`\${SO} font-mono text-[0.8125rem]\`:SO,children:u9(a,i)})},i))}),r.length>XL&&S(ie,{node:t,className:"mt-2 inline-block font-medium text-primary text-sm underline decoration-primary/40 underline-offset-4 hover:decoration-primary",children:[r.length-XL," more"]})]})]})}var kg=U(V(),1);var DO=U(V(),1);var d9={system:Td,light:Dd,dark:Ed};function TO({className:e}){let t=Xe(De,(r)=>r.colorMode),a=du[(du.indexOf(t)+1)%du.length]??"system",o=d9[t];return c(vt,{variant:"ghost",size:"icon",className:e,"aria-label":\`Color mode: \${t}. Switch to \${a}.\`,title:\`Color mode: \${t}\`,onClick:()=>De.actions.setColorMode(a),children:c(o,{})})}var hr=U(V(),1);function wg({...e}){return c(eu.Root,{"data-slot":"collapsible",...e})}function Iu({...e}){return c(eu.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function Sg({...e}){return c(eu.CollapsibleContent,{"data-slot":"collapsible-content",...e})}var YL="relative flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-sidebar-foreground/85 outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60 aria-[current=page]:bg-sidebar-accent aria-[current=page]:font-medium aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:before:absolute aria-[current=page]:before:inset-y-1 aria-[current=page]:before:left-0 aria-[current=page]:before:w-0.5 aria-[current=page]:before:rounded-full aria-[current=page]:before:bg-sidebar-primary",f9={skills:new Set(["skill"]),docs:new Set(["document","json","glossary","decisions","schema","api"]),code:new Set(["source"]),database:new Set(["table","query"]),tasks:new Set(["task"])};function EO(e,t){return e.children(t).filter((a)=>!ko(e.node(a).kind))}function p9(e,t){let a=t,o=e.node(t).name;while(e.node(a).kind==="folder"){let[r,...n]=EO(e,a);if(r===void 0||n.length>0||e.node(r).kind!=="folder")break;a=r,o=\`\${o}/\${e.node(r).name}\`}return{node:a,label:o}}function NO(){let e=q(),t=ct(),a=hr.useRef(null);return hr.useEffect(()=>{if(t===void 0)return;De.actions.reveal([...e.ancestors(t),t]);let o=requestAnimationFrame(()=>{a.current?.querySelector(\`[data-node="\${t}"]\`)?.scrollIntoView({block:"nearest"})});return()=>cancelAnimationFrame(o)},[e,t]),S("ul",{ref:a,className:"space-y-1",children:[e.sections.map(({slug:o,node:r})=>c(WL,{node:r},o)),h9.map((o)=>c(y9,{...o},o.kind))]})}function WL({node:e}){let t=q(),{node:a,label:o}=p9(t,e),r=t.node(a),n=EO(t,a),i=r.kind==="section"?r.slug:void 0,s=(d)=>S(ie,{node:a,"data-node":a,title:Yt(r)&&r.title!==r.name?r.title:void 0,className:P(YL,i&&"font-semibold text-sidebar-accent-foreground",Ta(r.kind)&&!Ho[r.kind].prose&&"font-mono text-[0.8125rem]"),children:[c(Za,{kind:r.kind,section:i,open:d,className:i?"text-sidebar-primary":"text-sidebar-foreground/60"}),c("span",{className:"truncate",children:o}),i&&c("span",{className:"ml-auto rounded-full bg-sidebar-accent px-1.5 text-sidebar-foreground text-xs tabular-nums",children:t.count(a,f9[i])})]});if(!i&&n.length===0)return c("li",{className:"flex items-center pl-5",children:s(!1)});let l=r.parent===null?null:t.node(r.parent),u=i!==void 0||ma(r.kind)||(r.kind==="folder"||r.kind==="package")&&l?.kind==="section";return c(m9,{node:a,defaultOpen:u,row:s,children:n.length===0?c("p",{className:"px-2 py-1 text-sidebar-foreground/60 text-xs",children:"Nothing found"}):c("ul",{className:"space-y-0.5",children:n.map((d)=>c(WL,{node:d},d))})})}function m9({node:e,defaultOpen:t,row:a,children:o}){let r=Xe(De,(n)=>n.expanded[e]??t);return c("li",{children:S(wg,{open:r,onOpenChange:(n)=>De.actions.setExpanded(e,n),children:[S("div",{className:"flex items-center",children:[c(Iu,{"aria-label":r?"Collapse":"Expand",className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-sidebar-foreground/70 outline-hidden hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:c(rs,{className:P("size-3.5 transition-transform",r&&"rotate-90")})}),a(r)]}),c(Sg,{className:"ml-2 border-sidebar-border border-l pl-1.5",children:o})]})})}var h9=[{kind:"glossary",label:"Glossary",empty:"No glossary.md yet"},{kind:"decisions",label:"Decisions",empty:"No decisions.md yet"}];function g9(e){let t={name:"",files:[],folders:new Map};for(let{node:o,path:r}of e){let n=t;for(let i of r.split("/").slice(0,-1)){let s=n.folders.get(i);if(!s)s={name:i,files:[],folders:new Map},n.folders.set(i,s);n=s}n.files.push(o)}let a=(o)=>{for(let[i,s]of o.folders)o.folders.set(i,a(s));let[r,...n]=[...o.folders.values()];if(o.name&&r&&n.length===0&&o.files.length===0)return{...r,name:\`\${o.name}/\${r.name}\`};return o};return a(t)}function y9({kind:e,label:t,empty:a}){let o=q(),r=hr.useMemo(()=>{let l=[];for(let{node:u}of o.sections)for(let d of o.descendants(u)){let m=o.node(d);if(m.kind===e)l.push({node:d,path:m.path})}return l},[o,e]),n=hr.useMemo(()=>g9(r),[r]),[i,s]=hr.useState(!0);return c("li",{children:S(wg,{open:i,onOpenChange:s,children:[S("div",{className:"flex items-center",children:[c(Iu,{"aria-label":i?"Collapse":"Expand",className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-sidebar-foreground/70 outline-hidden hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:c(rs,{className:P("size-3.5 transition-transform",i&&"rotate-90")})}),S(Iu,{className:P(YL,"font-semibold text-sidebar-accent-foreground"),children:[c(Za,{kind:e,className:"text-sidebar-primary"}),c("span",{className:"truncate",children:t}),c("span",{className:"ml-auto rounded-full bg-sidebar-accent px-1.5 text-sidebar-foreground text-xs tabular-nums",children:r.length})]})]}),c(Sg,{className:"ml-2 border-sidebar-border border-l pl-1.5",children:r.length===0?c("p",{className:"px-2 py-1 text-sidebar-foreground/60 text-xs",children:a}):c(AO,{folder:n})})]})})}function AO({folder:e}){return S("ul",{className:"space-y-0.5",children:[[...e.folders.values()].map((t)=>c(x9,{folder:t},t.name)),e.files.map((t)=>c(WL,{node:t},t))]})}function x9({folder:e}){let[t,a]=hr.useState(!0);return c("li",{children:S(wg,{open:t,onOpenChange:a,children:[S("div",{className:"flex items-center",children:[c(Iu,{"aria-label":t?"Collapse":"Expand",className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-sidebar-foreground/70 outline-hidden hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:c(rs,{className:P("size-3.5 transition-transform",t&&"rotate-90")})}),S(Iu,{className:YL,children:[c(Za,{kind:"folder",open:t,className:"text-sidebar-foreground/60"}),c("span",{className:"truncate",children:e.name})]})]}),c(Sg,{className:"ml-2 border-sidebar-border border-l pl-1.5",children:c(AO,{folder:e})})]})})}function MO({className:e,children:t,...a}){return S(Qn.Root,{"data-slot":"scroll-area",className:P("relative",e),...a,children:[c(Qn.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 [&>div]:block!",children:t}),c(v9,{}),c(Qn.Corner,{})]})}function v9({className:e,orientation:t="vertical",...a}){return c(Qn.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:t,className:P("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:c(Qn.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var b9=/Mac|iPhone|iPad/.test(navigator.userAgent)?"\u2318K":"Ctrl K",Lg="flex h-9 w-full items-center gap-2 rounded-md px-3 text-sidebar-foreground/85 text-sm outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60 aria-[current=page]:bg-sidebar-accent aria-[current=page]:font-medium aria-[current=page]:text-sidebar-accent-foreground",w9=[{kind:"glossary",label:"Glossary",to:"/glossary"},{kind:"decisions",label:"Decisions",to:"/decisions"}];function QL({action:e}){let t=q(),{meta:a}=t,o=DO.useMemo(()=>{let r=t.sections.find(({slug:n})=>n==="tasks")?.node;return r===void 0||t.children(r).length===0?void 0:r},[t]);return S("div",{className:"flex h-full min-h-0 flex-col",children:[S("div",{className:"space-y-3 border-sidebar-border border-b p-4",children:[S("div",{className:"flex items-center gap-2",children:[c(rt,{to:"/",className:"min-w-0 flex-1 truncate rounded-sm font-bold text-lg text-sidebar-accent-foreground tracking-tight outline-hidden focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:a.title}),c(TO,{className:"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"}),e]}),S("button",{type:"button",onClick:()=>De.actions.setSearchOpen(!0),className:"flex h-9 w-full items-center gap-2 rounded-md border border-sidebar-border bg-sidebar-accent/50 px-3 text-sidebar-foreground/80 text-sm outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60",children:[c(Hr,{className:"size-4 shrink-0"}),"Search",c("kbd",{className:"ml-auto rounded-sm border border-sidebar-border px-1.5 font-mono text-[0.6875rem]",children:b9})]}),S("ul",{className:"space-y-0.5",children:[c("li",{children:S(rt,{to:"/graph",className:Lg,children:[c(_o,{className:"size-4 shrink-0 text-sidebar-primary"}),"Graph"]})}),w9.map(({kind:r,label:n,to:i})=>c("li",{children:S(rt,{to:i,className:Lg,children:[c(Za,{kind:r,className:"text-sidebar-primary"}),n]})},r)),o!==void 0&&c("li",{children:S(ie,{node:o,className:Lg,children:[c(Za,{kind:"section",section:"tasks",className:"text-sidebar-primary"}),"Tasks"]})}),c("li",{children:S(rt,{to:"/guide",className:Lg,children:[c(Ua,{className:"size-4 shrink-0 text-sidebar-primary"}),"Guide"]})})]})]}),c(MO,{className:"min-h-0 flex-1",children:c("nav",{"aria-label":"Contents",className:"p-3",children:c(NO,{})})}),c("p",{className:"border-sidebar-border border-t px-4 py-2 text-sidebar-foreground/60 text-xs",children:a.generator})]})}var gr=U(V(),1);var PO=1,S9=0.9,L9=0.8,C9=0.17,JL=0.1,eC=0.999,k9=0.9999,I9=0.99,R9=/[\\\\\\/_+.#"@\\[\\(\\{&]/,_9=/[\\\\\\/_+.#"@\\[\\(\\{&]/g,T9=/[\\s-]/,zO=/[\\s-]/g;function tC(e,t,a,o,r,n,i){if(n===t.length)return r===e.length?PO:I9;var s=\`\${r},\${n}\`;if(i[s]!==void 0)return i[s];for(var l=o.charAt(n),u=a.indexOf(l,r),d=0,m,p,f,g;u>=0;)m=tC(e,t,a,o,u+1,n+1,i),m>d&&(u===r?m*=PO:R9.test(e.charAt(u-1))?(m*=L9,f=e.slice(r,u-1).match(_9),f&&r>0&&(m*=Math.pow(eC,f.length))):T9.test(e.charAt(u-1))?(m*=S9,g=e.slice(r,u-1).match(zO),g&&r>0&&(m*=Math.pow(eC,g.length))):(m*=C9,r>0&&(m*=Math.pow(eC,u-r))),e.charAt(u)!==t.charAt(n)&&(m*=k9)),(m<JL&&a.charAt(u-1)===o.charAt(n+1)||o.charAt(n+1)===o.charAt(n)&&a.charAt(u-1)!==o.charAt(n))&&(p=tC(e,t,a,o,u+1,n+2,i),p*JL>m&&(m=p*JL)),m>d&&(d=m),u=a.indexOf(l,u+1);return i[s]=d,d}function OO(e){return e.toLowerCase().replace(zO," ")}function BO(e,t,a){return e=a&&a.length>0?\`\${e+" "+a.join(" ")}\`:e,tC(e,t,OO(e),OO(t),0,0,{})}var K=U(V(),1);var kf='[cmdk-group=""]',aC='[cmdk-group-items=""]',E9='[cmdk-group-heading=""]',HO='[cmdk-item=""]',FO=\`\${HO}:not([aria-disabled="true"])\`,oC="cmdk-item-select",Ru="data-value",N9=(e,t,a)=>BO(e,t,a),UO=K.createContext(void 0),If=()=>K.useContext(UO),GO=K.createContext(void 0),rC=()=>K.useContext(GO),qO=K.createContext(void 0),$O=K.forwardRef((e,t)=>{let a=_u(()=>{var N,Z;return{search:"",value:(Z=(N=e.value)!=null?N:e.defaultValue)!=null?Z:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=_u(()=>new Set),r=_u(()=>new Map),n=_u(()=>new Map),i=_u(()=>new Set),s=VO(e),{label:l,children:u,value:d,onValueChange:m,filter:p,shouldFilter:f,loop:g,disablePointerSelection:y=!1,vimBindings:b=!0,...h}=e,x=Zt(),v=Zt(),w=Zt(),C=K.useRef(null),I=G9();ws(()=>{if(d!==void 0){let N=d.trim();a.current.value=N,L.emit()}},[d]),ws(()=>{I(6,z)},[]);let L=K.useMemo(()=>({subscribe:(N)=>(i.current.add(N),()=>i.current.delete(N)),snapshot:()=>a.current,setState:(N,Z,Q)=>{var H,J,oe,fe;if(!Object.is(a.current[N],Z)){if(a.current[N]=Z,N==="search")D(),T(),I(1,O);else if(N==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ne=document.getElementById(w);ne?ne.focus():(H=document.getElementById(x))==null||H.focus()}if(I(7,()=>{var ne;a.current.selectedItemId=(ne=R())==null?void 0:ne.id,L.emit()}),Q||I(5,z),((J=s.current)==null?void 0:J.value)!==void 0){let ne=Z!=null?Z:"";(fe=(oe=s.current).onValueChange)==null||fe.call(oe,ne);return}}L.emit()}},emit:()=>{i.current.forEach((N)=>N())}}),[]),k=K.useMemo(()=>({value:(N,Z,Q)=>{var H;Z!==((H=n.current.get(N))==null?void 0:H.value)&&(n.current.set(N,{value:Z,keywords:Q}),a.current.filtered.items.set(N,_(Z,Q)),I(2,()=>{T(),L.emit()}))},item:(N,Z)=>(o.current.add(N),Z&&(r.current.has(Z)?r.current.get(Z).add(N):r.current.set(Z,new Set([N]))),I(3,()=>{D(),T(),a.current.value||O(),L.emit()}),()=>{n.current.delete(N),o.current.delete(N),a.current.filtered.items.delete(N);let Q=R();I(4,()=>{D(),(Q==null?void 0:Q.getAttribute("id"))===N&&O(),L.emit()})}),group:(N)=>(r.current.has(N)||r.current.set(N,new Set),()=>{n.current.delete(N),r.current.delete(N)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:w,labelId:v,listInnerRef:C}),[]);function _(N,Z){var Q,H;let J=(H=(Q=s.current)==null?void 0:Q.filter)!=null?H:N9;return N?J(N,a.current.search,Z):0}function T(){if(!a.current.search||s.current.shouldFilter===!1)return;let N=a.current.filtered.items,Z=[];a.current.filtered.groups.forEach((H)=>{let J=r.current.get(H),oe=0;J.forEach((fe)=>{let ne=N.get(fe);oe=Math.max(ne,oe)}),Z.push([H,oe])});let Q=C.current;A().sort((H,J)=>{var oe,fe;let ne=H.getAttribute("id"),Ka=J.getAttribute("id");return((oe=N.get(Ka))!=null?oe:0)-((fe=N.get(ne))!=null?fe:0)}).forEach((H)=>{let J=H.closest(aC);J?J.appendChild(H.parentElement===J?H:H.closest(\`\${aC} > *\`)):Q.appendChild(H.parentElement===Q?H:H.closest(\`\${aC} > *\`))}),Z.sort((H,J)=>J[1]-H[1]).forEach((H)=>{var J;let oe=(J=C.current)==null?void 0:J.querySelector(\`\${kf}[\${Ru}="\${encodeURIComponent(H[0])}"]\`);oe==null||oe.parentElement.appendChild(oe)})}function O(){let N=A().find((Q)=>Q.getAttribute("aria-disabled")!=="true"),Z=N==null?void 0:N.getAttribute(Ru);L.setState("value",Z||void 0)}function D(){var N,Z,Q,H;if(!a.current.search||s.current.shouldFilter===!1){a.current.filtered.count=o.current.size;return}a.current.filtered.groups=new Set;let J=0;for(let oe of o.current){let fe=(Z=(N=n.current.get(oe))==null?void 0:N.value)!=null?Z:"",ne=(H=(Q=n.current.get(oe))==null?void 0:Q.keywords)!=null?H:[],Ka=_(fe,ne);a.current.filtered.items.set(oe,Ka),Ka>0&&J++}for(let[oe,fe]of r.current)for(let ne of fe)if(a.current.filtered.items.get(ne)>0){a.current.filtered.groups.add(oe);break}a.current.filtered.count=J}function z(){var N,Z,Q;let H=R();H&&(((N=H.parentElement)==null?void 0:N.firstChild)===H&&((Q=(Z=H.closest(kf))==null?void 0:Z.querySelector(E9))==null||Q.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function R(){var N;return(N=C.current)==null?void 0:N.querySelector(\`\${HO}[aria-selected="true"]\`)}function A(){var N;return Array.from(((N=C.current)==null?void 0:N.querySelectorAll(FO))||[])}function E(N){let Z=A()[N];Z&&L.setState("value",Z.getAttribute(Ru))}function B(N){var Z;let Q=R(),H=A(),J=H.findIndex((fe)=>fe===Q),oe=H[J+N];(Z=s.current)!=null&&Z.loop&&(oe=J+N<0?H[H.length-1]:J+N===H.length?H[0]:H[J+N]),oe&&L.setState("value",oe.getAttribute(Ru))}function X(N){let Z=R(),Q=Z==null?void 0:Z.closest(kf),H;for(;Q&&!H;)Q=N>0?H9(Q,kf):U9(Q,kf),H=Q==null?void 0:Q.querySelector(FO);H?L.setState("value",H.getAttribute(Ru)):B(N)}let ee=()=>E(A().length-1),F=(N)=>{N.preventDefault(),N.metaKey?ee():N.altKey?X(1):B(1)},ce=(N)=>{N.preventDefault(),N.metaKey?E(0):N.altKey?X(-1):B(-1)};return K.createElement(se.div,{ref:t,tabIndex:-1,...h,"cmdk-root":"",onKeyDown:(N)=>{var Z;(Z=h.onKeyDown)==null||Z.call(h,N);let Q=N.nativeEvent.isComposing||N.keyCode===229;if(!(N.defaultPrevented||Q))switch(N.key){case"n":case"j":{b&&N.ctrlKey&&F(N);break}case"ArrowDown":{F(N);break}case"p":case"k":{b&&N.ctrlKey&&ce(N);break}case"ArrowUp":{ce(N);break}case"Home":{N.preventDefault(),E(0);break}case"End":{N.preventDefault(),ee();break}case"Enter":{N.preventDefault();let H=R();if(H){let J=new Event(oC);H.dispatchEvent(J)}}}}},K.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:$9},l),Cg(e,(N)=>K.createElement(GO.Provider,{value:L},K.createElement(UO.Provider,{value:k},N))))}),A9=K.forwardRef((e,t)=>{var a,o;let r=Zt(),n=K.useRef(null),i=K.useContext(qO),s=If(),l=VO(e),u=(o=(a=l.current)==null?void 0:a.forceMount)!=null?o:i==null?void 0:i.forceMount;ws(()=>{if(!u)return s.item(r,i==null?void 0:i.id)},[u]);let d=ZO(r,n,[e.value,e.children,n],e.keywords),m=rC(),p=si((I)=>I.value&&I.value===d.current),f=si((I)=>u||s.filter()===!1?!0:I.search?I.filtered.items.get(r)>0:!0);K.useEffect(()=>{let I=n.current;if(!(!I||e.disabled))return I.addEventListener(oC,g),()=>I.removeEventListener(oC,g)},[f,e.onSelect,e.disabled]);function g(){var I,L;y(),(L=(I=l.current).onSelect)==null||L.call(I,d.current)}function y(){m.setState("value",d.current,!0)}if(!f)return null;let{disabled:b,value:h,onSelect:x,forceMount:v,keywords:w,...C}=e;return K.createElement(se.div,{ref:Wn(n,t),...C,id:r,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||s.getDisablePointerSelection()?void 0:y,onClick:b?void 0:g},e.children)}),M9=K.forwardRef((e,t)=>{let{heading:a,children:o,forceMount:r,...n}=e,i=Zt(),s=K.useRef(null),l=K.useRef(null),u=Zt(),d=If(),m=si((f)=>r||d.filter()===!1?!0:f.search?f.filtered.groups.has(i):!0);ws(()=>d.group(i),[]),ZO(i,s,[e.value,e.heading,l]);let p=K.useMemo(()=>({id:i,forceMount:r}),[r]);return K.createElement(se.div,{ref:Wn(s,t),...n,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},a&&K.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},a),Cg(e,(f)=>K.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?u:void 0},K.createElement(qO.Provider,{value:p},f))))}),D9=K.forwardRef((e,t)=>{let{alwaysRender:a,...o}=e,r=K.useRef(null),n=si((i)=>!i.search);return!a&&!n?null:K.createElement(se.div,{ref:Wn(r,t),...o,"cmdk-separator":"",role:"separator"})}),P9=K.forwardRef((e,t)=>{let{onValueChange:a,...o}=e,r=e.value!=null,n=rC(),i=si((u)=>u.search),s=si((u)=>u.selectedItemId),l=If();return K.useEffect(()=>{e.value!=null&&n.setState("search",e.value)},[e.value]),K.createElement(se.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:r?e.value:i,onChange:(u)=>{r||n.setState("search",u.target.value),a==null||a(u.target.value)}})}),O9=K.forwardRef((e,t)=>{let{children:a,label:o="Suggestions",...r}=e,n=K.useRef(null),i=K.useRef(null),s=si((u)=>u.selectedItemId),l=If();return K.useEffect(()=>{if(i.current&&n.current){let u=i.current,d=n.current,m,p=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let f=u.offsetHeight;d.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return p.observe(u),()=>{cancelAnimationFrame(m),p.unobserve(u)}}},[]),K.createElement(se.div,{ref:Wn(n,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":o,id:l.listId},Cg(e,(u)=>K.createElement("div",{ref:Wn(i,l.listInnerRef),"cmdk-list-sizer":""},u)))}),z9=K.forwardRef((e,t)=>{let{open:a,onOpenChange:o,overlayClassName:r,contentClassName:n,container:i,...s}=e;return K.createElement(bw,{open:a,onOpenChange:o},K.createElement(ww,{container:i},K.createElement(Sw,{"cmdk-overlay":"",className:r}),K.createElement(Lw,{"aria-label":e.label,"cmdk-dialog":"",className:n},K.createElement($O,{ref:t,...s}))))}),B9=K.forwardRef((e,t)=>si((a)=>a.filtered.count===0)?K.createElement(se.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),F9=K.forwardRef((e,t)=>{let{progress:a,children:o,label:r="Loading...",...n}=e;return K.createElement(se.div,{ref:t,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Cg(e,(i)=>K.createElement("div",{"aria-hidden":!0},i)))}),Ss=Object.assign($O,{List:O9,Item:A9,Input:P9,Group:M9,Separator:D9,Dialog:z9,Empty:B9,Loading:F9});function H9(e,t){let a=e.nextElementSibling;for(;a;){if(a.matches(t))return a;a=a.nextElementSibling}}function U9(e,t){let a=e.previousElementSibling;for(;a;){if(a.matches(t))return a;a=a.previousElementSibling}}function VO(e){let t=K.useRef(e);return ws(()=>{t.current=e}),t}var ws=typeof window>"u"?K.useEffect:K.useLayoutEffect;function _u(e){let t=K.useRef();return t.current===void 0&&(t.current=e()),t}function si(e){let t=rC(),a=()=>e(t.snapshot());return K.useSyncExternalStore(t.subscribe,a,a)}function ZO(e,t,a,o=[]){let r=K.useRef(),n=If();return ws(()=>{var i;let s=(()=>{var u;for(let d of a){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():r.current}})(),l=o.map((u)=>u.trim());n.value(e,s,l),(i=t.current)==null||i.setAttribute(Ru,s),r.current=s}),r}var G9=()=>{let[e,t]=K.useState(),a=_u(()=>new Map);return ws(()=>{a.current.forEach((o)=>o()),a.current=new Map},[e]),(o,r)=>{a.current.set(o,r),t({})}};function q9(e){let t=e.type;return typeof t=="function"?t(e.props):("render"in t)?t.render(e.props):e}function Cg({asChild:e,children:t},a){return e&&K.isValidElement(t)?K.cloneElement(q9(t),{ref:t.ref},a(t.props.children)):a(t)}var $9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function nC({...e}){return c(pt.Root,{"data-slot":"dialog",...e})}function V9({...e}){return c(pt.Portal,{"data-slot":"dialog-portal",...e})}function Z9({className:e,...t}){return c(pt.Overlay,{"data-slot":"dialog-overlay",className:P("fixed inset-0 z-50 bg-foreground/40 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function iC({className:e,children:t,showCloseButton:a=!0,...o}){return S(V9,{"data-slot":"dialog-portal",children:[c(Z9,{}),S(pt.Content,{"data-slot":"dialog-content",className:P("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-popover p-6 text-popover-foreground shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...o,children:[t,a&&S(pt.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 outline-hidden transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c(To,{}),c("span",{className:"sr-only",children:"Close"})]})]})]})}function sC({className:e,...t}){return c("div",{"data-slot":"dialog-header",className:P("flex flex-col gap-2 text-center sm:text-left",e),...t})}function lC({className:e,...t}){return c(pt.Title,{"data-slot":"dialog-title",className:P("text-lg leading-none font-semibold",e),...t})}function uC({className:e,...t}){return c(pt.Description,{"data-slot":"dialog-description",className:P("text-sm text-muted-foreground",e),...t})}function KO({className:e,...t}){return c(Ss,{"data-slot":"command",className:P("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})}function jO({className:e,...t}){return S("div",{"data-slot":"command-input-wrapper",className:"flex h-12 items-center gap-2 border-b px-3",children:[c(Hr,{className:"size-4 shrink-0 opacity-50"}),c(Ss.Input,{"data-slot":"command-input",className:P("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function XO({className:e,...t}){return c(Ss.List,{"data-slot":"command-list",className:P("max-h-[min(24rem,60vh)] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function YO({...e}){return c(Ss.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm text-muted-foreground",...e})}function cC({className:e,...t}){return c(Ss.Group,{"data-slot":"command-group",className:P("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function dC({className:e,...t}){return c(Ss.Item,{"data-slot":"command-item",className:P("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}var K9=40;function j9(e){return e instanceof HTMLElement&&(e.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(e.tagName))}function WO({entry:e,score:t}){return S(he,{children:[c(Za,{kind:e.kind}),c("span",{className:"truncate font-medium",children:e.title}),c("span",{className:"ml-auto max-w-[50%] truncate text-muted-foreground text-xs",children:e.detail}),t!==void 0&&S("span",{className:"shrink-0 text-muted-foreground text-xs tabular-nums",children:[Math.round(t*100),"%"]})]})}function QO(){let e=q(),t=xe(),a=Xe(De,(p)=>p.searchOpen),[o,r]=gr.useState(""),n=gr.useMemo(()=>C0(e).filter((p)=>!p.member),[e]),i=gr.useMemo(()=>k0(n,o,K9).map((p)=>p.entry),[n,o]),s=gr.useMemo(()=>[...new Set(i.map((p)=>p.group))],[i]),l=gr.useMemo(()=>new Map(n.map((p)=>[p.node,p])),[n]),u=gr.useMemo(()=>{let p=new Set(i.map((f)=>f.node));return I0(e,o,p).flatMap(({node:f,score:g})=>{let y=l.get(f);return y?[{entry:y,score:g}]:[]})},[e,o,i,l]),d=_0(e);gr.useEffect(()=>{let p=(f)=>{if(!(f.key.toLowerCase()==="k"&&(f.metaKey||f.ctrlKey)||f.key==="/"&&!j9(f.target)))return;f.preventDefault(),De.actions.setSearchOpen(!De.get().searchOpen)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[]);let m=(p)=>{De.actions.setSearchOpen(!1),r(""),t.navigate({href:mp(e.route(p.node)).slice(1)})};return c(nC,{open:a,onOpenChange:De.actions.setSearchOpen,children:S(iC,{showCloseButton:!1,className:"top-[20%] translate-y-0 gap-0 overflow-hidden p-0 sm:max-w-xl",children:[S(sC,{className:"sr-only",children:[c(lC,{children:"Search"}),S(uC,{children:["Search skills, docs, code and the database by name",d?" or by meaning":"","."]})]}),S(KO,{shouldFilter:!1,children:[c(jO,{value:o,onValueChange:r,placeholder:d?"Search by name or by meaning":"Search skills, docs, code and the database"}),S(XO,{children:[o.trim().length>0&&S(YO,{children:['Nothing matches "',o.trim(),'".']}),s.map((p)=>c(cC,{heading:p,children:i.filter((f)=>f.group===p).map((f)=>c(dC,{value:String(f.node),onSelect:()=>m(f),children:c(WO,{entry:f})},f.node))},p)),u.length>0&&c(cC,{heading:"Similar in meaning",children:u.map(({entry:p,score:f})=>c(dC,{value:\`similar-\${p.node}\`,onSelect:()=>m(p),children:c(WO,{entry:p,score:f})},p.node))})]})]})]})})}function JO({...e}){return c(pt.Root,{"data-slot":"sheet",...e})}function ez({...e}){return c(pt.Close,{"data-slot":"sheet-close",...e})}function X9({...e}){return c(pt.Portal,{"data-slot":"sheet-portal",...e})}function Y9({className:e,...t}){return c(pt.Overlay,{"data-slot":"sheet-overlay",className:P("fixed inset-0 z-50 bg-foreground/40 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function tz({className:e,children:t,side:a="left",showCloseButton:o=!0,...r}){return S(X9,{children:[c(Y9,{}),S(pt.Content,{"data-slot":"sheet-content",className:P("fixed z-50 flex flex-col bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-300",a==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",a==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",a==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",a==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...r,children:[t,o&&S(pt.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 outline-hidden transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none",children:[c(To,{className:"size-4"}),c("span",{className:"sr-only",children:"Close"})]})]})]})}function az({className:e,...t}){return c("div",{"data-slot":"sheet-header",className:P("flex flex-col gap-1.5 p-4",e),...t})}function oz({className:e,...t}){return c(pt.Title,{"data-slot":"sheet-title",className:P("font-semibold text-foreground",e),...t})}function rz({className:e,...t}){return c(pt.Description,{"data-slot":"sheet-description",className:P("text-sm text-muted-foreground",e),...t})}var nz="analyze-content",fC="flex size-9 shrink-0 items-center justify-center rounded-md text-sidebar-foreground outline-hidden transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-3 focus-visible:ring-sidebar-ring/60";function iz(){let{meta:e}=q(),[t,a]=kg.useState(!1),o=Zu({select:(r)=>r.href});return kg.useEffect(()=>a(!1),[o]),S("div",{className:"flex min-h-dvh bg-background text-foreground",children:[c("button",{type:"button",onClick:()=>document.getElementById(nz)?.focus(),className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:rounded-md focus:bg-primary focus:px-3 focus:py-2 focus:text-primary-foreground focus:text-sm",children:"Skip to content"}),c("aside",{className:"sticky top-0 hidden h-dvh w-80 shrink-0 bg-sidebar text-sidebar-foreground lg:block",children:c(QL,{})}),S("div",{className:"min-w-0 flex-1",children:[S("header",{className:"sticky top-0 z-30 flex h-14 items-center gap-2 bg-sidebar px-3 text-sidebar-foreground lg:hidden",children:[c("button",{type:"button","aria-label":"Open navigation",className:fC,onClick:()=>a(!0),children:c(Rd,{className:"size-5"})}),c(rt,{to:"/",className:"min-w-0 flex-1 truncate font-bold text-sidebar-accent-foreground tracking-tight",children:e.title}),c("button",{type:"button","aria-label":"Search",className:fC,onClick:()=>De.actions.setSearchOpen(!0),children:c(Hr,{className:"size-5"})})]}),c("div",{id:nz,tabIndex:-1,className:"outline-hidden",children:c(up,{})})]}),c(JO,{open:t,onOpenChange:a,children:S(tz,{showCloseButton:!1,className:"border-sidebar-border bg-sidebar text-sidebar-foreground",children:[S(az,{className:"sr-only",children:[c(oz,{children:"Navigation"}),c(rz,{children:"Skills, docs, code and the database as a file tree."})]}),c(QL,{action:c(ez,{"aria-label":"Close navigation",className:fC,children:c(To,{className:"size-5"})})})]})}),c(QO,{})]})}function pC(){return S(Ul,{title:"This page is not in the documentation",children:[c("p",{children:"The link may point to a file that was renamed or left out of the last run."}),c("p",{className:"mt-4",children:c(rt,{to:"/",className:"font-medium text-primary underline underline-offset-4",children:"Go to the overview"})})]})}var Ls=_y()({component:iz,notFoundComponent:pC}),W9=cn({getParentRoute:()=>Ls,path:"/",component:_O}),Q9=cn({getParentRoute:()=>Ls,path:"graph",component:LP}),J9=cn({getParentRoute:()=>Ls,path:"guide",component:OP}),e7=cn({getParentRoute:()=>Ls,path:"glossary",component:()=>c(jw,{kind:"glossary"})}),t7=cn({getParentRoute:()=>Ls,path:"decisions",component:()=>c(jw,{kind:"decisions"})}),a7=cn({getParentRoute:()=>Ls,path:"$",component:wO,loader:({context:e,params:t})=>{let a=e.graph.at(t._splat??"");if(a===void 0)throw on();return a}}),o7=Ls.addChildren([W9,Q9,J9,e7,t7,a7]);function sz(e){return Ay({routeTree:o7,history:sd?Yg({initialEntries:["/"]}):Xg(),context:{graph:e},scrollRestoration:!0,defaultNotFoundComponent:pC})}function r7(){let e=document.getElementById(cx);if(!e)throw Error(\`Missing #\${cx} element\`);qM();try{let t=sz(new th(LE()));uz.createRoot(e).render(c(lz.StrictMode,{children:c(Py,{router:t})}))}catch(t){e.textContent=t instanceof Error?t.message:String(t)}}r7();
7576
7576
  </script>
7577
7577
  </body>
7578
7578
  </html>