@rozenite/tanstack-query-plugin 1.1.0 → 1.3.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/.turbo/turbo-build.log +16 -0
- package/.turbo/turbo-lint.log +5 -0
- package/.turbo/turbo-typecheck.log +5 -0
- package/CHANGELOG.md +8 -0
- package/README.md +2 -0
- package/dist/assets/CXEL7IU7-DJlSmt0p.js +1172 -0
- package/dist/assets/tanstack-query-_leiFatc.js +17 -0
- package/dist/react-native.cjs +1 -1
- package/dist/react-native.js +2 -2
- package/dist/rozenite.json +1 -1
- package/dist/tanstack-query.html +1 -1
- package/package.json +18 -12
- package/react-native.ts +1 -3
- package/src/react-native/useHandleDevToolsMessages.ts +9 -0
- package/dist/assets/CXEL7IU7-DTK3G2Z5.js +0 -1172
- package/dist/assets/tanstack-query-Cd7BQ4D9.js +0 -48
- package/project.json +0 -12
- package/tsconfig.tsbuildinfo +0 -1
- /package/dist/{useTanstackQueryDevTools.cjs → useTanStackQueryDevTools.cjs} +0 -0
- /package/dist/{useTanstackQueryDevTools.js → useTanStackQueryDevTools.js} +0 -0
- /package/src/react-native/{useTanstackQueryDevTools.ts → useTanStackQueryDevTools.ts} +0 -0
|
@@ -0,0 +1,1172 @@
|
|
|
1
|
+
import{c as ye,a as _,o as Yt,b as K,d as D,e as v,t as F,i as k,f as B,g as I,s as An,m as Ln,h as Ze,S as R,j as Ce,k as Ni,l as Vn,u as me,n as Vi,p as V,q as $t,r as Et,v as Hi,w as Gi,x as cn,F as Ui,y as ji,z as U,$ as Wi,A as Hn,B as xr,C as Qi,I as Yi,D as Gn,E as Xi,G as Zi,M as En,H as Ji,J as es,K as Un,L as Q,N as Ne,P as ts,O as ns,Q as rs,R as os}from"./tanstack-query-_leiFatc.js";var is=e=>e!=null,ss=e=>e.filter(is);function as(e){return(...t)=>{for(const n of e)n&&n(...t)}}var E=e=>typeof e=="function"&&!e.length?e():e,On=e=>Array.isArray(e)?e:e?[e]:[];function ls(e,...t){return typeof e=="function"?e(...t):e}var cs=V;function us(e,t,n,r){const o=e.length,s=t.length;let a=0;if(!s){for(;a<o;a++)n(e[a]);return}if(!o){for(;a<s;a++)r(t[a]);return}for(;a<s&&t[a]===e[a];a++);let l,i;t=t.slice(a),e=e.slice(a);for(l of t)e.includes(l)||r(l);for(i of e)t.includes(i)||n(i)}function ds(e){const[t,n]=_(),r=e?.throw?(g,h)=>{throw n(g instanceof Error?g:new Error(h)),g}:(g,h)=>{n(g instanceof Error?g:new Error(h))},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),s=e?.prefix?`${e.prefix}.`:"",a=new Map,l=new Proxy({},{get(g,h){let d=a.get(h);d||(d=_(void 0,{equals:!1}),a.set(h,d)),d[0]();const y=o.reduce((p,m)=>{if(p!==null||!m)return p;try{return m.getItem(`${s}${h}`)}catch(b){return r(b,`Error reading ${s}${h} from ${m.name}`),null}},null);return y!==null&&e?.deserializer?e.deserializer(y,h,e.options):y}}),i=(g,h,d)=>{const y=e?.serializer?e.serializer(h,g,d??e.options):h,p=`${s}${g}`;o.forEach(b=>{try{b.getItem(p)!==y&&b.setItem(p,y)}catch(w){r(w,`Error setting ${s}${g} to ${y} in ${b.name}`)}});const m=a.get(g);m&&m[1]()},c=g=>o.forEach(h=>{try{h.removeItem(`${s}${g}`)}catch(d){r(d,`Error removing ${s}${g} from ${h.name}`)}}),u=()=>o.forEach(g=>{try{g.clear()}catch(h){r(h,`Error clearing ${g.name}`)}}),f=()=>{const g={},h=(d,y)=>{if(!g.hasOwnProperty(d)){const p=y&&e?.deserializer?e.deserializer(y,d,e.options):y;p&&(g[d]=p)}};return o.forEach(d=>{if(typeof d.getAll=="function"){let y;try{y=d.getAll()}catch(p){r(p,`Error getting all values from in ${d.name}`)}for(const p of y)h(p,y[p])}else{let y=0,p;try{for(;p=d.key(y++);)g.hasOwnProperty(p)||h(p,d.getItem(p))}catch(m){r(m,`Error getting all values from ${d.name}`)}}}),g};return e?.sync!==!1&&Yt(()=>{const g=h=>{let d=!1;o.forEach(y=>{try{y!==h.storageArea&&h.key&&h.newValue!==y.getItem(h.key)&&(h.newValue?y.setItem(h.key,h.newValue):y.removeItem(h.key),d=!0)}catch(p){r(p,`Error synching api ${y.name} from storage event (${h.key}=${h.newValue})`)}}),d&&h.key&&a.get(h.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",g),V(()=>globalThis.removeEventListener("storage",g))):(o.forEach(h=>h.addEventListener?.("storage",g)),V(()=>o.forEach(h=>h.removeEventListener?.("storage",g))))}),[l,i,{clear:u,error:t,remove:c,toJSON:f}]}var fs=ds,gs=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Cr=e=>{if(!e)return"";let t="";for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`}return t},Oe=gs({_cookies:[globalThis.document,"cookie"],getItem:e=>Oe._cookies[0][Oe._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{const r=Oe.getItem(e);Oe._cookies[0][Oe._cookies[1]]=`${e}=${t}${Cr(n)}`;const o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:Oe});window.dispatchEvent(o)},removeItem:e=>{Oe._cookies[0][Oe._cookies[1]]=`${e}=deleted${Cr({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return Oe._cookies[0][Oe._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return Oe._cookies[0][Oe._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),hs=1024,Gt=796,vs=700,ys="system",ms=500,ps=Object.keys(An)[0],$r=1,bs=Object.keys(Ln)[0],go=ye({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});function z(){return me(go)}var ho=ye(void 0),ws=e=>{const[t,n]=_(null),r=()=>{const a=t();a!=null&&(a.close(),n(null))},o=(a,l)=>{if(t()!=null)return;const i=window.open("","TSQD-Devtools-Panel",`width=${a},height=${l},popup`);if(!i)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");i.document.head.innerHTML="",i.document.body.innerHTML="",Ni(i.document),i.document.title="TanStack Query Devtools",i.document.body.style.margin="0",i.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null)}),[...(z().shadowDOMTarget||document).styleSheets].forEach(c=>{try{const u=[...c.cssRules].map(d=>d.cssText).join(""),f=document.createElement("style"),g=c.ownerNode;let h="";g&&"id"in g&&(h=g.id),h&&f.setAttribute("id",h),f.textContent=u,i.document.head.appendChild(f)}catch{const f=document.createElement("link");if(c.href==null)return;f.rel="stylesheet",f.type=c.type,f.media=c.media.toString(),f.href=c.href,i.document.head.appendChild(f)}}),Vn(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],i.document),e.setLocalStore("pip_open","true"),n(i)};K(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||ms))}),K(()=>{const a=(z().shadowDOMTarget||document).querySelector("#_goober"),l=t();if(a&&l){const i=new MutationObserver(()=>{const c=(z().shadowDOMTarget||l.document).querySelector("#_goober");c&&(c.textContent=a.textContent)});i.observe(a,{childList:!0,subtree:!0,characterDataOldValue:!0}),V(()=>{i.disconnect()})}});const s=D(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return v(ho.Provider,{value:s,get children(){return e.children}})},xs=()=>D(()=>{const t=me(ho);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),vo=ye(()=>"dark");function $e(){return me(vo)}var yo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},Cs=Object.keys(yo).join("|"),$s=new RegExp(Cs,"g");function Ss(e){return e.replace($s,t=>yo[t])}var ke={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function Sr(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:ke.MATCHES,!n.accessors){const a=kr(e,t,n);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:n.threshold,passed:a>=n.threshold}}const o=Is(e,n.accessors),s={rankedValue:e,rank:ke.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let a=0;a<o.length;a++){const l=o[a];let i=kr(l.itemValue,t,n);const{minRanking:c,maxRanking:u,threshold:f=n.threshold}=l.attributes;i<c&&i>=ke.MATCHES?i=c:i>u&&(i=u),i=Math.min(i,u),i>=f&&i>s.rank&&(s.rank=i,s.passed=!0,s.accessorIndex=a,s.accessorThreshold=f,s.rankedValue=l.itemValue)}return s}function kr(e,t,n){return e=Er(e,n),t=Er(t,n),t.length>e.length?ke.NO_MATCH:e===t?ke.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ke.EQUAL:e.startsWith(t)?ke.STARTS_WITH:e.includes(` ${t}`)?ke.WORD_STARTS_WITH:e.includes(t)?ke.CONTAINS:t.length===1?ke.NO_MATCH:ks(e).includes(t)?ke.ACRONYM:Es(e,t))}function ks(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(s=>{t+=s.substr(0,1)})}),t}function Es(e,t){let n=0,r=0;function o(i,c,u){for(let f=u,g=c.length;f<g;f++)if(c[f]===i)return n+=1,f+1;return-1}function s(i){const c=1/i,u=n/t.length;return ke.MATCHES+u*c}const a=o(t[0],e,0);if(a<0)return ke.NO_MATCH;r=a;for(let i=1,c=t.length;i<c;i++){const u=t[i];if(r=o(u,e,r),!(r>-1))return ke.NO_MATCH}const l=r-a;return s(l)}function Er(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Ss(e)),e}function Ms(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function Is(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=Ds(s),l=Ms(e,s);for(let i=0,c=l.length;i<c;i++)n.push({itemValue:l[i],attributes:a})}return n}var Mr={maxRanking:1/0,minRanking:-1/0};function Ds(e){return typeof e=="function"?Mr:{...Mr,...e}}var Ps={data:""},Ts=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ps,As=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ls=/\/\*[^]*?\*\/| +/g,Ir=/\n+/g,vt=(e,t)=>{let n="",r="",o="";for(let s in e){let a=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+a+";":r+=s[1]=="f"?vt(a,s):s+"{"+vt(a,s[1]=="k"?"":t)+"}":typeof a=="object"?r+=vt(a,t?t.replace(/([^,])+/g,l=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,i=>/&/.test(i)?i.replace(/&/g,l):l?l+" "+i:i)):s):a!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=vt.p?vt.p(s,a):s+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},mo=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+mo(e[n]);return t}return e},Os=(e,t,n,r,o)=>{let s=mo(e),a=Qe[s]||(Qe[s]=(i=>{let c=0,u=11;for(;c<i.length;)u=101*u+i.charCodeAt(c++)>>>0;return"go"+u})(s));if(!Qe[a]){let i=s!==e?e:(c=>{let u,f,g=[{}];for(;u=As.exec(c.replace(Ls,""));)u[4]?g.shift():u[3]?(f=u[3].replace(Ir," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][u[1]]=u[2].replace(Ir," ").trim();return g[0]})(e);Qe[a]=vt(o?{["@keyframes "+a]:i}:i,n?"":"."+a)}let l=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[a]),((i,c,u,f)=>{f?c.data=c.data.replace(f,i):c.data.indexOf(i)===-1&&(c.data=u?i+c.data:c.data+i)})(Qe[a],t,r,l),a},qs=(e,t,n)=>e.reduce((r,o,s)=>{let a=t[s];if(a&&a.call){let l=a(n),i=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=i?"."+i:l&&typeof l=="object"?l.props?"":vt(l,""):l===!1?"":l}return r+o+(a??"")},"");function W(e){let t=this||{},n=e.call?e(t.p):e;return Os(n.unshift?n.raw?qs(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Ts(t.target),t.g,t.o,t.k)}W.bind({g:1});W.bind({k:1});function po(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=po(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function q(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=po(e))&&(r&&(r+=" "),r+=t);return r}function Se(...e){return as(e)}var Mn=Symbol("fallback");function Dr(e){for(const t of e)t.dispose()}function Fs(e,t,n,r={}){const o=new Map;return V(()=>Dr(o.values())),()=>{const a=e()||[];return a[Wi],Hn(()=>{if(!a.length)return Dr(o.values()),o.clear(),r.fallback?[xr(f=>(o.set(Mn,{dispose:f}),r.fallback()))]:[];const l=new Array(a.length),i=o.get(Mn);if(!o.size||i){i?.dispose(),o.delete(Mn);for(let u=0;u<a.length;u++){const f=a[u],g=t(f,u);s(l,f,u,g)}return l}const c=new Set(o.keys());for(let u=0;u<a.length;u++){const f=a[u],g=t(f,u);c.delete(g);const h=o.get(g);h?(l[u]=h.mapped,h.setIndex?.(u),h.setItem(()=>f)):s(l,f,u,g)}for(const u of c)o.get(u)?.dispose(),o.delete(u);return l})};function s(a,l,i,c){xr(u=>{const[f,g]=_(l),h={setItem:g,dispose:u};if(n.length>1){const[d,y]=_(i);h.setIndex=y,h.mapped=n(f,d)}else h.mapped=n(f);o.set(c,h),a[i]=h.mapped})}}function un(e){const{by:t}=e;return D(Fs(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function _s(e,t,n,r){return e.addEventListener(t,n,r),cs(e.removeEventListener.bind(e,t,n,r))}function Rs(e,t,n,r){const o=()=>{On(E(e)).forEach(s=>{s&&On(E(t)).forEach(a=>_s(s,a,n,r))})};typeof e=="function"?K(o):B(o)}function Ks(e,t){const n=new ResizeObserver(e);return V(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function zs(e,t,n){const r=new WeakMap,{observe:o,unobserve:s}=Ks(a=>{for(const l of a){const{contentRect:i,target:c}=l,u=Math.round(i.width),f=Math.round(i.height),g=r.get(c);(!g||g.width!==u||g.height!==f)&&(t(i,c,l),r.set(c,{width:u,height:f}))}},n);K(a=>{const l=ss(On(E(e)));return us(l,a,o,s),l},[])}var Bs=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Pr(e){const t={};let n;for(;n=Bs.exec(e);)t[n[1]]=n[2];return t}function mn(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Pr(e)}else typeof t=="string"&&(t=Pr(t));return{...e,...t}}function Ns(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function qn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Vs(e){return typeof e=="number"}function St(e){return Object.prototype.toString.call(e)==="[object String]"}function Hs(e){return typeof e=="function"}function Xt(e){return t=>`${e()}-${t}`}function _e(e,t){return e?e===t||e.contains(t):!1}function Vt(e,t=!1){const{activeElement:n}=Ge(e);if(!n?.nodeName)return null;if(bo(n)&&n.contentDocument)return Vt(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=Ge(n).getElementById(r);if(o)return o}}return n}function Gs(e){return Ge(e).defaultView||window}function Ge(e){return e?e.ownerDocument||e:document}function bo(e){return e.tagName==="IFRAME"}var jn=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(jn||{});function Wn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function pn(){return Wn(/^Mac/i)}function Us(){return Wn(/^iPhone/i)}function js(){return Wn(/^iPad/i)||pn()&&navigator.maxTouchPoints>1}function Ws(){return Us()||js()}function Qs(){return pn()||Ws()}function ee(e,t){return t&&(Hs(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function he(e){return t=>{for(const n of e)ee(t,n)}}function Ys(e){return pn()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function be(e){if(e)if(Xs())e.focus({preventScroll:!0});else{const t=Zs(e);e.focus(),Js(t)}}var on=null;function Xs(){if(on==null){on=!1;try{document.createElement("div").focus({get preventScroll(){return on=!0,!0}})}catch{}}return on}function Zs(e){let t=e.parentNode;const n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Js(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var wo=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],ea=[...wo,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Qn=wo.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",ta=ea.join(':not([hidden]):not([tabindex="-1"]),');function xo(e,t){const r=Array.from(e.querySelectorAll(Qn)).filter(Tr);return t&&Tr(e)&&r.unshift(e),r.forEach((o,s)=>{if(bo(o)&&o.contentDocument){const a=o.contentDocument.body,l=xo(a,!1);r.splice(s,1,...l)}}),r}function Tr(e){return Co(e)&&!na(e)}function Co(e){return e.matches(Qn)&&Yn(e)}function na(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Yn(e,t){return e.nodeName!=="#comment"&&ra(e)&&oa(e,t)&&(!e.parentElement||Yn(e.parentElement,e))}function ra(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;const{getComputedStyle:o}=e.ownerDocument.defaultView,{display:s,visibility:a}=o(e);r=s!=="none"&&a!=="hidden"&&a!=="collapse"}return r}function oa(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ia(e,t,n){const r=t?.tabbable?ta:Qn,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return t?.from?.contains(s)?NodeFilter.FILTER_REJECT:s.matches(r)&&Yn(s)&&(!t?.accept||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Ar(e){for(;e&&!sa(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function sa(e){const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function aa(){}function la(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let a=s,l=0,i=a-1;l<a;i=l++){const[c,u]=t[l],[f,g]=t[i],[,h]=t[i===0?a-1:i-1]||[0,0],d=(u-g)*(n-c)-(c-f)*(r-u);if(g<u){if(r>=g&&r<u){if(d===0)return!0;d>0&&(r===g?r>h&&(o=!o):o=!o)}}else if(u<g){if(r>u&&r<=g){if(d===0)return!0;d<0&&(r===g?r<h&&(o=!o):o=!o)}}else if(r==u&&(n>=f&&n<=c||n>=c&&n<=f))return!0}return o}function j(e,t){return U(e,t)}var Kt=new Map,Lr=new Set;function Or(){if(typeof window>"u")return;const e=n=>{if(!n.target)return;let r=Kt.get(n.target);r||(r=new Set,Kt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Kt.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Kt.delete(n.target)),Kt.size===0)){for(const o of Lr)o();Lr.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Or():document.addEventListener("DOMContentLoaded",Or));function Fn(e,t){const n=qr(e,t,"left"),r=qr(e,t,"top"),o=t.offsetWidth,s=t.offsetHeight;let a=e.scrollLeft,l=e.scrollTop;const i=a+e.offsetWidth,c=l+e.offsetHeight;n<=a?a=n:n+o>i&&(a+=n+o-i),r<=l?l=r:r+s>c&&(l+=r+s-c),e.scrollLeft=a,e.scrollTop=l}function qr(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function ca(e,t){if(document.contains(e)){const n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=Ar(e);for(;e&&o&&e!==n&&o!==n;)Fn(o,e),e=o,o=Ar(e)}else{const{left:o,top:s}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});const{left:a,top:l}=e.getBoundingClientRect();(Math.abs(o-a)>1||Math.abs(s-l)>1)&&e.scrollIntoView?.({block:"nearest"})}}}var $o={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function Re(e){return t=>(e(t),()=>e(void 0))}function bn(e,t){const[n,r]=_(Fr(t?.()));return K(()=>{r(e()?.tagName.toLowerCase()||Fr(t?.()))}),n}function Fr(e){return St(e)?e:void 0}function te(e){const[t,n]=Q(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return v(ns,U(n,{get component(){return t.as}}))}var ua=["id","name","validationState","required","disabled","readOnly"];function da(e){const t=`form-control-${Ne()}`,n=j({id:t},e),[r,o]=_(),[s,a]=_(),[l,i]=_(),[c,u]=_(),f=(y,p,m)=>{const b=m!=null||r()!=null;return[m,r(),b&&p!=null?y:void 0].filter(Boolean).join(" ")||void 0},g=y=>[l(),c(),y].filter(Boolean).join(" ")||void 0,h=D(()=>({"data-valid":E(n.validationState)==="valid"?"":void 0,"data-invalid":E(n.validationState)==="invalid"?"":void 0,"data-required":E(n.required)?"":void 0,"data-disabled":E(n.disabled)?"":void 0,"data-readonly":E(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>E(n.name)??E(n.id),dataset:h,validationState:()=>E(n.validationState),isRequired:()=>E(n.required),isDisabled:()=>E(n.disabled),isReadOnly:()=>E(n.readOnly),labelId:r,fieldId:s,descriptionId:l,errorMessageId:c,getAriaLabelledBy:f,getAriaDescribedBy:g,generateId:Xt(()=>E(n.id)),registerLabel:Re(o),registerField:Re(a),registerDescription:Re(i),registerErrorMessage:Re(u)}}}var So=ye();function Zt(){const e=me(So);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function ko(e){const t=Zt(),n=j({id:t.generateId("description")},e);return K(()=>V(t.registerDescription(n.id))),v(te,U({as:"div"},()=>t.dataset(),n))}function Eo(e){const t=Zt(),n=j({id:t.generateId("error-message")},e),[r,o]=Q(n,["forceMount"]),s=()=>t.validationState()==="invalid";return K(()=>{s()&&V(t.registerErrorMessage(o.id))}),v(R,{get when(){return r.forceMount||s()},get children(){return v(te,U({as:"div"},()=>t.dataset(),o))}})}function fa(e){let t;const n=Zt(),r=j({id:n.generateId("label")},e),[o,s]=Q(r,["ref"]),a=bn(()=>t,()=>"label");return K(()=>V(n.registerLabel(s.id))),v(te,U({as:"label",ref(l){const i=Se(c=>t=c,o.ref);typeof i=="function"&&i(l)},get for(){return D(()=>a()==="label")()?n.fieldId():void 0}},()=>n.dataset(),s))}function ga(e,t){K(Ze(e,n=>{if(n==null)return;const r=ha(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),V(()=>{r.removeEventListener("reset",t)}))}))}function ha(e){return va(e)?e.form:e.closest("form")}function va(e){return e.matches("textarea, input, select, button")}function Jt(e){const[t,n]=_(e.defaultValue?.()),r=D(()=>e.value?.()!==void 0),o=D(()=>r()?e.value?.():t());return[o,a=>{Hn(()=>{const l=ls(a,o());return Object.is(l,o())||(r()||n(l),e.onChange?.(l)),l})}]}function Mo(e){const[t,n]=Jt(e);return[()=>t()??!1,n]}function ya(e){const[t,n]=Jt(e);return[()=>t()??[],n]}function ma(e={}){const[t,n]=Mo({value:()=>E(e.isSelected),defaultValue:()=>!!E(e.defaultIsSelected),onChange:s=>e.onSelectedChange?.(s)});return{isSelected:t,setIsSelected:s=>{!E(e.isReadOnly)&&!E(e.isDisabled)&&n(s)},toggle:()=>{!E(e.isReadOnly)&&!E(e.isDisabled)&&n(!t())}}}var pa=Object.defineProperty,wn=(e,t)=>{for(var n in t)pa(e,n,{get:t[n],enumerable:!0})},Io=ye();function Do(){return me(Io)}function ba(){const e=Do();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Po(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function wa(e,t){const n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){const o=e[r]?.ref();if(o&&Po(o,n))return r+1}return 0}function xa(e){const t=e.map((r,o)=>[o,r]);let n=!1;return t.sort(([r,o],[s,a])=>{const l=o.ref(),i=a.ref();return l===i||!l||!i?0:Po(l,i)?(r>s&&(n=!0),-1):(r<s&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function To(e,t){const n=xa(e);e!==n&&t(n)}function Ca(e){const t=e[0],n=e[e.length-1]?.ref();let r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return Ge(r).body}function $a(e,t){K(()=>{const n=setTimeout(()=>{To(e(),t)});V(()=>clearTimeout(n))})}function Sa(e,t){if(typeof IntersectionObserver!="function"){$a(e,t);return}let n=[];K(()=>{const r=()=>{const a=!!n.length;n=e(),a&&To(e(),t)},o=Ca(e()),s=new IntersectionObserver(r,{root:o});for(const a of e()){const l=a.ref();l&&s.observe(l)}V(()=>s.disconnect())})}function ka(e={}){const[t,n]=ya({value:()=>E(e.items),onChange:s=>e.onItemsChange?.(s)});Sa(t,n);const r=s=>(n(a=>{const l=wa(a,s);return Ns(a,s,l)}),()=>{n(a=>{const l=a.filter(i=>i.ref()!==s.ref());return a.length===l.length?a:l})});return{DomCollectionProvider:s=>v(Io.Provider,{value:{registerItem:r},get children(){return s.children}})}}function Ea(e){const t=ba(),n=j({shouldRegisterItem:!0},e);K(()=>{if(!n.shouldRegisterItem)return;const r=t.registerItem(n.getItem());V(r)})}function Ao(e){let t=e.startIndex??0;const n=e.startLevel??0,r=[],o=i=>{if(i==null)return"";const c=e.getKey??"key",u=St(c)?i[c]:c(i);return u!=null?String(u):""},s=i=>{if(i==null)return"";const c=e.getTextValue??"textValue",u=St(c)?i[c]:c(i);return u!=null?String(u):""},a=i=>{if(i==null)return!1;const c=e.getDisabled??"disabled";return(St(c)?i[c]:c(i))??!1},l=i=>{if(i!=null)return St(e.getSectionChildren)?i[e.getSectionChildren]:e.getSectionChildren?.(i)};for(const i of e.dataSource){if(St(i)||Vs(i)){r.push({type:"item",rawValue:i,key:String(i),textValue:String(i),disabled:a(i),level:n,index:t}),t++;continue}if(l(i)!=null){r.push({type:"section",rawValue:i,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const c=l(i)??[];if(c.length>0){const u=Ao({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...u),t+=u.length}}else r.push({type:"item",rawValue:i,key:o(i),textValue:s(i),disabled:a(i),level:n,index:t}),t++}return r}function Ma(e,t=[]){return D(()=>{const n=Ao({dataSource:E(e.dataSource),getKey:E(e.getKey),getTextValue:E(e.getTextValue),getDisabled:E(e.getDisabled),getSectionChildren:E(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}var Ia=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Da=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Pa(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return Ia.has(n)}const t=e.split("-")[0];return Da.has(t)}function Ta(e){return Pa(e)?"rtl":"ltr"}function Lo(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Ta(e)}}var _n=Lo(),Ht=new Set;function _r(){_n=Lo();for(const e of Ht)e(_n)}function Aa(){const[e,t]=_(_n),n=D(()=>e());return Yt(()=>{Ht.size===0&&window.addEventListener("languagechange",_r),Ht.add(t),V(()=>{Ht.delete(t),Ht.size===0&&window.removeEventListener("languagechange",_r)})}),{locale:()=>n().locale,direction:()=>n().direction}}var La=ye();function dt(){const e=Aa();return me(La)||e}var In=new Map;function Oa(e){const{locale:t}=dt(),n=D(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return D(()=>{const r=n();let o;return In.has(r)&&(o=In.get(r)),o||(o=new Intl.Collator(t(),e),In.set(r,o)),o})}var Ye=class Oo extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof Oo?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function qa(e){const[t,n]=Jt(e);return[()=>t()??new Ye,n]}function qo(e){return Qs()?e.altKey:e.ctrlKey}function kt(e){return pn()?e.metaKey:e.ctrlKey}function Rr(e){return new Ye(e)}function Fa(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function _a(e){const t=j({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=_(!1),[o,s]=_(),a=D(()=>{const y=E(t.selectedKeys);return y!=null?Rr(y):y}),l=D(()=>{const y=E(t.defaultSelectedKeys);return y!=null?Rr(y):new Ye}),[i,c]=qa({value:a,defaultValue:l,onChange:y=>t.onSelectionChange?.(y)}),[u,f]=_(E(t.selectionBehavior)),g=()=>E(t.selectionMode),h=()=>E(t.disallowEmptySelection)??!1,d=y=>{(E(t.allowDuplicateSelectionEvents)||!Fa(y,i()))&&c(y)};return K(()=>{const y=i();E(t.selectionBehavior)==="replace"&&u()==="toggle"&&typeof y=="object"&&y.size===0&&f("replace")}),K(()=>{f(E(t.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:h,selectionBehavior:u,setSelectionBehavior:f,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:s,selectedKeys:i,setSelectedKeys:d}}function Ra(e){const[t,n]=_(""),[r,o]=_(-1);return{typeSelectHandlers:{onKeyDown:a=>{if(E(e.isDisabled))return;const l=E(e.keyboardDelegate),i=E(e.selectionManager);if(!l.getKeyForSearch)return;const c=Ka(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===" "&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let u=n(g=>g+c),f=l.getKeyForSearch(u,i.focusedKey())??l.getKeyForSearch(u);f==null&&za(u)&&(u=u[0],f=l.getKeyForSearch(u,i.focusedKey())??l.getKeyForSearch(u)),f!=null&&(i.setFocusedKey(f),e.onTypeSelect?.(f)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500))}}}}function Ka(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function za(e){return e.split("").every(t=>t===e[0])}function Ba(e,t,n){const o=U({selectOnFocus:()=>E(e.selectionManager).selectionBehavior()==="replace"},e),s=()=>t(),{direction:a}=dt();let l={top:0,left:0};Rs(()=>E(o.isVirtualized)?void 0:s(),"scroll",()=>{const p=s();p&&(l={top:p.scrollTop,left:p.scrollLeft})});const{typeSelectHandlers:i}=Ra({isDisabled:()=>E(o.disallowTypeAhead),keyboardDelegate:()=>E(o.keyboardDelegate),selectionManager:()=>E(o.selectionManager)}),c=()=>E(o.orientation)??"vertical",u=p=>{ee(p,i.onKeyDown),p.altKey&&p.key==="Tab"&&p.preventDefault();const m=t();if(!m?.contains(p.target))return;const b=E(o.selectionManager),w=E(o.selectOnFocus),x=L=>{L!=null&&(b.setFocusedKey(L),p.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(L):w&&!qo(p)&&b.replaceSelection(L))},S=E(o.keyboardDelegate),O=E(o.shouldFocusWrap),P=b.focusedKey();switch(p.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){p.preventDefault();let L;P!=null?L=S.getKeyBelow(P):L=S.getFirstKey?.(),L==null&&O&&(L=S.getFirstKey?.(P)),x(L)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){p.preventDefault();let L;P!=null?L=S.getKeyAbove(P):L=S.getLastKey?.(),L==null&&O&&(L=S.getLastKey?.(P)),x(L)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){p.preventDefault();const L=a()==="rtl";let C;P!=null?C=S.getKeyLeftOf(P):C=L?S.getFirstKey?.():S.getLastKey?.(),x(C)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){p.preventDefault();const L=a()==="rtl";let C;P!=null?C=S.getKeyRightOf(P):C=L?S.getLastKey?.():S.getFirstKey?.(),x(C)}break}case"Home":if(S.getFirstKey){p.preventDefault();const L=S.getFirstKey(P,kt(p));L!=null&&(b.setFocusedKey(L),kt(p)&&p.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(L):w&&b.replaceSelection(L))}break;case"End":if(S.getLastKey){p.preventDefault();const L=S.getLastKey(P,kt(p));L!=null&&(b.setFocusedKey(L),kt(p)&&p.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(L):w&&b.replaceSelection(L))}break;case"PageDown":if(S.getKeyPageBelow&&P!=null){p.preventDefault();const L=S.getKeyPageBelow(P);x(L)}break;case"PageUp":if(S.getKeyPageAbove&&P!=null){p.preventDefault();const L=S.getKeyPageAbove(P);x(L)}break;case"a":kt(p)&&b.selectionMode()==="multiple"&&E(o.disallowSelectAll)!==!0&&(p.preventDefault(),b.selectAll());break;case"Escape":p.defaultPrevented||(p.preventDefault(),E(o.disallowEmptySelection)||b.clearSelection());break;case"Tab":if(!E(o.allowsTabNavigation)){if(p.shiftKey)m.focus();else{const L=ia(m,{tabbable:!0});let C,A;do A=L.lastChild(),A&&(C=A);while(A);C&&!C.contains(document.activeElement)&&be(C)}break}}},f=p=>{const m=E(o.selectionManager),b=E(o.keyboardDelegate),w=E(o.selectOnFocus);if(m.isFocused()){p.currentTarget.contains(p.target)||m.setFocused(!1);return}if(p.currentTarget.contains(p.target)){if(m.setFocused(!0),m.focusedKey()==null){const x=O=>{O!=null&&(m.setFocusedKey(O),w&&m.replaceSelection(O))},S=p.relatedTarget;S&&p.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?x(m.lastSelectedKey()??b.getLastKey?.()):x(m.firstSelectedKey()??b.getFirstKey?.())}else if(!E(o.isVirtualized)){const x=s();if(x){x.scrollTop=l.top,x.scrollLeft=l.left;const S=x.querySelector(`[data-key="${m.focusedKey()}"]`);S&&(be(S),Fn(x,S))}}}},g=p=>{const m=E(o.selectionManager);p.currentTarget.contains(p.relatedTarget)||m.setFocused(!1)},h=p=>{s()===p.target&&p.preventDefault()},d=()=>{const p=E(o.autoFocus);if(!p)return;const m=E(o.selectionManager),b=E(o.keyboardDelegate);let w;p==="first"&&(w=b.getFirstKey?.()),p==="last"&&(w=b.getLastKey?.());const x=m.selectedKeys();x.size&&(w=x.values().next().value),m.setFocused(!0),m.setFocusedKey(w);const S=t();S&&w==null&&!E(o.shouldUseVirtualFocus)&&be(S)};return Yt(()=>{o.deferAutoFocus?setTimeout(d,0):d()}),K(Ze([s,()=>E(o.isVirtualized),()=>E(o.selectionManager).focusedKey()],p=>{const[m,b,w]=p;if(b)w&&o.scrollToKey?.(w);else if(w&&m){const x=m.querySelector(`[data-key="${w}"]`);x&&Fn(m,x)}})),{tabIndex:D(()=>{if(!E(o.shouldUseVirtualFocus))return E(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:u,onMouseDown:h,onFocusIn:f,onFocusOut:g}}function Fo(e,t){const n=()=>E(e.selectionManager),r=()=>E(e.key),o=()=>E(e.shouldUseVirtualFocus),s=b=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):b?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||kt(b)||"pointerType"in b&&b.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},a=()=>n().isSelected(r()),l=()=>E(e.disabled)||n().isDisabled(r()),i=()=>!l()&&n().canSelectItem(r());let c=null;const u=b=>{i()&&(c=b.pointerType,b.pointerType==="mouse"&&b.button===0&&!E(e.shouldSelectOnPressUp)&&s(b))},f=b=>{i()&&b.pointerType==="mouse"&&b.button===0&&E(e.shouldSelectOnPressUp)&&E(e.allowsDifferentPressOrigin)&&s(b)},g=b=>{i()&&(E(e.shouldSelectOnPressUp)&&!E(e.allowsDifferentPressOrigin)||c!=="mouse")&&s(b)},h=b=>{!i()||!["Enter"," "].includes(b.key)||(qo(b)?n().toggleSelection(r()):s(b))},d=b=>{l()&&b.preventDefault()},y=b=>{const w=t();o()||l()||!w||b.target===w&&n().setFocusedKey(r())},p=D(()=>{if(!(o()||l()))return r()===n().focusedKey()?0:-1}),m=D(()=>E(e.virtualized)?void 0:r());return K(Ze([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([b,w,x,S,O])=>{b&&w===S&&O&&!x&&document.activeElement!==b&&(e.focus?e.focus():be(b))})),{isSelected:a,isDisabled:l,allowsSelection:i,tabIndex:p,dataKey:m,onPointerDown:u,onPointerUp:f,onClick:g,onKeyDown:h,onMouseDown:d,onFocus:y}}var Na=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=this.state.selectedKeys(),r=n.anchorKey||t,o=new Ye(n,r,t);for(const s of this.getKeyRange(r,n.currentKey||t))o.delete(s);for(const s of this.getKeyRange(t,r))this.canSelectItem(s)&&o.add(s);this.state.setSelectedKeys(o)}getKeyRange(e,t){const n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const n=[];let r=e;for(;r!=null;){const o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=new Ye(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const n=this.canSelectItem(t)?new Ye([t],t,t):new Ye;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new Ye;for(const n of e){const r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Ye)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;for(const n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){const r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},Kr=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(const r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(const[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function Va(e){const t=_a(e),r=Ma({dataSource:()=>E(e.dataSource),getKey:()=>E(e.getKey),getTextValue:()=>E(e.getTextValue),getDisabled:()=>E(e.getDisabled),getSectionChildren:()=>E(e.getSectionChildren),factory:s=>e.filter?new Kr(e.filter(s)):new Kr(s)},[()=>e.filter]),o=new Na(r,t);return rs(()=>{const s=t.focusedKey();s!=null&&!r().getItem(s)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>o}}var pe=e=>typeof e=="function"?e():e,Ha=e=>{const t=D(()=>{const a=pe(e.element);if(a)return getComputedStyle(a)}),n=()=>t()?.animationName??"none",[r,o]=_(pe(e.show)?"present":"hidden");let s="none";return K(a=>{const l=pe(e.show);return Hn(()=>{if(a===l)return l;const i=s,c=n();l?o("present"):c==="none"||t()?.display==="none"?o("hidden"):o(a===!0&&i!==c?"hiding":"hidden")}),l}),K(()=>{const a=pe(e.element);if(!a)return;const l=c=>{c.target===a&&(s=n())},i=c=>{const f=n().includes(c.animationName);c.target===a&&f&&r()==="hiding"&&o("hidden")};a.addEventListener("animationstart",l),a.addEventListener("animationcancel",i),a.addEventListener("animationend",i),V(()=>{a.removeEventListener("animationstart",l),a.removeEventListener("animationcancel",i),a.removeEventListener("animationend",i)})}),{present:()=>r()==="present"||r()==="hiding",state:r}},Ga=Ha,_o=Ga,dn="data-kb-top-layer",Ro,Rn=!1,Je=[];function Ut(e){return Je.findIndex(t=>t.node===e)}function Ua(e){return Je[Ut(e)]}function ja(e){return Je[Je.length-1].node===e}function Ko(){return Je.filter(e=>e.isPointerBlocking)}function Wa(){return[...Ko()].slice(-1)[0]}function Xn(){return Ko().length>0}function zo(e){const t=Ut(Wa()?.node);return Ut(e)<t}function Qa(e){Je.push(e)}function Ya(e){const t=Ut(e);t<0||Je.splice(t,1)}function Xa(){for(const{node:e}of Je)e.style.pointerEvents=zo(e)?"none":"auto"}function Za(e){if(Xn()&&!Rn){const t=Ge(e);Ro=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Rn=!0}}function Ja(e){if(Xn())return;const t=Ge(e);t.body.style.pointerEvents=Ro,t.body.style.length===0&&t.body.removeAttribute("style"),Rn=!1}var Me={layers:Je,isTopMostLayer:ja,hasPointerBlockingLayer:Xn,isBelowPointerBlockingLayer:zo,addLayer:Qa,removeLayer:Ya,indexOf:Ut,find:Ua,assignPointerEventToLayers:Xa,disableBodyPointerEvents:Za,restoreBodyPointerEvents:Ja},el={};wn(el,{Button:()=>rl,Root:()=>Zn});var tl=["button","color","file","image","reset","submit"];function nl(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?tl.indexOf(e.type)!==-1:!1}function Zn(e){let t;const n=j({type:"button"},e),[r,o]=Q(n,["ref","type","disabled"]),s=bn(()=>t,()=>"button"),a=D(()=>{const c=s();return c==null?!1:nl({tagName:c,type:r.type})}),l=D(()=>s()==="input"),i=D(()=>s()==="a"&&t?.getAttribute("href")!=null);return v(te,U({as:"button",ref(c){const u=Se(f=>t=f,r.ref);typeof u=="function"&&u(c)},get type(){return a()||l()?r.type:void 0},get role(){return!a()&&!i()?"button":void 0},get tabIndex(){return!a()&&!i()&&!r.disabled?0:void 0},get disabled(){return a()||l()?r.disabled:void 0},get"aria-disabled"(){return!a()&&!l()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var rl=Zn,ol=["top","right","bottom","left"],He=Math.min,De=Math.max,fn=Math.round,sn=Math.floor,lt=e=>({x:e,y:e}),il={left:"right",right:"left",bottom:"top",top:"bottom"},sl={start:"end",end:"start"};function Kn(e,t,n){return De(e,He(t,n))}function bt(e,t){return typeof e=="function"?e(t):e}function ct(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function Bo(e){return e==="x"?"y":"x"}function Jn(e){return e==="y"?"height":"width"}function mt(e){return["top","bottom"].includes(ct(e))?"y":"x"}function er(e){return Bo(mt(e))}function al(e,t,n){n===void 0&&(n=!1);const r=Dt(e),o=er(e),s=Jn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=gn(a)),[a,gn(a)]}function ll(e){const t=gn(e);return[zn(e),t,zn(t)]}function zn(e){return e.replace(/start|end/g,t=>sl[t])}function cl(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function ul(e,t,n,r){const o=Dt(e);let s=cl(ct(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(zn)))),s}function gn(e){return e.replace(/left|right|bottom|top/g,t=>il[t])}function dl(e){return{top:0,right:0,bottom:0,left:0,...e}}function No(e){return typeof e!="number"?dl(e):{top:e,right:e,bottom:e,left:e}}function hn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function zr(e,t,n){let{reference:r,floating:o}=e;const s=mt(t),a=er(t),l=Jn(a),i=ct(t),c=s==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let h;switch(i){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Dt(t)){case"start":h[a]-=g*(n&&c?-1:1);break;case"end":h[a]+=g*(n&&c?-1:1);break}return h}var fl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),i=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=zr(c,r,i),g=r,h={},d=0;for(let y=0;y<l.length;y++){const{name:p,fn:m}=l[y],{x:b,y:w,data:x,reset:S}=await m({x:u,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,f=w??f,h={...h,[p]:{...h[p],...x}},S&&d<=50&&(d++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=zr(c,g,i)),y=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:h}};async function jt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:l,strategy:i}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=bt(t,e),d=No(h),p=l[g?f==="floating"?"reference":"floating":f],m=hn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(p)))==null||n?p:p.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:i})),b=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=hn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:i}):b);return{top:(m.top-S.top+d.top)/x.y,bottom:(S.bottom-m.bottom+d.bottom)/x.y,left:(m.left-S.left+d.left)/x.x,right:(S.right-m.right+d.right)/x.x}}var gl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:l,middlewareData:i}=t,{element:c,padding:u=0}=bt(e,t)||{};if(c==null)return{};const f=No(u),g={x:n,y:r},h=er(o),d=Jn(h),y=await a.getDimensions(c),p=h==="y",m=p?"top":"left",b=p?"bottom":"right",w=p?"clientHeight":"clientWidth",x=s.reference[d]+s.reference[h]-g[h]-s.floating[d],S=g[h]-s.reference[h],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let P=O?O[w]:0;(!P||!await(a.isElement==null?void 0:a.isElement(O)))&&(P=l.floating[w]||s.floating[d]);const L=x/2-S/2,C=P/2-y[d]/2-1,A=He(f[m],C),G=He(f[b],C),N=A,ne=P-y[d]-G,Z=P/2-y[d]/2+L,ue=Kn(N,Z,ne),re=!i.arrow&&Dt(o)!=null&&Z!==ue&&s.reference[d]/2-(Z<N?A:G)-y[d]/2<0,oe=re?Z<N?Z-N:Z-ne:0;return{[h]:g[h]+oe,data:{[h]:ue,centerOffset:Z-ue-oe,...re&&{alignmentOffset:oe}},reset:re}}}),hl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:l,platform:i,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:y=!0,...p}=bt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=ct(o),b=mt(l),w=ct(l)===l,x=await(i.isRTL==null?void 0:i.isRTL(c.floating)),S=g||(w||!y?[gn(l)]:ll(l)),O=d!=="none";!g&&O&&S.push(...ul(l,y,d,x));const P=[l,...S],L=await jt(t,p),C=[];let A=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&C.push(L[m]),f){const Z=al(o,a,x);C.push(L[Z[0]],L[Z[1]])}if(A=[...A,{placement:o,overflows:C}],!C.every(Z=>Z<=0)){var G,N;const Z=(((G=s.flip)==null?void 0:G.index)||0)+1,ue=P[Z];if(ue)return{data:{index:Z,overflows:A},reset:{placement:ue}};let re=(N=A.filter(oe=>oe.overflows[0]<=0).sort((oe,se)=>oe.overflows[1]-se.overflows[1])[0])==null?void 0:N.placement;if(!re)switch(h){case"bestFit":{var ne;const oe=(ne=A.filter(se=>{if(O){const ae=mt(se.placement);return ae===b||ae==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(ae=>ae>0).reduce((ae,we)=>ae+we,0)]).sort((se,ae)=>se[1]-ae[1])[0])==null?void 0:ne[0];oe&&(re=oe);break}case"initialPlacement":re=l;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Br(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nr(e){return ol.some(t=>e[t]>=0)}var vl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=bt(e,t);switch(r){case"referenceHidden":{const s=await jt(t,{...o,elementContext:"reference"}),a=Br(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Nr(a)}}}case"escaped":{const s=await jt(t,{...o,altBoundary:!0}),a=Br(s,n.floating);return{data:{escapedOffsets:a,escaped:Nr(a)}}}default:return{}}}}};async function yl(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ct(n),l=Dt(n),i=mt(n)==="y",c=["left","top"].includes(a)?-1:1,u=s&&i?-1:1,f=bt(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof d=="number"&&(h=l==="end"?d*-1:d),i?{x:h*u,y:g*c}:{x:g*c,y:h*u}}var ml=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:l}=t,i=await yl(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+i.x,y:s+i.y,data:{...i,placement:a}}}}},pl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:p=>{let{x:m,y:b}=p;return{x:m,y:b}}},...i}=bt(e,t),c={x:n,y:r},u=await jt(t,i),f=mt(ct(o)),g=Bo(f);let h=c[g],d=c[f];if(s){const p=g==="y"?"top":"left",m=g==="y"?"bottom":"right",b=h+u[p],w=h-u[m];h=Kn(b,h,w)}if(a){const p=f==="y"?"top":"left",m=f==="y"?"bottom":"right",b=d+u[p],w=d-u[m];d=Kn(b,d,w)}const y=l.fn({...t,[g]:h,[f]:d});return{...y,data:{x:y.x-n,y:y.y-r}}}}},bl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:a=()=>{},...l}=bt(e,t),i=await jt(t,l),c=ct(n),u=Dt(n),f=mt(n)==="y",{width:g,height:h}=r.floating;let d,y;c==="top"||c==="bottom"?(d=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,d=u==="end"?"top":"bottom");const p=h-i.top-i.bottom,m=g-i.left-i.right,b=He(h-i[d],p),w=He(g-i[y],m),x=!t.middlewareData.shift;let S=b,O=w;if(f?O=u||x?He(w,m):m:S=u||x?He(b,p):p,x&&!u){const L=De(i.left,0),C=De(i.right,0),A=De(i.top,0),G=De(i.bottom,0);f?O=g-2*(L!==0||C!==0?L+C:De(i.left,i.right)):S=h-2*(A!==0||G!==0?A+G:De(i.top,i.bottom))}await a({...t,availableWidth:O,availableHeight:S});const P=await o.getDimensions(s.floating);return g!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function Pt(e){return Vo(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){var t;return(t=(Vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vo(e){return e instanceof Node||e instanceof Pe(e).Node}function ze(e){return e instanceof Element||e instanceof Pe(e).Element}function Ue(e){return e instanceof HTMLElement||e instanceof Pe(e).HTMLElement}function Vr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function en(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Be(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wl(e){return["table","td","th"].includes(Pt(e))}function xn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function tr(e){const t=nr(),n=ze(e)?Be(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function xl(e){let t=ut(e);for(;Ue(t)&&!It(t);){if(tr(t))return t;if(xn(t))return null;t=ut(t)}return null}function nr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function It(e){return["html","body","#document"].includes(Pt(e))}function Be(e){return Pe(e).getComputedStyle(e)}function Cn(e){return ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(Pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vr(e)&&e.host||et(e);return Vr(t)?t.host:t}function Ho(e){const t=ut(e);return It(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ue(t)&&en(t)?t:Ho(t)}function Wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ho(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Pe(o);return s?t.concat(a,a.visualViewport||[],en(o)?o:[],a.frameElement&&n?Wt(a.frameElement):[]):t.concat(o,Wt(o,[],n))}function Go(e){const t=Be(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ue(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=fn(n)!==s||fn(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function rr(e){return ze(e)?e:e.contextElement}function Mt(e){const t=rr(e);if(!Ue(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Go(t);let a=(s?fn(n.width):n.width)/r,l=(s?fn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var Cl=lt(0);function Uo(e){const t=Pe(e);return!nr()||!t.visualViewport?Cl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $l(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function pt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=rr(e);let a=lt(1);t&&(r?ze(r)&&(a=Mt(r)):a=Mt(e));const l=$l(s,n,r)?Uo(s):lt(0);let i=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(s){const g=Pe(s),h=r&&ze(r)?Pe(r):r;let d=g,y=d.frameElement;for(;y&&r&&h!==d;){const p=Mt(y),m=y.getBoundingClientRect(),b=Be(y),w=m.left+(y.clientLeft+parseFloat(b.paddingLeft))*p.x,x=m.top+(y.clientTop+parseFloat(b.paddingTop))*p.y;i*=p.x,c*=p.y,u*=p.x,f*=p.y,i+=w,c+=x,d=Pe(y),y=d.frameElement}}return hn({width:u,height:f,x:i,y:c})}function Sl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=et(r),l=t?xn(t.floating):!1;if(r===a||l&&s)return n;let i={scrollLeft:0,scrollTop:0},c=lt(1);const u=lt(0),f=Ue(r);if((f||!f&&!s)&&((Pt(r)!=="body"||en(a))&&(i=Cn(r)),Ue(r))){const g=pt(r);c=Mt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-i.scrollLeft*c.x+u.x,y:n.y*c.y-i.scrollTop*c.y+u.y}}function kl(e){return Array.from(e.getClientRects())}function jo(e){return pt(et(e)).left+Cn(e).scrollLeft}function El(e){const t=et(e),n=Cn(e),r=e.ownerDocument.body,o=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jo(e);const l=-n.scrollTop;return Be(r).direction==="rtl"&&(a+=De(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:l}}function Ml(e,t){const n=Pe(e),r=et(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,i=0;if(o){s=o.width,a=o.height;const c=nr();(!c||c&&t==="fixed")&&(l=o.offsetLeft,i=o.offsetTop)}return{width:s,height:a,x:l,y:i}}function Il(e,t){const n=pt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ue(e)?Mt(e):lt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,i=o*s.x,c=r*s.y;return{width:a,height:l,x:i,y:c}}function Hr(e,t,n){let r;if(t==="viewport")r=Ml(e,n);else if(t==="document")r=El(et(e));else if(ze(t))r=Il(t,n);else{const o=Uo(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return hn(r)}function Wo(e,t){const n=ut(e);return n===t||!ze(n)||It(n)?!1:Be(n).position==="fixed"||Wo(n,t)}function Dl(e,t){const n=t.get(e);if(n)return n;let r=Wt(e,[],!1).filter(l=>ze(l)&&Pt(l)!=="body"),o=null;const s=Be(e).position==="fixed";let a=s?ut(e):e;for(;ze(a)&&!It(a);){const l=Be(a),i=tr(a);!i&&l.position==="fixed"&&(o=null),(s?!i&&!o:!i&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||en(a)&&!i&&Wo(e,a))?r=r.filter(u=>u!==a):o=l,a=ut(a)}return t.set(e,r),r}function Pl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?xn(t)?[]:Dl(t,this._c):[].concat(n),r],l=a[0],i=a.reduce((c,u)=>{const f=Hr(t,u,o);return c.top=De(f.top,c.top),c.right=He(f.right,c.right),c.bottom=He(f.bottom,c.bottom),c.left=De(f.left,c.left),c},Hr(t,l,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}}function Tl(e){const{width:t,height:n}=Go(e);return{width:t,height:n}}function Al(e,t,n){const r=Ue(t),o=et(t),s=n==="fixed",a=pt(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const i=lt(0);if(r||!r&&!s)if((Pt(t)!=="body"||en(o))&&(l=Cn(t)),r){const f=pt(t,!0,s,t);i.x=f.x+t.clientLeft,i.y=f.y+t.clientTop}else o&&(i.x=jo(o));const c=a.left+l.scrollLeft-i.x,u=a.top+l.scrollTop-i.y;return{x:c,y:u,width:a.width,height:a.height}}function Dn(e){return Be(e).position==="static"}function Gr(e,t){return!Ue(e)||Be(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qo(e,t){const n=Pe(e);if(xn(e))return n;if(!Ue(e)){let o=ut(e);for(;o&&!It(o);){if(ze(o)&&!Dn(o))return o;o=ut(o)}return n}let r=Gr(e,t);for(;r&&wl(r)&&Dn(r);)r=Gr(r,t);return r&&It(r)&&Dn(r)&&!tr(r)?n:r||xl(e)||n}var Ll=async function(e){const t=this.getOffsetParent||Qo,n=this.getDimensions,r=await n(e.floating);return{reference:Al(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ol(e){return Be(e).direction==="rtl"}var Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Sl,getDocumentElement:et,getClippingRect:Pl,getOffsetParent:Qo,getElementRects:Ll,getClientRects:kl,getDimensions:Tl,getScale:Mt,isElement:ze,isRTL:Ol};function ql(e,t){let n=null,r;const o=et(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,i){l===void 0&&(l=!1),i===void 0&&(i=1),s();const{left:c,top:u,width:f,height:g}=e.getBoundingClientRect();if(l||t(),!f||!g)return;const h=sn(u),d=sn(o.clientWidth-(c+f)),y=sn(o.clientHeight-(u+g)),p=sn(c),b={rootMargin:-h+"px "+-d+"px "+-y+"px "+-p+"px",threshold:De(0,He(1,i))||1};let w=!0;function x(S){const O=S[0].intersectionRatio;if(O!==i){if(!w)return a();O?a(!1,O):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(x,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return a(!0),s}function Fl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:i=!1}=r,c=rr(e),u=o||s?[...c?Wt(c):[],...Wt(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const f=c&&l?ql(c,n):null;let g=-1,h=null;a&&(h=new ResizeObserver(m=>{let[b]=m;b&&b.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),c&&!i&&h.observe(c),h.observe(t));let d,y=i?pt(e):null;i&&p();function p(){const m=pt(e);y&&(m.x!==y.x||m.y!==y.y||m.width!==y.width||m.height!==y.height)&&n(),y=m,d=requestAnimationFrame(p)}return n(),()=>{var m;u.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),f?.(),(m=h)==null||m.disconnect(),h=null,i&&cancelAnimationFrame(d)}}var _l=ml,Rl=pl,Kl=hl,zl=bl,Bl=vl,Nl=gl,Vl=(e,t,n)=>{const r=new Map,o={platform:Yo,...n},s={...o.platform,_c:r};return fl(e,t,{...o,platform:s})},or=ye();function ir(){const e=me(or);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var Hl=F('<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),Bn=30,Ur=Bn/2,Gl={top:180,right:-90,bottom:0,left:90};function sr(e){const t=ir(),n=j({size:Bn},e),[r,o]=Q(n,["ref","style","size"]),s=()=>t.currentPlacement().split("-")[0],a=Ul(t.contentRef),l=()=>a()?.getPropertyValue("background-color")||"none",i=()=>a()?.getPropertyValue(`border-${s()}-color`)||"none",c=()=>a()?.getPropertyValue(`border-${s()}-width`)||"0px",u=()=>Number.parseInt(c())*2*(Bn/r.size),f=()=>`rotate(${Gl[s()]} ${Ur} ${Ur}) translate(0 2)`;return v(te,U({as:"div",ref(g){const h=Se(t.setArrowRef,r.ref);typeof h=="function"&&h(g)},"aria-hidden":"true",get style(){return mn({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:l(),stroke:i(),"stroke-width":u()},r.style)}},o,{get children(){const g=Hl(),h=g.firstChild;return B(()=>Ce(h,"transform",f())),g}}))}function Ul(e){const[t,n]=_();return K(()=>{const r=e();r&&n(Gs(r).getComputedStyle(r))}),t}function jl(e){const t=ir(),[n,r]=Q(e,["ref","style"]);return v(te,U({as:"div",ref(o){const s=Se(t.setPositionerRef,n.ref);typeof s=="function"&&s(o)},"data-popper-positioner":"",get style(){return mn({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function jr(e){const{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);const s={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return{...s,toJSON:()=>s}}function Wl(e,t){return{contextElement:e,getBoundingClientRect:()=>{const r=t(e);return r?jr(r):e?e.getBoundingClientRect():jr()}}}function Ql(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var Yl={top:"bottom",right:"left",bottom:"top",left:"right"};function Xl(e,t){const[n,r]=e.split("-"),o=Yl[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function Zl(e){const t=j({getAnchorRect:g=>g?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=_(),[o,s]=_(),[a,l]=_(t.placement),i=()=>Wl(t.anchorRef?.(),t.getAnchorRect),{direction:c}=dt();async function u(){const g=i(),h=n(),d=o();if(!g||!h)return;const y=(d?.clientHeight||0)/2,p=typeof t.gutter=="number"?t.gutter+y:t.gutter??y;h.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),g.getBoundingClientRect();const m=[_l(({placement:O})=>{const P=!!O.split("-")[1];return{mainAxis:p,crossAxis:P?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){const O=typeof t.flip=="string"?t.flip.split(" "):void 0;if(O!==void 0&&!O.every(Ql))throw new Error("`flip` expects a spaced-delimited list of placements");m.push(Kl({padding:t.overflowPadding,fallbackPlacements:O}))}(t.slide||t.overlap)&&m.push(Rl({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),m.push(zl({padding:t.overflowPadding,apply({availableWidth:O,availableHeight:P,rects:L}){const C=Math.round(L.reference.width);O=Math.floor(O),P=Math.floor(P),h.style.setProperty("--kb-popper-anchor-width",`${C}px`),h.style.setProperty("--kb-popper-content-available-width",`${O}px`),h.style.setProperty("--kb-popper-content-available-height",`${P}px`),t.sameWidth&&(h.style.width=`${C}px`),t.fitViewport&&(h.style.maxWidth=`${O}px`,h.style.maxHeight=`${P}px`)}})),t.hideWhenDetached&&m.push(Bl({padding:t.detachedPadding})),d&&m.push(Nl({element:d,padding:t.arrowPadding}));const b=await Vl(g,h,{placement:t.placement,strategy:"absolute",middleware:m,platform:{...Yo,isRTL:()=>c()==="rtl"}});if(l(b.placement),t.onCurrentPlacementChange?.(b.placement),!h)return;h.style.setProperty("--kb-popper-content-transform-origin",Xl(b.placement,c()));const w=Math.round(b.x),x=Math.round(b.y);let S;if(t.hideWhenDetached&&(S=b.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(h.style,{top:"0",left:"0",transform:`translate3d(${w}px, ${x}px, 0)`,visibility:S}),d&&b.middlewareData.arrow){const{x:O,y:P}=b.middlewareData.arrow,L=b.placement.split("-")[0];Object.assign(d.style,{left:O!=null?`${O}px`:"",top:P!=null?`${P}px`:"",[L]:"100%"})}}K(()=>{const g=i(),h=n();if(!g||!h)return;const d=Fl(g,h,u,{elementResize:typeof ResizeObserver=="function"});V(d)}),K(()=>{const g=n(),h=t.contentRef?.();!g||!h||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(h).zIndex})});const f={currentPlacement:a,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:s};return v(or.Provider,{value:f,get children(){return t.children}})}var Xo=Object.assign(Zl,{Arrow:sr,Context:or,usePopperContext:ir,Positioner:jl});function Jl(e){const t=n=>{n.key===jn.Escape&&e.onEscapeKeyDown?.(n)};K(()=>{if(E(e.isDisabled))return;const n=e.ownerDocument?.()??Ge();n.addEventListener("keydown",t),V(()=>{n.removeEventListener("keydown",t)})})}var Wr="interactOutside.pointerDownOutside",Qr="interactOutside.focusOutside";function ec(e,t){let n,r=aa;const o=()=>Ge(t()),s=f=>e.onPointerDownOutside?.(f),a=f=>e.onFocusOutside?.(f),l=f=>e.onInteractOutside?.(f),i=f=>{const g=f.target;return!(g instanceof HTMLElement)||g.closest(`[${dn}]`)||!_e(o(),g)||_e(t(),g)?!1:!e.shouldExcludeElement?.(g)},c=f=>{function g(){const h=t(),d=f.target;if(!h||!d||!i(f))return;const y=he([s,l]);d.addEventListener(Wr,y,{once:!0});const p=new CustomEvent(Wr,{bubbles:!1,cancelable:!0,detail:{originalEvent:f,isContextMenu:f.button===2||Ys(f)&&f.button===0}});d.dispatchEvent(p)}f.pointerType==="touch"?(o().removeEventListener("click",g),r=g,o().addEventListener("click",g,{once:!0})):g()},u=f=>{const g=t(),h=f.target;if(!g||!h||!i(f))return;const d=he([a,l]);h.addEventListener(Qr,d,{once:!0});const y=new CustomEvent(Qr,{bubbles:!1,cancelable:!0,detail:{originalEvent:f,isContextMenu:!1}});h.dispatchEvent(y)};K(()=>{E(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0)},0),o().addEventListener("focusin",u,!0),V(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",u,!0)}))})}var Zo=ye();function tc(){return me(Zo)}function nc(e){let t;const n=tc(),[r,o]=Q(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),s=new Set([]),a=f=>{s.add(f);const g=n?.registerNestedLayer(f);return()=>{s.delete(f),g?.()}};ec({shouldExcludeElement:f=>t?r.excludedElements?.some(g=>_e(g(),f))||[...s].some(g=>_e(g,f)):!1,onPointerDownOutside:f=>{!t||Me.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!Me.isTopMostLayer(t)||(r.onPointerDownOutside?.(f),r.onInteractOutside?.(f),f.defaultPrevented||r.onDismiss?.())},onFocusOutside:f=>{r.onFocusOutside?.(f),r.onInteractOutside?.(f),f.defaultPrevented||r.onDismiss?.()}},()=>t),Jl({ownerDocument:()=>Ge(t),onEscapeKeyDown:f=>{!t||!Me.isTopMostLayer(t)||(r.onEscapeKeyDown?.(f),!f.defaultPrevented&&r.onDismiss&&(f.preventDefault(),r.onDismiss()))}}),Yt(()=>{if(!t)return;Me.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});const f=n?.registerNestedLayer(t);Me.assignPointerEventToLayers(),Me.disableBodyPointerEvents(t),V(()=>{t&&(Me.removeLayer(t),f?.(),Me.assignPointerEventToLayers(),Me.restoreBodyPointerEvents(t))})}),K(Ze([()=>t,()=>r.disableOutsidePointerEvents],([f,g])=>{if(!f)return;const h=Me.find(f);h&&h.isPointerBlocking!==g&&(h.isPointerBlocking=g,Me.assignPointerEventToLayers()),g&&Me.disableBodyPointerEvents(f),V(()=>{Me.restoreBodyPointerEvents(f)})},{defer:!0}));const u={registerNestedLayer:a};return v(Zo.Provider,{value:u,get children(){return v(te,U({as:"div",ref(f){const g=Se(h=>t=h,r.ref);typeof g=="function"&&g(f)}},o))}})}function Jo(e={}){const[t,n]=Mo({value:()=>E(e.open),defaultValue:()=>!!E(e.defaultOpen),onChange:a=>e.onOpenChange?.(a)}),r=()=>{n(!0)},o=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r()}}}var Fe={};wn(Fe,{Description:()=>ko,ErrorMessage:()=>Eo,Item:()=>ri,ItemControl:()=>oi,ItemDescription:()=>ii,ItemIndicator:()=>si,ItemInput:()=>ai,ItemLabel:()=>li,Label:()=>ci,RadioGroup:()=>rc,Root:()=>ui});var ei=ye();function ti(){const e=me(ei);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}var ni=ye();function tn(){const e=me(ni);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function ri(e){const t=Zt(),n=ti(),r=`${t.generateId("item")}-${Ne()}`,o=j({id:r},e),[s,a]=Q(o,["value","disabled","onPointerDown"]),[l,i]=_(),[c,u]=_(),[f,g]=_(),[h,d]=_(),[y,p]=_(!1),m=D(()=>n.isSelectedValue(s.value)),b=D(()=>s.disabled||t.isDisabled()||!1),w=O=>{ee(O,s.onPointerDown),y()&&O.preventDefault()},x=D(()=>({...t.dataset(),"data-disabled":b()?"":void 0,"data-checked":m()?"":void 0})),S={value:()=>s.value,dataset:x,isSelected:m,isDisabled:b,inputId:l,labelId:c,descriptionId:f,inputRef:h,select:()=>n.setSelectedValue(s.value),generateId:Xt(()=>a.id),registerInput:Re(i),registerLabel:Re(u),registerDescription:Re(g),setIsFocused:p,setInputRef:d};return v(ni.Provider,{value:S,get children(){return v(te,U({as:"div",role:"group",onPointerDown:w},x,a))}})}function oi(e){const t=tn(),n=j({id:t.generateId("control")},e),[r,o]=Q(n,["onClick","onKeyDown"]);return v(te,U({as:"div",onClick:l=>{ee(l,r.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:l=>{ee(l,r.onKeyDown),l.key===jn.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),o))}function ii(e){const t=tn(),n=j({id:t.generateId("description")},e);return K(()=>V(t.registerDescription(n.id))),v(te,U({as:"div"},()=>t.dataset(),n))}function si(e){const t=tn(),n=j({id:t.generateId("indicator")},e),[r,o]=Q(n,["ref","forceMount"]),[s,a]=_(),{present:l}=_o({show:()=>r.forceMount||t.isSelected(),element:()=>s()??null});return v(R,{get when(){return l()},get children(){return v(te,U({as:"div",ref(i){const c=Se(a,r.ref);typeof c=="function"&&c(i)}},()=>t.dataset(),o))}})}function ai(e){const t=Zt(),n=ti(),r=tn(),o=j({id:r.generateId("input")},e),[s,a]=Q(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),l=()=>[s["aria-labelledby"],r.labelId(),s["aria-labelledby"]!=null&&a["aria-label"]!=null?a.id:void 0].filter(Boolean).join(" ")||void 0,i=()=>[s["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[c,u]=_(!1),f=d=>{if(ee(d,s.onChange),d.stopPropagation(),!c()){n.setSelectedValue(r.value());const y=d.target;y.checked=r.isSelected()}u(!1)},g=d=>{ee(d,s.onFocus),r.setIsFocused(!0)},h=d=>{ee(d,s.onBlur),r.setIsFocused(!1)};return K(Ze([()=>r.isSelected(),()=>r.value()],d=>{if(!d[0]&&d[1]===r.value())return;u(!0);const y=r.inputRef();y?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),y?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),K(()=>V(r.registerInput(a.id))),v(te,U({as:"input",ref(d){const y=Se(r.setInputRef,s.ref);typeof y=="function"&&y(d)},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return mn({...$o},s.style)},get"aria-labelledby"(){return l()},get"aria-describedby"(){return i()},onChange:f,onFocus:g,onBlur:h},()=>r.dataset(),a))}function li(e){const t=tn(),n=j({id:t.generateId("label")},e);return K(()=>V(t.registerLabel(n.id))),v(te,U({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function ci(e){return v(fa,U({as:"span"},e))}function ui(e){let t;const n=`radiogroup-${Ne()}`,r=j({id:n,orientation:"vertical"},e),[o,s,a]=Q(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],ua),[l,i]=Jt({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:d=>o.onChange?.(d)}),{formControlContext:c}=da(s);ga(()=>t,()=>i(o.defaultValue??""));const u=()=>c.getAriaLabelledBy(E(s.id),a["aria-label"],o["aria-labelledby"]),f=()=>c.getAriaDescribedBy(o["aria-describedby"]),g=d=>d===l(),h={ariaDescribedBy:f,isSelectedValue:g,setSelectedValue:d=>{if(!(c.isReadOnly()||c.isDisabled())&&(i(d),t))for(const y of t.querySelectorAll("[type='radio']")){const p=y;p.checked=g(p.value)}}};return v(So.Provider,{value:c,get children(){return v(ei.Provider,{value:h,get children(){return v(te,U({as:"div",ref(d){const y=Se(p=>t=p,o.ref);typeof y=="function"&&y(d)},role:"radiogroup",get id(){return E(s.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return u()},get"aria-describedby"(){return f()}},()=>c.dataset(),a))}})}})}var rc=Object.assign(ui,{Description:ko,ErrorMessage:Eo,Item:ri,ItemControl:oi,ItemDescription:ii,ItemIndicator:si,ItemInput:ai,ItemLabel:li,Label:ci}),oc=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){const n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){const o=this.collection().getItem(r);if(o){const s=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(s,e)===0)return r}r=this.getKeyBelow(r)}}};function ic(e,t,n){const r=Oa({usage:"search",sensitivity:"base"}),o=D(()=>{const s=E(e.keyboardDelegate);return s||new oc(e.collection,t,r)});return Ba({selectionManager:()=>E(e.selectionManager),keyboardDelegate:o,autoFocus:()=>E(e.autoFocus),deferAutoFocus:()=>E(e.deferAutoFocus),shouldFocusWrap:()=>E(e.shouldFocusWrap),disallowEmptySelection:()=>E(e.disallowEmptySelection),selectOnFocus:()=>E(e.selectOnFocus),disallowTypeAhead:()=>E(e.disallowTypeAhead),shouldUseVirtualFocus:()=>E(e.shouldUseVirtualFocus),allowsTabNavigation:()=>E(e.allowsTabNavigation),isVirtualized:()=>E(e.isVirtualized),scrollToKey:s=>E(e.scrollToKey)?.(s),orientation:()=>E(e.orientation)},t)}var Pn="focusScope.autoFocusOnMount",Tn="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},Xr={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=qn(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=qn(this.stack,e),this.active()?.resume()}};function sc(e,t){const[n,r]=_(!1),o={pause(){r(!0)},resume(){r(!1)}};let s=null;const a=d=>e.onMountAutoFocus?.(d),l=d=>e.onUnmountAutoFocus?.(d),i=()=>Ge(t()),c=()=>{const d=i().createElement("span");return d.setAttribute("data-focus-trap",""),d.tabIndex=0,Object.assign(d.style,$o),d},u=()=>{const d=t();return d?xo(d,!0).filter(y=>!y.hasAttribute("data-focus-trap")):[]},f=()=>{const d=u();return d.length>0?d[0]:null},g=()=>{const d=u();return d.length>0?d[d.length-1]:null},h=()=>{const d=t();if(!d)return!1;const y=Vt(d);return!y||_e(d,y)?!1:Co(y)};K(()=>{const d=t();if(!d)return;Xr.add(o);const y=Vt(d);if(!_e(d,y)){const m=new CustomEvent(Pn,Yr);d.addEventListener(Pn,a),d.dispatchEvent(m),m.defaultPrevented||setTimeout(()=>{be(f()),Vt(d)===y&&be(d)},0)}V(()=>{d.removeEventListener(Pn,a),setTimeout(()=>{const m=new CustomEvent(Tn,Yr);h()&&m.preventDefault(),d.addEventListener(Tn,l),d.dispatchEvent(m),m.defaultPrevented||be(y??i().body),d.removeEventListener(Tn,l),Xr.remove(o)},0)})}),K(()=>{const d=t();if(!d||!E(e.trapFocus)||n())return;const y=m=>{const b=m.target;b?.closest(`[${dn}]`)||(_e(d,b)?s=b:be(s))},p=m=>{const w=m.relatedTarget??Vt(d);w?.closest(`[${dn}]`)||_e(d,w)||be(s)};i().addEventListener("focusin",y),i().addEventListener("focusout",p),V(()=>{i().removeEventListener("focusin",y),i().removeEventListener("focusout",p)})}),K(()=>{const d=t();if(!d||!E(e.trapFocus)||n())return;const y=c();d.insertAdjacentElement("afterbegin",y);const p=c();d.insertAdjacentElement("beforeend",p);function m(w){const x=f(),S=g();w.relatedTarget===x?be(S):be(x)}y.addEventListener("focusin",m),p.addEventListener("focusin",m);const b=new MutationObserver(w=>{for(const x of w)x.previousSibling===p&&(p.remove(),d.insertAdjacentElement("beforeend",p)),x.nextSibling===y&&(y.remove(),d.insertAdjacentElement("afterbegin",y))});b.observe(d,{childList:!0,subtree:!1}),V(()=>{y.removeEventListener("focusin",m),p.removeEventListener("focusin",m),y.remove(),p.remove(),b.disconnect()})})}var ac="data-live-announcer";function lc(e){K(()=>{E(e.isDisabled)||V(cc(E(e.targets),E(e.root)))})}var zt=new WeakMap,qe=[];function cc(e,t=document.body){const n=new Set(e),r=new Set,o=i=>{for(const g of i.querySelectorAll(`[${ac}], [${dn}]`))n.add(g);const c=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const h of n)if(g.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(i);if(f===NodeFilter.FILTER_ACCEPT&&s(i),f!==NodeFilter.FILTER_REJECT){let g=u.nextNode();for(;g!=null;)s(g),g=u.nextNode()}},s=i=>{const c=zt.get(i)??0;i.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&i.setAttribute("aria-hidden","true"),r.add(i),zt.set(i,c+1))};qe.length&&qe[qe.length-1].disconnect(),o(t);const a=new MutationObserver(i=>{for(const c of i)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(u=>u.contains(c.target))){for(const u of c.removedNodes)u instanceof Element&&(n.delete(u),r.delete(u));for(const u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?n.add(u):u instanceof Element&&o(u)}});a.observe(t,{childList:!0,subtree:!0});const l={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return qe.push(l),()=>{a.disconnect();for(const i of r){const c=zt.get(i);if(c==null)return;c===1?(i.removeAttribute("aria-hidden"),zt.delete(i)):zt.set(i,c-1)}l===qe[qe.length-1]?(qe.pop(),qe.length&&qe[qe.length-1].observe()):qe.splice(qe.indexOf(l),1)}}var an=new Map,uc=e=>{K(()=>{const t=pe(e.style)??{},n=pe(e.properties)??[],r={};for(const s in t)r[s]=e.element.style[s];const o=an.get(e.key);o?o.activeCount++:an.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(s=>s.key)}),Object.assign(e.element.style,e.style);for(const s of n)e.element.style.setProperty(s.key,s.value);V(()=>{const s=an.get(e.key);if(s){if(s.activeCount!==1){s.activeCount--;return}an.delete(e.key);for(const[a,l]of Object.entries(s.originalStyles))e.element.style[a]=l;for(const a of s.properties)e.element.style.removeProperty(a);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},Zr=uc,dc=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},fc=(e,t)=>{const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},gc=(e,t,n)=>{const r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1;let o=e,s=0,a=0,l=!1;do{const[i,c,u]=dc(o,t),f=u-i-r*c;(c!==0||f!==0)&&fc(o,t)&&(s+=f,a+=c),o===(n??document.documentElement)?l=!0:o=o._$host??o.parentElement}while(o&&!l);return[s,a]},[Jr,eo]=_([]),hc=e=>Jr().indexOf(e)===Jr().length-1,vc=e=>{const t=U({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=Ne();let r=[0,0],o=null,s=null;K(()=>{pe(t.enabled)&&(eo(c=>[...c,n]),V(()=>{eo(c=>c.filter(u=>u!==n))}))}),K(()=>{if(!pe(t.enabled)||!pe(t.hideScrollbar))return;const{body:c}=document,u=window.innerWidth-c.offsetWidth;if(pe(t.preventScrollbarShift)){const f={overflow:"hidden"},g=[];u>0&&(pe(t.preventScrollbarShiftMode)==="padding"?f.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${u}px)`:f.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${u}px)`,g.push({key:"--scrollbar-width",value:`${u}px`}));const h=window.scrollY,d=window.scrollX;Zr({key:"prevent-scroll",element:c,style:f,properties:g,cleanup:()=>{pe(t.restoreScrollPosition)&&u>0&&window.scrollTo(d,h)}})}else Zr({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),K(()=>{!hc(n)||!pe(t.enabled)||(document.addEventListener("wheel",l,{passive:!1}),document.addEventListener("touchstart",a,{passive:!1}),document.addEventListener("touchmove",i,{passive:!1}),V(()=>{document.removeEventListener("wheel",l),document.removeEventListener("touchstart",a),document.removeEventListener("touchmove",i)}))});const a=c=>{r=to(c),o=null,s=null},l=c=>{const u=c.target,f=pe(t.element),g=yc(c),h=Math.abs(g[0])>Math.abs(g[1])?"x":"y",d=h==="x"?g[0]:g[1],y=no(u,h,d,f);let p;f&&Nn(f,u)?p=!y:p=!0,p&&c.cancelable&&c.preventDefault()},i=c=>{const u=pe(t.element),f=c.target;let g;if(c.touches.length===2)g=!pe(t.allowPinchZoom);else{if(o==null||s===null){const h=to(c).map((y,p)=>r[p]-y),d=Math.abs(h[0])>Math.abs(h[1])?"x":"y";o=d,s=d==="x"?h[0]:h[1]}if(f.type==="range")g=!1;else{const h=no(f,o,s,u);u&&Nn(u,f)?g=!h:g=!0}}g&&c.cancelable&&c.preventDefault()}},yc=e=>[e.deltaX,e.deltaY],to=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],no=(e,t,n,r)=>{const o=r!==null&&Nn(r,e),[s,a]=gc(e,t,o?r:void 0);return!(n>0&&Math.abs(s)<=1||n<0&&Math.abs(a)<1)},Nn=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},mc=vc,pc=mc,di=ye();function fi(){return me(di)}function tt(){const e=fi();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var gi=ye();function ar(){const e=me(gi);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var hi=ye();function je(){const e=me(hi);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function lr(e){let t;const n=je(),r=tt(),o=j({id:n.generateId(`item-${Ne()}`)},e),[s,a]=Q(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[l,i]=_(),[c,u]=_(),[f,g]=_(),h=()=>r.listState().selectionManager(),d=()=>a.id,y=()=>h().focusedKey()===d(),p=()=>{s.onSelect?.(),s.closeOnSelect&&setTimeout(()=>{r.close(!0)})};Ea({getItem:()=>({ref:()=>t,type:"item",key:d(),textValue:s.textValue??f()?.textContent??t?.textContent??"",disabled:s.disabled??!1})});const m=Fo({key:d,selectionManager:h,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>s.disabled},()=>t),b=C=>{ee(C,s.onPointerMove),C.pointerType==="mouse"&&(s.disabled?r.onItemLeave(C):(r.onItemEnter(C),C.defaultPrevented||(be(C.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(d()))))},w=C=>{ee(C,s.onPointerLeave),C.pointerType==="mouse"&&r.onItemLeave(C)},x=C=>{ee(C,s.onPointerUp),!s.disabled&&C.button===0&&p()},S=C=>{if(ee(C,s.onKeyDown),!C.repeat&&!s.disabled)switch(C.key){case"Enter":case" ":p();break}},O=D(()=>{if(s.indeterminate)return"mixed";if(s.checked!=null)return s.checked}),P=D(()=>({"data-indeterminate":s.indeterminate?"":void 0,"data-checked":s.checked&&!s.indeterminate?"":void 0,"data-disabled":s.disabled?"":void 0,"data-highlighted":y()?"":void 0})),L={isChecked:()=>s.checked,dataset:P,setLabelRef:g,generateId:Xt(()=>a.id),registerLabel:Re(i),registerDescription:Re(u)};return v(gi.Provider,{value:L,get children(){return v(te,U({as:"div",ref(C){const A=Se(G=>t=G,s.ref);typeof A=="function"&&A(C)},get tabIndex(){return m.tabIndex()},get"aria-checked"(){return O()},get"aria-disabled"(){return s.disabled},get"aria-labelledby"(){return l()},get"aria-describedby"(){return c()},get"data-key"(){return m.dataKey()},get onPointerDown(){return he([s.onPointerDown,m.onPointerDown])},get onPointerUp(){return he([x,m.onPointerUp])},get onClick(){return he([s.onClick,m.onClick])},get onKeyDown(){return he([S,m.onKeyDown])},get onMouseDown(){return he([s.onMouseDown,m.onMouseDown])},get onFocus(){return he([s.onFocus,m.onFocus])},onPointerMove:b,onPointerLeave:w},P,a))}})}function vi(e){const t=j({closeOnSelect:!1},e),[n,r]=Q(t,["checked","defaultChecked","onChange","onSelect"]),o=ma({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:a=>n.onChange?.(a),isDisabled:()=>r.disabled});return v(lr,U({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle()}},r))}var bc=ye();function $n(){return me(bc)}var Qt={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Qt.next(e==="ltr"?"rtl":"ltr",t)},ro={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};function yi(e){const t=je(),n=tt(),r=$n(),{direction:o}=dt(),s=j({id:t.generateId("trigger")},e),[a,l]=Q(s,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]);let i=()=>t.value();r!==void 0&&(i=()=>t.value()??a.id,r.lastValue()===void 0&&r.setLastValue(i));const c=bn(()=>n.triggerRef(),()=>"button"),u=D(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);K(Ze(()=>r?.value(),m=>{u()&&m===i()&&n.triggerRef()?.focus()}));const f=()=>{r!==void 0?n.isOpen()?r.value()===i()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},g=m=>{ee(m,a.onPointerDown),m.currentTarget.dataset.pointerType=m.pointerType,!a.disabled&&m.pointerType!=="touch"&&m.button===0&&f()},h=m=>{ee(m,a.onClick),a.disabled||m.currentTarget.dataset.pointerType==="touch"&&f()},d=m=>{if(ee(m,a.onKeyDown),!a.disabled){if(u())switch(m.key){case"Enter":case" ":return}switch(m.key){case"Enter":case" ":case ro.first(t.orientation()):m.stopPropagation(),m.preventDefault(),ca(m.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(i);break;case ro.last(t.orientation()):m.stopPropagation(),m.preventDefault(),n.open("last");break;case Qt.next(o(),t.orientation()):if(r===void 0)break;m.stopPropagation(),m.preventDefault(),r.nextMenu();break;case Qt.previous(o(),t.orientation()):if(r===void 0)break;m.stopPropagation(),m.preventDefault(),r.previousMenu();break}}},y=m=>{ee(m,a.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!a.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(i)},p=m=>{ee(m,a.onFocus),r!==void 0&&m.currentTarget.dataset.pointerType!=="touch"&&r.setValue(i)};return K(()=>V(n.registerTriggerId(a.id))),v(Zn,U({ref(m){const b=Se(n.setTriggerRef,a.ref);typeof b=="function"&&b(m)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return a.id},get disabled(){return a.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return D(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return i()!==void 0&&r?.value()===i()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===i()||r.lastValue()===i()?0:-1:void 0},onPointerDown:g,onMouseOver:y,onClick:h,onKeyDown:d,onFocus:p,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),l))}var wc=ye();function mi(){return me(wc)}function pi(e){let t;const n=je(),r=tt(),o=$n(),s=mi(),{direction:a}=dt(),l=j({id:n.generateId(`content-${Ne()}`)},e),[i,c]=Q(l,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let u=0;const f=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),g=ic({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);sc({trapFocus:()=>f()&&r.isOpen(),onMountAutoFocus:w=>{o===void 0&&i.onOpenAutoFocus?.(w)},onUnmountAutoFocus:i.onCloseAutoFocus},()=>t);const h=w=>{if(_e(w.currentTarget,w.target)&&(w.key==="Tab"&&r.isOpen()&&w.preventDefault(),o!==void 0&&w.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(w.key){case Qt.next(a(),n.orientation()):w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case Qt.previous(a(),n.orientation()):if(w.currentTarget.hasAttribute("data-closed"))break;w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},d=w=>{i.onEscapeKeyDown?.(w),o?.setAutoFocusMenu(!1),r.close(!0)},y=w=>{i.onFocusOutside?.(w),n.isModal()&&w.preventDefault()},p=w=>{ee(w,i.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},m=w=>{if(ee(w,i.onPointerMove),w.pointerType!=="mouse")return;const x=w.target,S=u!==w.clientX;_e(w.currentTarget,x)&&S&&(r.setPointerDir(w.clientX>u?"right":"left"),u=w.clientX)};K(()=>V(r.registerContentId(i.id)));const b={ref:Se(w=>{r.setContentRef(w),t=w},i.ref),role:"menu",get id(){return i.id},get tabIndex(){return g.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:he([i.onKeyDown,g.onKeyDown,h]),onMouseDown:he([i.onMouseDown,g.onMouseDown]),onFocusIn:he([i.onFocusIn,g.onFocusIn]),onFocusOut:he([i.onFocusOut,g.onFocusOut]),onPointerEnter:p,onPointerMove:m,get"data-orientation"(){return n.orientation()}};return v(R,{get when(){return r.contentPresent()},get children(){return v(R,{get when(){return s===void 0||r.parentMenuContext()!=null},get fallback(){return v(te,U({as:"div"},()=>r.dataset(),b,c))},get children(){return v(Xo.Positioner,{get children(){return v(nc,U({get disableOutsidePointerEvents(){return D(()=>!!f())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return mn({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},i.style)},onEscapeKeyDown:d,onFocusOutside:y,get onDismiss(){return r.close}},()=>r.dataset(),b,c))}})}})}})}function xc(e){let t;const n=je(),r=tt(),[o,s]=Q(e,["ref"]);return pc({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),v(pi,U({ref(a){const l=Se(i=>{t=i},o.ref);typeof l=="function"&&l(a)}},s))}var bi=ye();function Cc(){const e=me(bi);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function cr(e){const t=je(),n=j({id:t.generateId(`group-${Ne()}`)},e),[r,o]=_(),s={generateId:Xt(()=>n.id),registerLabelId:Re(o)};return v(bi.Provider,{value:s,get children(){return v(te,U({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function wi(e){const t=Cc(),n=j({id:t.generateId("label")},e),[r,o]=Q(n,["id"]);return K(()=>V(t.registerLabelId(r.id))),v(te,U({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function xi(e){const t=tt(),n=j({children:"▼"},e);return v(te,U({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Ci(e){return v(lr,U({role:"menuitem",closeOnSelect:!0},e))}function $i(e){const t=ar(),n=j({id:t.generateId("description")},e),[r,o]=Q(n,["id"]);return K(()=>V(t.registerDescription(r.id))),v(te,U({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function Si(e){const t=ar(),n=j({id:t.generateId("indicator")},e),[r,o]=Q(n,["forceMount"]);return v(R,{get when(){return r.forceMount||t.isChecked()},get children(){return v(te,U({as:"div"},()=>t.dataset(),o))}})}function ki(e){const t=ar(),n=j({id:t.generateId("label")},e),[r,o]=Q(n,["ref","id"]);return K(()=>V(t.registerLabel(r.id))),v(te,U({as:"div",ref(s){const a=Se(t.setLabelRef,r.ref);typeof a=="function"&&a(s)},get id(){return r.id}},()=>t.dataset(),o))}function Ei(e){const t=tt();return v(R,{get when(){return t.contentPresent()},get children(){return v(ts,e)}})}var Mi=ye();function $c(){const e=me(Mi);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Ii(e){const n=je().generateId(`radiogroup-${Ne()}`),r=j({id:n},e),[o,s]=Q(r,["value","defaultValue","onChange","disabled"]),[a,l]=Jt({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>o.onChange?.(c)}),i={isDisabled:()=>o.disabled,isSelectedValue:c=>c===a(),setSelectedValue:l};return v(Mi.Provider,{value:i,get children(){return v(cr,s)}})}function Di(e){const t=$c(),n=j({closeOnSelect:!1},e),[r,o]=Q(n,["value","onSelect"]);return v(lr,U({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},o))}function Sc(e,t,n){const r=e.split("-")[0],o=n.getBoundingClientRect(),s=[],a=t.clientX,l=t.clientY;switch(r){case"top":s.push([a,l+5]),s.push([o.left,o.bottom]),s.push([o.left,o.top]),s.push([o.right,o.top]),s.push([o.right,o.bottom]);break;case"right":s.push([a-5,l]),s.push([o.left,o.top]),s.push([o.right,o.top]),s.push([o.right,o.bottom]),s.push([o.left,o.bottom]);break;case"bottom":s.push([a,l-5]),s.push([o.right,o.top]),s.push([o.right,o.bottom]),s.push([o.left,o.bottom]),s.push([o.left,o.top]);break;case"left":s.push([a+5,l]),s.push([o.right,o.bottom]),s.push([o.left,o.bottom]),s.push([o.left,o.top]),s.push([o.right,o.top]);break}return s}function kc(e,t){return t?la([e.clientX,e.clientY],t):!1}function Pi(e){const t=je(),n=Do(),r=fi(),o=$n(),s=mi(),a=j({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[l,i]=Q(a,["open","defaultOpen","onOpenChange"]);let c=0,u=null,f="right";const[g,h]=_(),[d,y]=_(),[p,m]=_(),[b,w]=_(),[x,S]=_(!0),[O,P]=_(i.placement),[L,C]=_([]),[A,G]=_([]),{DomCollectionProvider:N}=ka({items:A,onItemsChange:G}),ne=Jo({open:()=>l.open,defaultOpen:()=>l.defaultOpen,onOpenChange:H=>l.onOpenChange?.(H)}),{present:Z}=_o({show:()=>t.forceMount()||ne.isOpen(),element:()=>b()??null}),ue=Va({selectionMode:"none",dataSource:A}),re=H=>{S(H),ne.open()},oe=(H=!1)=>{ne.close(),H&&r&&r.close(!0)},se=H=>{S(H),ne.toggle()},ae=()=>{const H=b();H&&(be(H),ue.selectionManager().setFocused(!0),ue.selectionManager().setFocusedKey(void 0))},we=()=>{s!=null?setTimeout(()=>ae()):ae()},Te=H=>{C(Ae=>[...Ae,H]);const We=r?.registerNestedMenu(H);return()=>{C(Ae=>qn(Ae,H)),We?.()}},ve=H=>f===u?.side&&kc(H,u?.area),Ee=H=>{ve(H)&&H.preventDefault()},M=H=>{ve(H)||we()},de=H=>{ve(H)&&H.preventDefault()};lc({isDisabled:()=>!(r==null&&ne.isOpen()&&t.isModal()),targets:()=>[b(),...L()].filter(Boolean)}),K(()=>{const H=b();if(!H||!r)return;const We=r.registerNestedMenu(H);V(()=>{We()})}),K(()=>{r===void 0&&o?.registerMenu(t.value(),[b(),...L()])}),K(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(p()?.focus(),o.autoFocusMenu()&&re(!0)):oe())}),K(()=>{r!==void 0||o===void 0||ne.isOpen()&&o.setValue(t.value())}),V(()=>{r===void 0&&o?.unregisterMenu(t.value())});const wt={dataset:D(()=>({"data-expanded":ne.isOpen()?"":void 0,"data-closed":ne.isOpen()?void 0:""})),isOpen:ne.isOpen,contentPresent:Z,nestedMenus:L,currentPlacement:O,pointerGraceTimeoutId:()=>c,autoFocus:x,listState:()=>ue,parentMenuContext:()=>r,triggerRef:p,contentRef:b,triggerId:g,contentId:d,setTriggerRef:m,setContentRef:w,open:re,close:oe,toggle:se,focusContent:we,onItemEnter:Ee,onItemLeave:M,onTriggerLeave:de,setPointerDir:H=>f=H,setPointerGraceTimeoutId:H=>c=H,setPointerGraceIntent:H=>u=H,registerNestedMenu:Te,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:Re(h),registerContentId:Re(y)};return v(N,{get children(){return v(di.Provider,{value:wt,get children(){return v(R,{when:s===void 0,get fallback(){return i.children},get children(){return v(Xo,U({anchorRef:p,contentRef:b,onCurrentPlacementChange:P},i))}})}})}})}function Ti(e){const{direction:t}=dt();return v(Pi,U({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Ec={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};function Ai(e){const t=tt(),n=je(),[r,o]=Q(e,["onFocusOutside","onKeyDown"]),{direction:s}=dt();return v(pi,U({onOpenAutoFocus:u=>{u.preventDefault()},onCloseAutoFocus:u=>{u.preventDefault()},onFocusOutside:u=>{r.onFocusOutside?.(u);const f=u.target;_e(t.triggerRef(),f)||t.close()},onKeyDown:u=>{ee(u,r.onKeyDown);const f=_e(u.currentTarget,u.target),g=Ec.close(s(),n.orientation()).includes(u.key),h=t.parentMenuContext()!=null;f&&g&&h&&(t.close(),be(t.triggerRef()))}},o))}var oo=["Enter"," "],Mc={open:(e,t)=>e==="ltr"?[...oo,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...oo,t==="horizontal"?"ArrowLeft":"ArrowUp"]};function Li(e){let t;const n=je(),r=tt(),o=j({id:n.generateId(`sub-trigger-${Ne()}`)},e),[s,a]=Q(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let l=null;const i=()=>{l&&window.clearTimeout(l),l=null},{direction:c}=dt(),u=()=>s.id,f=()=>{const w=r.parentMenuContext();if(w==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return w.listState().selectionManager()},g=()=>r.listState().collection(),h=()=>f().focusedKey()===u(),d=Fo({key:u,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>s.disabled},()=>t),y=w=>{ee(w,s.onClick),!r.isOpen()&&!s.disabled&&r.open(!0)},p=w=>{if(ee(w,s.onPointerMove),w.pointerType!=="mouse")return;const x=r.parentMenuContext();if(x?.onItemEnter(w),!w.defaultPrevented){if(s.disabled){x?.onItemLeave(w);return}!r.isOpen()&&!l&&(r.parentMenuContext()?.setPointerGraceIntent(null),l=window.setTimeout(()=>{r.open(!1),i()},100)),x?.onItemEnter(w),w.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),be(w.currentTarget),x?.listState().selectionManager().setFocused(!0),x?.listState().selectionManager().setFocusedKey(u()))}},m=w=>{if(ee(w,s.onPointerLeave),w.pointerType!=="mouse")return;i();const x=r.parentMenuContext(),S=r.contentRef();if(S){x?.setPointerGraceIntent({area:Sc(r.currentPlacement(),w,S),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(x?.pointerGraceTimeoutId());const O=window.setTimeout(()=>{x?.setPointerGraceIntent(null)},300);x?.setPointerGraceTimeoutId(O)}else{if(x?.onTriggerLeave(w),w.defaultPrevented)return;x?.setPointerGraceIntent(null)}x?.onItemLeave(w)},b=w=>{ee(w,s.onKeyDown),!w.repeat&&(s.disabled||Mc.open(c(),n.orientation()).includes(w.key)&&(w.stopPropagation(),w.preventDefault(),f().setFocused(!1),f().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(g().getFirstKey())))};return K(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const w=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:u(),textValue:s.textValue??t?.textContent??"",disabled:s.disabled??!1});V(w)}),K(Ze(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),w=>{V(()=>{window.clearTimeout(w),r.parentMenuContext()?.setPointerGraceIntent(null)})})),K(()=>V(r.registerTriggerId(s.id))),V(()=>{i()}),v(te,U({as:"div",ref(w){const x=Se(S=>{r.setTriggerRef(S),t=S},s.ref);typeof x=="function"&&x(w)},get id(){return s.id},role:"menuitem",get tabIndex(){return d.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return D(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return s.disabled},get"data-key"(){return d.dataKey()},get"data-highlighted"(){return h()?"":void 0},get"data-disabled"(){return s.disabled?"":void 0},get onPointerDown(){return he([s.onPointerDown,d.onPointerDown])},get onPointerUp(){return he([s.onPointerUp,d.onPointerUp])},get onClick(){return he([y,d.onClick])},get onKeyDown(){return he([b,d.onKeyDown])},get onMouseDown(){return he([s.onMouseDown,d.onMouseDown])},get onFocus(){return he([s.onFocus,d.onFocus])},onPointerMove:p,onPointerLeave:m},()=>r.dataset(),a))}function Ic(e){const t=$n(),n=`menu-${Ne()}`,r=j({id:n,modal:!0},e),[o,s]=Q(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),a=Jo({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:i=>o.onOpenChange?.(i)}),l={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??l.isModal(),forceMount:()=>o.forceMount??!1,generateId:Xt(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return v(hi.Provider,{value:l,get children(){return v(Pi,U({get open(){return a.isOpen()},get onOpenChange(){return a.setIsOpen}},s))}})}var Dc={};wn(Dc,{Root:()=>Sn,Separator:()=>Pc});function Sn(e){let t;const n=j({orientation:"horizontal"},e),[r,o]=Q(n,["ref","orientation"]),s=bn(()=>t,()=>"hr");return v(te,U({as:"hr",ref(a){const l=Se(i=>t=i,r.ref);typeof l=="function"&&l(a)},get role(){return s()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}var Pc=Sn,fe={};wn(fe,{Arrow:()=>sr,CheckboxItem:()=>vi,Content:()=>Oi,DropdownMenu:()=>Tc,Group:()=>cr,GroupLabel:()=>wi,Icon:()=>xi,Item:()=>Ci,ItemDescription:()=>$i,ItemIndicator:()=>Si,ItemLabel:()=>ki,Portal:()=>Ei,RadioGroup:()=>Ii,RadioItem:()=>Di,Root:()=>qi,Separator:()=>Sn,Sub:()=>Ti,SubContent:()=>Ai,SubTrigger:()=>Li,Trigger:()=>yi});function Oi(e){const t=je(),n=tt(),[r,o]=Q(e,["onCloseAutoFocus","onInteractOutside"]);let s=!1;return v(xc,U({onCloseAutoFocus:i=>{r.onCloseAutoFocus?.(i),s||be(n.triggerRef()),s=!1,i.preventDefault()},onInteractOutside:i=>{r.onInteractOutside?.(i),(!t.isModal()||i.detail.isContextMenu)&&(s=!0)}},o))}function qi(e){const t=`dropdownmenu-${Ne()}`,n=j({id:t},e);return v(Ic,n)}var Tc=Object.assign(qi,{Arrow:sr,CheckboxItem:vi,Content:Oi,Group:cr,GroupLabel:wi,Icon:xi,Item:Ci,ItemDescription:$i,ItemIndicator:Si,ItemLabel:ki,Portal:Ei,RadioGroup:Ii,RadioItem:Di,Separator:Sn,Sub:Ti,SubContent:Ai,SubTrigger:Li,Trigger:yi}),$={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{90:"e5",80:"cc"},font:{size:{xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)"},weight:{medium:"500",semibold:"600",bold:"700"}},border:{radius:{xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",full:"9999px"}},size:{.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",14:"calc(var(--tsqd-font-size) * 3.5)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"}},Ac=F('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Lc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Oc=F('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),qc=F('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),ur=F('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Fc=F('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),_c=F('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Rc=F('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Kc=F('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),zc=F('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),Bc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Nc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Vc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),Hc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Fi=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Gc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Uc=F('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),jc=F('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Wc=F('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Qc=F('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),Yc=F('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Xc=F('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>');function Zc(){return Ac()}function _i(){return Lc()}function ln(){return Oc()}function io(){return qc()}function so(){return ur()}function Jc(){return(()=>{var e=ur();return e.style.setProperty("transform","rotate(90deg)"),e})()}function eu(){return(()=>{var e=ur();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function tu(){return Fc()}function nu(){return _c()}function ru(){return Rc()}function ou(){return Kc()}function iu(){return zc()}function su(){return Bc()}function au(){return Nc()}function lu(){return Vc()}function cu(){return Hc()}function uu(e){return(()=>{var t=Fi(),n=t.firstChild;return B(()=>Ce(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function du(){return Gc()}function fu(){return Uc()}function gu(e){return[v(R,{get when(){return e.checked},get children(){var t=Fi(),n=t.firstChild;return B(()=>Ce(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),v(R,{get when(){return!e.checked},get children(){var t=jc(),n=t.firstChild;return B(()=>Ce(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function hu(){return Wc()}function vu(){return Qc()}function yu(){return Yc()}function mu(){return Xc()}var pu=F('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),bu=F('<button title="Copy object to clipboard">'),wu=F('<button title="Remove all items"aria-label="Remove all items">'),xu=F('<button title="Delete item"aria-label="Delete item">'),Cu=F('<button title="Toggle value"aria-label="Toggle value">'),$u=F('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Bt=F("<div>"),Su=F("<div><button> <span></span> <span> "),ku=F("<input>"),ao=F("<span>"),Eu=F("<div><span>:"),Mu=F("<div><div><button> [<!>...<!>]");function Iu(e,t){let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}var lo=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?At(n):Tt(n));return(()=>{var o=pu();return B(()=>I(o,q(r().expander,n`
|
|
2
|
+
transform: rotate(${e.expanded?90:0}deg);
|
|
3
|
+
`,e.expanded&&n`
|
|
4
|
+
& svg {
|
|
5
|
+
top: -1px;
|
|
6
|
+
}
|
|
7
|
+
`))),o})()},Du=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?At(n):Tt(n)),[o,s]=_("NoCopy");return(()=>{var a=bu();return Xi(a,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(Zi(e.value)).then(()=>{s("SuccessCopy"),setTimeout(()=>{s("NoCopy")},1500)},l=>{s("ErrorCopy"),setTimeout(()=>{s("NoCopy")},1500)})}:void 0,!0),k(a,v(Ji,{get children(){return[v(En,{get when(){return o()==="NoCopy"},get children(){return v(lu,{})}}),v(En,{get when(){return o()==="SuccessCopy"},get children(){return v(uu,{get theme(){return t()}})}}),v(En,{get when(){return o()==="ErrorCopy"},get children(){return v(du,{})}})]}})),B(l=>{var i=r().actionButton,c=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return i!==l.e&&I(a,l.e=i),c!==l.t&&Ce(a,"aria-label",l.t=c),l},{e:void 0,t:void 0}),a})()},Pu=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?At(n):Tt(n)),o=z().client;return(()=>{var s=wu();return s.$$click=()=>{const a=e.activeQuery.state.data,l=Gn(a,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,l)},k(s,v(fu,{})),B(()=>I(s,r().actionButton)),s})()},co=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?At(n):Tt(n)),o=z().client;return(()=>{var s=xu();return s.$$click=()=>{const a=e.activeQuery.state.data,l=es(a,e.dataPath);o.setQueryData(e.activeQuery.queryKey,l)},k(s,v(_i,{})),B(()=>I(s,q(r().actionButton))),s})()},Tu=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?At(n):Tt(n)),o=z().client;return(()=>{var s=Cu();return s.$$click=()=>{const a=e.activeQuery.state.data,l=Gn(a,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,l)},k(s,v(gu,{get theme(){return t()},get checked(){return e.value}})),B(()=>I(s,q(r().actionButton,n`
|
|
8
|
+
width: ${$.size[3.5]};
|
|
9
|
+
height: ${$.size[3.5]};
|
|
10
|
+
`))),s})()};function uo(e){return Symbol.iterator in e}function st(e){const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?At(n):Tt(n)),o=z().client,[s,a]=_((e.defaultExpanded||[]).includes(e.label)),l=()=>a(d=>!d),[i,c]=_([]),u=D(()=>Array.isArray(e.value)?e.value.map((d,y)=>({label:y.toString(),value:d})):e.value!==null&&typeof e.value=="object"&&uo(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([d,y])=>({label:d,value:y})):Array.from(e.value,(d,y)=>({label:y.toString(),value:d})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([d,y])=>({label:d,value:y})):[]),f=D(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&uo(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),g=D(()=>Iu(u(),100)),h=e.dataPath??[];return(()=>{var d=Bt();return k(d,v(R,{get when(){return g().length},get children(){return[(()=>{var y=Su(),p=y.firstChild,m=p.firstChild,b=m.nextSibling,w=b.nextSibling,x=w.nextSibling,S=x.firstChild;return p.$$click=()=>l(),k(p,v(lo,{get expanded(){return s()}}),m),k(b,()=>e.label),k(x,()=>String(f()).toLowerCase()==="iterable"?"(Iterable) ":"",S),k(x,()=>u().length,S),k(x,()=>u().length>1?"items":"item",null),k(y,v(R,{get when(){return e.editable},get children(){var O=Bt();return k(O,v(Du,{get value(){return e.value}}),null),k(O,v(R,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(co,{get activeQuery(){return e.activeQuery},dataPath:h})}}),null),k(O,v(R,{get when(){return f()==="array"&&e.activeQuery!==void 0},get children(){return v(Pu,{get activeQuery(){return e.activeQuery},dataPath:h})}}),null),k(O,v(R,{get when(){return D(()=>!!e.onEdit)()&&!Qi(e.value).meta},get children(){var P=$u();return P.$$click=()=>{e.onEdit?.()},k(P,v(cu,{})),B(()=>I(P,r().actionButton)),P}}),null),B(()=>I(O,r().actions)),O}}),null),B(O=>{var P=r().expanderButtonContainer,L=r().expanderButton,C=r().info;return P!==O.e&&I(y,O.e=P),L!==O.t&&I(p,O.t=L),C!==O.a&&I(x,O.a=C),O},{e:void 0,t:void 0,a:void 0}),y})(),v(R,{get when(){return s()},get children(){return[v(R,{get when(){return g().length===1},get children(){var y=Bt();return k(y,v(un,{get each(){return u()},by:p=>p.label,children:p=>v(st,{get defaultExpanded(){return e.defaultExpanded},get label(){return p().label},get value(){return p().value},get editable(){return e.editable},get dataPath(){return[...h,p().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return f()==="array"||f()==="Iterable"||f()==="object"}})})),B(()=>I(y,r().subEntry)),y}}),v(R,{get when(){return g().length>1},get children(){var y=Bt();return k(y,v(Yi,{get each(){return g()},children:(p,m)=>(()=>{var b=Mu(),w=b.firstChild,x=w.firstChild,S=x.firstChild,O=S.nextSibling,P=O.nextSibling,L=P.nextSibling;return L.nextSibling,x.$$click=()=>c(C=>C.includes(m)?C.filter(A=>A!==m):[...C,m]),k(x,v(lo,{get expanded(){return i().includes(m)}}),S),k(x,m*100,O),k(x,m*100+100-1,L),k(w,v(R,{get when(){return i().includes(m)},get children(){var C=Bt();return k(C,v(un,{get each(){return p()},by:A=>A.label,children:A=>v(st,{get defaultExpanded(){return e.defaultExpanded},get label(){return A().label},get value(){return A().value},get editable(){return e.editable},get dataPath(){return[...h,A().label]},get activeQuery(){return e.activeQuery}})})),B(()=>I(C,r().subEntry)),C}}),null),B(C=>{var A=r().entry,G=r().expanderButton;return A!==C.e&&I(w,C.e=A),G!==C.t&&I(x,C.t=G),C},{e:void 0,t:void 0}),b})()})),B(()=>I(y,r().subEntry)),y}})]}})]}}),null),k(d,v(R,{get when(){return g().length===0},get children(){var y=Eu(),p=y.firstChild,m=p.firstChild;return k(p,()=>e.label,m),k(y,v(R,{get when(){return D(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(f()==="string"||f()==="number"||f()==="boolean")},get fallback(){return(()=>{var b=ao();return k(b,()=>cn(e.value)),B(()=>I(b,r().value)),b})()},get children(){return[v(R,{get when(){return D(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(f()==="string"||f()==="number")},get children(){var b=ku();return b.addEventListener("change",w=>{const x=e.activeQuery.state.data,S=Gn(x,h,f()==="number"?w.target.valueAsNumber:w.target.value);o.setQueryData(e.activeQuery.queryKey,S)}),B(w=>{var x=f()==="number"?"number":"text",S=q(r().value,r().editableInput);return x!==w.e&&Ce(b,"type",w.e=x),S!==w.t&&I(b,w.t=S),w},{e:void 0,t:void 0}),B(()=>b.value=e.value),b}}),v(R,{get when(){return f()==="boolean"},get children(){var b=ao();return k(b,v(Tu,{get activeQuery(){return e.activeQuery},dataPath:h,get value(){return e.value}}),null),k(b,()=>cn(e.value),null),B(()=>I(b,q(r().value,r().actions,r().editableInput))),b}})]}}),null),k(y,v(R,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(co,{get activeQuery(){return e.activeQuery},dataPath:h})}}),null),B(b=>{var w=r().row,x=r().label;return w!==b.e&&I(y,b.e=w),x!==b.t&&I(p,b.t=x),b},{e:void 0,t:void 0}),y}}),null),B(()=>I(d,r().entry)),d})()}var Ri=(e,t)=>{const{colors:n,font:r,size:o,border:s}=$,a=(l,i)=>e==="light"?l:i;return{entry:t`
|
|
11
|
+
& * {
|
|
12
|
+
font-size: ${r.size.xs};
|
|
13
|
+
font-family:
|
|
14
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
15
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
16
|
+
}
|
|
17
|
+
position: relative;
|
|
18
|
+
outline: none;
|
|
19
|
+
word-break: break-word;
|
|
20
|
+
`,subEntry:t`
|
|
21
|
+
margin: 0 0 0 0.5em;
|
|
22
|
+
padding-left: 0.75em;
|
|
23
|
+
border-left: 2px solid ${a(n.gray[300],n.darkGray[400])};
|
|
24
|
+
/* outline: 1px solid ${n.teal[400]}; */
|
|
25
|
+
`,expander:t`
|
|
26
|
+
& path {
|
|
27
|
+
stroke: ${n.gray[400]};
|
|
28
|
+
}
|
|
29
|
+
& svg {
|
|
30
|
+
width: ${o[3]};
|
|
31
|
+
height: ${o[3]};
|
|
32
|
+
}
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
transition: all 0.1s ease;
|
|
36
|
+
/* outline: 1px solid ${n.blue[400]}; */
|
|
37
|
+
`,expanderButtonContainer:t`
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
line-height: ${o[4]};
|
|
41
|
+
min-height: ${o[4]};
|
|
42
|
+
gap: ${o[2]};
|
|
43
|
+
`,expanderButton:t`
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
color: inherit;
|
|
46
|
+
font: inherit;
|
|
47
|
+
outline: inherit;
|
|
48
|
+
height: ${o[5]};
|
|
49
|
+
background: transparent;
|
|
50
|
+
border: none;
|
|
51
|
+
padding: 0;
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: ${o[1]};
|
|
55
|
+
position: relative;
|
|
56
|
+
/* outline: 1px solid ${n.green[400]}; */
|
|
57
|
+
|
|
58
|
+
&:focus-visible {
|
|
59
|
+
border-radius: ${s.radius.xs};
|
|
60
|
+
outline: 2px solid ${n.blue[800]};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& svg {
|
|
64
|
+
position: relative;
|
|
65
|
+
left: 1px;
|
|
66
|
+
}
|
|
67
|
+
`,info:t`
|
|
68
|
+
color: ${a(n.gray[500],n.gray[500])};
|
|
69
|
+
font-size: ${r.size.xs};
|
|
70
|
+
margin-left: ${o[1]};
|
|
71
|
+
/* outline: 1px solid ${n.yellow[400]}; */
|
|
72
|
+
`,label:t`
|
|
73
|
+
color: ${a(n.gray[700],n.gray[300])};
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
`,value:t`
|
|
76
|
+
color: ${a(n.purple[600],n.purple[400])};
|
|
77
|
+
flex-grow: 1;
|
|
78
|
+
`,actions:t`
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
gap: ${o[2]};
|
|
81
|
+
align-items: center;
|
|
82
|
+
`,row:t`
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
gap: ${o[2]};
|
|
85
|
+
width: 100%;
|
|
86
|
+
margin: ${o[.25]} 0px;
|
|
87
|
+
line-height: ${o[4.5]};
|
|
88
|
+
align-items: center;
|
|
89
|
+
`,editableInput:t`
|
|
90
|
+
border: none;
|
|
91
|
+
padding: ${o[.5]} ${o[1]} ${o[.5]} ${o[1.5]};
|
|
92
|
+
flex-grow: 1;
|
|
93
|
+
border-radius: ${s.radius.xs};
|
|
94
|
+
background-color: ${a(n.gray[200],n.darkGray[500])};
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background-color: ${a(n.gray[300],n.darkGray[600])};
|
|
98
|
+
}
|
|
99
|
+
`,actionButton:t`
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
color: ${a(n.gray[500],n.gray[500])};
|
|
102
|
+
border: none;
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
padding: 0px;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
width: ${o[3]};
|
|
109
|
+
height: ${o[3]};
|
|
110
|
+
position: relative;
|
|
111
|
+
z-index: 1;
|
|
112
|
+
|
|
113
|
+
&:hover svg {
|
|
114
|
+
color: ${a(n.gray[600],n.gray[400])};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
border-radius: ${s.radius.xs};
|
|
119
|
+
outline: 2px solid ${n.blue[800]};
|
|
120
|
+
outline-offset: 2px;
|
|
121
|
+
}
|
|
122
|
+
`}},Tt=e=>Ri("light",e),At=e=>Ri("dark",e);Vn(["click"]);var dr=F("<div>"),Au=F("<select name=tsqd-queries-filter-sort>"),Lu=F("<select name=tsqd-mutations-filter-sort>"),Ou=F("<span>Asc"),qu=F("<span>Desc"),Fu=F('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),_u=F("<div>Settings"),Ru=F("<span>Position"),Ku=F("<span>Top"),zu=F("<span>Bottom"),Bu=F("<span>Left"),Nu=F("<span>Right"),Vu=F("<span>Theme"),Hu=F("<span>Light"),Gu=F("<span>Dark"),Uu=F("<span>System"),ju=F("<div><div class=tsqd-queries-container>"),Wu=F("<div><div class=tsqd-mutations-container>"),Qu=F('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'),fo=F("<option>Sort by "),Yu=F("<div class=tsqd-query-disabled-indicator>disabled"),Xu=F("<div class=tsqd-query-static-indicator>static"),Ki=F("<button><div></div><code class=tsqd-query-hash>"),Zu=F("<div role=tooltip id=tsqd-status-tooltip>"),Ju=F("<span>"),ed=F("<button><span></span><span>"),td=F("<button><span></span> Error"),nd=F('<div><span></span>Trigger Error<select><option value=""disabled selected>'),rd=F('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),od=F("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),id=F('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),sd=F("<option>"),ad=F('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),[Ie,fr]=_(null),[at,zi]=_(null),[yt,ld]=_(0),[Nt,Cd]=_(!1),cd=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?rt(n):nt(n));let o;Yt(()=>{zs(o,({width:a},l)=>{l===o&&ld(a)})});const s=()=>{const{colors:a}=$,l=(i,c)=>t()==="dark"?c:i;return yt()<Gt?n`
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
background-color: ${l(a.gray[300],a.gray[600])};
|
|
125
|
+
`:n`
|
|
126
|
+
flex-direction: row;
|
|
127
|
+
background-color: ${l(a.gray[200],a.darkGray[900])};
|
|
128
|
+
`};return(()=>{var a=dr(),l=o;return typeof l=="function"?Un(l,a):o=a,a.style.setProperty("--tsqd-font-size","16px"),k(a,()=>e.children),B(()=>I(a,q(r().parentPanel,s(),{[n`
|
|
129
|
+
min-width: min-content;
|
|
130
|
+
`]:yt()<vs},"tsqd-main-panel"))),a})()},ud=e=>{md(),pd();let t;const n=$e(),r=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,o=D(()=>n()==="dark"?rt(r):nt(r)),s=xs(),[a,l]=_("queries"),i=D(()=>e.localStore.sort||ps),c=D(()=>Number(e.localStore.sortOrder)||$r),u=D(()=>e.localStore.mutationSort||bs),f=D(()=>Number(e.localStore.mutationSortOrder)||$r),g=D(()=>An[i()]),h=D(()=>Ln[u()]),d=D(()=>z().onlineManager),y=D(()=>z().client.getQueryCache()),p=D(()=>z().client.getMutationCache()),m=ge(P=>P().getAll().length,!1),b=D(Ze(()=>[m(),e.localStore.filter,i(),c()],()=>{const P=y().getAll(),L=e.localStore.filter?P.filter(A=>Sr(A.queryHash,e.localStore.filter||"").passed):[...P];return g()?L.sort((A,G)=>g()(A,G)*c()):L})),w=Ke(P=>P().getAll().length,!1),x=D(Ze(()=>[w(),e.localStore.mutationFilter,u(),f()],()=>{const P=p().getAll(),L=e.localStore.mutationFilter?P.filter(A=>{const G=`${A.options.mutationKey?JSON.stringify(A.options.mutationKey)+" - ":""}${new Date(A.state.submittedAt).toLocaleString()}`;return Sr(G,e.localStore.mutationFilter||"").passed}):[...P];return h()?L.sort((A,G)=>h()(A,G)*f()):L})),S=P=>{e.setLocalStore("position",P)},O=P=>{const C=getComputedStyle(t).getPropertyValue("--tsqd-font-size");P.style.setProperty("--tsqd-font-size",C)};return[(()=>{var P=Qu(),L=P.firstChild,C=L.firstChild,A=C.firstChild,G=A.firstChild,N=G.nextSibling,ne=N.firstChild,Z=L.nextSibling,ue=Z.firstChild,re=ue.firstChild,oe=re.firstChild,se=re.nextSibling,ae=se.nextSibling,we=ue.nextSibling,Te=we.firstChild,ve=Te.nextSibling,Ee=t;return typeof Ee=="function"?Un(Ee,P):t=P,A.$$click=()=>{if(!s().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},k(N,()=>z().queryFlavor,ne),k(N,()=>z().version,null),k(C,v(Fe.Root,{get class(){return q(o().viewToggle)},get value(){return a()},onChange:M=>{l(M),fr(null),zi(null)},get children(){return[v(Fe.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[v(Fe.ItemInput,{}),v(Fe.ItemControl,{get children(){return v(Fe.ItemIndicator,{})}}),v(Fe.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),v(Fe.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[v(Fe.ItemInput,{}),v(Fe.ItemControl,{get children(){return v(Fe.ItemIndicator,{})}}),v(Fe.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),k(L,v(R,{get when(){return a()==="queries"},get children(){return v(gd,{})}}),null),k(L,v(R,{get when(){return a()==="mutations"},get children(){return v(hd,{})}}),null),k(re,v(Zc,{}),oe),oe.$$input=M=>{a()==="queries"?e.setLocalStore("filter",M.currentTarget.value):e.setLocalStore("mutationFilter",M.currentTarget.value)},k(se,v(R,{get when(){return a()==="queries"},get children(){var M=Au();return M.addEventListener("change",de=>{e.setLocalStore("sort",de.currentTarget.value)}),k(M,()=>Object.keys(An).map(de=>(()=>{var Y=fo();return Y.firstChild,Y.value=de,k(Y,de,null),Y})())),B(()=>M.value=i()),M}}),null),k(se,v(R,{get when(){return a()==="mutations"},get children(){var M=Lu();return M.addEventListener("change",de=>{e.setLocalStore("mutationSort",de.currentTarget.value)}),k(M,()=>Object.keys(Ln).map(de=>(()=>{var Y=fo();return Y.firstChild,Y.value=de,k(Y,de,null),Y})())),B(()=>M.value=u()),M}}),null),k(se,v(ln,{}),null),ae.$$click=()=>{a()==="queries"?e.setLocalStore("sortOrder",String(c()*-1)):e.setLocalStore("mutationSortOrder",String(f()*-1))},k(ae,v(R,{get when(){return(a()==="queries"?c():f())===1},get children(){return[Ou(),v(io,{})]}}),null),k(ae,v(R,{get when(){return(a()==="queries"?c():f())===-1},get children(){return[qu(),v(so,{})]}}),null),Te.$$click=()=>{a()==="queries"?(Ve({type:"CLEAR_QUERY_CACHE"}),y().clear()):(Ve({type:"CLEAR_MUTATION_CACHE"}),p().clear())},k(Te,v(_i,{})),ve.$$click=()=>{d().setOnline(!d().isOnline())},k(ve,(()=>{var M=D(()=>!!Nt());return()=>M()?v(iu,{}):v(ou,{})})()),k(we,v(R,{get when(){return D(()=>!s().pipWindow)()&&!s().disabled},get children(){var M=Fu();return M.$$click=()=>{s().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},k(M,v(au,{})),B(()=>I(M,q(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),M}}),null),k(we,v(fe.Root,{gutter:4,get children(){return[v(fe.Trigger,{get class(){return q(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return v(su,{})}}),v(fe.Portal,{ref:M=>O(M),get mount(){return D(()=>!!s().pipWindow)()?s().pipWindow.document.body:document.body},get children(){return v(fe.Content,{get class(){return q(o().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var M=_u();return B(()=>I(M,q(o().settingsMenuHeader,"tsqd-settings-menu-header"))),M})(),v(R,{get when(){return!e.showPanelViewOnly},get children(){return v(fe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(fe.SubTrigger,{get class(){return q(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Ru(),v(ln,{})]}}),v(fe.Portal,{ref:M=>O(M),get mount(){return D(()=>!!s().pipWindow)()?s().pipWindow.document.body:document.body},get children(){return v(fe.SubContent,{get class(){return q(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(fe.Item,{onSelect:()=>{S("top")},as:"button",get class(){return q(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Ku(),v(io,{})]}}),v(fe.Item,{onSelect:()=>{S("bottom")},as:"button",get class(){return q(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[zu(),v(so,{})]}}),v(fe.Item,{onSelect:()=>{S("left")},as:"button",get class(){return q(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Bu(),v(Jc,{})]}}),v(fe.Item,{onSelect:()=>{S("right")},as:"button",get class(){return q(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[Nu(),v(eu,{})]}})]}})}})]}})}}),v(fe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(fe.SubTrigger,{get class(){return q(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Vu(),v(ln,{})]}}),v(fe.Portal,{ref:M=>O(M),get mount(){return D(()=>!!s().pipWindow)()?s().pipWindow.document.body:document.body},get children(){return v(fe.SubContent,{get class(){return q(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(fe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return q(o().settingsSubButton,e.localStore.theme_preference==="light"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Hu(),v(tu,{})]}}),v(fe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return q(o().settingsSubButton,e.localStore.theme_preference==="dark"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Gu(),v(nu,{})]}}),v(fe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return q(o().settingsSubButton,e.localStore.theme_preference==="system"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Uu(),v(ru,{})]}})]}})}})]}})]}})}})]}}),null),k(P,v(R,{get when(){return a()==="queries"},get children(){var M=ju(),de=M.firstChild;return k(de,v(un,{by:Y=>Y.queryHash,get each(){return b()},children:Y=>v(dd,{get query(){return Y()}})})),B(()=>I(M,q(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),M}}),null),k(P,v(R,{get when(){return a()==="mutations"},get children(){var M=Wu(),de=M.firstChild;return k(de,v(un,{by:Y=>Y.mutationId,get each(){return x()},children:Y=>v(fd,{get mutation(){return Y()}})})),B(()=>I(M,q(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),M}}),null),B(M=>{var de=q(o().queriesContainer,yt()<Gt&&(Ie()||at())&&r`
|
|
131
|
+
height: 50%;
|
|
132
|
+
max-height: 50%;
|
|
133
|
+
`,yt()<Gt&&!(Ie()||at())&&r`
|
|
134
|
+
height: 100%;
|
|
135
|
+
max-height: 100%;
|
|
136
|
+
`,"tsqd-queries-container"),Y=q(o().row,"tsqd-header"),wt=o().logoAndToggleContainer,H=q(o().logo,"tsqd-text-logo-container"),We=q(o().tanstackLogo,"tsqd-text-logo-tanstack"),Ae=q(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),nn=q(o().row,"tsqd-filters-actions-container"),ot=q(o().filtersContainer,"tsqd-filters-container"),Lt=q(o().filterInput,"tsqd-query-filter-textfield-container"),rn=q("tsqd-query-filter-textfield"),ft=q(o().filterSelect,"tsqd-query-filter-sort-container"),gt=`Sort order ${(a()==="queries"?c():f())===-1?"descending":"ascending"}`,xt=(a()==="queries"?c():f())===-1,T=q(o().actionsContainer,"tsqd-actions-container"),ie=q(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),Le=`Clear ${a()} cache`,le=q(o().actionsBtn,Nt()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),J=`${Nt()?"Unset offline mocking behavior":"Mock offline behavior"}`,ce=Nt(),xe=`${Nt()?"Unset offline mocking behavior":"Mock offline behavior"}`;return de!==M.e&&I(P,M.e=de),Y!==M.t&&I(L,M.t=Y),wt!==M.a&&I(C,M.a=wt),H!==M.o&&I(A,M.o=H),We!==M.i&&I(G,M.i=We),Ae!==M.n&&I(N,M.n=Ae),nn!==M.s&&I(Z,M.s=nn),ot!==M.h&&I(ue,M.h=ot),Lt!==M.r&&I(re,M.r=Lt),rn!==M.d&&I(oe,M.d=rn),ft!==M.l&&I(se,M.l=ft),gt!==M.u&&Ce(ae,"aria-label",M.u=gt),xt!==M.c&&Ce(ae,"aria-pressed",M.c=xt),T!==M.w&&I(we,M.w=T),ie!==M.m&&I(Te,M.m=ie),Le!==M.f&&Ce(Te,"title",M.f=Le),le!==M.y&&I(ve,M.y=le),J!==M.g&&Ce(ve,"aria-label",M.g=J),ce!==M.p&&Ce(ve,"aria-pressed",M.p=ce),xe!==M.b&&Ce(ve,"title",M.b=xe),M},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),B(()=>oe.value=a()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),P})(),v(R,{get when(){return D(()=>a()==="queries")()&&Ie()},get children(){return v(vd,{})}}),v(R,{get when(){return D(()=>a()==="mutations")()&&at()},get children(){return v(yd,{})}})]},dd=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?rt(n):nt(n)),{colors:o,alpha:s}=$,a=(d,y)=>t()==="dark"?y:d,l=ge(d=>d().find({queryKey:e.query.queryKey})?.state,!0,d=>d.query.queryHash===e.query.queryHash),i=ge(d=>d().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,d=>d.query.queryHash===e.query.queryHash),c=ge(d=>d().find({queryKey:e.query.queryKey})?.isStatic()??!1,!0,d=>d.query.queryHash===e.query.queryHash),u=ge(d=>d().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,d=>d.query.queryHash===e.query.queryHash),f=ge(d=>d().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,d=>d.query.queryHash===e.query.queryHash),g=D(()=>Hi({queryState:l(),observerCount:f(),isStale:u()})),h=()=>g()==="gray"?n`
|
|
137
|
+
background-color: ${a(o[g()][200],o[g()][700])};
|
|
138
|
+
color: ${a(o[g()][700],o[g()][300])};
|
|
139
|
+
`:n`
|
|
140
|
+
background-color: ${a(o[g()][200]+s[80],o[g()][900])};
|
|
141
|
+
color: ${a(o[g()][800],o[g()][300])};
|
|
142
|
+
`;return v(R,{get when(){return l()},get children(){var d=Ki(),y=d.firstChild,p=y.nextSibling;return d.$$click=()=>fr(e.query.queryHash===Ie()?null:e.query.queryHash),k(y,f),k(p,()=>e.query.queryHash),k(d,v(R,{get when(){return i()},get children(){return Yu()}}),null),k(d,v(R,{get when(){return c()},get children(){return Xu()}}),null),B(m=>{var b=q(r().queryRow,Ie()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),w=`Query key ${e.query.queryHash}`,x=q(h(),"tsqd-query-observer-count");return b!==m.e&&I(d,m.e=b),w!==m.t&&Ce(d,"aria-label",m.t=w),x!==m.a&&I(y,m.a=x),m},{e:void 0,t:void 0,a:void 0}),d}})},fd=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?rt(n):nt(n)),{colors:o,alpha:s}=$,a=(g,h)=>t()==="dark"?h:g,l=Ke(g=>g().getAll().find(y=>y.mutationId===e.mutation.mutationId)?.state),i=Ke(g=>{const d=g().getAll().find(y=>y.mutationId===e.mutation.mutationId);return d?d.state.isPaused:!1}),c=Ke(g=>{const d=g().getAll().find(y=>y.mutationId===e.mutation.mutationId);return d?d.state.status:"idle"}),u=D(()=>Et({isPaused:i(),status:c()})),f=()=>u()==="gray"?n`
|
|
143
|
+
background-color: ${a(o[u()][200],o[u()][700])};
|
|
144
|
+
color: ${a(o[u()][700],o[u()][300])};
|
|
145
|
+
`:n`
|
|
146
|
+
background-color: ${a(o[u()][200]+s[80],o[u()][900])};
|
|
147
|
+
color: ${a(o[u()][800],o[u()][300])};
|
|
148
|
+
`;return v(R,{get when(){return l()},get children(){var g=Ki(),h=g.firstChild,d=h.nextSibling;return g.$$click=()=>{zi(e.mutation.mutationId===at()?null:e.mutation.mutationId)},k(h,v(R,{get when(){return u()==="purple"},get children(){return v(mu,{})}}),null),k(h,v(R,{get when(){return u()==="green"},get children(){return v(hu,{})}}),null),k(h,v(R,{get when(){return u()==="red"},get children(){return v(yu,{})}}),null),k(h,v(R,{get when(){return u()==="yellow"},get children(){return v(vu,{})}}),null),k(d,v(R,{get when(){return e.mutation.options.mutationKey},get children(){return[D(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),k(d,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),B(y=>{var p=q(r().queryRow,at()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),m=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,b=q(f(),"tsqd-query-observer-count");return p!==y.e&&I(g,y.e=p),m!==y.t&&Ce(g,"aria-label",y.t=m),b!==y.a&&I(h,y.a=b),y},{e:void 0,t:void 0,a:void 0}),g}})},gd=()=>{const e=ge(i=>i().getAll().filter(c=>$t(c)==="stale").length),t=ge(i=>i().getAll().filter(c=>$t(c)==="fresh").length),n=ge(i=>i().getAll().filter(c=>$t(c)==="fetching").length),r=ge(i=>i().getAll().filter(c=>$t(c)==="paused").length),o=ge(i=>i().getAll().filter(c=>$t(c)==="inactive").length),s=$e(),a=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,l=D(()=>s()==="dark"?rt(a):nt(a));return(()=>{var i=dr();return k(i,v(Xe,{label:"Fresh",color:"green",get count(){return t()}}),null),k(i,v(Xe,{label:"Fetching",color:"blue",get count(){return n()}}),null),k(i,v(Xe,{label:"Paused",color:"purple",get count(){return r()}}),null),k(i,v(Xe,{label:"Stale",color:"yellow",get count(){return e()}}),null),k(i,v(Xe,{label:"Inactive",color:"gray",get count(){return o()}}),null),B(()=>I(i,q(l().queryStatusContainer,"tsqd-query-status-container"))),i})()},hd=()=>{const e=Ke(l=>l().getAll().filter(i=>Et({isPaused:i.state.isPaused,status:i.state.status})==="green").length),t=Ke(l=>l().getAll().filter(i=>Et({isPaused:i.state.isPaused,status:i.state.status})==="yellow").length),n=Ke(l=>l().getAll().filter(i=>Et({isPaused:i.state.isPaused,status:i.state.status})==="purple").length),r=Ke(l=>l().getAll().filter(i=>Et({isPaused:i.state.isPaused,status:i.state.status})==="red").length),o=$e(),s=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,a=D(()=>o()==="dark"?rt(s):nt(s));return(()=>{var l=dr();return k(l,v(Xe,{label:"Paused",color:"purple",get count(){return n()}}),null),k(l,v(Xe,{label:"Pending",color:"yellow",get count(){return t()}}),null),k(l,v(Xe,{label:"Success",color:"green",get count(){return e()}}),null),k(l,v(Xe,{label:"Error",color:"red",get count(){return r()}}),null),B(()=>I(l,q(a().queryStatusContainer,"tsqd-query-status-container"))),l})()},Xe=e=>{const t=$e(),n=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,r=D(()=>t()==="dark"?rt(n):nt(n)),{colors:o,alpha:s}=$,a=(h,d)=>t()==="dark"?d:h;let l;const[i,c]=_(!1),[u,f]=_(!1),g=D(()=>!(Ie()&&yt()<hs&&yt()>Gt||yt()<Gt));return(()=>{var h=ed(),d=h.firstChild,y=d.nextSibling,p=l;return typeof p=="function"?Un(p,h):l=h,h.addEventListener("mouseleave",()=>{c(!1),f(!1)}),h.addEventListener("mouseenter",()=>c(!0)),h.addEventListener("blur",()=>f(!1)),h.addEventListener("focus",()=>f(!0)),ji(h,U({get disabled(){return g()},get class(){return q(r().queryStatusTag,!g()&&n`
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
&:hover {
|
|
151
|
+
background: ${a(o.gray[200],o.darkGray[400])}${s[80]};
|
|
152
|
+
}
|
|
153
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>i()||u()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),k(h,v(R,{get when(){return D(()=>!g())()&&(i()||u())},get children(){var m=Zu();return k(m,()=>e.label),B(()=>I(m,q(r().statusTooltip,"tsqd-query-status-tooltip"))),m}}),d),k(h,v(R,{get when(){return g()},get children(){var m=Ju();return k(m,()=>e.label),B(()=>I(m,q(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),m}}),y),k(y,()=>e.count),B(m=>{var b=q(n`
|
|
154
|
+
width: ${$.size[1.5]};
|
|
155
|
+
height: ${$.size[1.5]};
|
|
156
|
+
border-radius: ${$.border.radius.full};
|
|
157
|
+
background-color: ${$.colors[e.color][500]};
|
|
158
|
+
`,"tsqd-query-status-tag-dot"),w=q(r().queryStatusCount,e.count>0&&e.color!=="gray"&&n`
|
|
159
|
+
background-color: ${a(o[e.color][100],o[e.color][900])};
|
|
160
|
+
color: ${a(o[e.color][700],o[e.color][300])};
|
|
161
|
+
`,"tsqd-query-status-tag-count");return b!==m.e&&I(d,m.e=b),w!==m.t&&I(y,m.t=w),m},{e:void 0,t:void 0}),h})()},vd=()=>{const e=$e(),t=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,n=D(()=>e()==="dark"?rt(t):nt(t)),{colors:r}=$,o=(C,A)=>e()==="dark"?A:C,s=z().client,[a,l]=_(!1),[i,c]=_("view"),[u,f]=_(!1),g=D(()=>z().errorTypes||[]),h=ge(C=>C().getAll().find(A=>A.queryHash===Ie()),!1),d=ge(C=>C().getAll().find(A=>A.queryHash===Ie()),!1),y=ge(C=>C().getAll().find(A=>A.queryHash===Ie())?.state,!1),p=ge(C=>C().getAll().find(A=>A.queryHash===Ie())?.state.data,!1),m=ge(C=>{const A=C().getAll().find(G=>G.queryHash===Ie());return A?$t(A):"inactive"}),b=ge(C=>{const A=C().getAll().find(G=>G.queryHash===Ie());return A?A.state.status:"pending"}),w=ge(C=>C().getAll().find(A=>A.queryHash===Ie())?.getObserversCount()??0),x=D(()=>Gi(m())),S=()=>{Ve({type:"REFETCH",queryHash:h()?.queryHash}),h()?.fetch()?.catch(()=>{})},O=C=>{const A=h();if(!A)return;Ve({type:"TRIGGER_ERROR",queryHash:A.queryHash,metadata:{error:C?.name}});const G=C?.initializer(A)??new Error("Unknown error from devtools"),N=A.options;A.setState({status:"error",error:G,fetchMeta:{...A.state.fetchMeta,__previousQueryOptions:N}})},P=()=>{const C=h();if(!C)return;Ve({type:"RESTORE_LOADING",queryHash:C.queryHash});const A=C.state,G=C.state.fetchMeta?C.state.fetchMeta.__previousQueryOptions:null;C.cancel({silent:!0}),C.setState({...A,fetchStatus:"idle",fetchMeta:null}),G&&C.fetch(G)};K(()=>{m()!=="fetching"&&l(!1)});const L=()=>x()==="gray"?t`
|
|
162
|
+
background-color: ${o(r[x()][200],r[x()][700])};
|
|
163
|
+
color: ${o(r[x()][700],r[x()][300])};
|
|
164
|
+
border-color: ${o(r[x()][400],r[x()][600])};
|
|
165
|
+
`:t`
|
|
166
|
+
background-color: ${o(r[x()][100],r[x()][900])};
|
|
167
|
+
color: ${o(r[x()][700],r[x()][300])};
|
|
168
|
+
border-color: ${o(r[x()][400],r[x()][600])};
|
|
169
|
+
`;return v(R,{get when(){return D(()=>!!h())()&&y()},get children(){var C=id(),A=C.firstChild,G=A.nextSibling,N=G.firstChild,ne=N.firstChild,Z=ne.firstChild,ue=ne.nextSibling,re=N.nextSibling,oe=re.firstChild,se=oe.nextSibling,ae=re.nextSibling,we=ae.firstChild,Te=we.nextSibling,ve=G.nextSibling,Ee=ve.nextSibling,M=Ee.firstChild,de=M.firstChild,Y=M.nextSibling,wt=Y.firstChild,H=Y.nextSibling,We=H.firstChild,Ae=H.nextSibling,nn=Ae.firstChild,ot=Ae.nextSibling,Lt=ot.firstChild,rn=Lt.nextSibling,ft=Ee.nextSibling;ft.firstChild;var gt=ft.nextSibling,xt=gt.nextSibling;return k(Z,()=>cn(h().queryKey,!0)),k(ue,m),k(se,w),k(Te,()=>new Date(y().dataUpdatedAt).toLocaleTimeString()),M.$$click=S,Y.$$click=()=>{Ve({type:"INVALIDATE",queryHash:h()?.queryHash}),s.invalidateQueries(h())},H.$$click=()=>{Ve({type:"RESET",queryHash:h()?.queryHash}),s.resetQueries(h())},Ae.$$click=()=>{Ve({type:"REMOVE",queryHash:h()?.queryHash}),s.removeQueries(h()),fr(null)},ot.$$click=()=>{if(h()?.state.data===void 0)l(!0),P();else{const T=h();if(!T)return;Ve({type:"TRIGGER_LOADING",queryHash:T.queryHash});const ie=T.options;T.fetch({...ie,queryFn:()=>new Promise(()=>{}),gcTime:-1}),T.setState({data:void 0,status:"pending",fetchMeta:{...T.state.fetchMeta,__previousQueryOptions:ie}})}},k(ot,()=>b()==="pending"?"Restore":"Trigger",rn),k(Ee,v(R,{get when(){return g().length===0||b()==="error"},get children(){var T=td(),ie=T.firstChild,Le=ie.nextSibling;return T.$$click=()=>{h().state.error?(Ve({type:"RESTORE_ERROR",queryHash:h()?.queryHash}),s.resetQueries(h())):O()},k(T,()=>b()==="error"?"Restore":"Trigger",Le),B(le=>{var J=q(t`
|
|
170
|
+
color: ${o(r.red[500],r.red[400])};
|
|
171
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),ce=b()==="pending",xe=t`
|
|
172
|
+
background-color: ${o(r.red[500],r.red[400])};
|
|
173
|
+
`;return J!==le.e&&I(T,le.e=J),ce!==le.t&&(T.disabled=le.t=ce),xe!==le.a&&I(ie,le.a=xe),le},{e:void 0,t:void 0,a:void 0}),T}}),null),k(Ee,v(R,{get when(){return!(g().length===0||b()==="error")},get children(){var T=nd(),ie=T.firstChild,Le=ie.nextSibling,le=Le.nextSibling;return le.firstChild,le.addEventListener("change",J=>{const ce=g().find(xe=>xe.name===J.currentTarget.value);O(ce)}),k(le,v(Ui,{get each(){return g()},children:J=>(()=>{var ce=sd();return k(ce,()=>J.name),B(()=>ce.value=J.name),ce})()}),null),k(T,v(ln,{}),null),B(J=>{var ce=q(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),xe=t`
|
|
174
|
+
background-color: ${$.colors.red[400]};
|
|
175
|
+
`,X=b()==="pending";return ce!==J.e&&I(T,J.e=ce),xe!==J.t&&I(ie,J.t=xe),X!==J.a&&(le.disabled=J.a=X),J},{e:void 0,t:void 0,a:void 0}),T}}),null),k(ft,()=>i()==="view"?"Explorer":"Editor",null),k(C,v(R,{get when(){return i()==="view"},get children(){var T=rd();return k(T,v(st,{label:"Data",defaultExpanded:["Data"],get value(){return p()},editable:!0,onEdit:()=>c("edit"),get activeQuery(){return h()}})),B(ie=>(ie=$.size[2])!=null?T.style.setProperty("padding",ie):T.style.removeProperty("padding")),T}}),gt),k(C,v(R,{get when(){return i()==="edit"},get children(){var T=od(),ie=T.firstChild,Le=ie.nextSibling,le=Le.firstChild,J=le.nextSibling,ce=J.firstChild,xe=ce.nextSibling;return T.addEventListener("submit",X=>{X.preventDefault();const ht=new FormData(X.currentTarget).get("data");try{const it=JSON.parse(ht);h().setState({...h().state,data:it}),c("view")}catch{f(!0)}}),ie.addEventListener("focus",()=>f(!1)),k(le,()=>u()?"Invalid Value":""),ce.$$click=()=>c("view"),B(X=>{var Ct=q(n().devtoolsEditForm,"tsqd-query-details-data-editor"),ht=n().devtoolsEditTextarea,it=u(),Ot=n().devtoolsEditFormActions,qt=n().devtoolsEditFormError,Ft=n().devtoolsEditFormActionContainer,_t=q(n().devtoolsEditFormAction,t`
|
|
176
|
+
color: ${o(r.gray[600],r.gray[300])};
|
|
177
|
+
`),Rt=q(n().devtoolsEditFormAction,t`
|
|
178
|
+
color: ${o(r.blue[600],r.blue[400])};
|
|
179
|
+
`);return Ct!==X.e&&I(T,X.e=Ct),ht!==X.t&&I(ie,X.t=ht),it!==X.a&&Ce(ie,"data-error",X.a=it),Ot!==X.o&&I(Le,X.o=Ot),qt!==X.i&&I(le,X.i=qt),Ft!==X.n&&I(J,X.n=Ft),_t!==X.s&&I(ce,X.s=_t),Rt!==X.h&&I(xe,X.h=Rt),X},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),B(()=>ie.value=JSON.stringify(p(),null,2)),T}}),gt),k(xt,v(st,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return d()}})),B(T=>{var ie=q(n().detailsContainer,"tsqd-query-details-container"),Le=q(n().detailsHeader,"tsqd-query-details-header"),le=q(n().detailsBody,"tsqd-query-details-summary-container"),J=q(n().queryDetailsStatus,L()),ce=q(n().detailsHeader,"tsqd-query-details-header"),xe=q(n().actionsBody,"tsqd-query-details-actions-container"),X=q(t`
|
|
180
|
+
color: ${o(r.blue[600],r.blue[400])};
|
|
181
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),Ct=m()==="fetching",ht=t`
|
|
182
|
+
background-color: ${o(r.blue[600],r.blue[400])};
|
|
183
|
+
`,it=q(t`
|
|
184
|
+
color: ${o(r.yellow[600],r.yellow[400])};
|
|
185
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),Ot=b()==="pending",qt=t`
|
|
186
|
+
background-color: ${o(r.yellow[600],r.yellow[400])};
|
|
187
|
+
`,Ft=q(t`
|
|
188
|
+
color: ${o(r.gray[600],r.gray[300])};
|
|
189
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),_t=b()==="pending",Rt=t`
|
|
190
|
+
background-color: ${o(r.gray[600],r.gray[400])};
|
|
191
|
+
`,gr=q(t`
|
|
192
|
+
color: ${o(r.pink[500],r.pink[400])};
|
|
193
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),hr=m()==="fetching",vr=t`
|
|
194
|
+
background-color: ${o(r.pink[500],r.pink[400])};
|
|
195
|
+
`,yr=q(t`
|
|
196
|
+
color: ${o(r.cyan[500],r.cyan[400])};
|
|
197
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),mr=a(),pr=t`
|
|
198
|
+
background-color: ${o(r.cyan[500],r.cyan[400])};
|
|
199
|
+
`,br=q(n().detailsHeader,"tsqd-query-details-header"),wr=q(n().detailsHeader,"tsqd-query-details-header"),kn=$.size[2];return ie!==T.e&&I(C,T.e=ie),Le!==T.t&&I(A,T.t=Le),le!==T.a&&I(G,T.a=le),J!==T.o&&I(ue,T.o=J),ce!==T.i&&I(ve,T.i=ce),xe!==T.n&&I(Ee,T.n=xe),X!==T.s&&I(M,T.s=X),Ct!==T.h&&(M.disabled=T.h=Ct),ht!==T.r&&I(de,T.r=ht),it!==T.d&&I(Y,T.d=it),Ot!==T.l&&(Y.disabled=T.l=Ot),qt!==T.u&&I(wt,T.u=qt),Ft!==T.c&&I(H,T.c=Ft),_t!==T.w&&(H.disabled=T.w=_t),Rt!==T.m&&I(We,T.m=Rt),gr!==T.f&&I(Ae,T.f=gr),hr!==T.y&&(Ae.disabled=T.y=hr),vr!==T.g&&I(nn,T.g=vr),yr!==T.p&&I(ot,T.p=yr),mr!==T.b&&(ot.disabled=T.b=mr),pr!==T.T&&I(Lt,T.T=pr),br!==T.A&&I(ft,T.A=br),wr!==T.O&&I(gt,T.O=wr),kn!==T.I&&((T.I=kn)!=null?xt.style.setProperty("padding",kn):xt.style.removeProperty("padding")),T},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0}),C}})},yd=()=>{const e=$e(),t=z().shadowDOMTarget?W.bind({target:z().shadowDOMTarget}):W,n=D(()=>e()==="dark"?rt(t):nt(t)),{colors:r}=$,o=(u,f)=>e()==="dark"?f:u,s=Ke(u=>{const g=u().getAll().find(h=>h.mutationId===at());return g?g.state.isPaused:!1}),a=Ke(u=>{const g=u().getAll().find(h=>h.mutationId===at());return g?g.state.status:"idle"}),l=D(()=>Et({isPaused:s(),status:a()})),i=Ke(u=>u().getAll().find(f=>f.mutationId===at()),!1),c=()=>l()==="gray"?t`
|
|
200
|
+
background-color: ${o(r[l()][200],r[l()][700])};
|
|
201
|
+
color: ${o(r[l()][700],r[l()][300])};
|
|
202
|
+
border-color: ${o(r[l()][400],r[l()][600])};
|
|
203
|
+
`:t`
|
|
204
|
+
background-color: ${o(r[l()][100],r[l()][900])};
|
|
205
|
+
color: ${o(r[l()][700],r[l()][300])};
|
|
206
|
+
border-color: ${o(r[l()][400],r[l()][600])};
|
|
207
|
+
`;return v(R,{get when(){return i()},get children(){var u=ad(),f=u.firstChild,g=f.nextSibling,h=g.firstChild,d=h.firstChild,y=d.firstChild,p=d.nextSibling,m=h.nextSibling,b=m.firstChild,w=b.nextSibling,x=g.nextSibling,S=x.nextSibling,O=S.nextSibling,P=O.nextSibling,L=P.nextSibling,C=L.nextSibling,A=C.nextSibling,G=A.nextSibling;return k(y,v(R,{get when(){return i().options.mutationKey},fallback:"No mutationKey found",get children(){return cn(i().options.mutationKey,!0)}})),k(p,v(R,{get when(){return l()==="purple"},children:"pending"}),null),k(p,v(R,{get when(){return l()!=="purple"},get children(){return a()}}),null),k(w,()=>new Date(i().state.submittedAt).toLocaleTimeString()),k(S,v(st,{label:"Variables",defaultExpanded:["Variables"],get value(){return i().state.variables}})),k(P,v(st,{label:"Context",defaultExpanded:["Context"],get value(){return i().state.context}})),k(C,v(st,{label:"Data",defaultExpanded:["Data"],get value(){return i().state.data}})),k(G,v(st,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return i()}})),B(N=>{var ne=q(n().detailsContainer,"tsqd-query-details-container"),Z=q(n().detailsHeader,"tsqd-query-details-header"),ue=q(n().detailsBody,"tsqd-query-details-summary-container"),re=q(n().queryDetailsStatus,c()),oe=q(n().detailsHeader,"tsqd-query-details-header"),se=$.size[2],ae=q(n().detailsHeader,"tsqd-query-details-header"),we=$.size[2],Te=q(n().detailsHeader,"tsqd-query-details-header"),ve=$.size[2],Ee=q(n().detailsHeader,"tsqd-query-details-header"),M=$.size[2];return ne!==N.e&&I(u,N.e=ne),Z!==N.t&&I(f,N.t=Z),ue!==N.a&&I(g,N.a=ue),re!==N.o&&I(p,N.o=re),oe!==N.i&&I(x,N.i=oe),se!==N.n&&((N.n=se)!=null?S.style.setProperty("padding",se):S.style.removeProperty("padding")),ae!==N.s&&I(O,N.s=ae),we!==N.h&&((N.h=we)!=null?P.style.setProperty("padding",we):P.style.removeProperty("padding")),Te!==N.r&&I(L,N.r=Te),ve!==N.d&&((N.d=ve)!=null?C.style.setProperty("padding",ve):C.style.removeProperty("padding")),Ee!==N.l&&I(A,N.l=Ee),M!==N.u&&((N.u=M)!=null?G.style.setProperty("padding",M):G.style.removeProperty("padding")),N},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),u}})},vn=new Map,md=()=>{const e=D(()=>z().client.getQueryCache()),t=e().subscribe(n=>{Vi(()=>{for(const[r,o]of vn.entries())o.shouldUpdate(n)&&o.setter(r(e))})});return V(()=>{vn.clear(),t()}),t},ge=(e,t=!0,n=()=>!0)=>{const r=D(()=>z().client.getQueryCache()),[o,s]=_(e(r),t?void 0:{equals:!1});return K(()=>{s(e(r))}),vn.set(e,{setter:s,shouldUpdate:n}),V(()=>{vn.delete(e)}),o},yn=new Map,pd=()=>{const e=D(()=>z().client.getMutationCache()),t=e().subscribe(()=>{for(const[n,r]of yn.entries())queueMicrotask(()=>{r(n(e))})});return V(()=>{yn.clear(),t()}),t},Ke=(e,t=!0)=>{const n=D(()=>z().client.getMutationCache()),[r,o]=_(e(n),t?void 0:{equals:!1});return K(()=>{o(e(n))}),yn.set(e,o),V(()=>{yn.delete(e)}),r},bd="@tanstack/query-devtools-event",Ve=({type:e,queryHash:t,metadata:n})=>{const r=new CustomEvent(bd,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r)},Bi=(e,t)=>{const{colors:n,font:r,size:o,alpha:s,shadow:a,border:l}=$,i=(c,u)=>e==="light"?c:u;return{devtoolsBtn:t`
|
|
208
|
+
z-index: 100000;
|
|
209
|
+
position: fixed;
|
|
210
|
+
padding: 4px;
|
|
211
|
+
text-align: left;
|
|
212
|
+
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
border-radius: 9999px;
|
|
217
|
+
box-shadow: ${a.md()};
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
|
|
220
|
+
& div {
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: -8px;
|
|
223
|
+
left: -8px;
|
|
224
|
+
right: -8px;
|
|
225
|
+
bottom: -8px;
|
|
226
|
+
border-radius: 9999px;
|
|
227
|
+
|
|
228
|
+
& svg {
|
|
229
|
+
position: absolute;
|
|
230
|
+
width: 100%;
|
|
231
|
+
height: 100%;
|
|
232
|
+
}
|
|
233
|
+
filter: blur(6px) saturate(1.2) contrast(1.1);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:focus-within {
|
|
237
|
+
outline-offset: 2px;
|
|
238
|
+
outline: 3px solid ${n.green[600]};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
& button {
|
|
242
|
+
position: relative;
|
|
243
|
+
z-index: 1;
|
|
244
|
+
padding: 0;
|
|
245
|
+
border-radius: 9999px;
|
|
246
|
+
background-color: transparent;
|
|
247
|
+
border: none;
|
|
248
|
+
height: 40px;
|
|
249
|
+
display: flex;
|
|
250
|
+
width: 40px;
|
|
251
|
+
overflow: hidden;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
outline: none;
|
|
254
|
+
& svg {
|
|
255
|
+
position: absolute;
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 100%;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
`,panel:t`
|
|
261
|
+
position: fixed;
|
|
262
|
+
z-index: 9999;
|
|
263
|
+
display: flex;
|
|
264
|
+
gap: ${$.size[.5]};
|
|
265
|
+
& * {
|
|
266
|
+
box-sizing: border-box;
|
|
267
|
+
text-transform: none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
& *::-webkit-scrollbar {
|
|
271
|
+
width: 7px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
& *::-webkit-scrollbar-track {
|
|
275
|
+
background: transparent;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
& *::-webkit-scrollbar-thumb {
|
|
279
|
+
background: ${i(n.gray[300],n.darkGray[200])};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
283
|
+
background: ${i(n.gray[400],n.darkGray[300])};
|
|
284
|
+
}
|
|
285
|
+
`,parentPanel:t`
|
|
286
|
+
z-index: 9999;
|
|
287
|
+
display: flex;
|
|
288
|
+
height: 100%;
|
|
289
|
+
gap: ${$.size[.5]};
|
|
290
|
+
& * {
|
|
291
|
+
box-sizing: border-box;
|
|
292
|
+
text-transform: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
& *::-webkit-scrollbar {
|
|
296
|
+
width: 7px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
& *::-webkit-scrollbar-track {
|
|
300
|
+
background: transparent;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
& *::-webkit-scrollbar-thumb {
|
|
304
|
+
background: ${i(n.gray[300],n.darkGray[200])};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
308
|
+
background: ${i(n.gray[400],n.darkGray[300])};
|
|
309
|
+
}
|
|
310
|
+
`,"devtoolsBtn-position-bottom-right":t`
|
|
311
|
+
bottom: 12px;
|
|
312
|
+
right: 12px;
|
|
313
|
+
`,"devtoolsBtn-position-bottom-left":t`
|
|
314
|
+
bottom: 12px;
|
|
315
|
+
left: 12px;
|
|
316
|
+
`,"devtoolsBtn-position-top-left":t`
|
|
317
|
+
top: 12px;
|
|
318
|
+
left: 12px;
|
|
319
|
+
`,"devtoolsBtn-position-top-right":t`
|
|
320
|
+
top: 12px;
|
|
321
|
+
right: 12px;
|
|
322
|
+
`,"devtoolsBtn-position-relative":t`
|
|
323
|
+
position: relative;
|
|
324
|
+
`,"panel-position-top":t`
|
|
325
|
+
top: 0;
|
|
326
|
+
right: 0;
|
|
327
|
+
left: 0;
|
|
328
|
+
max-height: 90%;
|
|
329
|
+
min-height: ${o[14]};
|
|
330
|
+
border-bottom: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
331
|
+
`,"panel-position-bottom":t`
|
|
332
|
+
bottom: 0;
|
|
333
|
+
right: 0;
|
|
334
|
+
left: 0;
|
|
335
|
+
max-height: 90%;
|
|
336
|
+
min-height: ${o[14]};
|
|
337
|
+
border-top: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
338
|
+
`,"panel-position-right":t`
|
|
339
|
+
bottom: 0;
|
|
340
|
+
right: 0;
|
|
341
|
+
top: 0;
|
|
342
|
+
border-left: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
343
|
+
max-width: 90%;
|
|
344
|
+
`,"panel-position-left":t`
|
|
345
|
+
bottom: 0;
|
|
346
|
+
left: 0;
|
|
347
|
+
top: 0;
|
|
348
|
+
border-right: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
349
|
+
max-width: 90%;
|
|
350
|
+
`,closeBtn:t`
|
|
351
|
+
position: absolute;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
z-index: 5;
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
justify-content: center;
|
|
357
|
+
outline: none;
|
|
358
|
+
background-color: ${i(n.gray[50],n.darkGray[700])};
|
|
359
|
+
&:hover {
|
|
360
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
361
|
+
}
|
|
362
|
+
&:focus-visible {
|
|
363
|
+
outline: 2px solid ${n.blue[600]};
|
|
364
|
+
}
|
|
365
|
+
& svg {
|
|
366
|
+
color: ${i(n.gray[600],n.gray[400])};
|
|
367
|
+
width: ${o[2]};
|
|
368
|
+
height: ${o[2]};
|
|
369
|
+
}
|
|
370
|
+
`,"closeBtn-position-top":t`
|
|
371
|
+
bottom: 0;
|
|
372
|
+
right: ${o[2]};
|
|
373
|
+
transform: translate(0, 100%);
|
|
374
|
+
border-right: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
375
|
+
border-left: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
376
|
+
border-top: none;
|
|
377
|
+
border-bottom: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
378
|
+
border-radius: 0px 0px ${l.radius.sm} ${l.radius.sm};
|
|
379
|
+
padding: ${o[.5]} ${o[1.5]} ${o[1]} ${o[1.5]};
|
|
380
|
+
|
|
381
|
+
&::after {
|
|
382
|
+
content: ' ';
|
|
383
|
+
position: absolute;
|
|
384
|
+
bottom: 100%;
|
|
385
|
+
left: -${o[2.5]};
|
|
386
|
+
height: ${o[1.5]};
|
|
387
|
+
width: calc(100% + ${o[5]});
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
& svg {
|
|
391
|
+
transform: rotate(180deg);
|
|
392
|
+
}
|
|
393
|
+
`,"closeBtn-position-bottom":t`
|
|
394
|
+
top: 0;
|
|
395
|
+
right: ${o[2]};
|
|
396
|
+
transform: translate(0, -100%);
|
|
397
|
+
border-right: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
398
|
+
border-left: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
399
|
+
border-top: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
400
|
+
border-bottom: none;
|
|
401
|
+
border-radius: ${l.radius.sm} ${l.radius.sm} 0px 0px;
|
|
402
|
+
padding: ${o[1]} ${o[1.5]} ${o[.5]} ${o[1.5]};
|
|
403
|
+
|
|
404
|
+
&::after {
|
|
405
|
+
content: ' ';
|
|
406
|
+
position: absolute;
|
|
407
|
+
top: 100%;
|
|
408
|
+
left: -${o[2.5]};
|
|
409
|
+
height: ${o[1.5]};
|
|
410
|
+
width: calc(100% + ${o[5]});
|
|
411
|
+
}
|
|
412
|
+
`,"closeBtn-position-right":t`
|
|
413
|
+
bottom: ${o[2]};
|
|
414
|
+
left: 0;
|
|
415
|
+
transform: translate(-100%, 0);
|
|
416
|
+
border-right: none;
|
|
417
|
+
border-left: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
418
|
+
border-top: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
419
|
+
border-bottom: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
420
|
+
border-radius: ${l.radius.sm} 0px 0px ${l.radius.sm};
|
|
421
|
+
padding: ${o[1.5]} ${o[.5]} ${o[1.5]} ${o[1]};
|
|
422
|
+
|
|
423
|
+
&::after {
|
|
424
|
+
content: ' ';
|
|
425
|
+
position: absolute;
|
|
426
|
+
left: 100%;
|
|
427
|
+
height: calc(100% + ${o[5]});
|
|
428
|
+
width: ${o[1.5]};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
& svg {
|
|
432
|
+
transform: rotate(-90deg);
|
|
433
|
+
}
|
|
434
|
+
`,"closeBtn-position-left":t`
|
|
435
|
+
bottom: ${o[2]};
|
|
436
|
+
right: 0;
|
|
437
|
+
transform: translate(100%, 0);
|
|
438
|
+
border-left: none;
|
|
439
|
+
border-right: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
440
|
+
border-top: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
441
|
+
border-bottom: ${i(n.gray[400],n.darkGray[300])} 1px solid;
|
|
442
|
+
border-radius: 0px ${l.radius.sm} ${l.radius.sm} 0px;
|
|
443
|
+
padding: ${o[1.5]} ${o[1]} ${o[1.5]} ${o[.5]};
|
|
444
|
+
|
|
445
|
+
&::after {
|
|
446
|
+
content: ' ';
|
|
447
|
+
position: absolute;
|
|
448
|
+
right: 100%;
|
|
449
|
+
height: calc(100% + ${o[5]});
|
|
450
|
+
width: ${o[1.5]};
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
& svg {
|
|
454
|
+
transform: rotate(90deg);
|
|
455
|
+
}
|
|
456
|
+
`,queriesContainer:t`
|
|
457
|
+
flex: 1 1 700px;
|
|
458
|
+
background-color: ${i(n.gray[50],n.darkGray[700])};
|
|
459
|
+
display: flex;
|
|
460
|
+
flex-direction: column;
|
|
461
|
+
& * {
|
|
462
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
463
|
+
}
|
|
464
|
+
`,dragHandle:t`
|
|
465
|
+
position: absolute;
|
|
466
|
+
transition: background-color 0.125s ease;
|
|
467
|
+
&:hover {
|
|
468
|
+
background-color: ${n.purple[400]}${i("",s[90])};
|
|
469
|
+
}
|
|
470
|
+
z-index: 4;
|
|
471
|
+
`,"dragHandle-position-top":t`
|
|
472
|
+
bottom: 0;
|
|
473
|
+
width: 100%;
|
|
474
|
+
height: 3px;
|
|
475
|
+
cursor: ns-resize;
|
|
476
|
+
`,"dragHandle-position-bottom":t`
|
|
477
|
+
top: 0;
|
|
478
|
+
width: 100%;
|
|
479
|
+
height: 3px;
|
|
480
|
+
cursor: ns-resize;
|
|
481
|
+
`,"dragHandle-position-right":t`
|
|
482
|
+
left: 0;
|
|
483
|
+
width: 3px;
|
|
484
|
+
height: 100%;
|
|
485
|
+
cursor: ew-resize;
|
|
486
|
+
`,"dragHandle-position-left":t`
|
|
487
|
+
right: 0;
|
|
488
|
+
width: 3px;
|
|
489
|
+
height: 100%;
|
|
490
|
+
cursor: ew-resize;
|
|
491
|
+
`,row:t`
|
|
492
|
+
display: flex;
|
|
493
|
+
justify-content: space-between;
|
|
494
|
+
align-items: center;
|
|
495
|
+
padding: ${$.size[2]} ${$.size[2.5]};
|
|
496
|
+
gap: ${$.size[2.5]};
|
|
497
|
+
border-bottom: ${i(n.gray[300],n.darkGray[500])} 1px solid;
|
|
498
|
+
align-items: center;
|
|
499
|
+
& > button {
|
|
500
|
+
padding: 0;
|
|
501
|
+
background: transparent;
|
|
502
|
+
border: none;
|
|
503
|
+
display: flex;
|
|
504
|
+
gap: ${o[.5]};
|
|
505
|
+
flex-direction: column;
|
|
506
|
+
}
|
|
507
|
+
`,logoAndToggleContainer:t`
|
|
508
|
+
display: flex;
|
|
509
|
+
gap: ${$.size[3]};
|
|
510
|
+
align-items: center;
|
|
511
|
+
`,logo:t`
|
|
512
|
+
cursor: pointer;
|
|
513
|
+
display: flex;
|
|
514
|
+
flex-direction: column;
|
|
515
|
+
background-color: transparent;
|
|
516
|
+
border: none;
|
|
517
|
+
gap: ${$.size[.5]};
|
|
518
|
+
padding: 0px;
|
|
519
|
+
&:hover {
|
|
520
|
+
opacity: 0.7;
|
|
521
|
+
}
|
|
522
|
+
&:focus-visible {
|
|
523
|
+
outline-offset: 4px;
|
|
524
|
+
border-radius: ${l.radius.xs};
|
|
525
|
+
outline: 2px solid ${n.blue[800]};
|
|
526
|
+
}
|
|
527
|
+
`,tanstackLogo:t`
|
|
528
|
+
font-size: ${r.size.md};
|
|
529
|
+
font-weight: ${r.weight.bold};
|
|
530
|
+
line-height: ${r.lineHeight.xs};
|
|
531
|
+
white-space: nowrap;
|
|
532
|
+
color: ${i(n.gray[600],n.gray[300])};
|
|
533
|
+
`,queryFlavorLogo:t`
|
|
534
|
+
font-weight: ${r.weight.semibold};
|
|
535
|
+
font-size: ${r.size.xs};
|
|
536
|
+
background: linear-gradient(
|
|
537
|
+
to right,
|
|
538
|
+
${i("#ea4037, #ff9b11","#dd524b, #e9a03b")}
|
|
539
|
+
);
|
|
540
|
+
background-clip: text;
|
|
541
|
+
-webkit-background-clip: text;
|
|
542
|
+
line-height: 1;
|
|
543
|
+
-webkit-text-fill-color: transparent;
|
|
544
|
+
white-space: nowrap;
|
|
545
|
+
`,queryStatusContainer:t`
|
|
546
|
+
display: flex;
|
|
547
|
+
gap: ${$.size[2]};
|
|
548
|
+
height: min-content;
|
|
549
|
+
`,queryStatusTag:t`
|
|
550
|
+
display: flex;
|
|
551
|
+
gap: ${$.size[1.5]};
|
|
552
|
+
box-sizing: border-box;
|
|
553
|
+
height: ${$.size[6.5]};
|
|
554
|
+
background: ${i(n.gray[50],n.darkGray[500])};
|
|
555
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
556
|
+
border-radius: ${$.border.radius.sm};
|
|
557
|
+
font-size: ${r.size.sm};
|
|
558
|
+
padding: ${$.size[1]};
|
|
559
|
+
padding-left: ${$.size[1.5]};
|
|
560
|
+
align-items: center;
|
|
561
|
+
font-weight: ${r.weight.medium};
|
|
562
|
+
border: ${i("1px solid "+n.gray[300],"1px solid transparent")};
|
|
563
|
+
user-select: none;
|
|
564
|
+
position: relative;
|
|
565
|
+
&:focus-visible {
|
|
566
|
+
outline-offset: 2px;
|
|
567
|
+
outline: 2px solid ${n.blue[800]};
|
|
568
|
+
}
|
|
569
|
+
`,queryStatusTagLabel:t`
|
|
570
|
+
font-size: ${r.size.xs};
|
|
571
|
+
`,queryStatusCount:t`
|
|
572
|
+
font-size: ${r.size.xs};
|
|
573
|
+
padding: 0 5px;
|
|
574
|
+
display: flex;
|
|
575
|
+
align-items: center;
|
|
576
|
+
justify-content: center;
|
|
577
|
+
color: ${i(n.gray[500],n.gray[400])};
|
|
578
|
+
background-color: ${i(n.gray[200],n.darkGray[300])};
|
|
579
|
+
border-radius: 2px;
|
|
580
|
+
font-variant-numeric: tabular-nums;
|
|
581
|
+
height: ${$.size[4.5]};
|
|
582
|
+
`,statusTooltip:t`
|
|
583
|
+
position: absolute;
|
|
584
|
+
z-index: 1;
|
|
585
|
+
background-color: ${i(n.gray[50],n.darkGray[500])};
|
|
586
|
+
top: 100%;
|
|
587
|
+
left: 50%;
|
|
588
|
+
transform: translate(-50%, calc(${$.size[2]}));
|
|
589
|
+
padding: ${$.size[.5]} ${$.size[2]};
|
|
590
|
+
border-radius: ${$.border.radius.sm};
|
|
591
|
+
font-size: ${r.size.xs};
|
|
592
|
+
border: 1px solid ${i(n.gray[400],n.gray[600])};
|
|
593
|
+
color: ${i(n.gray[600],n.gray[300])};
|
|
594
|
+
|
|
595
|
+
&::before {
|
|
596
|
+
top: 0px;
|
|
597
|
+
content: ' ';
|
|
598
|
+
display: block;
|
|
599
|
+
left: 50%;
|
|
600
|
+
transform: translate(-50%, -100%);
|
|
601
|
+
position: absolute;
|
|
602
|
+
border-color: transparent transparent
|
|
603
|
+
${i(n.gray[400],n.gray[600])} transparent;
|
|
604
|
+
border-style: solid;
|
|
605
|
+
border-width: 7px;
|
|
606
|
+
/* transform: rotate(180deg); */
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
&::after {
|
|
610
|
+
top: 0px;
|
|
611
|
+
content: ' ';
|
|
612
|
+
display: block;
|
|
613
|
+
left: 50%;
|
|
614
|
+
transform: translate(-50%, calc(-100% + 2px));
|
|
615
|
+
position: absolute;
|
|
616
|
+
border-color: transparent transparent
|
|
617
|
+
${i(n.gray[100],n.darkGray[500])} transparent;
|
|
618
|
+
border-style: solid;
|
|
619
|
+
border-width: 7px;
|
|
620
|
+
}
|
|
621
|
+
`,filtersContainer:t`
|
|
622
|
+
display: flex;
|
|
623
|
+
gap: ${$.size[2]};
|
|
624
|
+
& > button {
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
padding: ${$.size[.5]} ${$.size[1.5]} ${$.size[.5]}
|
|
627
|
+
${$.size[2]};
|
|
628
|
+
border-radius: ${$.border.radius.sm};
|
|
629
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
630
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[200])};
|
|
631
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
632
|
+
font-size: ${r.size.xs};
|
|
633
|
+
display: flex;
|
|
634
|
+
align-items: center;
|
|
635
|
+
line-height: ${r.lineHeight.sm};
|
|
636
|
+
gap: ${$.size[1.5]};
|
|
637
|
+
max-width: 160px;
|
|
638
|
+
&:focus-visible {
|
|
639
|
+
outline-offset: 2px;
|
|
640
|
+
border-radius: ${l.radius.xs};
|
|
641
|
+
outline: 2px solid ${n.blue[800]};
|
|
642
|
+
}
|
|
643
|
+
& svg {
|
|
644
|
+
width: ${$.size[3]};
|
|
645
|
+
height: ${$.size[3]};
|
|
646
|
+
color: ${i(n.gray[500],n.gray[400])};
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
`,filterInput:t`
|
|
650
|
+
padding: ${o[.5]} ${o[2]};
|
|
651
|
+
border-radius: ${$.border.radius.sm};
|
|
652
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
653
|
+
display: flex;
|
|
654
|
+
box-sizing: content-box;
|
|
655
|
+
align-items: center;
|
|
656
|
+
gap: ${$.size[1.5]};
|
|
657
|
+
max-width: 160px;
|
|
658
|
+
min-width: 100px;
|
|
659
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[200])};
|
|
660
|
+
height: min-content;
|
|
661
|
+
color: ${i(n.gray[600],n.gray[400])};
|
|
662
|
+
& > svg {
|
|
663
|
+
width: ${o[3]};
|
|
664
|
+
height: ${o[3]};
|
|
665
|
+
}
|
|
666
|
+
& input {
|
|
667
|
+
font-size: ${r.size.xs};
|
|
668
|
+
width: 100%;
|
|
669
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
670
|
+
border: none;
|
|
671
|
+
padding: 0;
|
|
672
|
+
line-height: ${r.lineHeight.sm};
|
|
673
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
674
|
+
&::placeholder {
|
|
675
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
676
|
+
}
|
|
677
|
+
&:focus {
|
|
678
|
+
outline: none;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
&:focus-within {
|
|
683
|
+
outline-offset: 2px;
|
|
684
|
+
border-radius: ${l.radius.xs};
|
|
685
|
+
outline: 2px solid ${n.blue[800]};
|
|
686
|
+
}
|
|
687
|
+
`,filterSelect:t`
|
|
688
|
+
padding: ${$.size[.5]} ${$.size[2]};
|
|
689
|
+
border-radius: ${$.border.radius.sm};
|
|
690
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
691
|
+
display: flex;
|
|
692
|
+
align-items: center;
|
|
693
|
+
gap: ${$.size[1.5]};
|
|
694
|
+
box-sizing: content-box;
|
|
695
|
+
max-width: 160px;
|
|
696
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[200])};
|
|
697
|
+
height: min-content;
|
|
698
|
+
& > svg {
|
|
699
|
+
color: ${i(n.gray[600],n.gray[400])};
|
|
700
|
+
width: ${$.size[2]};
|
|
701
|
+
height: ${$.size[2]};
|
|
702
|
+
}
|
|
703
|
+
& > select {
|
|
704
|
+
appearance: none;
|
|
705
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
706
|
+
min-width: 100px;
|
|
707
|
+
line-height: ${r.lineHeight.sm};
|
|
708
|
+
font-size: ${r.size.xs};
|
|
709
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
710
|
+
border: none;
|
|
711
|
+
&:focus {
|
|
712
|
+
outline: none;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
&:focus-within {
|
|
716
|
+
outline-offset: 2px;
|
|
717
|
+
border-radius: ${l.radius.xs};
|
|
718
|
+
outline: 2px solid ${n.blue[800]};
|
|
719
|
+
}
|
|
720
|
+
`,actionsContainer:t`
|
|
721
|
+
display: flex;
|
|
722
|
+
gap: ${$.size[2]};
|
|
723
|
+
`,actionsBtn:t`
|
|
724
|
+
border-radius: ${$.border.radius.sm};
|
|
725
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
726
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[200])};
|
|
727
|
+
width: ${$.size[6.5]};
|
|
728
|
+
height: ${$.size[6.5]};
|
|
729
|
+
justify-content: center;
|
|
730
|
+
display: flex;
|
|
731
|
+
align-items: center;
|
|
732
|
+
gap: ${$.size[1.5]};
|
|
733
|
+
max-width: 160px;
|
|
734
|
+
cursor: pointer;
|
|
735
|
+
padding: 0;
|
|
736
|
+
&:hover {
|
|
737
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
738
|
+
}
|
|
739
|
+
& svg {
|
|
740
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
741
|
+
width: ${$.size[3]};
|
|
742
|
+
height: ${$.size[3]};
|
|
743
|
+
}
|
|
744
|
+
&:focus-visible {
|
|
745
|
+
outline-offset: 2px;
|
|
746
|
+
border-radius: ${l.radius.xs};
|
|
747
|
+
outline: 2px solid ${n.blue[800]};
|
|
748
|
+
}
|
|
749
|
+
`,actionsBtnOffline:t`
|
|
750
|
+
& svg {
|
|
751
|
+
stroke: ${i(n.yellow[700],n.yellow[500])};
|
|
752
|
+
fill: ${i(n.yellow[700],n.yellow[500])};
|
|
753
|
+
}
|
|
754
|
+
`,overflowQueryContainer:t`
|
|
755
|
+
flex: 1;
|
|
756
|
+
overflow-y: auto;
|
|
757
|
+
& > div {
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
}
|
|
761
|
+
`,queryRow:t`
|
|
762
|
+
display: flex;
|
|
763
|
+
align-items: center;
|
|
764
|
+
padding: 0;
|
|
765
|
+
border: none;
|
|
766
|
+
cursor: pointer;
|
|
767
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
768
|
+
background-color: ${i(n.gray[50],n.darkGray[700])};
|
|
769
|
+
line-height: 1;
|
|
770
|
+
&:focus {
|
|
771
|
+
outline: none;
|
|
772
|
+
}
|
|
773
|
+
&:focus-visible {
|
|
774
|
+
outline-offset: -2px;
|
|
775
|
+
border-radius: ${l.radius.xs};
|
|
776
|
+
outline: 2px solid ${n.blue[800]};
|
|
777
|
+
}
|
|
778
|
+
&:hover .tsqd-query-hash {
|
|
779
|
+
background-color: ${i(n.gray[200],n.darkGray[600])};
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
& .tsqd-query-observer-count {
|
|
783
|
+
padding: 0 ${$.size[1]};
|
|
784
|
+
user-select: none;
|
|
785
|
+
min-width: ${$.size[6.5]};
|
|
786
|
+
align-self: stretch;
|
|
787
|
+
display: flex;
|
|
788
|
+
align-items: center;
|
|
789
|
+
justify-content: center;
|
|
790
|
+
font-size: ${r.size.xs};
|
|
791
|
+
font-weight: ${r.weight.medium};
|
|
792
|
+
border-bottom-width: 1px;
|
|
793
|
+
border-bottom-style: solid;
|
|
794
|
+
border-bottom: 1px solid ${i(n.gray[300],n.darkGray[700])};
|
|
795
|
+
}
|
|
796
|
+
& .tsqd-query-hash {
|
|
797
|
+
user-select: text;
|
|
798
|
+
font-size: ${r.size.xs};
|
|
799
|
+
display: flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
min-height: ${$.size[6]};
|
|
802
|
+
flex: 1;
|
|
803
|
+
padding: ${$.size[1]} ${$.size[2]};
|
|
804
|
+
font-family:
|
|
805
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
806
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
807
|
+
border-bottom: 1px solid ${i(n.gray[300],n.darkGray[400])};
|
|
808
|
+
text-align: left;
|
|
809
|
+
text-overflow: clip;
|
|
810
|
+
word-break: break-word;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
& .tsqd-query-disabled-indicator {
|
|
814
|
+
align-self: stretch;
|
|
815
|
+
display: flex;
|
|
816
|
+
align-items: center;
|
|
817
|
+
padding: 0 ${$.size[2]};
|
|
818
|
+
color: ${i(n.gray[800],n.gray[300])};
|
|
819
|
+
background-color: ${i(n.gray[300],n.darkGray[600])};
|
|
820
|
+
border-bottom: 1px solid ${i(n.gray[300],n.darkGray[400])};
|
|
821
|
+
font-size: ${r.size.xs};
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
& .tsqd-query-static-indicator {
|
|
825
|
+
align-self: stretch;
|
|
826
|
+
display: flex;
|
|
827
|
+
align-items: center;
|
|
828
|
+
padding: 0 ${$.size[2]};
|
|
829
|
+
color: ${i(n.teal[800],n.teal[300])};
|
|
830
|
+
background-color: ${i(n.teal[100],n.teal[900])};
|
|
831
|
+
border-bottom: 1px solid ${i(n.teal[300],n.teal[700])};
|
|
832
|
+
font-size: ${r.size.xs};
|
|
833
|
+
}
|
|
834
|
+
`,selectedQueryRow:t`
|
|
835
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
836
|
+
`,detailsContainer:t`
|
|
837
|
+
flex: 1 1 700px;
|
|
838
|
+
background-color: ${i(n.gray[50],n.darkGray[700])};
|
|
839
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
840
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
841
|
+
display: flex;
|
|
842
|
+
flex-direction: column;
|
|
843
|
+
overflow-y: auto;
|
|
844
|
+
display: flex;
|
|
845
|
+
text-align: left;
|
|
846
|
+
`,detailsHeader:t`
|
|
847
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
848
|
+
position: sticky;
|
|
849
|
+
top: 0;
|
|
850
|
+
z-index: 2;
|
|
851
|
+
background-color: ${i(n.gray[200],n.darkGray[600])};
|
|
852
|
+
padding: ${$.size[1.5]} ${$.size[2]};
|
|
853
|
+
font-weight: ${r.weight.medium};
|
|
854
|
+
font-size: ${r.size.xs};
|
|
855
|
+
line-height: ${r.lineHeight.xs};
|
|
856
|
+
text-align: left;
|
|
857
|
+
`,detailsBody:t`
|
|
858
|
+
margin: ${$.size[1.5]} 0px ${$.size[2]} 0px;
|
|
859
|
+
& > div {
|
|
860
|
+
display: flex;
|
|
861
|
+
align-items: stretch;
|
|
862
|
+
padding: 0 ${$.size[2]};
|
|
863
|
+
line-height: ${r.lineHeight.sm};
|
|
864
|
+
justify-content: space-between;
|
|
865
|
+
& > span {
|
|
866
|
+
font-size: ${r.size.xs};
|
|
867
|
+
}
|
|
868
|
+
& > span:nth-child(2) {
|
|
869
|
+
font-variant-numeric: tabular-nums;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
& > div:first-child {
|
|
874
|
+
margin-bottom: ${$.size[1.5]};
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
& code {
|
|
878
|
+
font-family:
|
|
879
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
880
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
881
|
+
margin: 0;
|
|
882
|
+
font-size: ${r.size.xs};
|
|
883
|
+
line-height: ${r.lineHeight.xs};
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
& pre {
|
|
887
|
+
margin: 0;
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: center;
|
|
890
|
+
}
|
|
891
|
+
`,queryDetailsStatus:t`
|
|
892
|
+
border: 1px solid ${n.darkGray[200]};
|
|
893
|
+
border-radius: ${$.border.radius.sm};
|
|
894
|
+
font-weight: ${r.weight.medium};
|
|
895
|
+
padding: ${$.size[1]} ${$.size[2.5]};
|
|
896
|
+
`,actionsBody:t`
|
|
897
|
+
flex-wrap: wrap;
|
|
898
|
+
margin: ${$.size[2]} 0px ${$.size[2]} 0px;
|
|
899
|
+
display: flex;
|
|
900
|
+
gap: ${$.size[2]};
|
|
901
|
+
padding: 0px ${$.size[2]};
|
|
902
|
+
& > button {
|
|
903
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
904
|
+
font-size: ${r.size.xs};
|
|
905
|
+
padding: ${$.size[1]} ${$.size[2]};
|
|
906
|
+
display: flex;
|
|
907
|
+
border-radius: ${$.border.radius.sm};
|
|
908
|
+
background-color: ${i(n.gray[100],n.darkGray[600])};
|
|
909
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[400])};
|
|
910
|
+
align-items: center;
|
|
911
|
+
gap: ${$.size[2]};
|
|
912
|
+
font-weight: ${r.weight.medium};
|
|
913
|
+
line-height: ${r.lineHeight.xs};
|
|
914
|
+
cursor: pointer;
|
|
915
|
+
&:focus-visible {
|
|
916
|
+
outline-offset: 2px;
|
|
917
|
+
border-radius: ${l.radius.xs};
|
|
918
|
+
outline: 2px solid ${n.blue[800]};
|
|
919
|
+
}
|
|
920
|
+
&:hover {
|
|
921
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
&:disabled {
|
|
925
|
+
opacity: 0.6;
|
|
926
|
+
cursor: not-allowed;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
& > span {
|
|
930
|
+
width: ${o[1.5]};
|
|
931
|
+
height: ${o[1.5]};
|
|
932
|
+
border-radius: ${$.border.radius.full};
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
`,actionsSelect:t`
|
|
936
|
+
font-size: ${r.size.xs};
|
|
937
|
+
padding: ${$.size[.5]} ${$.size[2]};
|
|
938
|
+
display: flex;
|
|
939
|
+
border-radius: ${$.border.radius.sm};
|
|
940
|
+
overflow: hidden;
|
|
941
|
+
background-color: ${i(n.gray[100],n.darkGray[600])};
|
|
942
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[400])};
|
|
943
|
+
align-items: center;
|
|
944
|
+
gap: ${$.size[2]};
|
|
945
|
+
font-weight: ${r.weight.medium};
|
|
946
|
+
line-height: ${r.lineHeight.sm};
|
|
947
|
+
color: ${i(n.red[500],n.red[400])};
|
|
948
|
+
cursor: pointer;
|
|
949
|
+
position: relative;
|
|
950
|
+
&:hover {
|
|
951
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
952
|
+
}
|
|
953
|
+
& > span {
|
|
954
|
+
width: ${o[1.5]};
|
|
955
|
+
height: ${o[1.5]};
|
|
956
|
+
border-radius: ${$.border.radius.full};
|
|
957
|
+
}
|
|
958
|
+
&:focus-within {
|
|
959
|
+
outline-offset: 2px;
|
|
960
|
+
border-radius: ${l.radius.xs};
|
|
961
|
+
outline: 2px solid ${n.blue[800]};
|
|
962
|
+
}
|
|
963
|
+
& select {
|
|
964
|
+
position: absolute;
|
|
965
|
+
top: 0;
|
|
966
|
+
left: 0;
|
|
967
|
+
width: 100%;
|
|
968
|
+
height: 100%;
|
|
969
|
+
appearance: none;
|
|
970
|
+
background-color: transparent;
|
|
971
|
+
border: none;
|
|
972
|
+
color: transparent;
|
|
973
|
+
outline: none;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
& svg path {
|
|
977
|
+
stroke: ${$.colors.red[400]};
|
|
978
|
+
}
|
|
979
|
+
& svg {
|
|
980
|
+
width: ${$.size[2]};
|
|
981
|
+
height: ${$.size[2]};
|
|
982
|
+
}
|
|
983
|
+
`,settingsMenu:t`
|
|
984
|
+
display: flex;
|
|
985
|
+
& * {
|
|
986
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
987
|
+
}
|
|
988
|
+
flex-direction: column;
|
|
989
|
+
gap: ${o[.5]};
|
|
990
|
+
border-radius: ${$.border.radius.sm};
|
|
991
|
+
border: 1px solid ${i(n.gray[300],n.gray[700])};
|
|
992
|
+
background-color: ${i(n.gray[50],n.darkGray[600])};
|
|
993
|
+
font-size: ${r.size.xs};
|
|
994
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
995
|
+
z-index: 99999;
|
|
996
|
+
min-width: 120px;
|
|
997
|
+
padding: ${o[.5]};
|
|
998
|
+
`,settingsSubTrigger:t`
|
|
999
|
+
display: flex;
|
|
1000
|
+
align-items: center;
|
|
1001
|
+
justify-content: space-between;
|
|
1002
|
+
border-radius: ${$.border.radius.xs};
|
|
1003
|
+
padding: ${$.size[1]} ${$.size[1]};
|
|
1004
|
+
cursor: pointer;
|
|
1005
|
+
background-color: transparent;
|
|
1006
|
+
border: none;
|
|
1007
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
1008
|
+
& svg {
|
|
1009
|
+
color: ${i(n.gray[600],n.gray[400])};
|
|
1010
|
+
transform: rotate(-90deg);
|
|
1011
|
+
width: ${$.size[2]};
|
|
1012
|
+
height: ${$.size[2]};
|
|
1013
|
+
}
|
|
1014
|
+
&:hover {
|
|
1015
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
1016
|
+
}
|
|
1017
|
+
&:focus-visible {
|
|
1018
|
+
outline-offset: 2px;
|
|
1019
|
+
outline: 2px solid ${n.blue[800]};
|
|
1020
|
+
}
|
|
1021
|
+
&.data-disabled {
|
|
1022
|
+
opacity: 0.6;
|
|
1023
|
+
cursor: not-allowed;
|
|
1024
|
+
}
|
|
1025
|
+
`,settingsMenuHeader:t`
|
|
1026
|
+
padding: ${$.size[1]} ${$.size[1]};
|
|
1027
|
+
font-weight: ${r.weight.medium};
|
|
1028
|
+
border-bottom: 1px solid ${i(n.gray[300],n.darkGray[400])};
|
|
1029
|
+
color: ${i(n.gray[500],n.gray[400])};
|
|
1030
|
+
font-size: ${r.size.xs};
|
|
1031
|
+
`,settingsSubButton:t`
|
|
1032
|
+
display: flex;
|
|
1033
|
+
align-items: center;
|
|
1034
|
+
justify-content: space-between;
|
|
1035
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
1036
|
+
font-size: ${r.size.xs};
|
|
1037
|
+
border-radius: ${$.border.radius.xs};
|
|
1038
|
+
padding: ${$.size[1]} ${$.size[1]};
|
|
1039
|
+
cursor: pointer;
|
|
1040
|
+
background-color: transparent;
|
|
1041
|
+
border: none;
|
|
1042
|
+
& svg {
|
|
1043
|
+
color: ${i(n.gray[600],n.gray[400])};
|
|
1044
|
+
}
|
|
1045
|
+
&:hover {
|
|
1046
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
1047
|
+
}
|
|
1048
|
+
&:focus-visible {
|
|
1049
|
+
outline-offset: 2px;
|
|
1050
|
+
outline: 2px solid ${n.blue[800]};
|
|
1051
|
+
}
|
|
1052
|
+
`,themeSelectedButton:t`
|
|
1053
|
+
background-color: ${i(n.purple[100],n.purple[900])};
|
|
1054
|
+
color: ${i(n.purple[700],n.purple[300])};
|
|
1055
|
+
& svg {
|
|
1056
|
+
color: ${i(n.purple[700],n.purple[300])};
|
|
1057
|
+
}
|
|
1058
|
+
&:hover {
|
|
1059
|
+
background-color: ${i(n.purple[100],n.purple[900])};
|
|
1060
|
+
}
|
|
1061
|
+
`,viewToggle:t`
|
|
1062
|
+
border-radius: ${$.border.radius.sm};
|
|
1063
|
+
background-color: ${i(n.gray[200],n.darkGray[600])};
|
|
1064
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[200])};
|
|
1065
|
+
display: flex;
|
|
1066
|
+
padding: 0;
|
|
1067
|
+
font-size: ${r.size.xs};
|
|
1068
|
+
color: ${i(n.gray[700],n.gray[300])};
|
|
1069
|
+
overflow: hidden;
|
|
1070
|
+
|
|
1071
|
+
&:has(:focus-visible) {
|
|
1072
|
+
outline: 2px solid ${n.blue[800]};
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
& .tsqd-radio-toggle {
|
|
1076
|
+
opacity: 0.5;
|
|
1077
|
+
display: flex;
|
|
1078
|
+
& label {
|
|
1079
|
+
display: flex;
|
|
1080
|
+
align-items: center;
|
|
1081
|
+
cursor: pointer;
|
|
1082
|
+
line-height: ${r.lineHeight.md};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
& label:hover {
|
|
1086
|
+
background-color: ${i(n.gray[100],n.darkGray[500])};
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
& > [data-checked] {
|
|
1091
|
+
opacity: 1;
|
|
1092
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
1093
|
+
& label:hover {
|
|
1094
|
+
background-color: ${i(n.gray[100],n.darkGray[400])};
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
& .tsqd-radio-toggle:first-child {
|
|
1099
|
+
& label {
|
|
1100
|
+
padding: 0 ${$.size[1.5]} 0 ${$.size[2]};
|
|
1101
|
+
}
|
|
1102
|
+
border-right: 1px solid ${i(n.gray[300],n.darkGray[200])};
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
& .tsqd-radio-toggle:nth-child(2) {
|
|
1106
|
+
& label {
|
|
1107
|
+
padding: 0 ${$.size[2]} 0 ${$.size[1.5]};
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
`,devtoolsEditForm:t`
|
|
1111
|
+
padding: ${o[2]};
|
|
1112
|
+
& > [data-error='true'] {
|
|
1113
|
+
outline: 2px solid ${i(n.red[200],n.red[800])};
|
|
1114
|
+
outline-offset: 2px;
|
|
1115
|
+
border-radius: ${l.radius.xs};
|
|
1116
|
+
}
|
|
1117
|
+
`,devtoolsEditTextarea:t`
|
|
1118
|
+
width: 100%;
|
|
1119
|
+
max-height: 500px;
|
|
1120
|
+
font-family: 'Fira Code', monospace;
|
|
1121
|
+
font-size: ${r.size.xs};
|
|
1122
|
+
border-radius: ${l.radius.sm};
|
|
1123
|
+
field-sizing: content;
|
|
1124
|
+
padding: ${o[2]};
|
|
1125
|
+
background-color: ${i(n.gray[100],n.darkGray[800])};
|
|
1126
|
+
color: ${i(n.gray[900],n.gray[100])};
|
|
1127
|
+
border: 1px solid ${i(n.gray[200],n.gray[700])};
|
|
1128
|
+
resize: none;
|
|
1129
|
+
&:focus {
|
|
1130
|
+
outline-offset: 2px;
|
|
1131
|
+
border-radius: ${l.radius.xs};
|
|
1132
|
+
outline: 2px solid ${i(n.blue[200],n.blue[800])};
|
|
1133
|
+
}
|
|
1134
|
+
`,devtoolsEditFormActions:t`
|
|
1135
|
+
display: flex;
|
|
1136
|
+
justify-content: space-between;
|
|
1137
|
+
gap: ${o[2]};
|
|
1138
|
+
align-items: center;
|
|
1139
|
+
padding-top: ${o[1]};
|
|
1140
|
+
font-size: ${r.size.xs};
|
|
1141
|
+
`,devtoolsEditFormError:t`
|
|
1142
|
+
color: ${i(n.red[700],n.red[500])};
|
|
1143
|
+
`,devtoolsEditFormActionContainer:t`
|
|
1144
|
+
display: flex;
|
|
1145
|
+
gap: ${o[2]};
|
|
1146
|
+
`,devtoolsEditFormAction:t`
|
|
1147
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1148
|
+
font-size: ${r.size.xs};
|
|
1149
|
+
padding: ${o[1]} ${$.size[2]};
|
|
1150
|
+
display: flex;
|
|
1151
|
+
border-radius: ${l.radius.sm};
|
|
1152
|
+
background-color: ${i(n.gray[100],n.darkGray[600])};
|
|
1153
|
+
border: 1px solid ${i(n.gray[300],n.darkGray[400])};
|
|
1154
|
+
align-items: center;
|
|
1155
|
+
gap: ${o[2]};
|
|
1156
|
+
font-weight: ${r.weight.medium};
|
|
1157
|
+
line-height: ${r.lineHeight.xs};
|
|
1158
|
+
cursor: pointer;
|
|
1159
|
+
&:focus-visible {
|
|
1160
|
+
outline-offset: 2px;
|
|
1161
|
+
border-radius: ${l.radius.xs};
|
|
1162
|
+
outline: 2px solid ${n.blue[800]};
|
|
1163
|
+
}
|
|
1164
|
+
&:hover {
|
|
1165
|
+
background-color: ${i(n.gray[200],n.darkGray[500])};
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
&:disabled {
|
|
1169
|
+
opacity: 0.6;
|
|
1170
|
+
cursor: not-allowed;
|
|
1171
|
+
}
|
|
1172
|
+
`}},nt=e=>Bi("light",e),rt=e=>Bi("dark",e);Vn(["click","mousedown","input"]);var wd=e=>{const[t,n]=fs({prefix:"TanstackQueryDevtools"}),r=os(),o=D(()=>{const s=t.theme_preference||ys;return s!=="system"?s:r()});return v(go.Provider,{value:e,get children(){return v(ws,{disabled:!0,localStore:t,setLocalStore:n,get children(){return v(vo.Provider,{value:o,get children(){return v(cd,{get children(){return v(ud,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},$d=wd;export{$d as default};
|