@tempots/ui 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Be=Object.defineProperty,Ue=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d=(t,e,n)=>Ue(t,typeof e!="symbol"?e+"":e,n);const Yt="$__signal__",Nt="$__prop__",Ft="$__computed__";var Jt;Jt=Yt;const je=class F{constructor(e,n){d(this,Jt,!0),d(this,"_value"),d(this,"_derivatives",[]),d(this,"_onValueListeners",[]),d(this,"_onDisposeListeners",[]),d(this,"get",()=>this._value),d(this,"hasListeners",()=>this._onValueListeners.length>0),d(this,"on",o=>(o(this.get()),this._onValueListeners.push(o),()=>{this._onValueListeners.splice(this._onValueListeners.indexOf(o),1)})),d(this,"_setAndNotify",(o,i)=>{const s=this.equals(this._value,o);s||(this._value=o),(i||!s)&&this._onValueListeners.forEach(r=>r(o))}),d(this,"_disposed",!1),d(this,"isDisposed",()=>this._disposed),d(this,"onDispose",o=>{this._onDisposeListeners.push(o)}),d(this,"dispose",()=>{this._disposed||(this._disposed=!0,this._onDisposeListeners.forEach(o=>o()),this._onDisposeListeners.length=0,this._derivatives.length=0)}),d(this,"map",(o,i=(s,r)=>s===r)=>{const s=new ct(()=>{try{return o(this.get())}catch(r){throw console.error("Error in Signal.map:",r),r}},i);return this.setDerivative(s),s}),d(this,"flatMap",(o,i=(s,r)=>s===r)=>{const s=new ct(()=>{try{return o(this.get()).get()}catch(r){throw console.error("Error in Signal.flatMap:",r),r}},i);return this.setDerivative(s),s}),d(this,"tap",o=>this.map(i=>(o(i),i))),d(this,"at",o=>this.map(i=>i[o])),d(this,"$",new Proxy(this,{get:(o,i)=>this.at(i)})),d(this,"filter",(o,i)=>{let s=i??this.get();const r=new ct(()=>{try{const c=this.get();return s=o(c)?c:s}catch(c){throw console.error("Error in Signal.filter:",c),c}},this.equals);return this.setDerivative(r),r}),d(this,"filterMap",(o,i,s=(r,c)=>r===c)=>{let r=i;const c=new ct(()=>{try{const l=this.get();return r=o(l)??r}catch(l){throw console.error("Error in Signal.filterMap:",l),l}},s);return this.setDerivative(c),c}),d(this,"mapAsync",(o,i,s,r=(c,l)=>c===l)=>{const c=P(i,r);let l=0;return c.onDispose(this.on(a=>{const f=++l;try{o(a).then(u=>{f===l&&c.set(u)}).catch(u=>{f===l&&(s!=null?c.set(s(u)):console.error("Unhandled promise rejection in Signal.mapAsync:",u))})}catch(u){throw console.error("Error in Signal.mapAsync:",u),u}})),c}),d(this,"mapMaybe",(o,i)=>this.map(s=>o(s)??i)),d(this,"feedProp",(o,i=!1)=>{const s=this.on(o.set);return o.onDispose(s),i?this.onDispose(o.dispose):this.onDispose(s),o}),d(this,"deriveProp",(o=!0)=>this.feedProp(P(this.get()),o)),d(this,"count",()=>{let o=0;return this.map(()=>++o)}),d(this,"setDerivative",o=>{this._derivatives.push(o),o.onDispose(()=>{this._derivatives.splice(this._derivatives.indexOf(o),1)}),o.onDispose(this.on(o.setDirty)),this.onDispose(o.dispose)}),this.equals=n,this._value=e}static ofPromise(e,n,o,i=(s,r)=>s===r){const s=new F(n,i);return e.then(r=>s._setAndNotify(r,!1)).catch(r=>{o!=null?s._setAndNotify(o(r),!1):console.error("Unhandled promise rejection in Signal.ofPromise:",r)}),s}static is(e){return e!=null&&e[Yt]===!0}static wrap(e,n=(o,i)=>o===i){return F.is(e)?e:new F(e,n)}static maybeWrap(e){return e==null?e:F.wrap(e)}static unwrap(e){return F.is(e)?e.get():e}static map(e,n){return F.is(e)?e.map(n):n(e)}get value(){return this._value}};let S=je;const qe=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);var $t,Vt;class ct extends(Vt=S,$t=Ft,Vt){constructor(e,n){super(void 0,n),d(this,$t,!0),d(this,"_isDirty",!1),d(this,"setDirty",()=>{this._isDirty||this._disposed||(this._isDirty=!0,this._derivatives.forEach(o=>o.setDirty()),this.scheduleNotify())}),d(this,"_scheduleCount",0),d(this,"scheduleNotify",()=>{const o=++this._scheduleCount;qe(()=>{this._scheduleCount!==o||this._disposed!==!1||this._isDirty&&(this._isDirty=!1,this._setAndNotify(this._fn(),!1))})}),d(this,"get",()=>(this._isDirty&&(this._isDirty=!1,this._value=this._fn(),this._setAndNotify(this._value,!0)),this._value)),this._fn=e,this.setDirty()}static is(e){return e!=null&&e[Ft]===!0}get value(){return this.get()}}var Wt,Ht;class St extends(Ht=S,Wt=Nt,Ht){constructor(){super(...arguments),d(this,Wt,!0),d(this,"set",e=>{this._setAndNotify(e,!1)}),d(this,"update",e=>{this._setAndNotify(e(this.get()),!1)}),d(this,"reducer",(e,...n)=>{const o=this;return function i(s){const r=o.value;o.update(c=>e(c,s)),!o.equals(r,o.value)&&n.forEach(c=>c({previousState:r,state:o.value,action:s,dispatch:i}))}}),d(this,"iso",(e,n,o=(i,s)=>i===s)=>{const i=new St(e(this.get()),o);return i.onDispose(this.on(s=>i.set(e(s)))),i.on(s=>this._setAndNotify(n(s),!1)),i}),d(this,"atProp",e=>this.iso(n=>n[e],n=>({...this.value,[e]:n})))}static is(e){return e!=null&&e[Nt]===!0}get value(){return this.get()}set value(e){this._setAndNotify(e,!1)}}function P(t,e=(n,o)=>n===o){return new St(t,e)}function Xe(t,e=(n,o)=>n===o){return new S(t,e)}const Kt=new Set(["checked","disabled","hidden","selected"]),Gt=new Set(["rowSpan","colSpan","tabIndex","valueAsNumber"]),Qt=new Set(["valueAsDate"]),Zt=new Set(["value","textContent","innerText","innerHTML","outerHTML","className","classList"]),xt=new Map;function Q(t,e){if(xt.has(t))return xt.get(t);{const n=e(t);return xt.set(t,n),n}}function Ye(t){return(e,n)=>{n==null?e[t]=null:e[t]=!!n}}function Je(t){return(e,n)=>{n==null?e[t]=null:e[t]=Number(n)}}function Ke(t){return(e,n)=>{n==null?e[t]=null:e[t]=n}}function Ge(t){return(e,n)=>{n==null?e[t]=null:e[t]=String(n)}}function Qe(t){return(e,n)=>{n==null?e.removeAttribute(t):e.setAttribute(t,n)}}function te(t){return Kt.has(t)?Q(t,Ye):Gt.has(t)?Q(t,Je):Qt.has(t)?Q(t,Ke):Zt.has(t)?Q(t,Ge):Q(t,Qe)}function ee(t){return e=>Kt.has(t)?!!e[t]:Gt.has(t)?Number(e[t]):Qt.has(t)?e[t]:Zt.has(t)?String(e[t]):e.getAttribute(t)}function q(t){const e=t;e&&e.onblur&&(e.onblur=null),!(!t||t.ownerDocument===void 0)&&t.parentElement&&t.parentElement.removeChild(t)}function Ze(t,e,n){let o=t.target;for(;o!=null&&!(o instanceof HTMLAnchorElement);)o=o.parentElement;if(o==null)return!0;const i=o;if(t.button!==0||t.ctrlKey||t.metaKey||i.target!=="_self"&&i.target!==""||i.getAttribute("download")!=null)return!0;if(n){const{pathname:s,search:r,hash:c}=i,l=s+r+c;if(i.getAttribute("href")!==l||e&&!/\/[^/.]*$/.test(s))return!0}return!1}const tn=(t,e={checkExtension:!0,checkExternalUrl:!0})=>n=>{const{checkExtension:o,checkExternalUrl:i}=e;Ze(n,o===!0,i===!0)||t()&&n.preventDefault()},en=t=>e=>{le(e);const n=e.createText(t);return e.appendOrInsert(n),o=>{o&&q(n)}},nn=t=>e=>{le(e);const n=e.createText(t.value);e.appendOrInsert(n);const o=t.on(i=>n.data=i);return i=>{o(),i&&q(n)}},X=(...t)=>e=>{const n=t.map(o=>b(o)(e));return o=>{n.forEach(i=>i(o))}},tt=()=>()=>{},on=t=>e=>(re(e),e.element.classList.add(...t),n=>{n&&e.element.classList.remove(...t)}),sn=t=>e=>{re(e);const n=e.element;let o=[];const i=t.on(s=>{o.forEach(r=>n.classList.remove(r)),o=(s??"").split(" ").filter(r=>r.length>0),n.classList.add(...o)});return s=>{i(),s&&o.forEach(r=>n.classList.remove(r)),o.length=0}},nt=(t,e)=>{const n=te(t),o=ee(t);return i=>{se(i,t);const s=o(i.element);return n(i.element,e),r=>{r&&n(i.element,s)}}},ot=(t,e)=>{const n=te(t),o=ee(t);return i=>{se(i,t);const s=o(i.element);return e.on(r=>n(i.element,r)),r=>{r&&n(i.element,s)}}},Lt=new Proxy({},{get:(t,e)=>e==="class"?n=>S.is(n)?sn(n):on((n??"").split(" ").filter(o=>o.length>0)):n=>S.is(n)?ot(e,n):nt(e,n)});new Proxy({},{get:(t,e)=>n=>S.is(n)?ot(`data-${e}`,n):nt(`data-${e}`,n)});new Proxy({},{get:(t,e)=>n=>S.is(n)?ot(`aria-${e}`,n):nt(`aria-${e}`,n)});new Proxy({},{get:(t,e)=>n=>S.is(n)?ot(e,n):nt(e,n)});new Proxy({},{get:(t,e)=>n=>S.is(n)?ot(e,n):nt(e,n)});function b(t){return t==null?tt:Array.isArray(t)?X(...t.map(b)):typeof t=="string"?en(t):S.is(t)?nn(t):t}function ne(t,...e){return n=>{const o=n.createElement(t,void 0);n.isFirstLevel&&Y.isSSR()&&ce(o),n.appendOrInsert(o),n=n.withElement(o);const i=e.map(s=>b(s)(n));return s=>{i.forEach(r=>r(!1)),s&&q(o)}}}function oe(t,e,...n){return o=>{const i=o.createElement(t,e);o.isFirstLevel&&Y.isSSR()&&ce(i),o.appendOrInsert(i),o=o.withElement(i);const s=n.map(r=>b(r)(o));return r=>{s.forEach(c=>c(!1)),r&&q(i)}}}const ie=new Proxy({},{get:(t,e)=>(...n)=>ne(e,n.flatMap(b))});new Proxy({},{get:(t,e)=>(...n)=>ne("input",Lt.type(e),...n)});const rn="http://www.w3.org/2000/svg";new Proxy({},{get:(t,e)=>(...n)=>oe(e,rn,n.flatMap(b))});const cn="http://www.w3.org/1998/Math/MathML";new Proxy({},{get:(t,e)=>(...n)=>oe(e,cn,n.flatMap(b))});const zt="data-tempo-attr",ln="data-tempo-class",an="data-tempo-node",un="data-tempo-text";function fn(t,e){const n=t.getAttribute(e);if(n!=null){const o=t.getAttribute(zt)??"{}",i={...JSON.parse(o),name:n};t.setAttribute(zt,JSON.stringify(i))}}function se(t,e){Y.isSSR()&&t.isFirstLevel&&fn(t.element,e)}function hn(t){t.setAttribute(ln,t.className)}function re(t){Y.isSSR()&&t.isFirstLevel&&hn(t.element)}function ce(t){t.setAttribute(an,"")}function dn(t){t.setAttribute(un,t.textContent??"")}function le(t){Y.isSSR()&&t.isFirstLevel&&dn(t.element)}function ae(){const t=globalThis;return t.__tempoSSR__==null&&(t.__tempoSSR__={isSSR:!1,counter:0}),t.__tempoSSR__}function ue(t,e){const n=ae();n[t]=e}function fe(t){return ae()[t]}function pn(){return fe("isSSR")}function he(){return fe("counter")}function mn(){ue("counter",(he()??0)+1)}function gn(){ue("counter",(he()??0)-1)}const Y={useDone:t=>(mn(),b(t(gn))),isSSR:pn},wn=(t,e)=>n=>(n.element.addEventListener(t,e),o=>{o&&n.element.removeEventListener(t,e)}),de=new Proxy({},{get:(t,e)=>n=>wn(e,n)}),lt=(t,e)=>n=>{n=n.makeRef();let o,i;const s=t.map(l=>Object.keys(l)[0]);let r;const c=s.on(l=>{if(l!==r){i==null||i.dispose(),o==null||o(!0),i=t.map(f=>f[l]);const a=e[l](i);o=b(a)(n),r=l}});return l=>{c(),l&&n.reference!=null&&q(n.reference),o==null||o(!0)}},B={bool:(t,e)=>lt(t.map(n=>n?{true:!0}:{false:!0}),e),field:(t,e,n)=>lt(t.map(o=>({[o[e]]:o})),n),kind:(t,e)=>B.field(t,"kind",e),tuple:(t,e)=>{const n=t.map(([o,i])=>({[o]:i}));return lt(n,e)},type:(t,e)=>B.field(t,"type",e),value:(t,e)=>lt(t.map(n=>({[n]:!0})),e)},yn=(t,e)=>n=>{const o=Object.values(t).reduce((i,s)=>{const r=n.getProvider(s);if(r==null)throw new Error(`No provider found for mark: ${s.description}`);return i[s]=r,i},{});return b(e(o))(n)},pe=(t,e)=>yn([t],n=>b(e(n[t]))),vn=(t,e,n)=>o=>{o=o.makeRef();let i=null,s=!1;const r=P(null),c=t.on(l=>{l==null?(i==null||i(!0),i=b((n==null?void 0:n())??tt)(o),s=!1):(r.value=l,s||(i==null||i(!0),i=b(e(r))(o),s=!0))});return l=>{c(),i==null||i(l),l&&o.reference&&q(o.reference)}},it=t=>e=>n=>t(n,e),xn=(t,e,n)=>vn(t.map(o=>o?!0:null),()=>e,n!=null?()=>n:void 0),me=t=>e=>t(e.element)??(()=>{});function bn(t,e){const n=t(e);return()=>n(!0)}const ge=(t,e)=>n=>{const o=n.document.querySelector(t);if(o===null)throw new Error(`Cannot find element by selector for portal: ${t}`);return bn(b(e),n.withElement(o).withFirstLevel())};function we(t){return Symbol(t)}const An=(t,e)=>n=>b(e)(n.withProviders(t)),ye=(t,e,n)=>An({[t]:e},b(n)),Sn=(t,e)=>n=>{const o=n.element,i=o.style.getPropertyValue(t);return o.style.setProperty(t,e),s=>{s&&o.style.setProperty(t,i)}},Ln=(t,e)=>n=>{const o=n.element,i=o.style.getPropertyValue(t);return e.on(s=>o.style.setProperty(t,s)),s=>{s&&o.style.setProperty(t,i)}};new Proxy({},{get:(t,e)=>n=>S.is(n)?Ln(e,n):Sn(e,n)});const Rt=we("LocationProvider");function ve(){const t=(window==null?void 0:window.location.hash)===""?void 0:(window==null?void 0:window.location.hash.substring(1))??void 0;return{pathname:(window==null?void 0:window.location.pathname)??"",search:Object.fromEntries(new URLSearchParams((window==null?void 0:window.location.search)??"").entries()),hash:t}}function xe(t,e){return t.pathname===e.pathname&&JSON.stringify(t.search)===JSON.stringify(e.search)&&t.hash===e.hash}function be(t){const e=new URL(t,(window==null?void 0:window.location.toString())??""),n=Object.fromEntries(e.searchParams.entries());return{pathname:e.pathname,search:n,hash:e.hash}}function Ae(t,e){const n=be(e);return t.set(n),t}function Rn(t){const n=new URLSearchParams(t.search).toString(),o=t.hash;return`${t.pathname}${n?`?${n}`:""}${o?`#${o}`:""}`}function Se(){const t=P(ve(),xe),e=()=>{const n={...t.value,pathname:(window==null?void 0:window.location.pathname)??""};t.set(n)};return window==null||window.addEventListener("popstate",e),t.onDispose(()=>{window==null||window.removeEventListener("popstate",e)}),t.on(n=>{const i=new URLSearchParams(n.search).toString(),s=n.hash,r=`${n.pathname}${i?`?${i}`:""}${s?`#${s}`:""}`;window==null||window.history.pushState({},"",r)}),t}function En(t){const e=Se();return X(it(e.dispose),ye(Rt,e,t))}function Et(t){return pe(Rt,e=>n=>{const o=P(e.value,e.equals);e.feedProp(o),o.on(e.set);const i=b(t(o))(n);return s=>{o.dispose(),i(s)}})}function _n(t,...e){return Et(n=>ie.a(de.click(tn(()=>(Ae(n,S.unwrap(t)),!0))),Lt.href(t),...e))}const _t=we("Appearance"),On=t=>{const e=window.matchMedia!=null&&window.matchMedia("(prefers-color-scheme: dark)").matches,n=P(e?"dark":"light"),o=s=>{n.set(s.matches?"dark":"light")},i=window.matchMedia!=null?window.matchMedia("(prefers-color-scheme: dark)"):void 0;return i==null||i.addEventListener("change",o),X(ye(_t,n,t),it(()=>i==null?void 0:i.removeEventListener("change",o)))},Pn=t=>pe(_t,t);function Le(t,e){if(typeof e=="function")return Le(t,{success:e});const n=e.failure??(r=>X(it(r.on(console.error)),r.map(c=>`Error: ${c}`))),o=e.success,i=e.loading??(()=>tt),s=e.notAsked??(()=>tt);return B.type(S.wrap(t),{AsyncSuccess:r=>o(r.$.value),AsyncFailure:r=>n(r.$.error),Loading:r=>i(r.$.previousValue??Xe(void 0)),NotAsked:s})}const Dn=(t=10)=>e=>{const n=setTimeout(()=>{var o;(o=e.element)==null||o.focus()},t);return o=>clearTimeout(n)},Tn=(t=10)=>e=>{const n=setTimeout(()=>{var o;(o=e.element)==null||o.select()},t);return o=>{clearTimeout(n)}},kn=t=>{const e=t.element,n=e.style.getPropertyValue(":empty");return e.style.setProperty(":empty","display:none"),o=>{o&&e.style.setProperty(":empty",n)}},Cn=t=>ge("head title",Lt.innerText(t)),Mn={partial:{root:null,rootMargin:"0px",threshold:0},full:{root:null,rootMargin:"0px",threshold:1}},ut={partial:new Map,full:new Map},Z={partial:null,full:null};function Nn(t){return Z[t]==null&&(Z[t]=new IntersectionObserver(e=>{e.forEach(n=>{const o=ut[t].get(n.target);o==null||o.set(n.isIntersecting)})},Mn[t])),Z[t]}function Re(t,e){const n=P(Y.isSSR());return X(me(o=>{const i=typeof IntersectionObserver<"u"?Nn(t):null;return ut[t].set(o,n),i==null||i.observe(o),()=>{var s;i==null||i.unobserve(o),ut[t].delete(o),ut[t].size===0&&((s=Z[t])==null||s.disconnect(),Z[t]=null)}}),it(n.dispose),b(e(n)))}const Fn=(t,e,n)=>Re(t,o=>xn(o,e,n??tt)),ft=Math.min,$=Math.max,ht=Math.round,at=Math.floor,C=t=>({x:t,y:t}),$n={left:"right",right:"left",bottom:"top",top:"bottom"},Vn={start:"end",end:"start"};function It(t,e,n){return $(t,ft(e,n))}function mt(t,e){return typeof t=="function"?t(e):t}function V(t){return t.split("-")[0]}function gt(t){return t.split("-")[1]}function Ee(t){return t==="x"?"y":"x"}function _e(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(V(t))?"y":"x"}function Oe(t){return Ee(U(t))}function Wn(t,e,n){n===void 0&&(n=!1);const o=gt(t),i=Oe(t),s=_e(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=dt(r)),[r,dt(r)]}function Hn(t){const e=dt(t);return[At(t),e,At(e)]}function At(t){return t.replace(/start|end/g,e=>Vn[e])}function zn(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:r;default:return[]}}function In(t,e,n,o){const i=gt(t);let s=zn(V(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(At)))),s}function dt(t){return t.replace(/left|right|bottom|top/g,e=>$n[e])}function Bn(t){return{top:0,right:0,bottom:0,left:0,...t}}function Un(t){return typeof t!="number"?Bn(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:i}=t;const s=U(e),r=Oe(e),c=_e(r),l=V(e),a=s==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let h;switch(l){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(gt(e)){case"start":h[r]-=m*(n&&a?-1:1);break;case"end":h[r]+=m*(n&&a?-1:1);break}return h}const jn=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Bt(a,o,l),m=o,h={},g=0;for(let w=0;w<c.length;w++){const{name:y,fn:p}=c[w],{x:v,y:x,data:L,reset:A}=await p({x:f,y:u,initialPlacement:o,placement:m,strategy:i,middlewareData:h,rects:a,platform:r,elements:{reference:t,floating:e}});f=v??f,u=x??u,h={...h,[y]:{...h[y],...L}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(a=A.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:f,y:u}=Bt(a,m,l)),w=-1)}return{x:f,y:u,placement:m,strategy:i,middlewareData:h}};async function Pe(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:r,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=mt(e,t),g=Un(h),y=c[m?u==="floating"?"reference":"floating":u],p=pt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),L=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},A=pt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:x,strategy:l}):v);return{top:(p.top-A.top+g.top)/L.y,bottom:(A.bottom-p.bottom+g.bottom)/L.y,left:(p.left-A.left+g.left)/L.x,right:(A.right-p.right+g.right)/L.x}}const qn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=mt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const p=V(i),v=U(c),x=V(c)===c,L=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=m||(x||!w?[dt(c)]:Hn(c)),H=g!=="none";!m&&H&&A.push(...In(c,w,g,L));const ze=[c,...A],vt=await Pe(e,y),rt=[];let K=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&rt.push(vt[p]),u){const N=Wn(i,r,L);rt.push(vt[N[0]],vt[N[1]])}if(K=[...K,{placement:i,overflows:rt}],!rt.every(N=>N<=0)){var Tt,kt;const N=(((Tt=s.flip)==null?void 0:Tt.index)||0)+1,Mt=ze[N];if(Mt)return{data:{index:N,overflows:K},reset:{placement:Mt}};let G=(kt=K.filter(z=>z.overflows[0]<=0).sort((z,T)=>z.overflows[1]-T.overflows[1])[0])==null?void 0:kt.placement;if(!G)switch(h){case"bestFit":{var Ct;const z=(Ct=K.filter(T=>{if(H){const k=U(T.placement);return k===v||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Ie)=>k+Ie,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:Ct[0];z&&(G=z);break}case"initialPlacement":G=c;break}if(i!==G)return{reset:{placement:G}}}return{}}}};async function Xn(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=V(n),c=gt(n),l=U(n)==="y",a=["left","top"].includes(r)?-1:1,f=s&&l?-1:1,u=mt(e,t);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),l?{x:h*f,y:m*a}:{x:m*a,y:h*f}}const Yn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:r,middlewareData:c}=e,l=await Xn(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},Jn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:y=>{let{x:p,y:v}=y;return{x:p,y:v}}},...l}=mt(t,e),a={x:n,y:o},f=await Pe(e,l),u=U(V(i)),m=Ee(u);let h=a[m],g=a[u];if(s){const y=m==="y"?"top":"left",p=m==="y"?"bottom":"right",v=h+f[y],x=h-f[p];h=It(v,h,x)}if(r){const y=u==="y"?"top":"left",p=u==="y"?"bottom":"right",v=g+f[y],x=g-f[p];g=It(v,g,x)}const w=c.fn({...e,[m]:h,[u]:g});return{...w,data:{x:w.x-n,y:w.y-o}}}}};function J(t){return De(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function D(t){var e;return(e=(De(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function De(t){return t instanceof Node||t instanceof R(t).Node}function _(t){return t instanceof Element||t instanceof R(t).Element}function O(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function Ut(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=E(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Kn(t){return["table","td","th"].includes(J(t))}function wt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Ot(t){const e=Pt(),n=E(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Gn(t){let e=M(t);for(;O(e)&&!j(e);){if(wt(e))return null;if(Ot(e))return e;e=M(e)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function j(t){return["html","body","#document"].includes(J(t))}function E(t){return R(t).getComputedStyle(t)}function yt(t){return _(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function M(t){if(J(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ut(t)&&t.host||D(t);return Ut(e)?e.host:e}function Te(t){const e=M(t);return j(e)?t.ownerDocument?t.ownerDocument.body:t.body:O(e)&&st(e)?e:Te(e)}function et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Te(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=R(i);return s?e.concat(r,r.visualViewport||[],st(i)?i:[],r.frameElement&&n?et(r.frameElement):[]):e.concat(i,et(i,[],n))}function ke(t){const e=E(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=O(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,c=ht(n)!==s||ht(o)!==r;return c&&(n=s,o=r),{width:n,height:o,$:c}}function Dt(t){return _(t)?t:t.contextElement}function I(t){const e=Dt(t);if(!O(e))return C(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=ke(e);let r=(s?ht(n.width):n.width)/o,c=(s?ht(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Qn=C(0);function Ce(t){const e=R(t);return!Pt()||!e.visualViewport?Qn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function W(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Dt(t);let r=C(1);e&&(o?_(o)&&(r=I(o)):r=I(t));const c=Zn(s,n,o)?Ce(s):C(0);let l=(i.left+c.x)/r.x,a=(i.top+c.y)/r.y,f=i.width/r.x,u=i.height/r.y;if(s){const m=R(s),h=o&&_(o)?R(o):o;let g=m,w=g.frameElement;for(;w&&o&&h!==g;){const y=I(w),p=w.getBoundingClientRect(),v=E(w),x=p.left+(w.clientLeft+parseFloat(v.paddingLeft))*y.x,L=p.top+(w.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,a*=y.y,f*=y.x,u*=y.y,l+=x,a+=L,g=R(w),w=g.frameElement}}return pt({width:f,height:u,x:l,y:a})}function to(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=D(o),c=e?wt(e.floating):!1;if(o===r||c&&s)return n;let l={scrollLeft:0,scrollTop:0},a=C(1);const f=C(0),u=O(o);if((u||!u&&!s)&&((J(o)!=="body"||st(r))&&(l=yt(o)),O(o))){const m=W(o);a=I(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x,y:n.y*a.y-l.scrollTop*a.y+f.y}}function eo(t){return Array.from(t.getClientRects())}function Me(t){return W(D(t)).left+yt(t).scrollLeft}function no(t){const e=D(t),n=yt(t),o=t.ownerDocument.body,i=$(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=$(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Me(t);const c=-n.scrollTop;return E(o).direction==="rtl"&&(r+=$(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:c}}function oo(t,e){const n=R(t),o=D(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const a=Pt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:s,height:r,x:c,y:l}}function io(t,e){const n=W(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=O(t)?I(t):C(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,l=i*s.x,a=o*s.y;return{width:r,height:c,x:l,y:a}}function jt(t,e,n){let o;if(e==="viewport")o=oo(t,n);else if(e==="document")o=no(D(t));else if(_(e))o=io(e,n);else{const i=Ce(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return pt(o)}function Ne(t,e){const n=M(t);return n===e||!_(n)||j(n)?!1:E(n).position==="fixed"||Ne(n,e)}function so(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter(c=>_(c)&&J(c)!=="body"),i=null;const s=E(t).position==="fixed";let r=s?M(t):t;for(;_(r)&&!j(r);){const c=E(r),l=Ot(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||st(r)&&!l&&Ne(t,r))?o=o.filter(f=>f!==r):i=c,r=M(r)}return e.set(t,o),o}function ro(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?wt(e)?[]:so(e,this._c):[].concat(n),o],c=r[0],l=r.reduce((a,f)=>{const u=jt(e,f,i);return a.top=$(u.top,a.top),a.right=ft(u.right,a.right),a.bottom=ft(u.bottom,a.bottom),a.left=$(u.left,a.left),a},jt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function co(t){const{width:e,height:n}=ke(t);return{width:e,height:n}}function lo(t,e,n){const o=O(e),i=D(e),s=n==="fixed",r=W(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const l=C(0);if(o||!o&&!s)if((J(e)!=="body"||st(i))&&(c=yt(e)),o){const u=W(e,!0,s,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else i&&(l.x=Me(i));const a=r.left+c.scrollLeft-l.x,f=r.top+c.scrollTop-l.y;return{x:a,y:f,width:r.width,height:r.height}}function bt(t){return E(t).position==="static"}function qt(t,e){return!O(t)||E(t).position==="fixed"?null:e?e(t):t.offsetParent}function Fe(t,e){const n=R(t);if(wt(t))return n;if(!O(t)){let i=M(t);for(;i&&!j(i);){if(_(i)&&!bt(i))return i;i=M(i)}return n}let o=qt(t,e);for(;o&&Kn(o)&&bt(o);)o=qt(o,e);return o&&j(o)&&bt(o)&&!Ot(o)?n:o||Gn(t)||n}const ao=async function(t){const e=this.getOffsetParent||Fe,n=this.getDimensions,o=await n(t.floating);return{reference:lo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function uo(t){return E(t).direction==="rtl"}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:D,getClippingRect:ro,getOffsetParent:Fe,getElementRects:ao,getClientRects:eo,getDimensions:co,getScale:I,isElement:_,isRTL:uo};function ho(t,e){let n=null,o;const i=D(t);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const{left:a,top:f,width:u,height:m}=t.getBoundingClientRect();if(c||e(),!u||!m)return;const h=at(f),g=at(i.clientWidth-(a+u)),w=at(i.clientHeight-(f+m)),y=at(a),v={rootMargin:-h+"px "+-g+"px "+-w+"px "+-y+"px",threshold:$(0,ft(1,l))||1};let x=!0;function L(A){const H=A[0].intersectionRatio;if(H!==l){if(!x)return r();H?r(!1,H):o=setTimeout(()=>{r(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(L,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,v)}n.observe(t)}return r(!0),s}function po(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Dt(t),f=i||s?[...a?et(a):[],...et(e)]:[];f.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});const u=a&&c?ho(a,n):null;let m=-1,h=null;r&&(h=new ResizeObserver(p=>{let[v]=p;v&&v.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),n()}),a&&!l&&h.observe(a),h.observe(e));let g,w=l?W(t):null;l&&y();function y(){const p=W(t);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,g=requestAnimationFrame(y)}return n(),()=>{var p;f.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),u==null||u(),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const mo=Yn,go=Jn,Xt=qn,wo=(t,e,n)=>{const o=new Map,i={platform:fo,...n},s={...i.platform,_c:o};return jn(t,e,{...i,platform:s})};function yo({content:t,open:e,placement:n,offset:{mainAxis:o,crossAxis:i}={mainAxis:0,crossAxis:0}}){return s=>{const r=s.element,c=S.wrap(e);return B.bool(c,{true:()=>ge("body",ie.div(me(l=>{const a=l;return a.style.position="absolute",po(r,a,()=>{wo(r,a,{placement:n,strategy:"absolute",middleware:[Xt(),mo({mainAxis:o,crossAxis:i}),go(),Xt()]}).then(({x:f,y:u})=>{a.style.top=`${u}px`,a.style.left=`${f}px`})})}),t())),false:()=>null})(s)}}function $e(t,e){if(typeof e=="function")return $e(t,{success:e});const n=e.failure??(i=>X(it(i.on(console.error)),i.map(s=>`Error: ${s}`))),o=e.success;return B.type(S.wrap(t),{Success:i=>o(i.$.value),Failure:i=>n(i.$.error)})}function vo(){return de.focus(t=>{var e;return(e=t.target)==null?void 0:e.select()})}const xo=t=>e=>{const n=e.element,o=P({width:n.clientWidth,height:n.clientHeight}),i=b(t(o))(e),s=()=>{o.set({width:n.clientWidth,height:n.clientHeight})};let r;return typeof ResizeObserver=="function"&&(r=new ResizeObserver(s),r.observe(n)),c=>{r==null||r.disconnect(),i(c)}},bo=t=>e=>{const n=P({width:(window==null?void 0:window.innerWidth)??0,height:(window==null?void 0:window.innerHeight)??0}),o=b(t(n))(e),i=()=>{n.set({width:(window==null?void 0:window.innerWidth)??0,height:(window==null?void 0:window.innerHeight)??0})};return window==null||window.addEventListener("resize",i),s=>{window==null||window.removeEventListener("resize",i),o(s)}},Ao={element:xo,window:bo};function Ve(t,e){const n=e.split("/").filter(i=>i!==""),o={};for(let i=0;i<t.length;i++){const s=t[i],r=n[i];if(!r&&s.type!=="catch-all")return null;if(s.type==="literal"){if(s.value!==r)return null}else if(s.type==="param")o[s.name]=r;else if(s.type==="catch-all")return{params:o,path:e}}return n.length!==t.length?null:{params:o,path:e}}function We(t){return t.split("/").map(e=>e.startsWith(":")?{type:"param",name:e.slice(1)}:e==="*"?{type:"catch-all"}:{type:"literal",value:e}).filter(e=>e.type!=="literal"||e.value!=="")}function He(t){const e=t.map(n=>{const o=We(n);return{route:n,segments:o}});return function(o){for(const{segments:i,route:s}of e){const r=Ve(i,o);if(r)return{...r,route:s}}return null}}function So(t){const e=He(Object.keys(t));return Et(n=>{const o=n.map(i=>{const s=e(i.pathname);if(s==null)throw console.error("No route found for",i),new Error("No route found");return{params:s.params,route:s.route,path:s.path,search:i.search,hash:i.hash}});return B.tuple(o.map(i=>[i.route,i]),t)})}exports.Anchor=_n;exports.AsyncResultView=Le;exports.AutoFocus=Dn;exports.AutoSelect=Tn;exports.HTMLTitle=Cn;exports.HiddenWhenEmpty=kn;exports.InViewport=Re;exports.LocationProviderMarker=Rt;exports.PopOver=yo;exports.ProvideAppearance=On;exports.ProvideLocation=En;exports.ResultView=$e;exports.Router=So;exports.SelectOnFocus=vo;exports.UseAppearance=Pn;exports.UseLocation=Et;exports.WhenInViewport=Fn;exports.appearanceMarker=_t;exports.equalsLocation=xe;exports.getFullURL=Rn;exports.locationFromURL=be;exports.makeLocation=ve;exports.makeLocationProp=Se;exports.makeRouteMatcher=He;exports.matchesRoute=Ve;exports.parseRouteSegments=We;exports.setLocationFromUrl=Ae;exports.size=Ao;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Be=Object.defineProperty,je=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d=(t,e,n)=>je(t,typeof e!="symbol"?e+"":e,n);const Xt="$__signal__",Nt="$__prop__",Ft="$__computed__";var Yt;Yt=Xt;const qe=class F{constructor(e,n){d(this,Yt,!0),d(this,"_value"),d(this,"_derivatives",[]),d(this,"_onValueListeners",[]),d(this,"_onDisposeListeners",[]),d(this,"get",()=>this._value),d(this,"hasListeners",()=>this._onValueListeners.length>0),d(this,"on",o=>(o(this.get()),this._onValueListeners.push(o),()=>{this._onValueListeners.splice(this._onValueListeners.indexOf(o),1)})),d(this,"_setAndNotify",(o,i)=>{const s=this.equals(this._value,o);s||(this._value=o),(i||!s)&&this._onValueListeners.forEach(r=>r(o))}),d(this,"_disposed",!1),d(this,"isDisposed",()=>this._disposed),d(this,"onDispose",o=>{this._onDisposeListeners.push(o)}),d(this,"dispose",()=>{this._disposed||(this._disposed=!0,this._onDisposeListeners.forEach(o=>o()),this._onDisposeListeners.length=0,this._derivatives.length=0)}),d(this,"map",(o,i=(s,r)=>s===r)=>{const s=new ct(()=>{try{return o(this.get())}catch(r){throw console.error("Error in Signal.map:",r),r}},i);return this.setDerivative(s),s}),d(this,"flatMap",(o,i=(s,r)=>s===r)=>{const s=new ct(()=>{try{return o(this.get()).get()}catch(r){throw console.error("Error in Signal.flatMap:",r),r}},i);return this.setDerivative(s),s}),d(this,"tap",o=>this.map(i=>(o(i),i))),d(this,"at",o=>this.map(i=>i[o])),d(this,"$",new Proxy(this,{get:(o,i)=>this.at(i)})),d(this,"filter",(o,i)=>{let s=i??this.get();const r=new ct(()=>{try{const c=this.get();return s=o(c)?c:s}catch(c){throw console.error("Error in Signal.filter:",c),c}},this.equals);return this.setDerivative(r),r}),d(this,"filterMap",(o,i,s=(r,c)=>r===c)=>{let r=i;const c=new ct(()=>{try{const l=this.get();return r=o(l)??r}catch(l){throw console.error("Error in Signal.filterMap:",l),l}},s);return this.setDerivative(c),c}),d(this,"mapAsync",(o,i,s,r=(c,l)=>c===l)=>{const c=P(i,r);let l=0;return c.onDispose(this.on(a=>{const f=++l;try{o(a).then(u=>{f===l&&c.set(u)}).catch(u=>{f===l&&(s!=null?c.set(s(u)):console.error("Unhandled promise rejection in Signal.mapAsync:",u))})}catch(u){throw console.error("Error in Signal.mapAsync:",u),u}})),c}),d(this,"mapMaybe",(o,i)=>this.map(s=>o(s)??i)),d(this,"feedProp",(o,i=!1)=>{const s=this.on(o.set);return o.onDispose(s),i?this.onDispose(o.dispose):this.onDispose(s),o}),d(this,"deriveProp",(o=!0)=>this.feedProp(P(this.get()),o)),d(this,"count",()=>{let o=0;return this.map(()=>++o)}),d(this,"setDerivative",o=>{this._derivatives.push(o),o.onDispose(()=>{this._derivatives.splice(this._derivatives.indexOf(o),1)}),o.onDispose(this.on(o.setDirty)),this.onDispose(o.dispose)}),this.equals=n,this._value=e}static ofPromise(e,n,o,i=(s,r)=>s===r){const s=new F(n,i);return e.then(r=>s._setAndNotify(r,!1)).catch(r=>{o!=null?s._setAndNotify(o(r),!1):console.error("Unhandled promise rejection in Signal.ofPromise:",r)}),s}static is(e){return e!=null&&e[Xt]===!0}static wrap(e,n=(o,i)=>o===i){return F.is(e)?e:new F(e,n)}static maybeWrap(e){return e==null?e:F.wrap(e)}static unwrap(e){return F.is(e)?e.get():e}static map(e,n){return F.is(e)?e.map(n):n(e)}get value(){return this._value}};let L=qe;const Je=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);var $t,Vt;class ct extends(Vt=L,$t=Ft,Vt){constructor(e,n){super(void 0,n),d(this,$t,!0),d(this,"_isDirty",!1),d(this,"setDirty",()=>{this._isDirty||this._disposed||(this._isDirty=!0,this._derivatives.forEach(o=>o.setDirty()),this.scheduleNotify())}),d(this,"_scheduleCount",0),d(this,"scheduleNotify",()=>{const o=++this._scheduleCount;Je(()=>{this._scheduleCount!==o||this._disposed!==!1||this._isDirty&&(this._isDirty=!1,this._setAndNotify(this._fn(),!1))})}),d(this,"get",()=>(this._isDirty&&(this._isDirty=!1,this._value=this._fn(),this._setAndNotify(this._value,!0)),this._value)),this._fn=e,this.setDirty()}static is(e){return e!=null&&e[Ft]===!0}get value(){return this.get()}}var Wt,Ht;class Lt extends(Ht=L,Wt=Nt,Ht){constructor(){super(...arguments),d(this,Wt,!0),d(this,"set",e=>{this._setAndNotify(e,!1)}),d(this,"update",e=>{this._setAndNotify(e(this.get()),!1)}),d(this,"reducer",(e,...n)=>{const o=this;return function i(s){const r=o.value;o.update(c=>e(c,s)),!o.equals(r,o.value)&&n.forEach(c=>c({previousState:r,state:o.value,action:s,dispatch:i}))}}),d(this,"iso",(e,n,o=(i,s)=>i===s)=>{const i=new Lt(e(this.get()),o);return i.onDispose(this.on(s=>i.set(e(s)))),i.on(s=>this._setAndNotify(n(s),!1)),i}),d(this,"atProp",e=>this.iso(n=>n[e],n=>({...this.value,[e]:n})))}static is(e){return e!=null&&e[Nt]===!0}get value(){return this.get()}set value(e){this._setAndNotify(e,!1)}}function P(t,e=(n,o)=>n===o){return new Lt(t,e)}function Xe(t,e=(n,o)=>n===o){return new L(t,e)}const Kt=new Set(["checked","disabled","hidden","selected"]),Qt=new Set(["rowSpan","colSpan","tabIndex","valueAsNumber"]),Zt=new Set(["valueAsDate"]),Gt=new Set(["value","textContent","innerText","innerHTML","outerHTML","className","classList"]),xt=new Map;function Z(t,e){if(xt.has(t))return xt.get(t);{const n=e(t);return xt.set(t,n),n}}function Ye(t){return(e,n)=>{n==null?e[t]=null:e[t]=!!n}}function Ke(t){return(e,n)=>{n==null?e[t]=null:e[t]=Number(n)}}function Qe(t){return(e,n)=>{n==null?e[t]=null:e[t]=n}}function Ze(t){return(e,n)=>{n==null?e[t]=null:e[t]=String(n)}}function Ge(t){return(e,n)=>{n==null?e.removeAttribute(t):e.setAttribute(t,n)}}function te(t){return Kt.has(t)?Z(t,Ye):Qt.has(t)?Z(t,Ke):Zt.has(t)?Z(t,Qe):Gt.has(t)?Z(t,Ze):Z(t,Ge)}function ee(t){return e=>Kt.has(t)?!!e[t]:Qt.has(t)?Number(e[t]):Zt.has(t)?e[t]:Gt.has(t)?String(e[t]):e.getAttribute(t)}function q(t){const e=t;e&&e.onblur&&(e.onblur=null),!(!t||t.ownerDocument===void 0)&&t.parentElement&&t.parentElement.removeChild(t)}function tn(t,e,n){let o=t.target;for(;o!=null&&!(o instanceof HTMLAnchorElement);)o=o.parentElement;if(o==null)return!0;const i=o;if(t.button!==0||t.ctrlKey||t.metaKey||i.target!=="_self"&&i.target!==""||i.getAttribute("download")!=null)return!0;if(n){const{pathname:s,search:r,hash:c}=i,l=s+r+c;if(i.getAttribute("href")!==l||e&&!/\/[^/.]*$/.test(s))return!0}return!1}const en=(t,e={checkExtension:!0,checkExternalUrl:!0})=>n=>{const{checkExtension:o,checkExternalUrl:i}=e;tn(n,o===!0,i===!0)||t()&&n.preventDefault()},nn=t=>e=>{le(e);const n=e.createText(t);return e.appendOrInsert(n),o=>{o&&q(n)}},on=t=>e=>{le(e);const n=e.createText(t.value);e.appendOrInsert(n);const o=t.on(i=>n.data=i);return i=>{o(),i&&q(n)}},J=(...t)=>e=>{const n=t.map(o=>b(o)(e));return o=>{n.forEach(i=>i(o))}},tt=()=>()=>{},sn=t=>e=>(re(e),e.element.classList.add(...t),n=>{n&&e.element.classList.remove(...t)}),rn=t=>e=>{re(e);const n=e.element;let o=[];const i=t.on(s=>{o.forEach(r=>n.classList.remove(r)),o=(s??"").split(" ").filter(r=>r.length>0),n.classList.add(...o)});return s=>{i(),s&&o.forEach(r=>n.classList.remove(r)),o.length=0}},nt=(t,e)=>{const n=te(t),o=ee(t);return i=>{se(i,t);const s=o(i.element);return n(i.element,e),r=>{r&&n(i.element,s)}}},ot=(t,e)=>{const n=te(t),o=ee(t);return i=>{se(i,t);const s=o(i.element);return e.on(r=>n(i.element,r)),r=>{r&&n(i.element,s)}}},St=new Proxy({},{get:(t,e)=>e==="class"?n=>L.is(n)?rn(n):sn((n??"").split(" ").filter(o=>o.length>0)):n=>L.is(n)?ot(e,n):nt(e,n)});new Proxy({},{get:(t,e)=>n=>L.is(n)?ot(`data-${e}`,n):nt(`data-${e}`,n)});new Proxy({},{get:(t,e)=>n=>L.is(n)?ot(`aria-${e}`,n):nt(`aria-${e}`,n)});new Proxy({},{get:(t,e)=>n=>L.is(n)?ot(e,n):nt(e,n)});new Proxy({},{get:(t,e)=>n=>L.is(n)?ot(e,n):nt(e,n)});function b(t){return t==null?tt:Array.isArray(t)?J(...t.map(b)):typeof t=="string"?nn(t):L.is(t)?on(t):t}function ne(t,...e){return n=>{const o=n.createElement(t,void 0);n.isFirstLevel&&X.isSSR()&&ce(o),n.appendOrInsert(o),n=n.withElement(o);const i=e.map(s=>b(s)(n));return s=>{i.forEach(r=>r(!1)),s&&q(o)}}}function oe(t,e,...n){return o=>{const i=o.createElement(t,e);o.isFirstLevel&&X.isSSR()&&ce(i),o.appendOrInsert(i),o=o.withElement(i);const s=n.map(r=>b(r)(o));return r=>{s.forEach(c=>c(!1)),r&&q(i)}}}const ie=new Proxy({},{get:(t,e)=>(...n)=>ne(e,n.flatMap(b))});new Proxy({},{get:(t,e)=>(...n)=>ne("input",St.type(e),...n)});const cn="http://www.w3.org/2000/svg";new Proxy({},{get:(t,e)=>(...n)=>oe(e,cn,n.flatMap(b))});const ln="http://www.w3.org/1998/Math/MathML";new Proxy({},{get:(t,e)=>(...n)=>oe(e,ln,n.flatMap(b))});const zt="data-tempo-attr",an="data-tempo-class",un="data-tempo-node",fn="data-tempo-text";function hn(t,e){const n=t.getAttribute(e);if(n!=null){const o=t.getAttribute(zt)??"{}",i={...JSON.parse(o),name:n};t.setAttribute(zt,JSON.stringify(i))}}function se(t,e){X.isSSR()&&t.isFirstLevel&&hn(t.element,e)}function dn(t){t.setAttribute(an,t.className)}function re(t){X.isSSR()&&t.isFirstLevel&&dn(t.element)}function ce(t){t.setAttribute(un,"")}function pn(t){t.setAttribute(fn,t.textContent??"")}function le(t){X.isSSR()&&t.isFirstLevel&&pn(t.element)}function ae(){const t=globalThis;return t.__tempoSSR__==null&&(t.__tempoSSR__={isSSR:!1,counter:0}),t.__tempoSSR__}function ue(t,e){const n=ae();n[t]=e}function fe(t){return ae()[t]}function mn(){return fe("isSSR")}function he(){return fe("counter")}function gn(){ue("counter",(he()??0)+1)}function wn(){ue("counter",(he()??0)-1)}const X={useDone:t=>(gn(),b(t(wn))),isSSR:mn},yn=(t,e)=>n=>(n.element.addEventListener(t,e),o=>{o&&n.element.removeEventListener(t,e)}),de=new Proxy({},{get:(t,e)=>n=>yn(e,n)}),lt=(t,e)=>n=>{n=n.makeRef();let o,i;const s=t.map(l=>Object.keys(l)[0]);let r;const c=s.on(l=>{if(l!==r){i==null||i.dispose(),o==null||o(!0),i=t.map(f=>f[l]);const a=e[l](i);o=b(a)(n),r=l}});return l=>{c(),l&&n.reference!=null&&q(n.reference),o==null||o(!0)}},U={bool:(t,e)=>lt(t.map(n=>n?{true:!0}:{false:!0}),e),field:(t,e,n)=>lt(t.map(o=>({[o[e]]:o})),n),kind:(t,e)=>U.field(t,"kind",e),tuple:(t,e)=>{const n=t.map(([o,i])=>({[o]:i}));return lt(n,e)},type:(t,e)=>U.field(t,"type",e),value:(t,e)=>lt(t.map(n=>({[n]:!0})),e)},vn=(t,e)=>n=>{const o=Object.values(t).reduce((i,s)=>{const r=n.getProvider(s);if(r==null)throw new Error(`No provider found for mark: ${s.description}`);return i[s]=r,i},{});return b(e(o))(n)},pe=(t,e)=>vn([t],n=>b(e(n[t]))),xn=(t,e,n)=>o=>{o=o.makeRef();let i=null,s=!1;const r=P(null),c=t.on(l=>{l==null?(i==null||i(!0),i=b((n==null?void 0:n())??tt)(o),s=!1):(r.value=l,s||(i==null||i(!0),i=b(e(r))(o),s=!0))});return l=>{c(),i==null||i(l),l&&o.reference&&q(o.reference)}},it=t=>e=>n=>t(n,e),bn=(t,e,n)=>xn(t.map(o=>o?!0:null),()=>e,n!=null?()=>n:void 0),me=t=>e=>t(e.element)??(()=>{});function An(t,e){const n=t(e);return()=>n(!0)}const ge=(t,e)=>n=>{const o=n.document.querySelector(t);if(o===null)throw new Error(`Cannot find element by selector for portal: ${t}`);return An(b(e),n.withElement(o).withFirstLevel())};function we(t){return Symbol(t)}const Ln=(t,e)=>n=>b(e)(n.withProviders(t)),ye=(t,e,n)=>Ln({[t]:e},b(n)),Sn=(t,e)=>n=>{const o=n.element,i=o.style.getPropertyValue(t);return o.style.setProperty(t,e),s=>{s&&o.style.setProperty(t,i)}},En=(t,e)=>n=>{const o=n.element,i=o.style.getPropertyValue(t);return e.on(s=>o.style.setProperty(t,s)),s=>{s&&o.style.setProperty(t,i)}};new Proxy({},{get:(t,e)=>n=>L.is(n)?En(e,n):Sn(e,n)});const Et=we("LocationProvider");function ve(){const t=(window==null?void 0:window.location.hash)===""?void 0:(window==null?void 0:window.location.hash.substring(1))??void 0;return{pathname:(window==null?void 0:window.location.pathname)??"",search:Object.fromEntries(new URLSearchParams((window==null?void 0:window.location.search)??"").entries()),hash:t}}function xe(t,e){return t.pathname===e.pathname&&JSON.stringify(t.search)===JSON.stringify(e.search)&&t.hash===e.hash}function be(t){const e=new URL(t,(window==null?void 0:window.location.toString())??""),n=Object.fromEntries(e.searchParams.entries());let o=e.hash;return o.startsWith("#")&&(o=o.substring(1)),{pathname:e.pathname,search:n,hash:o===""?void 0:o}}function Ae(t,e){const n=be(e);return t.set(n),t}function Le(t){const n=new URLSearchParams(t.search).toString(),o=t.hash;return`${t.pathname}${n?`?${n}`:""}${o?`#${o}`:""}`}function Se(){const t=P(ve(),xe),e=()=>{let n=(window==null?void 0:window.location.hash)??"";n.startsWith("#")&&(n=n.substring(1));const o={pathname:(window==null?void 0:window.location.pathname)??"",search:Object.fromEntries(new URLSearchParams((window==null?void 0:window.location.search)??"").entries()),hash:n===""?void 0:n};t.set(o)};return window==null||window.addEventListener("popstate",e),t.onDispose(()=>{window==null||window.removeEventListener("popstate",e)}),t.on(n=>{window==null||window.history.pushState({},"",Le(n))}),t}function Rn(t){const e=Se();return J(it(e.dispose),ye(Et,e,t))}function Rt(t){return pe(Et,e=>n=>{const o=P(e.value,e.equals);e.feedProp(o),o.on(e.set);const i=b(t(o))(n);return s=>{o.dispose(),i(s)}})}function _n(t,...e){return Rt(n=>ie.a(de.click(en(()=>(Ae(n,L.unwrap(t)),!0))),St.href(t),...e))}const _t=we("Appearance"),On=t=>{const e=window.matchMedia!=null&&window.matchMedia("(prefers-color-scheme: dark)").matches,n=P(e?"dark":"light"),o=s=>{n.set(s.matches?"dark":"light")},i=window.matchMedia!=null?window.matchMedia("(prefers-color-scheme: dark)"):void 0;return i==null||i.addEventListener("change",o),J(ye(_t,n,t),it(()=>i==null?void 0:i.removeEventListener("change",o)))},Pn=t=>pe(_t,t);function Ee(t,e){if(typeof e=="function")return Ee(t,{success:e});const n=e.failure??(r=>J(it(r.on(console.error)),r.map(c=>`Error: ${c}`))),o=e.success,i=e.loading??(()=>tt),s=e.notAsked??(()=>tt);return U.type(L.wrap(t),{AsyncSuccess:r=>o(r.$.value),AsyncFailure:r=>n(r.$.error),Loading:r=>i(r.$.previousValue??Xe(void 0)),NotAsked:s})}const Dn=(t=10)=>e=>{const n=setTimeout(()=>{var o;(o=e.element)==null||o.focus()},t);return o=>clearTimeout(n)},kn=(t=10)=>e=>{const n=setTimeout(()=>{var o;(o=e.element)==null||o.select()},t);return o=>{clearTimeout(n)}},Tn=t=>{const e=t.element,n=e.style.getPropertyValue(":empty");return e.style.setProperty(":empty","display:none"),o=>{o&&e.style.setProperty(":empty",n)}},Cn=t=>ge("head title",St.innerText(t)),Mn={partial:{root:null,rootMargin:"0px",threshold:0},full:{root:null,rootMargin:"0px",threshold:1}},ut={partial:new Map,full:new Map},G={partial:null,full:null};function Nn(t){return G[t]==null&&(G[t]=new IntersectionObserver(e=>{e.forEach(n=>{const o=ut[t].get(n.target);o==null||o.set(n.isIntersecting)})},Mn[t])),G[t]}function Re(t,e){const n=P(X.isSSR());return J(me(o=>{const i=typeof IntersectionObserver<"u"?Nn(t):null;return ut[t].set(o,n),i==null||i.observe(o),()=>{var s;i==null||i.unobserve(o),ut[t].delete(o),ut[t].size===0&&((s=G[t])==null||s.disconnect(),G[t]=null)}}),it(n.dispose),b(e(n)))}const Fn=(t,e,n)=>Re(t,o=>bn(o,e,n??tt)),ft=Math.min,$=Math.max,ht=Math.round,at=Math.floor,C=t=>({x:t,y:t}),$n={left:"right",right:"left",bottom:"top",top:"bottom"},Vn={start:"end",end:"start"};function It(t,e,n){return $(t,ft(e,n))}function mt(t,e){return typeof t=="function"?t(e):t}function V(t){return t.split("-")[0]}function gt(t){return t.split("-")[1]}function _e(t){return t==="x"?"y":"x"}function Oe(t){return t==="y"?"height":"width"}function B(t){return["top","bottom"].includes(V(t))?"y":"x"}function Pe(t){return _e(B(t))}function Wn(t,e,n){n===void 0&&(n=!1);const o=gt(t),i=Pe(t),s=Oe(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=dt(r)),[r,dt(r)]}function Hn(t){const e=dt(t);return[At(t),e,At(e)]}function At(t){return t.replace(/start|end/g,e=>Vn[e])}function zn(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:r;default:return[]}}function In(t,e,n,o){const i=gt(t);let s=zn(V(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(At)))),s}function dt(t){return t.replace(/left|right|bottom|top/g,e=>$n[e])}function Un(t){return{top:0,right:0,bottom:0,left:0,...t}}function Bn(t){return typeof t!="number"?Un(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Ut(t,e,n){let{reference:o,floating:i}=t;const s=B(e),r=Pe(e),c=Oe(r),l=V(e),a=s==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let h;switch(l){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(gt(e)){case"start":h[r]-=m*(n&&a?-1:1);break;case"end":h[r]+=m*(n&&a?-1:1);break}return h}const jn=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Ut(a,o,l),m=o,h={},g=0;for(let w=0;w<c.length;w++){const{name:y,fn:p}=c[w],{x:v,y:x,data:S,reset:A}=await p({x:f,y:u,initialPlacement:o,placement:m,strategy:i,middlewareData:h,rects:a,platform:r,elements:{reference:t,floating:e}});f=v??f,u=x??u,h={...h,[y]:{...h[y],...S}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(a=A.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:f,y:u}=Ut(a,m,l)),w=-1)}return{x:f,y:u,placement:m,strategy:i,middlewareData:h}};async function De(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:r,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=mt(e,t),g=Bn(h),y=c[m?u==="floating"?"reference":"floating":u],p=pt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},A=pt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:x,strategy:l}):v);return{top:(p.top-A.top+g.top)/S.y,bottom:(A.bottom-p.bottom+g.bottom)/S.y,left:(p.left-A.left+g.left)/S.x,right:(A.right-p.right+g.right)/S.x}}const qn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=mt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const p=V(i),v=B(c),x=V(c)===c,S=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=m||(x||!w?[dt(c)]:Hn(c)),H=g!=="none";!m&&H&&A.push(...In(c,w,g,S));const Ie=[c,...A],vt=await De(e,y),rt=[];let K=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&rt.push(vt[p]),u){const N=Wn(i,r,S);rt.push(vt[N[0]],vt[N[1]])}if(K=[...K,{placement:i,overflows:rt}],!rt.every(N=>N<=0)){var kt,Tt;const N=(((kt=s.flip)==null?void 0:kt.index)||0)+1,Mt=Ie[N];if(Mt)return{data:{index:N,overflows:K},reset:{placement:Mt}};let Q=(Tt=K.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:Tt.placement;if(!Q)switch(h){case"bestFit":{var Ct;const z=(Ct=K.filter(k=>{if(H){const T=B(k.placement);return T===v||T==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(T=>T>0).reduce((T,Ue)=>T+Ue,0)]).sort((k,T)=>k[1]-T[1])[0])==null?void 0:Ct[0];z&&(Q=z);break}case"initialPlacement":Q=c;break}if(i!==Q)return{reset:{placement:Q}}}return{}}}};async function Jn(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=V(n),c=gt(n),l=B(n)==="y",a=["left","top"].includes(r)?-1:1,f=s&&l?-1:1,u=mt(e,t);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),l?{x:h*f,y:m*a}:{x:m*a,y:h*f}}const Xn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:r,middlewareData:c}=e,l=await Jn(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},Yn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:y=>{let{x:p,y:v}=y;return{x:p,y:v}}},...l}=mt(t,e),a={x:n,y:o},f=await De(e,l),u=B(V(i)),m=_e(u);let h=a[m],g=a[u];if(s){const y=m==="y"?"top":"left",p=m==="y"?"bottom":"right",v=h+f[y],x=h-f[p];h=It(v,h,x)}if(r){const y=u==="y"?"top":"left",p=u==="y"?"bottom":"right",v=g+f[y],x=g-f[p];g=It(v,g,x)}const w=c.fn({...e,[m]:h,[u]:g});return{...w,data:{x:w.x-n,y:w.y-o}}}}};function Y(t){return ke(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function D(t){var e;return(e=(ke(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ke(t){return t instanceof Node||t instanceof E(t).Node}function _(t){return t instanceof Element||t instanceof E(t).Element}function O(t){return t instanceof HTMLElement||t instanceof E(t).HTMLElement}function Bt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof E(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=R(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Kn(t){return["table","td","th"].includes(Y(t))}function wt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Ot(t){const e=Pt(),n=R(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Qn(t){let e=M(t);for(;O(e)&&!j(e);){if(wt(e))return null;if(Ot(e))return e;e=M(e)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function j(t){return["html","body","#document"].includes(Y(t))}function R(t){return E(t).getComputedStyle(t)}function yt(t){return _(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function M(t){if(Y(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Bt(t)&&t.host||D(t);return Bt(e)?e.host:e}function Te(t){const e=M(t);return j(e)?t.ownerDocument?t.ownerDocument.body:t.body:O(e)&&st(e)?e:Te(e)}function et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Te(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=E(i);return s?e.concat(r,r.visualViewport||[],st(i)?i:[],r.frameElement&&n?et(r.frameElement):[]):e.concat(i,et(i,[],n))}function Ce(t){const e=R(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=O(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,c=ht(n)!==s||ht(o)!==r;return c&&(n=s,o=r),{width:n,height:o,$:c}}function Dt(t){return _(t)?t:t.contextElement}function I(t){const e=Dt(t);if(!O(e))return C(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ce(e);let r=(s?ht(n.width):n.width)/o,c=(s?ht(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Zn=C(0);function Me(t){const e=E(t);return!Pt()||!e.visualViewport?Zn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==E(t)?!1:e}function W(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Dt(t);let r=C(1);e&&(o?_(o)&&(r=I(o)):r=I(t));const c=Gn(s,n,o)?Me(s):C(0);let l=(i.left+c.x)/r.x,a=(i.top+c.y)/r.y,f=i.width/r.x,u=i.height/r.y;if(s){const m=E(s),h=o&&_(o)?E(o):o;let g=m,w=g.frameElement;for(;w&&o&&h!==g;){const y=I(w),p=w.getBoundingClientRect(),v=R(w),x=p.left+(w.clientLeft+parseFloat(v.paddingLeft))*y.x,S=p.top+(w.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,a*=y.y,f*=y.x,u*=y.y,l+=x,a+=S,g=E(w),w=g.frameElement}}return pt({width:f,height:u,x:l,y:a})}function to(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=D(o),c=e?wt(e.floating):!1;if(o===r||c&&s)return n;let l={scrollLeft:0,scrollTop:0},a=C(1);const f=C(0),u=O(o);if((u||!u&&!s)&&((Y(o)!=="body"||st(r))&&(l=yt(o)),O(o))){const m=W(o);a=I(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x,y:n.y*a.y-l.scrollTop*a.y+f.y}}function eo(t){return Array.from(t.getClientRects())}function Ne(t){return W(D(t)).left+yt(t).scrollLeft}function no(t){const e=D(t),n=yt(t),o=t.ownerDocument.body,i=$(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=$(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Ne(t);const c=-n.scrollTop;return R(o).direction==="rtl"&&(r+=$(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:c}}function oo(t,e){const n=E(t),o=D(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const a=Pt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:s,height:r,x:c,y:l}}function io(t,e){const n=W(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=O(t)?I(t):C(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,l=i*s.x,a=o*s.y;return{width:r,height:c,x:l,y:a}}function jt(t,e,n){let o;if(e==="viewport")o=oo(t,n);else if(e==="document")o=no(D(t));else if(_(e))o=io(e,n);else{const i=Me(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return pt(o)}function Fe(t,e){const n=M(t);return n===e||!_(n)||j(n)?!1:R(n).position==="fixed"||Fe(n,e)}function so(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter(c=>_(c)&&Y(c)!=="body"),i=null;const s=R(t).position==="fixed";let r=s?M(t):t;for(;_(r)&&!j(r);){const c=R(r),l=Ot(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||st(r)&&!l&&Fe(t,r))?o=o.filter(f=>f!==r):i=c,r=M(r)}return e.set(t,o),o}function ro(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?wt(e)?[]:so(e,this._c):[].concat(n),o],c=r[0],l=r.reduce((a,f)=>{const u=jt(e,f,i);return a.top=$(u.top,a.top),a.right=ft(u.right,a.right),a.bottom=ft(u.bottom,a.bottom),a.left=$(u.left,a.left),a},jt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function co(t){const{width:e,height:n}=Ce(t);return{width:e,height:n}}function lo(t,e,n){const o=O(e),i=D(e),s=n==="fixed",r=W(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const l=C(0);if(o||!o&&!s)if((Y(e)!=="body"||st(i))&&(c=yt(e)),o){const u=W(e,!0,s,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else i&&(l.x=Ne(i));const a=r.left+c.scrollLeft-l.x,f=r.top+c.scrollTop-l.y;return{x:a,y:f,width:r.width,height:r.height}}function bt(t){return R(t).position==="static"}function qt(t,e){return!O(t)||R(t).position==="fixed"?null:e?e(t):t.offsetParent}function $e(t,e){const n=E(t);if(wt(t))return n;if(!O(t)){let i=M(t);for(;i&&!j(i);){if(_(i)&&!bt(i))return i;i=M(i)}return n}let o=qt(t,e);for(;o&&Kn(o)&&bt(o);)o=qt(o,e);return o&&j(o)&&bt(o)&&!Ot(o)?n:o||Qn(t)||n}const ao=async function(t){const e=this.getOffsetParent||$e,n=this.getDimensions,o=await n(t.floating);return{reference:lo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function uo(t){return R(t).direction==="rtl"}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:D,getClippingRect:ro,getOffsetParent:$e,getElementRects:ao,getClientRects:eo,getDimensions:co,getScale:I,isElement:_,isRTL:uo};function ho(t,e){let n=null,o;const i=D(t);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const{left:a,top:f,width:u,height:m}=t.getBoundingClientRect();if(c||e(),!u||!m)return;const h=at(f),g=at(i.clientWidth-(a+u)),w=at(i.clientHeight-(f+m)),y=at(a),v={rootMargin:-h+"px "+-g+"px "+-w+"px "+-y+"px",threshold:$(0,ft(1,l))||1};let x=!0;function S(A){const H=A[0].intersectionRatio;if(H!==l){if(!x)return r();H?r(!1,H):o=setTimeout(()=>{r(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(t)}return r(!0),s}function po(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Dt(t),f=i||s?[...a?et(a):[],...et(e)]:[];f.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});const u=a&&c?ho(a,n):null;let m=-1,h=null;r&&(h=new ResizeObserver(p=>{let[v]=p;v&&v.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),n()}),a&&!l&&h.observe(a),h.observe(e));let g,w=l?W(t):null;l&&y();function y(){const p=W(t);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,g=requestAnimationFrame(y)}return n(),()=>{var p;f.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),u==null||u(),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const mo=Xn,go=Yn,Jt=qn,wo=(t,e,n)=>{const o=new Map,i={platform:fo,...n},s={...i.platform,_c:o};return jn(t,e,{...i,platform:s})};function yo({content:t,open:e,placement:n,offset:{mainAxis:o,crossAxis:i}={mainAxis:0,crossAxis:0}}){return s=>{const r=s.element,c=L.wrap(e);return U.bool(c,{true:()=>ge("body",ie.div(me(l=>{const a=l;return a.style.position="absolute",po(r,a,()=>{wo(r,a,{placement:n,strategy:"absolute",middleware:[Jt(),mo({mainAxis:o,crossAxis:i}),go(),Jt()]}).then(({x:f,y:u})=>{a.style.top=`${u}px`,a.style.left=`${f}px`})})}),t())),false:()=>null})(s)}}function Ve(t,e){if(typeof e=="function")return Ve(t,{success:e});const n=e.failure??(i=>J(it(i.on(console.error)),i.map(s=>`Error: ${s}`))),o=e.success;return U.type(L.wrap(t),{Success:i=>o(i.$.value),Failure:i=>n(i.$.error)})}function vo(){return de.focus(t=>{var e;return(e=t.target)==null?void 0:e.select()})}const xo=t=>e=>{const n=e.element,o=P({width:n.clientWidth,height:n.clientHeight}),i=b(t(o))(e),s=()=>{o.set({width:n.clientWidth,height:n.clientHeight})};let r;return typeof ResizeObserver=="function"&&(r=new ResizeObserver(s),r.observe(n)),c=>{r==null||r.disconnect(),i(c)}},bo=t=>e=>{const n=P({width:(window==null?void 0:window.innerWidth)??0,height:(window==null?void 0:window.innerHeight)??0}),o=b(t(n))(e),i=()=>{n.set({width:(window==null?void 0:window.innerWidth)??0,height:(window==null?void 0:window.innerHeight)??0})};return window==null||window.addEventListener("resize",i),s=>{window==null||window.removeEventListener("resize",i),o(s)}},Ao={element:xo,window:bo};function We(t,e){const n=e.split("/").filter(i=>i!==""),o={};for(let i=0;i<t.length;i++){const s=t[i],r=n[i];if(!r&&s.type!=="catch-all")return null;if(s.type==="literal"){if(s.value!==r)return null}else if(s.type==="param")o[s.name]=r;else if(s.type==="catch-all")return{params:o,path:e}}return n.length!==t.length?null:{params:o,path:e}}function He(t){return t.split("/").map(e=>e.startsWith(":")?{type:"param",name:e.slice(1)}:e==="*"?{type:"catch-all"}:{type:"literal",value:e}).filter(e=>e.type!=="literal"||e.value!=="")}function ze(t){const e=t.map(n=>{const o=He(n);return{route:n,segments:o}});return function(o){for(const{segments:i,route:s}of e){const r=We(i,o);if(r)return{...r,route:s}}return null}}function Lo(t){const e=ze(Object.keys(t));return Rt(n=>{const o=n.map(i=>{const s=e(i.pathname);if(s==null)throw console.error("No route found for",i),new Error("No route found");return{params:s.params,route:s.route,path:s.path,search:i.search,hash:i.hash}});return U.tuple(o.map(i=>[i.route,i]),t)})}exports.Anchor=_n;exports.AsyncResultView=Ee;exports.AutoFocus=Dn;exports.AutoSelect=kn;exports.HTMLTitle=Cn;exports.HiddenWhenEmpty=Tn;exports.InViewport=Re;exports.LocationProviderMarker=Et;exports.PopOver=yo;exports.ProvideAppearance=On;exports.ProvideLocation=Rn;exports.ResultView=Ve;exports.Router=Lo;exports.SelectOnFocus=vo;exports.UseAppearance=Pn;exports.UseLocation=Rt;exports.WhenInViewport=Fn;exports.appearanceMarker=_t;exports.equalsLocation=xe;exports.getFullURL=Le;exports.locationFromURL=be;exports.makeLocation=ve;exports.makeLocationProp=Se;exports.makeRouteMatcher=ze;exports.matchesRoute=We;exports.parseRouteSegments=He;exports.setLocationFromUrl=Ae;exports.size=Ao;
package/index.js CHANGED
@@ -2,7 +2,7 @@ var Te = Object.defineProperty, ke = (t, e, n) => e in t ? Te(t, e, { enumerable
2
2
  const jt = "$__signal__", Tt = "$__prop__", kt = "$__computed__";
3
3
  var qt;
4
4
  qt = jt;
5
- const Me = class $ {
5
+ const Me = class F {
6
6
  constructor(e, n) {
7
7
  d(this, qt, !0), d(this, "_value"), d(this, "_derivatives", []), d(this, "_onValueListeners", []), d(this, "_onDisposeListeners", []), d(this, "get", () => this._value), d(this, "hasListeners", () => this._onValueListeners.length > 0), d(this, "on", (i) => (i(this.get()), this._onValueListeners.push(i), () => {
8
8
  this._onValueListeners.splice(this._onValueListeners.indexOf(i), 1);
@@ -91,7 +91,7 @@ const Me = class $ {
91
91
  }), this.equals = n, this._value = e;
92
92
  }
93
93
  static ofPromise(e, n, i, o = (s, r) => s === r) {
94
- const s = new $(n, o);
94
+ const s = new F(n, o);
95
95
  return e.then((r) => s._setAndNotify(r, !1)).catch((r) => {
96
96
  i != null ? s._setAndNotify(i(r), !1) : console.error(
97
97
  "Unhandled promise rejection in Signal.ofPromise:",
@@ -103,16 +103,16 @@ const Me = class $ {
103
103
  return e != null && e[jt] === !0;
104
104
  }
105
105
  static wrap(e, n = (i, o) => i === o) {
106
- return $.is(e) ? e : new $(e, n);
106
+ return F.is(e) ? e : new F(e, n);
107
107
  }
108
108
  static maybeWrap(e) {
109
- return e == null ? e : $.wrap(e);
109
+ return e == null ? e : F.wrap(e);
110
110
  }
111
111
  static unwrap(e) {
112
- return $.is(e) ? e.get() : e;
112
+ return F.is(e) ? e.get() : e;
113
113
  }
114
114
  static map(e, n) {
115
- return $.is(e) ? e.map(n) : n(e);
115
+ return F.is(e) ? e.map(n) : n(e);
116
116
  }
117
117
  get value() {
118
118
  return this._value;
@@ -135,14 +135,15 @@ class ct extends (Nt = S, Mt = kt, Nt) {
135
135
  static is(e) {
136
136
  return e != null && e[kt] === !0;
137
137
  }
138
+ /** {@inheritDoc Signal.value} */
138
139
  get value() {
139
140
  return this.get();
140
141
  }
141
142
  }
142
- var $t, Ft;
143
- class St extends (Ft = S, $t = Tt, Ft) {
143
+ var Ft, $t;
144
+ class St extends ($t = S, Ft = Tt, $t) {
144
145
  constructor() {
145
- super(...arguments), d(this, $t, !0), d(this, "set", (e) => {
146
+ super(...arguments), d(this, Ft, !0), d(this, "set", (e) => {
146
147
  this._setAndNotify(e, !1);
147
148
  }), d(this, "update", (e) => {
148
149
  this._setAndNotify(e(this.get()), !1);
@@ -170,6 +171,7 @@ class St extends (Ft = S, $t = Tt, Ft) {
170
171
  static is(e) {
171
172
  return e != null && e[Tt] === !0;
172
173
  }
174
+ /** {@inheritDoc Signal.get} */
173
175
  get value() {
174
176
  return this.get();
175
177
  }
@@ -180,15 +182,15 @@ class St extends (Ft = S, $t = Tt, Ft) {
180
182
  function P(t, e = (n, i) => n === i) {
181
183
  return new St(t, e);
182
184
  }
183
- function $e(t, e = (n, i) => n === i) {
185
+ function Fe(t, e = (n, i) => n === i) {
184
186
  return new S(t, e);
185
187
  }
186
- const Xt = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), Yt = /* @__PURE__ */ new Set([
188
+ const Jt = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), Xt = /* @__PURE__ */ new Set([
187
189
  "rowSpan",
188
190
  "colSpan",
189
191
  "tabIndex",
190
192
  "valueAsNumber"
191
- ]), Jt = /* @__PURE__ */ new Set(["valueAsDate"]), Kt = /* @__PURE__ */ new Set([
193
+ ]), Yt = /* @__PURE__ */ new Set(["valueAsDate"]), Kt = /* @__PURE__ */ new Set([
192
194
  "value",
193
195
  "textContent",
194
196
  "innerText",
@@ -197,7 +199,7 @@ const Xt = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
197
199
  "className",
198
200
  "classList"
199
201
  ]), xt = /* @__PURE__ */ new Map();
200
- function Q(t, e) {
202
+ function Z(t, e) {
201
203
  if (xt.has(t))
202
204
  return xt.get(t);
203
205
  {
@@ -205,7 +207,7 @@ function Q(t, e) {
205
207
  return xt.set(t, n), n;
206
208
  }
207
209
  }
208
- function Fe(t) {
210
+ function $e(t) {
209
211
  return (e, n) => {
210
212
  n == null ? e[t] = null : e[t] = !!n;
211
213
  };
@@ -230,11 +232,11 @@ function ze(t) {
230
232
  n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
231
233
  };
232
234
  }
233
- function Gt(t) {
234
- return Xt.has(t) ? Q(t, Fe) : Yt.has(t) ? Q(t, Ve) : Jt.has(t) ? Q(t, We) : Kt.has(t) ? Q(t, He) : Q(t, ze);
235
- }
236
235
  function Qt(t) {
237
- return (e) => Xt.has(t) ? !!e[t] : Yt.has(t) ? Number(e[t]) : Jt.has(t) ? e[t] : Kt.has(t) ? String(e[t]) : e.getAttribute(t);
236
+ return Jt.has(t) ? Z(t, $e) : Xt.has(t) ? Z(t, Ve) : Yt.has(t) ? Z(t, We) : Kt.has(t) ? Z(t, He) : Z(t, ze);
237
+ }
238
+ function Zt(t) {
239
+ return (e) => Jt.has(t) ? !!e[t] : Xt.has(t) ? Number(e[t]) : Yt.has(t) ? e[t] : Kt.has(t) ? String(e[t]) : e.getAttribute(t);
238
240
  }
239
241
  function q(t) {
240
242
  const e = t;
@@ -279,7 +281,7 @@ const Ie = (t, e = {
279
281
  return (o) => {
280
282
  i(), o && q(n);
281
283
  };
282
- }, X = (...t) => (e) => {
284
+ }, J = (...t) => (e) => {
283
285
  const n = t.map((i) => b(i)(e));
284
286
  return (i) => {
285
287
  n.forEach((o) => o(i));
@@ -287,7 +289,7 @@ const Ie = (t, e = {
287
289
  }, tt = () => () => {
288
290
  }, qe = (t) => (e) => (ie(e), e.element.classList.add(...t), (n) => {
289
291
  n && e.element.classList.remove(...t);
290
- }), Xe = (t) => (e) => {
292
+ }), Je = (t) => (e) => {
291
293
  ie(e);
292
294
  const n = e.element;
293
295
  let i = [];
@@ -298,7 +300,7 @@ const Ie = (t, e = {
298
300
  o(), s && i.forEach((r) => n.classList.remove(r)), i.length = 0;
299
301
  };
300
302
  }, nt = (t, e) => {
301
- const n = Gt(t), i = Qt(t);
303
+ const n = Qt(t), i = Zt(t);
302
304
  return (o) => {
303
305
  ne(o, t);
304
306
  const s = i(o.element);
@@ -307,7 +309,7 @@ const Ie = (t, e = {
307
309
  };
308
310
  };
309
311
  }, it = (t, e) => {
310
- const n = Gt(t), i = Qt(t);
312
+ const n = Qt(t), i = Zt(t);
311
313
  return (o) => {
312
314
  ne(o, t);
313
315
  const s = i(o.element);
@@ -318,7 +320,7 @@ const Ie = (t, e = {
318
320
  }, Lt = new Proxy(
319
321
  {},
320
322
  {
321
- get: (t, e) => e === "class" ? (n) => S.is(n) ? Xe(n) : qe(
323
+ get: (t, e) => e === "class" ? (n) => S.is(n) ? Je(n) : qe(
322
324
  (n ?? "").split(" ").filter((i) => i.length > 0)
323
325
  ) : (n) => S.is(n) ? it(
324
326
  e,
@@ -375,12 +377,12 @@ new Proxy(
375
377
  }
376
378
  );
377
379
  function b(t) {
378
- return t == null ? tt : Array.isArray(t) ? X(...t.map(b)) : typeof t == "string" ? Ue(t) : S.is(t) ? je(t) : t;
380
+ return t == null ? tt : Array.isArray(t) ? J(...t.map(b)) : typeof t == "string" ? Ue(t) : S.is(t) ? je(t) : t;
379
381
  }
380
- function Zt(t, ...e) {
382
+ function Gt(t, ...e) {
381
383
  return (n) => {
382
384
  const i = n.createElement(t, void 0);
383
- n.isFirstLevel && Y.isSSR() && oe(i), n.appendOrInsert(i), n = n.withElement(i);
385
+ n.isFirstLevel && X.isSSR() && oe(i), n.appendOrInsert(i), n = n.withElement(i);
384
386
  const o = e.map((s) => b(s)(n));
385
387
  return (s) => {
386
388
  o.forEach((r) => r(!1)), s && q(i);
@@ -390,7 +392,7 @@ function Zt(t, ...e) {
390
392
  function te(t, e, ...n) {
391
393
  return (i) => {
392
394
  const o = i.createElement(t, e);
393
- i.isFirstLevel && Y.isSSR() && oe(o), i.appendOrInsert(o), i = i.withElement(o);
395
+ i.isFirstLevel && X.isSSR() && oe(o), i.appendOrInsert(o), i = i.withElement(o);
394
396
  const s = n.map((r) => b(r)(i));
395
397
  return (r) => {
396
398
  s.forEach((c) => c(!1)), r && q(o);
@@ -400,31 +402,31 @@ function te(t, e, ...n) {
400
402
  const ee = new Proxy(
401
403
  {},
402
404
  {
403
- get: (t, e) => (...n) => Zt(e, n.flatMap(b))
405
+ get: (t, e) => (...n) => Gt(e, n.flatMap(b))
404
406
  }
405
407
  );
406
408
  new Proxy(
407
409
  {},
408
410
  {
409
- get: (t, e) => (...n) => Zt("input", Lt.type(e), ...n)
411
+ get: (t, e) => (...n) => Gt("input", Lt.type(e), ...n)
410
412
  }
411
413
  );
412
- const Ye = "http://www.w3.org/2000/svg";
414
+ const Xe = "http://www.w3.org/2000/svg";
413
415
  new Proxy(
414
416
  {},
415
417
  {
416
- get: (t, e) => (...n) => te(e, Ye, n.flatMap(b))
418
+ get: (t, e) => (...n) => te(e, Xe, n.flatMap(b))
417
419
  }
418
420
  );
419
- const Je = "http://www.w3.org/1998/Math/MathML";
421
+ const Ye = "http://www.w3.org/1998/Math/MathML";
420
422
  new Proxy(
421
423
  {},
422
424
  {
423
- get: (t, e) => (...n) => te(e, Je, n.flatMap(b))
425
+ get: (t, e) => (...n) => te(e, Ye, n.flatMap(b))
424
426
  }
425
427
  );
426
- const Vt = "data-tempo-attr", Ke = "data-tempo-class", Ge = "data-tempo-node", Qe = "data-tempo-text";
427
- function Ze(t, e) {
428
+ const Vt = "data-tempo-attr", Ke = "data-tempo-class", Qe = "data-tempo-node", Ze = "data-tempo-text";
429
+ function Ge(t, e) {
428
430
  const n = t.getAttribute(e);
429
431
  if (n != null) {
430
432
  const i = t.getAttribute(Vt) ?? "{}", o = { ...JSON.parse(i), name: n };
@@ -432,22 +434,22 @@ function Ze(t, e) {
432
434
  }
433
435
  }
434
436
  function ne(t, e) {
435
- Y.isSSR() && t.isFirstLevel && Ze(t.element, e);
437
+ X.isSSR() && t.isFirstLevel && Ge(t.element, e);
436
438
  }
437
439
  function tn(t) {
438
440
  t.setAttribute(Ke, t.className);
439
441
  }
440
442
  function ie(t) {
441
- Y.isSSR() && t.isFirstLevel && tn(t.element);
443
+ X.isSSR() && t.isFirstLevel && tn(t.element);
442
444
  }
443
445
  function oe(t) {
444
- t.setAttribute(Ge, "");
446
+ t.setAttribute(Qe, "");
445
447
  }
446
448
  function en(t) {
447
- t.setAttribute(Qe, t.textContent ?? "");
449
+ t.setAttribute(Ze, t.textContent ?? "");
448
450
  }
449
451
  function se(t) {
450
- Y.isSSR() && t.isFirstLevel && en(t.element);
452
+ X.isSSR() && t.isFirstLevel && en(t.element);
451
453
  }
452
454
  function re() {
453
455
  const t = globalThis;
@@ -475,7 +477,7 @@ function on() {
475
477
  function sn() {
476
478
  ce("counter", (ae() ?? 0) - 1);
477
479
  }
478
- const Y = {
480
+ const X = {
479
481
  useDone: (t) => (on(), b(t(sn))),
480
482
  isSSR: nn
481
483
  }, rn = (t, e) => (n) => (n.element.addEventListener(t, e), (i) => {
@@ -483,6 +485,11 @@ const Y = {
483
485
  }), ue = new Proxy(
484
486
  {},
485
487
  {
488
+ /**
489
+ * @param name - The name of the event handler.
490
+ * @param fn - The function to call when the event is triggered.
491
+ * @returns A `Renderable` function that adds the event listener to the element.
492
+ */
486
493
  get: (t, e) => (n) => rn(e, n)
487
494
  }
488
495
  ), lt = (t, e) => (n) => {
@@ -592,38 +599,43 @@ function mn(t, e) {
592
599
  }
593
600
  function gn(t) {
594
601
  const e = new URL(t, (window == null ? void 0 : window.location.toString()) ?? ""), n = Object.fromEntries(e.searchParams.entries());
595
- return {
602
+ let i = e.hash;
603
+ return i.startsWith("#") && (i = i.substring(1)), {
596
604
  pathname: e.pathname,
597
605
  search: n,
598
- hash: e.hash
606
+ hash: i === "" ? void 0 : i
599
607
  };
600
608
  }
601
609
  function wn(t, e) {
602
610
  const n = gn(e);
603
611
  return t.set(n), t;
604
612
  }
605
- function ai(t) {
613
+ function yn(t) {
606
614
  const n = new URLSearchParams(t.search).toString(), i = t.hash;
607
615
  return `${t.pathname}${n ? `?${n}` : ""}${i ? `#${i}` : ""}`;
608
616
  }
609
- function yn() {
617
+ function vn() {
610
618
  const t = P(pn(), mn), e = () => {
611
- const n = {
612
- ...t.value,
613
- pathname: (window == null ? void 0 : window.location.pathname) ?? ""
619
+ let n = (window == null ? void 0 : window.location.hash) ?? "";
620
+ n.startsWith("#") && (n = n.substring(1));
621
+ const i = {
622
+ pathname: (window == null ? void 0 : window.location.pathname) ?? "",
623
+ search: Object.fromEntries(
624
+ new URLSearchParams((window == null ? void 0 : window.location.search) ?? "").entries()
625
+ ),
626
+ hash: n === "" ? void 0 : n
614
627
  };
615
- t.set(n);
628
+ t.set(i);
616
629
  };
617
630
  return window == null || window.addEventListener("popstate", e), t.onDispose(() => {
618
631
  window == null || window.removeEventListener("popstate", e);
619
632
  }), t.on((n) => {
620
- const o = new URLSearchParams(n.search).toString(), s = n.hash, r = `${n.pathname}${o ? `?${o}` : ""}${s ? `#${s}` : ""}`;
621
- window == null || window.history.pushState({}, "", r);
633
+ window == null || window.history.pushState({}, "", yn(n));
622
634
  }), t;
623
635
  }
624
636
  function ui(t) {
625
- const e = yn();
626
- return X(
637
+ const e = vn();
638
+ return J(
627
639
  ot(e.dispose),
628
640
  me(ge, e, t)
629
641
  );
@@ -651,22 +663,22 @@ const ye = pe("Appearance"), hi = (t) => {
651
663
  const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, n = P(e ? "dark" : "light"), i = (s) => {
652
664
  n.set(s.matches ? "dark" : "light");
653
665
  }, o = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
654
- return o == null || o.addEventListener("change", i), X(
666
+ return o == null || o.addEventListener("change", i), J(
655
667
  me(ye, n, t),
656
668
  ot(() => o == null ? void 0 : o.removeEventListener("change", i))
657
669
  );
658
670
  }, di = (t) => fe(ye, t);
659
- function vn(t, e) {
671
+ function xn(t, e) {
660
672
  if (typeof e == "function")
661
- return vn(t, { success: e });
662
- const n = e.failure ?? ((r) => X(
673
+ return xn(t, { success: e });
674
+ const n = e.failure ?? ((r) => J(
663
675
  ot(r.on(console.error)),
664
676
  r.map((c) => `Error: ${c}`)
665
677
  )), i = e.success, o = e.loading ?? (() => tt), s = e.notAsked ?? (() => tt);
666
678
  return I.type(S.wrap(t), {
667
679
  AsyncSuccess: (r) => i(r.$.value),
668
680
  AsyncFailure: (r) => n(r.$.error),
669
- Loading: (r) => o(r.$.previousValue ?? $e(void 0)),
681
+ Loading: (r) => o(r.$.previousValue ?? Fe(void 0)),
670
682
  NotAsked: s
671
683
  });
672
684
  }
@@ -689,7 +701,7 @@ const pi = (t = 10) => (e) => {
689
701
  return e.style.setProperty(":empty", "display:none"), (i) => {
690
702
  i && e.style.setProperty(":empty", n);
691
703
  };
692
- }, wi = (t) => de("head title", Lt.innerText(t)), xn = {
704
+ }, wi = (t) => de("head title", Lt.innerText(t)), bn = {
693
705
  partial: {
694
706
  root: null,
695
707
  rootMargin: "0px",
@@ -703,46 +715,46 @@ const pi = (t = 10) => (e) => {
703
715
  }, ut = {
704
716
  partial: /* @__PURE__ */ new Map(),
705
717
  full: /* @__PURE__ */ new Map()
706
- }, Z = {
718
+ }, G = {
707
719
  partial: null,
708
720
  full: null
709
721
  };
710
- function bn(t) {
711
- return Z[t] == null && (Z[t] = new IntersectionObserver((e) => {
722
+ function An(t) {
723
+ return G[t] == null && (G[t] = new IntersectionObserver((e) => {
712
724
  e.forEach((n) => {
713
725
  const i = ut[t].get(n.target);
714
726
  i == null || i.set(n.isIntersecting);
715
727
  });
716
- }, xn[t])), Z[t];
728
+ }, bn[t])), G[t];
717
729
  }
718
- function An(t, e) {
719
- const n = P(Y.isSSR());
720
- return X(
730
+ function Sn(t, e) {
731
+ const n = P(X.isSSR());
732
+ return J(
721
733
  he((i) => {
722
- const o = typeof IntersectionObserver < "u" ? bn(t) : null;
734
+ const o = typeof IntersectionObserver < "u" ? An(t) : null;
723
735
  return ut[t].set(i, n), o == null || o.observe(i), () => {
724
736
  var s;
725
- o == null || o.unobserve(i), ut[t].delete(i), ut[t].size === 0 && ((s = Z[t]) == null || s.disconnect(), Z[t] = null);
737
+ o == null || o.unobserve(i), ut[t].delete(i), ut[t].size === 0 && ((s = G[t]) == null || s.disconnect(), G[t] = null);
726
738
  };
727
739
  }),
728
740
  ot(n.dispose),
729
741
  b(e(n))
730
742
  );
731
743
  }
732
- const yi = (t, e, n) => An(t, (i) => an(i, e, n ?? tt)), ft = Math.min, F = Math.max, ht = Math.round, at = Math.floor, k = (t) => ({
744
+ const yi = (t, e, n) => Sn(t, (i) => an(i, e, n ?? tt)), ft = Math.min, $ = Math.max, ht = Math.round, at = Math.floor, k = (t) => ({
733
745
  x: t,
734
746
  y: t
735
- }), Sn = {
747
+ }), Ln = {
736
748
  left: "right",
737
749
  right: "left",
738
750
  bottom: "top",
739
751
  top: "bottom"
740
- }, Ln = {
752
+ }, En = {
741
753
  start: "end",
742
754
  end: "start"
743
755
  };
744
756
  function Wt(t, e, n) {
745
- return F(t, ft(e, n));
757
+ return $(t, ft(e, n));
746
758
  }
747
759
  function mt(t, e) {
748
760
  return typeof t == "function" ? t(e) : t;
@@ -765,7 +777,7 @@ function U(t) {
765
777
  function be(t) {
766
778
  return ve(U(t));
767
779
  }
768
- function En(t, e, n) {
780
+ function Rn(t, e, n) {
769
781
  n === void 0 && (n = !1);
770
782
  const i = gt(t), o = be(t), s = xe(o);
771
783
  let r = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
@@ -776,9 +788,9 @@ function _n(t) {
776
788
  return [At(t), e, At(e)];
777
789
  }
778
790
  function At(t) {
779
- return t.replace(/start|end/g, (e) => Ln[e]);
791
+ return t.replace(/start|end/g, (e) => En[e]);
780
792
  }
781
- function Rn(t, e, n) {
793
+ function On(t, e, n) {
782
794
  const i = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
783
795
  switch (t) {
784
796
  case "top":
@@ -791,15 +803,15 @@ function Rn(t, e, n) {
791
803
  return [];
792
804
  }
793
805
  }
794
- function On(t, e, n, i) {
806
+ function Pn(t, e, n, i) {
795
807
  const o = gt(t);
796
- let s = Rn(V(t), n === "start", i);
808
+ let s = On(V(t), n === "start", i);
797
809
  return o && (s = s.map((r) => r + "-" + o), e && (s = s.concat(s.map(At)))), s;
798
810
  }
799
811
  function dt(t) {
800
- return t.replace(/left|right|bottom|top/g, (e) => Sn[e]);
812
+ return t.replace(/left|right|bottom|top/g, (e) => Ln[e]);
801
813
  }
802
- function Pn(t) {
814
+ function Dn(t) {
803
815
  return {
804
816
  top: 0,
805
817
  right: 0,
@@ -808,8 +820,8 @@ function Pn(t) {
808
820
  ...t
809
821
  };
810
822
  }
811
- function Dn(t) {
812
- return typeof t != "number" ? Pn(t) : {
823
+ function Cn(t) {
824
+ return typeof t != "number" ? Dn(t) : {
813
825
  top: t,
814
826
  right: t,
815
827
  bottom: t,
@@ -882,7 +894,7 @@ function Ht(t, e, n) {
882
894
  }
883
895
  return h;
884
896
  }
885
- const Cn = async (t, e, n) => {
897
+ const Tn = async (t, e, n) => {
886
898
  const {
887
899
  placement: i = "bottom",
888
900
  strategy: o = "absolute",
@@ -959,7 +971,7 @@ async function Ae(t, e) {
959
971
  elementContext: u = "floating",
960
972
  altBoundary: m = !1,
961
973
  padding: h = 0
962
- } = mt(e, t), g = Dn(h), y = c[m ? u === "floating" ? "reference" : "floating" : u], p = pt(await s.getClippingRect({
974
+ } = mt(e, t), g = Cn(h), y = c[m ? u === "floating" ? "reference" : "floating" : u], p = pt(await s.getClippingRect({
963
975
  element: (n = await (s.isElement == null ? void 0 : s.isElement(y))) == null || n ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
964
976
  boundary: a,
965
977
  rootBoundary: f,
@@ -988,7 +1000,7 @@ async function Ae(t, e) {
988
1000
  right: (A.right - p.right + g.right) / L.x
989
1001
  };
990
1002
  }
991
- const Tn = function(t) {
1003
+ const kn = function(t) {
992
1004
  return t === void 0 && (t = {}), {
993
1005
  name: "flip",
994
1006
  options: t,
@@ -1013,11 +1025,11 @@ const Tn = function(t) {
1013
1025
  if ((n = s.arrow) != null && n.alignmentOffset)
1014
1026
  return {};
1015
1027
  const p = V(o), v = U(c), x = V(c) === c, L = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), A = m || (x || !w ? [dt(c)] : _n(c)), H = g !== "none";
1016
- !m && H && A.push(...On(c, w, g, L));
1028
+ !m && H && A.push(...Pn(c, w, g, L));
1017
1029
  const De = [c, ...A], vt = await Ae(e, y), rt = [];
1018
1030
  let K = ((i = s.flip) == null ? void 0 : i.overflows) || [];
1019
1031
  if (f && rt.push(vt[p]), u) {
1020
- const N = En(o, r, L);
1032
+ const N = Rn(o, r, L);
1021
1033
  rt.push(vt[N[0]], vt[N[1]]);
1022
1034
  }
1023
1035
  if (K = [...K, {
@@ -1036,8 +1048,8 @@ const Tn = function(t) {
1036
1048
  placement: Ct
1037
1049
  }
1038
1050
  };
1039
- let G = (Pt = K.filter((z) => z.overflows[0] <= 0).sort((z, C) => z.overflows[1] - C.overflows[1])[0]) == null ? void 0 : Pt.placement;
1040
- if (!G)
1051
+ let Q = (Pt = K.filter((z) => z.overflows[0] <= 0).sort((z, C) => z.overflows[1] - C.overflows[1])[0]) == null ? void 0 : Pt.placement;
1052
+ if (!Q)
1041
1053
  switch (h) {
1042
1054
  case "bestFit": {
1043
1055
  var Dt;
@@ -1050,17 +1062,17 @@ const Tn = function(t) {
1050
1062
  }
1051
1063
  return !0;
1052
1064
  }).map((C) => [C.placement, C.overflows.filter((T) => T > 0).reduce((T, Ce) => T + Ce, 0)]).sort((C, T) => C[1] - T[1])[0]) == null ? void 0 : Dt[0];
1053
- z && (G = z);
1065
+ z && (Q = z);
1054
1066
  break;
1055
1067
  }
1056
1068
  case "initialPlacement":
1057
- G = c;
1069
+ Q = c;
1058
1070
  break;
1059
1071
  }
1060
- if (o !== G)
1072
+ if (o !== Q)
1061
1073
  return {
1062
1074
  reset: {
1063
- placement: G
1075
+ placement: Q
1064
1076
  }
1065
1077
  };
1066
1078
  }
@@ -1068,7 +1080,7 @@ const Tn = function(t) {
1068
1080
  }
1069
1081
  };
1070
1082
  };
1071
- async function kn(t, e) {
1083
+ async function Mn(t, e) {
1072
1084
  const {
1073
1085
  placement: n,
1074
1086
  platform: i,
@@ -1096,7 +1108,7 @@ async function kn(t, e) {
1096
1108
  y: h * f
1097
1109
  };
1098
1110
  }
1099
- const Mn = function(t) {
1111
+ const Nn = function(t) {
1100
1112
  return t === void 0 && (t = 0), {
1101
1113
  name: "offset",
1102
1114
  options: t,
@@ -1107,7 +1119,7 @@ const Mn = function(t) {
1107
1119
  y: s,
1108
1120
  placement: r,
1109
1121
  middlewareData: c
1110
- } = e, l = await kn(e, t);
1122
+ } = e, l = await Mn(e, t);
1111
1123
  return r === ((n = c.offset) == null ? void 0 : n.placement) && (i = c.arrow) != null && i.alignmentOffset ? {} : {
1112
1124
  x: o + l.x,
1113
1125
  y: s + l.y,
@@ -1118,7 +1130,7 @@ const Mn = function(t) {
1118
1130
  };
1119
1131
  }
1120
1132
  };
1121
- }, Nn = function(t) {
1133
+ }, Fn = function(t) {
1122
1134
  return t === void 0 && (t = {}), {
1123
1135
  name: "shift",
1124
1136
  options: t,
@@ -1171,7 +1183,7 @@ const Mn = function(t) {
1171
1183
  }
1172
1184
  };
1173
1185
  };
1174
- function J(t) {
1186
+ function Y(t) {
1175
1187
  return Se(t) ? (t.nodeName || "").toLowerCase() : "#document";
1176
1188
  }
1177
1189
  function E(t) {
@@ -1185,7 +1197,7 @@ function D(t) {
1185
1197
  function Se(t) {
1186
1198
  return t instanceof Node || t instanceof E(t).Node;
1187
1199
  }
1188
- function R(t) {
1200
+ function _(t) {
1189
1201
  return t instanceof Element || t instanceof E(t).Element;
1190
1202
  }
1191
1203
  function O(t) {
@@ -1200,11 +1212,11 @@ function st(t) {
1200
1212
  overflowX: n,
1201
1213
  overflowY: i,
1202
1214
  display: o
1203
- } = _(t);
1215
+ } = R(t);
1204
1216
  return /auto|scroll|overlay|hidden|clip/.test(e + i + n) && !["inline", "contents"].includes(o);
1205
1217
  }
1206
1218
  function $n(t) {
1207
- return ["table", "td", "th"].includes(J(t));
1219
+ return ["table", "td", "th"].includes(Y(t));
1208
1220
  }
1209
1221
  function wt(t) {
1210
1222
  return [":popover-open", ":modal"].some((e) => {
@@ -1216,10 +1228,10 @@ function wt(t) {
1216
1228
  });
1217
1229
  }
1218
1230
  function Et(t) {
1219
- const e = _t(), n = _(t);
1231
+ const e = Rt(), n = R(t);
1220
1232
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
1221
1233
  }
1222
- function Fn(t) {
1234
+ function Vn(t) {
1223
1235
  let e = M(t);
1224
1236
  for (; O(e) && !j(e); ) {
1225
1237
  if (wt(e))
@@ -1230,17 +1242,17 @@ function Fn(t) {
1230
1242
  }
1231
1243
  return null;
1232
1244
  }
1233
- function _t() {
1245
+ function Rt() {
1234
1246
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1235
1247
  }
1236
1248
  function j(t) {
1237
- return ["html", "body", "#document"].includes(J(t));
1249
+ return ["html", "body", "#document"].includes(Y(t));
1238
1250
  }
1239
- function _(t) {
1251
+ function R(t) {
1240
1252
  return E(t).getComputedStyle(t);
1241
1253
  }
1242
1254
  function yt(t) {
1243
- return R(t) ? {
1255
+ return _(t) ? {
1244
1256
  scrollLeft: t.scrollLeft,
1245
1257
  scrollTop: t.scrollTop
1246
1258
  } : {
@@ -1249,7 +1261,7 @@ function yt(t) {
1249
1261
  };
1250
1262
  }
1251
1263
  function M(t) {
1252
- if (J(t) === "html")
1264
+ if (Y(t) === "html")
1253
1265
  return t;
1254
1266
  const e = (
1255
1267
  // Step into the shadow DOM of the parent of a slotted node.
@@ -1271,7 +1283,7 @@ function et(t, e, n) {
1271
1283
  return s ? e.concat(r, r.visualViewport || [], st(o) ? o : [], r.frameElement && n ? et(r.frameElement) : []) : e.concat(o, et(o, [], n));
1272
1284
  }
1273
1285
  function Ee(t) {
1274
- const e = _(t);
1286
+ const e = R(t);
1275
1287
  let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
1276
1288
  const o = O(t), s = o ? t.offsetWidth : n, r = o ? t.offsetHeight : i, c = ht(n) !== s || ht(i) !== r;
1277
1289
  return c && (n = s, i = r), {
@@ -1280,11 +1292,11 @@ function Ee(t) {
1280
1292
  $: c
1281
1293
  };
1282
1294
  }
1283
- function Rt(t) {
1284
- return R(t) ? t : t.contextElement;
1295
+ function _t(t) {
1296
+ return _(t) ? t : t.contextElement;
1285
1297
  }
1286
1298
  function B(t) {
1287
- const e = Rt(t);
1299
+ const e = _t(t);
1288
1300
  if (!O(e))
1289
1301
  return k(1);
1290
1302
  const n = e.getBoundingClientRect(), {
@@ -1298,29 +1310,29 @@ function B(t) {
1298
1310
  y: c
1299
1311
  };
1300
1312
  }
1301
- const Vn = /* @__PURE__ */ k(0);
1302
- function _e(t) {
1313
+ const Wn = /* @__PURE__ */ k(0);
1314
+ function Re(t) {
1303
1315
  const e = E(t);
1304
- return !_t() || !e.visualViewport ? Vn : {
1316
+ return !Rt() || !e.visualViewport ? Wn : {
1305
1317
  x: e.visualViewport.offsetLeft,
1306
1318
  y: e.visualViewport.offsetTop
1307
1319
  };
1308
1320
  }
1309
- function Wn(t, e, n) {
1321
+ function Hn(t, e, n) {
1310
1322
  return e === void 0 && (e = !1), !n || e && n !== E(t) ? !1 : e;
1311
1323
  }
1312
1324
  function W(t, e, n, i) {
1313
1325
  e === void 0 && (e = !1), n === void 0 && (n = !1);
1314
- const o = t.getBoundingClientRect(), s = Rt(t);
1326
+ const o = t.getBoundingClientRect(), s = _t(t);
1315
1327
  let r = k(1);
1316
- e && (i ? R(i) && (r = B(i)) : r = B(t));
1317
- const c = Wn(s, n, i) ? _e(s) : k(0);
1328
+ e && (i ? _(i) && (r = B(i)) : r = B(t));
1329
+ const c = Hn(s, n, i) ? Re(s) : k(0);
1318
1330
  let l = (o.left + c.x) / r.x, a = (o.top + c.y) / r.y, f = o.width / r.x, u = o.height / r.y;
1319
1331
  if (s) {
1320
- const m = E(s), h = i && R(i) ? E(i) : i;
1332
+ const m = E(s), h = i && _(i) ? E(i) : i;
1321
1333
  let g = m, w = g.frameElement;
1322
1334
  for (; w && i && h !== g; ) {
1323
- const y = B(w), p = w.getBoundingClientRect(), v = _(w), x = p.left + (w.clientLeft + parseFloat(v.paddingLeft)) * y.x, L = p.top + (w.clientTop + parseFloat(v.paddingTop)) * y.y;
1335
+ const y = B(w), p = w.getBoundingClientRect(), v = R(w), x = p.left + (w.clientLeft + parseFloat(v.paddingLeft)) * y.x, L = p.top + (w.clientTop + parseFloat(v.paddingTop)) * y.y;
1324
1336
  l *= y.x, a *= y.y, f *= y.x, u *= y.y, l += x, a += L, g = E(w), w = g.frameElement;
1325
1337
  }
1326
1338
  }
@@ -1331,7 +1343,7 @@ function W(t, e, n, i) {
1331
1343
  y: a
1332
1344
  });
1333
1345
  }
1334
- function Hn(t) {
1346
+ function zn(t) {
1335
1347
  let {
1336
1348
  elements: e,
1337
1349
  rect: n,
@@ -1346,7 +1358,7 @@ function Hn(t) {
1346
1358
  scrollTop: 0
1347
1359
  }, a = k(1);
1348
1360
  const f = k(0), u = O(i);
1349
- if ((u || !u && !s) && ((J(i) !== "body" || st(r)) && (l = yt(i)), O(i))) {
1361
+ if ((u || !u && !s) && ((Y(i) !== "body" || st(r)) && (l = yt(i)), O(i))) {
1350
1362
  const m = W(i);
1351
1363
  a = B(i), f.x = m.x + i.clientLeft, f.y = m.y + i.clientTop;
1352
1364
  }
@@ -1357,29 +1369,29 @@ function Hn(t) {
1357
1369
  y: n.y * a.y - l.scrollTop * a.y + f.y
1358
1370
  };
1359
1371
  }
1360
- function zn(t) {
1372
+ function Bn(t) {
1361
1373
  return Array.from(t.getClientRects());
1362
1374
  }
1363
- function Re(t) {
1375
+ function _e(t) {
1364
1376
  return W(D(t)).left + yt(t).scrollLeft;
1365
1377
  }
1366
- function Bn(t) {
1367
- const e = D(t), n = yt(t), i = t.ownerDocument.body, o = F(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), s = F(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
1368
- let r = -n.scrollLeft + Re(t);
1378
+ function In(t) {
1379
+ const e = D(t), n = yt(t), i = t.ownerDocument.body, o = $(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), s = $(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
1380
+ let r = -n.scrollLeft + _e(t);
1369
1381
  const c = -n.scrollTop;
1370
- return _(i).direction === "rtl" && (r += F(e.clientWidth, i.clientWidth) - o), {
1382
+ return R(i).direction === "rtl" && (r += $(e.clientWidth, i.clientWidth) - o), {
1371
1383
  width: o,
1372
1384
  height: s,
1373
1385
  x: r,
1374
1386
  y: c
1375
1387
  };
1376
1388
  }
1377
- function In(t, e) {
1389
+ function Un(t, e) {
1378
1390
  const n = E(t), i = D(t), o = n.visualViewport;
1379
1391
  let s = i.clientWidth, r = i.clientHeight, c = 0, l = 0;
1380
1392
  if (o) {
1381
1393
  s = o.width, r = o.height;
1382
- const a = _t();
1394
+ const a = Rt();
1383
1395
  (!a || a && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
1384
1396
  }
1385
1397
  return {
@@ -1389,7 +1401,7 @@ function In(t, e) {
1389
1401
  y: l
1390
1402
  };
1391
1403
  }
1392
- function Un(t, e) {
1404
+ function jn(t, e) {
1393
1405
  const n = W(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, s = O(t) ? B(t) : k(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, l = o * s.x, a = i * s.y;
1394
1406
  return {
1395
1407
  width: r,
@@ -1401,13 +1413,13 @@ function Un(t, e) {
1401
1413
  function Bt(t, e, n) {
1402
1414
  let i;
1403
1415
  if (e === "viewport")
1404
- i = In(t, n);
1416
+ i = Un(t, n);
1405
1417
  else if (e === "document")
1406
- i = Bn(D(t));
1407
- else if (R(e))
1408
- i = Un(e, n);
1418
+ i = In(D(t));
1419
+ else if (_(e))
1420
+ i = jn(e, n);
1409
1421
  else {
1410
- const o = _e(t);
1422
+ const o = Re(t);
1411
1423
  i = {
1412
1424
  ...e,
1413
1425
  x: e.x - o.x,
@@ -1418,31 +1430,31 @@ function Bt(t, e, n) {
1418
1430
  }
1419
1431
  function Oe(t, e) {
1420
1432
  const n = M(t);
1421
- return n === e || !R(n) || j(n) ? !1 : _(n).position === "fixed" || Oe(n, e);
1433
+ return n === e || !_(n) || j(n) ? !1 : R(n).position === "fixed" || Oe(n, e);
1422
1434
  }
1423
- function jn(t, e) {
1435
+ function qn(t, e) {
1424
1436
  const n = e.get(t);
1425
1437
  if (n)
1426
1438
  return n;
1427
- let i = et(t, [], !1).filter((c) => R(c) && J(c) !== "body"), o = null;
1428
- const s = _(t).position === "fixed";
1439
+ let i = et(t, [], !1).filter((c) => _(c) && Y(c) !== "body"), o = null;
1440
+ const s = R(t).position === "fixed";
1429
1441
  let r = s ? M(t) : t;
1430
- for (; R(r) && !j(r); ) {
1431
- const c = _(r), l = Et(r);
1442
+ for (; _(r) && !j(r); ) {
1443
+ const c = R(r), l = Et(r);
1432
1444
  !l && c.position === "fixed" && (o = null), (s ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || st(r) && !l && Oe(t, r)) ? i = i.filter((f) => f !== r) : o = c, r = M(r);
1433
1445
  }
1434
1446
  return e.set(t, i), i;
1435
1447
  }
1436
- function qn(t) {
1448
+ function Jn(t) {
1437
1449
  let {
1438
1450
  element: e,
1439
1451
  boundary: n,
1440
1452
  rootBoundary: i,
1441
1453
  strategy: o
1442
1454
  } = t;
1443
- const r = [...n === "clippingAncestors" ? wt(e) ? [] : jn(e, this._c) : [].concat(n), i], c = r[0], l = r.reduce((a, f) => {
1455
+ const r = [...n === "clippingAncestors" ? wt(e) ? [] : qn(e, this._c) : [].concat(n), i], c = r[0], l = r.reduce((a, f) => {
1444
1456
  const u = Bt(e, f, o);
1445
- return a.top = F(u.top, a.top), a.right = ft(u.right, a.right), a.bottom = ft(u.bottom, a.bottom), a.left = F(u.left, a.left), a;
1457
+ return a.top = $(u.top, a.top), a.right = ft(u.right, a.right), a.bottom = ft(u.bottom, a.bottom), a.left = $(u.left, a.left), a;
1446
1458
  }, Bt(e, c, o));
1447
1459
  return {
1448
1460
  width: l.right - l.left,
@@ -1469,10 +1481,10 @@ function Yn(t, e, n) {
1469
1481
  };
1470
1482
  const l = k(0);
1471
1483
  if (i || !i && !s)
1472
- if ((J(e) !== "body" || st(o)) && (c = yt(e)), i) {
1484
+ if ((Y(e) !== "body" || st(o)) && (c = yt(e)), i) {
1473
1485
  const u = W(e, !0, s, e);
1474
1486
  l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
1475
- } else o && (l.x = Re(o));
1487
+ } else o && (l.x = _e(o));
1476
1488
  const a = r.left + c.scrollLeft - l.x, f = r.top + c.scrollTop - l.y;
1477
1489
  return {
1478
1490
  x: a,
@@ -1482,10 +1494,10 @@ function Yn(t, e, n) {
1482
1494
  };
1483
1495
  }
1484
1496
  function bt(t) {
1485
- return _(t).position === "static";
1497
+ return R(t).position === "static";
1486
1498
  }
1487
1499
  function It(t, e) {
1488
- return !O(t) || _(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
1500
+ return !O(t) || R(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
1489
1501
  }
1490
1502
  function Pe(t, e) {
1491
1503
  const n = E(t);
@@ -1494,7 +1506,7 @@ function Pe(t, e) {
1494
1506
  if (!O(t)) {
1495
1507
  let o = M(t);
1496
1508
  for (; o && !j(o); ) {
1497
- if (R(o) && !bt(o))
1509
+ if (_(o) && !bt(o))
1498
1510
  return o;
1499
1511
  o = M(o);
1500
1512
  }
@@ -1503,9 +1515,9 @@ function Pe(t, e) {
1503
1515
  let i = It(t, e);
1504
1516
  for (; i && $n(i) && bt(i); )
1505
1517
  i = It(i, e);
1506
- return i && j(i) && bt(i) && !Et(i) ? n : i || Fn(t) || n;
1518
+ return i && j(i) && bt(i) && !Et(i) ? n : i || Vn(t) || n;
1507
1519
  }
1508
- const Jn = async function(t) {
1520
+ const Kn = async function(t) {
1509
1521
  const e = this.getOffsetParent || Pe, n = this.getDimensions, i = await n(t.floating);
1510
1522
  return {
1511
1523
  reference: Yn(t.reference, await e(t.floating), t.strategy),
@@ -1517,22 +1529,22 @@ const Jn = async function(t) {
1517
1529
  }
1518
1530
  };
1519
1531
  };
1520
- function Kn(t) {
1521
- return _(t).direction === "rtl";
1532
+ function Qn(t) {
1533
+ return R(t).direction === "rtl";
1522
1534
  }
1523
- const Gn = {
1524
- convertOffsetParentRelativeRectToViewportRelativeRect: Hn,
1535
+ const Zn = {
1536
+ convertOffsetParentRelativeRectToViewportRelativeRect: zn,
1525
1537
  getDocumentElement: D,
1526
- getClippingRect: qn,
1538
+ getClippingRect: Jn,
1527
1539
  getOffsetParent: Pe,
1528
- getElementRects: Jn,
1529
- getClientRects: zn,
1540
+ getElementRects: Kn,
1541
+ getClientRects: Bn,
1530
1542
  getDimensions: Xn,
1531
1543
  getScale: B,
1532
- isElement: R,
1533
- isRTL: Kn
1544
+ isElement: _,
1545
+ isRTL: Qn
1534
1546
  };
1535
- function Qn(t, e) {
1547
+ function Gn(t, e) {
1536
1548
  let n = null, i;
1537
1549
  const o = D(t);
1538
1550
  function s() {
@@ -1551,7 +1563,7 @@ function Qn(t, e) {
1551
1563
  return;
1552
1564
  const h = at(f), g = at(o.clientWidth - (a + u)), w = at(o.clientHeight - (f + m)), y = at(a), v = {
1553
1565
  rootMargin: -h + "px " + -g + "px " + -w + "px " + -y + "px",
1554
- threshold: F(0, ft(1, l)) || 1
1566
+ threshold: $(0, ft(1, l)) || 1
1555
1567
  };
1556
1568
  let x = !0;
1557
1569
  function L(A) {
@@ -1578,7 +1590,7 @@ function Qn(t, e) {
1578
1590
  }
1579
1591
  return r(!0), s;
1580
1592
  }
1581
- function Zn(t, e, n, i) {
1593
+ function ti(t, e, n, i) {
1582
1594
  i === void 0 && (i = {});
1583
1595
  const {
1584
1596
  ancestorScroll: o = !0,
@@ -1586,13 +1598,13 @@ function Zn(t, e, n, i) {
1586
1598
  elementResize: r = typeof ResizeObserver == "function",
1587
1599
  layoutShift: c = typeof IntersectionObserver == "function",
1588
1600
  animationFrame: l = !1
1589
- } = i, a = Rt(t), f = o || s ? [...a ? et(a) : [], ...et(e)] : [];
1601
+ } = i, a = _t(t), f = o || s ? [...a ? et(a) : [], ...et(e)] : [];
1590
1602
  f.forEach((p) => {
1591
1603
  o && p.addEventListener("scroll", n, {
1592
1604
  passive: !0
1593
1605
  }), s && p.addEventListener("resize", n);
1594
1606
  });
1595
- const u = a && c ? Qn(a, n) : null;
1607
+ const u = a && c ? Gn(a, n) : null;
1596
1608
  let m = -1, h = null;
1597
1609
  r && (h = new ResizeObserver((p) => {
1598
1610
  let [v] = p;
@@ -1614,15 +1626,15 @@ function Zn(t, e, n, i) {
1614
1626
  }), u == null || u(), (p = h) == null || p.disconnect(), h = null, l && cancelAnimationFrame(g);
1615
1627
  };
1616
1628
  }
1617
- const ti = Mn, ei = Nn, Ut = Tn, ni = (t, e, n) => {
1629
+ const ei = Nn, ni = Fn, Ut = kn, ii = (t, e, n) => {
1618
1630
  const i = /* @__PURE__ */ new Map(), o = {
1619
- platform: Gn,
1631
+ platform: Zn,
1620
1632
  ...n
1621
1633
  }, s = {
1622
1634
  ...o.platform,
1623
1635
  _c: i
1624
1636
  };
1625
- return Cn(t, e, {
1637
+ return Tn(t, e, {
1626
1638
  ...o,
1627
1639
  platform: s
1628
1640
  });
@@ -1641,14 +1653,14 @@ function vi({
1641
1653
  ee.div(
1642
1654
  he((l) => {
1643
1655
  const a = l;
1644
- return a.style.position = "absolute", Zn(r, a, () => {
1645
- ni(r, a, {
1656
+ return a.style.position = "absolute", ti(r, a, () => {
1657
+ ii(r, a, {
1646
1658
  placement: n,
1647
1659
  strategy: "absolute",
1648
1660
  middleware: [
1649
1661
  Ut(),
1650
- ti({ mainAxis: i, crossAxis: o }),
1651
- ei(),
1662
+ ei({ mainAxis: i, crossAxis: o }),
1663
+ ni(),
1652
1664
  Ut()
1653
1665
  ]
1654
1666
  }).then(({ x: f, y: u }) => {
@@ -1663,10 +1675,10 @@ function vi({
1663
1675
  })(s);
1664
1676
  };
1665
1677
  }
1666
- function ii(t, e) {
1678
+ function oi(t, e) {
1667
1679
  if (typeof e == "function")
1668
- return ii(t, { success: e });
1669
- const n = e.failure ?? ((o) => X(
1680
+ return oi(t, { success: e });
1681
+ const n = e.failure ?? ((o) => J(
1670
1682
  ot(o.on(console.error)),
1671
1683
  o.map((s) => `Error: ${s}`)
1672
1684
  )), i = e.success;
@@ -1681,7 +1693,7 @@ function xi() {
1681
1693
  return (e = t.target) == null ? void 0 : e.select();
1682
1694
  });
1683
1695
  }
1684
- const oi = (t) => (e) => {
1696
+ const si = (t) => (e) => {
1685
1697
  const n = e.element, i = P({ width: n.clientWidth, height: n.clientHeight }), o = b(t(i))(e), s = () => {
1686
1698
  i.set({ width: n.clientWidth, height: n.clientHeight });
1687
1699
  };
@@ -1689,7 +1701,7 @@ const oi = (t) => (e) => {
1689
1701
  return typeof ResizeObserver == "function" && (r = new ResizeObserver(s), r.observe(n)), (c) => {
1690
1702
  r == null || r.disconnect(), o(c);
1691
1703
  };
1692
- }, si = (t) => (e) => {
1704
+ }, ri = (t) => (e) => {
1693
1705
  const n = P({
1694
1706
  width: (window == null ? void 0 : window.innerWidth) ?? 0,
1695
1707
  height: (window == null ? void 0 : window.innerHeight) ?? 0
@@ -1703,10 +1715,10 @@ const oi = (t) => (e) => {
1703
1715
  window == null || window.removeEventListener("resize", o), i(s);
1704
1716
  };
1705
1717
  }, bi = {
1706
- element: oi,
1707
- window: si
1718
+ element: si,
1719
+ window: ri
1708
1720
  };
1709
- function ri(t, e) {
1721
+ function ci(t, e) {
1710
1722
  const n = e.split("/").filter((o) => o !== ""), i = {};
1711
1723
  for (let o = 0; o < t.length; o++) {
1712
1724
  const s = t[o], r = n[o];
@@ -1722,17 +1734,17 @@ function ri(t, e) {
1722
1734
  }
1723
1735
  return n.length !== t.length ? null : { params: i, path: e };
1724
1736
  }
1725
- function ci(t) {
1737
+ function li(t) {
1726
1738
  return t.split("/").map((e) => e.startsWith(":") ? { type: "param", name: e.slice(1) } : e === "*" ? { type: "catch-all" } : { type: "literal", value: e }).filter((e) => e.type !== "literal" || e.value !== "");
1727
1739
  }
1728
- function li(t) {
1740
+ function ai(t) {
1729
1741
  const e = t.map((n) => {
1730
- const i = ci(n);
1742
+ const i = li(n);
1731
1743
  return { route: n, segments: i };
1732
1744
  });
1733
1745
  return function(i) {
1734
1746
  for (const { segments: o, route: s } of e) {
1735
- const r = ri(o, i);
1747
+ const r = ci(o, i);
1736
1748
  if (r)
1737
1749
  return { ...r, route: s };
1738
1750
  }
@@ -1740,7 +1752,7 @@ function li(t) {
1740
1752
  };
1741
1753
  }
1742
1754
  function Ai(t) {
1743
- const e = li(Object.keys(t));
1755
+ const e = ai(Object.keys(t));
1744
1756
  return we((n) => {
1745
1757
  const i = n.map((o) => {
1746
1758
  const s = e(o.pathname);
@@ -1763,17 +1775,17 @@ function Ai(t) {
1763
1775
  }
1764
1776
  export {
1765
1777
  fi as Anchor,
1766
- vn as AsyncResultView,
1778
+ xn as AsyncResultView,
1767
1779
  pi as AutoFocus,
1768
1780
  mi as AutoSelect,
1769
1781
  wi as HTMLTitle,
1770
1782
  gi as HiddenWhenEmpty,
1771
- An as InViewport,
1783
+ Sn as InViewport,
1772
1784
  ge as LocationProviderMarker,
1773
1785
  vi as PopOver,
1774
1786
  hi as ProvideAppearance,
1775
1787
  ui as ProvideLocation,
1776
- ii as ResultView,
1788
+ oi as ResultView,
1777
1789
  Ai as Router,
1778
1790
  xi as SelectOnFocus,
1779
1791
  di as UseAppearance,
@@ -1781,13 +1793,13 @@ export {
1781
1793
  yi as WhenInViewport,
1782
1794
  ye as appearanceMarker,
1783
1795
  mn as equalsLocation,
1784
- ai as getFullURL,
1796
+ yn as getFullURL,
1785
1797
  gn as locationFromURL,
1786
1798
  pn as makeLocation,
1787
- yn as makeLocationProp,
1788
- li as makeRouteMatcher,
1789
- ri as matchesRoute,
1790
- ci as parseRouteSegments,
1799
+ vn as makeLocationProp,
1800
+ ai as makeRouteMatcher,
1801
+ ci as matchesRoute,
1802
+ li as parseRouteSegments,
1791
1803
  wn as setLocationFromUrl,
1792
1804
  bi as size
1793
1805
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/ui",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -40,7 +40,7 @@
40
40
  "@floating-ui/dom": "^1.6.7"
41
41
  },
42
42
  "peerDependencies": {
43
- "@tempots/dom": "0.12.0",
43
+ "@tempots/dom": "18.0.0",
44
44
  "@tempots/std": "0.10.7"
45
45
  }
46
46
  }
@@ -1,16 +1,16 @@
1
1
  import { TNode, Prop } from '@tempots/dom';
2
2
 
3
- export interface Location {
3
+ export interface LocationData {
4
4
  pathname: string;
5
5
  search: Record<string, string>;
6
6
  hash?: string;
7
7
  }
8
- export declare const LocationProviderMarker: import('@tempots/dom').ProviderMark<Prop<Location>>;
9
- export declare function makeLocation(): Location;
10
- export declare function equalsLocation(a: Location, b: Location): boolean;
11
- export declare function locationFromURL(url: string): Location;
12
- export declare function setLocationFromUrl(prop: Prop<Location>, url: string): Prop<Location>;
13
- export declare function getFullURL(location: Location): string;
14
- export declare function makeLocationProp(): Prop<Location>;
8
+ export declare const LocationProviderMarker: import('@tempots/dom').ProviderMark<Prop<LocationData>>;
9
+ export declare function makeLocation(): LocationData;
10
+ export declare function equalsLocation(a: LocationData, b: LocationData): boolean;
11
+ export declare function locationFromURL(url: string): LocationData;
12
+ export declare function setLocationFromUrl(prop: Prop<LocationData>, url: string): Prop<LocationData>;
13
+ export declare function getFullURL(location: LocationData): string;
14
+ export declare function makeLocationProp(): Prop<LocationData>;
15
15
  export declare function ProvideLocation(child: TNode): import('@tempots/dom').Renderable;
16
- export declare function UseLocation(fn: (location: Prop<Location>) => TNode): import('@tempots/dom').Renderable;
16
+ export declare function UseLocation(fn: (location: Prop<LocationData>) => TNode): import('@tempots/dom').Renderable;