ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
3 lines (2 loc) • 40.3 kB
JavaScript
var oe=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for("NEW_LISTENER")&&this.call(Symbol.for("NEW_LISTENER"),e);const n=this._events.get(e)||new Set;return typeof t=="function"?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(n=>{const{callback:r}=n;r(...t)}),this);callSync=async(e,...t)=>{const n=this._events.get(e)||new Set;for(const r of n){const{callback:i}=r;await i(...t)}return this};once=(e,t)=>{let n;if(typeof t=="function")n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{const{callback:r}=t;n={name:e,callback:(...i)=>{r(...i),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{const n=[...this._events.get(e)||new Set].filter(r=>{if(typeof t=="function")return r.callback!==t&&r.initialCallback!==t;{const{callback:i}=t;return r.callback!==i&&r.initialCallback!==i}});return this._events.set(e,new Set(n)),this}},Xt=Math.PI/180,Zt=180/Math.PI,Qt=2*Math.PI,D=(e=8)=>Math.random().toString(36).substring(2,e+2),_=Math.round,Se=function(e){const t=e[0]==="#"?e.slice(1):e;if(/^[a-f\d]{3}$/i.test(t))return[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)];const n=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null},W=function(e){const t=e.toString(16);return t.length===1?"0"+t:t},Le=function(e,t=0,n=0){return e instanceof Array&&(n=e[2],t=e[1],e=e[0]),"#"+W(e)+W(t)+W(n)},ae=function(e,t,n){let r,i,s=0;e/=255,t/=255,n/=255;const o=Math.max(e,t,n),l=Math.min(e,t,n);i=o;const c=o-l;if(r=o===0?0:c/o,o===l)s=0;else{switch(o){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4}s/=6}return s=_(360*s),r=_(100*r),i=_(100*i),[s,r,i]},Pe=function(e,t,n){let r=0,i=0,s=0;if(n===0)return[0,0,0];t/=100,n/=100,e/=60;const o=Math.floor(e),l=e-o,c=n*(1-t),d=n*(1-t*l),b=n*(1-t*(1-l));return o===0?(r=n,i=b,s=c):o===1?(r=d,i=n,s=c):o===2?(r=c,i=n,s=b):o===3?(r=c,i=d,s=n):o===4?(r=b,i=c,s=n):o===5&&(r=n,i=c,s=d),r=_(255*r),i=_(255*i),s=_(255*s),[r,i,s]},Oe=Pe,Ce=ae,Me=function(e){const t=Se(e);return t?ae(t[0],t[1],t[2]):null},Ee=Me,_e=/^#([\da-f]{6}|[\da-f]{3})$/i,je=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/,xe=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d{1,3}(\.\d+)?)\)$/,T=(e,t=2)=>String(e).padStart(t,"0"),Re=e=>{if(!Number.isFinite(e))return"";const t=Math.max(0,Math.trunc(e)),n=Math.trunc(t/3600),r=Math.trunc(t%3600/60),i=T(t%60);return n===0?`${T(r)}:${i}`:`${T(n)}:${T(r)}:${i}`},Ae=/(?:(\d{2,}):)?(\d{2}):(\d{2})\.(\d{3})/,Q=e=>{const t=e.trim().match(Ae);if(!t)return;const[,n,r,i,s]=t;return(n?3600*Number(n):0)+60*Number(r)+Number(i)+Number(s)/1e3},ke=e=>{const[t,n]=e.split("-->");if(!t||!n)return;const r=Q(t),i=Q(n.trim().split(/\s+/)[0]??"");return r!==void 0&&i!==void 0?{start:r,end:i}:void 0},Te=e=>{const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return((typeof window>"u"?1:window.devicePixelRatio)||1)/t},Ne=e=>{const t={},n=(r=>{const i=r??(typeof window>"u"?"":window.location.href),s=i.indexOf("?");if(s===-1)return"";const o=i.slice(s+1),l=o.indexOf("#");return l===-1?o:o.slice(0,l)})(e);if(!n)return t;for(const r of n.split("&")){if(!r)continue;const i=r.indexOf("="),s=i===-1?r:r.slice(0,i),o=i===-1?"":r.slice(i+1);if(s)try{t[decodeURIComponent(s.replace(/\+/g," "))]=decodeURIComponent(o.replace(/\+/g," "))}catch{t[s]=o}}return t};function Ie(e){if(typeof window<"u"){const t=new RegExp(`(^| )${e}(?:=([^;]*))?(;|$)`).exec(document.cookie);if(t&&t[2])return t[2]}return""}var G=()=>{try{return typeof localStorage>"u"?null:localStorage}catch{return null}},V=(e,t)=>{try{G()?.setItem(e,t)}catch{}},R=e=>{try{return G()?.getItem(e)??""}catch{return""}},$e=e=>{try{G()?.removeItem(e)}catch{}},qe=(e="")=>{const t=n=>`${e}${n}`;return{keyOf:t,get:(n,r)=>{const i=R(t(n));if(!i)return r;try{return JSON.parse(i)}catch{return r}},set:(n,r)=>{let i;try{i=JSON.stringify(r)}catch{return!1}return V(t(n),i),R(t(n))===i},remove:n=>$e(t(n))}},Be=e=>{const{supported:t,query:n,cookie:r,storageKey:i,useNavigator:s=!0,url:o}=e,l=e.fallback??t[0]??"en";if(t.length===0)return l;const c=t.map(p=>p.toLowerCase()),d=p=>{if(!p)return;const h=p.trim().toLowerCase();if(!h)return;const m=c.indexOf(h);if(m!==-1)return t[m];const f=h.split("-")[0],w=c.findIndex(g=>g===f||g.split("-")[0]===f);return w===-1?void 0:t[w]},b=[];if(n&&b.push(Ne(o)[n]),r&&b.push(Ie(r)),i&&b.push(R(i)),s&&typeof navigator<"u"){const{languages:p,language:h}=navigator;b.push(...p??[],h)}for(const p of b){const h=d(p);if(h)return h}return l},He=Object.freeze({}),le=class{_locale;_fallback;_messages;_persist;_storageKey;_handlers=new Set;constructor(e={}){this._messages={...e.messages},this._fallback=e.fallbackLocale??"en",this._persist=e.persist??!1,this._storageKey=e.storageKey??"ran-locale",this._locale=this._resolveInitialLocale(e)}_resolveInitialLocale(e){const t=Object.keys(this._messages),n=this._persist&&R(this._storageKey)||null;if(n&&(this._messages[n]||t.length===0))return n;if(e.locale)return e.locale;if(e.detectNavigator){const r=Be({supported:t,useNavigator:!0,fallback:""});if(r)return r}return this._fallback}get locale(){return this._locale}getLocale(){return this._locale}setLocale(e){e!==this._locale&&(this._locale=e,this._persist&&V(this._storageKey,e),this._notify())}addMessages(e,t){this._messages[e]={...this._messages[e],...t}}getMessages(e=this._locale){return this._messages[e]??{}}get availableLocales(){return Object.keys(this._messages)}t(e,t){const n=this._messages[this._locale]?.[e]??this._messages[this._fallback]?.[e]??e;return this._interpolate(n,t)}_interpolate(e,t){const n=t??He;return e.replace(/\{\{|\}\}|\{(\w+)\}/g,(r,i)=>r==="{{"?"{":r==="}}"?"}":n[i]!=null?String(n[i]):r)}onChange(e){return this._handlers.add(e),()=>{this._handlers.delete(e)}}_notify(){for(const e of this._handlers)e(this._locale)}destroy(){this._handlers.clear()}},ue=null;function ze(e={}){const t=new le(e);return ue=t,t}function We(){return ue}var Fe=24;function ee(e,t){return e.getBoundingClientRect().top-t.getBoundingClientRect().top}function Ke(e){const{scrollport:t,observe:n=[],threshold:r=Fe,onPinnedChange:i}=e;let s=!0,o=t.scrollTop,l=null,c=!1;const d=f=>{f!==s&&(s=f,i?.(f))},b=f=>{t.scrollTop=f,o=t.scrollTop},p=()=>{l=null,b(t.scrollHeight),d(!0)},h=()=>{const f=(w=t,Math.max(0,w.scrollHeight-w.clientHeight));var w;Math.abs(t.scrollTop-Math.min(o,f))>.5?(o=t.scrollTop,d(f-t.scrollTop<=r)):s?p():o=t.scrollTop};t.addEventListener("scroll",h,{passive:!0});let m=null;if(n.length>0&&typeof ResizeObserver<"u"){m=new ResizeObserver(()=>{s&&!c&&b(t.scrollHeight)});for(const f of n)m.observe(f)}return{get pinned(){return s},toBottom:p,follow(){s&&b(t.scrollHeight)},captureAnchor(f){l={row:f,top:ee(f,t)}},restoreAnchor(f){if(l===null)return!1;const w=f===void 0?l.row:f(),{top:g}=l;return l=null,!(w===null||!t.contains(w))&&(b(t.scrollTop+ee(w,t)-g),!0)},releaseAnchor(){l=null},destroy(){c=!0,t.removeEventListener("scroll",h),m?.disconnect()}}}function te(e){if(e==="")return[];const t=e.split(`
`);return t.at(-1)===""&&t.pop(),t}function De(e,t,n={}){const r=Math.max(0,n.context??3),i=te(e),s=te(t);let o=0;for(;o<i.length&&o<s.length&&i[o]===s[o];)o+=1;let l=0;for(;l<i.length-o&&l<s.length-o&&i[i.length-1-l]===s[s.length-1-l];)l+=1;const c=i.slice(o,i.length-l),d=s.slice(o,s.length-l),b=(c.length+1)*(d.length+1)>4e6?(function(p,h){return[...p.map((m,f)=>({kind:"removed",text:m,oldLine:f+1,newLine:null})),...h.map((m,f)=>({kind:"added",text:m,oldLine:null,newLine:f+1}))]})(c,d):(function(p,h){const m=p.length+1,f=h.length+1,w=new Uint32Array(m*f);for(let L=p.length-1;L>=0;L-=1)for(let v=h.length-1;v>=0;v-=1)w[L*f+v]=p[L]===h[v]?w[(L+1)*f+v+1]+1:Math.max(w[(L+1)*f+v],w[L*f+v+1]);const g=[];let S=0,y=0;for(;S<p.length&&y<h.length;)p[S]===h[y]?(g.push({kind:"context",text:p[S],oldLine:S+1,newLine:y+1}),S+=1,y+=1):w[(S+1)*f+y]>=w[S*f+y+1]?(g.push({kind:"removed",text:p[S],oldLine:S+1,newLine:null}),S+=1):(g.push({kind:"added",text:h[y],oldLine:null,newLine:y+1}),y+=1);for(;S<p.length;S+=1)g.push({kind:"removed",text:p[S],oldLine:S+1,newLine:null});for(;y<h.length;y+=1)g.push({kind:"added",text:h[y],oldLine:null,newLine:y+1});return g})(c,d);return(function(p,h){const m=p.map(y=>y.kind!=="context");if(!m.includes(!0))return[];const f=Array.from({length:p.length},()=>!1);m.forEach((y,L)=>{if(y)for(let v=Math.max(0,L-h);v<=Math.min(p.length-1,L+h);v+=1)f[v]=!0});const w=[];let g=[];const S=()=>{if(g.length===0)return;const y=g.map(v=>v.oldLine).filter(v=>v!==null),L=g.map(v=>v.newLine).filter(v=>v!==null);w.push({oldStart:y[0]??0,oldLines:y.length,newStart:L[0]??0,newLines:L.length,lines:g}),g=[]};return f.forEach((y,L)=>{y?g.push(p[L]):S()}),S(),w})([...i.slice(0,o).map((p,h)=>({kind:"context",text:p,oldLine:h+1,newLine:h+1})),...b.map(p=>({...p,oldLine:p.oldLine===null?null:p.oldLine+o,newLine:p.newLine===null?null:p.newLine+o})),...i.slice(i.length-l).map((p,h)=>({kind:"context",text:p,oldLine:i.length-l+h+1,newLine:s.length-l+h+1}))],r)}var Ue=(e,t=0,n=1)=>Math.min(n,Math.max(t,e)),ne=["B","KB","MB","GB","TB"],Ge=e=>{if(!Number.isFinite(e)||e<=0)return"0 B";let t=e,n=0;for(;t>=1024&&n<ne.length-1;)t/=1024,n+=1;return n===0?`${Math.round(t)} B`:`${t.toFixed(1)} ${ne[n]}`},re=()=>{if(typeof window>"u")return;const e=window;return e.SpeechRecognition??e.webkitSpeechRecognition},Ve=(e={})=>{const{lang:t,continuous:n=!0,interimResults:r=!0,onResult:i,onError:s,onStart:o,onEnd:l}=e;let c=null;const d=()=>{c=null,l?.()},b={get supported(){return re()!==void 0},get active(){return c!==null},start(){const p=re();if(p&&!c)try{const h=new p;h.lang=typeof t=="function"?t():t??"",h.continuous=n,h.interimResults=r,h.maxAlternatives=1;let m="",f=0;h.onresult=w=>{const g=w.results,S=Math.min(w.resultIndex??0,g.length);for(S<f&&(f=0,m="");f<S;f++)m+=g[f]?.[0]?.transcript??"";let y="",L=!0;for(let v=f;v<g.length;v++){const Z=g[v];y+=Z?.[0]?.transcript??"",Z?.isFinal===!1&&(L=!1)}i?.(m+y,L)},h.onerror=w=>{return s?.({kind:(g=w.error,g==="not-allowed"||g==="service-not-allowed"?"denied":g==="no-speech"?"noSpeech":g==="aborted"?"aborted":"failed"),detail:w.error});var g},h.onstart=()=>o?.(),h.onend=d,c=h,h.start()}catch(h){c=null,s?.({kind:"failed",detail:h instanceof Error?h.message:String(h)}),l?.()}},stop(){c?.stop()},abort(){c?.abort()},toggle(){c?b.stop():b.start()}};return b},Je=e=>typeof e=="function",Ye=12e4,Xe="__ranuts_bridge__",Ze="default",ie=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(const t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<"u"&&this.attachedWindow!==window&&(window.addEventListener("message",this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener("message",this.handleMessage),this.attachedWindow=null)}},Qe=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t="*",n=Ze){this.targetOrigin=t,this.channel=n,this.senderId=D(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<"u",this.available?(this.targetWindow=e??window,ie.add(this)):this.targetWindow=void 0}post(e,t){const n={...t,__bridge:Xe,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!=="*"&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;const t=e.data;if(!t||typeof t!="object"||t.__bridge!=="__ranuts_bridge__"||(t.channel??"default")!==this.channel)return;const{type:n,payload:r,id:i,isResponse:s,isError:o,senderId:l}=t;if(s&&i){const d=this.pendingRequests.get(i);d&&(o?d.reject(new Error(typeof r=="string"?r:"Bridge request failed")):d.resolve(r),this.pendingRequests.delete(i));return}if(l&&l===this.senderId||typeof n!="string"||!this.messageHandlers.has(n))return;const c=this.messageHandlers.get(n);if(Je(c)){const d=e.source??this.targetWindow;Promise.resolve(c(r)).then(b=>{i&&this.post(d,{type:n,payload:b,id:i,isResponse:!0})}).catch(b=>{i&&this.post(d,{type:n,payload:b instanceof Error?b.message:String(b),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(new Error("PostMessageBridge is unavailable outside a browser environment"));const n=D(10);return new Promise((r,i)=>{const s=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(new Error("Request timeout")))},Ye),o=l=>{clearTimeout(s),i(l)};this.pendingRequests.set(n,{resolve:l=>{clearTimeout(s),r(l)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(l){this.pendingRequests.delete(n),o(l instanceof Error?l:new Error("Failed to post message"))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{ie.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(new Error("Bridge destroyed"))}),this.pendingRequests.clear()}},et=class j{static instance;bridges=new Map;constructor(){}static getInstance(){return j.instance||(j.instance=new j),j.instance}connectClient=({id:t,targetOrigin:n,targetWindow:r,channel:i})=>{const s=new Qe(r,n,i);if(t||(t=D(10)),this.bridges.has(t))throw new Error(`Bridge ${t} already exists`);return this.bridges.set(t,s),{bridge:s,id:t}};getClient=t=>this.bridges.get(t);removeClient=t=>{const n=this.bridges.get(t);n&&(n.destroy(),this.bridges.delete(t))};removeAllClient=()=>{this.bridges.forEach(t=>{t.destroy()}),this.bridges.clear()};broadcast=t=>{this.bridges.forEach(n=>{n.broadcast(t)})};sendTo=(t,n,r)=>{const i=this.getClient(t);return i?i.send(n,r):Promise.reject(new Error(`Bridge ${t} not found`))}},en=et.getInstance(),tn=new oe,u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}},nn=[new a(u[0],3609767458),new a(u[1],602891725),new a(u[2],3964484399),new a(u[3],2173295548),new a(u[4],4081628472),new a(u[5],3053834265),new a(u[6],2937671579),new a(u[7],3664609560),new a(u[8],2734883394),new a(u[9],1164996542),new a(u[10],1323610764),new a(u[11],3590304994),new a(u[12],4068182383),new a(u[13],991336113),new a(u[14],633803317),new a(u[15],3479774868),new a(u[16],2666613458),new a(u[17],944711139),new a(u[18],2341262773),new a(u[19],2007800933),new a(u[20],1495990901),new a(u[21],1856431235),new a(u[22],3175218132),new a(u[23],2198950837),new a(u[24],3999719339),new a(u[25],766784016),new a(u[26],2566594879),new a(u[27],3203337956),new a(u[28],1034457026),new a(u[29],2466948901),new a(u[30],3758326383),new a(u[31],168717936),new a(u[32],1188179964),new a(u[33],1546045734),new a(u[34],1522805485),new a(u[35],2643833823),new a(u[36],2343527390),new a(u[37],1014477480),new a(u[38],1206759142),new a(u[39],344077627),new a(u[40],1290863460),new a(u[41],3158454273),new a(u[42],3505952657),new a(u[43],106217008),new a(u[44],3606008344),new a(u[45],1432725776),new a(u[46],1467031594),new a(u[47],851169720),new a(u[48],3100823752),new a(u[49],1363258195),new a(u[50],3750685593),new a(u[51],3785050280),new a(u[52],3318307427),new a(u[53],3812723403),new a(u[54],2003034995),new a(u[55],3602036899),new a(u[56],1575990012),new a(u[57],1125592928),new a(u[58],2716904306),new a(u[59],442776044),new a(u[60],593698344),new a(u[61],3733110249),new a(u[62],2999351573),new a(u[63],3815920427),new a(3391569614,3928383900),new a(3515267271,566280711),new a(3940187606,3454069534),new a(4118630271,4000239992),new a(116418474,1914138554),new a(174292421,2731055270),new a(289380356,3203993006),new a(460393269,320620315),new a(685471733,587496836),new a(852142971,1086792851),new a(1017036298,365543100),new a(1126000580,2618297676),new a(1288033470,3409855158),new a(1501505948,4234509866),new a(1607167915,987167468),new a(1816402316,1246189591)],rn=[new a(0,1),new a(0,32898),new a(2147483648,32906),new a(2147483648,2147516416),new a(0,32907),new a(0,2147483649),new a(2147483648,2147516545),new a(2147483648,32777),new a(0,138),new a(0,136),new a(0,2147516425),new a(0,2147483658),new a(0,2147516555),new a(2147483648,139),new a(2147483648,32905),new a(2147483648,32771),new a(2147483648,32770),new a(2147483648,128),new a(0,32778),new a(2147483648,2147483658),new a(2147483648,2147516545),new a(2147483648,32896),new a(0,2147483649),new a(2147483648,2147516424)],tt=(e,t=500)=>{let n,r=null,i=null;const s=()=>{if(r=null,!i)return;const l=i,c=n;i=null,n=void 0,e.apply(c,l)},o=function(...l){n=this,i=l,r!==null&&clearTimeout(r),r=setTimeout(s,t)};return o.cancel=()=>{r!==null&&clearTimeout(r),r=null,i=null,n=void 0},o.flush=()=>{r!==null&&(clearTimeout(r),s())},o.pending=()=>r!==null,o},nt=()=>{if(typeof window<"u"){const e=navigator.userAgent.toLowerCase();return/ipad|ipod/.test(e)?"ipad":/android/.test(e)?"android":/iphone/.test(e)?"iphone":"pc"}return"pc"},rt=()=>typeof window<"u",it=(e,t)=>{if(typeof window>"u"||typeof window.matchMedia!="function")return t(!1),()=>{};const n=window.matchMedia(e),r=()=>t(n.matches);if(r(),typeof n.addEventListener=="function")return n.addEventListener("change",r),()=>n.removeEventListener("change",r);const i=n;return i.addListener(r),()=>i.removeListener(r)},st=()=>{if(!rt())return!1;const e=window.navigator.userAgent;return!!/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(e)},ot=(e,t)=>{if(typeof document>"u")return;const n=e.classList;n.contains(t)||n.add(t)},at=(e,t)=>{if(typeof document>"u")return;const n=e.classList;n.contains(t)&&n.remove(t)},lt=/["'&<>]/;function E(e){const t=""+e,n=lt.exec(t);if(!n)return t;let r,i="",s=0,o=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}o!==s&&(i+=t.substring(o,s)),o=s+1,i+=r}return o!==s?i+t.substring(o,s):i}function ut(e={}){const{windowMs:t=300,maxDistancePx:n=60}=e;let r=-1/0,i=0,s=0;const o=()=>{r=-1/0,i=0,s=0};return{check:(l,c,d=Date.now())=>d-r<t&&Math.hypot(l-i,c-s)<n?(o(),!0):(r=d,i=l,s=c,!1),reset:o}}var ct=(e,...[t,n,r,i,s])=>{const o=Math.min(r,i),l=Math.PI;s>o/2&&(s=o/2),e.beginPath(),e.moveTo(t+s,n),e.lineTo(t+s,n),e.lineTo(t+r-s,n),e.arc(t+r-s,n+s,s,-l/2,0),e.lineTo(t+r,n+i-s),e.arc(t+r-s,n+i-s,s,0,l/2),e.lineTo(t+s,n+i),e.arc(t+s,n+i-s,s,l/2,l),e.lineTo(t,n+s),e.arc(t+s,n+s,s,l,-l/2),e.closePath()},dt=new Map,ht=new Map,ft="data-adopted-style",pt="data-adopted-sheet",ce=(e,t,n)=>{if(typeof CSSStyleSheet>"u")return!1;try{if(!n.has(t)){const i=new CSSStyleSheet;i.replaceSync(t),n.set(t,i)}const r=n.get(t);return e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]),!0}catch{return!1}},gt=(e,t,n=ft)=>{if(typeof document<"u"&&t&&!ce(e,t,dt)&&!e.querySelector(`style[${n}]`)){const r=document.createElement("style");r.setAttribute(n,""),r.textContent=t,e.appendChild(r)}},wt=(e,t,n=pt)=>{if(typeof document<"u"&&t&&!ce(e,t,ht)&&!Array.from(e.querySelectorAll(`style[${n}]`)).some(r=>r.textContent===t)){const r=document.createElement("style");r.setAttribute(n,""),r.textContent=t,e.appendChild(r)}},sn=(()=>{const e=new Uint8Array(128);for(let t=0;t<78;t++)e[`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.,!?;:'"()[]{}`.charCodeAt(t)]=1;return e})(),de=(e,t,n,r)=>e==="end"?t+n-r:e==="center"?t+(n-r)/2:t,bt=e=>{const{anchor:t,floating:n,offset:r=0,padding:i=8}=e,s=e.boundary??{top:0,left:0,width:typeof window<"u"?window.innerWidth:1/0,height:typeof window<"u"?window.innerHeight:1/0},[o,l]=e.placement.split("-"),c=l??"start";let d=o;const b=d==="top"||d==="bottom",p=t.width>0&&t.height>0&&n.width>0&&n.height>0;if(p&&b){const w=s.top+s.height-(t.top+t.height),g=t.top-s.top;d==="bottom"&&w<n.height+r&&g>w?d="top":d==="top"&&g<n.height+r&&w>g&&(d="bottom")}else if(p){const w=s.left+s.width-(t.left+t.width),g=t.left-s.left;d==="right"&&w<n.width+r&&g>w?d="left":d==="left"&&g<n.width+r&&w>g&&(d="right")}const h=(w,g,S)=>de(c,w,g,S);let m,f;if(d==="bottom"?(m=t.top+t.height+r,f=h(t.left,t.width,n.width)):d==="top"?(m=t.top-n.height-r,f=h(t.left,t.width,n.width)):d==="right"?(m=h(t.top,t.height,n.height),f=t.left+t.width+r):(m=h(t.top,t.height,n.height),f=t.left-n.width-r),p&&b){const w=s.left+i,g=s.left+s.width-n.width-i;g>=w&&(f=Math.min(Math.max(f,w),g))}else if(p){const w=s.top+i,g=s.top+s.height-n.height-i;g>=w&&(m=Math.min(Math.max(m,w),g))}return{top:m,left:f,placement:l?`${d}-${c}`:d,side:d,align:c}},mt=(e,t,n,r)=>new Promise((i,s)=>{const o=setTimeout(()=>{r?.(),i(n)},t);e.then(l=>{clearTimeout(o),i(l)},l=>{clearTimeout(o),s(l)})}),yt=()=>{let e=0;return{start:()=>++e,isCurrent:t=>t===e}};function vt(e,t=300){let n,r=0,i=null,s=null;const o=()=>{if(i=null,!s)return;const c=s,d=n;s=null,n=void 0,r=Date.now(),e.apply(d,c)},l=function(...c){const d=t-(Date.now()-r);n=this,s=c,d<=0?(i!==null&&(clearTimeout(i),i=null),o()):i===null&&(i=setTimeout(o,d))};return l.cancel=()=>{i!==null&&clearTimeout(i),i=null,s=null,n=void 0},l.pending=()=>i!==null,l}var F=new Map([[100,"Continue"],[101,"Switching Protocols"],[102,"Processing"],[103,"Early Hints"],[200,"OK"],[201,"Created"],[202,"Accepted"],[203,"Non-Authoritative Information"],[204,"No Content"],[205,"Reset Content"],[206,"Partial Content"],[207,"Multi-Status"],[208,"Already Reported"],[226,"IM Used"],[300,"Multiple Choices"],[301,"Moved Permanently"],[302,"Found"],[303,"See Other"],[304,"Not Modified"],[305,"Use Proxy"],[307,"Temporary Redirect"],[308,"Permanent Redirect"],[400,"Bad Request"],[401,"Unauthorized"],[402,"Payment Required"],[403,"Forbidden"],[404,"Not Found"],[405,"Method Not Allowed"],[406,"Not Acceptable"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Payload Too Large"],[414,"URI Too Long"],[415,"Unsupported Media Type"],[416,"Range Not Satisfiable"],[417,"Expectation Failed"],[418,"I'm a Teapot"],[421,"Misdirected Request"],[422,"Unprocessable Entity"],[423,"Locked"],[424,"Failed Dependency"],[425,"Too Early"],[426,"Upgrade Required"],[428,"Precondition Required"],[429,"Too Many Requests"],[431,"Request Header Fields Too Large"],[451,"Unavailable For Legal Reasons"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"HTTP Version Not Supported"],[506,"Variant Also Negotiates"],[507,"Insufficient Storage"],[508,"Loop Detected"],[509,"Bandwidth Limit Exceeded"],[510,"Not Extended"],[511,"Network Authentication Required"]]),on={message:F,code:(function(e){const t=new Map;for(const[n,r]of e)t.set(r.toLowerCase(),n);return t})(F),codes:(function(e){const t=[];for(const[n,r]of e)t.push(n);return t})(F),redirect:{300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},empty:{204:!0,205:!0,304:!0},retry:{502:!0,503:!0,504:!0}},O=typeof document>"u",I=0,he=1,q=2,C=null,P=null,x=0,N=new Set,K=!1;function J(e,t){const n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(Ot(r),r.value),o=>{const l=typeof o=="function"?o(r.value):o;if(!n(r.value,l)){r.value=l;for(const c of r.observers)Y(c,q);x===0&&fe()}}]}function A(e){const t=Lt(e,!0);return Pt(t),ge(t),()=>X(t)}function St(e){x++;try{e()}finally{x--,x===0&&fe()}}function B(e){const t={owned:[],cleanups:[],owner:P},n=P,r=C;P=t,C=null;try{return e(()=>Ct(t))}finally{P=n,C=r}}function H(e){P&&P.cleanups.push(e)}function Lt(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:q,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:P}}function Pt(e){P&&P.owned.push(e)}function Ot(e){C&&(C.sources.add(e),e.observers.add(C))}function Y(e,t){if(e.disposed||e.state>=t)return;const n=e.state===I;if(e.state=t,e.isEffect)N.add(e);else if(n)for(const r of e.observers)Y(r,he)}function fe(){if(!(x>0||K)){K=!0;try{for(;N.size>0;){const e=[...N];N.clear();for(const t of e)t.disposed||pe(t)}}finally{K=!1}}}function pe(e){if(!(e.disposed||e.state===I)){if(e.state===he)for(const t of e.sources)"fn"in t&&pe(t);e.state===q&&ge(e),e.state=I}}function ge(e){if(e.running)throw new Error("ranui reactivity: cyclic dependency detected (a computation triggered itself).");we(e);const t=C,n=P;C=e,P=e,e.running=!0,e.state=I;try{const r=e.fn();if(e.isEffect)typeof r=="function"&&e.cleanups.push(r);else{const i=e.value;if(e.value=r,e.observers.size>0&&!e.equals(i,r))for(const s of e.observers)Y(s,q)}}finally{e.running=!1,C=t,P=n}}function we(e){for(const t of e.owned)X(t);e.owned.length=0;for(const t of e.cleanups)t();e.cleanups.length=0;for(const t of e.sources)t.observers.delete(e);e.sources.clear()}function X(e){e.disposed||(e.disposed=!0,we(e),e.observers.clear())}function Ct(e){for(const t of e.owned)X(t);e.owned.length=0;for(const t of e.cleanups)t();e.cleanups.length=0}function se(e){return E(e)}var Mt=e=>typeof e=="string"?!1:"tagName"in e&&"childrenList"in e,Et=".#[";function _t(e){const t=[];let n=0;const r=/^[a-zA-Z][\w-]*/.exec(e);for(r!==null&&(t.push(r[0]),n=r[0].length);n<e.length;){const i=e[n];if(i==="["){const o=e.indexOf("]",n+1);if(o===-1)return null;t.push(e.slice(n,o+1)),n=o+1;continue}if(i!=="."&&i!=="#")return null;let s=n+1;for(;s<e.length&&!Et.includes(e[s]);)s+=1;if(s===n+1)return null;t.push(e.slice(n,s)),n=s}return t.length>0?t:null}var jt=(e,t)=>{const n=t;if(n.startsWith("."))return e.classList.contains(n.slice(1));if(n.startsWith("#"))return e.getAttribute("id")===n.slice(1);if(n.startsWith("[")&&n.endsWith("]")){const[r,i]=n.slice(1,-1).trim().split("="),s=(r||"").trim();if(!s)return!1;if(i==null)return e.hasAttribute(s);const o=i.trim().replace(/^['"]|['"]$/g,"");return e.getAttribute(s)===o}return e.tagName===n.toLowerCase()},xt=(e,t)=>{const n=t.trim();if(!n)return!1;const r=_t(n);return r===null?!1:r.every(i=>jt(e,i))},z=(e,t,n)=>{for(const r of e)Mt(r)&&(xt(r,t)&&n.push(r),z(r.childrenList,t,n))},U=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e=="string"?E(e):e.serialize()).join("")}querySelector(e){const t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){const t=[];return z(this.childrenList,e,t),t}},be=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{const n=e.startsWith("--")?e:e.replace(/([A-Z])/g,"-$1").toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{const t=this.attributes.get("class")||"",n=new Set([...t.split(" ").filter(Boolean),...e]);this.attributes.set("class",Array.from(n).join(" "))},remove:(...e)=>{const t=(this.attributes.get("class")||"").split(" ").filter(n=>!e.includes(n));this.attributes.set("class",t.join(" "))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get("class")||"").split(" ").includes(e)};_innerHTML="";get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName==="template"&&this.content&&(this.content.childrenList=[e])}constructor(e="div"){this.tagName=e.toLowerCase(),this.tagName==="template"&&(this.content=new U)}get hidden(){return this.hasAttribute("hidden")}set hidden(e){e?this.setAttribute("hidden",""):this.removeAttribute("hidden")}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new Rt(this,e),this.shadowRoot}querySelector(e){const t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){const t=[];return z(this.childrenList,e,t),t}addEventListener(e,t){const n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){const n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){const t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(const n of t)typeof n=="function"?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize=="function"&&this._preSerialize();const t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([o,l])=>` ${o}="${se(l)}"`).join(""),r=Array.from(this.inlineStyles.entries()).map(([o,l])=>`${o}:${l}`).join(";"),i=r?` style="${se(r)}"`:"";let s="";return this.shadowRoot&&(s+=this.shadowRoot.serialize()),this.textContent!==null?s+=E(this.textContent):this._innerHTML?s+=this._innerHTML:s+=this.childrenList.map(o=>typeof o=="string"?E(o):(o instanceof U,o.serialize())).join(""),["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(t)&&!s?`<${t}${n}${i} />`:`<${t}${n}${i}>${s}</${t}>`}},Rt=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){const t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){const t=[];return z(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?" shadowrootdelegatesfocus":""}>${this.adoptedStyleSheets.map(e=>`<style>${E(e)}</style>`).join("")}${this.childrenList.map(e=>typeof e=="string"?E(e):(e instanceof U,e.serialize())).join("")}</template>`}},At=()=>({current:null}),me=e=>e.reduce((t,n)=>Array.isArray(n)?t.concat(me(n)):t.concat(n),[]),k=e=>e==null?null:e instanceof ve?e.build():typeof e=="string"?O?e:document.createTextNode(e):e,kt=(e,t)=>{if(O){$(e,[t()]);return}const n=document.createComment(""),r=document.createComment("");e.appendChild(n),e.appendChild(r);let i=null;const s=()=>{i?.(),i=null;let o=n.nextSibling;for(;o&&o!==r;){const l=o.nextSibling;o.parentNode?.removeChild(o),o=l}};A(()=>{const o=t();s();const l=document.createDocumentFragment();i=B(c=>($(l,[o]),c)),r.parentNode?.insertBefore(l,r)}),H(()=>i?.())},Tt="__ranFor",Nt=e=>typeof e=="object"&&e!==null&&e[Tt]===!0,It=(e,t,n)=>{const[r,i]=J(t);let s=null;const o=B(l=>{const c=k(n(e,r));return s=typeof c=="string"?document.createTextNode(c):c,l});return{node:s,index:i,dispose:o}},ye=(e,t)=>{const n=e.parentNode;if(!n)return;let r=e;for(const i of t)r.nextSibling!==i&&n.insertBefore(i,r.nextSibling),r=i},$t=(e,t)=>{if(O){(t.each()??[]).forEach((i,s)=>{const o=k(t.render(i,()=>s));o!=null&&e.appendChild(o)});return}const n=document.createComment("");e.appendChild(n);let r=new Map;H(()=>{for(const i of r.values())i.dispose();r.clear()}),A(()=>{const i=t.each()??[],s=new Map,o=[];i.forEach((l,c)=>{const d=t.key(l,c);if(s.has(d))return;let b=r.get(d);b?(r.delete(d),b.index(c)):b=It(l,c,t.render),s.set(d,b),b.node&&o.push(b.node)});for(const l of r.values())l.node?.parentNode?.removeChild(l.node),l.dispose();ye(n,o),r=s})},qt="__ranIndex",Bt=e=>typeof e=="object"&&e!==null&&e[qt]===!0,Ht=(e,t,n)=>{const[r,i]=J(e);let s=null;const o=B(l=>{const c=k(n(r,t));return s=typeof c=="string"?document.createTextNode(c):c,l});return{node:s,setItem:i,dispose:o}},zt=(e,t)=>{if(O){(t.each()??[]).forEach((i,s)=>{const o=k(t.render(()=>i,s));o!=null&&e.appendChild(o)});return}const n=document.createComment("");e.appendChild(n);let r=[];H(()=>{for(const i of r)i.dispose();r=[]}),A(()=>{const i=t.each()??[];for(let s=0;s<i.length;s++)s<r.length?r[s].setItem(i[s]):r.push(Ht(i[s],s,t.render));for(let s=r.length-1;s>=i.length;s--){const{node:o}=r[s];o?.parentNode?.removeChild(o),r[s].dispose(),r.pop()}ye(n,r.map(s=>s.node).filter(s=>s!=null))})},$=(e,t)=>{me(t).forEach(n=>{if(Nt(n)){$t(e,n);return}if(Bt(n)){zt(e,n);return}if(typeof n=="function"){kt(e,n);return}const r=k(n);r!=null&&e.appendChild(r)})};var Wt=new Set(["svg","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComposite","feDropShadow","feFlood","feGaussianBlur","feMerge","feMergeNode","feOffset","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","switch","symbol","text","textPath","tspan","use"]),ve=class{el;constructor(e,t){const n=t??(Wt.has(e)?"http://www.w3.org/2000/svg":void 0);this.el=O?new be(e):n?document.createElementNS(n,e):document.createElement(e)}id(e){return this.el.setAttribute("id",e),this}bind(e,t){typeof e=="function"?A(()=>t(e())):t(e)}class(e){return this.bind(e,t=>{O?this.el.attributes.set("class",t):this.el.className=t}),this}addClass(...e){return e.forEach(t=>this.el.classList.add(t)),this}removeClass(...e){return e.forEach(t=>this.el.classList.remove(t)),this}attr(e,t){return this.bind(t,n=>this.el.setAttribute(e,n)),this}attrs(e){return Object.entries(e).forEach(([t,n])=>{n!=null&&this.el.setAttribute(t,String(n))}),this}boolAttr(e,t,n=""){return this.bind(t,r=>{r?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr("part",e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e=="string"?this.bind(t??"",n=>this.el.style.setProperty(e,n)):Object.entries(e).forEach(([n,r])=>this.el.style.setProperty(n,r)),this}cssVar(e,t){const n=e.startsWith("--")?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr("role",e)}tabIndex(e){return this.attr("tabindex",String(e))}label(e){return this.aria("label",e)}labelledBy(e){return this.aria("labelledby",e)}describedBy(e){return this.aria("describedby",e)}ariaHidden(e=!0){return this.aria("hidden",String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return $(this.el,e),this}replaceChildren(...e){if(O){const t=this.el;t.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,t=>{this.el.textContent=t}),this}ref(e){return e.current=this.el,this}shadow(e={mode:"closed"}){const t=this.el.attachShadow(e);return new Ft(this.el,t,e)}build(){return this.el}serialize(){if(O)return this.el.serialize();const e=document.createElement("div");return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},Ft=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return $(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(O)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<"u")try{const n=new CSSStyleSheet;return n.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,n],this}catch{}const t=document.createElement("style");return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return O?this.root.serialize():this.root.innerHTML}},M=e=>new ve(e),Kt=()=>M("div"),Dt=()=>M("span"),Ut=()=>M("slot"),Gt=()=>M("button"),Vt=()=>M("input"),Jt=()=>M("style"),Yt=()=>M("label");Object.defineProperty(exports,"$t",{enumerable:!0,get:function(){return _e}});Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return qe}});Object.defineProperty(exports,"ButtonBuilder",{enumerable:!0,get:function(){return Gt}});Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"Div",{enumerable:!0,get:function(){return Kt}});Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return ze}});Object.defineProperty(exports,"Er",{enumerable:!0,get:function(){return mt}});Object.defineProperty(exports,"Et",{enumerable:!0,get:function(){return Oe}});Object.defineProperty(exports,"Ft",{enumerable:!0,get:function(){return Ee}});Object.defineProperty(exports,"Gt",{enumerable:!0,get:function(){return je}});Object.defineProperty(exports,"HTMLElementMock",{enumerable:!0,get:function(){return be}});Object.defineProperty(exports,"Ht",{enumerable:!0,get:function(){return nt}});Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return Ve}});Object.defineProperty(exports,"InputBuilder",{enumerable:!0,get:function(){return Vt}});Object.defineProperty(exports,"Jt",{enumerable:!0,get:function(){return xe}});Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return We}});Object.defineProperty(exports,"Kn",{enumerable:!0,get:function(){return bt}});Object.defineProperty(exports,"Kt",{enumerable:!0,get:function(){return it}});Object.defineProperty(exports,"Label",{enumerable:!0,get:function(){return Yt}});Object.defineProperty(exports,"Mn",{enumerable:!0,get:function(){return wt}});Object.defineProperty(exports,"On",{enumerable:!0,get:function(){return gt}});Object.defineProperty(exports,"Or",{enumerable:!0,get:function(){return yt}});Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return Ge}});Object.defineProperty(exports,"P$1",{enumerable:!0,get:function(){return V}});Object.defineProperty(exports,"Pt",{enumerable:!0,get:function(){return tt}});Object.defineProperty(exports,"Rt",{enumerable:!0,get:function(){return Ce}});Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return Ut}});Object.defineProperty(exports,"Span",{enumerable:!0,get:function(){return Dt}});Object.defineProperty(exports,"St",{enumerable:!0,get:function(){return Le}});Object.defineProperty(exports,"Style",{enumerable:!0,get:function(){return Jt}});Object.defineProperty(exports,"View",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"Vt",{enumerable:!0,get:function(){return st}});Object.defineProperty(exports,"Yt",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"_t",{enumerable:!0,get:function(){return ot}});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Re}});Object.defineProperty(exports,"batch",{enumerable:!0,get:function(){return St}});Object.defineProperty(exports,"createEffect",{enumerable:!0,get:function(){return A}});Object.defineProperty(exports,"createRef",{enumerable:!0,get:function(){return At}});Object.defineProperty(exports,"createRoot",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Ke}});Object.defineProperty(exports,"en",{enumerable:!0,get:function(){return ut}});Object.defineProperty(exports,"isSSR",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Ue}});Object.defineProperty(exports,"ni",{enumerable:!0,get:function(){return vt}});Object.defineProperty(exports,"onCleanup",{enumerable:!0,get:function(){return H}});Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return De}});Object.defineProperty(exports,"pn",{enumerable:!0,get:function(){return ct}});Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"qt",{enumerable:!0,get:function(){return at}});Object.defineProperty(exports,"signal",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return ke}});Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return Te}});Object.defineProperty(exports,"zn",{enumerable:!0,get:function(){return de}});