@deslop/deploy 0.1.1326 → 0.1.1329
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/README.md +1 -1
- package/dist/client/assets/{(home)-C4rPdY9L.js → (home)-CeIG6PgD.js} +2 -2
- package/dist/client/assets/{dropdown-menu-CZaEN_qJ.js → dropdown-menu-CwPUPWlM.js} +1 -1
- package/dist/client/assets/index-BBUIUMy0.css +2 -0
- package/dist/client/assets/{index-CosTIjvQ.js → index-C1sxP13x.js} +2 -2
- package/dist/client/assets/{route-C9z_dFRX.js → route-D1uGsLDB.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server.js +108 -63
- package/package.json +2 -2
- package/dist/client/assets/index-g7JvLgjH.css +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-
|
|
2
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$ as t,A as n,B as r,C as i,F as a,G as o,H as s,I as c,J as l,L as u,Q as d,R as f,S as p,T as ee,U as m,V as te,W as ne,X as re,Y as h,Z as g,at as ie,ct as _,d as v,dt as y,et as b,f as x,h as ae,it as S,lt as C,n as w,nt as T,ot as oe,p as E,rt as D,s as O,st as k,tt as A,ut as se,z as j}from"./schema-B8wXLRy9.js";import{D as ce,Da as M,Di as le,Fa as ue,G as de,I as fe,Ia as pe,Jr as me,Mt as he,Nt as ge,Pa as _e,St as N,Tt as ve,Ui as ye,Ut as be,_t as xe,fa as Se,ga as Ce,gi as we,hr as Te,j as Ee,ja as De,ka as Oe,qi as ke,ra as Ae,rr as je,sa as Me,va as Ne}from"./effect-VX5AJqxs.js";import{a as Pe,n as Fe,o as Ie,r as Le}from"./react-BPjvcVqE.js";import{R as P,t as F}from"./dist-BlsWFKii.js";var Re=`Error preloading route! ☝️`,ze=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=e=>{this.originalIndex=e,this._branch=void 0;let n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=h:this.parentRoute||D();let i=r?h:n?.path;i&&i!==`/`&&(i=A(i));let a=n?.id||i,o=r?h:t((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(a??``));i===`__root__`&&(i=`/`);let s=o===`__root__`?`/`:i===void 0?this.parentRoute.fullPath:t(this.parentRoute.fullPath+`/`+i);this._path=i,this._id=o,this._fullPath=s,this._to=T(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>l({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Be=class{constructor({id:e}){this.notFound=e=>d({routeId:this.id,...e}),this.redirect=e=>l({from:this.id,...e}),this.id=e}},Ve=class extends ze{constructor(e){super(e)}},I=e(Ie(),1),L=Pe();function He(...e){let t=I.useRef(e),n=t.current;return e.forEach((e,t)=>{S(n[t],e,!1,!0)||(n[t]=e)}),t.current}function R(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Re)})}function Ue(e,t){let n=typeof e==`string`&&oe(e);if(n)return t.has(n)?e:null}function We(e,t,n,r){let i=b(e.pathname,r),a=b(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!S(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Ge(e,t,n){let r=j(),i=I.useRef(null),a=I.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:ee,onMouseEnter:ne,onMouseLeave:re,onTouchStart:h}=e,[g,ie,_]=He(e.search,e.params,o),v=I.useContext(m),y=(r.stores._linkScopes??={})[v]??=te(r,v),[b,x,ae]=I.useMemo(()=>{let t=Ue(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=y[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=Ze(t,r,u),s=u||o&&!oe(o)?We(e,t,_,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,_?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,y,e.from,e.hash,e.href,s,g,ie,e.state,e.mask,e.unsafeRelative,_,u]),[S,C]=I.useSyncExternalStore(y[1],x,ae||x),w=C===void 0&&S,T=u||S===void 0,E=I.useRef(!1),D=e.reloadDocument||w||T?!1:c??r.options.defaultPreload,O=l??r.options.defaultPreloadDelay??0,k=I.useCallback(e=>{let t=e?.isIntersecting;t??D===`intent`?O?i.t??=setTimeout(()=>{i.t=void 0,R(r,b)},O):R(r,b):t===!1&&z(i)},[r,b,i,D,O]);I.useEffect(()=>{if(!D)return;D===`render`&&!E.current&&(E.current=!0,R(r,b));let e=!0,t;return D===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&k(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),z(i)}},[r,b,D,k,i]);let A=Ye(e,n);if(A.ref=t?a:i,w)return A.href=w,A;let se=t=>{let n=d??t.currentTarget.getAttribute(`target`);T||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),z(i),r.navigate({...e,_fromLocation:b._fromLocation}))},ce=()=>{D===`intent`&&R(r,b)},M=()=>{D===`intent`&&z(i)};return A.onClick=B(f,se),A.onBlur=B(p,M),A.onFocus=B(ee,k),A.onMouseEnter=B(ne,k),A.onMouseLeave=B(re,M),A.onTouchStart=B(h,ce),Xe(A,e,C,S,T,n)}var Ke={},qe={className:`active`},Je=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 Ye(e,t){let n={};for(let r in e)Je.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Xe(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=ie(n?o:s,{})??(n?qe:Ke);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var z=e=>{clearTimeout(e.t),e.t=void 0},B=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Ze(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!_(i,t.protocolAllowlist))return i}var V=I.memo(I.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Ge(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return I.createElement(n,r,i)}),Qe);function Qe(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Je.has(r)||!S(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function $e({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function et(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var H=[],U=0,{link:tt,unlink:nt,propagate:rt,checkDirty:it,shallowPropagate:at}=$e({update(e){return e._update()},notify(e){H[G++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,J(e))}}),W=0,G=0,K,q=0;function ot(e){try{++q,e()}finally{--q||st()}}function J(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=nt(n,e)}function st(){if(!(q>0)){for(;W<G;){let e=H[W];H[W++]=void 0,e.notify()}W=0,G=0}}function ct(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return K!==void 0&&tt(i,K,U),i._snapshot},subscribe(e){let t=et(e),n={current:!1},r=lt(()=>{i.get(),n.current?(K=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=K,o=t?.compare??Object.is;if(n)K=i,++U,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{K=a,n&&(i.flags&=-5),J(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&it(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&at(e)}}else e&32&&(i.flags=e&-33);return K!==void 0&&tt(i,K,U),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(rt(e),at(e),st())}},i}function lt(e){let t=()=>{let t=K;K=n,++U,n.depsTail=void 0,n.flags=6;try{return e()}finally{K=t,n.flags&=-5,J(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&it(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,J(this)}};return t(),n}var ut={};function dt(e,t){let n=I.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=se(n.current,i):i}}function Y(e){let t=j(),n=I.useContext(e.from?s:m),r=e.from??n,i=t.stores.getMatchStore(r),a=dt(e,t),o=f(i,e=>e?a(e):ut);if(o!==ut)return o;(e.shouldThrow??!0)&&D()}function ft(e){return Y({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function pt(e){let{select:t,...n}=e;return Y({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function mt(e){return Y({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ht(e){return Y({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var gt=I.use,_t=I.useLayoutEffect;function vt(e){let t=j();return I.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function yt(e){return Y({...e,select:t=>e.select?e.select(t.context):t.context})}function bt(e){return new xt({id:e})}var xt=class extends Be{constructor({id:e}){super({id:e}),this.useMatch=e=>Y({...e,from:this.id}),this.useRouteContext=e=>yt({...e,from:this.id}),this.useSearch=e=>ht({...e,from:this.id}),this.useParams=e=>mt({...e,from:this.id}),this.useLoaderDeps=e=>pt({...e,from:this.id,strict:!1}),this.useLoaderData=e=>ft({...e,from:this.id,strict:!1}),this.useNavigate=()=>vt({from:j().routesById[this.id].fullPath}),this.notFound=e=>d({routeId:this.id,...e}),this.Link=I.forwardRef((e,t)=>{let n=j().routesById[this.id].fullPath;return(0,L.jsx)(V,{ref:t,from:n,...e})})}},St=class extends ze{constructor(e){super(e),this.useMatch=e=>Y({...e,from:this.id}),this.useRouteContext=e=>yt({...e,from:this.id}),this.useSearch=e=>ht({...e,from:this.id}),this.useParams=e=>mt({...e,from:this.id}),this.useLoaderDeps=e=>pt({...e,from:this.id}),this.useLoaderData=e=>ft({...e,from:this.id}),this.useNavigate=()=>vt({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(V,{ref:t,from:this.fullPath,...e}))}};function Ct(e){return new St(e)}var wt=class extends Ve{constructor(e){super(e),this.useMatch=e=>Y({...e,from:this.id}),this.useRouteContext=e=>yt({...e,from:this.id}),this.useSearch=e=>ht({...e,from:this.id}),this.useParams=e=>mt({...e,from:this.id}),this.useLoaderDeps=e=>pt({...e,from:this.id}),this.useLoaderData=e=>ft({...e,from:this.id}),this.useNavigate=()=>vt({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(V,{ref:t,from:this.fullPath,...e}))}};function Tt(e){return new wt(e)}function Et(e){return e=>{let t=Ct(e);return t.isRoot=!1,t}}function Dt(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(C(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(gt)gt(a());else throw a()}return I.createElement(r,e)};return o.preload=a,o}var Ot=()=>!0,kt=()=>!1;function At({children:e,fallback:t=null}){return(0,L.jsx)(I.Fragment,{children:jt()?e:t})}function jt(e=!0){return I.useSyncExternalStore(Mt,Ot,e?kt:Ot)}function Mt(){return()=>{}}function Nt(e){let t=j(),n=`not-found-${f(t.stores.location,e=>e.pathname)}-${f(t.stores.status)}`;return(0,L.jsx)(y,{getResetKey:()=>n,onCatch:(t,n)=>{if(g(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(g(t))return e.fallback?.(t);throw t},children:e.children})}function Pt(){return(0,L.jsx)(`p`,{children:`Not Found`})}function Ft(e,t,n){return t.options.notFoundComponent?(0,L.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,L.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,L.jsx)(Pt,{})}function X(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,L.jsx)(n,{}):null}var It=(e,t)=>e[0]===t[0]&&e[1]===t[1],Lt=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Rt=I.memo(function({routeId:e}){let t=j(),n=t.stores.getMatchStore(e);return zt(t,f(n))});function zt(e,t){let n=e.routesById[t.routeId],r=X(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Lt(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,L.jsx)(Bt,{match:t});s&&(l=(0,L.jsx)(At,{fallback:r,children:l})),o&&(l=(0,L.jsx)(Nt,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return I.createElement(o,e)},children:l})),i&&(l=(0,L.jsx)(y,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(g(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,L.jsx)(I.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,L.jsx)(m.Provider,{value:t.routeId,children:(0,L.jsxs)(u,{children:[l,null]})}):(0,L.jsxs)(m.Provider,{value:t.routeId,children:[l,null]})}var Bt=I.memo(function({match:e}){let t=j(),n=e.routeId,r=t.routesById[n],i=I.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=I.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,L.jsx)(e,{},i):(0,L.jsx)(Vt,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Lt(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return X(t,r)}if(e.status===`notFound`)return Ft(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Vt=I.memo(function(){let e=j(),t=I.useContext(m),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=f(a,e=>[!!e._notFound,e.error],{compare:It}),i=f(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Ft(e,e.routesById[t],r);if(!i)return null;let a=(0,L.jsx)(Rt,{routeId:i});return t===`__root__`?(0,L.jsx)(I.Suspense,{fallback:X(e),children:a}):a}),Ht=e=>({createMutableStore:ct,createReadonlyStore:ct,batch:ot}),Ut=e=>new Wt(e),Wt=class extends ne{constructor(e){super(e,Ht)}};function Gt(e,t){let n=e[1];e.length=0,n?.(t)}function Kt({t:e}){let t=j(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Gt(n,!1),n.push(i,a),e(t),I.startTransition(r)}),_t(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(T(r.publicHref)!==T(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...o(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function qt(){let e=j(),t=e.routesById[h],n=X(e,t),r=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{t:I.useState()[1]}),e.ssr?(0,L.jsx)(Jt,{}):(0,L.jsx)(I.Suspense,{fallback:n,children:(0,L.jsx)(Jt,{})})]});return e.options.InnerWrap?(0,L.jsx)(e.options.InnerWrap,{children:r}):r}function Jt(){let e=j(),t=e._rendered,n=f(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;_t(()=>{t[0]===n&&Gt(t,!0)},[t,n]);let a=i?(0,L.jsx)(Rt,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,L.jsx)(y,{getResetKey:()=>r,onCatch:void 0,children:a})}function Yt({router:e,children:t,...n}){k(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let i=(0,L.jsx)(r.Provider,{value:e,children:t});return e.options.Wrap?(0,L.jsx)(e.options.Wrap,{children:i}):i}function Xt({router:e,...t}){return(0,L.jsx)(Yt,{router:e,...t,children:(0,L.jsx)(qt,{})})}var Zt=new Map([[`bold`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),I.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Qt=I.forwardRef((e,t)=>I.createElement(P,{ref:t,...e,weights:Zt}));Qt.displayName=`ArrowClockwiseIcon`;var $t=new Map([[`bold`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),I.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),en=I.forwardRef((e,t)=>I.createElement(P,{ref:t,...e,weights:$t}));en.displayName=`HouseIcon`;var tn=new Map([[`bold`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z`}))],[`duotone`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),I.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`fill`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z`}))],[`light`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z`}))],[`regular`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`thin`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z`}))]]),nn=I.forwardRef((e,t)=>I.createElement(P,{ref:t,...e,weights:tn}));nn.displayName=`LockIcon`;var rn=Le(),Z=Fe();function Q(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-none border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function an(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`flex max-w-sm flex-col items-center gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var on=E(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function sn(e){let t=(0,Z.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=F(on({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,L.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function cn(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ln(){let e=(0,Z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(`a`,{href:`/`,"aria-label":`Home`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(Q,{"aria-label":`Page not found`,children:(0,L.jsxs)(x,{variant:`outline`,size:`sm`,render:t,nativeButton:!1,children:[(0,L.jsx)(en,{}),`Home`]})}),e[1]=n):n=e[1],n}var un=ce(e=>Ee(je(()=>location.replace(e))));function dn(e){let t=(0,Z.c)(2),n;return t[0]===e.href?n=t[1]:(n=un(e.href),t[0]=e.href,t[1]=n),p(n),null}function fn(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(Q,{role:`status`,children:(0,L.jsxs)(an,{children:[(0,L.jsx)(sn,{variant:`icon`,children:(0,L.jsx)(nn,{})}),(0,L.jsx)(cn,{children:`Access denied`})]})}),e[0]=t):t=e[0],t}function pn(e){let t=(0,Z.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(Qt,{}),t[0]=n):n=t[0];let r=e.label??`Can’t load this view`,i;return t[1]!==e.reset||t[2]!==r?(i=(0,L.jsx)(Q,{role:`alert`,children:(0,L.jsxs)(x,{variant:`destructive`,size:`sm`,onClick:e.reset,children:[n,r]})}),t[1]=e.reset,t[2]=r,t[3]=i):i=t[3],i}function mn(e){let t=(0,Z.c)(4);if(c(e.error)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(dn,{href:u(location.href)}),t[0]=e):e=t[0],e}if(a(e.error)){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(fn,{}),t[1]=e):e=t[1],e}let n;return t[2]===e.reset?n=t[3]:(n=(0,L.jsx)(pn,{reset:e.reset}),t[2]=e.reset,t[3]=n),n}function hn(e){let t=(0,Z.c)(12),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={includeFailure:!0},t[0]=n):n=t[0];let r=ee(e.atom,n),a=i(e.atom),o=e.frame??ue,s;if(t[1]!==o||t[2]!==e.children||t[3]!==a||t[4]!==r){let n;t[6]!==e.children||t[7]!==r?(n=()=>Ce(de(r),{onNone:De,onSome:e.children}),t[6]=e.children,t[7]=r,t[8]=n):n=t[8];let i;t[9]!==o||t[10]!==a?(i=e=>o((0,L.jsx)(mn,{error:me(e),reset:a})),t[9]=o,t[10]=a,t[11]=i):i=t[11],s=Ce(ae(r),{onNone:n,onSome:i}),t[1]=o,t[2]=e.children,t[3]=a,t[4]=r,t[5]=s}else s=t[5];return s}var gn=new WeakSet;function _n(e){let t=document.querySelector(`#root`);if(M(t))throw TypeError(`Missing application mount element with id "root"`);let r=Ut({context:{},defaultErrorComponent:mn,defaultNotFoundComponent:ln,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0}),i=fe();function a(e,t,a){if(Oe(e)){if(gn.has(e))return;gn.add(e)}i.set(n,{error:e,route:pe(we(r.state.matches,t=>t.error===e),Ne(()=>le(r.state.matches)),Ae(e=>Se(e.routeId,Te)),Me(_e(`__root__`))),source:t,stack:a})}return r.update({defaultOnCatch:(e,t)=>a(e,`route`,t.componentStack)}),(0,rn.createRoot)(t,{onCaughtError:(e,t)=>a(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>a(e,`uncaught`,t.componentStack)}).render((0,L.jsx)(I.StrictMode,{children:(0,L.jsx)(Xt,{router:r})})),r}function vn(e,t){return n=>{if(!ge(e)(n))return t(n);let r=he(e)(n);return t({...ye(n,(t,n)=>!ke(e.fields,n)||ke(r,n)),...r})}}var yn=Tt({shellComponent:e=>(0,L.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),bn=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),xn=function(e){return`/`+e},Sn={},Cn=function(e){return e.pathname.endsWith(`.css`)},wn=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Tn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=xn(t,n);let r=s(t),i=Cn(r);return wn(Sn,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:bn,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},En=Et(`/(home)`)({component:Dt(()=>Tn(()=>import(`./route-C9z_dFRX.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`)}),Dn=xe([`apps`,`process`]),$=ve({app:N(O),machine:N(v),pane:N(Dn),range:N(w.fields.minutes)}),On=Et(`/(home)/`)({component:Dt(()=>Tn(()=>import(`./(home)-C4rPdY9L.js`).then(e=>e.t),__vite__mapDeps([7,1,2,3,4,5,6])),`component`),validateSearch:be($)}),kn=En.update({id:`/(home)`,getParentRoute:()=>yn}),An={homeIndexRoute:On.update({id:`/`,path:`/`,getParentRoute:()=>kn})},jn={homeRouteRoute:kn._addFileChildren(An)},Mn=_n(yn._addFileChildren(jn)._addFileTypes());Mn.update({...Mn.options,stringifySearch:vn($,re)});export{Q as a,cn as c,bt as d,V as f,mn as i,Qt as l,Tn as n,an as o,hn as r,sn as s,$ as t,Vt as u};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-D1uGsLDB.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-BPjvcVqE.js","assets/schema-B8wXLRy9.js","assets/dist-BlsWFKii.js","assets/effect-VX5AJqxs.js","assets/result-error-BJVhQc2A.js","assets/(home)-CeIG6PgD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$ as t,A as n,B as r,C as i,F as a,G as o,H as s,I as c,J as l,L as u,Q as d,R as f,S as p,T as ee,U as m,V as te,W as ne,X as re,Y as h,Z as g,at as ie,ct as _,d as v,dt as y,et as b,f as x,h as ae,it as S,lt as C,n as w,nt as T,ot as oe,p as E,rt as D,s as O,st as k,tt as A,ut as se,z as j}from"./schema-B8wXLRy9.js";import{D as ce,Da as M,Di as le,Fa as ue,G as de,I as fe,Ia as pe,Jr as me,Mt as he,Nt as ge,Pa as _e,St as N,Tt as ve,Ui as ye,Ut as be,_t as xe,fa as Se,ga as Ce,gi as we,hr as Te,j as Ee,ja as De,ka as Oe,qi as ke,ra as Ae,rr as je,sa as Me,va as Ne}from"./effect-VX5AJqxs.js";import{a as Pe,n as Fe,o as Ie,r as Le}from"./react-BPjvcVqE.js";import{R as P,t as F}from"./dist-BlsWFKii.js";var Re=`Error preloading route! ☝️`,ze=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=e=>{this.originalIndex=e,this._branch=void 0;let n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=h:this.parentRoute||D();let i=r?h:n?.path;i&&i!==`/`&&(i=A(i));let a=n?.id||i,o=r?h:t((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(a??``));i===`__root__`&&(i=`/`);let s=o===`__root__`?`/`:i===void 0?this.parentRoute.fullPath:t(this.parentRoute.fullPath+`/`+i);this._path=i,this._id=o,this._fullPath=s,this._to=T(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>l({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Be=class{constructor({id:e}){this.notFound=e=>d({routeId:this.id,...e}),this.redirect=e=>l({from:this.id,...e}),this.id=e}},Ve=class extends ze{constructor(e){super(e)}},I=e(Ie(),1),L=Pe();function He(...e){let t=I.useRef(e),n=t.current;return e.forEach((e,t)=>{S(n[t],e,!1,!0)||(n[t]=e)}),t.current}function R(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Re)})}function Ue(e,t){let n=typeof e==`string`&&oe(e);if(n)return t.has(n)?e:null}function We(e,t,n,r){let i=b(e.pathname,r),a=b(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!S(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Ge(e,t,n){let r=j(),i=I.useRef(null),a=I.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:ee,onMouseEnter:ne,onMouseLeave:re,onTouchStart:h}=e,[g,ie,_]=He(e.search,e.params,o),v=I.useContext(m),y=(r.stores._linkScopes??={})[v]??=te(r,v),[b,x,ae]=I.useMemo(()=>{let t=Ue(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=y[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=Ze(t,r,u),s=u||o&&!oe(o)?We(e,t,_,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,_?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,y,e.from,e.hash,e.href,s,g,ie,e.state,e.mask,e.unsafeRelative,_,u]),[S,C]=I.useSyncExternalStore(y[1],x,ae||x),w=C===void 0&&S,T=u||S===void 0,E=I.useRef(!1),D=e.reloadDocument||w||T?!1:c??r.options.defaultPreload,O=l??r.options.defaultPreloadDelay??0,k=I.useCallback(e=>{let t=e?.isIntersecting;t??D===`intent`?O?i.t??=setTimeout(()=>{i.t=void 0,R(r,b)},O):R(r,b):t===!1&&z(i)},[r,b,i,D,O]);I.useEffect(()=>{if(!D)return;D===`render`&&!E.current&&(E.current=!0,R(r,b));let e=!0,t;return D===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&k(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),z(i)}},[r,b,D,k,i]);let A=Ye(e,n);if(A.ref=t?a:i,w)return A.href=w,A;let se=t=>{let n=d??t.currentTarget.getAttribute(`target`);T||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),z(i),r.navigate({...e,_fromLocation:b._fromLocation}))},ce=()=>{D===`intent`&&R(r,b)},M=()=>{D===`intent`&&z(i)};return A.onClick=B(f,se),A.onBlur=B(p,M),A.onFocus=B(ee,k),A.onMouseEnter=B(ne,k),A.onMouseLeave=B(re,M),A.onTouchStart=B(h,ce),Xe(A,e,C,S,T,n)}var Ke={},qe={className:`active`},Je=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 Ye(e,t){let n={};for(let r in e)Je.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Xe(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=ie(n?o:s,{})??(n?qe:Ke);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var z=e=>{clearTimeout(e.t),e.t=void 0},B=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Ze(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!_(i,t.protocolAllowlist))return i}var V=I.memo(I.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Ge(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return I.createElement(n,r,i)}),Qe);function Qe(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Je.has(r)||!S(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function $e({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function et(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var H=[],U=0,{link:tt,unlink:nt,propagate:rt,checkDirty:it,shallowPropagate:at}=$e({update(e){return e._update()},notify(e){H[G++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,J(e))}}),W=0,G=0,K,q=0;function ot(e){try{++q,e()}finally{--q||st()}}function J(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=nt(n,e)}function st(){if(!(q>0)){for(;W<G;){let e=H[W];H[W++]=void 0,e.notify()}W=0,G=0}}function ct(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return K!==void 0&&tt(i,K,U),i._snapshot},subscribe(e){let t=et(e),n={current:!1},r=lt(()=>{i.get(),n.current?(K=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=K,o=t?.compare??Object.is;if(n)K=i,++U,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{K=a,n&&(i.flags&=-5),J(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&it(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&at(e)}}else e&32&&(i.flags=e&-33);return K!==void 0&&tt(i,K,U),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(rt(e),at(e),st())}},i}function lt(e){let t=()=>{let t=K;K=n,++U,n.depsTail=void 0,n.flags=6;try{return e()}finally{K=t,n.flags&=-5,J(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&it(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,J(this)}};return t(),n}var ut={};function dt(e,t){let n=I.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=se(n.current,i):i}}function Y(e){let t=j(),n=I.useContext(e.from?s:m),r=e.from??n,i=t.stores.getMatchStore(r),a=dt(e,t),o=f(i,e=>e?a(e):ut);if(o!==ut)return o;(e.shouldThrow??!0)&&D()}function ft(e){return Y({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function pt(e){let{select:t,...n}=e;return Y({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function mt(e){return Y({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ht(e){return Y({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var gt=I.use,_t=I.useLayoutEffect;function vt(e){let t=j();return I.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function yt(e){return Y({...e,select:t=>e.select?e.select(t.context):t.context})}function bt(e){return new xt({id:e})}var xt=class extends Be{constructor({id:e}){super({id:e}),this.useMatch=e=>Y({...e,from:this.id}),this.useRouteContext=e=>yt({...e,from:this.id}),this.useSearch=e=>ht({...e,from:this.id}),this.useParams=e=>mt({...e,from:this.id}),this.useLoaderDeps=e=>pt({...e,from:this.id,strict:!1}),this.useLoaderData=e=>ft({...e,from:this.id,strict:!1}),this.useNavigate=()=>vt({from:j().routesById[this.id].fullPath}),this.notFound=e=>d({routeId:this.id,...e}),this.Link=I.forwardRef((e,t)=>{let n=j().routesById[this.id].fullPath;return(0,L.jsx)(V,{ref:t,from:n,...e})})}},St=class extends ze{constructor(e){super(e),this.useMatch=e=>Y({...e,from:this.id}),this.useRouteContext=e=>yt({...e,from:this.id}),this.useSearch=e=>ht({...e,from:this.id}),this.useParams=e=>mt({...e,from:this.id}),this.useLoaderDeps=e=>pt({...e,from:this.id}),this.useLoaderData=e=>ft({...e,from:this.id}),this.useNavigate=()=>vt({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(V,{ref:t,from:this.fullPath,...e}))}};function Ct(e){return new St(e)}var wt=class extends Ve{constructor(e){super(e),this.useMatch=e=>Y({...e,from:this.id}),this.useRouteContext=e=>yt({...e,from:this.id}),this.useSearch=e=>ht({...e,from:this.id}),this.useParams=e=>mt({...e,from:this.id}),this.useLoaderDeps=e=>pt({...e,from:this.id}),this.useLoaderData=e=>ft({...e,from:this.id}),this.useNavigate=()=>vt({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(V,{ref:t,from:this.fullPath,...e}))}};function Tt(e){return new wt(e)}function Et(e){return e=>{let t=Ct(e);return t.isRoot=!1,t}}function Dt(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(C(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(gt)gt(a());else throw a()}return I.createElement(r,e)};return o.preload=a,o}var Ot=()=>!0,kt=()=>!1;function At({children:e,fallback:t=null}){return(0,L.jsx)(I.Fragment,{children:jt()?e:t})}function jt(e=!0){return I.useSyncExternalStore(Mt,Ot,e?kt:Ot)}function Mt(){return()=>{}}function Nt(e){let t=j(),n=`not-found-${f(t.stores.location,e=>e.pathname)}-${f(t.stores.status)}`;return(0,L.jsx)(y,{getResetKey:()=>n,onCatch:(t,n)=>{if(g(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(g(t))return e.fallback?.(t);throw t},children:e.children})}function Pt(){return(0,L.jsx)(`p`,{children:`Not Found`})}function Ft(e,t,n){return t.options.notFoundComponent?(0,L.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,L.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,L.jsx)(Pt,{})}function X(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,L.jsx)(n,{}):null}var It=(e,t)=>e[0]===t[0]&&e[1]===t[1],Lt=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Rt=I.memo(function({routeId:e}){let t=j(),n=t.stores.getMatchStore(e);return zt(t,f(n))});function zt(e,t){let n=e.routesById[t.routeId],r=X(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Lt(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,L.jsx)(Bt,{match:t});s&&(l=(0,L.jsx)(At,{fallback:r,children:l})),o&&(l=(0,L.jsx)(Nt,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return I.createElement(o,e)},children:l})),i&&(l=(0,L.jsx)(y,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(g(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,L.jsx)(I.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,L.jsx)(m.Provider,{value:t.routeId,children:(0,L.jsxs)(u,{children:[l,null]})}):(0,L.jsxs)(m.Provider,{value:t.routeId,children:[l,null]})}var Bt=I.memo(function({match:e}){let t=j(),n=e.routeId,r=t.routesById[n],i=I.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=I.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,L.jsx)(e,{},i):(0,L.jsx)(Vt,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Lt(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return X(t,r)}if(e.status===`notFound`)return Ft(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Vt=I.memo(function(){let e=j(),t=I.useContext(m),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=f(a,e=>[!!e._notFound,e.error],{compare:It}),i=f(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Ft(e,e.routesById[t],r);if(!i)return null;let a=(0,L.jsx)(Rt,{routeId:i});return t===`__root__`?(0,L.jsx)(I.Suspense,{fallback:X(e),children:a}):a}),Ht=e=>({createMutableStore:ct,createReadonlyStore:ct,batch:ot}),Ut=e=>new Wt(e),Wt=class extends ne{constructor(e){super(e,Ht)}};function Gt(e,t){let n=e[1];e.length=0,n?.(t)}function Kt({t:e}){let t=j(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Gt(n,!1),n.push(i,a),e(t),I.startTransition(r)}),_t(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(T(r.publicHref)!==T(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...o(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function qt(){let e=j(),t=e.routesById[h],n=X(e,t),r=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{t:I.useState()[1]}),e.ssr?(0,L.jsx)(Jt,{}):(0,L.jsx)(I.Suspense,{fallback:n,children:(0,L.jsx)(Jt,{})})]});return e.options.InnerWrap?(0,L.jsx)(e.options.InnerWrap,{children:r}):r}function Jt(){let e=j(),t=e._rendered,n=f(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;_t(()=>{t[0]===n&&Gt(t,!0)},[t,n]);let a=i?(0,L.jsx)(Rt,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,L.jsx)(y,{getResetKey:()=>r,onCatch:void 0,children:a})}function Yt({router:e,children:t,...n}){k(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let i=(0,L.jsx)(r.Provider,{value:e,children:t});return e.options.Wrap?(0,L.jsx)(e.options.Wrap,{children:i}):i}function Xt({router:e,...t}){return(0,L.jsx)(Yt,{router:e,...t,children:(0,L.jsx)(qt,{})})}var Zt=new Map([[`bold`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),I.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Qt=I.forwardRef((e,t)=>I.createElement(P,{ref:t,...e,weights:Zt}));Qt.displayName=`ArrowClockwiseIcon`;var $t=new Map([[`bold`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),I.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),en=I.forwardRef((e,t)=>I.createElement(P,{ref:t,...e,weights:$t}));en.displayName=`HouseIcon`;var tn=new Map([[`bold`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z`}))],[`duotone`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),I.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`fill`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z`}))],[`light`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z`}))],[`regular`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`thin`,I.createElement(I.Fragment,null,I.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z`}))]]),nn=I.forwardRef((e,t)=>I.createElement(P,{ref:t,...e,weights:tn}));nn.displayName=`LockIcon`;var rn=Le(),Z=Fe();function Q(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-none border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function an(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`flex max-w-sm flex-col items-center gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var on=E(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function sn(e){let t=(0,Z.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=F(on({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,L.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function cn(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ln(){let e=(0,Z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(`a`,{href:`/`,"aria-label":`Home`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(Q,{"aria-label":`Page not found`,children:(0,L.jsxs)(x,{variant:`outline`,size:`sm`,render:t,nativeButton:!1,children:[(0,L.jsx)(en,{}),`Home`]})}),e[1]=n):n=e[1],n}var un=ce(e=>Ee(je(()=>location.replace(e))));function dn(e){let t=(0,Z.c)(2),n;return t[0]===e.href?n=t[1]:(n=un(e.href),t[0]=e.href,t[1]=n),p(n),null}function fn(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(Q,{role:`status`,children:(0,L.jsxs)(an,{children:[(0,L.jsx)(sn,{variant:`icon`,children:(0,L.jsx)(nn,{})}),(0,L.jsx)(cn,{children:`Access denied`})]})}),e[0]=t):t=e[0],t}function pn(e){let t=(0,Z.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(Qt,{}),t[0]=n):n=t[0];let r=e.label??`Can’t load this view`,i;return t[1]!==e.reset||t[2]!==r?(i=(0,L.jsx)(Q,{role:`alert`,children:(0,L.jsxs)(x,{variant:`destructive`,size:`sm`,onClick:e.reset,children:[n,r]})}),t[1]=e.reset,t[2]=r,t[3]=i):i=t[3],i}function mn(e){let t=(0,Z.c)(4);if(c(e.error)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(dn,{href:u(location.href)}),t[0]=e):e=t[0],e}if(a(e.error)){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(fn,{}),t[1]=e):e=t[1],e}let n;return t[2]===e.reset?n=t[3]:(n=(0,L.jsx)(pn,{reset:e.reset}),t[2]=e.reset,t[3]=n),n}function hn(e){let t=(0,Z.c)(12),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={includeFailure:!0},t[0]=n):n=t[0];let r=ee(e.atom,n),a=i(e.atom),o=e.frame??ue,s;if(t[1]!==o||t[2]!==e.children||t[3]!==a||t[4]!==r){let n;t[6]!==e.children||t[7]!==r?(n=()=>Ce(de(r),{onNone:De,onSome:e.children}),t[6]=e.children,t[7]=r,t[8]=n):n=t[8];let i;t[9]!==o||t[10]!==a?(i=e=>o((0,L.jsx)(mn,{error:me(e),reset:a})),t[9]=o,t[10]=a,t[11]=i):i=t[11],s=Ce(ae(r),{onNone:n,onSome:i}),t[1]=o,t[2]=e.children,t[3]=a,t[4]=r,t[5]=s}else s=t[5];return s}var gn=new WeakSet;function _n(e){let t=document.querySelector(`#root`);if(M(t))throw TypeError(`Missing application mount element with id "root"`);let r=Ut({context:{},defaultErrorComponent:mn,defaultNotFoundComponent:ln,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0}),i=fe();function a(e,t,a){if(Oe(e)){if(gn.has(e))return;gn.add(e)}i.set(n,{error:e,route:pe(we(r.state.matches,t=>t.error===e),Ne(()=>le(r.state.matches)),Ae(e=>Se(e.routeId,Te)),Me(_e(`__root__`))),source:t,stack:a})}return r.update({defaultOnCatch:(e,t)=>a(e,`route`,t.componentStack)}),(0,rn.createRoot)(t,{onCaughtError:(e,t)=>a(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>a(e,`uncaught`,t.componentStack)}).render((0,L.jsx)(I.StrictMode,{children:(0,L.jsx)(Xt,{router:r})})),r}function vn(e,t){return n=>{if(!ge(e)(n))return t(n);let r=he(e)(n);return t({...ye(n,(t,n)=>!ke(e.fields,n)||ke(r,n)),...r})}}var yn=Tt({shellComponent:e=>(0,L.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),bn=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),xn=function(e){return`/`+e},Sn={},Cn=function(e){return e.pathname.endsWith(`.css`)},wn=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Tn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=xn(t,n);let r=s(t),i=Cn(r);return wn(Sn,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:bn,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},En=Et(`/(home)`)({component:Dt(()=>Tn(()=>import(`./route-D1uGsLDB.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`)}),Dn=xe([`apps`,`process`]),$=ve({app:N(O),machine:N(v),pane:N(Dn),range:N(w.fields.minutes)}),On=Et(`/(home)/`)({component:Dt(()=>Tn(()=>import(`./(home)-CeIG6PgD.js`).then(e=>e.t),__vite__mapDeps([7,1,2,3,4,5,6])),`component`),validateSearch:be($)}),kn=En.update({id:`/(home)`,getParentRoute:()=>yn}),An={homeIndexRoute:On.update({id:`/`,path:`/`,getParentRoute:()=>kn})},jn={homeRouteRoute:kn._addFileChildren(An)},Mn=_n(yn._addFileChildren(jn)._addFileTypes());Mn.update({...Mn.options,stringifySearch:vn($,re)});export{Q as a,cn as c,bt as d,V as f,mn as i,Qt as l,Tn as n,an as o,hn as r,sn as s,$ as t,Vt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,n,o as r}from"./react-BPjvcVqE.js";import{u as i}from"./index-CosTIjvQ.js";import{E as a,f as o,o as s,x as c}from"./schema-B8wXLRy9.js";import{$i as l,Ai as u,G as d,Ia as f,Nt as p,Pa as m,W as ee,_a as h,_t as g,ca as _,ea as v,ga as y,hi as b,ja as x,la as S,li as C,pr as w,ra as te,sa as ne,wr as re}from"./effect-VX5AJqxs.js";import{A as T,C as E,Ct as D,D as O,E as k,F as A,G as j,Gt as M,I as N,J as ie,L as P,M as F,N as ae,O as oe,P as I,Qt as L,R,T as z,V as B,Wt as se,a as ce,an as V,b as H,bn as U,d as le,f as ue,ft as W,gt as G,hn as de,i as fe,k as pe,lt as me,m as he,n as ge,o as _e,on as ve,p as ye,q as be,r as xe,s as Se,t as Ce,tt as we,w as Te,x as Ee,y as De}from"./result-error-BJVhQc2A.js";import{R as Oe,_ as ke,a as Ae,g as je,h as K,l as Me,o as q,p as Ne,r as J,t as Y}from"./dist-BlsWFKii.js";var X=e(r(),1),Pe=new Map([[`bold`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),X.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Fe=X.forwardRef((e,t)=>X.createElement(Oe,{ref:t,...e,weights:Pe}));Fe.displayName=`XIcon`;var Ie=X.createContext(void 0);function Z(e){let t=X.useContext(Ie);if(!e&&t===void 0)throw Error(Ne(27));return t}var Le=X.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Z(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return J(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:M,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Re=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Z(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Me({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,D(me,e.nativeEvent))}return J(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),ze=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Z(),c=z(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),J(`p`,e,{ref:t,props:[{id:c},o]})}),Be=X.createContext(void 0);function Ve(){let e=X.useContext(Be);if(e===void 0)throw Error(Ne(26));return e}var He=`--nested-dialogs`,Ue=`data-nested-dialog-open`,We={...se,...L,nestedDialogOpen(e){return e?{[Ue]:``}:null}},Q=t(),Ge=X.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Z(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),ee=c.useState(`nested`),h=c.useState(`nestedOpenDialogCount`),g=c.useState(`open`),_=c.useState(`openMethod`),v=c.useState(`titleElementId`),y=c.useState(`transitionStatus`),b=c.useState(`role`),x=d.useState(`floatingId`);Ve(),B({open:g,ref:c.context.popupRef,onComplete(){g&&c.context.onOpenChangeComplete?.(!0)}});let S=o===void 0?F(c.context.popupRef):o,C=h>0,w=c.useStateSetter(`popupElement`),te=J(`div`,e,{state:{open:g,nested:ee,transitionStatus:y,nestedDialogOpen:C},props:[f,{id:x,"aria-labelledby":v,"aria-describedby":l,role:b,...pe,hidden:!m,onKeyDown(e){De.has(e.key)&&e.stopPropagation()},style:{[He]:h}},s],ref:[t,c.context.popupRef,w],stateAttributesMapping:We});return(0,Q.jsx)(ie,{context:d,openInteractionType:_,disabled:!m,closeOnFocusOut:!u,initialFocus:S,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:te})}),Ke=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Z(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Q.jsx)(Be.Provider,{value:n,children:(0,Q.jsxs)(we,{ref:t,...r,children:[a&&o===!0&&(0,Q.jsx)(Ee,{ref:i.context.internalBackdropRef,inert:E(!s)}),e.children]})}):null});function qe({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=X.useState(0),[d,f]=X.useState(0),p=l===0,m=be(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=ve(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||V(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return H(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),K(()=>{!r&&!i&&(u(0),f(0))},[r,i]),K(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),N(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Je={...O,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Ye=class extends j{constructor(e,t,n){let r=new oe,i=Xe(e,r,t,n);super(i,Ze(r),Je)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(ae(this.state,e,t.trigger)))}};function Xe(e,t,n,r=!1){return{...k(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Ze(e){return{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Qe(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,ee=m?!0:c,h=m||s,g=m?`alertdialog`:`dialog`,_=Z(!0),v={modal:ee,disablePointerDismissal:h,nested:_!=null,role:g},y=P((e,t)=>new Ye({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...v},e,t),!0);y.useControlledProp(`openProp`,r),y.useControlledProp(`triggerIdProp`,d),y.useSyncedValues(v),y.useContextCallback(`onOpenChange`,a),y.useContextCallback(`onOpenChangeComplete`,o);let b=y.useState(`open`),x=y.useState(`mounted`),S=y.useState(`payload`);R(y,b),I(y);let{forceUnmount:C}=A(b,y);X.useImperativeHandle(l,()=>({unmount:C,close:()=>y.setOpen(!1,D(W))}),[C,y]);let w=b||x||u!=null;return(0,Q.jsxs)(Ie.Provider,{value:y,children:[u&&(0,Q.jsx)(T,{handle:u,store:y}),w&&(0,Q.jsx)(qe,{store:y,parentContext:_?.context,isDrawer:p}),typeof n==`function`?n({payload:S}):n]})}var $e=U(function(e){return Qe(`dialog`,e)}),et=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Z(),c=z(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),J(`h2`,e,{ref:t,props:[{id:c},o]})}),$=n();function tt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)($e,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function nt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Ke,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function rt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Re,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function it(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Le,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function at(e){let t=(0,$.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=a===void 0||a,c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(it,{}),t[5]=c):c=t[5];let l;t[6]===r?l=t[7]:(l=Y(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-none bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=l);let u;t[8]===s?u=t[9]:(u=s&&(0,Q.jsxs)(Re,{"data-slot":`dialog-close`,render:(0,Q.jsx)(o,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Q.jsx)(Fe,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=s,t[9]=u);let d;return t[10]!==n||t[11]!==i||t[12]!==l||t[13]!==u?(d=(0,Q.jsxs)(nt,{children:[c,(0,Q.jsxs)(Ge,{"data-slot":`dialog-content`,className:l,...i,children:[n,u]})]}),t[10]=n,t[11]=i,t[12]=l,t[13]=u,t[14]=d):d=t[14],d}function ot(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`flex flex-col gap-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function st(e){let t=(0,$.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,showCloseButton:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=a!==void 0&&a,c;t[5]===r?c=t[6]:(c=Y(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),t[5]=r,t[6]=c);let l;t[7]===s?l=t[8]:(l=s&&(0,Q.jsx)(Re,{render:(0,Q.jsx)(o,{variant:`outline`}),children:`Close`}),t[7]=s,t[8]=l);let u;return t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:c,...i,children:[n,l]}),t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function ct(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(et,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function lt(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(ze,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ut=`data-valid`,dt=`data-invalid`,ft={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},pt={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},mt={valid(e){return e===null?null:e?{[ut]:``}:{[dt]:``}}},ht={invalid:void 0,name:void 0,validityData:{state:ft,errors:[],error:``,value:``,initialValue:null},setValidityData:q,disabled:void 0,setTouched:q,setDirty:q,setFilled:q,setFocused:q,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:pt,registerFieldControl:q,validation:{getValidationProps:(e,t=Ae)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:q,getInputControl:()=>null,commit:async()=>{},change:q}},gt=X.createContext(ht);function _t(e=!0){let t=X.useContext(gt);if(t.setValidityData===q&&!e)throw Error(Ne(28));return t}var vt=X.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:q,validationMode:`onSubmit`,submitCountRef:{current:0}});function yt(){return X.useContext(vt)}var bt=X.createContext({controlId:void 0,registerControlId:q,resetControlId:q,labelId:void 0,setLabelId:q,messageIds:[],setMessageIds:q,getDescriptionProps:e=>e});function xt(){return X.useContext(bt)}function St(e,t,n){let{setFocused:r,focusOwnerRef:i}=_t(),a=je(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return K(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function Ct(e,t,n,r,i=!0,a){let{registerFieldControl:o}=_t(),s=ke(()=>Symbol());K(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function wt(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=xt(),o=z(),s=ke(()=>Symbol()),c=X.useRef(!1),l=X.useRef(!1),u=je(()=>{c.current&&i!==q&&(c.current=!1,i(s.current,void 0))});return K(()=>{if(!n||i===q){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),K(()=>u,[u]),(n?r:void 0)??t??o}var Tt=X.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:ee,setTouched:h,setDirty:g,validityData:_,setFilled:v,validationMode:y,validation:b}=_t(),{clearErrors:x,elementRef:S,submitCountRef:C}=yt(),w=ee||s,te=m??a,ne={...p,disabled:w},{labelId:re}=xt(),T=wt({id:i}),E=o!==void 0,O=o==null?void 0:String(o),k=je(()=>b.inputRef.current?.value);Ct(b.inputRef,T,O,k,!w,a),K(()=>{let e=O??b.inputRef.current?.value;e!==void 0&&v(e!==``)},[O,l,b.inputRef,v]),Te(O,()=>{O!==void 0&&(x(te),g(O!==(_.initialValue??``)),b.change(O))});let A=X.useRef(null),j=St(w,A),M=de();return J(`input`,e,{ref:[t,A],state:ne,props:[{id:T,disabled:w,name:te,ref:b.inputRef,"aria-labelledby":re,autoFocus:u,...E?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=D(G,e.nativeEvent);c?.(t,n),E||(g(t!==(_.initialValue??``)),v(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(x(te),b.change(t)))},onFocus(){j(!0)},onBlur(e){if(h(!0),j(!1),y===`onBlur`){let t=e.currentTarget.value;b.commit(t),E&&queueMicrotask(()=>{let e=b.inputRef.current?.value;e!==void 0&&e!==t&&e!==(_.initialValue??``)&&b.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){h(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===S.current&&!e.defaultPrevented){let t=e.currentTarget,n=C.current;M.start(0,()=>{C.current===n&&b.commit(t.value)})}else b.commit(t)}}},f,e=>b.getValidationProps(w,e)],stateAttributesMapping:mt})}),Et=X.forwardRef(function(e,t){return(0,Q.jsx)(Tt,{ref:t,...e})});function Dt(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Y(`h-8 w-full min-w-0 rounded-none border border-input bg-transparent px-2.5 py-1 text-xs transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-xs dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,Q.jsx)(Et,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Ot=g([`tailnet`,`public`]);function kt(e){let t=(0,$.c)(70),[n,r]=c(ce),[i,a]=(0,X.useState)(`tailnet`),[l,d]=(0,X.useState)(``),h;if(t[0]!==e.items||t[1]!==e.port.worker){let n;t[3]===e.port.worker?n=t[4]:(n=t=>v(t.self,!0)&&t.worker===e.port.worker,t[3]=e.port.worker,t[4]=n),h=ne(f(e.items,b(n),te(At)),m(``)),t[0]=e.items,t[1]=e.port.worker,t[2]=h}else h=t[2];let g=h,y;t[5]===n?y=t[6]:(y=ee(n),t[5]=n,t[6]=y);let x=y,T;t[7]!==r||t[8]!==l||t[9]!==i||t[10]!==e.port.port||t[11]!==e.port.worker||t[12]!==g?(T=t=>{t.preventDefault(),r({hostname:C(i===`public`,{onFalse:()=>g,onTrue:()=>l}),kind:i,name:s.make(C(i===`public`,{onFalse:()=>`tailnet:${_(e.port.port)}`,onTrue:()=>`public:${l}`})),port:_(e.port.port),publicAccess:i===`public`,worker:e.port.worker})},t[7]=r,t[8]=l,t[9]=i,t[10]=e.port.port,t[11]=e.port.worker,t[12]=g,t[13]=T):T=t[13];let E;if(t[14]!==e.port.name||t[15]!==e.port.process){let n;t[17]===e.port.name?n=t[18]:(n=()=>e.port.name,t[17]=e.port.name,t[18]=n),E=ne(e.port.process,n),t[14]=e.port.name,t[15]=e.port.process,t[16]=E}else E=t[16];let D;t[19]===E?D=t[20]:(D=(0,Q.jsx)(ct,{children:E}),t[19]=E,t[20]=D);let O;t[21]===e.port.port?O=t[22]:(O=S(e.port.port),t[21]=e.port.port,t[22]=O);let k;t[23]===O?k=t[24]:(k=(0,Q.jsxs)(lt,{children:[`Port `,O]}),t[23]=O,t[24]=k);let A;t[25]!==D||t[26]!==k?(A=(0,Q.jsxs)(ot,{children:[D,k]}),t[25]=D,t[26]=k,t[27]=A):A=t[27];let j;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(j=e=>{p(Ot)(e)&&a(e)},t[28]=j):j=t[28];let M;t[29]===x?M=t[30]:(M=u(Ot.literals,e=>(0,Q.jsx)(he,{value:e,disabled:x,children:w(e)},e)),t[29]=x,t[30]=M);let N;t[31]===M?N=t[32]:(N=(0,Q.jsx)(ye,{className:`w-full`,children:M}),t[31]=M,t[32]=N);let ie;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,Q.jsx)(fe,{htmlFor:`expose-tailnet`,children:`Address`}),t[33]=ie):ie=t[33];let P;t[34]!==e.port.port||t[35]!==g?(P=C(g===``,{onFalse:()=>`https://${g}:${S(e.port.port)}`,onTrue:m(``)}),t[34]=e.port.port,t[35]=g,t[36]=P):P=t[36];let F;t[37]===P?F=t[38]:(F=(0,Q.jsx)(ue,{value:`tailnet`,children:(0,Q.jsxs)(ge,{children:[ie,(0,Q.jsx)(Dt,{id:`expose-tailnet`,readOnly:!0,value:P})]})}),t[37]=P,t[38]=F);let ae;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,Q.jsx)(fe,{htmlFor:`expose-public`,children:`Hostname`}),t[39]=ae):ae=t[39];let oe=i===`public`,I;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>d(re(e.target.value)),t[40]=I):I=t[40];let L;t[41]!==l||t[42]!==x||t[43]!==oe?(L=(0,Q.jsx)(ue,{value:`public`,children:(0,Q.jsxs)(ge,{children:[ae,(0,Q.jsx)(Dt,{id:`expose-public`,required:oe,placeholder:`app.example.com`,autoCapitalize:`none`,spellCheck:!1,value:l,disabled:x,onChange:I})]})}),t[41]=l,t[42]=x,t[43]=oe,t[44]=L):L=t[44];let R;t[45]!==i||t[46]!==N||t[47]!==F||t[48]!==L?(R=(0,Q.jsxs)(le,{value:i,onValueChange:j,children:[N,F,L]}),t[45]=i,t[46]=N,t[47]=F,t[48]=L,t[49]=R):R=t[49];let z;t[50]===n?z=t[51]:(z=(0,Q.jsx)(Ce,{result:n}),t[50]=n,t[51]=z);let B;t[52]===x?B=t[53]:(B=(0,Q.jsx)(rt,{render:(0,Q.jsx)(o,{variant:`outline`,type:`button`,disabled:x}),children:`Cancel`}),t[52]=x,t[53]=B);let se=x||i===`tailnet`&&g===``||i===`public`&&l===``,V;t[54]===x?V=t[55]:(V=C(x,{onFalse:m(`Expose`),onTrue:m(`Exposing…`)}),t[54]=x,t[55]=V);let H;t[56]!==se||t[57]!==V?(H=(0,Q.jsx)(o,{type:`submit`,disabled:se,children:V}),t[56]=se,t[57]=V,t[58]=H):H=t[58];let U;t[59]!==B||t[60]!==H?(U=(0,Q.jsxs)(st,{children:[B,H]}),t[59]=B,t[60]=H,t[61]=U):U=t[61];let W;t[62]!==R||t[63]!==z||t[64]!==U||t[65]!==A?(W=(0,Q.jsxs)(xe,{children:[A,R,z,U]}),t[62]=R,t[63]=z,t[64]=U,t[65]=A,t[66]=W):W=t[66];let G;return t[67]!==T||t[68]!==W?(G=(0,Q.jsx)(`form`,{onSubmit:T,children:W}),t[67]=T,t[68]=W,t[69]=G):G=t[69],G}function At(e){return e.hostname}function jt(){let e=(0,$.c)(2),[t,n]=c(_e),r;return e[0]===n?r=e[1]:(r=e=>(0,Q.jsx)(tt,{open:!0,onOpenChange:e=>{e||n(h())},children:(0,Q.jsx)(at,{showCloseButton:!1,children:(0,Q.jsx)(kt,{items:e.snapshot.items,port:e.port},e.port.id)})}),e[0]=n,e[1]=r),y(l({port:t,snapshot:d(a(Se))}),{onNone:x,onSome:r})}function Mt(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(jt,{}),(0,Q.jsx)(i,{})]}),e[0]=t):t=e[0],t}export{Mt as component};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,n,o as r}from"./react-BPjvcVqE.js";import{u as i}from"./index-C1sxP13x.js";import{E as a,f as o,o as s,x as c}from"./schema-B8wXLRy9.js";import{$i as l,Ai as u,G as d,Ia as f,Nt as p,Pa as m,W as ee,_a as h,_t as g,ca as _,ea as v,ga as y,hi as b,ja as x,la as S,li as C,pr as w,ra as te,sa as ne,wr as re}from"./effect-VX5AJqxs.js";import{A as T,C as E,Ct as D,D as O,E as k,F as A,G as j,Gt as M,I as N,J as ie,L as P,M as F,N as ae,O as oe,P as I,Qt as L,R,T as z,V as B,Wt as se,a as ce,an as V,b as H,bn as U,d as le,f as ue,ft as W,gt as G,hn as de,i as fe,k as pe,lt as me,m as he,n as ge,o as _e,on as ve,p as ye,q as be,r as xe,s as Se,t as Ce,tt as we,w as Te,x as Ee,y as De}from"./result-error-BJVhQc2A.js";import{R as Oe,_ as ke,a as Ae,g as je,h as K,l as Me,o as q,p as Ne,r as J,t as Y}from"./dist-BlsWFKii.js";var X=e(r(),1),Pe=new Map([[`bold`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),X.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Fe=X.forwardRef((e,t)=>X.createElement(Oe,{ref:t,...e,weights:Pe}));Fe.displayName=`XIcon`;var Ie=X.createContext(void 0);function Z(e){let t=X.useContext(Ie);if(!e&&t===void 0)throw Error(Ne(27));return t}var Le=X.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Z(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return J(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:M,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Re=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Z(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Me({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,D(me,e.nativeEvent))}return J(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),ze=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Z(),c=z(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),J(`p`,e,{ref:t,props:[{id:c},o]})}),Be=X.createContext(void 0);function Ve(){let e=X.useContext(Be);if(e===void 0)throw Error(Ne(26));return e}var He=`--nested-dialogs`,Ue=`data-nested-dialog-open`,We={...se,...L,nestedDialogOpen(e){return e?{[Ue]:``}:null}},Q=t(),Ge=X.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Z(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),ee=c.useState(`nested`),h=c.useState(`nestedOpenDialogCount`),g=c.useState(`open`),_=c.useState(`openMethod`),v=c.useState(`titleElementId`),y=c.useState(`transitionStatus`),b=c.useState(`role`),x=d.useState(`floatingId`);Ve(),B({open:g,ref:c.context.popupRef,onComplete(){g&&c.context.onOpenChangeComplete?.(!0)}});let S=o===void 0?F(c.context.popupRef):o,C=h>0,w=c.useStateSetter(`popupElement`),te=J(`div`,e,{state:{open:g,nested:ee,transitionStatus:y,nestedDialogOpen:C},props:[f,{id:x,"aria-labelledby":v,"aria-describedby":l,role:b,...pe,hidden:!m,onKeyDown(e){De.has(e.key)&&e.stopPropagation()},style:{[He]:h}},s],ref:[t,c.context.popupRef,w],stateAttributesMapping:We});return(0,Q.jsx)(ie,{context:d,openInteractionType:_,disabled:!m,closeOnFocusOut:!u,initialFocus:S,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:te})}),Ke=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Z(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Q.jsx)(Be.Provider,{value:n,children:(0,Q.jsxs)(we,{ref:t,...r,children:[a&&o===!0&&(0,Q.jsx)(Ee,{ref:i.context.internalBackdropRef,inert:E(!s)}),e.children]})}):null});function qe({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=X.useState(0),[d,f]=X.useState(0),p=l===0,m=be(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=ve(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||V(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return H(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),K(()=>{!r&&!i&&(u(0),f(0))},[r,i]),K(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),N(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Je={...O,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Ye=class extends j{constructor(e,t,n){let r=new oe,i=Xe(e,r,t,n);super(i,Ze(r),Je)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(ae(this.state,e,t.trigger)))}};function Xe(e,t,n,r=!1){return{...k(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Ze(e){return{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Qe(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,ee=m?!0:c,h=m||s,g=m?`alertdialog`:`dialog`,_=Z(!0),v={modal:ee,disablePointerDismissal:h,nested:_!=null,role:g},y=P((e,t)=>new Ye({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...v},e,t),!0);y.useControlledProp(`openProp`,r),y.useControlledProp(`triggerIdProp`,d),y.useSyncedValues(v),y.useContextCallback(`onOpenChange`,a),y.useContextCallback(`onOpenChangeComplete`,o);let b=y.useState(`open`),x=y.useState(`mounted`),S=y.useState(`payload`);R(y,b),I(y);let{forceUnmount:C}=A(b,y);X.useImperativeHandle(l,()=>({unmount:C,close:()=>y.setOpen(!1,D(W))}),[C,y]);let w=b||x||u!=null;return(0,Q.jsxs)(Ie.Provider,{value:y,children:[u&&(0,Q.jsx)(T,{handle:u,store:y}),w&&(0,Q.jsx)(qe,{store:y,parentContext:_?.context,isDrawer:p}),typeof n==`function`?n({payload:S}):n]})}var $e=U(function(e){return Qe(`dialog`,e)}),et=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Z(),c=z(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),J(`h2`,e,{ref:t,props:[{id:c},o]})}),$=n();function tt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)($e,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function nt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Ke,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function rt(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Re,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function it(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Le,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function at(e){let t=(0,$.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=a===void 0||a,c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(it,{}),t[5]=c):c=t[5];let l;t[6]===r?l=t[7]:(l=Y(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-none bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=l);let u;t[8]===s?u=t[9]:(u=s&&(0,Q.jsxs)(Re,{"data-slot":`dialog-close`,render:(0,Q.jsx)(o,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Q.jsx)(Fe,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=s,t[9]=u);let d;return t[10]!==n||t[11]!==i||t[12]!==l||t[13]!==u?(d=(0,Q.jsxs)(nt,{children:[c,(0,Q.jsxs)(Ge,{"data-slot":`dialog-content`,className:l,...i,children:[n,u]})]}),t[10]=n,t[11]=i,t[12]=l,t[13]=u,t[14]=d):d=t[14],d}function ot(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`flex flex-col gap-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function st(e){let t=(0,$.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,showCloseButton:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=a!==void 0&&a,c;t[5]===r?c=t[6]:(c=Y(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),t[5]=r,t[6]=c);let l;t[7]===s?l=t[8]:(l=s&&(0,Q.jsx)(Re,{render:(0,Q.jsx)(o,{variant:`outline`}),children:`Close`}),t[7]=s,t[8]=l);let u;return t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:c,...i,children:[n,l]}),t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function ct(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(et,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function lt(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(ze,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ut=`data-valid`,dt=`data-invalid`,ft={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},pt={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},mt={valid(e){return e===null?null:e?{[ut]:``}:{[dt]:``}}},ht={invalid:void 0,name:void 0,validityData:{state:ft,errors:[],error:``,value:``,initialValue:null},setValidityData:q,disabled:void 0,setTouched:q,setDirty:q,setFilled:q,setFocused:q,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:pt,registerFieldControl:q,validation:{getValidationProps:(e,t=Ae)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:q,getInputControl:()=>null,commit:async()=>{},change:q}},gt=X.createContext(ht);function _t(e=!0){let t=X.useContext(gt);if(t.setValidityData===q&&!e)throw Error(Ne(28));return t}var vt=X.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:q,validationMode:`onSubmit`,submitCountRef:{current:0}});function yt(){return X.useContext(vt)}var bt=X.createContext({controlId:void 0,registerControlId:q,resetControlId:q,labelId:void 0,setLabelId:q,messageIds:[],setMessageIds:q,getDescriptionProps:e=>e});function xt(){return X.useContext(bt)}function St(e,t,n){let{setFocused:r,focusOwnerRef:i}=_t(),a=je(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return K(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function Ct(e,t,n,r,i=!0,a){let{registerFieldControl:o}=_t(),s=ke(()=>Symbol());K(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function wt(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=xt(),o=z(),s=ke(()=>Symbol()),c=X.useRef(!1),l=X.useRef(!1),u=je(()=>{c.current&&i!==q&&(c.current=!1,i(s.current,void 0))});return K(()=>{if(!n||i===q){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),K(()=>u,[u]),(n?r:void 0)??t??o}var Tt=X.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:ee,setTouched:h,setDirty:g,validityData:_,setFilled:v,validationMode:y,validation:b}=_t(),{clearErrors:x,elementRef:S,submitCountRef:C}=yt(),w=ee||s,te=m??a,ne={...p,disabled:w},{labelId:re}=xt(),T=wt({id:i}),E=o!==void 0,O=o==null?void 0:String(o),k=je(()=>b.inputRef.current?.value);Ct(b.inputRef,T,O,k,!w,a),K(()=>{let e=O??b.inputRef.current?.value;e!==void 0&&v(e!==``)},[O,l,b.inputRef,v]),Te(O,()=>{O!==void 0&&(x(te),g(O!==(_.initialValue??``)),b.change(O))});let A=X.useRef(null),j=St(w,A),M=de();return J(`input`,e,{ref:[t,A],state:ne,props:[{id:T,disabled:w,name:te,ref:b.inputRef,"aria-labelledby":re,autoFocus:u,...E?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=D(G,e.nativeEvent);c?.(t,n),E||(g(t!==(_.initialValue??``)),v(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(x(te),b.change(t)))},onFocus(){j(!0)},onBlur(e){if(h(!0),j(!1),y===`onBlur`){let t=e.currentTarget.value;b.commit(t),E&&queueMicrotask(()=>{let e=b.inputRef.current?.value;e!==void 0&&e!==t&&e!==(_.initialValue??``)&&b.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){h(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===S.current&&!e.defaultPrevented){let t=e.currentTarget,n=C.current;M.start(0,()=>{C.current===n&&b.commit(t.value)})}else b.commit(t)}}},f,e=>b.getValidationProps(w,e)],stateAttributesMapping:mt})}),Et=X.forwardRef(function(e,t){return(0,Q.jsx)(Tt,{ref:t,...e})});function Dt(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Y(`h-8 w-full min-w-0 rounded-none border border-input bg-transparent px-2.5 py-1 text-xs transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-xs dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,Q.jsx)(Et,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Ot=g([`tailnet`,`public`]);function kt(e){let t=(0,$.c)(70),[n,r]=c(ce),[i,a]=(0,X.useState)(`tailnet`),[l,d]=(0,X.useState)(``),h;if(t[0]!==e.items||t[1]!==e.port.worker){let n;t[3]===e.port.worker?n=t[4]:(n=t=>v(t.self,!0)&&t.worker===e.port.worker,t[3]=e.port.worker,t[4]=n),h=ne(f(e.items,b(n),te(At)),m(``)),t[0]=e.items,t[1]=e.port.worker,t[2]=h}else h=t[2];let g=h,y;t[5]===n?y=t[6]:(y=ee(n),t[5]=n,t[6]=y);let x=y,T;t[7]!==r||t[8]!==l||t[9]!==i||t[10]!==e.port.port||t[11]!==e.port.worker||t[12]!==g?(T=t=>{t.preventDefault(),r({hostname:C(i===`public`,{onFalse:()=>g,onTrue:()=>l}),kind:i,name:s.make(C(i===`public`,{onFalse:()=>`tailnet:${_(e.port.port)}`,onTrue:()=>`public:${l}`})),port:_(e.port.port),publicAccess:i===`public`,worker:e.port.worker})},t[7]=r,t[8]=l,t[9]=i,t[10]=e.port.port,t[11]=e.port.worker,t[12]=g,t[13]=T):T=t[13];let E;if(t[14]!==e.port.name||t[15]!==e.port.process){let n;t[17]===e.port.name?n=t[18]:(n=()=>e.port.name,t[17]=e.port.name,t[18]=n),E=ne(e.port.process,n),t[14]=e.port.name,t[15]=e.port.process,t[16]=E}else E=t[16];let D;t[19]===E?D=t[20]:(D=(0,Q.jsx)(ct,{children:E}),t[19]=E,t[20]=D);let O;t[21]===e.port.port?O=t[22]:(O=S(e.port.port),t[21]=e.port.port,t[22]=O);let k;t[23]===O?k=t[24]:(k=(0,Q.jsxs)(lt,{children:[`Port `,O]}),t[23]=O,t[24]=k);let A;t[25]!==D||t[26]!==k?(A=(0,Q.jsxs)(ot,{children:[D,k]}),t[25]=D,t[26]=k,t[27]=A):A=t[27];let j;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(j=e=>{p(Ot)(e)&&a(e)},t[28]=j):j=t[28];let M;t[29]===x?M=t[30]:(M=u(Ot.literals,e=>(0,Q.jsx)(he,{value:e,disabled:x,children:w(e)},e)),t[29]=x,t[30]=M);let N;t[31]===M?N=t[32]:(N=(0,Q.jsx)(ye,{className:`w-full`,children:M}),t[31]=M,t[32]=N);let ie;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,Q.jsx)(fe,{htmlFor:`expose-tailnet`,children:`Address`}),t[33]=ie):ie=t[33];let P;t[34]!==e.port.port||t[35]!==g?(P=C(g===``,{onFalse:()=>`https://${g}:${S(e.port.port)}`,onTrue:m(``)}),t[34]=e.port.port,t[35]=g,t[36]=P):P=t[36];let F;t[37]===P?F=t[38]:(F=(0,Q.jsx)(ue,{value:`tailnet`,children:(0,Q.jsxs)(ge,{children:[ie,(0,Q.jsx)(Dt,{id:`expose-tailnet`,readOnly:!0,value:P})]})}),t[37]=P,t[38]=F);let ae;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,Q.jsx)(fe,{htmlFor:`expose-public`,children:`Hostname`}),t[39]=ae):ae=t[39];let oe=i===`public`,I;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>d(re(e.target.value)),t[40]=I):I=t[40];let L;t[41]!==l||t[42]!==x||t[43]!==oe?(L=(0,Q.jsx)(ue,{value:`public`,children:(0,Q.jsxs)(ge,{children:[ae,(0,Q.jsx)(Dt,{id:`expose-public`,required:oe,placeholder:`app.example.com`,autoCapitalize:`none`,spellCheck:!1,value:l,disabled:x,onChange:I})]})}),t[41]=l,t[42]=x,t[43]=oe,t[44]=L):L=t[44];let R;t[45]!==i||t[46]!==N||t[47]!==F||t[48]!==L?(R=(0,Q.jsxs)(le,{value:i,onValueChange:j,children:[N,F,L]}),t[45]=i,t[46]=N,t[47]=F,t[48]=L,t[49]=R):R=t[49];let z;t[50]===n?z=t[51]:(z=(0,Q.jsx)(Ce,{result:n}),t[50]=n,t[51]=z);let B;t[52]===x?B=t[53]:(B=(0,Q.jsx)(rt,{render:(0,Q.jsx)(o,{variant:`outline`,type:`button`,disabled:x}),children:`Cancel`}),t[52]=x,t[53]=B);let se=x||i===`tailnet`&&g===``||i===`public`&&l===``,V;t[54]===x?V=t[55]:(V=C(x,{onFalse:m(`Expose`),onTrue:m(`Exposing…`)}),t[54]=x,t[55]=V);let H;t[56]!==se||t[57]!==V?(H=(0,Q.jsx)(o,{type:`submit`,disabled:se,children:V}),t[56]=se,t[57]=V,t[58]=H):H=t[58];let U;t[59]!==B||t[60]!==H?(U=(0,Q.jsxs)(st,{children:[B,H]}),t[59]=B,t[60]=H,t[61]=U):U=t[61];let W;t[62]!==R||t[63]!==z||t[64]!==U||t[65]!==A?(W=(0,Q.jsxs)(xe,{children:[A,R,z,U]}),t[62]=R,t[63]=z,t[64]=U,t[65]=A,t[66]=W):W=t[66];let G;return t[67]!==T||t[68]!==W?(G=(0,Q.jsx)(`form`,{onSubmit:T,children:W}),t[67]=T,t[68]=W,t[69]=G):G=t[69],G}function At(e){return e.hostname}function jt(){let e=(0,$.c)(2),[t,n]=c(_e),r;return e[0]===n?r=e[1]:(r=e=>(0,Q.jsx)(tt,{open:!0,onOpenChange:e=>{e||n(h())},children:(0,Q.jsx)(at,{showCloseButton:!1,children:(0,Q.jsx)(kt,{items:e.snapshot.items,port:e.port},e.port.id)})}),e[0]=n,e[1]=r),y(l({port:t,snapshot:d(a(Se))}),{onNone:x,onSome:r})}function Mt(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(jt,{}),(0,Q.jsx)(i,{})]}),e[0]=t):t=e[0],t}export{Mt as component};
|
package/dist/client/index.html
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
16
16
|
|
|
17
17
|
<title>Deploy</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-C1sxP13x.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/react-BPjvcVqE.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/dist-BlsWFKii.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/effect-VX5AJqxs.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/schema-B8wXLRy9.js">
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BBUIUMy0.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
|
27
27
|
<div id="root"></div>
|
package/dist/server.js
CHANGED
|
@@ -109349,19 +109349,42 @@ function unitFailures(text) {
|
|
|
109349
109349
|
}));
|
|
109350
109350
|
}
|
|
109351
109351
|
// src/services/inventory/lib/launchd.ts
|
|
109352
|
-
|
|
109353
|
-
return
|
|
109354
|
-
const [pid, status, label] = split$1(line, " ");
|
|
109355
|
-
|
|
109356
|
-
|
|
109357
|
-
|
|
109358
|
-
|
|
109359
|
-
|
|
109360
|
-
|
|
109361
|
-
|
|
109362
|
-
|
|
109363
|
-
|
|
109364
|
-
});
|
|
109352
|
+
function launchAgents(text) {
|
|
109353
|
+
return getSomes(pipe(text, split$1("\n"), map$10((line) => {
|
|
109354
|
+
const [pid, status = "", label = ""] = split$1(trim(line), " ");
|
|
109355
|
+
if (!isNonEmpty$1(label) || startsWith("com.apple.")(label) || startsWith("application.")(label) || startsWith("deslop-")(label) && endsWith("-update")(label)) return none();
|
|
109356
|
+
const processId = filter$7(decodeOption(ProcessIdFromString)(pid), (value) => value > 0);
|
|
109357
|
+
if (isNone(processId) && pid !== "-") return none();
|
|
109358
|
+
return some$1({
|
|
109359
|
+
detail: "user · launch agent",
|
|
109360
|
+
label: UnitId.make(label),
|
|
109361
|
+
pid: processId,
|
|
109362
|
+
status: parse$2(status)
|
|
109363
|
+
});
|
|
109364
|
+
})));
|
|
109365
|
+
}
|
|
109366
|
+
function dockApplications(text) {
|
|
109367
|
+
return getSomes(pipe(text, split$1(/\n(?=\s*[0-9]+\))/u), map$10((block) => {
|
|
109368
|
+
const name = pipe(match$2(/^\s*[0-9]+\) "(.+)" ASN:/u)(block), map$13((match) => match[1] ?? ""), filter$7(isNonEmpty$1));
|
|
109369
|
+
const pid = pipe(match$2(/^\s+pid = ([0-9]+) .*\btype="Foreground"(?:\s|$)/mu)(block), flatMap$8((match) => decodeOption(ProcessIdFromString)(match[1] ?? "")), filter$7((value) => value > 0));
|
|
109370
|
+
return map$13(all$4({
|
|
109371
|
+
name,
|
|
109372
|
+
pid
|
|
109373
|
+
}), (app) => ({
|
|
109374
|
+
detail: "user · application",
|
|
109375
|
+
label: UnitId.make(app.name),
|
|
109376
|
+
pid: app.pid
|
|
109377
|
+
}));
|
|
109378
|
+
})));
|
|
109379
|
+
}
|
|
109380
|
+
function macApplications(agents, applications) {
|
|
109381
|
+
const running = getSomes(map$10(agents, (agent) => map$13(agent.pid, (pid) => ({
|
|
109382
|
+
detail: agent.detail,
|
|
109383
|
+
label: agent.label,
|
|
109384
|
+
pid
|
|
109385
|
+
}))));
|
|
109386
|
+
return dedupeWith([...applications, ...running], (left, right) => left.pid === right.pid);
|
|
109387
|
+
}
|
|
109365
109388
|
// src/services/inventory/lib/command.ts
|
|
109366
109389
|
const WRAPPERS = [
|
|
109367
109390
|
"env",
|
|
@@ -109994,8 +110017,10 @@ function launchdProcesses(text, agents) {
|
|
|
109994
110017
|
start: match[5] ?? ""
|
|
109995
110018
|
}))))));
|
|
109996
110019
|
const parents = fromIterable$5(map$10(rows, (row) => [row.pid, row.parent]));
|
|
109997
|
-
function agent(pid) {
|
|
109998
|
-
|
|
110020
|
+
function agent(pid, visited = empty$5()) {
|
|
110021
|
+
if (has(visited, pid)) return none();
|
|
110022
|
+
add$1(visited, pid);
|
|
110023
|
+
return pipe(agents, get$8(pid), orElse$3(() => pipe(parents, get$8(pid), flatMap$8((parent) => agent(parent, visited)))));
|
|
109999
110024
|
}
|
|
110000
110025
|
return getSomes(map$10(rows, (row) => flatMap$8(agent(row.pid), (unit) => map$13(all$4({
|
|
110001
110026
|
start: make$76(row.start),
|
|
@@ -110357,7 +110382,8 @@ var Inventory = class extends Service$1()("@deslop/deploy/services/inventory/ser
|
|
|
110357
110382
|
});
|
|
110358
110383
|
const darwin = gen(function* () {
|
|
110359
110384
|
const launchd = yield* all$1({
|
|
110360
|
-
agents: result$1(
|
|
110385
|
+
agents: result$1(map$7(command("launchctl", ["list"]), launchAgents)),
|
|
110386
|
+
applications: result$1(map$7(command("/usr/bin/lsappinfo", ["list"]), dockApplications)),
|
|
110361
110387
|
table: result$1(command("env", [
|
|
110362
110388
|
"LC_ALL=C",
|
|
110363
110389
|
"ps",
|
|
@@ -110368,8 +110394,23 @@ var Inventory = class extends Service$1()("@deslop/deploy/services/inventory/ser
|
|
|
110368
110394
|
}, { concurrency: "unbounded" });
|
|
110369
110395
|
const time = yield* now;
|
|
110370
110396
|
const total = millis(sumAll(flatMap$6(cpus(), (cpu) => values(cpu.times))));
|
|
110397
|
+
const apps = macApplications(getOrElse(launchd.agents, () => []), getOrElse(launchd.applications, () => []));
|
|
110398
|
+
function appItems(found) {
|
|
110399
|
+
return map$10(found, (app) => InventoryItem.make({
|
|
110400
|
+
active: true,
|
|
110401
|
+
detail: app.detail,
|
|
110402
|
+
id: ItemId.make(`${worker}:user:${app.label}`),
|
|
110403
|
+
kind: "service",
|
|
110404
|
+
name: app.label,
|
|
110405
|
+
running: true,
|
|
110406
|
+
scope: some$1("user"),
|
|
110407
|
+
state: "running",
|
|
110408
|
+
url: none(),
|
|
110409
|
+
worker
|
|
110410
|
+
}));
|
|
110411
|
+
}
|
|
110371
110412
|
const records = map$12(launchd.table, (text) => {
|
|
110372
|
-
const agents = fromIterable$5(
|
|
110413
|
+
const agents = fromIterable$5(map$10(apps, (app) => [app.pid, app.label]));
|
|
110373
110414
|
return filter$5(launchdProcesses(text, agents), (record) => record.process.pid === selfProcess || !pipe(agents, get$8(selfProcess), contains$2(record.unit)));
|
|
110374
110415
|
});
|
|
110375
110416
|
const owned = getOrElse(records, empty$15);
|
|
@@ -110379,53 +110420,57 @@ var Inventory = class extends Service$1()("@deslop/deploy/services/inventory/ser
|
|
|
110379
110420
|
time,
|
|
110380
110421
|
total
|
|
110381
110422
|
})),
|
|
110382
|
-
sources: [
|
|
110383
|
-
|
|
110384
|
-
|
|
110385
|
-
|
|
110386
|
-
|
|
110387
|
-
|
|
110388
|
-
|
|
110389
|
-
|
|
110390
|
-
|
|
110391
|
-
|
|
110392
|
-
|
|
110393
|
-
|
|
110394
|
-
|
|
110395
|
-
|
|
110396
|
-
running: isSome(agent.pid),
|
|
110397
|
-
scope: some$1("user"),
|
|
110398
|
-
state: match$8(agent.pid, {
|
|
110399
|
-
onNone: () => match(agent.status === 0, {
|
|
110400
|
-
onFalse: constant("failed · failed"),
|
|
110401
|
-
onTrue: constant("inactive · dead")
|
|
110423
|
+
sources: [
|
|
110424
|
+
collect("Launch agents", map$7(fromResult(launchd.agents), (agents) => pipe(agents, filter$5((agent) => match$8(agent.pid, {
|
|
110425
|
+
onNone: () => exists(agent.status, (status) => status !== 0),
|
|
110426
|
+
onSome: (id) => some(apps, (app) => app.pid === id && app.label === agent.label)
|
|
110427
|
+
})), map$10((agent) => InventoryItem.make({
|
|
110428
|
+
active: isSome(agent.pid),
|
|
110429
|
+
detail: agent.detail,
|
|
110430
|
+
failure: pipe(agent.status, filter$7((status) => isNone(agent.pid) && status !== 0), map$13((status) => ({
|
|
110431
|
+
at: none(),
|
|
110432
|
+
reason: exitFailure(status)
|
|
110433
|
+
}))),
|
|
110434
|
+
health: match(isNone(agent.pid), {
|
|
110435
|
+
onFalse: constant("quiet"),
|
|
110436
|
+
onTrue: constant("error")
|
|
110402
110437
|
}),
|
|
110403
|
-
|
|
110404
|
-
|
|
110405
|
-
|
|
110406
|
-
|
|
110407
|
-
|
|
110408
|
-
|
|
110409
|
-
|
|
110410
|
-
|
|
110411
|
-
|
|
110412
|
-
|
|
110413
|
-
|
|
110414
|
-
|
|
110415
|
-
|
|
110416
|
-
|
|
110417
|
-
|
|
110418
|
-
|
|
110419
|
-
|
|
110420
|
-
|
|
110421
|
-
|
|
110422
|
-
|
|
110423
|
-
|
|
110424
|
-
|
|
110425
|
-
|
|
110426
|
-
|
|
110427
|
-
|
|
110428
|
-
|
|
110438
|
+
id: ItemId.make(`${worker}:user:${agent.label}`),
|
|
110439
|
+
kind: "service",
|
|
110440
|
+
name: agent.label,
|
|
110441
|
+
running: isSome(agent.pid),
|
|
110442
|
+
scope: some$1("user"),
|
|
110443
|
+
state: match$8(agent.pid, {
|
|
110444
|
+
onNone: constant("failed · failed"),
|
|
110445
|
+
onSome: constant("running")
|
|
110446
|
+
}),
|
|
110447
|
+
url: none(),
|
|
110448
|
+
worker
|
|
110449
|
+
}))))),
|
|
110450
|
+
collect("Applications", map$7(fromResult(launchd.applications), appItems)),
|
|
110451
|
+
collect("Listening ports", flatMap$3(command("lsof", [
|
|
110452
|
+
"-nP",
|
|
110453
|
+
"+c0",
|
|
110454
|
+
"-iTCP",
|
|
110455
|
+
"-sTCP:LISTEN",
|
|
110456
|
+
"-iUDP",
|
|
110457
|
+
"-F",
|
|
110458
|
+
"pctPnT"
|
|
110459
|
+
]), (text) => portItems(lsofSockets(text), worker, http, {
|
|
110460
|
+
cwd: fnUntraced(function* (processId) {
|
|
110461
|
+
return pipe(yield* option$1(command("lsof", [
|
|
110462
|
+
"-nP",
|
|
110463
|
+
"-a",
|
|
110464
|
+
"-p",
|
|
110465
|
+
`${processId}`,
|
|
110466
|
+
"-d",
|
|
110467
|
+
"cwd",
|
|
110468
|
+
"-Fn"
|
|
110469
|
+
])), getOrElse$1(constant("")), split$1("\n"), findFirst(startsWith("n")), map$13(slice(1)));
|
|
110470
|
+
}),
|
|
110471
|
+
unit: (processId) => succeed$5(pipe(owned, findFirst((record) => record.process.pid === processId), map$13((record) => record.unit)))
|
|
110472
|
+
})))
|
|
110473
|
+
]
|
|
110429
110474
|
};
|
|
110430
110475
|
});
|
|
110431
110476
|
const start = fnUntraced(function* (input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/deploy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1329",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=26"
|
|
42
42
|
},
|
|
43
|
-
"fingerprint": "
|
|
43
|
+
"fingerprint": "afe5d64e3e1f73a8f8f83586b7de79f206d737d753898a6abdceffad2eb15488"
|
|
44
44
|
}
|