@prisma/studio-core 0.0.0-dev.202504121748 → 0.0.0-dev.202504132239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/pglite/index.cjs +1 -1
- package/dist/data/pglite/index.js +1 -1
- package/dist/ui/index.cjs +587 -427
- package/dist/ui/index.js +163 -1
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";var Tc=Object.create;var gr=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var Pc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Dc=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(e&&(t=e(e=0)),t);var io=(e,t)=>{for(var n in t)gr(e,n,{get:t[n],enumerable:!0})},Ei=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pc(t))!Dc.call(e,o)&&o!==n&&gr(e,o,{get:()=>t[o],enumerable:!(r=Ac(t,o))||r.enumerable});return e};var Ti=(e,t,n)=>(n=e!=null?Tc(Mc(e)):{},Ei(t||!e||!e.__esModule?gr(n,"default",{value:e,enumerable:!0}):n,e)),Oc=e=>Ei(gr({},"__esModule",{value:!0}),e);var te=Dn(()=>{});function Ai(e){let t=String(e),n=t.length-1;return j.context.id+(n?String.fromCharCode(96+n):"")+t}function Qt(e){j.context=e}function Ic(){return{...j.context,id:j.getNextContextId(),count:0}}function dt(e,t){let n=oe,r=X,o=e.length===0,i=t===void 0?r:t,s=o?Vi:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>ue(()=>qt(s)));X=s,oe=null;try{return ze(a,!0)}finally{oe=n,X=r}}function q(e,t){t=t?Object.assign({},br,t):br;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(L&&L.running&&L.sources.has(n)?o=o(n.tValue):o=o(n.value)),Wi(n,o));return[Qi.bind(n),r]}function wr(e,t,n){let r=kr(e,t,!0,Ke);hn&&L&&L.running?xe.push(r):mn(r)}function K(e,t,n){let r=kr(e,t,!1,Ke);hn&&L&&L.running?xe.push(r):mn(r)}function V(e,t,n){Ki=Bc;let r=kr(e,t,!1,Ke),o=Ln&&Ce(Ln);o&&(r.suspense=o),(!n||!n.render)&&(r.user=!0),De?De.push(r):mn(r)}function S(e,t,n){n=n?Object.assign({},br,n):br;let r=kr(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,hn&&L&&L.running?(r.tState=Ke,xe.push(r)):mn(r),Qi.bind(r)}function Lc(e){return e&&typeof e=="object"&&"then"in e}function qc(e,t,n){let r,o,i;r=!0,o=e,i={};let s=null,a=so,l=null,c=!1,d=!1,u="initialValue"in i,g=typeof r=="function"&&S(r),f=new Set,[h,p]=(i.storage||q)(i.initialValue),[y,v]=q(void 0),[b,w]=q(void 0,{equals:!1}),[x,C]=q(u?"ready":"unresolved");j.context&&(l=j.getNextContextId(),i.ssrLoadFrom==="initial"?a=i.initialValue:j.load&&j.has(l)&&(a=j.load(l)));function I(A,B,N,J){return s===A&&(s=null,J!==void 0&&(u=!0),(A===a||B===a)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(J,{value:B})),a=so,L&&A&&c?(L.promises.delete(A),c=!1,ze(()=>{L.running=!0,O(B,N)},!1)):O(B,N)),B}function O(A,B){ze(()=>{B===void 0&&p(()=>A),C(B!==void 0?"errored":u?"ready":"unresolved"),v(B);for(let N of f.keys())N.decrement();f.clear()},!1)}function F(){let A=Ln&&Ce(Ln),B=h(),N=y();if(N!==void 0&&!s)throw N;return oe&&!oe.user&&A&&wr(()=>{b(),s&&(A.resolved&&L&&c?L.promises.add(s):f.has(A)||(A.increment(),f.add(A)))}),B}function $(A=!0){if(A!==!1&&d)return;d=!1;let B=g?g():r;if(c=L&&L.running,B==null||B===!1){I(s,ue(h));return}L&&s&&L.promises.delete(s);let N=a!==so?a:ue(()=>o(B,{value:h(),refetching:A}));return Lc(N)?(s=N,"value"in N?(N.status==="success"?I(s,N.value,void 0,B):I(s,void 0,co(N.value),B),N):(d=!0,queueMicrotask(()=>d=!1),ze(()=>{C(u?"refreshing":"pending"),w()},!1),N.then(J=>I(N,J,void 0,B),J=>I(N,void 0,co(J),B)))):(I(s,N,void 0,B),N)}return Object.defineProperties(F,{state:{get:()=>x()},error:{get:()=>y()},loading:{get(){let A=x();return A==="pending"||A==="refreshing"}},latest:{get(){if(!u)return F();let A=y();if(A&&!s)throw A;return h()}}}),g?wr(()=>$(!1)):$(!1),[F,{refetch:$,mutate:p}]}function Ui(e){return ze(e,!1)}function ue(e){if(!fn&&oe===null)return e();let t=oe;oe=null;try{return fn?fn.untrack(e):e()}finally{oe=t}}function ft(e,t,n){let r=Array.isArray(e),o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(i)return i=!1,s;let l=ue(()=>t(a,o,s));return o=a,l}}function $t(e){V(()=>ue(e))}function H(e){return X===null||(X.cleanups===null?X.cleanups=[e]:X.cleanups.push(e)),e}function xr(){return X}function _c(e,t){let n=X,r=oe;X=e,oe=null;try{return ze(t,!0)}catch(o){Er(o)}finally{X=n,oe=r}}function Gi(e){if(L&&L.running)return e(),L.done;let t=oe,n=X;return Promise.resolve().then(()=>{oe=t,X=n;let r;return(hn||Ln)&&(r=L||(L={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(o=>r.resolve=o)),r.running=!0),ze(e,!1),oe=X=null,r?r.done:void 0})}function Hi(){return[Rc,Gi]}function Ee(e,t){let n=Symbol("context");return{id:n,Provider:Kc(n),defaultValue:e}}function Ce(e){let t;return X&&X.context&&(t=X.context[e.id])!==void 0?t:e.defaultValue}function ji(e){let t=S(e),n=S(()=>uo(t()));return n.toArray=()=>{let r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function Qi(){let e=L&&L.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===Ke)mn(this);else{let t=xe;xe=null,ze(()=>Cr(this),!1),xe=t}if(oe){let t=this.observers?this.observers.length:0;oe.sources?(oe.sources.push(this),oe.sourceSlots.push(t)):(oe.sources=[this],oe.sourceSlots=[t]),this.observers?(this.observers.push(oe),this.observerSlots.push(oe.sources.length-1)):(this.observers=[oe],this.observerSlots=[oe.sources.length-1])}return e&&L.sources.has(this)?this.tValue:this.value}function Wi(e,t,n){let r=L&&L.running&&L.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(L){let o=L.running;(o||!n&&L.sources.has(e))&&(L.sources.add(e),e.tValue=t),o||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ze(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=L&&L.running;s&&L.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?xe.push(i):De.push(i),i.observers&&Xi(i)),s?i.tState=Ke:i.state=Ke)}if(xe.length>1e6)throw xe=[],new Error},!1)}return t}function mn(e){if(!e.fn)return;qt(e);let t=$r;Di(e,L&&L.running&&L.sources.has(e)?e.tValue:e.value,t),L&&!L.running&&L.sources.has(e)&&queueMicrotask(()=>{ze(()=>{L&&(L.running=!0),oe=X=e,Di(e,e.tValue,t),oe=X=null},!1)})}function Di(e,t,n){let r,o=X,i=oe;oe=X=e;try{r=e.fn(t)}catch(s){return e.pure&&(L&&L.running?(e.tState=Ke,e.tOwned&&e.tOwned.forEach(qt),e.tOwned=void 0):(e.state=Ke,e.owned&&e.owned.forEach(qt),e.owned=null)),e.updatedAt=n+1,Er(s)}finally{oe=i,X=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Wi(e,r,!0):L&&L.running&&e.pure?(L.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function kr(e,t,n,r=Ke,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:X,context:X?X.context:null,pure:n};if(L&&L.running&&(i.state=0,i.tState=r),X===null||X!==Vi&&(L&&L.running&&X.pure?X.tOwned?X.tOwned.push(i):X.tOwned=[i]:X.owned?X.owned.push(i):X.owned=[i]),fn&&i.fn){let[s,a]=q(void 0,{equals:!1}),l=fn.factory(i.fn,a);H(()=>l.dispose());let c=()=>Gi(a).then(()=>d.dispose()),d=fn.factory(i.fn,c);i.fn=u=>(s(),L&&L.running?d.track(u):l.track(u))}return i}function qn(e){let t=L&&L.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Fn)return Cr(e);if(e.suspense&&ue(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<$r);){if(t&&L.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let o=e,i=n[r+1];for(;(o=o.owner)&&o!==i;)if(L.disposed.has(o))return}if((t?e.tState:e.state)===Ke)mn(e);else if((t?e.tState:e.state)===Fn){let o=xe;xe=null,ze(()=>Cr(e,n[0]),!1),xe=o}}}function ze(e,t){if(xe)return e();let n=!1;t||(xe=[]),De?n=!0:De=[],$r++;try{let r=e();return zc(n),r}catch(r){n||(De=null),xe=null,Er(r)}}function zc(e){if(xe&&(hn&&L&&L.running?Nc(xe):Yi(xe),xe=null),e)return;let t;if(L){if(!L.promises.size&&!L.queue.size){let r=L.sources,o=L.disposed;De.push.apply(De,L.effects),t=L.resolve;for(let i of De)"tState"in i&&(i.state=i.tState),delete i.tState;L=null,ze(()=>{for(let i of o)qt(i);for(let i of r){if(i.value=i.tValue,i.owned)for(let s=0,a=i.owned.length;s<a;s++)qt(i.owned[s]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0}Mi(!1)},!1)}else if(L.running){L.running=!1,L.effects.push.apply(L.effects,De),De=null,Mi(!0);return}}let n=De;De=null,n.length&&ze(()=>Ki(n),!1),t&&t()}function Yi(e){for(let t=0;t<e.length;t++)qn(e[t])}function Nc(e){for(let t=0;t<e.length;t++){let n=e[t],r=L.queue;r.has(n)||(r.add(n),hn(()=>{r.delete(n),ze(()=>{L.running=!0,qn(n)},!1),L&&(L.running=!1)}))}}function Bc(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:qn(r)}if(j.context){if(j.count){j.effects||(j.effects=[]),j.effects.push(...e.slice(0,n));return}Qt()}for(j.effects&&(j.done||!j.count)&&(e=[...j.effects,...e],n+=j.effects.length,delete j.effects),t=0;t<n;t++)qn(e[t])}function Cr(e,t){let n=L&&L.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=n?o.tState:o.state;i===Ke?o!==t&&(!o.updatedAt||o.updatedAt<$r)&&qn(o):i===Fn&&Cr(o,t)}}}function Xi(e){let t=L&&L.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=Fn:r.state=Fn,r.pure?xe.push(r):De.push(r),r.observers&&Xi(r))}}function qt(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)qt(e.tOwned[t]);delete e.tOwned}if(L&&L.running&&e.pure)Zi(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)qt(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}L&&L.running?e.tState=0:e.state=0}function Zi(e,t){if(t||(e.tState=0,L.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)Zi(e.owned[n])}function co(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Oi(e,t,n){try{for(let r of t)r(e)}catch(r){Er(r,n&&n.owner||null)}}function Er(e,t=X){let n=Pi&&t&&t.context&&t.context[Pi],r=co(e);if(!n)throw r;De?De.push({fn(){Oi(r,n,t)},state:Ke}):Oi(r,n,t)}function uo(e){if(typeof e=="function"&&!e.length)return uo(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=uo(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Kc(e,t){return function(r){let o;return K(()=>o=ue(()=>(X.context={...X.context,[e]:r.value},ji(()=>r.children))),void 0),o}}function Sr(e){for(let t=0;t<e.length;t++)e[t]()}function Vc(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return H(()=>Sr(i)),()=>{let l=e()||[],c=l.length,d,u;return l[Bn],ue(()=>{let f,h,p,y,v,b,w,x,C;if(c===0)s!==0&&(Sr(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[fo],o[0]=dt(I=>(i[0]=I,n.fallback())),s=1);else if(s===0){for(o=new Array(c),u=0;u<c;u++)r[u]=l[u],o[u]=dt(g);s=c}else{for(p=new Array(c),y=new Array(c),a&&(v=new Array(c)),b=0,w=Math.min(s,c);b<w&&r[b]===l[b];b++);for(w=s-1,x=c-1;w>=b&&x>=b&&r[w]===l[x];w--,x--)p[x]=o[w],y[x]=i[w],a&&(v[x]=a[w]);for(f=new Map,h=new Array(x+1),u=x;u>=b;u--)C=l[u],d=f.get(C),h[u]=d===void 0?-1:d,f.set(C,u);for(d=b;d<=w;d++)C=r[d],u=f.get(C),u!==void 0&&u!==-1?(p[u]=o[d],y[u]=i[d],a&&(v[u]=a[d]),u=h[u],f.set(C,u)):i[d]();for(u=b;u<c;u++)u in p?(o[u]=p[u],i[u]=y[u],a&&(a[u]=v[u],a[u](u))):o[u]=dt(g);o=o.slice(0,s=c),r=l.slice(0)}return o});function g(f){if(i[u]=f,a){let[h,p]=q(u);return a[u]=p,t(l[u],h)}return t(l[u])}}}function Uc(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,l;return H(()=>Sr(i)),()=>{let c=e()||[],d=c.length;return c[Bn],ue(()=>{if(d===0)return a!==0&&(Sr(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[fo],o[0]=dt(g=>(i[0]=g,n.fallback())),a=1),o;for(r[0]===fo&&(i[0](),i=[],r=[],o=[],a=0),l=0;l<d;l++)l<r.length&&r[l]!==c[l]?s[l](()=>c[l]):l>=r.length&&(o[l]=dt(u));for(;l<r.length;l++)i[l]();return a=s.length=i.length=d,r=c.slice(0),o=o.slice(0,a)});function u(g){i[l]=g;let[f,h]=q(c[l]);return s[l]=h,t(f,l)}}}function m(e,t){if(Gc&&j.context){let n=j.context;Qt(Ic());let r=ue(()=>e(t||{}));return Qt(n),r}return ue(()=>e(t||{}))}function hr(){return!0}function lo(e){return(e=typeof e=="function"?e():e)?e:{}}function Hc(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function W(...e){let t=!1;for(let s=0;s<e.length;s++){let a=e[s];t=t||!!a&&vr in a,e[s]=typeof a=="function"?(t=!0,S(a)):a}if(Bi&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){let l=lo(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in lo(e[a]))return!0;return!1},keys(){let s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(lo(e[a])));return[...new Set(s)]}},go);let n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){let a=e[s];if(!a)continue;let l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d==="__proto__"||d==="constructor")continue;let u=Object.getOwnPropertyDescriptor(a,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:Hc.bind(n[d]=[u.get.bind(a)])}:u.value!==void 0?u:void 0;else{let g=n[d];g&&(u.get?g.push(u.get.bind(a)):u.value!==void 0&&g.push(()=>u.value))}}}let o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){let a=i[s],l=r[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function ne(e,...t){if(Bi&&vr in e){let o=new Set(t.length>1?t.flat():t[0]),i=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},go));return i.push(new Proxy({get(s){return o.has(s)?void 0:e[s]},has(s){return o.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.has(s))}},go)),i}let n={},r=t.map(()=>({}));for(let o of Object.getOwnPropertyNames(e)){let i=Object.getOwnPropertyDescriptor(e,o),s=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable,a=!1,l=0;for(let c of t)c.includes(o)&&(a=!0,s?r[l][o]=i.value:Object.defineProperty(r[l],o,i)),++l;a||(s?n[o]=i.value:Object.defineProperty(n,o,i))}return[...r,n]}function bo(e){let t,n,r=o=>{let i=j.context;if(i){let[a,l]=q();j.count||(j.count=0),j.count++,(n||(n=e())).then(c=>{!j.done&&Qt(i),j.count--,l(()=>c.default),Qt()}),t=a}else if(!t){let[a]=qc(()=>(n||(n=e())).then(l=>l.default));t=a}let s;return S(()=>(s=t())?ue(()=>{if(!i||j.done)return s(o);let a=j.context;Qt(i);let l=s(o);return Qt(a),l}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}function Ve(){return j.context?j.getNextContextId():`cl-${jc++}`}function es(e){let t="fallback"in e&&{fallback:()=>e.fallback};return S(Vc(()=>e.each,e.children,t||void 0))}function ts(e){let t="fallback"in e&&{fallback:()=>e.fallback};return S(Uc(()=>e.each,e.children,t||void 0))}function U(e){let t=e.keyed,n=S(()=>e.when,void 0,void 0),r=t?n:S(n,void 0,{equals:(o,i)=>!o==!i});return S(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?ue(()=>i(t?o:()=>{if(!ue(r))throw Ji("Show");return n()})):i}return e.fallback},void 0,void 0)}function ns(e){let t=ji(()=>e.children),n=S(()=>{let r=t(),o=Array.isArray(r)?r:[r],i=()=>{};for(let s=0;s<o.length;s++){let a=s,l=o[s],c=i,d=S(()=>c()?void 0:l.when,void 0,void 0),u=l.keyed?d:S(d,void 0,{equals:(g,f)=>!g==!f});i=()=>c()||(u()?[a,d,l]:void 0)}return i});return S(()=>{let r=n()();if(!r)return e.fallback;let[o,i,s]=r,a=s.children;return typeof a=="function"&&a.length>0?ue(()=>a(s.keyed?i():()=>{if(ue(n)()?.[0]!==o)throw Ji("Match");return i()})):a},void 0,void 0)}function Tr(e){return e}function Jc(e,t){let n=Zc[e];return typeof n=="object"?n[t]?n.$:void 0:n}function ru(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let d=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],d)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){let d=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],d),t[o]=n[i]}else{if(!c){c=new Map;let u=a;for(;u<i;)c.set(n[u],u++)}let d=c.get(t[s]);if(d!=null)if(a<d&&d<i){let u=s,g=1,f;for(;++u<o&&u<i&&!((f=c.get(t[u]))==null||f!==d+g);)g++;if(g>d-a){let h=t[s];for(;a<d;)e.insertBefore(n[a++],h)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}function wo(e,t,n,r={}){let o;return dt(i=>{o=i,t===document?e():k(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function z(e,t,n,r){let o,i=()=>{let a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},s=t?()=>ue(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function Kn(e,t=window.document){let n=t[On]||(t[On]=new Set);for(let r=0,o=e.length;r<o;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,is))}}function os(e=window.document){if(e[On]){for(let t of e[On].keys())e.removeEventListener(t,is);delete e[On]}}function P(e,t,n){Yt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function ou(e,t,n,r){Yt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function iu(e,t,n){Yt(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function M(e,t){Yt(e)||(t==null?e.removeAttribute("class"):e.className=t)}function xo(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function su(e,t,n={}){let r=Object.keys(t||{}),o=Object.keys(n),i,s;for(i=0,s=o.length;i<s;i++){let a=o[i];!a||a==="undefined"||t[a]||(Ii(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){let a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Ii(e,a,!0),n[a]=l)}return n}function lu(e,t,n){if(!t)return n?P(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function Co(e,t={},n,r){let o={};return r||K(()=>o.children=_n(e,t.children,o.children)),K(()=>typeof t.ref=="function"&&Wt(t.ref,e)),K(()=>au(e,t,n,!0,o,!0)),o}function Wt(e,t,n){return ue(()=>e(t,n))}function k(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return _n(e,t,r,n);K(o=>_n(e,t(),o,n),r)}function au(e,t,n,r,o={},i=!1){t||(t={});for(let s in o)if(!(s in t)){if(s==="children")continue;o[s]=Fi(e,s,null,o[s],n,i,t)}for(let s in t){if(s==="children")continue;let a=t[s];o[s]=Fi(e,s,a,o[s],n,i,t)}}function cu(e){let t,n;return!Yt()||!(t=j.registry.get(n=du()))?e():(j.completed&&j.completed.add(t),j.registry.delete(n),t)}function Yt(e){return!!j.context&&!j.done&&(!e||e.isConnected)}function uu(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ii(e,t,n){let r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Fi(e,t,n,r,o,i,s){let a,l,c,d,u;if(t==="style")return lu(e,n,r);if(t==="classList")return su(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){let g=t.slice(3);r&&e.removeEventListener(g,r,typeof r!="function"&&r),n&&e.addEventListener(g,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){let g=t.slice(10);r&&e.removeEventListener(g,r,!0),n&&e.addEventListener(g,n,!0)}else if(t.slice(0,2)==="on"){let g=t.slice(2).toLowerCase(),f=eu.has(g);if(!f&&r){let h=Array.isArray(r)?r[0]:r;e.removeEventListener(g,h)}(f||n)&&(xo(e,g,n,f),f&&Kn([g]))}else if(t.slice(0,5)==="attr:")P(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")iu(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=Yc.has(t))||!o&&((d=Jc(t,e.tagName))||(l=Wc.has(t)))||(a=e.nodeName.includes("-")||"is"in s)){if(u)t=t.slice(5),l=!0;else if(Yt(e))return n;t==="class"||t==="className"?M(e,n):a&&!l&&!c?e[uu(t)]=n:e[d||t]=n}else{let g=o&&t.indexOf(":")>-1&&nu[t.split(":")[0]];g?ou(e,g,t,n):P(e,Xc[t]||t,n)}return n}function is(e){if(j.registry&&j.events&&j.events.find(([l,c])=>c===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[n];if(l&&!t.disabled){let c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),j.registry&&!j.done&&(j.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r)}function _n(e,t,n,r,o){let i=Yt(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){let d=n[c];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=cn(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||s==="boolean"){if(i)return n;n=cn(e,n,r)}else{if(s==="function")return K(()=>{let l=t();for(;typeof l=="function";)l=l();n=_n(e,l,n,r)}),()=>n;if(Array.isArray(t)){let l=[],c=n&&Array.isArray(n);if(ho(l,t,n,o))return K(()=>n=_n(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return n;let u=[d];for(;(d=d.nextSibling)!==r;)u.push(d);return n=u}if(l.length===0){if(n=cn(e,n,r),a)return n}else c?n.length===0?Li(e,l,r):ru(e,n,l):(n&&cn(e),Li(e,l));n=l}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=cn(e,n,r,t);cn(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function ho(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=ho(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=ho(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{let d=String(a);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return o}function Li(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function cn(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){let a=t[s];if(o!==a){let l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function du(){return j.getNextContextId()}function ss(e,t=!1){return t?document.createElementNS(fu,e):document.createElement(e)}function So(e){let{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=xr(),i,s=!!j.context;return V(()=>{s&&(xr().user=s=!1),i||(i=_c(o,()=>S(()=>e.children)));let a=r();if(a instanceof HTMLHeadElement){let[l,c]=q(!1),d=()=>c(!0);dt(u=>k(a,()=>l()?u():i(),null)),H(d)}else{let l=ss(e.isSVG?"g":"div",e.isSVG),c=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),k(c,i),a.appendChild(l),e.ref&&e.ref(l),H(()=>a.removeChild(l))}},void 0,{render:!s}),n}function gu(e,t){let n=S(e);return S(()=>{let r=n();switch(typeof r){case"function":return ue(()=>r(t));case"string":let o=tu.has(r),i=j.context?cu():ss(r,o);return Co(i,t,o),i}})}function ls(e){let[,t]=ne(e,["component"]);return gu(()=>e.component,t)}function pu(e){if("values"in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function yu(e,t){let n=pu(e);if("find"in n)return n.find(t);let r=n;for(let o=0;o<r.length;o++){let i=r[o];if(t(i))return i}}function gn(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function yr(e,t){return e.indexOf(t)!==-1}function qi(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}function ut(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}function Ar(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}function ms(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function bs(e){if(yr(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(yr(e,"prototype"))throw new Error("prototype is not allowed as a property");if(yr(e,"constructor"))throw new Error("constructor is not allowed as a property")}function yo(e,t,n=[]){if(!e)return;if(!_t(e)){gn(e,(i,s)=>yo(i,t,[...n,...In(s)]));return}let[r,o]=e;o&&gn(o,(i,s)=>{yo(i,t,[...n,...In(s)])}),t(r,n)}function qu(e,t,n){return yo(t,(r,o)=>{e=po(e,o,i=>Fu(i,r,n))}),e}function _u(e,t){function n(r,o){let i=Lu(e,In(o));r.map(In).forEach(s=>{e=po(e,s,()=>i)})}if(_t(t)){let[r,o]=t;r.forEach(i=>{e=po(e,In(i),()=>e)}),o&&gn(o,n)}else gn(t,n);return e}function zu(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function Nu(e,t){let n={},r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));let[i,...s]=o;i.length===0?r=s.map(ao):n[ao(i)]=s.map(ao)}),r?mo(n)?[r]:[r,n]:mo(n)?void 0:n}function xs(e){return Object.prototype.toString.call(e).slice(8,-1)}function zi(e){return xs(e)==="Array"}function Bu(e){if(xs(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Ku(e,t,n,r,o){let i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function vo(e,t={}){if(zi(e))return e.map(o=>vo(o,t));if(!Bu(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,i)=>{if(zi(t.props)&&!t.props.includes(i))return o;let s=e[i],a=vo(s,t);return Ku(o,i,a,e,t.nonenumerable),o},{})}function Xt(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Ss(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function $s({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Zt({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function ks(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var j,Ni,Fc,vr,Bi,Bn,br,Pi,Ki,Ke,Fn,Vi,so,X,L,hn,fn,oe,xe,De,$r,Rc,Mi,Ln,fo,Gc,go,jc,Ji,rs,Qc,Wc,Yc,Xc,Zc,eu,tu,nu,On,Oe,fu,hu,as,mu,vu,bu,cs,wu,Rn,mo,_t,xu,Cu,Su,$u,zn,Nn,us,ku,Eu,_i,Tu,Au,Pu,Mu,Du,ds,ao,In,fs,gs,Ou,hs,ps,ys,Iu,Ri,vs,Fu,un,Lu,po,Ru,ws,Z,$o,Cs,Vn,mr,Vu,Es,Uu,Pr,pr,Ts,Gu,Mr,ko,Dr,Lt,dn,Eo,Un=Dn(()=>{"use strict";te();j={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Ai(this.context.count)},getNextContextId(){return Ai(this.context.count++)}};Ni=!1,Fc=(e,t)=>e===t,vr=Symbol("solid-proxy"),Bi=typeof Proxy=="function",Bn=Symbol("solid-track"),br={equals:Fc},Pi=null,Ki=Yi,Ke=1,Fn=2,Vi={owned:null,cleanups:null,context:null,owner:null},so={},X=null,L=null,hn=null,fn=null,oe=null,xe=null,De=null,$r=0;[Rc,Mi]=q(!1);fo=Symbol("fallback");Gc=!1;go={get(e,t,n){return t===vr?n:e.get(t)},has(e,t){return t===vr?!0:e.has(t)},set:hr,deleteProperty:hr,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:hr,deleteProperty:hr}},ownKeys(e){return e.keys()}};jc=0;Ji=e=>`Stale read from <${e}>.`;rs=void 0,Qc=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Wc=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Qc]),Yc=new Set(["innerHTML","textContent","innerText","children"]),Xc=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Zc=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});eu=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),tu=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),nu={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};On="_$DX_DELEGATE";Oe=!1,fu="http://www.w3.org/2000/svg";hu=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},as=class{constructor(e){this.generateIdentifier=e,this.kv=new hu}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},mu=class extends as{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};vu=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return yu(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},bu=e=>Object.prototype.toString.call(e).slice(8,-1),cs=e=>typeof e>"u",wu=e=>e===null,Rn=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,mo=e=>Rn(e)&&Object.keys(e).length===0,_t=e=>Array.isArray(e),xu=e=>typeof e=="string",Cu=e=>typeof e=="number"&&!isNaN(e),Su=e=>typeof e=="boolean",$u=e=>e instanceof RegExp,zn=e=>e instanceof Map,Nn=e=>e instanceof Set,us=e=>bu(e)==="Symbol",ku=e=>e instanceof Date&&!isNaN(e.valueOf()),Eu=e=>e instanceof Error,_i=e=>typeof e=="number"&&isNaN(e),Tu=e=>Su(e)||wu(e)||cs(e)||Cu(e)||xu(e)||us(e),Au=e=>typeof e=="bigint",Pu=e=>e===1/0||e===-1/0,Mu=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Du=e=>e instanceof URL,ds=e=>e.replace(/\./g,"\\."),ao=e=>e.map(String).map(ds).join("."),In=e=>{let t=[],n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i}let r=n;return t.push(r),t};fs=[ut(cs,"undefined",()=>null,()=>{}),ut(Au,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),ut(ku,"Date",e=>e.toISOString(),e=>new Date(e)),ut(Eu,"Error",(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{let n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ut($u,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ut(Nn,"set",e=>[...e.values()],e=>new Set(e)),ut(zn,"map",e=>[...e.entries()],e=>new Map(e)),ut(e=>_i(e)||Pu(e),"number",e=>_i(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ut(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ut(Du,"URL",e=>e.toString(),e=>new URL(e))];gs=Ar((e,t)=>us(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Ou=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),hs=Ar(Mu,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let n=Ou[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});ps=Ar(ms,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),ys=Ar((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Iu=[ps,gs,ys,hs],Ri=(e,t)=>{let n=qi(Iu,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=qi(fs,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},vs={};fs.forEach(e=>{vs[e.annotation]=e});Fu=(e,t,n)=>{if(_t(t))switch(t[0]){case"symbol":return gs.untransform(e,t,n);case"class":return ps.untransform(e,t,n);case"custom":return ys.untransform(e,t,n);case"typed-array":return hs.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{let r=vs[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},un=(e,t)=>{let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};Lu=(e,t)=>{bs(t);for(let n=0;n<t.length;n++){let r=t[n];if(Nn(e))e=un(e,+r);else if(zn(e)){let o=+r,i=+t[++n]==0?"key":"value",s=un(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},po=(e,t,n)=>{if(bs(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){let s=t[i];if(_t(r)){let a=+s;r=r[a]}else if(Rn(r))r=r[s];else if(Nn(r)){let a=+s;r=un(r,a)}else if(zn(r)){if(i===t.length-2)break;let l=+s,c=+t[++i]==0?"key":"value",d=un(r,l);switch(c){case"key":r=d;break;case"value":r=r.get(d);break}}}let o=t[t.length-1];if(_t(r)?r[+o]=n(r[+o]):Rn(r)&&(r[o]=n(r[o])),Nn(r)){let i=un(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s))}if(zn(r)){let i=+t[t.length-2],s=un(r,i);switch(+o==0?"key":"value"){case"key":{let l=n(s);r.set(l,r.get(s)),l!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};Ru=(e,t)=>Rn(e)||_t(e)||zn(e)||Nn(e)||ms(e,t);ws=(e,t,n,r,o=[],i=[],s=new Map)=>{let a=Tu(e);if(!a){zu(e,o,t);let f=s.get(e);if(f)return r?{transformedValue:null}:f}if(!Ru(e,n)){let f=Ri(e,n),h=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return a||s.set(e,h),h}if(yr(i,e))return{transformedValue:null};let l=Ri(e,n),c=l?.value??e,d=_t(c)?[]:{},u={};gn(c,(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);let p=ws(f,t,n,r,[...o,h],[...i,e],s);d[h]=p.transformedValue,_t(p.annotations)?u[h]=p.annotations:Rn(p.annotations)&&gn(p.annotations,(y,v)=>{u[ds(h)+"."+v]=y})});let g=mo(u)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,u]:u};return a||s.set(e,g),g};Z=class{constructor({dedupe:e=!1}={}){this.classRegistry=new mu,this.symbolRegistry=new as(t=>t.description??""),this.customTransformerRegistry=new vu,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=ws(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let o=Nu(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){let{json:t,meta:n}=e,r=vo(t);return n?.values&&(r=qu(r,n.values,this)),n?.referentialEqualities&&(r=_u(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};Z.defaultInstance=new Z;Z.serialize=Z.defaultInstance.serialize.bind(Z.defaultInstance);Z.deserialize=Z.defaultInstance.deserialize.bind(Z.defaultInstance);Z.stringify=Z.defaultInstance.stringify.bind(Z.defaultInstance);Z.parse=Z.defaultInstance.parse.bind(Z.defaultInstance);Z.registerClass=Z.defaultInstance.registerClass.bind(Z.defaultInstance);Z.registerSymbol=Z.defaultInstance.registerSymbol.bind(Z.defaultInstance);Z.registerCustom=Z.defaultInstance.registerCustom.bind(Z.defaultInstance);Z.allowErrorProps=Z.defaultInstance.allowErrorProps.bind(Z.defaultInstance);$o=Z.serialize;Z.deserialize;Cs=Z.stringify;Z.parse;Z.registerClass;Z.registerCustom;Z.registerSymbol;Z.allowErrorProps;Vn=(e,t=!1)=>{let{json:n}=$o(e);return JSON.stringify(n,null,t?2:void 0)},mr=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Vu=(e,t)=>e.queryHash.localeCompare(t.queryHash),Es=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uu=(e,t)=>mr(e)===mr(t)?Es(e,t):mr(e)>mr(t)?1:-1,Pr={status:Uu,"query hash":Vu,"last updated":Es},pr=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Ts=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Gu=(e,t)=>pr(e)===pr(t)?Ts(e,t):pr(e)>pr(t)?1:-1,Mr={status:Gu,"last updated":Ts},ko=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Dr=()=>{let[e,t]=q("dark");return $t(()=>{let n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");let r=o=>{t(o.matches?"dark":"light")};n.addEventListener("change",r),H(()=>n.removeEventListener("change",r))}),e},Lt=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.set(t[0],n),r;let[o,...i]=t;return r.set(o,Lt(r.get(o),i,n)),r}if(e instanceof Set){let r=Lt(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=Lt(r[o],i,n),r}if(e instanceof Object){let r={...e};if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=Lt(r[o],i,n),r}return e},dn=(e,t)=>{if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.delete(t[0]),n;let[r,...o]=t;return n.set(r,dn(n.get(r),o)),n}if(e instanceof Set){let n=dn(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n.filter((i,s)=>s.toString()!==t[0]);let[r,...o]=t;return n[r]=dn(n[r],o),n}if(e instanceof Object){let n={...e};if(t.length===1)return delete n[t[0]],n;let[r,...o]=t;return n[r]=dn(n[r],o),n}return e},Eo=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)}});function Yu(e){return(...t)=>{for(let n of e)n&&n(...t)}}function Xu(e,...t){return typeof e=="function"?e(...t):e}function Ju(e,t,n,r){let o=e.length,i=t.length,s=0;if(!i){for(;s<o;s++)n(e[s]);return}if(!o){for(;s<i;s++)r(t[s]);return}for(;s<i&&t[s]===e[s];s++);let a,l;t=t.slice(s),e=e.slice(s);for(a of t)e.includes(a)||r(a);for(l of e)t.includes(l)||n(l)}function ed(e){let[t,n]=q(),r=e?.throw?(g,f)=>{throw n(g instanceof Error?g:new Error(f)),g}:(g,f)=>{n(g instanceof Error?g:new Error(f))},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e?.prefix?`${e.prefix}.`:"",s=new Map,a=new Proxy({},{get(g,f){let h=s.get(f);h||(h=q(void 0,{equals:!1}),s.set(f,h)),h[0]();let p=o.reduce((y,v)=>{if(y!==null||!v)return y;try{return v.getItem(`${i}${f}`)}catch(b){return r(b,`Error reading ${i}${f} from ${v.name}`),null}},null);return p!==null&&e?.deserializer?e.deserializer(p,f,e.options):p}}),l=(g,f,h)=>{let p=e?.serializer?e.serializer(f,g,h??e.options):f,y=`${i}${g}`;o.forEach(b=>{try{b.getItem(y)!==p&&b.setItem(y,p)}catch(w){r(w,`Error setting ${i}${g} to ${p} in ${b.name}`)}});let v=s.get(g);v&&v[1]()},c=g=>o.forEach(f=>{try{f.removeItem(`${i}${g}`)}catch(h){r(h,`Error removing ${i}${g} from ${f.name}`)}}),d=()=>o.forEach(g=>{try{g.clear()}catch(f){r(f,`Error clearing ${g.name}`)}}),u=()=>{let g={},f=(h,p)=>{if(!g.hasOwnProperty(h)){let y=p&&e?.deserializer?e.deserializer(p,h,e.options):p;y&&(g[h]=y)}};return o.forEach(h=>{if(typeof h.getAll=="function"){let p;try{p=h.getAll()}catch(y){r(y,`Error getting all values from in ${h.name}`)}for(let y of p)f(y,p[y])}else{let p=0,y;try{for(;y=h.key(p++);)g.hasOwnProperty(y)||f(y,h.getItem(y))}catch(v){r(v,`Error getting all values from ${h.name}`)}}}),g};return e?.sync!==!1&&$t(()=>{let g=f=>{let h=!1;o.forEach(p=>{try{p!==f.storageArea&&f.key&&f.newValue!==p.getItem(f.key)&&(f.newValue?p.setItem(f.key,f.newValue):p.removeItem(f.key),h=!0)}catch(y){r(y,`Error synching api ${p.name} from storage event (${f.key}=${f.newValue})`)}}),h&&f.key&&s.get(f.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",g),H(()=>globalThis.removeEventListener("storage",g))):(o.forEach(f=>f.addEventListener?.("storage",g)),H(()=>o.forEach(f=>f.removeEventListener?.("storage",g))))}),[a,l,{clear:d,error:t,remove:c,toJSON:u}]}function G(){return Ce(tr)}function Ae(){return Ce(nr)}function ud(e){return e.replace(cd,t=>El[t])}function Ds(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:Be.MATCHES,!n.accessors){let s=Os(e,t,n);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}let o=hd(e,n.accessors),i={rankedValue:e,rank:Be.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){let a=o[s],l=Os(a.itemValue,t,n),{minRanking:c,maxRanking:d,threshold:u=n.threshold}=a.attributes;l<c&&l>=Be.MATCHES?l=c:l>d&&(l=d),l=Math.min(l,d),l>=u&&l>i.rank&&(i.rank=l,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=u,i.rankedValue=a.itemValue)}return i}function Os(e,t,n){return e=Is(e,n),t=Is(t,n),t.length>e.length?Be.NO_MATCH:e===t?Be.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Be.EQUAL:e.startsWith(t)?Be.STARTS_WITH:e.includes(` ${t}`)?Be.WORD_STARTS_WITH:e.includes(t)?Be.CONTAINS:t.length===1?Be.NO_MATCH:dd(e).includes(t)?Be.ACRONYM:fd(e,t))}function dd(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1)})}),t}function fd(e,t){let n=0,r=0;function o(l,c,d){for(let u=d,g=c.length;u<g;u++)if(c[u]===l)return n+=1,u+1;return-1}function i(l){let c=1/l,d=n/t.length;return Be.MATCHES+d*c}let s=o(t[0],e,0);if(s<0)return Be.NO_MATCH;r=s;for(let l=1,c=t.length;l<c;l++){let d=t[l];if(r=o(d,e,r),!(r>-1))return Be.NO_MATCH}let a=r-s;return i(a)}function Is(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=ud(e)),e}function gd(e,t){let n=t;typeof t=="object"&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function hd(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let i=t[r],s=md(i),a=gd(e,i);for(let l=0,c=a.length;l<c;l++)n.push({itemValue:a[l],attributes:s})}return n}function md(e){return typeof e=="function"?Fs:{...Fs,...e}}function Y(e){let t=this||{},n=e.call?e(t.p):e;return wd(n.unshift?n.raw?xd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,yd(t.target),t.g,t.o,t.k)}function Al(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=Al(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Al(e))&&(r&&(r+=" "),r+=t);return r}function Cd(e,t){let n=ue(e);if(Oe){let u=n.slice();return()=>u}let{onChange:r}=t,o=new Set(t.appear?void 0:n),i=new WeakSet,[s,a]=q([],{equals:!1}),[l]=Hi(),c=u=>{a(g=>(g.push.apply(g,u),g));for(let g of u)i.delete(g)},d=(u,g,f)=>u.splice(f,0,g);return S(u=>{let g=s(),f=e();if(f[Bn],ue(l))return l(),u;if(g.length){let h=u.filter(p=>!g.includes(p));return g.length=0,r({list:h,added:[],removed:[],unchanged:h,finishRemoved:c}),h}return ue(()=>{let h=new Set(f),p=f.slice(),y=[],v=[],b=[];for(let x of f)(o.has(x)?b:y).push(x);let w=!y.length;for(let x=0;x<u.length;x++){let C=u[x];h.has(C)||(i.has(C)||(v.push(C),i.add(C)),d(p,C,x)),w&&C!==p[x]&&(w=!1)}return!v.length&&w?u:(r({list:p,added:y,removed:v,unchanged:b,finishRemoved:c}),o=h,p)})},t.appear?[]:n.slice())}function _e(...e){return Yu(e)}function Fo(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Fo(e(),t);if(Array.isArray(e)){let n=[];for(let r of e){let o=Fo(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}return n.length?n:null}return null}function Sd(e,t=qs,n=qs){let r=S(e),o=S(()=>Fo(r(),Oe?n:t));return o.toArray=()=>{let i=o();return Array.isArray(i)?i:i?[i]:[]},o}function $d(e){return S(()=>{let t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function Pl(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function kd(e,t,n,r){let{onBeforeEnter:o,onEnter:i,onAfterEnter:s}=t;o?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();i?.(n,()=>a())}),Pl(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",a),n.addEventListener("animationend",a))});function a(l){(!l||l.target===n)&&(n.removeEventListener("transitionend",a),n.removeEventListener("animationend",a),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),s?.(n))}}function Ed(e,t,n,r){let{onBeforeExit:o,onExit:i,onAfterExit:s}=t;if(!n.parentNode)return r?.();o?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i?.(n,()=>a()),Pl(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",a),n.addEventListener("animationend",a))});function a(l){(!l||l.target===n)&&(r?.(),n.removeEventListener("transitionend",a),n.removeEventListener("animationend",a),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),s?.(n))}}function Rs(e){for(let t of e)t.dispose()}function Td(e,t,n,r={}){if(Oe){let s=e(),a=[];if(s&&s.length)for(let l=0,c=s.length;l<c;l++)a.push(n(()=>s[l],()=>l));else r.fallback&&(a=[r.fallback()]);return()=>a}let o=new Map;return H(()=>Rs(o.values())),()=>{let s=e()||[];return s[Bn],ue(()=>{if(!s.length)return Rs(o.values()),o.clear(),r.fallback?[dt(u=>(o.set(To,{dispose:u}),r.fallback()))]:[];let a=new Array(s.length),l=o.get(To);if(!o.size||l){l?.dispose(),o.delete(To);for(let d=0;d<s.length;d++){let u=s[d],g=t(u,d);i(a,u,d,g)}return a}let c=new Set(o.keys());for(let d=0;d<s.length;d++){let u=s[d],g=t(u,d);c.delete(g);let f=o.get(g);f?(a[d]=f.mapped,f.setIndex?.(d),f.setItem(()=>u)):i(a,u,d,g)}for(let d of c)o.get(d)?.dispose(),o.delete(d);return a})};function i(s,a,l,c){dt(d=>{let[u,g]=q(a),f={setItem:g,dispose:d};if(n.length>1){let[h,p]=q(l);f.setIndex=p,f.mapped=n(u,h)}else f.mapped=n(u);o.set(c,f),s[l]=f.mapped})}}function Lr(e){let{by:t}=e;return S(Td(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Ad(e,t,n,r){return e.addEventListener(t,n,r),Zu(e.removeEventListener.bind(e,t,n,r))}function Pd(e,t,n,r){if(Oe)return;let o=()=>{Oo(T(e)).forEach(i=>{i&&Oo(T(t)).forEach(s=>Ad(i,s,n,r))})};typeof e=="function"?V(o):K(o)}function Md(e,t){if(Oe)return{observe:As,unobserve:As};let n=new ResizeObserver(e);return H(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function Ml(e,t,n){if(Oe)return;let r=new WeakMap,{observe:o,unobserve:i}=Md(s=>{for(let a of s){let{contentRect:l,target:c}=a,d=Math.round(l.width),u=Math.round(l.height),g=r.get(c);(!g||g.width!==d||g.height!==u)&&(t(l,c,a),r.set(c,{width:d,height:u}))}},n);V(s=>{let a=Wu(Oo(T(e)));return Ju(a,s,o,i),a},[])}function zs(e){let t={},n;for(;n=Dd.exec(e);)t[n[1]]=n[2];return t}function Gr(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=zs(e)}else typeof t=="string"&&(t=zs(t));return{...e,...t}}function Od(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function Lo(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Id(e){return typeof e=="number"}function yn(e){return Object.prototype.toString.call(e)==="[object String]"}function Fd(e){return typeof e=="function"}function rr(e){return t=>`${e()}-${t}`}function Ze(e,t){return e?e===t||e.contains(t):!1}function Qn(e,t=!1){let{activeElement:n}=ht(e);if(!n?.nodeName)return null;if(Dl(n)&&n.contentDocument)return Qn(n.contentDocument.body,t);if(t){let r=n.getAttribute("aria-activedescendant");if(r){let o=ht(n).getElementById(r);if(o)return o}}return n}function Ld(e){return ht(e).defaultView||window}function ht(e){return e?e.ownerDocument||e:document}function Dl(e){return e.tagName==="IFRAME"}function Ho(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Hr(){return Ho(/^Mac/i)}function qd(){return Ho(/^iPhone/i)}function _d(){return Ho(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}function Rd(){return qd()||_d()}function zd(){return Hr()||Rd()}function ye(e,t){return t&&(Fd(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Te(e){return t=>{for(let n of e)ye(t,n)}}function Nd(e){return Hr()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Fe(e){if(e)if(Bd())e.focus({preventScroll:!0});else{let t=Kd(e);e.focus(),Vd(t)}}function Bd(){if(Or==null){Or=!1;try{document.createElement("div").focus({get preventScroll(){return Or=!0,!0}})}catch{}}return Or}function Kd(e){let t=e.parentNode,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 Vd(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Il(e,t){let r=Array.from(e.querySelectorAll(jo)).filter(Ns);return t&&Ns(e)&&r.unshift(e),r.forEach((o,i)=>{if(Dl(o)&&o.contentDocument){let s=o.contentDocument.body,a=Il(s,!1);r.splice(i,1,...a)}}),r}function Ns(e){return Fl(e)&&!Hd(e)}function Fl(e){return e.matches(jo)&&Qo(e)}function Hd(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Qo(e,t){return e.nodeName!=="#comment"&&jd(e)&&Qd(e,t)&&(!e.parentElement||Qo(e.parentElement,e))}function jd(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function Qd(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Wd(e,t,n){let r=t?.tabbable?Gd:jo,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Qo(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Bs(e){for(;e&&!Yd(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Yd(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Xd(){}function Zd(e,t){let[n,r]=e,o=!1,i=t.length;for(let s=i,a=0,l=s-1;a<s;l=a++){let[c,d]=t[a],[u,g]=t[l],[,f]=t[l===0?s-1:l-1]||[0,0],h=(d-g)*(n-c)-(c-u)*(r-d);if(g<d){if(r>=g&&r<d){if(h===0)return!0;h>0&&(r===g?r>f&&(o=!o):o=!o)}}else if(d<g){if(r>d&&r<=g){if(h===0)return!0;h<0&&(r===g?r<f&&(o=!o):o=!o)}}else if(r==d&&(n>=u&&n<=c||n>=c&&n<=u))return!0}return o}function ee(e,t){return W(e,t)}function Vs(){if(typeof window>"u")return;let e=n=>{if(!n.target)return;let r=Gn.get(n.target);r||(r=new Set,Gn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;let r=Gn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Gn.delete(n.target)),Gn.size===0)){for(let o of Ks)o();Ks.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function qo(e,t){let n=Us(e,t,"left"),r=Us(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;n<=s?s=n:n+o>l&&(s+=n+o-l),r<=a?a=r:r+i>c&&(a+=r+i-c),e.scrollLeft=s,e.scrollTop=a}function Us(e,t,n){let r=n==="left"?"offsetLeft":"offsetTop",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 Jd(e,t){if(document.contains(e)){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=Bs(e);for(;e&&o&&e!==n&&o!==n;)qo(o,e),e=o,o=Bs(e)}else{let{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:a}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-a)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function Je(e){return t=>(e(t),()=>e(void 0))}function jr(e,t){let[n,r]=q(Gs(t?.()));return V(()=>{r(e()?.tagName.toLowerCase()||Gs(t?.()))}),n}function Gs(e){return yn(e)?e:void 0}function ve(e){let[t,n]=ne(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return m(ls,W(n,{get component(){return t.as}}))}function tf(e){let t=`form-control-${Ve()}`,n=ee({id:t},e),[r,o]=q(),[i,s]=q(),[a,l]=q(),[c,d]=q(),u=(p,y,v)=>{let b=v!=null||r()!=null;return[v,r(),b&&y!=null?p:void 0].filter(Boolean).join(" ")||void 0},g=p=>[a(),c(),p].filter(Boolean).join(" ")||void 0,f=S(()=>({"data-valid":T(n.validationState)==="valid"?"":void 0,"data-invalid":T(n.validationState)==="invalid"?"":void 0,"data-required":T(n.required)?"":void 0,"data-disabled":T(n.disabled)?"":void 0,"data-readonly":T(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>T(n.name)??T(n.id),dataset:f,validationState:()=>T(n.validationState),isRequired:()=>T(n.required),isDisabled:()=>T(n.disabled),isReadOnly:()=>T(n.readOnly),labelId:r,fieldId:i,descriptionId:a,errorMessageId:c,getAriaLabelledBy:u,getAriaDescribedBy:g,generateId:rr(()=>T(n.id)),registerLabel:Je(o),registerField:Je(s),registerDescription:Je(l),registerErrorMessage:Je(d)}}}function or(){let e=Ce(ql);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function _l(e){let t=or(),n=ee({id:t.generateId("description")},e);return V(()=>H(t.registerDescription(n.id))),m(ve,W({as:"div"},()=>t.dataset(),n))}function Rl(e){let t=or(),n=ee({id:t.generateId("error-message")},e),[r,o]=ne(n,["forceMount"]),i=()=>t.validationState()==="invalid";return V(()=>{i()&&H(t.registerErrorMessage(o.id))}),m(U,{get when(){return r.forceMount||i()},get children(){return m(ve,W({as:"div"},()=>t.dataset(),o))}})}function nf(e){let t,n=or(),r=ee({id:n.generateId("label")},e),[o,i]=ne(r,["ref"]),s=jr(()=>t,()=>"label");return V(()=>H(n.registerLabel(i.id))),m(ve,W({as:"label",ref(a){let l=_e(c=>t=c,o.ref);typeof l=="function"&&l(a)},get for(){return S(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function rf(e,t){V(ft(e,n=>{if(n==null)return;let r=of(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),H(()=>{r.removeEventListener("reset",t)}))}))}function of(e){return sf(e)?e.form:e.closest("form")}function sf(e){return e.matches("textarea, input, select, button")}function ir(e){let[t,n]=q(e.defaultValue?.()),r=S(()=>e.value?.()!==void 0),o=S(()=>r()?e.value?.():t());return[o,s=>{ue(()=>{let a=Xu(s,o());return Object.is(a,o())||(r()||n(a),e.onChange?.(a)),a})}]}function zl(e){let[t,n]=ir(e);return[()=>t()??!1,n]}function lf(e){let[t,n]=ir(e);return[()=>t()??[],n]}function af(e={}){let[t,n]=zl({value:()=>T(e.isSelected),defaultValue:()=>!!T(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return{isSelected:t,setIsSelected:i=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&n(i)},toggle:()=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&n(!t())}}}function Bl(){return Ce(Nl)}function uf(){let e=Bl();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Kl(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function df(e,t){let n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){let o=e[r]?.ref();if(o&&Kl(o,n))return r+1}return 0}function ff(e){let t=e.map((r,o)=>[o,r]),n=!1;return t.sort(([r,o],[i,s])=>{let a=o.ref(),l=s.ref();return a===l||!a||!l?0:Kl(a,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function Vl(e,t){let n=ff(e);e!==n&&t(n)}function gf(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return ht(r).body}function hf(e,t){V(()=>{let n=setTimeout(()=>{Vl(e(),t)});H(()=>clearTimeout(n))})}function mf(e,t){if(typeof IntersectionObserver!="function"){hf(e,t);return}let n=[];V(()=>{let r=()=>{let s=!!n.length;n=e(),s&&Vl(e(),t)},o=gf(e()),i=new IntersectionObserver(r,{root:o});for(let s of e()){let a=s.ref();a&&i.observe(a)}H(()=>i.disconnect())})}function pf(e={}){let[t,n]=lf({value:()=>T(e.items),onChange:i=>e.onItemsChange?.(i)});mf(t,n);let r=i=>(n(s=>{let a=df(s,i);return Od(s,i,a)}),()=>{n(s=>{let a=s.filter(l=>l.ref()!==i.ref());return s.length===a.length?s:a})});return{DomCollectionProvider:i=>m(Nl.Provider,{value:{registerItem:r},get children(){return i.children}})}}function yf(e){let t=uf(),n=ee({shouldRegisterItem:!0},e);V(()=>{if(!n.shouldRegisterItem)return;let r=t.registerItem(n.getItem());H(r)})}function Ul(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],o=l=>{if(l==null)return"";let c=e.getKey??"key",d=yn(c)?l[c]:c(l);return d!=null?String(d):""},i=l=>{if(l==null)return"";let c=e.getTextValue??"textValue",d=yn(c)?l[c]:c(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let c=e.getDisabled??"disabled";return(yn(c)?l[c]:c(l))??!1},a=l=>{if(l!=null)return yn(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(yn(l)||Id(l)){r.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:n,index:t}),t++;continue}if(a(l)!=null){r.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;let c=a(l)??[];if(c.length>0){let d=Ul({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...d),t+=d.length}}else r.push({type:"item",rawValue:l,key:o(l),textValue:i(l),disabled:s(l),level:n,index:t}),t++}return r}function vf(e,t=[]){return S(()=>{let n=Ul({dataSource:T(e.dataSource),getKey:T(e.getKey),getTextValue:T(e.getTextValue),getDisabled:T(e.getDisabled),getSectionChildren:T(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}function xf(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script??"";return bf.has(n)}let t=e.split("-")[0];return wf.has(t)}function Cf(e){return xf(e)?"rtl":"ltr"}function Gl(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Cf(e)}}function Hs(){_o=Gl();for(let e of Wn)e(_o)}function Sf(){let e={locale:"en-US",direction:"ltr"},[t,n]=q(_o),r=S(()=>Oe?e:t());return $t(()=>{Wn.size===0&&window.addEventListener("languagechange",Hs),Wn.add(n),H(()=>{Wn.delete(n),Wn.size===0&&window.removeEventListener("languagechange",Hs)})}),{locale:()=>r().locale,direction:()=>r().direction}}function Vt(){let e=Sf();return Ce($f)||e}function kf(e){let{locale:t}=Vt(),n=S(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return S(()=>{let r=n(),o;return Ao.has(r)&&(o=Ao.get(r)),o||(o=new Intl.Collator(t(),e),Ao.set(r,o)),o})}function Ef(e){let[t,n]=ir(e);return[()=>t()??new Et,n]}function jl(e){return zd()?e.altKey:e.ctrlKey}function vn(e){return Hr()?e.metaKey:e.ctrlKey}function js(e){return new Et(e)}function Tf(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Af(e){let t=ee({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=q(!1),[o,i]=q(),s=S(()=>{let p=T(t.selectedKeys);return p!=null?js(p):p}),a=S(()=>{let p=T(t.defaultSelectedKeys);return p!=null?js(p):new Et}),[l,c]=Ef({value:s,defaultValue:a,onChange:p=>t.onSelectionChange?.(p)}),[d,u]=q(T(t.selectionBehavior)),g=()=>T(t.selectionMode),f=()=>T(t.disallowEmptySelection)??!1,h=p=>{(T(t.allowDuplicateSelectionEvents)||!Tf(p,l()))&&c(p)};return V(()=>{let p=l();T(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof p=="object"&&p.size===0&&u("replace")}),V(()=>{u(T(t.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:u,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:l,setSelectedKeys:h}}function Pf(e){let[t,n]=q(""),[r,o]=q(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(T(e.isDisabled))return;let a=T(e.keyboardDelegate),l=T(e.selectionManager);if(!a.getKeyForSearch)return;let c=Mf(s.key);if(!c||s.ctrlKey||s.metaKey)return;c===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=n(g=>g+c),u=a.getKeyForSearch(d,l.focusedKey())??a.getKeyForSearch(d);u==null&&Df(d)&&(d=d[0],u=a.getKeyForSearch(d,l.focusedKey())??a.getKeyForSearch(d)),u!=null&&(l.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500))}}}}function Mf(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Df(e){return e.split("").every(t=>t===e[0])}function Of(e,t,n){let o=W({selectOnFocus:()=>T(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=Vt(),a={top:0,left:0};Pd(()=>T(o.isVirtualized)?void 0:i(),"scroll",()=>{let y=i();y&&(a={top:y.scrollTop,left:y.scrollLeft})});let{typeSelectHandlers:l}=Pf({isDisabled:()=>T(o.disallowTypeAhead),keyboardDelegate:()=>T(o.keyboardDelegate),selectionManager:()=>T(o.selectionManager)}),c=()=>T(o.orientation)??"vertical",d=y=>{ye(y,l.onKeyDown),y.altKey&&y.key==="Tab"&&y.preventDefault();let v=t();if(!v?.contains(y.target))return;let b=T(o.selectionManager),w=T(o.selectOnFocus),x=F=>{F!=null&&(b.setFocusedKey(F),y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&!jl(y)&&b.replaceSelection(F))},C=T(o.keyboardDelegate),I=T(o.shouldFocusWrap),O=b.focusedKey();switch(y.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(C.getKeyBelow){y.preventDefault();let F;O!=null?F=C.getKeyBelow(O):F=C.getFirstKey?.(),F==null&&I&&(F=C.getFirstKey?.(O)),x(F)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(C.getKeyAbove){y.preventDefault();let F;O!=null?F=C.getKeyAbove(O):F=C.getLastKey?.(),F==null&&I&&(F=C.getLastKey?.(O)),x(F)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(C.getKeyLeftOf){y.preventDefault();let F=s()==="rtl",$;O!=null?$=C.getKeyLeftOf(O):$=F?C.getFirstKey?.():C.getLastKey?.(),x($)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(C.getKeyRightOf){y.preventDefault();let F=s()==="rtl",$;O!=null?$=C.getKeyRightOf(O):$=F?C.getLastKey?.():C.getFirstKey?.(),x($)}break}case"Home":if(C.getFirstKey){y.preventDefault();let F=C.getFirstKey(O,vn(y));F!=null&&(b.setFocusedKey(F),vn(y)&&y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&b.replaceSelection(F))}break;case"End":if(C.getLastKey){y.preventDefault();let F=C.getLastKey(O,vn(y));F!=null&&(b.setFocusedKey(F),vn(y)&&y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&b.replaceSelection(F))}break;case"PageDown":if(C.getKeyPageBelow&&O!=null){y.preventDefault();let F=C.getKeyPageBelow(O);x(F)}break;case"PageUp":if(C.getKeyPageAbove&&O!=null){y.preventDefault();let F=C.getKeyPageAbove(O);x(F)}break;case"a":vn(y)&&b.selectionMode()==="multiple"&&T(o.disallowSelectAll)!==!0&&(y.preventDefault(),b.selectAll());break;case"Escape":y.defaultPrevented||(y.preventDefault(),T(o.disallowEmptySelection)||b.clearSelection());break;case"Tab":if(!T(o.allowsTabNavigation)){if(y.shiftKey)v.focus();else{let F=Wd(v,{tabbable:!0}),$,A;do A=F.lastChild(),A&&($=A);while(A);$&&!$.contains(document.activeElement)&&Fe($)}break}}},u=y=>{let v=T(o.selectionManager),b=T(o.keyboardDelegate),w=T(o.selectOnFocus);if(v.isFocused()){y.currentTarget.contains(y.target)||v.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(v.setFocused(!0),v.focusedKey()==null){let x=I=>{I!=null&&(v.setFocusedKey(I),w&&v.replaceSelection(I))},C=y.relatedTarget;C&&y.currentTarget.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?x(v.lastSelectedKey()??b.getLastKey?.()):x(v.firstSelectedKey()??b.getFirstKey?.())}else if(!T(o.isVirtualized)){let x=i();if(x){x.scrollTop=a.top,x.scrollLeft=a.left;let C=x.querySelector(`[data-key="${v.focusedKey()}"]`);C&&(Fe(C),qo(x,C))}}}},g=y=>{let v=T(o.selectionManager);y.currentTarget.contains(y.relatedTarget)||v.setFocused(!1)},f=y=>{i()===y.target&&y.preventDefault()},h=()=>{let y=T(o.autoFocus);if(!y)return;let v=T(o.selectionManager),b=T(o.keyboardDelegate),w;y==="first"&&(w=b.getFirstKey?.()),y==="last"&&(w=b.getLastKey?.());let x=v.selectedKeys();x.size&&(w=x.values().next().value),v.setFocused(!0),v.setFocusedKey(w);let C=t();C&&w==null&&!T(o.shouldUseVirtualFocus)&&Fe(C)};return $t(()=>{o.deferAutoFocus?setTimeout(h,0):h()}),V(ft([i,()=>T(o.isVirtualized),()=>T(o.selectionManager).focusedKey()],y=>{let[v,b,w]=y;if(b)w&&o.scrollToKey?.(w);else if(w&&v){let x=v.querySelector(`[data-key="${w}"]`);x&&qo(v,x)}})),{tabIndex:S(()=>{if(!T(o.shouldUseVirtualFocus))return T(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:u,onFocusOut:g}}function Ql(e,t){let n=()=>T(e.selectionManager),r=()=>T(e.key),o=()=>T(e.shouldUseVirtualFocus),i=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"||vn(b)||"pointerType"in b&&b.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},s=()=>n().isSelected(r()),a=()=>T(e.disabled)||n().isDisabled(r()),l=()=>!a()&&n().canSelectItem(r()),c=null,d=b=>{l()&&(c=b.pointerType,b.pointerType==="mouse"&&b.button===0&&!T(e.shouldSelectOnPressUp)&&i(b))},u=b=>{l()&&b.pointerType==="mouse"&&b.button===0&&T(e.shouldSelectOnPressUp)&&T(e.allowsDifferentPressOrigin)&&i(b)},g=b=>{l()&&(T(e.shouldSelectOnPressUp)&&!T(e.allowsDifferentPressOrigin)||c!=="mouse")&&i(b)},f=b=>{!l()||!["Enter"," "].includes(b.key)||(jl(b)?n().toggleSelection(r()):i(b))},h=b=>{a()&&b.preventDefault()},p=b=>{let w=t();o()||a()||!w||b.target===w&&n().setFocusedKey(r())},y=S(()=>{if(!(o()||a()))return r()===n().focusedKey()?0:-1}),v=S(()=>T(e.virtualized)?void 0:r());return V(ft([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([b,w,x,C,I])=>{b&&w===C&&I&&!x&&document.activeElement!==b&&(e.focus?e.focus():Fe(b))})),{isSelected:s,isDisabled:a,allowsSelection:l,tabIndex:y,dataKey:v,onPointerDown:d,onPointerUp:u,onClick:g,onKeyDown:f,onMouseDown:h,onFocus:p}}function Ff(e){let t=Af(e),r=vf({dataSource:()=>T(e.dataSource),getKey:()=>T(e.getKey),getTextValue:()=>T(e.getTextValue),getDisabled:()=>T(e.getDisabled),getSectionChildren:()=>T(e.getSectionChildren),factory:i=>e.filter?new Qs(e.filter(i)):new Qs(i)},[()=>e.filter]),o=new If(r,t);return wr(()=>{let i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>o}}function Xn(e){return At.findIndex(t=>t.node===e)}function _f(e){return At[Xn(e)]}function Rf(e){return At[At.length-1].node===e}function Xl(){return At.filter(e=>e.isPointerBlocking)}function zf(){return[...Xl()].slice(-1)[0]}function Wo(){return Xl().length>0}function Zl(e){let t=Xn(zf()?.node);return Xn(e)<t}function Nf(e){At.push(e)}function Bf(e){let t=Xn(e);t<0||At.splice(t,1)}function Kf(){for(let{node:e}of At)e.style.pointerEvents=Zl(e)?"none":"auto"}function Vf(e){if(Wo()&&!Ro){let t=ht(e);Yl=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Ro=!0}}function Uf(e){if(Wo())return;let t=ht(e);t.body.style.pointerEvents=Yl,t.body.style.length===0&&t.body.removeAttribute("style"),Ro=!1}function jf(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Hf.indexOf(e.type)!==-1:!1}function Yo(e){let t,n=ee({type:"button"},e),[r,o]=ne(n,["ref","type","disabled"]),i=jr(()=>t,()=>"button"),s=S(()=>{let c=i();return c==null?!1:jf({tagName:c,type:r.type})}),a=S(()=>i()==="input"),l=S(()=>i()==="a"&&t?.getAttribute("href")!=null);return m(ve,W({as:"button",ref(c){let d=_e(u=>t=u,r.ref);typeof d=="function"&&d(c)},get type(){return s()||a()?r.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!r.disabled?0:void 0},get disabled(){return s()||a()?r.disabled:void 0},get"aria-disabled"(){return!s()&&!a()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}function zo(e,t,n){return He(e,gt(t,n))}function rn(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function xn(e){return e.split("-")[1]}function Jl(e){return e==="x"?"y":"x"}function Xo(e){return e==="y"?"height":"width"}function tn(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function Zo(e){return Jl(tn(e))}function Zf(e,t,n){n===void 0&&(n=!1);let r=xn(e),o=Zo(e),i=Xo(o),s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Rr(s)),[s,Rr(s)]}function Jf(e){let t=Rr(e);return[No(e),t,No(t)]}function No(e){return e.replace(/start|end/g,t=>Xf[t])}function e0(e,t,n){let r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function t0(e,t,n,r){let o=xn(e),i=e0(Bt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(No)))),i}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>Yf[t])}function n0(e){return{top:0,right:0,bottom:0,left:0,...e}}function ea(e){return typeof e!="number"?n0(e):{top:e,right:e,bottom:e,left:e}}function zr(e){let{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 Ws(e,t,n){let{reference:r,floating:o}=e,i=tn(t),s=Zo(t),a=Xo(s),l=Bt(t),c=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2,f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(xn(t)){case"start":f[s]-=g*(n&&c?-1:1);break;case"end":f[s]+=g*(n&&c?-1:1);break}return f}async function Zn(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:g=!1,padding:f=0}=rn(t,e),h=ea(f),y=a[g?u==="floating"?"reference":"floating":u],v=zr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=zr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:l}):b);return{top:(v.top-C.top+h.top)/x.y,bottom:(C.bottom-v.bottom+h.bottom)/x.y,left:(v.left-C.left+h.left)/x.x,right:(C.right-v.right+h.right)/x.x}}function Ys(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xs(e){return Wf.some(t=>e[t]>=0)}async function l0(e,t){let{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Bt(n),a=xn(n),l=tn(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=rn(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof h=="number"&&(f=a==="end"?h*-1:h),l?{x:f*d,y:g*c}:{x:g*c,y:f*d}}function Cn(e){return ta(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pt(e){var t;return(t=(ta(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ta(e){return e instanceof Node||e instanceof je(e).Node}function st(e){return e instanceof Element||e instanceof je(e).Element}function mt(e){return e instanceof HTMLElement||e instanceof je(e).HTMLElement}function Zs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}function sr(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d0(e){return["table","td","th"].includes(Cn(e))}function Wr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jo(e){let t=ei(),n=st(e)?lt(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 f0(e){let t=Kt(e);for(;mt(t)&&!wn(t);){if(Jo(t))return t;if(Wr(t))return null;t=Kt(t)}return null}function ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wn(e){return["html","body","#document"].includes(Cn(e))}function lt(e){return je(e).getComputedStyle(e)}function Yr(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kt(e){if(Cn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Zs(e)&&e.host||Pt(e);return Zs(t)?t.host:t}function na(e){let t=Kt(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:mt(t)&&sr(t)?t:na(t)}function Jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let o=na(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=je(o);return i?t.concat(s,s.visualViewport||[],sr(o)?o:[],s.frameElement&&n?Jn(s.frameElement):[]):t.concat(o,Jn(o,[],n))}function ra(e){let t=lt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=mt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=_r(n)!==i||_r(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ti(e){return st(e)?e:e.contextElement}function bn(e){let t=ti(e);if(!mt(t))return Nt(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ra(t),s=(i?_r(n.width):n.width)/r,a=(i?_r(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function oa(e){let t=je(e);return!ei()||!t.visualViewport?g0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),i=ti(e),s=Nt(1);t&&(r?st(r)&&(s=bn(r)):s=bn(e));let a=h0(i,n,r)?oa(i):Nt(0),l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){let g=je(i),f=r&&st(r)?je(r):r,h=g,p=h.frameElement;for(;p&&r&&f!==h;){let y=bn(p),v=p.getBoundingClientRect(),b=lt(p),w=v.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,x=v.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,u*=y.y,l+=w,c+=x,h=je(p),p=h.frameElement}}return zr({width:d,height:u,x:l,y:c})}function m0(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i=o==="fixed",s=Pt(r),a=t?Wr(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Nt(1),d=Nt(0),u=mt(r);if((u||!u&&!i)&&((Cn(r)!=="body"||sr(s))&&(l=Yr(r)),mt(r))){let g=nn(r);c=bn(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function p0(e){return Array.from(e.getClientRects())}function ia(e){return nn(Pt(e)).left+Yr(e).scrollLeft}function y0(e){let t=Pt(e),n=Yr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+ia(e),a=-n.scrollTop;return lt(r).direction==="rtl"&&(s+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function v0(e,t){let n=je(e),r=Pt(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;let c=ei();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function b0(e,t){let n=nn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=mt(e)?bn(e):Nt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Js(e,t,n){let r;if(t==="viewport")r=v0(e,n);else if(t==="document")r=y0(Pt(e));else if(st(t))r=b0(t,n);else{let o=oa(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return zr(r)}function sa(e,t){let n=Kt(e);return n===t||!st(n)||wn(n)?!1:lt(n).position==="fixed"||sa(n,t)}function w0(e,t){let n=t.get(e);if(n)return n;let r=Jn(e,[],!1).filter(a=>st(a)&&Cn(a)!=="body"),o=null,i=lt(e).position==="fixed",s=i?Kt(e):e;for(;st(s)&&!wn(s);){let a=lt(s),l=Jo(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sr(s)&&!l&&sa(e,s))?r=r.filter(d=>d!==s):o=a,s=Kt(s)}return t.set(e,r),r}function x0(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[...n==="clippingAncestors"?Wr(t)?[]:w0(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{let u=Js(t,d,o);return c.top=He(u.top,c.top),c.right=gt(u.right,c.right),c.bottom=gt(u.bottom,c.bottom),c.left=He(u.left,c.left),c},Js(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function C0(e){let{width:t,height:n}=ra(e);return{width:t,height:n}}function S0(e,t,n){let r=mt(t),o=Pt(t),i=n==="fixed",s=nn(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=Nt(0);if(r||!r&&!i)if((Cn(t)!=="body"||sr(o))&&(a=Yr(t)),r){let u=nn(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=ia(o));let c=s.left+a.scrollLeft-l.x,d=s.top+a.scrollTop-l.y;return{x:c,y:d,width:s.width,height:s.height}}function Po(e){return lt(e).position==="static"}function el(e,t){return!mt(e)||lt(e).position==="fixed"?null:t?t(e):e.offsetParent}function la(e,t){let n=je(e);if(Wr(e))return n;if(!mt(e)){let o=Kt(e);for(;o&&!wn(o);){if(st(o)&&!Po(o))return o;o=Kt(o)}return n}let r=el(e,t);for(;r&&d0(r)&&Po(r);)r=el(r,t);return r&&wn(r)&&Po(r)&&!Jo(r)?n:r||f0(e)||n}function k0(e){return lt(e).direction==="rtl"}function E0(e,t){let n=null,r,o=Pt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();let{left:c,top:d,width:u,height:g}=e.getBoundingClientRect();if(a||t(),!u||!g)return;let f=Ir(d),h=Ir(o.clientWidth-(c+u)),p=Ir(o.clientHeight-(d+g)),y=Ir(c),b={rootMargin:-f+"px "+-h+"px "+-p+"px "+-y+"px",threshold:He(0,gt(1,l))||1},w=!0;function x(C){let I=C[0].intersectionRatio;if(I!==l){if(!w)return s();I?s(!1,I):r=setTimeout(()=>{s(!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 s(!0),i}function T0(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ti(e),d=o||i?[...c?Jn(c):[],...Jn(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});let u=c&&a?E0(c,n):null,g=-1,f=null;s&&(f=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let h,p=l?nn(e):null;l&&y();function y(){let v=nn(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,h=requestAnimationFrame(y)}return n(),()=>{var v;d.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),u?.(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(h)}}function ri(){let e=Ce(ni);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function oi(e){let t=ri(),n=ee({size:Bo},e),[r,o]=ne(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=_0(t.contentRef),a=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",c=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",d=()=>Number.parseInt(c())*2*(Bo/r.size),u=()=>`rotate(${q0[i()]} ${tl} ${tl}) translate(0 2)`;return m(ve,W({as:"div",ref(g){let f=_e(t.setArrowRef,r.ref);typeof f=="function"&&f(g)},"aria-hidden":"true",get style(){return Gr({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:a(),stroke:l(),"stroke-width":d()},r.style)}},o,{get children(){let g=L0(),f=g.firstChild;return K(()=>P(f,"transform",u())),g}}))}function _0(e){let[t,n]=q();return V(()=>{let r=e();r&&n(Ld(r).getComputedStyle(r))}),t}function R0(e){let t=ri(),[n,r]=ne(e,["ref","style"]);return m(ve,W({as:"div",ref(o){let i=_e(t.setPositionerRef,n.ref);typeof i=="function"&&i(o)},"data-popper-positioner":"",get style(){return Gr({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function nl(e){let{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);let i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return{...i,toJSON:()=>i}}function z0(e,t){return{contextElement:e,getBoundingClientRect:()=>{let r=t(e);return r?nl(r):e?e.getBoundingClientRect():nl()}}}function N0(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function K0(e,t){let[n,r]=e.split("-"),o=B0[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 V0(e){let t=ee({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]=q(),[o,i]=q(),[s,a]=q(t.placement),l=()=>z0(t.anchorRef?.(),t.getAnchorRect),{direction:c}=Vt();async function d(){let g=l(),f=n(),h=o();if(!g||!f)return;let p=(h?.clientHeight||0)/2,y=typeof t.gutter=="number"?t.gutter+p:t.gutter??p;f.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),g.getBoundingClientRect();let v=[A0(({placement:I})=>{let O=!!I.split("-")[1];return{mainAxis:y,crossAxis:O?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let I=typeof t.flip=="string"?t.flip.split(" "):void 0;if(I!==void 0&&!I.every(N0))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(M0({padding:t.overflowPadding,fallbackPlacements:I}))}(t.slide||t.overlap)&&v.push(P0({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),v.push(D0({padding:t.overflowPadding,apply({availableWidth:I,availableHeight:O,rects:F}){let $=Math.round(F.reference.width);I=Math.floor(I),O=Math.floor(O),f.style.setProperty("--kb-popper-anchor-width",`${$}px`),f.style.setProperty("--kb-popper-content-available-width",`${I}px`),f.style.setProperty("--kb-popper-content-available-height",`${O}px`),t.sameWidth&&(f.style.width=`${$}px`),t.fitViewport&&(f.style.maxWidth=`${I}px`,f.style.maxHeight=`${O}px`)}})),t.hideWhenDetached&&v.push(O0({padding:t.detachedPadding})),h&&v.push(I0({element:h,padding:t.arrowPadding}));let b=await F0(g,f,{placement:t.placement,strategy:"absolute",middleware:v,platform:{...aa,isRTL:()=>c()==="rtl"}});if(a(b.placement),t.onCurrentPlacementChange?.(b.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",K0(b.placement,c()));let w=Math.round(b.x),x=Math.round(b.y),C;if(t.hideWhenDetached&&(C=b.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${w}px, ${x}px, 0)`,visibility:C}),h&&b.middlewareData.arrow){let{x:I,y:O}=b.middlewareData.arrow,F=b.placement.split("-")[0];Object.assign(h.style,{left:I!=null?`${I}px`:"",top:O!=null?`${O}px`:"",[F]:"100%"})}}V(()=>{let g=l(),f=n();if(!g||!f)return;let h=T0(g,f,d,{elementResize:typeof ResizeObserver=="function"});H(h)}),V(()=>{let g=n(),f=t.contentRef?.();!g||!f||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(f).zIndex})});let u={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return m(ni.Provider,{value:u,get children(){return t.children}})}function U0(e){let t=n=>{n.key===Go.Escape&&e.onEscapeKeyDown?.(n)};V(()=>{if(Oe||T(e.isDisabled))return;let n=e.ownerDocument?.()??ht();n.addEventListener("keydown",t),H(()=>{n.removeEventListener("keydown",t)})})}function G0(e,t){let n,r=Xd,o=()=>ht(t()),i=u=>e.onPointerDownOutside?.(u),s=u=>e.onFocusOutside?.(u),a=u=>e.onInteractOutside?.(u),l=u=>{let g=u.target;return!(g instanceof HTMLElement)||g.closest(`[${qr}]`)||!Ze(o(),g)||Ze(t(),g)?!1:!e.shouldExcludeElement?.(g)},c=u=>{function g(){let f=t(),h=u.target;if(!f||!h||!l(u))return;let p=Te([i,a]);h.addEventListener(rl,p,{once:!0});let y=new CustomEvent(rl,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:u.button===2||Nd(u)&&u.button===0}});h.dispatchEvent(y)}u.pointerType==="touch"?(o().removeEventListener("click",g),r=g,o().addEventListener("click",g,{once:!0})):g()},d=u=>{let g=t(),f=u.target;if(!g||!f||!l(u))return;let h=Te([s,a]);f.addEventListener(ol,h,{once:!0});let p=new CustomEvent(ol,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:!1}});f.dispatchEvent(p)};V(()=>{Oe||T(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0)},0),o().addEventListener("focusin",d,!0),H(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",d,!0)}))})}function H0(){return Ce(ua)}function j0(e){let t,n=H0(),[r,o]=ne(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=u=>{i.add(u);let g=n?.registerNestedLayer(u);return()=>{i.delete(u),g?.()}};G0({shouldExcludeElement:u=>t?r.excludedElements?.some(g=>Ze(g(),u))||[...i].some(g=>Ze(g,u)):!1,onPointerDownOutside:u=>{!t||Ue.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!Ue.isTopMostLayer(t)||(r.onPointerDownOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.())},onFocusOutside:u=>{r.onFocusOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.()}},()=>t),U0({ownerDocument:()=>ht(t),onEscapeKeyDown:u=>{!t||!Ue.isTopMostLayer(t)||(r.onEscapeKeyDown?.(u),!u.defaultPrevented&&r.onDismiss&&(u.preventDefault(),r.onDismiss()))}}),$t(()=>{if(!t)return;Ue.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let u=n?.registerNestedLayer(t);Ue.assignPointerEventToLayers(),Ue.disableBodyPointerEvents(t),H(()=>{t&&(Ue.removeLayer(t),u?.(),Ue.assignPointerEventToLayers(),Ue.restoreBodyPointerEvents(t))})}),V(ft([()=>t,()=>r.disableOutsidePointerEvents],([u,g])=>{if(!u)return;let f=Ue.find(u);f&&f.isPointerBlocking!==g&&(f.isPointerBlocking=g,Ue.assignPointerEventToLayers()),g&&Ue.disableBodyPointerEvents(u),H(()=>{Ue.restoreBodyPointerEvents(u)})},{defer:!0}));let d={registerNestedLayer:s};return m(ua.Provider,{value:d,get children(){return m(ve,W({as:"div",ref(u){let g=_e(f=>t=f,r.ref);typeof g=="function"&&g(u)}},o))}})}function da(e={}){let[t,n]=zl({value:()=>T(e.open),defaultValue:()=>!!T(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0)},o=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r()}}}function ga(){let e=Ce(fa);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function lr(){let e=Ce(ha);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function ma(e){let t=or(),n=ga(),r=`${t.generateId("item")}-${Ve()}`,o=ee({id:r},e),[i,s]=ne(o,["value","disabled","onPointerDown"]),[a,l]=q(),[c,d]=q(),[u,g]=q(),[f,h]=q(),[p,y]=q(!1),v=S(()=>n.isSelectedValue(i.value)),b=S(()=>i.disabled||t.isDisabled()||!1),w=I=>{ye(I,i.onPointerDown),p()&&I.preventDefault()},x=S(()=>({...t.dataset(),"data-disabled":b()?"":void 0,"data-checked":v()?"":void 0})),C={value:()=>i.value,dataset:x,isSelected:v,isDisabled:b,inputId:a,labelId:c,descriptionId:u,inputRef:f,select:()=>n.setSelectedValue(i.value),generateId:rr(()=>s.id),registerInput:Je(l),registerLabel:Je(d),registerDescription:Je(g),setIsFocused:y,setInputRef:h};return m(ha.Provider,{value:C,get children(){return m(ve,W({as:"div",role:"group",onPointerDown:w},x,s))}})}function pa(e){let t=lr(),n=ee({id:t.generateId("control")},e),[r,o]=ne(n,["onClick","onKeyDown"]);return m(ve,W({as:"div",onClick:a=>{ye(a,r.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:a=>{ye(a,r.onKeyDown),a.key===Go.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),o))}function ya(e){let t=lr(),n=ee({id:t.generateId("description")},e);return V(()=>H(t.registerDescription(n.id))),m(ve,W({as:"div"},()=>t.dataset(),n))}function va(e){let t=lr(),n=ee({id:t.generateId("indicator")},e),[r,o]=ne(n,["ref","forceMount"]),[i,s]=q(),{present:a}=Wl({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return m(U,{get when(){return a()},get children(){return m(ve,W({as:"div",ref(l){let c=_e(s,r.ref);typeof c=="function"&&c(l)}},()=>t.dataset(),o))}})}function ba(e){let t=or(),n=ga(),r=lr(),o=ee({id:r.generateId("input")},e),[i,s]=ne(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),a=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[c,d]=q(!1),u=h=>{if(ye(h,i.onChange),h.stopPropagation(),!c()){n.setSelectedValue(r.value());let p=h.target;p.checked=r.isSelected()}d(!1)},g=h=>{ye(h,i.onFocus),r.setIsFocused(!0)},f=h=>{ye(h,i.onBlur),r.setIsFocused(!1)};return V(ft([()=>r.isSelected(),()=>r.value()],h=>{if(!h[0]&&h[1]===r.value())return;d(!0);let p=r.inputRef();p?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),p?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),V(()=>H(r.registerInput(s.id))),m(ve,W({as:"input",ref(h){let p=_e(r.setInputRef,i.ref);typeof p=="function"&&p(h)},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 Gr({...Ll},i.style)},get"aria-labelledby"(){return a()},get"aria-describedby"(){return l()},onChange:u,onFocus:g,onBlur:f},()=>r.dataset(),s))}function wa(e){let t=lr(),n=ee({id:t.generateId("label")},e);return V(()=>H(t.registerLabel(n.id))),m(ve,W({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function xa(e){return m(nf,W({as:"span"},e))}function Ca(e){let t,n=`radiogroup-${Ve()}`,r=ee({id:n,orientation:"vertical"},e),[o,i,s]=ne(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],ef),[a,l]=ir({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:h=>o.onChange?.(h)}),{formControlContext:c}=tf(i);rf(()=>t,()=>l(o.defaultValue??""));let d=()=>c.getAriaLabelledBy(T(i.id),s["aria-label"],o["aria-labelledby"]),u=()=>c.getAriaDescribedBy(o["aria-describedby"]),g=h=>h===a(),f={ariaDescribedBy:u,isSelectedValue:g,setSelectedValue:h=>{if(!(c.isReadOnly()||c.isDisabled())&&(l(h),t))for(let p of t.querySelectorAll("[type='radio']")){let y=p;y.checked=g(y.value)}}};return m(ql.Provider,{value:c,get children(){return m(fa.Provider,{value:f,get children(){return m(ve,W({as:"div",ref(h){let p=_e(y=>t=y,o.ref);typeof p=="function"&&p(h)},role:"radiogroup",get id(){return T(i.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 d()},get"aria-describedby"(){return u()}},()=>c.dataset(),s))}})}})}function Y0(e,t,n){let r=kf({usage:"search",sensitivity:"base"}),o=S(()=>{let i=T(e.keyboardDelegate);return i||new W0(e.collection,t,r)});return Of({selectionManager:()=>T(e.selectionManager),keyboardDelegate:o,autoFocus:()=>T(e.autoFocus),deferAutoFocus:()=>T(e.deferAutoFocus),shouldFocusWrap:()=>T(e.shouldFocusWrap),disallowEmptySelection:()=>T(e.disallowEmptySelection),selectOnFocus:()=>T(e.selectOnFocus),disallowTypeAhead:()=>T(e.disallowTypeAhead),shouldUseVirtualFocus:()=>T(e.shouldUseVirtualFocus),allowsTabNavigation:()=>T(e.allowsTabNavigation),isVirtualized:()=>T(e.isVirtualized),scrollToKey:i=>T(e.scrollToKey)?.(i),orientation:()=>T(e.orientation)},t)}function X0(e,t){let[n,r]=q(!1),o={pause(){r(!0)},resume(){r(!1)}},i=null,s=h=>e.onMountAutoFocus?.(h),a=h=>e.onUnmountAutoFocus?.(h),l=()=>ht(t()),c=()=>{let h=l().createElement("span");return h.setAttribute("data-focus-trap",""),h.tabIndex=0,Object.assign(h.style,Ll),h},d=()=>{let h=t();return h?Il(h,!0).filter(p=>!p.hasAttribute("data-focus-trap")):[]},u=()=>{let h=d();return h.length>0?h[0]:null},g=()=>{let h=d();return h.length>0?h[h.length-1]:null},f=()=>{let h=t();if(!h)return!1;let p=Qn(h);return!p||Ze(h,p)?!1:Fl(p)};V(()=>{if(Oe)return;let h=t();if(!h)return;sl.add(o);let p=Qn(h);if(!Ze(h,p)){let v=new CustomEvent(Mo,il);h.addEventListener(Mo,s),h.dispatchEvent(v),v.defaultPrevented||setTimeout(()=>{Fe(u()),Qn(h)===p&&Fe(h)},0)}H(()=>{h.removeEventListener(Mo,s),setTimeout(()=>{let v=new CustomEvent(Do,il);f()&&v.preventDefault(),h.addEventListener(Do,a),h.dispatchEvent(v),v.defaultPrevented||Fe(p??l().body),h.removeEventListener(Do,a),sl.remove(o)},0)})}),V(()=>{if(Oe)return;let h=t();if(!h||!T(e.trapFocus)||n())return;let p=v=>{let b=v.target;b?.closest(`[${qr}]`)||(Ze(h,b)?i=b:Fe(i))},y=v=>{let w=v.relatedTarget??Qn(h);w?.closest(`[${qr}]`)||Ze(h,w)||Fe(i)};l().addEventListener("focusin",p),l().addEventListener("focusout",y),H(()=>{l().removeEventListener("focusin",p),l().removeEventListener("focusout",y)})}),V(()=>{if(Oe)return;let h=t();if(!h||!T(e.trapFocus)||n())return;let p=c();h.insertAdjacentElement("afterbegin",p);let y=c();h.insertAdjacentElement("beforeend",y);function v(w){let x=u(),C=g();w.relatedTarget===x?Fe(C):Fe(x)}p.addEventListener("focusin",v),y.addEventListener("focusin",v);let b=new MutationObserver(w=>{for(let x of w)x.previousSibling===y&&(y.remove(),h.insertAdjacentElement("beforeend",y)),x.nextSibling===p&&(p.remove(),h.insertAdjacentElement("afterbegin",p))});b.observe(h,{childList:!0,subtree:!1}),H(()=>{p.removeEventListener("focusin",v),y.removeEventListener("focusin",v),p.remove(),y.remove(),b.disconnect()})})}function J0(e){V(()=>{T(e.isDisabled)||H(eg(T(e.targets),T(e.root)))})}function eg(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let g of l.querySelectorAll(`[${Z0}], [${qr}]`))n.add(g);let c=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let f of n)if(g.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),u=c(l);if(u===NodeFilter.FILTER_ACCEPT&&i(l),u!==NodeFilter.FILTER_REJECT){let g=d.nextNode();for(;g!=null;)i(g),g=d.nextNode()}},i=l=>{let c=Hn.get(l)??0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Hn.set(l,c+1))};Ye.length&&Ye[Ye.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Ye.push(a),()=>{s.disconnect();for(let l of r){let c=Hn.get(l);if(c==null)return;c===1?(l.removeAttribute("aria-hidden"),Hn.delete(l)):Hn.set(l,c-1)}a===Ye[Ye.length-1]?(Ye.pop(),Ye.length&&Ye[Ye.length-1].observe()):Ye.splice(Ye.indexOf(a),1)}}function $a(){return Ce(Sa)}function Mt(){let e=$a();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ii(){let e=Ce(ka);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function pt(){let e=Ce(Ea);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function si(e){let t,n=pt(),r=Mt(),o=ee({id:n.generateId(`item-${Ve()}`)},e),[i,s]=ne(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[a,l]=q(),[c,d]=q(),[u,g]=q(),f=()=>r.listState().selectionManager(),h=()=>s.id,p=()=>f().focusedKey()===h(),y=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0)})};yf({getItem:()=>({ref:()=>t,type:"item",key:h(),textValue:i.textValue??u()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});let v=Ql({key:h,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),b=$=>{ye($,i.onPointerMove),$.pointerType==="mouse"&&(i.disabled?r.onItemLeave($):(r.onItemEnter($),$.defaultPrevented||(Fe($.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(h()))))},w=$=>{ye($,i.onPointerLeave),$.pointerType==="mouse"&&r.onItemLeave($)},x=$=>{ye($,i.onPointerUp),!i.disabled&&$.button===0&&y()},C=$=>{if(ye($,i.onKeyDown),!$.repeat&&!i.disabled)switch($.key){case"Enter":case" ":y();break}},I=S(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),O=S(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":p()?"":void 0})),F={isChecked:()=>i.checked,dataset:O,setLabelRef:g,generateId:rr(()=>s.id),registerLabel:Je(l),registerDescription:Je(d)};return m(ka.Provider,{value:F,get children(){return m(ve,W({as:"div",ref($){let A=_e(B=>t=B,i.ref);typeof A=="function"&&A($)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return I()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return a()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return Te([i.onPointerDown,v.onPointerDown])},get onPointerUp(){return Te([x,v.onPointerUp])},get onClick(){return Te([i.onClick,v.onClick])},get onKeyDown(){return Te([C,v.onKeyDown])},get onMouseDown(){return Te([i.onMouseDown,v.onMouseDown])},get onFocus(){return Te([i.onFocus,v.onFocus])},onPointerMove:b,onPointerLeave:w},O,s))}})}function Ta(e){let t=ee({closeOnSelect:!1},e),[n,r]=ne(t,["checked","defaultChecked","onChange","onSelect"]),o=af({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return m(si,W({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle()}},r))}function Xr(){return Ce(ug)}function Aa(e){let t=pt(),n=Mt(),r=Xr(),{direction:o}=Vt(),i=ee({id:t.generateId("trigger")},e),[s,a]=ne(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();r!==void 0&&(l=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(l));let c=jr(()=>n.triggerRef(),()=>"button"),d=S(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);V(ft(()=>r?.value(),v=>{d()&&v===l()&&n.triggerRef()?.focus()}));let u=()=>{r!==void 0?n.isOpen()?r.value()===l()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},g=v=>{ye(v,s.onPointerDown),v.currentTarget.dataset.pointerType=v.pointerType,!s.disabled&&v.pointerType!=="touch"&&v.button===0&&u()},f=v=>{ye(v,s.onClick),s.disabled||v.currentTarget.dataset.pointerType==="touch"&&u()},h=v=>{if(ye(v,s.onKeyDown),!s.disabled){if(d())switch(v.key){case"Enter":case" ":return}switch(v.key){case"Enter":case" ":case fl.first(t.orientation()):v.stopPropagation(),v.preventDefault(),Jd(v.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(l);break;case fl.last(t.orientation()):v.stopPropagation(),v.preventDefault(),n.open("last");break;case er.next(o(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.nextMenu();break;case er.previous(o(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.previousMenu();break}}},p=v=>{ye(v,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(l)},y=v=>{ye(v,s.onFocus),r!==void 0&&v.currentTarget.dataset.pointerType!=="touch"&&r.setValue(l)};return V(()=>H(n.registerTriggerId(s.id))),m(Yo,W({ref(v){let b=_e(n.setTriggerRef,s.ref);typeof b=="function"&&b(v)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return S(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&r?.value()===l()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===l()||r.lastValue()===l()?0:-1:void 0},onPointerDown:g,onMouseOver:p,onClick:f,onKeyDown:h,onFocus:y,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),a))}function Pa(){return Ce(dg)}function Ma(e){let t,n=pt(),r=Mt(),o=Xr(),i=Pa(),{direction:s}=Vt(),a=ee({id:n.generateId(`content-${Ve()}`)},e),[l,c]=ne(a,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,u=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),g=Y0({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);X0({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:w=>{o===void 0&&l.onOpenAutoFocus?.(w)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let f=w=>{if(Ze(w.currentTarget,w.target)&&(w.key==="Tab"&&r.isOpen()&&w.preventDefault(),o!==void 0&&w.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(w.key){case er.next(s(),n.orientation()):w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case er.previous(s(),n.orientation()):if(w.currentTarget.hasAttribute("data-closed"))break;w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},h=w=>{l.onEscapeKeyDown?.(w),o?.setAutoFocusMenu(!1),r.close(!0)},p=w=>{l.onFocusOutside?.(w),n.isModal()&&w.preventDefault()},y=w=>{ye(w,l.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},v=w=>{if(ye(w,l.onPointerMove),w.pointerType!=="mouse")return;let x=w.target,C=d!==w.clientX;Ze(w.currentTarget,x)&&C&&(r.setPointerDir(w.clientX>d?"right":"left"),d=w.clientX)};V(()=>H(r.registerContentId(l.id)));let b={ref:_e(w=>{r.setContentRef(w),t=w},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return g.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:Te([l.onKeyDown,g.onKeyDown,f]),onMouseDown:Te([l.onMouseDown,g.onMouseDown]),onFocusIn:Te([l.onFocusIn,g.onFocusIn]),onFocusOut:Te([l.onFocusOut,g.onFocusOut]),onPointerEnter:y,onPointerMove:v,get"data-orientation"(){return n.orientation()}};return m(U,{get when(){return r.contentPresent()},get children(){return m(U,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return m(ve,W({as:"div"},()=>r.dataset(),b,c))},get children(){return m(ca.Positioner,{get children(){return m(j0,W({get disableOutsidePointerEvents(){return S(()=>!!u())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Gr({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:h,onFocusOutside:p,get onDismiss(){return r.close}},()=>r.dataset(),b,c))}})}})}})}function fg(e){let t,n=pt(),r=Mt(),[o,i]=ne(e,["ref"]);return cg({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),m(Ma,W({ref(s){let a=_e(l=>{t=l},o.ref);typeof a=="function"&&a(s)}},i))}function gg(){let e=Ce(Da);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function li(e){let t=pt(),n=ee({id:t.generateId(`group-${Ve()}`)},e),[r,o]=q(),i={generateId:rr(()=>n.id),registerLabelId:Je(o)};return m(Da.Provider,{value:i,get children(){return m(ve,W({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function Oa(e){let t=gg(),n=ee({id:t.generateId("label")},e),[r,o]=ne(n,["id"]);return V(()=>H(t.registerLabelId(r.id))),m(ve,W({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Ia(e){let t=Mt(),n=ee({children:"\u25BC"},e);return m(ve,W({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Fa(e){return m(si,W({role:"menuitem",closeOnSelect:!0},e))}function La(e){let t=ii(),n=ee({id:t.generateId("description")},e),[r,o]=ne(n,["id"]);return V(()=>H(t.registerDescription(r.id))),m(ve,W({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function qa(e){let t=ii(),n=ee({id:t.generateId("indicator")},e),[r,o]=ne(n,["forceMount"]);return m(U,{get when(){return r.forceMount||t.isChecked()},get children(){return m(ve,W({as:"div"},()=>t.dataset(),o))}})}function _a(e){let t=ii(),n=ee({id:t.generateId("label")},e),[r,o]=ne(n,["ref","id"]);return V(()=>H(t.registerLabel(r.id))),m(ve,W({as:"div",ref(i){let s=_e(t.setLabelRef,r.ref);typeof s=="function"&&s(i)},get id(){return r.id}},()=>t.dataset(),o))}function Ra(e){let t=Mt();return m(U,{get when(){return t.contentPresent()},get children(){return m(So,e)}})}function hg(){let e=Ce(za);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Na(e){let n=pt().generateId(`radiogroup-${Ve()}`),r=ee({id:n},e),[o,i]=ne(r,["value","defaultValue","onChange","disabled"]),[s,a]=ir({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>o.onChange?.(c)}),l={isDisabled:()=>o.disabled,isSelectedValue:c=>c===s(),setSelectedValue:a};return m(za.Provider,{value:l,get children(){return m(li,i)}})}function Ba(e){let t=hg(),n=ee({closeOnSelect:!1},e),[r,o]=ne(n,["value","onSelect"]);return m(si,W({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},o))}function mg(e,t,n){let r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,a=t.clientY;switch(r){case"top":i.push([s,a+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,a]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,a-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,a]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function pg(e,t){return t?Zd([e.clientX,e.clientY],t):!1}function Ka(e){let t=pt(),n=Bl(),r=$a(),o=Xr(),i=Pa(),s=ee({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[a,l]=ne(s,["open","defaultOpen","onOpenChange"]),c=0,d=null,u="right",[g,f]=q(),[h,p]=q(),[y,v]=q(),[b,w]=q(),[x,C]=q(!0),[I,O]=q(l.placement),[F,$]=q([]),[A,B]=q([]),{DomCollectionProvider:N}=pf({items:A,onItemsChange:B}),J=da({open:()=>a.open,defaultOpen:()=>a.defaultOpen,onOpenChange:Q=>a.onOpenChange?.(Q)}),{present:se}=Wl({show:()=>t.forceMount()||J.isOpen(),element:()=>b()??null}),he=Ff({selectionMode:"none",dataSource:A}),de=Q=>{C(Q),J.open()},ae=(Q=!1)=>{J.close(),Q&&r&&r.close(!0)},fe=Q=>{C(Q),J.toggle()},me=()=>{let Q=b();Q&&(Fe(Q),he.selectionManager().setFocused(!0),he.selectionManager().setFocusedKey(void 0))},$e=()=>{i!=null?setTimeout(()=>me()):me()},Re=Q=>{$(Me=>[...Me,Q]);let nt=r?.registerNestedMenu(Q);return()=>{$(Me=>Lo(Me,Q)),nt?.()}},we=Q=>u===d?.side&&pg(Q,d?.area),Le=Q=>{we(Q)&&Q.preventDefault()},D=Q=>{we(Q)||$e()},be=Q=>{we(Q)&&Q.preventDefault()};J0({isDisabled:()=>!(r==null&&J.isOpen()&&t.isModal()),targets:()=>[b(),...F()].filter(Boolean)}),V(()=>{let Q=b();if(!Q||!r)return;let nt=r.registerNestedMenu(Q);H(()=>{nt()})}),V(()=>{r===void 0&&o?.registerMenu(t.value(),[b(),...F()])}),V(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(y()?.focus(),o.autoFocusMenu()&&de(!0)):ae())}),V(()=>{r!==void 0||o===void 0||J.isOpen()&&o.setValue(t.value())}),H(()=>{r===void 0&&o?.unregisterMenu(t.value())});let Ot={dataset:S(()=>({"data-expanded":J.isOpen()?"":void 0,"data-closed":J.isOpen()?void 0:""})),isOpen:J.isOpen,contentPresent:se,nestedMenus:F,currentPlacement:I,pointerGraceTimeoutId:()=>c,autoFocus:x,listState:()=>he,parentMenuContext:()=>r,triggerRef:y,contentRef:b,triggerId:g,contentId:h,setTriggerRef:v,setContentRef:w,open:de,close:ae,toggle:fe,focusContent:$e,onItemEnter:Le,onItemLeave:D,onTriggerLeave:be,setPointerDir:Q=>u=Q,setPointerGraceTimeoutId:Q=>c=Q,setPointerGraceIntent:Q=>d=Q,registerNestedMenu:Re,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:Je(f),registerContentId:Je(p)};return m(N,{get children(){return m(Sa.Provider,{value:Ot,get children(){return m(U,{when:i===void 0,get fallback(){return l.children},get children(){return m(ca,W({anchorRef:y,contentRef:b,onCurrentPlacementChange:O},l))}})}})}})}function Va(e){let{direction:t}=Vt();return m(Ka,W({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Ua(e){let t=Mt(),n=pt(),[r,o]=ne(e,["onFocusOutside","onKeyDown"]),{direction:i}=Vt();return m(Ma,W({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{r.onFocusOutside?.(d);let u=d.target;Ze(t.triggerRef(),u)||t.close()},onKeyDown:d=>{ye(d,r.onKeyDown);let u=Ze(d.currentTarget,d.target),g=yg.close(i(),n.orientation()).includes(d.key),f=t.parentMenuContext()!=null;u&&g&&f&&(t.close(),Fe(t.triggerRef()))}},o))}function Ga(e){let t,n=pt(),r=Mt(),o=ee({id:n.generateId(`sub-trigger-${Ve()}`)},e),[i,s]=ne(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),a=null,l=()=>{Oe||(a&&window.clearTimeout(a),a=null)},{direction:c}=Vt(),d=()=>i.id,u=()=>{let 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(),f=()=>u().focusedKey()===d(),h=Ql({key:d,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),p=w=>{ye(w,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0)},y=w=>{if(ye(w,i.onPointerMove),w.pointerType!=="mouse")return;let x=r.parentMenuContext();if(x?.onItemEnter(w),!w.defaultPrevented){if(i.disabled){x?.onItemLeave(w);return}!r.isOpen()&&!a&&(r.parentMenuContext()?.setPointerGraceIntent(null),a=window.setTimeout(()=>{r.open(!1),l()},100)),x?.onItemEnter(w),w.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),Fe(w.currentTarget),x?.listState().selectionManager().setFocused(!0),x?.listState().selectionManager().setFocusedKey(d()))}},v=w=>{if(ye(w,i.onPointerLeave),w.pointerType!=="mouse")return;l();let x=r.parentMenuContext(),C=r.contentRef();if(C){x?.setPointerGraceIntent({area:mg(r.currentPlacement(),w,C),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(x?.pointerGraceTimeoutId());let I=window.setTimeout(()=>{x?.setPointerGraceIntent(null)},300);x?.setPointerGraceTimeoutId(I)}else{if(x?.onTriggerLeave(w),w.defaultPrevented)return;x?.setPointerGraceIntent(null)}x?.onItemLeave(w)},b=w=>{ye(w,i.onKeyDown),!w.repeat&&(i.disabled||vg.open(c(),n.orientation()).includes(w.key)&&(w.stopPropagation(),w.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(g().getFirstKey())))};return V(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let w=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});H(w)}),V(ft(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),w=>{H(()=>{window.clearTimeout(w),r.parentMenuContext()?.setPointerGraceIntent(null)})})),V(()=>H(r.registerTriggerId(i.id))),H(()=>{l()}),m(ve,W({as:"div",ref(w){let x=_e(C=>{r.setTriggerRef(C),t=C},i.ref);typeof x=="function"&&x(w)},get id(){return i.id},role:"menuitem",get tabIndex(){return h.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return S(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return h.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return Te([i.onPointerDown,h.onPointerDown])},get onPointerUp(){return Te([i.onPointerUp,h.onPointerUp])},get onClick(){return Te([p,h.onClick])},get onKeyDown(){return Te([b,h.onKeyDown])},get onMouseDown(){return Te([i.onMouseDown,h.onMouseDown])},get onFocus(){return Te([i.onFocus,h.onFocus])},onPointerMove:y,onPointerLeave:v},()=>r.dataset(),s))}function bg(e){let t=Xr(),n=`menu-${Ve()}`,r=ee({id:n,modal:!0},e),[o,i]=ne(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=da({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:l=>o.onOpenChange?.(l)}),a={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??a.isModal(),forceMount:()=>o.forceMount??!1,generateId:rr(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return m(Ea.Provider,{value:a,get children(){return m(Ka,W({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}function Zr(e){let t,n=ee({orientation:"horizontal"},e),[r,o]=ne(n,["ref","orientation"]),i=jr(()=>t,()=>"hr");return m(ve,W({as:"hr",ref(s){let a=_e(l=>t=l,r.ref);typeof a=="function"&&a(s)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}function Ha(e){let t=pt(),n=Mt(),[r,o]=ne(e,["onCloseAutoFocus","onInteractOutside"]),i=!1;return m(fg,W({onCloseAutoFocus:l=>{r.onCloseAutoFocus?.(l),i||Fe(n.triggerRef()),i=!1,l.preventDefault()},onInteractOutside:l=>{r.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(i=!0)}},o))}function ja(e){let t=`dropdownmenu-${Ve()}`,n=ee({id:t},e);return m(bg,n)}function Ug(){return Sg()}function Wa(){return $g()}function Yn(){return kg()}function hl(){return Eg()}function ml(){return ai()}function Gg(){return(()=>{var e=ai();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Hg(){return(()=>{var e=ai();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function jg(){return Tg()}function Qg(){return Ag()}function Wg(){return Pg()}function Yg(){return Mg()}function Xg(){return Dg()}function Zg(){return Og()}function Jg(){return Ig()}function eh(){return Fg()}function th(){return Lg()}function nh(e){return(()=>{var t=Qa(),n=t.firstChild;return K(()=>P(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function rh(){return qg()}function oh(){return _g()}function ih(e){return[m(U,{get when(){return e.checked},get children(){var t=Qa(),n=t.firstChild;return K(()=>P(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),m(U,{get when(){return!e.checked},get children(){var t=Rg(),n=t.firstChild;return K(()=>P(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function sh(){return zg()}function lh(){return Ng()}function ah(){return Bg()}function ch(){return Kg()}function pl(){let e=Ve();return(()=>{var t=Vg(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,s=o.nextSibling,a=s.firstChild,l=s.nextSibling,c=l.nextSibling,d=c.firstChild,u=c.nextSibling,g=u.firstChild,f=u.nextSibling,h=f.nextSibling,p=h.firstChild,y=h.nextSibling,v=y.firstChild,b=y.nextSibling,w=b.nextSibling,x=w.firstChild,C=w.nextSibling,I=C.firstChild,O=C.nextSibling,F=O.nextSibling,$=F.firstChild,A=F.nextSibling,B=A.firstChild,N=A.nextSibling,J=N.nextSibling,se=J.firstChild,he=J.nextSibling,de=he.firstChild,ae=he.nextSibling,fe=ae.nextSibling,me=fe.firstChild,$e=fe.nextSibling,Re=$e.firstChild,we=$e.nextSibling,Le=we.firstChild,D=Le.nextSibling,be=D.nextSibling,re=be.nextSibling,Ot=re.nextSibling,Q=we.nextSibling,nt=Q.firstChild,Me=Q.nextSibling,sn=Me.firstChild,Qe=Me.nextSibling,It=Qe.firstChild,Gt=It.nextSibling,vt=Gt.nextSibling,ct=vt.firstChild,bt=ct.nextSibling,_=bt.nextSibling,ce=_.nextSibling,qe=ce.nextSibling,ge=qe.nextSibling,le=ge.nextSibling,pe=le.nextSibling,ke=pe.nextSibling,ie=ke.nextSibling,wt=ie.nextSibling,xt=wt.nextSibling,rt=Qe.nextSibling,Ht=rt.firstChild,Ct=rt.nextSibling,jt=Ct.firstChild,St=Ct.nextSibling,Ft=St.firstChild,ur=Ft.nextSibling,Tn=St.nextSibling,dr=Tn.firstChild,ln=Tn.nextSibling,fr=ln.firstChild,An=ln.nextSibling,Pn=An.firstChild,Mn=Pn.nextSibling,an=Mn.nextSibling,fi=an.nextSibling,gi=fi.nextSibling,hi=gi.nextSibling,mi=hi.nextSibling,pi=mi.nextSibling,yi=pi.nextSibling,vi=yi.nextSibling,bi=vi.nextSibling,wi=bi.nextSibling,xi=wi.nextSibling,Ci=xi.nextSibling,Si=Ci.nextSibling,$i=Si.nextSibling,ki=$i.nextSibling,Ec=ki.nextSibling;return P(n,"id",`a-${e}`),P(r,"fill",`url(#a-${e})`),P(i,"id",`am-${e}`),P(s,"id",`b-${e}`),P(a,"filter",`url(#am-${e})`),P(l,"mask",`url(#b-${e})`),P(d,"id",`ah-${e}`),P(u,"id",`k-${e}`),P(g,"filter",`url(#ah-${e})`),P(f,"mask",`url(#k-${e})`),P(p,"id",`ae-${e}`),P(y,"id",`j-${e}`),P(v,"filter",`url(#ae-${e})`),P(b,"mask",`url(#j-${e})`),P(x,"id",`ai-${e}`),P(C,"id",`i-${e}`),P(I,"filter",`url(#ai-${e})`),P(O,"mask",`url(#i-${e})`),P($,"id",`aj-${e}`),P(A,"id",`h-${e}`),P(B,"filter",`url(#aj-${e})`),P(N,"mask",`url(#h-${e})`),P(se,"id",`ag-${e}`),P(he,"id",`g-${e}`),P(de,"filter",`url(#ag-${e})`),P(ae,"mask",`url(#g-${e})`),P(me,"id",`af-${e}`),P($e,"id",`f-${e}`),P(Re,"filter",`url(#af-${e})`),P(we,"mask",`url(#f-${e})`),P(re,"id",`m-${e}`),P(Ot,"fill",`url(#m-${e})`),P(nt,"id",`ak-${e}`),P(Me,"id",`e-${e}`),P(sn,"filter",`url(#ak-${e})`),P(Qe,"mask",`url(#e-${e})`),P(It,"id",`n-${e}`),P(Gt,"fill",`url(#n-${e})`),P(ct,"id",`r-${e}`),P(bt,"fill",`url(#r-${e})`),P(_,"id",`s-${e}`),P(ce,"fill",`url(#s-${e})`),P(qe,"id",`q-${e}`),P(ge,"fill",`url(#q-${e})`),P(le,"id",`p-${e}`),P(pe,"fill",`url(#p-${e})`),P(ke,"id",`o-${e}`),P(ie,"fill",`url(#o-${e})`),P(wt,"id",`l-${e}`),P(xt,"fill",`url(#l-${e})`),P(Ht,"id",`al-${e}`),P(Ct,"id",`d-${e}`),P(jt,"filter",`url(#al-${e})`),P(St,"mask",`url(#d-${e})`),P(Ft,"id",`u-${e}`),P(ur,"fill",`url(#u-${e})`),P(dr,"id",`ad-${e}`),P(ln,"id",`c-${e}`),P(fr,"filter",`url(#ad-${e})`),P(An,"mask",`url(#c-${e})`),P(Pn,"id",`t-${e}`),P(Mn,"fill",`url(#t-${e})`),P(an,"id",`v-${e}`),P(fi,"stroke",`url(#v-${e})`),P(gi,"id",`aa-${e}`),P(hi,"stroke",`url(#aa-${e})`),P(mi,"id",`w-${e}`),P(pi,"stroke",`url(#w-${e})`),P(yi,"id",`ac-${e}`),P(vi,"stroke",`url(#ac-${e})`),P(bi,"id",`ab-${e}`),P(wi,"stroke",`url(#ab-${e})`),P(xi,"id",`y-${e}`),P(Ci,"stroke",`url(#y-${e})`),P(Si,"id",`x-${e}`),P($i,"stroke",`url(#x-${e})`),P(ki,"id",`z-${e}`),P(Ec,"stroke",`url(#z-${e})`),t})()}function wh(e,t){let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}function wl(e){return Symbol.iterator in e}function Rt(e){let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n)),o=G().client,[i,s]=q((e.defaultExpanded||[]).includes(e.label)),a=()=>s(h=>!h),[l,c]=q([]),d=S(()=>Array.isArray(e.value)?e.value.map((h,p)=>({label:p.toString(),value:h})):e.value!==null&&typeof e.value=="object"&&wl(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([h,p])=>({label:h,value:p})):Array.from(e.value,(h,p)=>({label:p.toString(),value:h})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([h,p])=>({label:h,value:p})):[]),u=S(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&wl(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),g=S(()=>wh(d(),100)),f=e.dataPath??[];return(()=>{var h=jn();return k(h,m(U,{get when(){return g().length},get children(){return[(()=>{var p=ph(),y=p.firstChild,v=y.firstChild,b=v.nextSibling,w=b.nextSibling,x=w.nextSibling,C=x.firstChild;return y.$$click=()=>a(),k(y,m(vl,{get expanded(){return i()}}),v),k(b,()=>e.label),k(x,()=>String(u()).toLowerCase()==="iterable"?"(Iterable) ":"",C),k(x,()=>d().length,C),k(x,()=>d().length>1?"items":"item",null),k(p,m(U,{get when(){return e.editable},get children(){var I=jn();return k(I,m(xh,{get value(){return e.value}}),null),k(I,m(U,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return m(bl,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),k(I,m(U,{get when(){return u()==="array"&&e.activeQuery!==void 0},get children(){return m(Ch,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),k(I,m(U,{get when(){return S(()=>!!e.onEdit)()&&!$o(e.value).meta},get children(){var O=mh();return O.$$click=()=>{e.onEdit?.()},k(O,m(th,{})),K(()=>M(O,r().actionButton)),O}}),null),K(()=>M(I,r().actions)),I}}),null),K(I=>{var O=r().expanderButtonContainer,F=r().expanderButton,$=r().info;return O!==I.e&&M(p,I.e=O),F!==I.t&&M(y,I.t=F),$!==I.a&&M(x,I.a=$),I},{e:void 0,t:void 0,a:void 0}),p})(),m(U,{get when(){return i()},get children(){return[m(U,{get when(){return g().length===1},get children(){var p=jn();return k(p,m(Lr,{get each(){return d()},by:y=>y.label,children:y=>m(Rt,{get defaultExpanded(){return e.defaultExpanded},get label(){return y().label},get value(){return y().value},get editable(){return e.editable},get dataPath(){return[...f,y().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return u()==="array"||u()==="Iterable"||u()==="object"}})})),K(()=>M(p,r().subEntry)),p}}),m(U,{get when(){return g().length>1},get children(){var p=jn();return k(p,m(ts,{get each(){return g()},children:(y,v)=>(()=>{var b=bh(),w=b.firstChild,x=w.firstChild,C=x.firstChild,I=C.nextSibling,O=I.nextSibling,F=O.nextSibling;return F.nextSibling,x.$$click=()=>c($=>$.includes(v)?$.filter(A=>A!==v):[...$,v]),k(x,m(vl,{get expanded(){return l().includes(v)}}),C),k(x,v*100,I),k(x,v*100+100-1,F),k(w,m(U,{get when(){return l().includes(v)},get children(){var $=jn();return k($,m(Lr,{get each(){return y()},by:A=>A.label,children:A=>m(Rt,{get defaultExpanded(){return e.defaultExpanded},get label(){return A().label},get value(){return A().value},get editable(){return e.editable},get dataPath(){return[...f,A().label]},get activeQuery(){return e.activeQuery}})})),K(()=>M($,r().subEntry)),$}}),null),K($=>{var A=r().entry,B=r().expanderButton;return A!==$.e&&M(w,$.e=A),B!==$.t&&M(x,$.t=B),$},{e:void 0,t:void 0}),b})()})),K(()=>M(p,r().subEntry)),p}})]}})]}}),null),k(h,m(U,{get when(){return g().length===0},get children(){var p=vh(),y=p.firstChild,v=y.firstChild;return k(y,()=>e.label,v),k(p,m(U,{get when(){return S(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number"||u()==="boolean")},get fallback(){return(()=>{var b=yl();return k(b,()=>Vn(e.value)),K(()=>M(b,r().value)),b})()},get children(){return[m(U,{get when(){return S(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number")},get children(){var b=yh();return b.addEventListener("change",w=>{let x=e.activeQuery.state.data,C=Lt(x,f,u()==="number"?w.target.valueAsNumber:w.target.value);o.setQueryData(e.activeQuery.queryKey,C)}),K(w=>{var x=u()==="number"?"number":"text",C=R(r().value,r().editableInput);return x!==w.e&&P(b,"type",w.e=x),C!==w.t&&M(b,w.t=C),w},{e:void 0,t:void 0}),K(()=>b.value=e.value),b}}),m(U,{get when(){return u()==="boolean"},get children(){var b=yl();return k(b,m(Sh,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),k(b,()=>Vn(e.value),null),K(()=>M(b,R(r().value,r().actions,r().editableInput))),b}})]}}),null),k(p,m(U,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return m(bl,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),K(b=>{var w=r().row,x=r().label;return w!==b.e&&M(p,b.e=w),x!==b.t&&M(y,b.t=x),b},{e:void 0,t:void 0}),p}}),null),K(()=>M(h,r().entry)),h})()}var Hu,ju,As,Qu,Wu,T,Oo,Zu,Kr,td,Ps,We,nd,en,Vo,rd,Io,Vr,od,Sl,id,$l,sd,Ms,ld,tr,kl,Ur,Uo,nr,El,ad,cd,Be,Fs,pd,yd,vd,bd,Ls,Jt,kt,Tl,wd,xd,qs,_s,To,Dd,Go,Or,Ol,Ud,jo,Gd,Gn,Ks,Ll,ef,ql,cf,Qr,Nl,bf,wf,_o,Wn,$f,Ao,Et,If,Qs,Ie,Lf,qf,Wl,qr,Yl,Ro,At,Ue,Gf,Hf,Qf,Wf,gt,He,_r,Ir,Nt,Yf,Xf,r0,o0,i0,s0,a0,c0,u0,g0,$0,aa,A0,P0,M0,D0,O0,I0,F0,ni,L0,Bo,tl,q0,B0,ca,rl,ol,ua,Xe,fa,ha,Q0,W0,Mo,Do,il,sl,Z0,Hn,Ye,Fr,tg,ll,ng,rg,og,al,cl,ig,sg,lg,ul,dl,Ko,ag,cg,Sa,ka,Ea,ug,er,fl,dg,Da,za,yg,gl,vg,wg,xg,Se,Cg,E,Sg,$g,kg,Eg,ai,Tg,Ag,Pg,Mg,Dg,Og,Ig,Fg,Lg,Qa,qg,_g,Rg,zg,Ng,Bg,Kg,Vg,uh,dh,fh,gh,hh,mh,jn,ph,yh,yl,vh,bh,vl,xh,Ch,bl,Sh,Ya,Sn,$n,$h,ar,kh,Eh,Th,Ah,Ph,Mh,Dh,Oh,Ih,Fh,Lh,qh,_h,Rh,zh,Nh,Bh,Kh,Vh,xl,Uh,Xa,Gh,Hh,jh,Qh,Wh,Yh,Xh,Zh,Jh,e1,Ge,Jr,zt,Za,it,ci,pn,Cl,Ja,t1,ec,n1,eo,r1,o1,i1,s1,Tt,l1,a1,Nr,c1,Pe,Br,u1,ot,tc,et,tt,ui=Dn(()=>{"use strict";te();Un();Hu=!Oe,ju=Hu&&!!rs,As=()=>{},Qu=e=>e!=null,Wu=e=>e.filter(Qu);T=e=>typeof e=="function"&&!e.length?e():e,Oo=e=>Array.isArray(e)?e:e?[e]:[];Zu=ju?e=>xr()?H(e):e:H;Kr=ed,td=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Ps=e=>{if(!e)return"";let t="";for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`}return t},We=td({_cookies:[globalThis.document,"cookie"],getItem:e=>We._cookies[0][We._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{let r=We.getItem(e);We._cookies[0][We._cookies[1]]=`${e}=${t}${Ps(n)}`;let o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:We});window.dispatchEvent(o)},removeItem:e=>{We._cookies[0][We._cookies[1]]=`${e}=deleted${Ps({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return We._cookies[0][We._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return We._cookies[0][We._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),nd=1024,en=796,Vo=700,rd="bottom-right",Io="bottom",Vr="system",od=!1,Sl=500,id=500,$l=500,sd=Object.keys(Pr)[0],Ms=1,ld=Object.keys(Mr)[0],tr=Ee({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});kl=Ee(void 0),Ur=e=>{let[t,n]=q(null),r=()=>{let s=t();s!=null&&(s.close(),n(null))},o=(s,a)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${a},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",os(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null)}),[...(G().shadowDOMTarget||document).styleSheets].forEach(c=>{try{let d=[...c.cssRules].map(h=>h.cssText).join(""),u=document.createElement("style"),g=c.ownerNode,f="";g&&"id"in g&&(f=g.id),f&&u.setAttribute("id",f),u.textContent=d,l.document.head.appendChild(u)}catch{let u=document.createElement("link");if(c.href==null)return;u.rel="stylesheet",u.type=c.type,u.media=c.media.toString(),u.href=c.href,l.document.head.appendChild(u)}}),Kn(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),n(l)};V(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||id))}),V(()=>{let s=(G().shadowDOMTarget||document).querySelector("#_goober"),a=t();if(s&&a){let l=new MutationObserver(()=>{let c=(G().shadowDOMTarget||a.document).querySelector("#_goober");c&&(c.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),H(()=>{l.disconnect()})}});let i=S(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return m(kl.Provider,{value:i,get children(){return e.children}})},Uo=()=>S(()=>{let t=Ce(kl);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),nr=Ee(()=>"dark");El={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z"},ad=Object.keys(El).join("|"),cd=new RegExp(ad,"g");Be={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Fs={maxRanking:1/0,minRanking:-1/0};pd={data:""},yd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||pd,vd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bd=/\/\*[^]*?\*\/| +/g,Ls=/\n+/g,Jt=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Jt(s,i):i+"{"+Jt(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Jt(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Jt.p?Jt.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},kt={},Tl=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Tl(e[n]);return t}return e},wd=(e,t,n,r,o)=>{let i=Tl(e),s=kt[i]||(kt[i]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(i));if(!kt[s]){let l=i!==e?e:(c=>{let d,u,g=[{}];for(;d=vd.exec(c.replace(bd,""));)d[4]?g.shift():d[3]?(u=d[3].replace(Ls," ").trim(),g.unshift(g[0][u]=g[0][u]||{})):g[0][d[1]]=d[2].replace(Ls," ").trim();return g[0]})(e);kt[s]=Jt(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&kt.g?kt.g:null;return n&&(kt.g=kt[s]),((l,c,d,u)=>{u?c.data=c.data.replace(u,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(kt[s],t,r,a),s},xd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":Jt(a,""):a===!1?"":a}return r+o+(s??"")},"");Y.bind({g:1});Y.bind({k:1});qs=Oe?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;_s=e=>{let t=$d(e);return Cd(Sd(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){let s=t();for(let l of n)kd(s,e,l);let a=[];for(let l of i)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&a.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:c,rect:d}of a)if(c.isConnected){let u=c.getBoundingClientRect(),g=d.left-u.left,f=d.top-u.top;(g||f)&&(c.style.transform=`translate(${g}px, ${f}px)`,c.style.transitionDuration="0s",l.push(c))}document.body.offsetHeight;for(let c of l){let d=function(u){(u.target===c||/transform$/.test(u.propertyName))&&(c.removeEventListener("transitionend",d),c.classList.remove(...s.move))};c.classList.add(...s.move),c.style.transform=c.style.transitionDuration="",c.addEventListener("transitionend",d)}});for(let l of r)Ed(s,e,l,()=>o([l]))}})},To=Symbol("fallback");Dd=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Go=(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))(Go||{});Or=null;Ol=["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'])"],Ud=[...Ol,'[tabindex]:not([tabindex="-1"]):not([disabled])'],jo=Ol.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Gd=Ud.join(':not([hidden]):not([tabindex="-1"]),');Gn=new Map,Ks=new Set;typeof document<"u"&&(document.readyState!=="loading"?Vs():document.addEventListener("DOMContentLoaded",Vs));Ll={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"};ef=["id","name","validationState","required","disabled","readOnly"];ql=Ee();cf=Object.defineProperty,Qr=(e,t)=>{for(var n in t)cf(e,n,{get:t[n],enumerable:!0})},Nl=Ee();bf=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),wf=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);_o=Gl(),Wn=new Set;$f=Ee();Ao=new Map;Et=class Hl extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof Hl?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};If=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;let 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;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let 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(let t of this.state.selectedKeys()){let 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}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,o=new Et(n,r,t);for(let i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(let i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o)}getKeyRange(e,t){let 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){let n=[],r=e;for(;r!=null;){let 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){let 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}let t=this.getKey(e);if(t==null)return;let n=new Et(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;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Et([t],t,t):new Et;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new Et;for(let n of e){let 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(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Et)}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;let t=this.selectedKeys();if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},Qs=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(let[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){let t=[...this.getKeys()];return this.getItem(t[e])}};Ie=e=>typeof e=="function"?e():e,Lf=e=>{let t=S(()=>{let s=Ie(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=q(Ie(e.show)?"present":"hidden"),i="none";return V(s=>{let a=Ie(e.show);return ue(()=>{if(s===a)return a;let l=i,c=n();a?o("present"):c==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&l!==c?"hiding":"hidden")}),a}),V(()=>{let s=Ie(e.element);if(!s)return;let a=c=>{c.target===s&&(i=n())},l=c=>{let u=n().includes(c.animationName);c.target===s&&u&&r()==="hiding"&&o("hidden")};s.addEventListener("animationstart",a),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),H(()=>{s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>r()==="present"||r()==="hiding",state:r}},qf=Lf,Wl=qf,qr="data-kb-top-layer",Ro=!1,At=[];Ue={layers:At,isTopMostLayer:Rf,hasPointerBlockingLayer:Wo,isBelowPointerBlockingLayer:Zl,addLayer:Nf,removeLayer:Bf,indexOf:Xn,find:_f,assignPointerEventToLayers:Kf,disableBodyPointerEvents:Vf,restoreBodyPointerEvents:Uf},Gf={};Qr(Gf,{Button:()=>Qf,Root:()=>Yo});Hf=["button","color","file","image","reset","submit"];Qf=Yo,Wf=["top","right","bottom","left"],gt=Math.min,He=Math.max,_r=Math.round,Ir=Math.floor,Nt=e=>({x:e,y:e}),Yf={left:"right",right:"left",bottom:"top",top:"bottom"},Xf={start:"end",end:"start"};r0=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Ws(c,r,l),g=r,f={},h=0;for(let p=0;p<a.length;p++){let{name:y,fn:v}=a[p],{x:b,y:w,data:x,reset:C}=await v({x:d,y:u,initialPlacement:r,placement:g,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});d=b??d,u=w??u,f={...f,[y]:{...f[y],...x}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:u}=Ws(c,g,l)),p=-1)}return{x:d,y:u,placement:g,strategy:o,middlewareData:f}};o0=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=rn(e,t)||{};if(c==null)return{};let u=ea(d),g={x:n,y:r},f=Zo(o),h=Xo(f),p=await s.getDimensions(c),y=f==="y",v=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[f]-g[f]-i.floating[h],C=g[f]-i.reference[f],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),O=I?I[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(I)))&&(O=a.floating[w]||i.floating[h]);let F=x/2-C/2,$=O/2-p[h]/2-1,A=gt(u[v],$),B=gt(u[b],$),N=A,J=O-p[h]-B,se=O/2-p[h]/2+F,he=zo(N,se,J),de=!l.arrow&&xn(o)!=null&&se!==he&&i.reference[h]/2-(se<N?A:B)-p[h]/2<0,ae=de?se<N?se-N:se-J:0;return{[f]:g[f]+ae,data:{[f]:he,centerOffset:se-he-ae,...de&&{alignmentOffset:ae}},reset:de}}}),i0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...y}=rn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let v=Bt(o),b=tn(a),w=Bt(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=g||(w||!p?[Rr(a)]:Jf(a)),I=h!=="none";!g&&I&&C.push(...t0(a,p,h,x));let O=[a,...C],F=await Zn(t,y),$=[],A=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&$.push(F[v]),u){let se=Zf(o,s,x);$.push(F[se[0]],F[se[1]])}if(A=[...A,{placement:o,overflows:$}],!$.every(se=>se<=0)){var B,N;let se=(((B=i.flip)==null?void 0:B.index)||0)+1,he=O[se];if(he)return{data:{index:se,overflows:A},reset:{placement:he}};let de=(N=A.filter(ae=>ae.overflows[0]<=0).sort((ae,fe)=>ae.overflows[1]-fe.overflows[1])[0])==null?void 0:N.placement;if(!de)switch(f){case"bestFit":{var J;let ae=(J=A.filter(fe=>{if(I){let me=tn(fe.placement);return me===b||me==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(me=>me>0).reduce((me,$e)=>me+$e,0)]).sort((fe,me)=>fe[1]-me[1])[0])==null?void 0:J[0];ae&&(de=ae);break}case"initialPlacement":de=a;break}if(o!==de)return{reset:{placement:de}}}return{}}}};s0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{let i=await Zn(t,{...o,elementContext:"reference"}),s=Ys(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xs(s)}}}case"escaped":{let i=await Zn(t,{...o,altBoundary:!0}),s=Ys(i,n.floating);return{data:{escapedOffsets:s,escaped:Xs(s)}}}default:return{}}}}};a0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:s,middlewareData:a}=t,l=await l0(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},c0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...l}=rn(e,t),c={x:n,y:r},d=await Zn(t,l),u=tn(Bt(o)),g=Jl(u),f=c[g],h=c[u];if(i){let y=g==="y"?"top":"left",v=g==="y"?"bottom":"right",b=f+d[y],w=f-d[v];f=zo(b,f,w)}if(s){let y=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=h+d[y],w=h-d[v];h=zo(b,h,w)}let p=a.fn({...t,[g]:f,[u]:h});return{...p,data:{x:p.x-n,y:p.y-r}}}}},u0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=rn(e,t),l=await Zn(t,a),c=Bt(n),d=xn(n),u=tn(n)==="y",{width:g,height:f}=r.floating,h,p;c==="top"||c==="bottom"?(h=c,p=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=c,h=d==="end"?"top":"bottom");let y=f-l.top-l.bottom,v=g-l.left-l.right,b=gt(f-l[h],y),w=gt(g-l[p],v),x=!t.middlewareData.shift,C=b,I=w;if(u?I=d||x?gt(w,v):v:C=d||x?gt(b,y):y,x&&!d){let F=He(l.left,0),$=He(l.right,0),A=He(l.top,0),B=He(l.bottom,0);u?I=g-2*(F!==0||$!==0?F+$:He(l.left,l.right)):C=f-2*(A!==0||B!==0?A+B:He(l.top,l.bottom))}await s({...t,availableWidth:I,availableHeight:C});let O=await o.getDimensions(i.floating);return g!==O.width||f!==O.height?{reset:{rects:!0}}:{}}}};g0=Nt(0);$0=async function(e){let t=this.getOffsetParent||la,n=this.getDimensions,r=await n(e.floating);return{reference:S0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};aa={convertOffsetParentRelativeRectToViewportRelativeRect:m0,getDocumentElement:Pt,getClippingRect:x0,getOffsetParent:la,getElementRects:$0,getClientRects:p0,getDimensions:C0,getScale:bn,isElement:st,isRTL:k0};A0=a0,P0=c0,M0=i0,D0=u0,O0=s0,I0=o0,F0=(e,t,n)=>{let r=new Map,o={platform:aa,...n},i={...o.platform,_c:r};return r0(e,t,{...o,platform:i})},ni=Ee();L0=z('<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">'),Bo=30,tl=Bo/2,q0={top:180,right:-90,bottom:0,left:90};B0={top:"bottom",right:"left",bottom:"top",left:"right"};ca=Object.assign(V0,{Arrow:oi,Context:ni,usePopperContext:ri,Positioner:R0});rl="interactOutside.pointerDownOutside",ol="interactOutside.focusOutside";ua=Ee();Xe={};Qr(Xe,{Description:()=>_l,ErrorMessage:()=>Rl,Item:()=>ma,ItemControl:()=>pa,ItemDescription:()=>ya,ItemIndicator:()=>va,ItemInput:()=>ba,ItemLabel:()=>wa,Label:()=>xa,RadioGroup:()=>Q0,Root:()=>Ca});fa=Ee();ha=Ee();Q0=Object.assign(Ca,{Description:_l,ErrorMessage:Rl,Item:ma,ItemControl:pa,ItemDescription:ya,ItemIndicator:va,ItemInput:ba,ItemLabel:wa,Label:xa}),W0=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;){let 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;){let 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;){let 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;){let 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){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){let o=this.collection().getItem(r);if(o){let i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}};Mo="focusScope.autoFocusOnMount",Do="focusScope.autoFocusOnUnmount",il={bubbles:!1,cancelable:!0},sl={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Lo(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Lo(this.stack,e),this.active()?.resume()}};Z0="data-live-announcer";Hn=new WeakMap,Ye=[];Fr=new Map,tg=e=>{V(()=>{let t=Ie(e.style)??{},n=Ie(e.properties)??[],r={};for(let i in t)r[i]=e.element.style[i];let o=Fr.get(e.key);o?o.activeCount++:Fr.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(let i of n)e.element.style.setProperty(i.key,i.value);H(()=>{let i=Fr.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Fr.delete(e.key);for(let[s,a]of Object.entries(i.originalStyles))e.element.style[s]=a;for(let s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},ll=tg,ng=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},rg=(e,t)=>{let n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},og=(e,t,n)=>{let r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,o=e,i=0,s=0,a=!1;do{let[l,c,d]=ng(o,t),u=d-l-r*c;(c!==0||u!==0)&&rg(o,t)&&(i+=u,s+=c),o===(n??document.documentElement)?a=!0:o=o._$host??o.parentElement}while(o&&!a);return[i,s]},[al,cl]=q([]),ig=e=>al().indexOf(e)===al().length-1,sg=e=>{let t=W({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=Ve(),r=[0,0],o=null,i=null;V(()=>{Ie(t.enabled)&&(cl(c=>[...c,n]),H(()=>{cl(c=>c.filter(d=>d!==n))}))}),V(()=>{if(!Ie(t.enabled)||!Ie(t.hideScrollbar))return;let{body:c}=document,d=window.innerWidth-c.offsetWidth;if(Ie(t.preventScrollbarShift)){let u={overflow:"hidden"},g=[];d>0&&(Ie(t.preventScrollbarShiftMode)==="padding"?u.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${d}px)`:u.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${d}px)`,g.push({key:"--scrollbar-width",value:`${d}px`}));let f=window.scrollY,h=window.scrollX;ll({key:"prevent-scroll",element:c,style:u,properties:g,cleanup:()=>{Ie(t.restoreScrollPosition)&&d>0&&window.scrollTo(h,f)}})}else ll({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),V(()=>{!ig(n)||!Ie(t.enabled)||(document.addEventListener("wheel",a,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),H(()=>{document.removeEventListener("wheel",a),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=c=>{r=ul(c),o=null,i=null},a=c=>{let d=c.target,u=Ie(t.element),g=lg(c),f=Math.abs(g[0])>Math.abs(g[1])?"x":"y",h=f==="x"?g[0]:g[1],p=dl(d,f,h,u),y;u&&Ko(u,d)?y=!p:y=!0,y&&c.cancelable&&c.preventDefault()},l=c=>{let d=Ie(t.element),u=c.target,g;if(c.touches.length===2)g=!Ie(t.allowPinchZoom);else{if(o==null||i===null){let f=ul(c).map((p,y)=>r[y]-p),h=Math.abs(f[0])>Math.abs(f[1])?"x":"y";o=h,i=h==="x"?f[0]:f[1]}if(u.type==="range")g=!1;else{let f=dl(u,o,i,d);d&&Ko(d,u)?g=!f:g=!0}}g&&c.cancelable&&c.preventDefault()}},lg=e=>[e.deltaX,e.deltaY],ul=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],dl=(e,t,n,r)=>{let o=r!==null&&Ko(r,e),[i,s]=og(e,t,o?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},Ko=(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},ag=sg,cg=ag,Sa=Ee();ka=Ee();Ea=Ee();ug=Ee();er={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>er.next(e==="ltr"?"rtl":"ltr",t)},fl={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};dg=Ee();Da=Ee();za=Ee();yg={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};gl=["Enter"," "],vg={open:(e,t)=>e==="ltr"?[...gl,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...gl,t==="horizontal"?"ArrowLeft":"ArrowUp"]};wg={};Qr(wg,{Root:()=>Zr,Separator:()=>xg});xg=Zr,Se={};Qr(Se,{Arrow:()=>oi,CheckboxItem:()=>Ta,Content:()=>Ha,DropdownMenu:()=>Cg,Group:()=>li,GroupLabel:()=>Oa,Icon:()=>Ia,Item:()=>Fa,ItemDescription:()=>La,ItemIndicator:()=>qa,ItemLabel:()=>_a,Portal:()=>Ra,RadioGroup:()=>Na,RadioItem:()=>Ba,Root:()=>ja,Separator:()=>Zr,Sub:()=>Va,SubContent:()=>Ua,SubTrigger:()=>Ga,Trigger:()=>Aa});Cg=Object.assign(ja,{Arrow:oi,CheckboxItem:Ta,Content:Ha,Group:li,GroupLabel:Oa,Icon:Ia,Item:Fa,ItemDescription:La,ItemIndicator:qa,ItemLabel:_a,Portal:Ra,RadioGroup:Na,RadioItem:Ba,Separator:Zr,Sub:Va,SubContent:Ua,SubTrigger:Ga,Trigger:Aa}),E={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:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.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)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},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"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},Sg=z('<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>'),$g=z('<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>'),kg=z('<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>'),Eg=z('<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>'),ai=z('<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>'),Tg=z('<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>'),Ag=z('<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>'),Pg=z('<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>'),Mg=z('<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">'),Dg=z('<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">'),Og=z('<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>'),Ig=z('<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>'),Fg=z('<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>'),Lg=z('<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>'),Qa=z('<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>'),qg=z('<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>'),_g=z('<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>'),Rg=z('<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>'),zg=z('<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>'),Ng=z('<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>'),Bg=z('<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>'),Kg=z('<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>'),Vg=z('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');uh=z('<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>'),dh=z('<button title="Copy object to clipboard">'),fh=z('<button title="Remove all items"aria-label="Remove all items">'),gh=z('<button title="Delete item"aria-label="Delete item">'),hh=z('<button title="Toggle value"aria-label="Toggle value">'),mh=z('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),jn=z("<div>"),ph=z("<div><button> <span></span> <span> "),yh=z("<input>"),yl=z("<span>"),vh=z("<div><span>:"),bh=z("<div><div><button> [<!>...<!>]");vl=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n));return(()=>{var o=uh();return K(()=>M(o,R(r().expander,n`
|
|
1
|
+
"use strict";var yf=Object.create;var sr=Object.defineProperty;var vf=Object.getOwnPropertyDescriptor;var Cf=Object.getOwnPropertyNames;var Lf=Object.getPrototypeOf,bf=Object.prototype.hasOwnProperty;var fo=(e,t)=>()=>(e&&(t=e(e=0)),t);var tn=(e,t)=>{for(var a in t)sr(e,a,{get:t[a],enumerable:!0})},Bs=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Cf(t))!bf.call(e,r)&&r!==a&&sr(e,r,{get:()=>t[r],enumerable:!(o=vf(t,r))||o.enumerable});return e};var Ze=(e,t,a)=>(a=e!=null?yf(Lf(e)):{},Bs(t||!e||!e.__esModule?sr(a,"default",{value:e,enumerable:!0}):a,e)),If=e=>Bs(sr({},"__esModule",{value:!0}),e);var P=fo(()=>{});function Os(e){let t=String(e),a=t.length-1;return Q.context.id+(a?String.fromCharCode(96+a):"")+t}function Ia(e){Q.context=e}function wf(){return{...Q.context,id:Q.getNextContextId(),count:0}}function St(e,t){let a=de,o=ee,r=e.length===0,n=t===void 0?o:t,s=r?Ys:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>xe(()=>ia(s)));ee=s,de=null;try{return Ye(i,!0)}finally{de=a,ee=o}}function O(e,t){t=t?Object.assign({},cr,t):cr;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(B&&B.running&&B.sources.has(a)?r=r(a.tValue):r=r(a.value)),rl(a,r));return[ol.bind(a),o]}function pr(e,t,a){let o=yr(e,t,!0,tt);Va&&B&&B.running?Te.push(o):Ga(o)}function V(e,t,a){let o=yr(e,t,!1,tt);Va&&B&&B.running?Te.push(o):Ga(o)}function G(e,t,a){Zs=Rf;let o=yr(e,t,!1,tt),r=go&&Re(go);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),_e?_e.push(o):Ga(o)}function w(e,t,a){a=a?Object.assign({},cr,a):cr;let o=yr(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Va&&B&&B.running?(o.tState=tt,Te.push(o)):Ga(o),ol.bind(o)}function kf(e){return e&&typeof e=="object"&&"then"in e}function Pf(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=an,l=null,u=!1,f=!1,d="initialValue"in n,p=typeof o=="function"&&w(o),c=new Set,[m,g]=(n.storage||O)(n.initialValue),[x,y]=O(void 0),[v,C]=O(void 0,{equals:!1}),[L,b]=O(d?"ready":"unresolved");Q.context&&(l=Q.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Q.load&&Q.has(l)&&(i=Q.load(l)));function T(M,H,U,se){return s===M&&(s=null,se!==void 0&&(d=!0),(M===i||H===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(se,{value:H})),i=an,B&&M&&u?(B.promises.delete(M),u=!1,Ye(()=>{B.running=!0,D(H,U)},!1)):D(H,U)),H}function D(M,H){Ye(()=>{H===void 0&&g(()=>M),b(H!==void 0?"errored":d?"ready":"unresolved"),y(H);for(let U of c.keys())U.decrement();c.clear()},!1)}function $(){let M=go&&Re(go),H=m(),U=x();if(U!==void 0&&!s)throw U;return de&&!de.user&&M&&pr(()=>{v(),s&&(M.resolved&&B&&u?B.promises.add(s):c.has(M)||(M.increment(),c.add(M)))}),H}function I(M=!0){if(M!==!1&&f)return;f=!1;let H=p?p():o;if(u=B&&B.running,H==null||H===!1){T(s,xe(m));return}B&&s&&B.promises.delete(s);let U=i!==an?i:xe(()=>r(H,{value:m(),refetching:M}));return kf(U)?(s=U,"value"in U?(U.status==="success"?T(s,U.value,void 0,H):T(s,void 0,nn(U.value),H),U):(f=!0,queueMicrotask(()=>f=!1),Ye(()=>{b(d?"refreshing":"pending"),C()},!1),U.then(se=>T(U,se,void 0,H),se=>T(U,void 0,nn(se),H)))):(T(s,U,void 0,H),U)}return Object.defineProperties($,{state:{get:()=>L()},error:{get:()=>x()},loading:{get(){let M=L();return M==="pending"||M==="refreshing"}},latest:{get(){if(!d)return $();let M=x();if(M&&!s)throw M;return m()}}}),p?pr(()=>I(!1)):I(!1),[$,{refetch:I,mutate:g}]}function Js(e){return Ye(e,!1)}function xe(e){if(!Ha&&de===null)return e();let t=de;de=null;try{return Ha?Ha.untrack(e):e()}finally{de=t}}function kt(e,t,a){let o=Array.isArray(e),r,n=a&&a.defer;return s=>{let i;if(o){i=Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u]()}else i=e();if(n)return n=!1,s;let l=xe(()=>t(i,r,s));return r=i,l}}function Ht(e){G(()=>xe(e))}function j(e){return ee===null||(ee.cleanups===null?ee.cleanups=[e]:ee.cleanups.push(e)),e}function mr(){return ee}function Mf(e,t){let a=ee,o=de;ee=e,de=null;try{return Ye(t,!0)}catch(r){vr(r)}finally{ee=a,de=o}}function el(e){if(B&&B.running)return e(),B.done;let t=de,a=ee;return Promise.resolve().then(()=>{de=t,ee=a;let o;return(Va||go)&&(o=B||(B={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),o.done||(o.done=new Promise(r=>o.resolve=r)),o.running=!0),Ye(e,!1),de=ee=null,o?o.done:void 0})}function tl(){return[Af,el]}function qe(e,t){let a=Symbol("context");return{id:a,Provider:Ff(a),defaultValue:e}}function Re(e){let t;return ee&&ee.context&&(t=ee.context[e.id])!==void 0?t:e.defaultValue}function al(e){let t=w(e),a=w(()=>sn(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function ol(){let e=B&&B.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===tt)Ga(this);else{let t=Te;Te=null,Ye(()=>gr(this),!1),Te=t}if(de){let t=this.observers?this.observers.length:0;de.sources?(de.sources.push(this),de.sourceSlots.push(t)):(de.sources=[this],de.sourceSlots=[t]),this.observers?(this.observers.push(de),this.observerSlots.push(de.sources.length-1)):(this.observers=[de],this.observerSlots=[de.sources.length-1])}return e&&B.sources.has(this)?this.tValue:this.value}function rl(e,t,a){let o=B&&B.running&&B.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(B){let r=B.running;(r||!a&&B.sources.has(e))&&(B.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Ye(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=B&&B.running;s&&B.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?Te.push(n):_e.push(n),n.observers&&sl(n)),s?n.tState=tt:n.state=tt)}if(Te.length>1e6)throw Te=[],new Error},!1)}return t}function Ga(e){if(!e.fn)return;ia(e);let t=xr;Us(e,B&&B.running&&B.sources.has(e)?e.tValue:e.value,t),B&&!B.running&&B.sources.has(e)&&queueMicrotask(()=>{Ye(()=>{B&&(B.running=!0),de=ee=e,Us(e,e.tValue,t),de=ee=null},!1)})}function Us(e,t,a){let o,r=ee,n=de;de=ee=e;try{o=e.fn(t)}catch(s){return e.pure&&(B&&B.running?(e.tState=tt,e.tOwned&&e.tOwned.forEach(ia),e.tOwned=void 0):(e.state=tt,e.owned&&e.owned.forEach(ia),e.owned=null)),e.updatedAt=a+1,vr(s)}finally{de=n,ee=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?rl(e,o,!0):B&&B.running&&e.pure?(B.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function yr(e,t,a,o=tt,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ee,context:ee?ee.context:null,pure:a};if(B&&B.running&&(n.state=0,n.tState=o),ee===null||ee!==Ys&&(B&&B.running&&ee.pure?ee.tOwned?ee.tOwned.push(n):ee.tOwned=[n]:ee.owned?ee.owned.push(n):ee.owned=[n]),Ha&&n.fn){let[s,i]=O(void 0,{equals:!1}),l=Ha.factory(n.fn,i);j(()=>l.dispose());let u=()=>el(i).then(()=>f.dispose()),f=Ha.factory(n.fn,u);n.fn=d=>(s(),B&&B.running?f.track(d):l.track(d))}return n}function ho(e){let t=B&&B.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===mo)return gr(e);if(e.suspense&&xe(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<xr);){if(t&&B.disposed.has(e))return;(t?e.tState:e.state)&&a.push(e)}for(let o=a.length-1;o>=0;o--){if(e=a[o],t){let r=e,n=a[o+1];for(;(r=r.owner)&&r!==n;)if(B.disposed.has(r))return}if((t?e.tState:e.state)===tt)Ga(e);else if((t?e.tState:e.state)===mo){let r=Te;Te=null,Ye(()=>gr(e,a[0]),!1),Te=r}}}function Ye(e,t){if(Te)return e();let a=!1;t||(Te=[]),_e?a=!0:_e=[],xr++;try{let o=e();return Df(a),o}catch(o){a||(_e=null),Te=null,vr(o)}}function Df(e){if(Te&&(Va&&B&&B.running?Tf(Te):nl(Te),Te=null),e)return;let t;if(B){if(!B.promises.size&&!B.queue.size){let o=B.sources,r=B.disposed;_e.push.apply(_e,B.effects),t=B.resolve;for(let n of _e)"tState"in n&&(n.state=n.tState),delete n.tState;B=null,Ye(()=>{for(let n of r)ia(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)ia(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}Ns(!1)},!1)}else if(B.running){B.running=!1,B.effects.push.apply(B.effects,_e),_e=null,Ns(!0);return}}let a=_e;_e=null,a.length&&Ye(()=>Zs(a),!1),t&&t()}function nl(e){for(let t=0;t<e.length;t++)ho(e[t])}function Tf(e){for(let t=0;t<e.length;t++){let a=e[t],o=B.queue;o.has(a)||(o.add(a),Va(()=>{o.delete(a),Ye(()=>{B.running=!0,ho(a)},!1),B&&(B.running=!1)}))}}function Rf(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:ho(o)}if(Q.context){if(Q.count){Q.effects||(Q.effects=[]),Q.effects.push(...e.slice(0,a));return}Ia()}for(Q.effects&&(Q.done||!Q.count)&&(e=[...Q.effects,...e],a+=Q.effects.length,delete Q.effects),t=0;t<a;t++)ho(e[t])}function gr(e,t){let a=B&&B.running;a?e.tState=0:e.state=0;for(let o=0;o<e.sources.length;o+=1){let r=e.sources[o];if(r.sources){let n=a?r.tState:r.state;n===tt?r!==t&&(!r.updatedAt||r.updatedAt<xr)&&ho(r):n===mo&&gr(r,t)}}}function sl(e){let t=B&&B.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=mo:o.state=mo,o.pure?Te.push(o):_e.push(o),o.observers&&sl(o))}}function ia(e){let t;if(e.sources)for(;e.sources.length;){let a=e.sources.pop(),o=e.sourceSlots.pop(),r=a.observers;if(r&&r.length){let n=r.pop(),s=a.observerSlots.pop();o<r.length&&(n.sourceSlots[s]=o,r[o]=n,a.observerSlots[o]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ia(e.tOwned[t]);delete e.tOwned}if(B&&B.running&&e.pure)ll(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ia(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}B&&B.running?e.tState=0:e.state=0}function ll(e,t){if(t||(e.tState=0,B.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)ll(e.owned[a])}function nn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function zs(e,t,a){try{for(let o of t)o(e)}catch(o){vr(o,a&&a.owner||null)}}function vr(e,t=ee){let a=qs&&t&&t.context&&t.context[qs],o=nn(e);if(!a)throw o;_e?_e.push({fn(){zs(o,a,t)},state:tt}):zs(o,a,t)}function sn(e){if(typeof e=="function"&&!e.length)return sn(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=sn(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Ff(e,t){return function(o){let r;return V(()=>r=xe(()=>(ee.context={...ee.context,[e]:o.value},al(()=>o.children))),void 0),r}}function hr(e){for(let t=0;t<e.length;t++)e[t]()}function Ef(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return j(()=>hr(n)),()=>{let l=e()||[],u=l.length,f,d;return l[Lo],xe(()=>{let c,m,g,x,y,v,C,L,b;if(u===0)s!==0&&(hr(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[ln],r[0]=St(T=>(n[0]=T,a.fallback())),s=1);else if(s===0){for(r=new Array(u),d=0;d<u;d++)o[d]=l[d],r[d]=St(p);s=u}else{for(g=new Array(u),x=new Array(u),i&&(y=new Array(u)),v=0,C=Math.min(s,u);v<C&&o[v]===l[v];v++);for(C=s-1,L=u-1;C>=v&&L>=v&&o[C]===l[L];C--,L--)g[L]=r[C],x[L]=n[C],i&&(y[L]=i[C]);for(c=new Map,m=new Array(L+1),d=L;d>=v;d--)b=l[d],f=c.get(b),m[d]=f===void 0?-1:f,c.set(b,d);for(f=v;f<=C;f++)b=o[f],d=c.get(b),d!==void 0&&d!==-1?(g[d]=r[f],x[d]=n[f],i&&(y[d]=i[f]),d=m[d],c.set(b,d)):n[f]();for(d=v;d<u;d++)d in g?(r[d]=g[d],n[d]=x[d],i&&(i[d]=y[d],i[d](d))):r[d]=St(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(c){if(n[d]=c,i){let[m,g]=O(d);return i[d]=g,t(l[d],m)}return t(l[d])}}}function $f(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return j(()=>hr(n)),()=>{let u=e()||[],f=u.length;return u[Lo],xe(()=>{if(f===0)return i!==0&&(hr(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[ln],r[0]=St(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===ln&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<f;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=St(d));for(;l<o.length;l++)n[l]();return i=s.length=n.length=f,o=u.slice(0),r=r.slice(0,i)});function d(p){n[l]=p;let[c,m]=O(u[l]);return s[l]=m,t(c,l)}}}function h(e,t){if(Bf&&Q.context){let a=Q.context;Ia(wf());let o=xe(()=>e(t||{}));return Ia(a),o}return xe(()=>e(t||{}))}function lr(){return!0}function on(e){return(e=typeof e=="function"?e():e)?e:{}}function Of(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function Y(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&fr in i,e[s]=typeof i=="function"?(t=!0,w(i)):i}if(Qs&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=on(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in on(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(on(e[i])));return[...new Set(s)]}},un);let a={},o=Object.create(null);for(let s=e.length-1;s>=0;s--){let i=e[s];if(!i)continue;let l=Object.getOwnPropertyNames(i);for(let u=l.length-1;u>=0;u--){let f=l[u];if(f==="__proto__"||f==="constructor")continue;let d=Object.getOwnPropertyDescriptor(i,f);if(!o[f])o[f]=d.get?{enumerable:!0,configurable:!0,get:Of.bind(a[f]=[d.get.bind(i)])}:d.value!==void 0?d:void 0;else{let p=a[f];p&&(d.get?p.push(d.get.bind(i)):d.value!==void 0&&p.push(()=>d.value))}}}let r={},n=Object.keys(o);for(let s=n.length-1;s>=0;s--){let i=n[s],l=o[i];l&&l.get?Object.defineProperty(r,i,l):r[i]=l?l.value:void 0}return r}function ie(e,...t){if(Qs&&fr in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},un));return n.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},un)),n}let a={},o=t.map(()=>({}));for(let r of Object.getOwnPropertyNames(e)){let n=Object.getOwnPropertyDescriptor(e,r),s=!n.get&&!n.set&&n.enumerable&&n.writable&&n.configurable,i=!1,l=0;for(let u of t)u.includes(r)&&(i=!0,s?o[l][r]=n.value:Object.defineProperty(o[l],r,n)),++l;i||(s?a[r]=n.value:Object.defineProperty(a,r,n))}return[...o,a]}function gn(e){let t,a,o=r=>{let n=Q.context;if(n){let[i,l]=O();Q.count||(Q.count=0),Q.count++,(a||(a=e())).then(u=>{!Q.done&&Ia(n),Q.count--,l(()=>u.default),Ia()}),t=i}else if(!t){let[i]=Pf(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return w(()=>(s=t())?xe(()=>{if(!n||Q.done)return s(r);let i=Q.context;Ia(n);let l=s(r);return Ia(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function at(){return Q.context?Q.getNextContextId():`cl-${qf++}`}function ul(e){let t="fallback"in e&&{fallback:()=>e.fallback};return w(Ef(()=>e.each,e.children,t||void 0))}function dl(e){let t="fallback"in e&&{fallback:()=>e.fallback};return w($f(()=>e.each,e.children,t||void 0))}function K(e){let t=e.keyed,a=w(()=>e.when,void 0,void 0),o=t?a:w(a,void 0,{equals:(r,n)=>!r==!n});return w(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?xe(()=>n(t?r:()=>{if(!xe(o))throw il("Show");return a()})):n}return e.fallback},void 0,void 0)}function fl(e){let t=al(()=>e.children),a=w(()=>{let o=t(),r=Array.isArray(o)?o:[o],n=()=>{};for(let s=0;s<r.length;s++){let i=s,l=r[s],u=n,f=w(()=>u()?void 0:l.when,void 0,void 0),d=l.keyed?f:w(f,void 0,{equals:(p,c)=>!p==!c});n=()=>u()||(d()?[i,f,l]:void 0)}return n});return w(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?xe(()=>i(s.keyed?n():()=>{if(xe(a)()?.[0]!==r)throw il("Match");return n()})):i},void 0,void 0)}function Cr(e){return e}function Vf(e,t){let a=_f[e];return typeof a=="object"?a[t]?a.$:void 0:a}function jf(e,t,a){let o=a.length,r=t.length,n=o,s=0,i=0,l=t[r-1].nextSibling,u=null;for(;s<r||i<n;){if(t[s]===a[i]){s++,i++;continue}for(;t[r-1]===a[n-1];)r--,n--;if(r===s){let f=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],f)}else if(n===i)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===a[n-1]&&a[i]===t[r-1]){let f=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],f),t[r]=a[n]}else{if(!u){u=new Map;let d=i;for(;d<n;)u.set(a[d],d++)}let f=u.get(t[s]);if(f!=null)if(i<f&&f<n){let d=s,p=1,c;for(;++d<r&&d<n&&!((c=u.get(t[d]))==null||c!==f+p);)p++;if(p>f-i){let m=t[s];for(;i<f;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function hn(e,t,a,o={}){let r;return St(n=>{r=n,t===document?e():S(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function z(e,t,a,o){let r,n=()=>{let i=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=e,a?i.content.firstChild.firstChild:o?i.firstChild:i.content.firstChild},s=t?()=>xe(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function bo(e,t=window.document){let a=t[co]||(t[co]=new Set);for(let o=0,r=e.length;o<r;o++){let n=e[o];a.has(n)||(a.add(n),t.addEventListener(n,ml))}}function pl(e=window.document){if(e[co]){for(let t of e[co].keys())e.removeEventListener(t,ml);delete e[co]}}function R(e,t,a){Sa(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function Xf(e,t,a,o){Sa(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function Qf(e,t,a){Sa(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function F(e,t){Sa(e)||(t==null?e.removeAttribute("class"):e.className=t)}function xn(e,t,a,o){if(o)Array.isArray(a)?(e[`$$${t}`]=a[0],e[`$$${t}Data`]=a[1]):e[`$$${t}`]=a;else if(Array.isArray(a)){let r=a[0];e.addEventListener(t,a[0]=n=>r.call(e,a[1],n))}else e.addEventListener(t,a,typeof a!="function"&&a)}function Zf(e,t,a={}){let o=Object.keys(t||{}),r=Object.keys(a),n,s;for(n=0,s=r.length;n<s;n++){let i=r[n];!i||i==="undefined"||t[i]||(Hs(e,i,!1),delete a[i])}for(n=0,s=o.length;n<s;n++){let i=o[n],l=!!t[i];!i||i==="undefined"||a[i]===l||!l||(Hs(e,i,!0),a[i]=l)}return a}function Yf(e,t,a){if(!t)return a?R(e,"style"):t;let o=e.style;if(typeof t=="string")return o.cssText=t;typeof a=="string"&&(o.cssText=a=void 0),a||(a={}),t||(t={});let r,n;for(n in a)t[n]==null&&o.removeProperty(n),delete a[n];for(n in t)r=t[n],r!==a[n]&&(o.setProperty(n,r),a[n]=r);return a}function yn(e,t={},a,o){let r={};return o||V(()=>r.children=xo(e,t.children,r.children)),V(()=>typeof t.ref=="function"&&wa(t.ref,e)),V(()=>Jf(e,t,a,!0,r,!0)),r}function wa(e,t,a){return xe(()=>e(t,a))}function S(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return xo(e,t,o,a);V(r=>xo(e,t(),r,a),o)}function Jf(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=_s(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=_s(e,s,i,r[s],a,n,t)}}function ec(e){let t,a;return!Sa()||!(t=Q.registry.get(a=ac()))?e():(Q.completed&&Q.completed.add(t),Q.registry.delete(a),t)}function Sa(e){return!!Q.context&&!Q.done&&(!e||e.isConnected)}function tc(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Hs(e,t,a){let o=t.trim().split(/\s+/);for(let r=0,n=o.length;r<n;r++)e.classList.toggle(o[r],a)}function _s(e,t,a,o,r,n,s){let i,l,u,f,d;if(t==="style")return Yf(e,a,o);if(t==="classList")return Zf(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);o&&e.removeEventListener(p,o,typeof o!="function"&&o),a&&e.addEventListener(p,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);o&&e.removeEventListener(p,o,!0),a&&e.addEventListener(p,a,!0)}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),c=Gf.has(p);if(!c&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(c||a)&&(xn(e,p,a,c),c&&bo([p]))}else if(t.slice(0,5)==="attr:")R(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")Qf(e,t.slice(5),a);else if((d=t.slice(0,5)==="prop:")||(u=zf.has(t))||!r&&((f=Vf(t,e.tagName))||(l=Uf.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(d)t=t.slice(5),l=!0;else if(Sa(e))return a;t==="class"||t==="className"?F(e,a):i&&!l&&!u?e[tc(t)]=a:e[f||t]=a}else{let p=r&&t.indexOf(":")>-1&&Wf[t.split(":")[0]];p?Xf(e,p,t,a):R(e,Hf[t]||t,a)}return a}function ml(e){if(Q.registry&&Q.events&&Q.events.find(([l,u])=>u===e))return;let t=e.target,a=`$$${e.type}`,o=e.target,r=e.currentTarget,n=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[a];if(l&&!t.disabled){let u=t[`${a}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&n(t.host),!0},i=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Q.registry&&!Q.done&&(Q.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();n(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!s());u++){if(t._$host){t=t._$host,i();break}if(t.parentNode===r)break}}else i();n(o)}function xo(e,t,a,o,r){let n=Sa(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let f=a[u];f.nodeType===8&&f.data.slice(0,2)==="!$"?f.remove():l.push(f)}a=l}for(;typeof a=="function";)a=a();if(t===a)return a;let s=typeof t,i=o!==void 0;if(e=i&&a[0]&&a[0].parentNode||e,s==="string"||s==="number"){if(n||s==="number"&&(t=t.toString(),t===a))return a;if(i){let l=a[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),a=Na(e,a,o,l)}else a!==""&&typeof a=="string"?a=e.firstChild.data=t:a=e.textContent=t}else if(t==null||s==="boolean"){if(n)return a;a=Na(e,a,o)}else{if(s==="function")return V(()=>{let l=t();for(;typeof l=="function";)l=l();a=xo(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(dn(l,t,a,r))return V(()=>a=xo(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let f=l[0];if(f.parentNode!==e)return a;let d=[f];for(;(f=f.nextSibling)!==o;)d.push(f);return a=d}if(l.length===0){if(a=Na(e,a,o),i)return a}else u?a.length===0?Vs(e,l,o):jf(e,a,l):(a&&Na(e),Vs(e,l));a=l}else if(t.nodeType){if(n&&t.parentNode)return a=i?[t]:t;if(Array.isArray(a)){if(i)return a=Na(e,a,o,t);Na(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function dn(e,t,a,o){let r=!1;for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a&&a[e.length],u;if(!(i==null||i===!0||i===!1))if((u=typeof i)=="object"&&i.nodeType)e.push(i);else if(Array.isArray(i))r=dn(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=dn(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let f=String(i);l&&l.nodeType===3&&l.data===f?e.push(l):e.push(document.createTextNode(f))}}return r}function Vs(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function Na(e,t,a,o){if(a===void 0)return e.textContent="";let r=o||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){let i=t[s];if(r!==i){let l=i.parentNode===e;!n&&!s?l?e.replaceChild(r,i):e.insertBefore(r,a):l&&i.remove()}else n=!0}}else e.insertBefore(r,a);return[r]}function ac(){return Q.getNextContextId()}function gl(e,t=!1){return t?document.createElementNS(oc,e):document.createElement(e)}function vn(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=mr(),n,s=!!Q.context;return G(()=>{s&&(mr().user=s=!1),n||(n=Mf(r,()=>w(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=O(!1),f=()=>u(!0);St(d=>S(i,()=>l()?d():n(),null)),j(f)}else{let l=gl(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),S(u,n),i.appendChild(l),e.ref&&e.ref(l),j(()=>i.removeChild(l))}},void 0,{render:!s}),a}function rc(e,t){let a=w(e);return w(()=>{let o=a();switch(typeof o){case"function":return xe(()=>o(t));case"string":let r=Kf.has(o),n=Q.context?ec():gl(o,r);return yn(n,t,r),n}})}function hl(e){let[,t]=ie(e,["component"]);return rc(()=>e.component,t)}function lc(e){if("values"in Object)return Object.values(e);let t=[];for(let a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function ic(e,t){let a=lc(e);if("find"in a)return a.find(t);let o=a;for(let r=0;r<o.length;r++){let n=o[r];if(t(n))return n}}function _a(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function dr(e,t){return e.indexOf(t)!==-1}function Gs(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function wt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Lr(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function wl(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Ml(e){if(dr(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(dr(e,"prototype"))throw new Error("prototype is not allowed as a property");if(dr(e,"constructor"))throw new Error("constructor is not allowed as a property")}function pn(e,t,a=[]){if(!e)return;if(!ua(e)){_a(e,(n,s)=>pn(n,t,[...a,...po(s)]));return}let[o,r]=e;r&&_a(r,(n,s)=>{pn(n,t,[...a,...po(s)])}),t(o,a)}function Pc(e,t,a){return pn(t,(o,r)=>{e=cn(e,r,n=>Sc(n,o,a))}),e}function Mc(e,t){function a(o,r){let n=kc(e,po(r));o.map(po).forEach(s=>{e=cn(e,s,()=>n)})}if(ua(t)){let[o,r]=t;o.forEach(n=>{e=cn(e,po(n),()=>e)}),r&&_a(r,a)}else _a(t,a);return e}function Dc(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Tc(e,t){let a={},o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,l)=>i.length-l.length));let[n,...s]=r;n.length===0?o=s.map(rn):a[rn(n)]=s.map(rn)}),o?fn(a)?[o]:[o,a]:fn(a)?void 0:a}function Dl(e){return Object.prototype.toString.call(e).slice(8,-1)}function js(e){return Dl(e)==="Array"}function Rc(e){if(Dl(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Fc(e,t,a,o,r){let n={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";n==="enumerable"&&(e[t]=a),r&&n==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function mn(e,t={}){if(js(e))return e.map(r=>mn(r,t));if(!Rc(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(js(t.props)&&!t.props.includes(n))return r;let s=e[n],i=mn(s,t);return Fc(r,n,i,e,t.nonenumerable),r},{})}function ka(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Rl(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Fl({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Pa({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function El(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Q,Xs,Sf,fr,Qs,Lo,cr,qs,Zs,tt,mo,Ys,an,ee,B,Va,Ha,de,Te,_e,xr,Af,Ns,go,ln,Bf,un,qf,il,cl,Nf,Uf,zf,Hf,_f,Gf,Kf,Wf,co,Ve,oc,nc,xl,sc,uc,dc,yl,fc,yo,fn,ua,cc,pc,mc,gc,vo,Co,vl,hc,xc,Ks,yc,vc,Cc,Lc,bc,Cl,rn,po,Ll,bl,Ic,Il,Sl,kl,wc,Ws,Pl,Sc,Ua,kc,cn,Ac,Al,re,Cn,Tl,Io,ir,Ec,$l,$c,br,ur,Bl,Bc,Ir,Ln,wr,la,za,bn,wo=fo(()=>{"use strict";P();Q={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Os(this.context.count)},getNextContextId(){return Os(this.context.count++)}};Xs=!1,Sf=(e,t)=>e===t,fr=Symbol("solid-proxy"),Qs=typeof Proxy=="function",Lo=Symbol("solid-track"),cr={equals:Sf},qs=null,Zs=nl,tt=1,mo=2,Ys={owned:null,cleanups:null,context:null,owner:null},an={},ee=null,B=null,Va=null,Ha=null,de=null,Te=null,_e=null,xr=0;[Af,Ns]=O(!1);ln=Symbol("fallback");Bf=!1;un={get(e,t,a){return t===fr?a:e.get(t)},has(e,t){return t===fr?!0:e.has(t)},set:lr,deleteProperty:lr,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:lr,deleteProperty:lr}},ownKeys(e){return e.keys()}};qf=0;il=e=>`Stale read from <${e}>.`;cl=void 0,Nf=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Uf=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Nf]),zf=new Set(["innerHTML","textContent","innerText","children"]),Hf=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),_f=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});Gf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Kf=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Wf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};co="_$DX_DELEGATE";Ve=!1,oc="http://www.w3.org/2000/svg";nc=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},xl=class{constructor(e){this.generateIdentifier=e,this.kv=new nc}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},sc=class extends xl{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};uc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ic(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},dc=e=>Object.prototype.toString.call(e).slice(8,-1),yl=e=>typeof e>"u",fc=e=>e===null,yo=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,fn=e=>yo(e)&&Object.keys(e).length===0,ua=e=>Array.isArray(e),cc=e=>typeof e=="string",pc=e=>typeof e=="number"&&!isNaN(e),mc=e=>typeof e=="boolean",gc=e=>e instanceof RegExp,vo=e=>e instanceof Map,Co=e=>e instanceof Set,vl=e=>dc(e)==="Symbol",hc=e=>e instanceof Date&&!isNaN(e.valueOf()),xc=e=>e instanceof Error,Ks=e=>typeof e=="number"&&isNaN(e),yc=e=>mc(e)||fc(e)||yl(e)||pc(e)||cc(e)||vl(e),vc=e=>typeof e=="bigint",Cc=e=>e===1/0||e===-1/0,Lc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),bc=e=>e instanceof URL,Cl=e=>e.replace(/\./g,"\\."),rn=e=>e.map(String).map(Cl).join("."),po=e=>{let t=[],a="";for(let r=0;r<e.length;r++){let n=e.charAt(r);if(n==="\\"&&e.charAt(r+1)==="."){a+=".",r++;continue}if(n==="."){t.push(a),a="";continue}a+=n}let o=a;return t.push(o),t};Ll=[wt(yl,"undefined",()=>null,()=>{}),wt(vc,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),wt(hc,"Date",e=>e.toISOString(),e=>new Date(e)),wt(xc,"Error",(e,t)=>{let a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a},(e,t)=>{let a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a}),wt(gc,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),wt(Co,"set",e=>[...e.values()],e=>new Set(e)),wt(vo,"map",e=>[...e.entries()],e=>new Map(e)),wt(e=>Ks(e)||Cc(e),"number",e=>Ks(e)?"NaN":e>0?"Infinity":"-Infinity",Number),wt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),wt(bc,"URL",e=>e.toString(),e=>new URL(e))];bl=Lr((e,t)=>vl(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,a)=>{let o=a.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Ic=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Il=Lr(Lc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Ic[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Sl=Lr(wl,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};let o={};return a.forEach(r=>{o[r]=e[r]}),o},(e,t,a)=>{let o=a.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),kl=Lr((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,a)=>{let o=a.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),wc=[Sl,bl,kl,Il],Ws=(e,t)=>{let a=Gs(wc,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Gs(Ll,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},Pl={};Ll.forEach(e=>{Pl[e.annotation]=e});Sc=(e,t,a)=>{if(ua(t))switch(t[0]){case"symbol":return bl.untransform(e,t,a);case"class":return Sl.untransform(e,t,a);case"custom":return kl.untransform(e,t,a);case"typed-array":return Il.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=Pl[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},Ua=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};kc=(e,t)=>{Ml(t);for(let a=0;a<t.length;a++){let o=t[a];if(Co(e))e=Ua(e,+o);else if(vo(e)){let r=+o,n=+t[++a]==0?"key":"value",s=Ua(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},cn=(e,t,a)=>{if(Ml(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(ua(o)){let i=+s;o=o[i]}else if(yo(o))o=o[s];else if(Co(o)){let i=+s;o=Ua(o,i)}else if(vo(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",f=Ua(o,l);switch(u){case"key":o=f;break;case"value":o=o.get(f);break}}}let r=t[t.length-1];if(ua(o)?o[+r]=a(o[+r]):yo(o)&&(o[r]=a(o[r])),Co(o)){let n=Ua(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(vo(o)){let n=+t[t.length-2],s=Ua(o,n);switch(+r==0?"key":"value"){case"key":{let l=a(s);o.set(l,o.get(s)),l!==s&&o.delete(s);break}case"value":{o.set(s,a(o.get(s)));break}}}return e};Ac=(e,t)=>yo(e)||ua(e)||vo(e)||Co(e)||wl(e,t);Al=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=yc(e);if(!i){Dc(e,r,t);let c=s.get(e);if(c)return o?{transformedValue:null}:c}if(!Ac(e,a)){let c=Ws(e,a),m=c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e};return i||s.set(e,m),m}if(dr(n,e))return{transformedValue:null};let l=Ws(e,a),u=l?.value??e,f=ua(u)?[]:{},d={};_a(u,(c,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);let g=Al(c,t,a,o,[...r,m],[...n,e],s);f[m]=g.transformedValue,ua(g.annotations)?d[m]=g.annotations:yo(g.annotations)&&_a(g.annotations,(x,y)=>{d[Cl(m)+"."+y]=x})});let p=fn(d)?{transformedValue:f,annotations:l?[l.type]:void 0}:{transformedValue:f,annotations:l?[l.type,d]:d};return i||s.set(e,p),p};re=class{constructor({dedupe:e=!1}={}){this.classRegistry=new sc,this.symbolRegistry=new xl(t=>t.description??""),this.customTransformerRegistry=new uc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=Al(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Tc(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=mn(t);return a?.values&&(o=Pc(o,a.values,this)),a?.referentialEqualities&&(o=Mc(o,a.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};re.defaultInstance=new re;re.serialize=re.defaultInstance.serialize.bind(re.defaultInstance);re.deserialize=re.defaultInstance.deserialize.bind(re.defaultInstance);re.stringify=re.defaultInstance.stringify.bind(re.defaultInstance);re.parse=re.defaultInstance.parse.bind(re.defaultInstance);re.registerClass=re.defaultInstance.registerClass.bind(re.defaultInstance);re.registerSymbol=re.defaultInstance.registerSymbol.bind(re.defaultInstance);re.registerCustom=re.defaultInstance.registerCustom.bind(re.defaultInstance);re.allowErrorProps=re.defaultInstance.allowErrorProps.bind(re.defaultInstance);Cn=re.serialize;re.deserialize;Tl=re.stringify;re.parse;re.registerClass;re.registerCustom;re.registerSymbol;re.allowErrorProps;Io=(e,t=!1)=>{let{json:a}=Cn(e);return JSON.stringify(a,null,t?2:void 0)},ir=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Ec=(e,t)=>e.queryHash.localeCompare(t.queryHash),$l=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,$c=(e,t)=>ir(e)===ir(t)?$l(e,t):ir(e)>ir(t)?1:-1,br={status:$c,"query hash":Ec,"last updated":$l},ur=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Bl=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Bc=(e,t)=>ur(e)===ur(t)?Bl(e,t):ur(e)>ur(t)?1:-1,Ir={status:Bc,"last updated":Bl},Ln=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),wr=()=>{let[e,t]=O("dark");return Ht(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)");t(a.matches?"dark":"light");let o=r=>{t(r.matches?"dark":"light")};a.addEventListener("change",o),j(()=>a.removeEventListener("change",o))}),e},la=(e,t,a)=>{if(t.length===0)return a;if(e instanceof Map){let o=new Map(e);if(t.length===1)return o.set(t[0],a),o;let[r,...n]=t;return o.set(r,la(o.get(r),n,a)),o}if(e instanceof Set){let o=la(Array.from(e),t,a);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=la(o[r],n,a),o}if(e instanceof Object){let o={...e};if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=la(o[r],n,a),o}return e},za=(e,t)=>{if(e instanceof Map){let a=new Map(e);if(t.length===1)return a.delete(t[0]),a;let[o,...r]=t;return a.set(o,za(a.get(o),r)),a}if(e instanceof Set){let a=za(Array.from(e),t);return new Set(a)}if(Array.isArray(e)){let a=[...e];if(t.length===1)return a.filter((n,s)=>s.toString()!==t[0]);let[o,...r]=t;return a[o]=za(a[o],r),a}if(e instanceof Object){let a={...e};if(t.length===1)return delete a[t[0]],a;let[o,...r]=t;return a[o]=za(a[o],r),a}return e},bn=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let o=document.createElement("style"),r=document.createTextNode("");o.appendChild(r),o.id="_goober",o.setAttribute("nonce",e),t?t.appendChild(o):document.head.appendChild(o)}});function zc(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Hc(e,...t){return typeof e=="function"?e(...t):e}function Vc(e,t,a,o){let r=e.length,n=t.length,s=0;if(!n){for(;s<r;s++)a(e[s]);return}if(!r){for(;s<n;s++)o(t[s]);return}for(;s<n&&t[s]===e[s];s++);let i,l;t=t.slice(s),e=e.slice(s);for(i of t)e.includes(i)||o(i);for(l of e)t.includes(l)||a(l)}function Gc(e){let[t,a]=O(),o=e?.throw?(p,c)=>{throw a(p instanceof Error?p:new Error(c)),p}:(p,c)=>{a(p instanceof Error?p:new Error(c))},r=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),n=e?.prefix?`${e.prefix}.`:"",s=new Map,i=new Proxy({},{get(p,c){let m=s.get(c);m||(m=O(void 0,{equals:!1}),s.set(c,m)),m[0]();let g=r.reduce((x,y)=>{if(x!==null||!y)return x;try{return y.getItem(`${n}${c}`)}catch(v){return o(v,`Error reading ${n}${c} from ${y.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,c,e.options):g}}),l=(p,c,m)=>{let g=e?.serializer?e.serializer(c,p,m??e.options):c,x=`${n}${p}`;r.forEach(v=>{try{v.getItem(x)!==g&&v.setItem(x,g)}catch(C){o(C,`Error setting ${n}${p} to ${g} in ${v.name}`)}});let y=s.get(p);y&&y[1]()},u=p=>r.forEach(c=>{try{c.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${c.name}`)}}),f=()=>r.forEach(p=>{try{p.clear()}catch(c){o(c,`Error clearing ${p.name}`)}}),d=()=>{let p={},c=(m,g)=>{if(!p.hasOwnProperty(m)){let x=g&&e?.deserializer?e.deserializer(g,m,e.options):g;x&&(p[m]=x)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(x){o(x,`Error getting all values from in ${m.name}`)}for(let x of g)c(x,g[x])}else{let g=0,x;try{for(;x=m.key(g++);)p.hasOwnProperty(x)||c(x,m.getItem(x))}catch(y){o(y,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&Ht(()=>{let p=c=>{let m=!1;r.forEach(g=>{try{g!==c.storageArea&&c.key&&c.newValue!==g.getItem(c.key)&&(c.newValue?g.setItem(c.key,c.newValue):g.removeItem(c.key),m=!0)}catch(x){o(x,`Error synching api ${g.name} from storage event (${c.key}=${c.newValue})`)}}),m&&c.key&&s.get(c.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),j(()=>globalThis.removeEventListener("storage",p))):(r.forEach(c=>c.addEventListener?.("storage",p)),j(()=>r.forEach(c=>c.removeEventListener?.("storage",p))))}),[i,l,{clear:f,error:t,remove:u,toJSON:d}]}function W(){return Re($o)}function Ue(){return Re(Bo)}function tp(e){return e.replace(ep,t=>$i[t])}function Ul(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:Je.MATCHES,!a.accessors){let s=zl(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=np(e,a.accessors),n={rankedValue:e,rank:Je.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=zl(i.itemValue,t,a),{minRanking:u,maxRanking:f,threshold:d=a.threshold}=i.attributes;l<u&&l>=Je.MATCHES?l=u:l>f&&(l=f),l=Math.min(l,f),l>=d&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=d,n.rankedValue=i.itemValue)}return n}function zl(e,t,a){return e=Hl(e,a),t=Hl(t,a),t.length>e.length?Je.NO_MATCH:e===t?Je.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Je.EQUAL:e.startsWith(t)?Je.STARTS_WITH:e.includes(` ${t}`)?Je.WORD_STARTS_WITH:e.includes(t)?Je.CONTAINS:t.length===1?Je.NO_MATCH:ap(e).includes(t)?Je.ACRONYM:op(e,t))}function ap(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function op(e,t){let a=0,o=0;function r(l,u,f){for(let d=f,p=u.length;d<p;d++)if(u[d]===l)return a+=1,d+1;return-1}function n(l){let u=1/l,f=a/t.length;return Je.MATCHES+f*u}let s=r(t[0],e,0);if(s<0)return Je.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let f=t[l];if(o=r(f,e,o),!(o>-1))return Je.NO_MATCH}let i=o-s;return n(i)}function Hl(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=tp(e)),e}function rp(e,t){let a=t;typeof t=="object"&&(a=t.accessor);let o=a(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function np(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=sp(n),i=rp(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function sp(e){return typeof e=="function"?_l:{..._l,...e}}function J(e){let t=this||{},a=e.call?e(t.p):e;return fp(a.unshift?a.raw?cp(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,ip(t.target),t.g,t.o,t.k)}function Oi(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=Oi(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function N(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=Oi(e))&&(o&&(o+=" "),o+=t);return o}function pp(e,t){let a=xe(e);if(Ve){let d=a.slice();return()=>d}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=O([],{equals:!1}),[l]=tl(),u=d=>{i(p=>(p.push.apply(p,d),p));for(let p of d)n.delete(p)},f=(d,p,c)=>d.splice(c,0,p);return w(d=>{let p=s(),c=e();if(c[Lo],xe(l))return l(),d;if(p.length){let m=d.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return xe(()=>{let m=new Set(c),g=c.slice(),x=[],y=[],v=[];for(let L of c)(r.has(L)?v:x).push(L);let C=!x.length;for(let L=0;L<d.length;L++){let b=d[L];m.has(b)||(n.has(b)||(y.push(b),n.add(b)),f(g,b,L)),C&&b!==g[L]&&(C=!1)}return!y.length&&C?d:(o({list:g,added:x,removed:y,unchanged:v,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function Xe(...e){return zc(e)}function Dn(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Dn(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=Dn(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function mp(e,t=Gl,a=Gl){let o=w(e),r=w(()=>Dn(o(),Ve?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function gp(e){return w(()=>{let t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function qi(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function hp(e,t,a,o){let{onBeforeEnter:r,onEnter:n,onAfterEnter:s}=t;r?.(a),a.classList.add(...e.enter),a.classList.add(...e.enterActive),queueMicrotask(()=>{if(!a.parentNode)return o?.();n?.(a,()=>i())}),qi(()=>{a.classList.remove(...e.enter),a.classList.add(...e.enterTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.enterActive),a.classList.remove(...e.enterTo),s?.(a))}}function xp(e,t,a,o){let{onBeforeExit:r,onExit:n,onAfterExit:s}=t;if(!a.parentNode)return o?.();r?.(a),a.classList.add(...e.exit),a.classList.add(...e.exitActive),n?.(a,()=>i()),qi(()=>{a.classList.remove(...e.exit),a.classList.add(...e.exitTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(o?.(),a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.exitActive),a.classList.remove(...e.exitTo),s?.(a))}}function Wl(e){for(let t of e)t.dispose()}function yp(e,t,a,o={}){if(Ve){let s=e(),i=[];if(s&&s.length)for(let l=0,u=s.length;l<u;l++)i.push(a(()=>s[l],()=>l));else o.fallback&&(i=[o.fallback()]);return()=>i}let r=new Map;return j(()=>Wl(r.values())),()=>{let s=e()||[];return s[Lo],xe(()=>{if(!s.length)return Wl(r.values()),r.clear(),o.fallback?[St(d=>(r.set(In,{dispose:d}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(In);if(!r.size||l){l?.dispose(),r.delete(In);for(let f=0;f<s.length;f++){let d=s[f],p=t(d,f);n(i,d,f,p)}return i}let u=new Set(r.keys());for(let f=0;f<s.length;f++){let d=s[f],p=t(d,f);u.delete(p);let c=r.get(p);c?(i[f]=c.mapped,c.setIndex?.(f),c.setItem(()=>d)):n(i,d,f,p)}for(let f of u)r.get(f)?.dispose(),r.delete(f);return i})};function n(s,i,l,u){St(f=>{let[d,p]=O(i),c={setItem:p,dispose:f};if(a.length>1){let[m,g]=O(l);c.setIndex=g,c.mapped=a(d,m)}else c.mapped=a(d);r.set(u,c),s[l]=c.mapped})}}function Mr(e){let{by:t}=e;return w(yp(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function vp(e,t,a,o){return e.addEventListener(t,a,o),_c(e.removeEventListener.bind(e,t,a,o))}function Cp(e,t,a,o){if(Ve)return;let r=()=>{Mn(A(e)).forEach(n=>{n&&Mn(A(t)).forEach(s=>vp(n,s,a,o))})};typeof e=="function"?G(r):V(r)}function Lp(e,t){if(Ve)return{observe:Ol,unobserve:Ol};let a=new ResizeObserver(e);return j(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function Ni(e,t,a){if(Ve)return;let o=new WeakMap,{observe:r,unobserve:n}=Lp(s=>{for(let i of s){let{contentRect:l,target:u}=i,f=Math.round(l.width),d=Math.round(l.height),p=o.get(u);(!p||p.width!==f||p.height!==d)&&(t(l,u,i),o.set(u,{width:f,height:d}))}},a);G(s=>{let i=Uc(Mn(A(e)));return Vc(i,s,r,n),i},[])}function jl(e){let t={},a;for(;a=bp.exec(e);)t[a[1]]=a[2];return t}function qr(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=jl(e)}else typeof t=="string"&&(t=jl(t));return{...e,...t}}function Ip(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function Tn(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function wp(e){return typeof e=="number"}function Wa(e){return Object.prototype.toString.call(e)==="[object String]"}function Sp(e){return typeof e=="function"}function Oo(e){return t=>`${e()}-${t}`}function ft(e,t){return e?e===t||e.contains(t):!1}function Mo(e,t=!1){let{activeElement:a}=Mt(e);if(!a?.nodeName)return null;if(Ui(a)&&a.contentDocument)return Mo(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Mt(a).getElementById(o);if(r)return r}}return a}function kp(e){return Mt(e).defaultView||window}function Mt(e){return e?e.ownerDocument||e:document}function Ui(e){return e.tagName==="IFRAME"}function Hn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Nr(){return Hn(/^Mac/i)}function Pp(){return Hn(/^iPhone/i)}function Mp(){return Hn(/^iPad/i)||Nr()&&navigator.maxTouchPoints>1}function Ap(){return Pp()||Mp()}function Dp(){return Nr()||Ap()}function we(e,t){return t&&(Sp(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ne(e){return t=>{for(let a of e)we(t,a)}}function Tp(e){return Nr()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ke(e){if(e)if(Rp())e.focus({preventScroll:!0});else{let t=Fp(e);e.focus(),Ep(t)}}function Rp(){if(Sr==null){Sr=!1;try{document.createElement("div").focus({get preventScroll(){return Sr=!0,!0}})}catch{}}return Sr}function Fp(e){let t=e.parentNode,a=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function Ep(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Hi(e,t){let o=Array.from(e.querySelectorAll(_n)).filter(Xl);return t&&Xl(e)&&o.unshift(e),o.forEach((r,n)=>{if(Ui(r)&&r.contentDocument){let s=r.contentDocument.body,i=Hi(s,!1);o.splice(n,1,...i)}}),o}function Xl(e){return _i(e)&&!Op(e)}function _i(e){return e.matches(_n)&&Vn(e)}function Op(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Vn(e,t){return e.nodeName!=="#comment"&&qp(e)&&Np(e,t)&&(!e.parentElement||Vn(e.parentElement,e))}function qp(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:a}=e.style,o=t!=="none"&&a!=="hidden"&&a!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;let{getComputedStyle:r}=e.ownerDocument.defaultView,{display:n,visibility:s}=r(e);o=n!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Np(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Up(e,t,a){let o=t?.tabbable?Bp:_n,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Vn(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Ql(e){for(;e&&!zp(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function zp(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Hp(){}function _p(e,t){let[a,o]=e,r=!1,n=t.length;for(let s=n,i=0,l=s-1;i<s;l=i++){let[u,f]=t[i],[d,p]=t[l],[,c]=t[l===0?s-1:l-1]||[0,0],m=(f-p)*(a-u)-(u-d)*(o-f);if(p<f){if(o>=p&&o<f){if(m===0)return!0;m>0&&(o===p?o>c&&(r=!r):r=!r)}}else if(f<p){if(o>f&&o<=p){if(m===0)return!0;m<0&&(o===p?o<c&&(r=!r):r=!r)}}else if(o==f&&(a>=d&&a<=u||a>=u&&a<=d))return!0}return r}function le(e,t){return Y(e,t)}function Yl(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=So.get(a.target);o||(o=new Set,So.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=So.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),So.delete(a.target)),So.size===0)){for(let r of Zl)r();Zl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function Rn(e,t){let a=Jl(e,t,"left"),o=Jl(e,t,"top"),r=t.offsetWidth,n=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,l=s+e.offsetWidth,u=i+e.offsetHeight;a<=s?s=a:a+r>l&&(s+=a+r-l),o<=i?i=o:o+n>u&&(i+=o+n-u),e.scrollLeft=s,e.scrollTop=i}function Jl(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[o];break}t=t.offsetParent}return r}function Vp(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Ql(e);for(;e&&r&&e!==a&&r!==a;)Rn(r,e),e=r,r=Ql(e)}else{let{left:r,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:i}=e.getBoundingClientRect();(Math.abs(r-s)>1||Math.abs(n-i)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function ct(e){return t=>(e(t),()=>e(void 0))}function Ur(e,t){let[a,o]=O(ei(t?.()));return G(()=>{o(e()?.tagName.toLowerCase()||ei(t?.()))}),a}function ei(e){return Wa(e)?e:void 0}function Se(e){let[t,a]=ie(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return h(hl,Y(a,{get component(){return t.as}}))}function Kp(e){let t=`form-control-${at()}`,a=le({id:t},e),[o,r]=O(),[n,s]=O(),[i,l]=O(),[u,f]=O(),d=(g,x,y)=>{let v=y!=null||o()!=null;return[y,o(),v&&x!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,c=w(()=>({"data-valid":A(a.validationState)==="valid"?"":void 0,"data-invalid":A(a.validationState)==="invalid"?"":void 0,"data-required":A(a.required)?"":void 0,"data-disabled":A(a.disabled)?"":void 0,"data-readonly":A(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>A(a.name)??A(a.id),dataset:c,validationState:()=>A(a.validationState),isRequired:()=>A(a.required),isDisabled:()=>A(a.disabled),isReadOnly:()=>A(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:d,getAriaDescribedBy:p,generateId:Oo(()=>A(a.id)),registerLabel:ct(r),registerField:ct(s),registerDescription:ct(l),registerErrorMessage:ct(f)}}}function qo(){let e=Re(Gi);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Ki(e){let t=qo(),a=le({id:t.generateId("description")},e);return G(()=>j(t.registerDescription(a.id))),h(Se,Y({as:"div"},()=>t.dataset(),a))}function Wi(e){let t=qo(),a=le({id:t.generateId("error-message")},e),[o,r]=ie(a,["forceMount"]),n=()=>t.validationState()==="invalid";return G(()=>{n()&&j(t.registerErrorMessage(r.id))}),h(K,{get when(){return o.forceMount||n()},get children(){return h(Se,Y({as:"div"},()=>t.dataset(),r))}})}function Wp(e){let t,a=qo(),o=le({id:a.generateId("label")},e),[r,n]=ie(o,["ref"]),s=Ur(()=>t,()=>"label");return G(()=>j(a.registerLabel(n.id))),h(Se,Y({as:"label",ref(i){let l=Xe(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return w(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function jp(e,t){G(kt(e,a=>{if(a==null)return;let o=Xp(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),j(()=>{o.removeEventListener("reset",t)}))}))}function Xp(e){return Qp(e)?e.form:e.closest("form")}function Qp(e){return e.matches("textarea, input, select, button")}function No(e){let[t,a]=O(e.defaultValue?.()),o=w(()=>e.value?.()!==void 0),r=w(()=>o()?e.value?.():t());return[r,s=>{xe(()=>{let i=Hc(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function ji(e){let[t,a]=No(e);return[()=>t()??!1,a]}function Zp(e){let[t,a]=No(e);return[()=>t()??[],a]}function Yp(e={}){let[t,a]=ji({value:()=>A(e.isSelected),defaultValue:()=>!!A(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(n)},toggle:()=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(!t())}}}function Qi(){return Re(Xi)}function em(){let e=Qi();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Zi(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function tm(e,t){let a=t.ref();if(!a)return-1;let o=e.length;if(!o)return-1;for(;o--;){let r=e[o]?.ref();if(r&&Zi(r,a))return o+1}return 0}function am(e){let t=e.map((o,r)=>[r,o]),a=!1;return t.sort(([o,r],[n,s])=>{let i=r.ref(),l=s.ref();return i===l||!i||!l?0:Zi(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function Yi(e,t){let a=am(e);e!==a&&t(a)}function om(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return Mt(o).body}function rm(e,t){G(()=>{let a=setTimeout(()=>{Yi(e(),t)});j(()=>clearTimeout(a))})}function nm(e,t){if(typeof IntersectionObserver!="function"){rm(e,t);return}let a=[];G(()=>{let o=()=>{let s=!!a.length;a=e(),s&&Yi(e(),t)},r=om(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}j(()=>n.disconnect())})}function sm(e={}){let[t,a]=Zp({value:()=>A(e.items),onChange:n=>e.onItemsChange?.(n)});nm(t,a);let o=n=>(a(s=>{let i=tm(s,n);return Ip(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>h(Xi.Provider,{value:{registerItem:o},get children(){return n.children}})}}function lm(e){let t=em(),a=le({shouldRegisterItem:!0},e);G(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());j(o)})}function Ji(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",f=Wa(u)?l[u]:u(l);return f!=null?String(f):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",f=Wa(u)?l[u]:u(l);return f!=null?String(f):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(Wa(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return Wa(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(Wa(l)||wp(l)){o.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:a,index:t}),t++;continue}if(i(l)!=null){o.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:a,index:t}),t++;let u=i(l)??[];if(u.length>0){let f=Ji({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...f),t+=f.length}}else o.push({type:"item",rawValue:l,key:r(l),textValue:n(l),disabled:s(l),level:a,index:t}),t++}return o}function im(e,t=[]){return w(()=>{let a=Ji({dataSource:A(e.dataSource),getKey:A(e.getKey),getTextValue:A(e.getTextValue),getDisabled:A(e.getDisabled),getSectionChildren:A(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function fm(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return um.has(a)}let t=e.split("-")[0];return dm.has(t)}function cm(e){return fm(e)?"rtl":"ltr"}function eu(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:cm(e)}}function ti(){Fn=eu();for(let e of Ao)e(Fn)}function pm(){let e={locale:"en-US",direction:"ltr"},[t,a]=O(Fn),o=w(()=>Ve?e:t());return Ht(()=>{Ao.size===0&&window.addEventListener("languagechange",ti),Ao.add(a),j(()=>{Ao.delete(a),Ao.size===0&&window.removeEventListener("languagechange",ti)})}),{locale:()=>o().locale,direction:()=>o().direction}}function ga(){let e=pm();return Re(mm)||e}function gm(e){let{locale:t}=ga(),a=w(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return w(()=>{let o=a(),r;return wn.has(o)&&(r=wn.get(o)),r||(r=new Intl.Collator(t(),e),wn.set(o,r)),r})}function hm(e){let[t,a]=No(e);return[()=>t()??new Vt,a]}function au(e){return Dp()?e.altKey:e.ctrlKey}function ja(e){return Nr()?e.metaKey:e.ctrlKey}function ai(e){return new Vt(e)}function xm(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function ym(e){let t=le({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=O(!1),[r,n]=O(),s=w(()=>{let g=A(t.selectedKeys);return g!=null?ai(g):g}),i=w(()=>{let g=A(t.defaultSelectedKeys);return g!=null?ai(g):new Vt}),[l,u]=hm({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[f,d]=O(A(t.selectionBehavior)),p=()=>A(t.selectionMode),c=()=>A(t.disallowEmptySelection)??!1,m=g=>{(A(t.allowDuplicateSelectionEvents)||!xm(g,l()))&&u(g)};return G(()=>{let g=l();A(t.selectionBehavior)==="replace"&&f()==="toggle"&&typeof g=="object"&&g.size===0&&d("replace")}),G(()=>{d(A(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:c,selectionBehavior:f,setSelectionBehavior:d,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function vm(e){let[t,a]=O(""),[o,r]=O(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(A(e.isDisabled))return;let i=A(e.keyboardDelegate),l=A(e.selectionManager);if(!i.getKeyForSearch)return;let u=Cm(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let f=a(p=>p+u),d=i.getKeyForSearch(f,l.focusedKey())??i.getKeyForSearch(f);d==null&&Lm(f)&&(f=f[0],d=i.getKeyForSearch(f,l.focusedKey())??i.getKeyForSearch(f)),d!=null&&(l.setFocusedKey(d),e.onTypeSelect?.(d)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function Cm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Lm(e){return e.split("").every(t=>t===e[0])}function bm(e,t,a){let r=Y({selectOnFocus:()=>A(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=ga(),i={top:0,left:0};Cp(()=>A(r.isVirtualized)?void 0:n(),"scroll",()=>{let x=n();x&&(i={top:x.scrollTop,left:x.scrollLeft})});let{typeSelectHandlers:l}=vm({isDisabled:()=>A(r.disallowTypeAhead),keyboardDelegate:()=>A(r.keyboardDelegate),selectionManager:()=>A(r.selectionManager)}),u=()=>A(r.orientation)??"vertical",f=x=>{we(x,l.onKeyDown),x.altKey&&x.key==="Tab"&&x.preventDefault();let y=t();if(!y?.contains(x.target))return;let v=A(r.selectionManager),C=A(r.selectOnFocus),L=$=>{$!=null&&(v.setFocusedKey($),x.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection($):C&&!au(x)&&v.replaceSelection($))},b=A(r.keyboardDelegate),T=A(r.shouldFocusWrap),D=v.focusedKey();switch(x.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(b.getKeyBelow){x.preventDefault();let $;D!=null?$=b.getKeyBelow(D):$=b.getFirstKey?.(),$==null&&T&&($=b.getFirstKey?.(D)),L($)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(b.getKeyAbove){x.preventDefault();let $;D!=null?$=b.getKeyAbove(D):$=b.getLastKey?.(),$==null&&T&&($=b.getLastKey?.(D)),L($)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(b.getKeyLeftOf){x.preventDefault();let $=s()==="rtl",I;D!=null?I=b.getKeyLeftOf(D):I=$?b.getFirstKey?.():b.getLastKey?.(),L(I)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(b.getKeyRightOf){x.preventDefault();let $=s()==="rtl",I;D!=null?I=b.getKeyRightOf(D):I=$?b.getLastKey?.():b.getFirstKey?.(),L(I)}break}case"Home":if(b.getFirstKey){x.preventDefault();let $=b.getFirstKey(D,ja(x));$!=null&&(v.setFocusedKey($),ja(x)&&x.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection($):C&&v.replaceSelection($))}break;case"End":if(b.getLastKey){x.preventDefault();let $=b.getLastKey(D,ja(x));$!=null&&(v.setFocusedKey($),ja(x)&&x.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection($):C&&v.replaceSelection($))}break;case"PageDown":if(b.getKeyPageBelow&&D!=null){x.preventDefault();let $=b.getKeyPageBelow(D);L($)}break;case"PageUp":if(b.getKeyPageAbove&&D!=null){x.preventDefault();let $=b.getKeyPageAbove(D);L($)}break;case"a":ja(x)&&v.selectionMode()==="multiple"&&A(r.disallowSelectAll)!==!0&&(x.preventDefault(),v.selectAll());break;case"Escape":x.defaultPrevented||(x.preventDefault(),A(r.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!A(r.allowsTabNavigation)){if(x.shiftKey)y.focus();else{let $=Up(y,{tabbable:!0}),I,M;do M=$.lastChild(),M&&(I=M);while(M);I&&!I.contains(document.activeElement)&&Ke(I)}break}}},d=x=>{let y=A(r.selectionManager),v=A(r.keyboardDelegate),C=A(r.selectOnFocus);if(y.isFocused()){x.currentTarget.contains(x.target)||y.setFocused(!1);return}if(x.currentTarget.contains(x.target)){if(y.setFocused(!0),y.focusedKey()==null){let L=T=>{T!=null&&(y.setFocusedKey(T),C&&y.replaceSelection(T))},b=x.relatedTarget;b&&x.currentTarget.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?L(y.lastSelectedKey()??v.getLastKey?.()):L(y.firstSelectedKey()??v.getFirstKey?.())}else if(!A(r.isVirtualized)){let L=n();if(L){L.scrollTop=i.top,L.scrollLeft=i.left;let b=L.querySelector(`[data-key="${y.focusedKey()}"]`);b&&(Ke(b),Rn(L,b))}}}},p=x=>{let y=A(r.selectionManager);x.currentTarget.contains(x.relatedTarget)||y.setFocused(!1)},c=x=>{n()===x.target&&x.preventDefault()},m=()=>{let x=A(r.autoFocus);if(!x)return;let y=A(r.selectionManager),v=A(r.keyboardDelegate),C;x==="first"&&(C=v.getFirstKey?.()),x==="last"&&(C=v.getLastKey?.());let L=y.selectedKeys();L.size&&(C=L.values().next().value),y.setFocused(!0),y.setFocusedKey(C);let b=t();b&&C==null&&!A(r.shouldUseVirtualFocus)&&Ke(b)};return Ht(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),G(kt([n,()=>A(r.isVirtualized),()=>A(r.selectionManager).focusedKey()],x=>{let[y,v,C]=x;if(v)C&&r.scrollToKey?.(C);else if(C&&y){let L=y.querySelector(`[data-key="${C}"]`);L&&Rn(y,L)}})),{tabIndex:w(()=>{if(!A(r.shouldUseVirtualFocus))return A(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:f,onMouseDown:c,onFocusIn:d,onFocusOut:p}}function ou(e,t){let a=()=>A(e.selectionManager),o=()=>A(e.key),r=()=>A(e.shouldUseVirtualFocus),n=v=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):v?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||ja(v)||"pointerType"in v&&v.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>A(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,f=v=>{l()&&(u=v.pointerType,v.pointerType==="mouse"&&v.button===0&&!A(e.shouldSelectOnPressUp)&&n(v))},d=v=>{l()&&v.pointerType==="mouse"&&v.button===0&&A(e.shouldSelectOnPressUp)&&A(e.allowsDifferentPressOrigin)&&n(v)},p=v=>{l()&&(A(e.shouldSelectOnPressUp)&&!A(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(v)},c=v=>{!l()||!["Enter"," "].includes(v.key)||(au(v)?a().toggleSelection(o()):n(v))},m=v=>{i()&&v.preventDefault()},g=v=>{let C=t();r()||i()||!C||v.target===C&&a().setFocusedKey(o())},x=w(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),y=w(()=>A(e.virtualized)?void 0:o());return G(kt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([v,C,L,b,T])=>{v&&C===b&&T&&!L&&document.activeElement!==v&&(e.focus?e.focus():Ke(v))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:x,dataKey:y,onPointerDown:f,onPointerUp:d,onClick:p,onKeyDown:c,onMouseDown:m,onFocus:g}}function wm(e){let t=ym(e),o=im({dataSource:()=>A(e.dataSource),getKey:()=>A(e.getKey),getTextValue:()=>A(e.getTextValue),getDisabled:()=>A(e.getDisabled),getSectionChildren:()=>A(e.getSectionChildren),factory:n=>e.filter?new oi(e.filter(n)):new oi(n)},[()=>e.filter]),r=new Im(o,t);return pr(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function To(e){return Kt.findIndex(t=>t.node===e)}function Pm(e){return Kt[To(e)]}function Mm(e){return Kt[Kt.length-1].node===e}function su(){return Kt.filter(e=>e.isPointerBlocking)}function Am(){return[...su()].slice(-1)[0]}function Gn(){return su().length>0}function lu(e){let t=To(Am()?.node);return To(e)<t}function Dm(e){Kt.push(e)}function Tm(e){let t=To(e);t<0||Kt.splice(t,1)}function Rm(){for(let{node:e}of Kt)e.style.pointerEvents=lu(e)?"none":"auto"}function Fm(e){if(Gn()&&!En){let t=Mt(e);nu=document.body.style.pointerEvents,t.body.style.pointerEvents="none",En=!0}}function Em(e){if(Gn())return;let t=Mt(e);t.body.style.pointerEvents=nu,t.body.style.length===0&&t.body.removeAttribute("style"),En=!1}function Om(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Bm.indexOf(e.type)!==-1:!1}function Kn(e){let t,a=le({type:"button"},e),[o,r]=ie(a,["ref","type","disabled"]),n=Ur(()=>t,()=>"button"),s=w(()=>{let u=n();return u==null?!1:Om({tagName:u,type:o.type})}),i=w(()=>n()==="input"),l=w(()=>n()==="a"&&t?.getAttribute("href")!=null);return h(Se,Y({as:"button",ref(u){let f=Xe(d=>t=d,o.ref);typeof f=="function"&&f(u)},get type(){return s()||i()?o.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!o.disabled?0:void 0},get disabled(){return s()||i()?o.disabled:void 0},get"aria-disabled"(){return!s()&&!i()&&o.disabled?!0:void 0},get"data-disabled"(){return o.disabled?"":void 0}},r))}function $n(e,t,a){return nt(e,Pt(t,a))}function Ra(e,t){return typeof e=="function"?e(t):e}function pa(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function iu(e){return e==="x"?"y":"x"}function Wn(e){return e==="y"?"height":"width"}function Da(e){return["top","bottom"].includes(pa(e))?"y":"x"}function jn(e){return iu(Da(e))}function Hm(e,t,a){a===void 0&&(a=!1);let o=Za(e),r=jn(e),n=Wn(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Tr(s)),[s,Tr(s)]}function _m(e){let t=Tr(e);return[Bn(e),t,Bn(t)]}function Bn(e){return e.replace(/start|end/g,t=>zm[t])}function Vm(e,t,a){let o=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return a?t?r:o:t?o:r;case"left":case"right":return t?n:s;default:return[]}}function Gm(e,t,a,o){let r=Za(e),n=Vm(pa(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Bn)))),n}function Tr(e){return e.replace(/left|right|bottom|top/g,t=>Um[t])}function Km(e){return{top:0,right:0,bottom:0,left:0,...e}}function uu(e){return typeof e!="number"?Km(e):{top:e,right:e,bottom:e,left:e}}function Rr(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function ri(e,t,a){let{reference:o,floating:r}=e,n=Da(t),s=jn(t),i=Wn(s),l=pa(t),u=n==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,c;switch(l){case"top":c={x:f,y:o.y-r.height};break;case"bottom":c={x:f,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:d};break;case"left":c={x:o.x-r.width,y:d};break;default:c={x:o.x,y:o.y}}switch(Za(t)){case"start":c[s]-=p*(a&&u?-1:1);break;case"end":c[s]+=p*(a&&u?-1:1);break}return c}async function Ro(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:c=0}=Ra(t,e),m=uu(c),x=i[p?d==="floating"?"reference":"floating":d],y=Rr(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(x)))==null||a?x:x.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),v=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),L=await(n.isElement==null?void 0:n.isElement(C))?await(n.getScale==null?void 0:n.getScale(C))||{x:1,y:1}:{x:1,y:1},b=Rr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:C,strategy:l}):v);return{top:(y.top-b.top+m.top)/L.y,bottom:(b.bottom-y.bottom+m.bottom)/L.y,left:(y.left-b.left+m.left)/L.x,right:(b.right-y.right+m.right)/L.x}}function ni(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function si(e){return Nm.some(t=>e[t]>=0)}async function Zm(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=pa(a),i=Za(a),l=Da(a)==="y",u=["left","top"].includes(s)?-1:1,f=n&&l?-1:1,d=Ra(t,e),{mainAxis:p,crossAxis:c,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(c=i==="end"?m*-1:m),l?{x:c*f,y:p*u}:{x:p*u,y:c*f}}function Ya(e){return du(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wt(e){var t;return(t=(du(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function du(e){return e instanceof Node||e instanceof st(e).Node}function vt(e){return e instanceof Element||e instanceof st(e).Element}function At(e){return e instanceof HTMLElement||e instanceof st(e).HTMLElement}function li(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}function Uo(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function tg(e){return["table","td","th"].includes(Ya(e))}function Hr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xn(e){let t=Qn(),a=vt(e)?Ct(e):e;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(a.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(a.contain||"").includes(o))}function ag(e){let t=ma(e);for(;At(t)&&!Qa(t);){if(Xn(t))return t;if(Hr(t))return null;t=ma(t)}return null}function Qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qa(e){return["html","body","#document"].includes(Ya(e))}function Ct(e){return st(e).getComputedStyle(e)}function _r(e){return vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(Ya(e)==="html")return e;let t=e.assignedSlot||e.parentNode||li(e)&&e.host||Wt(e);return li(t)?t.host:t}function fu(e){let t=ma(e);return Qa(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&Uo(t)?t:fu(t)}function Fo(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=fu(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=st(r);return n?t.concat(s,s.visualViewport||[],Uo(r)?r:[],s.frameElement&&a?Fo(s.frameElement):[]):t.concat(r,Fo(r,[],a))}function cu(e){let t=Ct(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=At(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Dr(a)!==n||Dr(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function Zn(e){return vt(e)?e:e.contextElement}function Xa(e){let t=Zn(e);if(!At(t))return ca(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=cu(t),s=(n?Dr(a.width):a.width)/o,i=(n?Dr(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function pu(e){let t=st(e);return!Qn()||!t.visualViewport?og:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rg(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==st(e)?!1:t}function Ta(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=Zn(e),s=ca(1);t&&(o?vt(o)&&(s=Xa(o)):s=Xa(e));let i=rg(n,a,o)?pu(n):ca(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(n){let p=st(n),c=o&&vt(o)?st(o):o,m=p,g=m.frameElement;for(;g&&o&&c!==m;){let x=Xa(g),y=g.getBoundingClientRect(),v=Ct(g),C=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*x.x,L=y.top+(g.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,u*=x.y,f*=x.x,d*=x.y,l+=C,u+=L,m=st(g),g=m.frameElement}}return Rr({width:f,height:d,x:l,y:u})}function ng(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=Wt(o),i=t?Hr(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=ca(1),f=ca(0),d=At(o);if((d||!d&&!n)&&((Ya(o)!=="body"||Uo(s))&&(l=_r(o)),At(o))){let p=Ta(o);u=Xa(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+f.x,y:a.y*u.y-l.scrollTop*u.y+f.y}}function sg(e){return Array.from(e.getClientRects())}function mu(e){return Ta(Wt(e)).left+_r(e).scrollLeft}function lg(e){let t=Wt(e),a=_r(e),o=e.ownerDocument.body,r=nt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=nt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+mu(e),i=-a.scrollTop;return Ct(o).direction==="rtl"&&(s+=nt(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function ig(e,t){let a=st(e),o=Wt(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=Qn();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function ug(e,t){let a=Ta(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=At(e)?Xa(e):ca(1),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function ii(e,t,a){let o;if(t==="viewport")o=ig(e,a);else if(t==="document")o=lg(Wt(e));else if(vt(t))o=ug(t,a);else{let r=pu(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Rr(o)}function gu(e,t){let a=ma(e);return a===t||!vt(a)||Qa(a)?!1:Ct(a).position==="fixed"||gu(a,t)}function dg(e,t){let a=t.get(e);if(a)return a;let o=Fo(e,[],!1).filter(i=>vt(i)&&Ya(i)!=="body"),r=null,n=Ct(e).position==="fixed",s=n?ma(e):e;for(;vt(s)&&!Qa(s);){let i=Ct(s),l=Xn(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Uo(s)&&!l&&gu(e,s))?o=o.filter(f=>f!==s):r=i,s=ma(s)}return t.set(e,o),o}function fg(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Hr(t)?[]:dg(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,f)=>{let d=ii(t,f,r);return u.top=nt(d.top,u.top),u.right=Pt(d.right,u.right),u.bottom=Pt(d.bottom,u.bottom),u.left=nt(d.left,u.left),u},ii(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cg(e){let{width:t,height:a}=cu(e);return{width:t,height:a}}function pg(e,t,a){let o=At(t),r=Wt(t),n=a==="fixed",s=Ta(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=ca(0);if(o||!o&&!n)if((Ya(t)!=="body"||Uo(r))&&(i=_r(t)),o){let d=Ta(t,!0,n,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&(l.x=mu(r));let u=s.left+i.scrollLeft-l.x,f=s.top+i.scrollTop-l.y;return{x:u,y:f,width:s.width,height:s.height}}function Sn(e){return Ct(e).position==="static"}function ui(e,t){return!At(e)||Ct(e).position==="fixed"?null:t?t(e):e.offsetParent}function hu(e,t){let a=st(e);if(Hr(e))return a;if(!At(e)){let r=ma(e);for(;r&&!Qa(r);){if(vt(r)&&!Sn(r))return r;r=ma(r)}return a}let o=ui(e,t);for(;o&&tg(o)&&Sn(o);)o=ui(o,t);return o&&Qa(o)&&Sn(o)&&!Xn(o)?a:o||ag(e)||a}function gg(e){return Ct(e).direction==="rtl"}function hg(e,t){let a=null,o,r=Wt(e);function n(){var i;clearTimeout(o),(i=a)==null||i.disconnect(),a=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),n();let{left:u,top:f,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;let c=kr(f),m=kr(r.clientWidth-(u+d)),g=kr(r.clientHeight-(f+p)),x=kr(u),v={rootMargin:-c+"px "+-m+"px "+-g+"px "+-x+"px",threshold:nt(0,Pt(1,l))||1},C=!0;function L(b){let T=b[0].intersectionRatio;if(T!==l){if(!C)return s();T?s(!1,T):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{a=new IntersectionObserver(L,{...v,root:r.ownerDocument})}catch{a=new IntersectionObserver(L,v)}a.observe(e)}return s(!0),n}function xg(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Zn(e),f=r||n?[...u?Fo(u):[],...Fo(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",a,{passive:!0}),n&&y.addEventListener("resize",a)});let d=u&&i?hg(u,a):null,p=-1,c=null;s&&(c=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&c&&(c.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=c)==null||C.observe(t)})),a()}),u&&!l&&c.observe(u),c.observe(t));let m,g=l?Ta(e):null;l&&x();function x(){let y=Ta(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&a(),g=y,m=requestAnimationFrame(x)}return a(),()=>{var y;f.forEach(v=>{r&&v.removeEventListener("scroll",a),n&&v.removeEventListener("resize",a)}),d?.(),(y=c)==null||y.disconnect(),c=null,l&&cancelAnimationFrame(m)}}function Jn(){let e=Re(Yn);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function es(e){let t=Jn(),a=le({size:On},e),[o,r]=ie(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=Pg(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",f=()=>Number.parseInt(u())*2*(On/o.size),d=()=>`rotate(${kg[n()]} ${di} ${di}) translate(0 2)`;return h(Se,Y({as:"div",ref(p){let c=Xe(t.setArrowRef,o.ref);typeof c=="function"&&c(p)},"aria-hidden":"true",get style(){return qr({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":f()},o.style)}},r,{get children(){let p=Sg(),c=p.firstChild;return V(()=>R(c,"transform",d())),p}}))}function Pg(e){let[t,a]=O();return G(()=>{let o=e();o&&a(kp(o).getComputedStyle(o))}),t}function Mg(e){let t=Jn(),[a,o]=ie(e,["ref","style"]);return h(Se,Y({as:"div",ref(r){let n=Xe(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return qr({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function fi(e){let{x:t=0,y:a=0,width:o=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,a,o,r);let n={x:t,y:a,width:o,height:r,top:a,right:t+o,bottom:a+r,left:t};return{...n,toJSON:()=>n}}function Ag(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?fi(o):e?e.getBoundingClientRect():fi()}}}function Dg(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Rg(e,t){let[a,o]=e.split("-"),r=Tg[a];return o?a==="left"||a==="right"?`${r} ${o==="start"?"top":"bottom"}`:o==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function Fg(e){let t=le({getAnchorRect:p=>p?.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),[a,o]=O(),[r,n]=O(),[s,i]=O(t.placement),l=()=>Ag(t.anchorRef?.(),t.getAnchorRect),{direction:u}=ga();async function f(){let p=l(),c=a(),m=r();if(!p||!c)return;let g=(m?.clientHeight||0)/2,x=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;c.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let y=[yg(({placement:T})=>{let D=!!T.split("-")[1];return{mainAxis:x,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let T=typeof t.flip=="string"?t.flip.split(" "):void 0;if(T!==void 0&&!T.every(Dg))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(Cg({padding:t.overflowPadding,fallbackPlacements:T}))}(t.slide||t.overlap)&&y.push(vg({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),y.push(Lg({padding:t.overflowPadding,apply({availableWidth:T,availableHeight:D,rects:$}){let I=Math.round($.reference.width);T=Math.floor(T),D=Math.floor(D),c.style.setProperty("--kb-popper-anchor-width",`${I}px`),c.style.setProperty("--kb-popper-content-available-width",`${T}px`),c.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(c.style.width=`${I}px`),t.fitViewport&&(c.style.maxWidth=`${T}px`,c.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&y.push(bg({padding:t.detachedPadding})),m&&y.push(Ig({element:m,padding:t.arrowPadding}));let v=await wg(p,c,{placement:t.placement,strategy:"absolute",middleware:y,platform:{...xu,isRTL:()=>u()==="rtl"}});if(i(v.placement),t.onCurrentPlacementChange?.(v.placement),!c)return;c.style.setProperty("--kb-popper-content-transform-origin",Rg(v.placement,u()));let C=Math.round(v.x),L=Math.round(v.y),b;if(t.hideWhenDetached&&(b=v.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(c.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${L}px, 0)`,visibility:b}),m&&v.middlewareData.arrow){let{x:T,y:D}=v.middlewareData.arrow,$=v.placement.split("-")[0];Object.assign(m.style,{left:T!=null?`${T}px`:"",top:D!=null?`${D}px`:"",[$]:"100%"})}}G(()=>{let p=l(),c=a();if(!p||!c)return;let m=xg(p,c,f,{elementResize:typeof ResizeObserver=="function"});j(m)}),G(()=>{let p=a(),c=t.contentRef?.();!p||!c||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(c).zIndex})});let d={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return h(Yn.Provider,{value:d,get children(){return t.children}})}function Eg(e){let t=a=>{a.key===zn.Escape&&e.onEscapeKeyDown?.(a)};G(()=>{if(Ve||A(e.isDisabled))return;let a=e.ownerDocument?.()??Mt();a.addEventListener("keydown",t),j(()=>{a.removeEventListener("keydown",t)})})}function $g(e,t){let a,o=Hp,r=()=>Mt(t()),n=d=>e.onPointerDownOutside?.(d),s=d=>e.onFocusOutside?.(d),i=d=>e.onInteractOutside?.(d),l=d=>{let p=d.target;return!(p instanceof HTMLElement)||p.closest(`[${Ar}]`)||!ft(r(),p)||ft(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=d=>{function p(){let c=t(),m=d.target;if(!c||!m||!l(d))return;let g=Ne([n,i]);m.addEventListener(ci,g,{once:!0});let x=new CustomEvent(ci,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||Tp(d)&&d.button===0}});m.dispatchEvent(x)}d.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},f=d=>{let p=t(),c=d.target;if(!p||!c||!l(d))return;let m=Ne([s,i]);c.addEventListener(pi,m,{once:!0});let g=new CustomEvent(pi,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});c.dispatchEvent(g)};G(()=>{Ve||A(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",f,!0),j(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",f,!0)}))})}function Bg(){return Re(vu)}function Og(e){let t,a=Bg(),[o,r]=ie(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=d=>{n.add(d);let p=a?.registerNestedLayer(d);return()=>{n.delete(d),p?.()}};$g({shouldExcludeElement:d=>t?o.excludedElements?.some(p=>ft(p(),d))||[...n].some(p=>ft(p,d)):!1,onPointerDownOutside:d=>{!t||ot.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!ot.isTopMostLayer(t)||(o.onPointerDownOutside?.(d),o.onInteractOutside?.(d),d.defaultPrevented||o.onDismiss?.())},onFocusOutside:d=>{o.onFocusOutside?.(d),o.onInteractOutside?.(d),d.defaultPrevented||o.onDismiss?.()}},()=>t),Eg({ownerDocument:()=>Mt(t),onEscapeKeyDown:d=>{!t||!ot.isTopMostLayer(t)||(o.onEscapeKeyDown?.(d),!d.defaultPrevented&&o.onDismiss&&(d.preventDefault(),o.onDismiss()))}}),Ht(()=>{if(!t)return;ot.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let d=a?.registerNestedLayer(t);ot.assignPointerEventToLayers(),ot.disableBodyPointerEvents(t),j(()=>{t&&(ot.removeLayer(t),d?.(),ot.assignPointerEventToLayers(),ot.restoreBodyPointerEvents(t))})}),G(kt([()=>t,()=>o.disableOutsidePointerEvents],([d,p])=>{if(!d)return;let c=ot.find(d);c&&c.isPointerBlocking!==p&&(c.isPointerBlocking=p,ot.assignPointerEventToLayers()),p&&ot.disableBodyPointerEvents(d),j(()=>{ot.restoreBodyPointerEvents(d)})},{defer:!0}));let f={registerNestedLayer:s};return h(vu.Provider,{value:f,get children(){return h(Se,Y({as:"div",ref(d){let p=Xe(c=>t=c,o.ref);typeof p=="function"&&p(d)}},r))}})}function Cu(e={}){let[t,a]=ji({value:()=>A(e.open),defaultValue:()=>!!A(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function bu(){let e=Re(Lu);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function zo(){let e=Re(Iu);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function wu(e){let t=qo(),a=bu(),o=`${t.generateId("item")}-${at()}`,r=le({id:o},e),[n,s]=ie(r,["value","disabled","onPointerDown"]),[i,l]=O(),[u,f]=O(),[d,p]=O(),[c,m]=O(),[g,x]=O(!1),y=w(()=>a.isSelectedValue(n.value)),v=w(()=>n.disabled||t.isDisabled()||!1),C=T=>{we(T,n.onPointerDown),g()&&T.preventDefault()},L=w(()=>({...t.dataset(),"data-disabled":v()?"":void 0,"data-checked":y()?"":void 0})),b={value:()=>n.value,dataset:L,isSelected:y,isDisabled:v,inputId:i,labelId:u,descriptionId:d,inputRef:c,select:()=>a.setSelectedValue(n.value),generateId:Oo(()=>s.id),registerInput:ct(l),registerLabel:ct(f),registerDescription:ct(p),setIsFocused:x,setInputRef:m};return h(Iu.Provider,{value:b,get children(){return h(Se,Y({as:"div",role:"group",onPointerDown:C},L,s))}})}function Su(e){let t=zo(),a=le({id:t.generateId("control")},e),[o,r]=ie(a,["onClick","onKeyDown"]);return h(Se,Y({as:"div",onClick:i=>{we(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{we(i,o.onKeyDown),i.key===zn.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function ku(e){let t=zo(),a=le({id:t.generateId("description")},e);return G(()=>j(t.registerDescription(a.id))),h(Se,Y({as:"div"},()=>t.dataset(),a))}function Pu(e){let t=zo(),a=le({id:t.generateId("indicator")},e),[o,r]=ie(a,["ref","forceMount"]),[n,s]=O(),{present:i}=ru({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return h(K,{get when(){return i()},get children(){return h(Se,Y({as:"div",ref(l){let u=Xe(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function Mu(e){let t=qo(),a=bu(),o=zo(),r=le({id:o.generateId("input")},e),[n,s]=ie(r,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),i=()=>[n["aria-labelledby"],o.labelId(),n["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[n["aria-describedby"],o.descriptionId(),a.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,f]=O(!1),d=m=>{if(we(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}f(!1)},p=m=>{we(m,n.onFocus),o.setIsFocused(!0)},c=m=>{we(m,n.onBlur),o.setIsFocused(!1)};return G(kt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;f(!0);let g=o.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),G(()=>j(o.registerInput(s.id))),h(Se,Y({as:"input",ref(m){let g=Xe(o.setInputRef,n.ref);typeof g=="function"&&g(m)},type:"radio",get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return qr({...Vi},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:d,onFocus:p,onBlur:c},()=>o.dataset(),s))}function Au(e){let t=zo(),a=le({id:t.generateId("label")},e);return G(()=>j(t.registerLabel(a.id))),h(Se,Y({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function Du(e){return h(Wp,Y({as:"span"},e))}function Tu(e){let t,a=`radiogroup-${at()}`,o=le({id:a,orientation:"vertical"},e),[r,n,s]=ie(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Gp),[i,l]=No({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=Kp(n);jp(()=>t,()=>l(r.defaultValue??""));let f=()=>u.getAriaLabelledBy(A(n.id),s["aria-label"],r["aria-labelledby"]),d=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),c={ariaDescribedBy:d,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let x=g;x.checked=p(x.value)}}};return h(Gi.Provider,{value:u,get children(){return h(Lu.Provider,{value:c,get children(){return h(Se,Y({as:"div",ref(m){let g=Xe(x=>t=x,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return A(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return f()},get"aria-describedby"(){return d()}},()=>u.dataset(),s))}})}})}function Ug(e,t,a){let o=gm({usage:"search",sensitivity:"base"}),r=w(()=>{let n=A(e.keyboardDelegate);return n||new Ng(e.collection,t,o)});return bm({selectionManager:()=>A(e.selectionManager),keyboardDelegate:r,autoFocus:()=>A(e.autoFocus),deferAutoFocus:()=>A(e.deferAutoFocus),shouldFocusWrap:()=>A(e.shouldFocusWrap),disallowEmptySelection:()=>A(e.disallowEmptySelection),selectOnFocus:()=>A(e.selectOnFocus),disallowTypeAhead:()=>A(e.disallowTypeAhead),shouldUseVirtualFocus:()=>A(e.shouldUseVirtualFocus),allowsTabNavigation:()=>A(e.allowsTabNavigation),isVirtualized:()=>A(e.isVirtualized),scrollToKey:n=>A(e.scrollToKey)?.(n),orientation:()=>A(e.orientation)},t)}function zg(e,t){let[a,o]=O(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Mt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Vi),m},f=()=>{let m=t();return m?Hi(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},d=()=>{let m=f();return m.length>0?m[0]:null},p=()=>{let m=f();return m.length>0?m[m.length-1]:null},c=()=>{let m=t();if(!m)return!1;let g=Mo(m);return!g||ft(m,g)?!1:_i(g)};G(()=>{if(Ve)return;let m=t();if(!m)return;gi.add(r);let g=Mo(m);if(!ft(m,g)){let y=new CustomEvent(kn,mi);m.addEventListener(kn,s),m.dispatchEvent(y),y.defaultPrevented||setTimeout(()=>{Ke(d()),Mo(m)===g&&Ke(m)},0)}j(()=>{m.removeEventListener(kn,s),setTimeout(()=>{let y=new CustomEvent(Pn,mi);c()&&y.preventDefault(),m.addEventListener(Pn,i),m.dispatchEvent(y),y.defaultPrevented||Ke(g??l().body),m.removeEventListener(Pn,i),gi.remove(r)},0)})}),G(()=>{if(Ve)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=y=>{let v=y.target;v?.closest(`[${Ar}]`)||(ft(m,v)?n=v:Ke(n))},x=y=>{let C=y.relatedTarget??Mo(m);C?.closest(`[${Ar}]`)||ft(m,C)||Ke(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",x),j(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",x)})}),G(()=>{if(Ve)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let x=u();m.insertAdjacentElement("beforeend",x);function y(C){let L=d(),b=p();C.relatedTarget===L?Ke(b):Ke(L)}g.addEventListener("focusin",y),x.addEventListener("focusin",y);let v=new MutationObserver(C=>{for(let L of C)L.previousSibling===x&&(x.remove(),m.insertAdjacentElement("beforeend",x)),L.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});v.observe(m,{childList:!0,subtree:!1}),j(()=>{g.removeEventListener("focusin",y),x.removeEventListener("focusin",y),g.remove(),x.remove(),v.disconnect()})})}function _g(e){G(()=>{A(e.isDisabled)||j(Vg(A(e.targets),A(e.root)))})}function Vg(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${Hg}], [${Ar}]`))a.add(p);let u=p=>{if(a.has(p)||p.parentElement&&o.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let c of a)if(p.contains(c))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&n(l),d!==NodeFilter.FILTER_REJECT){let p=f.nextNode();for(;p!=null;)n(p),p=f.nextNode()}},n=l=>{let u=ko.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),ko.set(l,u+1))};ut.length&&ut[ut.length-1].disconnect(),r(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...a,...o].some(f=>f.contains(u.target))){for(let f of u.removedNodes)f instanceof Element&&(a.delete(f),o.delete(f));for(let f of u.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?a.add(f):f instanceof Element&&r(f)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return ut.push(i),()=>{s.disconnect();for(let l of o){let u=ko.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),ko.delete(l)):ko.set(l,u-1)}i===ut[ut.length-1]?(ut.pop(),ut.length&&ut[ut.length-1].observe()):ut.splice(ut.indexOf(i),1)}}function Fu(){return Re(Ru)}function jt(){let e=Fu();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ts(){let e=Re(Eu);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Dt(){let e=Re($u);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function as(e){let t,a=Dt(),o=jt(),r=le({id:a.generateId(`item-${at()}`)},e),[n,s]=ie(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=O(),[u,f]=O(),[d,p]=O(),c=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>c().focusedKey()===m(),x=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};lm({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??d()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let y=ou({key:m,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),v=I=>{we(I,n.onPointerMove),I.pointerType==="mouse"&&(n.disabled?o.onItemLeave(I):(o.onItemEnter(I),I.defaultPrevented||(Ke(I.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},C=I=>{we(I,n.onPointerLeave),I.pointerType==="mouse"&&o.onItemLeave(I)},L=I=>{we(I,n.onPointerUp),!n.disabled&&I.button===0&&x()},b=I=>{if(we(I,n.onKeyDown),!I.repeat&&!n.disabled)switch(I.key){case"Enter":case" ":x();break}},T=w(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=w(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":g()?"":void 0})),$={isChecked:()=>n.checked,dataset:D,setLabelRef:p,generateId:Oo(()=>s.id),registerLabel:ct(l),registerDescription:ct(f)};return h(Eu.Provider,{value:$,get children(){return h(Se,Y({as:"div",ref(I){let M=Xe(H=>t=H,n.ref);typeof M=="function"&&M(I)},get tabIndex(){return y.tabIndex()},get"aria-checked"(){return T()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return y.dataKey()},get onPointerDown(){return Ne([n.onPointerDown,y.onPointerDown])},get onPointerUp(){return Ne([L,y.onPointerUp])},get onClick(){return Ne([n.onClick,y.onClick])},get onKeyDown(){return Ne([b,y.onKeyDown])},get onMouseDown(){return Ne([n.onMouseDown,y.onMouseDown])},get onFocus(){return Ne([n.onFocus,y.onFocus])},onPointerMove:v,onPointerLeave:C},D,s))}})}function Bu(e){let t=le({closeOnSelect:!1},e),[a,o]=ie(t,["checked","defaultChecked","onChange","onSelect"]),r=Yp({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return h(as,Y({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function Vr(){return Re(eh)}function Ou(e){let t=Dt(),a=jt(),o=Vr(),{direction:r}=ga(),n=le({id:t.generateId("trigger")},e),[s,i]=ie(n,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();o!==void 0&&(l=()=>t.value()??s.id,o.lastValue()===void 0&&o.setLastValue(l));let u=Ur(()=>a.triggerRef(),()=>"button"),f=w(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);G(kt(()=>o?.value(),y=>{f()&&y===l()&&a.triggerRef()?.focus()}));let d=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=y=>{we(y,s.onPointerDown),y.currentTarget.dataset.pointerType=y.pointerType,!s.disabled&&y.pointerType!=="touch"&&y.button===0&&d()},c=y=>{we(y,s.onClick),s.disabled||y.currentTarget.dataset.pointerType==="touch"&&d()},m=y=>{if(we(y,s.onKeyDown),!s.disabled){if(f())switch(y.key){case"Enter":case" ":return}switch(y.key){case"Enter":case" ":case Li.first(t.orientation()):y.stopPropagation(),y.preventDefault(),Vp(y.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case Li.last(t.orientation()):y.stopPropagation(),y.preventDefault(),a.open("last");break;case Eo.next(r(),t.orientation()):if(o===void 0)break;y.stopPropagation(),y.preventDefault(),o.nextMenu();break;case Eo.previous(r(),t.orientation()):if(o===void 0)break;y.stopPropagation(),y.preventDefault(),o.previousMenu();break}}},g=y=>{we(y,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},x=y=>{we(y,s.onFocus),o!==void 0&&y.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return G(()=>j(a.registerTriggerId(s.id))),h(Kn,Y({ref(y){let v=Xe(a.setTriggerRef,s.ref);typeof v=="function"&&v(y)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return a.isOpen()},get"aria-controls"(){return w(()=>!!a.isOpen())()?a.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&o?.value()===l()?!0:void 0},get tabIndex(){return o!==void 0?o.value()===l()||o.lastValue()===l()?0:-1:void 0},onPointerDown:p,onMouseOver:g,onClick:c,onKeyDown:m,onFocus:x,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function qu(){return Re(th)}function Nu(e){let t,a=Dt(),o=jt(),r=Vr(),n=qu(),{direction:s}=ga(),i=le({id:a.generateId(`content-${at()}`)},e),[l,u]=ie(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),f=0,d=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=Ug({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused(),orientation:()=>a.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);zg({trapFocus:()=>d()&&o.isOpen(),onMountAutoFocus:C=>{r===void 0&&l.onOpenAutoFocus?.(C)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let c=C=>{if(ft(C.currentTarget,C.target)&&(C.key==="Tab"&&o.isOpen()&&C.preventDefault(),r!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case Eo.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Eo.previous(s(),a.orientation()):if(C.currentTarget.hasAttribute("data-closed"))break;C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=C=>{l.onEscapeKeyDown?.(C),r?.setAutoFocusMenu(!1),o.close(!0)},g=C=>{l.onFocusOutside?.(C),a.isModal()&&C.preventDefault()},x=C=>{we(C,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},y=C=>{if(we(C,l.onPointerMove),C.pointerType!=="mouse")return;let L=C.target,b=f!==C.clientX;ft(C.currentTarget,L)&&b&&(o.setPointerDir(C.clientX>f?"right":"left"),f=C.clientX)};G(()=>j(o.registerContentId(l.id)));let v={ref:Xe(C=>{o.setContentRef(C),t=C},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:Ne([l.onKeyDown,p.onKeyDown,c]),onMouseDown:Ne([l.onMouseDown,p.onMouseDown]),onFocusIn:Ne([l.onFocusIn,p.onFocusIn]),onFocusOut:Ne([l.onFocusOut,p.onFocusOut]),onPointerEnter:x,onPointerMove:y,get"data-orientation"(){return a.orientation()}};return h(K,{get when(){return o.contentPresent()},get children(){return h(K,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return h(Se,Y({as:"div"},()=>o.dataset(),v,u))},get children(){return h(yu.Positioner,{get children(){return h(Og,Y({get disableOutsidePointerEvents(){return w(()=>!!d())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return qr({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:g,get onDismiss(){return o.close}},()=>o.dataset(),v,u))}})}})}})}function ah(e){let t,a=Dt(),o=jt(),[r,n]=ie(e,["ref"]);return Jg({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),h(Nu,Y({ref(s){let i=Xe(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function oh(){let e=Re(Uu);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function os(e){let t=Dt(),a=le({id:t.generateId(`group-${at()}`)},e),[o,r]=O(),n={generateId:Oo(()=>a.id),registerLabelId:ct(r)};return h(Uu.Provider,{value:n,get children(){return h(Se,Y({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function zu(e){let t=oh(),a=le({id:t.generateId("label")},e),[o,r]=ie(a,["id"]);return G(()=>j(t.registerLabelId(o.id))),h(Se,Y({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Hu(e){let t=jt(),a=le({children:"\u25BC"},e);return h(Se,Y({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function _u(e){return h(as,Y({role:"menuitem",closeOnSelect:!0},e))}function Vu(e){let t=ts(),a=le({id:t.generateId("description")},e),[o,r]=ie(a,["id"]);return G(()=>j(t.registerDescription(o.id))),h(Se,Y({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Gu(e){let t=ts(),a=le({id:t.generateId("indicator")},e),[o,r]=ie(a,["forceMount"]);return h(K,{get when(){return o.forceMount||t.isChecked()},get children(){return h(Se,Y({as:"div"},()=>t.dataset(),r))}})}function Ku(e){let t=ts(),a=le({id:t.generateId("label")},e),[o,r]=ie(a,["ref","id"]);return G(()=>j(t.registerLabel(o.id))),h(Se,Y({as:"div",ref(n){let s=Xe(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function Wu(e){let t=jt();return h(K,{get when(){return t.contentPresent()},get children(){return h(vn,e)}})}function rh(){let e=Re(ju);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Xu(e){let a=Dt().generateId(`radiogroup-${at()}`),o=le({id:a},e),[r,n]=ie(o,["value","defaultValue","onChange","disabled"]),[s,i]=No({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return h(ju.Provider,{value:l,get children(){return h(os,n)}})}function Qu(e){let t=rh(),a=le({closeOnSelect:!1},e),[o,r]=ie(a,["value","onSelect"]);return h(as,Y({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function nh(e,t,a){let o=e.split("-")[0],r=a.getBoundingClientRect(),n=[],s=t.clientX,i=t.clientY;switch(o){case"top":n.push([s,i+5]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]);break;case"right":n.push([s-5,i]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]);break;case"bottom":n.push([s,i-5]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]);break;case"left":n.push([s+5,i]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]);break}return n}function sh(e,t){return t?_p([e.clientX,e.clientY],t):!1}function Zu(e){let t=Dt(),a=Qi(),o=Fu(),r=Vr(),n=qu(),s=le({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ie(s,["open","defaultOpen","onOpenChange"]),u=0,f=null,d="right",[p,c]=O(),[m,g]=O(),[x,y]=O(),[v,C]=O(),[L,b]=O(!0),[T,D]=O(l.placement),[$,I]=O([]),[M,H]=O([]),{DomCollectionProvider:U}=sm({items:M,onItemsChange:H}),se=Cu({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:Z=>i.onOpenChange?.(Z)}),{present:pe}=ru({show:()=>t.forceMount()||se.isOpen(),element:()=>v()??null}),Le=wm({selectionMode:"none",dataSource:M}),ye=Z=>{b(Z),se.open()},ge=(Z=!1)=>{se.close(),Z&&o&&o.close(!0)},ve=Z=>{b(Z),se.toggle()},be=()=>{let Z=v();Z&&(Ke(Z),Le.selectionManager().setFocused(!0),Le.selectionManager().setFocusedKey(void 0))},Ee=()=>{n!=null?setTimeout(()=>be()):be()},Qe=Z=>{I(He=>[...He,Z]);let gt=o?.registerNestedMenu(Z);return()=>{I(He=>Tn(He,Z)),gt?.()}},Ae=Z=>d===f?.side&&sh(Z,f?.area),We=Z=>{Ae(Z)&&Z.preventDefault()},E=Z=>{Ae(Z)||Ee()},Me=Z=>{Ae(Z)&&Z.preventDefault()};_g({isDisabled:()=>!(o==null&&se.isOpen()&&t.isModal()),targets:()=>[v(),...$()].filter(Boolean)}),G(()=>{let Z=v();if(!Z||!o)return;let gt=o.registerNestedMenu(Z);j(()=>{gt()})}),G(()=>{o===void 0&&r?.registerMenu(t.value(),[v(),...$()])}),G(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(x()?.focus(),r.autoFocusMenu()&&ye(!0)):ge())}),G(()=>{o!==void 0||r===void 0||se.isOpen()&&r.setValue(t.value())}),j(()=>{o===void 0&&r?.unregisterMenu(t.value())});let ra={dataset:w(()=>({"data-expanded":se.isOpen()?"":void 0,"data-closed":se.isOpen()?void 0:""})),isOpen:se.isOpen,contentPresent:pe,nestedMenus:$,currentPlacement:T,pointerGraceTimeoutId:()=>u,autoFocus:L,listState:()=>Le,parentMenuContext:()=>o,triggerRef:x,contentRef:v,triggerId:p,contentId:m,setTriggerRef:y,setContentRef:C,open:ye,close:ge,toggle:ve,focusContent:Ee,onItemEnter:We,onItemLeave:E,onTriggerLeave:Me,setPointerDir:Z=>d=Z,setPointerGraceTimeoutId:Z=>u=Z,setPointerGraceIntent:Z=>f=Z,registerNestedMenu:Qe,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:ct(c),registerContentId:ct(g)};return h(U,{get children(){return h(Ru.Provider,{value:ra,get children(){return h(K,{when:n===void 0,get fallback(){return l.children},get children(){return h(yu,Y({anchorRef:x,contentRef:v,onCurrentPlacementChange:D},l))}})}})}})}function Yu(e){let{direction:t}=ga();return h(Zu,Y({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Ju(e){let t=jt(),a=Dt(),[o,r]=ie(e,["onFocusOutside","onKeyDown"]),{direction:n}=ga();return h(Nu,Y({onOpenAutoFocus:f=>{f.preventDefault()},onCloseAutoFocus:f=>{f.preventDefault()},onFocusOutside:f=>{o.onFocusOutside?.(f);let d=f.target;ft(t.triggerRef(),d)||t.close()},onKeyDown:f=>{we(f,o.onKeyDown);let d=ft(f.currentTarget,f.target),p=lh.close(n(),a.orientation()).includes(f.key),c=t.parentMenuContext()!=null;d&&p&&c&&(t.close(),Ke(t.triggerRef()))}},r))}function ed(e){let t,a=Dt(),o=jt(),r=le({id:a.generateId(`sub-trigger-${at()}`)},e),[n,s]=ie(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{Ve||(i&&window.clearTimeout(i),i=null)},{direction:u}=ga(),f=()=>n.id,d=()=>{let C=o.parentMenuContext();if(C==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return C.listState().selectionManager()},p=()=>o.listState().collection(),c=()=>d().focusedKey()===f(),m=ou({key:f,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=C=>{we(C,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},x=C=>{if(we(C,n.onPointerMove),C.pointerType!=="mouse")return;let L=o.parentMenuContext();if(L?.onItemEnter(C),!C.defaultPrevented){if(n.disabled){L?.onItemLeave(C);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),L?.onItemEnter(C),C.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Ke(C.currentTarget),L?.listState().selectionManager().setFocused(!0),L?.listState().selectionManager().setFocusedKey(f()))}},y=C=>{if(we(C,n.onPointerLeave),C.pointerType!=="mouse")return;l();let L=o.parentMenuContext(),b=o.contentRef();if(b){L?.setPointerGraceIntent({area:nh(o.currentPlacement(),C,b),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(L?.pointerGraceTimeoutId());let T=window.setTimeout(()=>{L?.setPointerGraceIntent(null)},300);L?.setPointerGraceTimeoutId(T)}else{if(L?.onTriggerLeave(C),C.defaultPrevented)return;L?.setPointerGraceIntent(null)}L?.onItemLeave(C)},v=C=>{we(C,n.onKeyDown),!C.repeat&&(n.disabled||ih.open(u(),a.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return G(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let C=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:f(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});j(C)}),G(kt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),C=>{j(()=>{window.clearTimeout(C),o.parentMenuContext()?.setPointerGraceIntent(null)})})),G(()=>j(o.registerTriggerId(n.id))),j(()=>{l()}),h(Se,Y({as:"div",ref(C){let L=Xe(b=>{o.setTriggerRef(b),t=b},n.ref);typeof L=="function"&&L(C)},get id(){return n.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return w(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return c()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return Ne([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return Ne([n.onPointerUp,m.onPointerUp])},get onClick(){return Ne([g,m.onClick])},get onKeyDown(){return Ne([v,m.onKeyDown])},get onMouseDown(){return Ne([n.onMouseDown,m.onMouseDown])},get onFocus(){return Ne([n.onFocus,m.onFocus])},onPointerMove:x,onPointerLeave:y},()=>o.dataset(),s))}function uh(e){let t=Vr(),a=`menu-${at()}`,o=le({id:a,modal:!0},e),[r,n]=ie(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Cu({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>r.onOpenChange?.(l)}),i={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??i.isModal(),forceMount:()=>r.forceMount??!1,generateId:Oo(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return h($u.Provider,{value:i,get children(){return h(Zu,Y({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function Gr(e){let t,a=le({orientation:"horizontal"},e),[o,r]=ie(a,["ref","orientation"]),n=Ur(()=>t,()=>"hr");return h(Se,Y({as:"hr",ref(s){let i=Xe(l=>t=l,o.ref);typeof i=="function"&&i(s)},get role(){return n()!=="hr"?"separator":void 0},get"aria-orientation"(){return o.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return o.orientation}},r))}function td(e){let t=Dt(),a=jt(),[o,r]=ie(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return h(ah,Y({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Ke(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function ad(e){let t=`dropdownmenu-${at()}`,a=le({id:t},e);return h(uh,a)}function Eh(){return ph()}function rd(){return mh()}function Do(){return gh()}function Ii(){return hh()}function wi(){return rs()}function $h(){return(()=>{var e=rs();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Bh(){return(()=>{var e=rs();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function Oh(){return xh()}function qh(){return yh()}function Nh(){return vh()}function Uh(){return Ch()}function zh(){return Lh()}function Hh(){return bh()}function _h(){return Ih()}function Vh(){return wh()}function Gh(){return Sh()}function Kh(e){return(()=>{var t=od(),a=t.firstChild;return V(()=>R(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Wh(){return kh()}function jh(){return Ph()}function Xh(e){return[h(K,{get when(){return e.checked},get children(){var t=od(),a=t.firstChild;return V(()=>R(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),h(K,{get when(){return!e.checked},get children(){var t=Mh(),a=t.firstChild;return V(()=>R(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function Qh(){return Ah()}function Zh(){return Dh()}function Yh(){return Th()}function Jh(){return Rh()}function Si(){let e=at();return(()=>{var t=Fh(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,f=u.firstChild,d=u.nextSibling,p=d.firstChild,c=d.nextSibling,m=c.nextSibling,g=m.firstChild,x=m.nextSibling,y=x.firstChild,v=x.nextSibling,C=v.nextSibling,L=C.firstChild,b=C.nextSibling,T=b.firstChild,D=b.nextSibling,$=D.nextSibling,I=$.firstChild,M=$.nextSibling,H=M.firstChild,U=M.nextSibling,se=U.nextSibling,pe=se.firstChild,Le=se.nextSibling,ye=Le.firstChild,ge=Le.nextSibling,ve=ge.nextSibling,be=ve.firstChild,Ee=ve.nextSibling,Qe=Ee.firstChild,Ae=Ee.nextSibling,We=Ae.firstChild,E=We.nextSibling,Me=E.nextSibling,ue=Me.nextSibling,ra=ue.nextSibling,Z=Ae.nextSibling,gt=Z.firstChild,He=Z.nextSibling,Ba=He.firstChild,lt=He.nextSibling,na=lt.firstChild,Ca=na.nextSibling,Bt=Ca.nextSibling,It=Bt.firstChild,Ot=It.nextSibling,q=Ot.nextSibling,he=q.nextSibling,je=he.nextSibling,Ce=je.nextSibling,me=Ce.nextSibling,Ie=me.nextSibling,Oe=Ie.nextSibling,ce=Oe.nextSibling,qt=ce.nextSibling,Nt=qt.nextSibling,ht=lt.nextSibling,La=ht.firstChild,Ut=ht.nextSibling,ba=Ut.firstChild,zt=Ut.nextSibling,sa=zt.firstChild,or=sa.nextSibling,so=zt.nextSibling,rr=so.firstChild,Oa=so.nextSibling,nr=Oa.firstChild,lo=Oa.nextSibling,io=lo.firstChild,uo=io.nextSibling,qa=uo.nextSibling,bs=qa.nextSibling,Is=bs.nextSibling,ws=Is.nextSibling,Ss=ws.nextSibling,ks=Ss.nextSibling,Ps=ks.nextSibling,Ms=Ps.nextSibling,As=Ms.nextSibling,Ds=As.nextSibling,Ts=Ds.nextSibling,Rs=Ts.nextSibling,Fs=Rs.nextSibling,Es=Fs.nextSibling,$s=Es.nextSibling,xf=$s.nextSibling;return R(a,"id",`a-${e}`),R(o,"fill",`url(#a-${e})`),R(n,"id",`am-${e}`),R(s,"id",`b-${e}`),R(i,"filter",`url(#am-${e})`),R(l,"mask",`url(#b-${e})`),R(f,"id",`ah-${e}`),R(d,"id",`k-${e}`),R(p,"filter",`url(#ah-${e})`),R(c,"mask",`url(#k-${e})`),R(g,"id",`ae-${e}`),R(x,"id",`j-${e}`),R(y,"filter",`url(#ae-${e})`),R(v,"mask",`url(#j-${e})`),R(L,"id",`ai-${e}`),R(b,"id",`i-${e}`),R(T,"filter",`url(#ai-${e})`),R(D,"mask",`url(#i-${e})`),R(I,"id",`aj-${e}`),R(M,"id",`h-${e}`),R(H,"filter",`url(#aj-${e})`),R(U,"mask",`url(#h-${e})`),R(pe,"id",`ag-${e}`),R(Le,"id",`g-${e}`),R(ye,"filter",`url(#ag-${e})`),R(ge,"mask",`url(#g-${e})`),R(be,"id",`af-${e}`),R(Ee,"id",`f-${e}`),R(Qe,"filter",`url(#af-${e})`),R(Ae,"mask",`url(#f-${e})`),R(ue,"id",`m-${e}`),R(ra,"fill",`url(#m-${e})`),R(gt,"id",`ak-${e}`),R(He,"id",`e-${e}`),R(Ba,"filter",`url(#ak-${e})`),R(lt,"mask",`url(#e-${e})`),R(na,"id",`n-${e}`),R(Ca,"fill",`url(#n-${e})`),R(It,"id",`r-${e}`),R(Ot,"fill",`url(#r-${e})`),R(q,"id",`s-${e}`),R(he,"fill",`url(#s-${e})`),R(je,"id",`q-${e}`),R(Ce,"fill",`url(#q-${e})`),R(me,"id",`p-${e}`),R(Ie,"fill",`url(#p-${e})`),R(Oe,"id",`o-${e}`),R(ce,"fill",`url(#o-${e})`),R(qt,"id",`l-${e}`),R(Nt,"fill",`url(#l-${e})`),R(La,"id",`al-${e}`),R(Ut,"id",`d-${e}`),R(ba,"filter",`url(#al-${e})`),R(zt,"mask",`url(#d-${e})`),R(sa,"id",`u-${e}`),R(or,"fill",`url(#u-${e})`),R(rr,"id",`ad-${e}`),R(Oa,"id",`c-${e}`),R(nr,"filter",`url(#ad-${e})`),R(lo,"mask",`url(#c-${e})`),R(io,"id",`t-${e}`),R(uo,"fill",`url(#t-${e})`),R(qa,"id",`v-${e}`),R(bs,"stroke",`url(#v-${e})`),R(Is,"id",`aa-${e}`),R(ws,"stroke",`url(#aa-${e})`),R(Ss,"id",`w-${e}`),R(ks,"stroke",`url(#w-${e})`),R(Ps,"id",`ac-${e}`),R(Ms,"stroke",`url(#ac-${e})`),R(As,"id",`ab-${e}`),R(Ds,"stroke",`url(#ab-${e})`),R(Ts,"id",`y-${e}`),R(Rs,"stroke",`url(#y-${e})`),R(Fs,"id",`x-${e}`),R(Es,"stroke",`url(#x-${e})`),R($s,"id",`z-${e}`),R(xf,"stroke",`url(#z-${e})`),t})()}function d0(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function Ai(e){return Symbol.iterator in e}function da(e){let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?eo(a):Ja(a)),r=W().client,[n,s]=O((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=O([]),f=w(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&Ai(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,g])=>({label:m,value:g})):Array.from(e.value,(m,g)=>({label:g.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,g])=>({label:m,value:g})):[]),d=w(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&Ai(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=w(()=>d0(f(),100)),c=e.dataPath??[];return(()=>{var m=Po();return S(m,h(K,{get when(){return p().length},get children(){return[(()=>{var g=s0(),x=g.firstChild,y=x.firstChild,v=y.nextSibling,C=v.nextSibling,L=C.nextSibling,b=L.firstChild;return x.$$click=()=>i(),S(x,h(Pi,{get expanded(){return n()}}),y),S(v,()=>e.label),S(L,()=>String(d()).toLowerCase()==="iterable"?"(Iterable) ":"",b),S(L,()=>f().length,b),S(L,()=>f().length>1?"items":"item",null),S(g,h(K,{get when(){return e.editable},get children(){var T=Po();return S(T,h(f0,{get value(){return e.value}}),null),S(T,h(K,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return h(Mi,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),S(T,h(K,{get when(){return d()==="array"&&e.activeQuery!==void 0},get children(){return h(c0,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),S(T,h(K,{get when(){return w(()=>!!e.onEdit)()&&!Cn(e.value).meta},get children(){var D=n0();return D.$$click=()=>{e.onEdit?.()},S(D,h(Gh,{})),V(()=>F(D,o().actionButton)),D}}),null),V(()=>F(T,o().actions)),T}}),null),V(T=>{var D=o().expanderButtonContainer,$=o().expanderButton,I=o().info;return D!==T.e&&F(g,T.e=D),$!==T.t&&F(x,T.t=$),I!==T.a&&F(L,T.a=I),T},{e:void 0,t:void 0,a:void 0}),g})(),h(K,{get when(){return n()},get children(){return[h(K,{get when(){return p().length===1},get children(){var g=Po();return S(g,h(Mr,{get each(){return f()},by:x=>x.label,children:x=>h(da,{get defaultExpanded(){return e.defaultExpanded},get label(){return x().label},get value(){return x().value},get editable(){return e.editable},get dataPath(){return[...c,x().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()==="array"||d()==="Iterable"||d()==="object"}})})),V(()=>F(g,o().subEntry)),g}}),h(K,{get when(){return p().length>1},get children(){var g=Po();return S(g,h(dl,{get each(){return p()},children:(x,y)=>(()=>{var v=u0(),C=v.firstChild,L=C.firstChild,b=L.firstChild,T=b.nextSibling,D=T.nextSibling,$=D.nextSibling;return $.nextSibling,L.$$click=()=>u(I=>I.includes(y)?I.filter(M=>M!==y):[...I,y]),S(L,h(Pi,{get expanded(){return l().includes(y)}}),b),S(L,y*100,T),S(L,y*100+100-1,$),S(C,h(K,{get when(){return l().includes(y)},get children(){var I=Po();return S(I,h(Mr,{get each(){return x()},by:M=>M.label,children:M=>h(da,{get defaultExpanded(){return e.defaultExpanded},get label(){return M().label},get value(){return M().value},get editable(){return e.editable},get dataPath(){return[...c,M().label]},get activeQuery(){return e.activeQuery}})})),V(()=>F(I,o().subEntry)),I}}),null),V(I=>{var M=o().entry,H=o().expanderButton;return M!==I.e&&F(C,I.e=M),H!==I.t&&F(L,I.t=H),I},{e:void 0,t:void 0}),v})()})),V(()=>F(g,o().subEntry)),g}})]}})]}}),null),S(m,h(K,{get when(){return p().length===0},get children(){var g=i0(),x=g.firstChild,y=x.firstChild;return S(x,()=>e.label,y),S(g,h(K,{get when(){return w(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number"||d()==="boolean")},get fallback(){return(()=>{var v=ki();return S(v,()=>Io(e.value)),V(()=>F(v,o().value)),v})()},get children(){return[h(K,{get when(){return w(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number")},get children(){var v=l0();return v.addEventListener("change",C=>{let L=e.activeQuery.state.data,b=la(L,c,d()==="number"?C.target.valueAsNumber:C.target.value);r.setQueryData(e.activeQuery.queryKey,b)}),V(C=>{var L=d()==="number"?"number":"text",b=N(o().value,o().editableInput);return L!==C.e&&R(v,"type",C.e=L),b!==C.t&&F(v,C.t=b),C},{e:void 0,t:void 0}),V(()=>v.value=e.value),v}}),h(K,{get when(){return d()==="boolean"},get children(){var v=ki();return S(v,h(p0,{get activeQuery(){return e.activeQuery},dataPath:c,get value(){return e.value}}),null),S(v,()=>Io(e.value),null),V(()=>F(v,N(o().value,o().actions,o().editableInput))),v}})]}}),null),S(g,h(K,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return h(Mi,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),V(v=>{var C=o().row,L=o().label;return C!==v.e&&F(g,v.e=C),L!==v.t&&F(x,v.t=L),v},{e:void 0,t:void 0}),g}}),null),V(()=>F(m,o().entry)),m})()}var Oc,qc,Ol,Nc,Uc,A,Mn,_c,$r,Kc,ql,it,Wc,Aa,Nn,jc,An,Br,Xc,Ri,Qc,Fi,Zc,Nl,Yc,$o,Ei,Or,Un,Bo,$i,Jc,ep,Je,_l,lp,ip,up,dp,Vl,Ma,_t,Bi,fp,cp,Gl,Kl,In,bp,zn,Sr,zi,$p,_n,Bp,So,Zl,Vi,Gp,Gi,Jp,zr,Xi,um,dm,Fn,Ao,mm,wn,Vt,Im,oi,Ge,Sm,km,ru,Ar,nu,En,Kt,ot,$m,Bm,qm,Nm,Pt,nt,Dr,kr,ca,Um,zm,Wm,jm,Xm,Qm,Ym,Jm,eg,og,mg,xu,yg,vg,Cg,Lg,bg,Ig,wg,Yn,Sg,On,di,kg,Tg,yu,ci,pi,vu,dt,Lu,Iu,qg,Ng,kn,Pn,mi,gi,Hg,ko,ut,Pr,Gg,hi,Kg,Wg,jg,xi,yi,Xg,Qg,Zg,vi,Ci,qn,Yg,Jg,Ru,Eu,$u,eh,Eo,Li,th,Uu,ju,lh,bi,ih,dh,fh,Fe,ch,k,ph,mh,gh,hh,rs,xh,yh,vh,Ch,Lh,bh,Ih,wh,Sh,od,kh,Ph,Mh,Ah,Dh,Th,Rh,Fh,e0,t0,a0,o0,r0,n0,Po,s0,l0,ki,i0,u0,Pi,f0,c0,Mi,p0,nd,Ja,eo,m0,Ho,g0,h0,x0,y0,v0,C0,L0,b0,I0,w0,S0,k0,P0,M0,A0,D0,T0,R0,F0,Di,E0,sd,$0,B0,O0,q0,N0,U0,z0,H0,_0,V0,rt,Kr,fa,ld,yt,ns,Ka,Ti,id,G0,ud,K0,Wr,W0,j0,X0,Q0,Gt,Z0,Y0,Fr,J0,ze,Er,ex,xt,dd,pt,mt,ss=fo(()=>{"use strict";P();wo();Oc=!Ve,qc=Oc&&!!cl,Ol=()=>{},Nc=e=>e!=null,Uc=e=>e.filter(Nc);A=e=>typeof e=="function"&&!e.length?e():e,Mn=e=>Array.isArray(e)?e:e?[e]:[];_c=qc?e=>mr()?j(e):e:j;$r=Gc,Kc=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),ql=e=>{if(!e)return"";let t="";for(let a in e){if(!e.hasOwnProperty(a))continue;let o=e[a];t+=o instanceof Date?`; ${a}=${o.toUTCString()}`:typeof o=="boolean"?`; ${a}`:`; ${a}=${o}`}return t},it=Kc({_cookies:[globalThis.document,"cookie"],getItem:e=>it._cookies[0][it._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=it.getItem(e);it._cookies[0][it._cookies[1]]=`${e}=${t}${ql(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:it});window.dispatchEvent(r)},removeItem:e=>{it._cookies[0][it._cookies[1]]=`${e}=deleted${ql({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return it._cookies[0][it._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return it._cookies[0][it._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),Wc=1024,Aa=796,Nn=700,jc="bottom-right",An="bottom",Br="system",Xc=!1,Ri=500,Qc=500,Fi=500,Zc=Object.keys(br)[0],Nl=1,Yc=Object.keys(Ir)[0],$o=qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Ei=qe(void 0),Or=e=>{let[t,a]=O(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",pl(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(W().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let f=[...u.cssRules].map(m=>m.cssText).join(""),d=document.createElement("style"),p=u.ownerNode,c="";p&&"id"in p&&(c=p.id),c&&d.setAttribute("id",c),d.textContent=f,l.document.head.appendChild(d)}catch{let d=document.createElement("link");if(u.href==null)return;d.rel="stylesheet",d.type=u.type,d.media=u.media.toString(),d.href=u.href,l.document.head.appendChild(d)}}),bo(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};G(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||Qc))}),G(()=>{let s=(W().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(W().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),j(()=>{l.disconnect()})}});let n=w(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return h(Ei.Provider,{value:n,get children(){return e.children}})},Un=()=>w(()=>{let t=Re(Ei);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Bo=qe(()=>"dark");$i={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z"},Jc=Object.keys($i).join("|"),ep=new RegExp(Jc,"g");Je={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};_l={maxRanking:1/0,minRanking:-1/0};lp={data:""},ip=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||lp,up=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dp=/\/\*[^]*?\*\/| +/g,Vl=/\n+/g,Ma=(e,t)=>{let a="",o="",r="";for(let n in e){let s=e[n];n[0]=="@"?n[1]=="i"?a=n+" "+s+";":o+=n[1]=="f"?Ma(s,n):n+"{"+Ma(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=Ma(s,t?t.replace(/([^,])+/g,i=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):n):s!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Ma.p?Ma.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},_t={},Bi=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Bi(e[a]);return t}return e},fp=(e,t,a,o,r)=>{let n=Bi(e),s=_t[n]||(_t[n]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(n));if(!_t[s]){let l=n!==e?e:(u=>{let f,d,p=[{}];for(;f=up.exec(u.replace(dp,""));)f[4]?p.shift():f[3]?(d=f[3].replace(Vl," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(Vl," ").trim();return p[0]})(e);_t[s]=Ma(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&_t.g?_t.g:null;return a&&(_t.g=_t[s]),((l,u,f,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(_t[s],t,o,i),s},cp=(e,t,a)=>e.reduce((o,r,n)=>{let s=t[n];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":Ma(i,""):i===!1?"":i}return o+r+(s??"")},"");J.bind({g:1});J.bind({k:1});Gl=Ve?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Kl=e=>{let t=gp(e);return pp(mp(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)hp(s,e,l);let i=[];for(let l of n)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&i.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:u,rect:f}of i)if(u.isConnected){let d=u.getBoundingClientRect(),p=f.left-d.left,c=f.top-d.top;(p||c)&&(u.style.transform=`translate(${p}px, ${c}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let f=function(d){(d.target===u||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",f)}});for(let l of o)xp(s,e,l,()=>r([l]))}})},In=Symbol("fallback");bp=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;zn=(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))(zn||{});Sr=null;zi=["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'])"],$p=[...zi,'[tabindex]:not([tabindex="-1"]):not([disabled])'],_n=zi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Bp=$p.join(':not([hidden]):not([tabindex="-1"]),');So=new Map,Zl=new Set;typeof document<"u"&&(document.readyState!=="loading"?Yl():document.addEventListener("DOMContentLoaded",Yl));Vi={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"};Gp=["id","name","validationState","required","disabled","readOnly"];Gi=qe();Jp=Object.defineProperty,zr=(e,t)=>{for(var a in t)Jp(e,a,{get:t[a],enumerable:!0})},Xi=qe();um=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),dm=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Fn=eu(),Ao=new Set;mm=qe();wn=new Map;Vt=class tu extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof tu?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Im=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;let 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;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index<e.index;(!e||o)&&(e=a)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index>e.index;(!e||o)&&(e=a)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let a=this.state.selectedKeys(),o=a.anchorKey||t,r=new Vt(a,o,t);for(let n of this.getKeyRange(o,a.currentKey||t))r.delete(n);for(let n of this.getKeyRange(t,o))this.canSelectItem(n)&&r.add(n);this.state.setSelectedKeys(r)}getKeyRange(e,t){let a=this.collection().getItem(e),o=this.collection().getItem(t);return a&&o?a.index!=null&&o.index!=null&&a.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let a=[],o=e;for(;o!=null;){let r=this.collection().getItem(o);if(r&&r.type==="item"&&a.push(o),o===t)return a;o=this.collection().getKeyAfter(o)}return[]}getKey(e){let 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}let t=this.getKey(e);if(t==null)return;let a=new Vt(this.state.selectedKeys());a.has(t)?a.delete(t):this.canSelectItem(t)&&(a.add(t),a.anchorKey=t,a.currentKey=t),!(this.disallowEmptySelection()&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let a=this.canSelectItem(t)?new Vt([t],t,t):new Vt;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new Vt;for(let a of e){let o=this.getKey(a);if(o!=null&&(t.add(o),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Vt)}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;let t=this.selectedKeys();if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;for(let a of t)if(!e.has(a))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(a=>{for(;a!=null;){if(this.canSelectItem(a)){let o=this.collection().getItem(a);if(!o)continue;o.type==="item"&&e.push(a)}a=this.collection().getKeyAfter(a)}})(this.collection().getFirstKey()),e}},oi=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,a=0;for(let[o,r]of this.keyMap)t?(t.nextKey=o,r.prevKey=t.key):(this.firstKey=o,r.prevKey=void 0),r.type==="item"&&(r.index=a++),t=r,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){let t=[...this.getKeys()];return this.getItem(t[e])}};Ge=e=>typeof e=="function"?e():e,Sm=e=>{let t=w(()=>{let s=Ge(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=O(Ge(e.show)?"present":"hidden"),n="none";return G(s=>{let i=Ge(e.show);return xe(()=>{if(s===i)return i;let l=n,u=a();i?r("present"):u==="none"||t()?.display==="none"?r("hidden"):r(s===!0&&l!==u?"hiding":"hidden")}),i}),G(()=>{let s=Ge(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let d=a().includes(u.animationName);u.target===s&&d&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),j(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},km=Sm,ru=km,Ar="data-kb-top-layer",En=!1,Kt=[];ot={layers:Kt,isTopMostLayer:Mm,hasPointerBlockingLayer:Gn,isBelowPointerBlockingLayer:lu,addLayer:Dm,removeLayer:Tm,indexOf:To,find:Pm,assignPointerEventToLayers:Rm,disableBodyPointerEvents:Fm,restoreBodyPointerEvents:Em},$m={};zr($m,{Button:()=>qm,Root:()=>Kn});Bm=["button","color","file","image","reset","submit"];qm=Kn,Nm=["top","right","bottom","left"],Pt=Math.min,nt=Math.max,Dr=Math.round,kr=Math.floor,ca=e=>({x:e,y:e}),Um={left:"right",right:"left",bottom:"top",top:"bottom"},zm={start:"end",end:"start"};Wm=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=ri(u,o,l),p=o,c={},m=0;for(let g=0;g<i.length;g++){let{name:x,fn:y}=i[g],{x:v,y:C,data:L,reset:b}=await y({x:f,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:c,rects:u,platform:s,elements:{reference:e,floating:t}});f=v??f,d=C??d,c={...c,[x]:{...c[x],...L}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=ri(u,p,l)),g=-1)}return{x:f,y:d,placement:p,strategy:r,middlewareData:c}};jm=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:f=0}=Ra(e,t)||{};if(u==null)return{};let d=uu(f),p={x:a,y:o},c=jn(r),m=Wn(c),g=await s.getDimensions(u),x=c==="y",y=x?"top":"left",v=x?"bottom":"right",C=x?"clientHeight":"clientWidth",L=n.reference[m]+n.reference[c]-p[c]-n.floating[m],b=p[c]-n.reference[c],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=T?T[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(T)))&&(D=i.floating[C]||n.floating[m]);let $=L/2-b/2,I=D/2-g[m]/2-1,M=Pt(d[y],I),H=Pt(d[v],I),U=M,se=D-g[m]-H,pe=D/2-g[m]/2+$,Le=$n(U,pe,se),ye=!l.arrow&&Za(r)!=null&&pe!==Le&&n.reference[m]/2-(pe<U?M:H)-g[m]/2<0,ge=ye?pe<U?pe-U:pe-se:0;return{[c]:p[c]+ge,data:{[c]:Le,centerOffset:pe-Le-ge,...ye&&{alignmentOffset:ge}},reset:ye}}}),Xm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=Ra(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let y=pa(r),v=Da(i),C=pa(i)===i,L=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=p||(C||!g?[Tr(i)]:_m(i)),T=m!=="none";!p&&T&&b.push(...Gm(i,g,m,L));let D=[i,...b],$=await Ro(t,x),I=[],M=((o=n.flip)==null?void 0:o.overflows)||[];if(f&&I.push($[y]),d){let pe=Hm(r,s,L);I.push($[pe[0]],$[pe[1]])}if(M=[...M,{placement:r,overflows:I}],!I.every(pe=>pe<=0)){var H,U;let pe=(((H=n.flip)==null?void 0:H.index)||0)+1,Le=D[pe];if(Le)return{data:{index:pe,overflows:M},reset:{placement:Le}};let ye=(U=M.filter(ge=>ge.overflows[0]<=0).sort((ge,ve)=>ge.overflows[1]-ve.overflows[1])[0])==null?void 0:U.placement;if(!ye)switch(c){case"bestFit":{var se;let ge=(se=M.filter(ve=>{if(T){let be=Da(ve.placement);return be===v||be==="y"}return!0}).map(ve=>[ve.placement,ve.overflows.filter(be=>be>0).reduce((be,Ee)=>be+Ee,0)]).sort((ve,be)=>ve[1]-be[1])[0])==null?void 0:se[0];ge&&(ye=ge);break}case"initialPlacement":ye=i;break}if(r!==ye)return{reset:{placement:ye}}}return{}}}};Qm=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=Ra(e,t);switch(o){case"referenceHidden":{let n=await Ro(t,{...r,elementContext:"reference"}),s=ni(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:si(s)}}}case"escaped":{let n=await Ro(t,{...r,altBoundary:!0}),s=ni(n,a.floating);return{data:{escapedOffsets:s,escaped:si(s)}}}default:return{}}}}};Ym=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await Zm(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},Jm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...l}=Ra(e,t),u={x:a,y:o},f=await Ro(t,l),d=Da(pa(r)),p=iu(d),c=u[p],m=u[d];if(n){let x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=c+f[x],C=c-f[y];c=$n(v,c,C)}if(s){let x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=m+f[x],C=m-f[y];m=$n(v,m,C)}let g=i.fn({...t,[p]:c,[d]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},eg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=Ra(e,t),l=await Ro(t,i),u=pa(a),f=Za(a),d=Da(a)==="y",{width:p,height:c}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=f===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=f==="end"?"top":"bottom");let x=c-l.top-l.bottom,y=p-l.left-l.right,v=Pt(c-l[m],x),C=Pt(p-l[g],y),L=!t.middlewareData.shift,b=v,T=C;if(d?T=f||L?Pt(C,y):y:b=f||L?Pt(v,x):x,L&&!f){let $=nt(l.left,0),I=nt(l.right,0),M=nt(l.top,0),H=nt(l.bottom,0);d?T=p-2*($!==0||I!==0?$+I:nt(l.left,l.right)):b=c-2*(M!==0||H!==0?M+H:nt(l.top,l.bottom))}await s({...t,availableWidth:T,availableHeight:b});let D=await r.getDimensions(n.floating);return p!==D.width||c!==D.height?{reset:{rects:!0}}:{}}}};og=ca(0);mg=async function(e){let t=this.getOffsetParent||hu,a=this.getDimensions,o=await a(e.floating);return{reference:pg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};xu={convertOffsetParentRelativeRectToViewportRelativeRect:ng,getDocumentElement:Wt,getClippingRect:fg,getOffsetParent:hu,getElementRects:mg,getClientRects:sg,getDimensions:cg,getScale:Xa,isElement:vt,isRTL:gg};yg=Ym,vg=Jm,Cg=Xm,Lg=eg,bg=Qm,Ig=jm,wg=(e,t,a)=>{let o=new Map,r={platform:xu,...a},n={...r.platform,_c:o};return Wm(e,t,{...r,platform:n})},Yn=qe();Sg=z('<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">'),On=30,di=On/2,kg={top:180,right:-90,bottom:0,left:90};Tg={top:"bottom",right:"left",bottom:"top",left:"right"};yu=Object.assign(Fg,{Arrow:es,Context:Yn,usePopperContext:Jn,Positioner:Mg});ci="interactOutside.pointerDownOutside",pi="interactOutside.focusOutside";vu=qe();dt={};zr(dt,{Description:()=>Ki,ErrorMessage:()=>Wi,Item:()=>wu,ItemControl:()=>Su,ItemDescription:()=>ku,ItemIndicator:()=>Pu,ItemInput:()=>Mu,ItemLabel:()=>Au,Label:()=>Du,RadioGroup:()=>qg,Root:()=>Tu});Lu=qe();Iu=qe();qg=Object.assign(Tu,{Description:Ki,ErrorMessage:Wi,Item:wu,ItemControl:Su,ItemDescription:ku,ItemIndicator:Pu,ItemInput:Mu,ItemLabel:Au,Label:Du}),Ng=class{collection;ref;collator;constructor(e,t,a){this.collection=e,this.ref=t,this.collator=a}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let 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;){let 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){let t=this.ref?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.max(0,a.offsetTop+a.offsetHeight-t.offsetHeight),r=e;for(;r&&a&&a.offsetTop>o;)r=this.getKeyAbove(r),a=r!=null?this.getItem(r):null;return r}getKeyPageBelow(e){let t=this.ref?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.min(t.scrollHeight,a.offsetTop-a.offsetHeight+t.offsetHeight),r=e;for(;r&&a&&a.offsetTop<o;)r=this.getKeyBelow(r),a=r!=null?this.getItem(r):null;return r}getKeyForSearch(e,t){let a=this.collator?.();if(!a)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){let r=this.collection().getItem(o);if(r){let n=r.textValue.slice(0,e.length);if(r.textValue&&a.compare(n,e)===0)return o}o=this.getKeyBelow(o)}}};kn="focusScope.autoFocusOnMount",Pn="focusScope.autoFocusOnUnmount",mi={bubbles:!1,cancelable:!0},gi={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Tn(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Tn(this.stack,e),this.active()?.resume()}};Hg="data-live-announcer";ko=new WeakMap,ut=[];Pr=new Map,Gg=e=>{G(()=>{let t=Ge(e.style)??{},a=Ge(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Pr.get(e.key);r?r.activeCount++:Pr.set(e.key,{activeCount:1,originalStyles:o,properties:a.map(n=>n.key)}),Object.assign(e.element.style,e.style);for(let n of a)e.element.style.setProperty(n.key,n.value);j(()=>{let n=Pr.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Pr.delete(e.key);for(let[s,i]of Object.entries(n.originalStyles))e.element.style[s]=i;for(let s of n.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},hi=Gg,Kg=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Wg=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},jg=(e,t,a)=>{let o=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,r=e,n=0,s=0,i=!1;do{let[l,u,f]=Kg(r,t),d=f-l-o*u;(u!==0||d!==0)&&Wg(r,t)&&(n+=d,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[xi,yi]=O([]),Xg=e=>xi().indexOf(e)===xi().length-1,Qg=e=>{let t=Y({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=at(),o=[0,0],r=null,n=null;G(()=>{Ge(t.enabled)&&(yi(u=>[...u,a]),j(()=>{yi(u=>u.filter(f=>f!==a))}))}),G(()=>{if(!Ge(t.enabled)||!Ge(t.hideScrollbar))return;let{body:u}=document,f=window.innerWidth-u.offsetWidth;if(Ge(t.preventScrollbarShift)){let d={overflow:"hidden"},p=[];f>0&&(Ge(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${f}px)`:d.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${f}px)`,p.push({key:"--scrollbar-width",value:`${f}px`}));let c=window.scrollY,m=window.scrollX;hi({key:"prevent-scroll",element:u,style:d,properties:p,cleanup:()=>{Ge(t.restoreScrollPosition)&&f>0&&window.scrollTo(m,c)}})}else hi({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),G(()=>{!Xg(a)||!Ge(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),j(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=vi(u),r=null,n=null},i=u=>{let f=u.target,d=Ge(t.element),p=Zg(u),c=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=c==="x"?p[0]:p[1],g=Ci(f,c,m,d),x;d&&qn(d,f)?x=!g:x=!0,x&&u.cancelable&&u.preventDefault()},l=u=>{let f=Ge(t.element),d=u.target,p;if(u.touches.length===2)p=!Ge(t.allowPinchZoom);else{if(r==null||n===null){let c=vi(u).map((g,x)=>o[x]-g),m=Math.abs(c[0])>Math.abs(c[1])?"x":"y";r=m,n=m==="x"?c[0]:c[1]}if(d.type==="range")p=!1;else{let c=Ci(d,r,n,f);f&&qn(f,d)?p=!c:p=!0}}p&&u.cancelable&&u.preventDefault()}},Zg=e=>[e.deltaX,e.deltaY],vi=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Ci=(e,t,a,o)=>{let r=o!==null&&qn(o,e),[n,s]=jg(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},qn=(e,t)=>{if(e.contains(t))return!0;let a=t;for(;a;){if(a===e)return!0;a=a._$host??a.parentElement}return!1},Yg=Qg,Jg=Yg,Ru=qe();Eu=qe();$u=qe();eh=qe();Eo={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Eo.next(e==="ltr"?"rtl":"ltr",t)},Li={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};th=qe();Uu=qe();ju=qe();lh={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};bi=["Enter"," "],ih={open:(e,t)=>e==="ltr"?[...bi,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...bi,t==="horizontal"?"ArrowLeft":"ArrowUp"]};dh={};zr(dh,{Root:()=>Gr,Separator:()=>fh});fh=Gr,Fe={};zr(Fe,{Arrow:()=>es,CheckboxItem:()=>Bu,Content:()=>td,DropdownMenu:()=>ch,Group:()=>os,GroupLabel:()=>zu,Icon:()=>Hu,Item:()=>_u,ItemDescription:()=>Vu,ItemIndicator:()=>Gu,ItemLabel:()=>Ku,Portal:()=>Wu,RadioGroup:()=>Xu,RadioItem:()=>Qu,Root:()=>ad,Separator:()=>Gr,Sub:()=>Yu,SubContent:()=>Ju,SubTrigger:()=>ed,Trigger:()=>Ou});ch=Object.assign(ad,{Arrow:es,CheckboxItem:Bu,Content:td,Group:os,GroupLabel:zu,Icon:Hu,Item:_u,ItemDescription:Vu,ItemIndicator:Gu,ItemLabel:Ku,Portal:Wu,RadioGroup:Xu,RadioItem:Qu,Separator:Gr,Sub:Yu,SubContent:Ju,SubTrigger:ed,Trigger:Ou}),k={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:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.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)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},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"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},ph=z('<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>'),mh=z('<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>'),gh=z('<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>'),hh=z('<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>'),rs=z('<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>'),xh=z('<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>'),yh=z('<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>'),vh=z('<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>'),Ch=z('<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">'),Lh=z('<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">'),bh=z('<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>'),Ih=z('<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>'),wh=z('<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>'),Sh=z('<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>'),od=z('<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>'),kh=z('<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>'),Ph=z('<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>'),Mh=z('<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>'),Ah=z('<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>'),Dh=z('<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>'),Th=z('<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>'),Rh=z('<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>'),Fh=z('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');e0=z('<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>'),t0=z('<button title="Copy object to clipboard">'),a0=z('<button title="Remove all items"aria-label="Remove all items">'),o0=z('<button title="Delete item"aria-label="Delete item">'),r0=z('<button title="Toggle value"aria-label="Toggle value">'),n0=z('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Po=z("<div>"),s0=z("<div><button> <span></span> <span> "),l0=z("<input>"),ki=z("<span>"),i0=z("<div><span>:"),u0=z("<div><div><button> [<!>...<!>]");Pi=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?eo(a):Ja(a));return(()=>{var r=e0();return V(()=>F(r,N(o().expander,a`
|
|
2
2
|
transform: rotate(${e.expanded?90:0}deg);
|
|
3
|
-
`,e.expanded&&
|
|
3
|
+
`,e.expanded&&a`
|
|
4
4
|
& svg {
|
|
5
5
|
top: -1px;
|
|
6
6
|
}
|
|
7
|
-
`))),
|
|
8
|
-
width: ${
|
|
9
|
-
height: ${
|
|
10
|
-
`))),
|
|
7
|
+
`))),r})()},f0=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?eo(a):Ja(a)),[r,n]=O("NoCopy");return(()=>{var s=t0();return xn(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(Tl(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),S(s,h(fl,{get children(){return[h(Cr,{get when(){return r()==="NoCopy"},get children(){return h(Vh,{})}}),h(Cr,{get when(){return r()==="SuccessCopy"},get children(){return h(Kh,{get theme(){return t()}})}}),h(Cr,{get when(){return r()==="ErrorCopy"},get children(){return h(Wh,{})}})]}})),V(i=>{var l=o().actionButton,u=`${r()==="NoCopy"?"Copy object to clipboard":r()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return l!==i.e&&F(s,i.e=l),u!==i.t&&R(s,"aria-label",i.t=u),i},{e:void 0,t:void 0}),s})()},c0=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?eo(a):Ja(a)),r=W().client;return(()=>{var n=a0();return n.$$click=()=>{let s=e.activeQuery.state.data,i=la(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},S(n,h(jh,{})),V(()=>F(n,o().actionButton)),n})()},Mi=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?eo(a):Ja(a)),r=W().client;return(()=>{var n=o0();return n.$$click=()=>{let s=e.activeQuery.state.data,i=za(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},S(n,h(rd,{})),V(()=>F(n,N(o().actionButton))),n})()},p0=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?eo(a):Ja(a)),r=W().client;return(()=>{var n=r0();return n.$$click=()=>{let s=e.activeQuery.state.data,i=la(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},S(n,h(Xh,{get theme(){return t()},get checked(){return e.value}})),V(()=>F(n,N(o().actionButton,a`
|
|
8
|
+
width: ${k.size[3.5]};
|
|
9
|
+
height: ${k.size[3.5]};
|
|
10
|
+
`))),n})()};nd=(e,t)=>{let{colors:a,font:o,size:r,border:n}=k,s=(i,l)=>e==="light"?i:l;return{entry:t`
|
|
11
11
|
& * {
|
|
12
|
-
font-size: ${
|
|
12
|
+
font-size: ${o.size.xs};
|
|
13
13
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
14
14
|
'Liberation Mono', 'Courier New', monospace;
|
|
15
15
|
}
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
`,subEntry:t`
|
|
20
20
|
margin: 0 0 0 0.5em;
|
|
21
21
|
padding-left: 0.75em;
|
|
22
|
-
border-left: 2px solid ${s(
|
|
23
|
-
/* outline: 1px solid ${
|
|
22
|
+
border-left: 2px solid ${s(a.gray[300],a.darkGray[400])};
|
|
23
|
+
/* outline: 1px solid ${a.teal[400]}; */
|
|
24
24
|
`,expander:t`
|
|
25
25
|
& path {
|
|
26
|
-
stroke: ${
|
|
26
|
+
stroke: ${a.gray[400]};
|
|
27
27
|
}
|
|
28
28
|
& svg {
|
|
29
|
-
width: ${
|
|
30
|
-
height: ${
|
|
29
|
+
width: ${r[3]};
|
|
30
|
+
height: ${r[3]};
|
|
31
31
|
}
|
|
32
32
|
display: inline-flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
transition: all 0.1s ease;
|
|
35
|
-
/* outline: 1px solid ${
|
|
35
|
+
/* outline: 1px solid ${a.blue[400]}; */
|
|
36
36
|
`,expanderButtonContainer:t`
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
line-height: ${
|
|
40
|
-
min-height: ${
|
|
41
|
-
gap: ${
|
|
39
|
+
line-height: ${r[4]};
|
|
40
|
+
min-height: ${r[4]};
|
|
41
|
+
gap: ${r[2]};
|
|
42
42
|
`,expanderButton:t`
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
color: inherit;
|
|
45
45
|
font: inherit;
|
|
46
46
|
outline: inherit;
|
|
47
|
-
height: ${
|
|
47
|
+
height: ${r[5]};
|
|
48
48
|
background: transparent;
|
|
49
49
|
border: none;
|
|
50
50
|
padding: 0;
|
|
51
51
|
display: inline-flex;
|
|
52
52
|
align-items: center;
|
|
53
|
-
gap: ${
|
|
53
|
+
gap: ${r[1]};
|
|
54
54
|
position: relative;
|
|
55
|
-
/* outline: 1px solid ${
|
|
55
|
+
/* outline: 1px solid ${a.green[400]}; */
|
|
56
56
|
|
|
57
57
|
&:focus-visible {
|
|
58
|
-
border-radius: ${
|
|
59
|
-
outline: 2px solid ${
|
|
58
|
+
border-radius: ${n.radius.xs};
|
|
59
|
+
outline: 2px solid ${a.blue[800]};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
& svg {
|
|
@@ -64,61 +64,61 @@
|
|
|
64
64
|
left: 1px;
|
|
65
65
|
}
|
|
66
66
|
`,info:t`
|
|
67
|
-
color: ${s(
|
|
68
|
-
font-size: ${
|
|
69
|
-
margin-left: ${
|
|
70
|
-
/* outline: 1px solid ${
|
|
67
|
+
color: ${s(a.gray[500],a.gray[500])};
|
|
68
|
+
font-size: ${o.size.xs};
|
|
69
|
+
margin-left: ${r[1]};
|
|
70
|
+
/* outline: 1px solid ${a.yellow[400]}; */
|
|
71
71
|
`,label:t`
|
|
72
|
-
color: ${s(
|
|
72
|
+
color: ${s(a.gray[700],a.gray[300])};
|
|
73
73
|
white-space: nowrap;
|
|
74
74
|
`,value:t`
|
|
75
|
-
color: ${s(
|
|
75
|
+
color: ${s(a.purple[600],a.purple[400])};
|
|
76
76
|
flex-grow: 1;
|
|
77
77
|
`,actions:t`
|
|
78
78
|
display: inline-flex;
|
|
79
|
-
gap: ${
|
|
79
|
+
gap: ${r[2]};
|
|
80
80
|
align-items: center;
|
|
81
81
|
`,row:t`
|
|
82
82
|
display: inline-flex;
|
|
83
|
-
gap: ${
|
|
83
|
+
gap: ${r[2]};
|
|
84
84
|
width: 100%;
|
|
85
|
-
margin: ${
|
|
86
|
-
line-height: ${
|
|
85
|
+
margin: ${r[.25]} 0px;
|
|
86
|
+
line-height: ${r[4.5]};
|
|
87
87
|
align-items: center;
|
|
88
88
|
`,editableInput:t`
|
|
89
89
|
border: none;
|
|
90
|
-
padding: ${
|
|
90
|
+
padding: ${r[.5]} ${r[1]} ${r[.5]} ${r[1.5]};
|
|
91
91
|
flex-grow: 1;
|
|
92
|
-
border-radius: ${
|
|
93
|
-
background-color: ${s(
|
|
92
|
+
border-radius: ${n.radius.xs};
|
|
93
|
+
background-color: ${s(a.gray[200],a.darkGray[500])};
|
|
94
94
|
|
|
95
95
|
&:hover {
|
|
96
|
-
background-color: ${s(
|
|
96
|
+
background-color: ${s(a.gray[300],a.darkGray[600])};
|
|
97
97
|
}
|
|
98
98
|
`,actionButton:t`
|
|
99
99
|
background-color: transparent;
|
|
100
|
-
color: ${s(
|
|
100
|
+
color: ${s(a.gray[500],a.gray[500])};
|
|
101
101
|
border: none;
|
|
102
102
|
display: inline-flex;
|
|
103
103
|
padding: 0px;
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
cursor: pointer;
|
|
107
|
-
width: ${
|
|
108
|
-
height: ${
|
|
107
|
+
width: ${r[3]};
|
|
108
|
+
height: ${r[3]};
|
|
109
109
|
position: relative;
|
|
110
110
|
z-index: 1;
|
|
111
111
|
|
|
112
112
|
&:hover svg {
|
|
113
|
-
color: ${s(
|
|
113
|
+
color: ${s(a.gray[600],a.gray[400])};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&:focus-visible {
|
|
117
|
-
border-radius: ${
|
|
118
|
-
outline: 2px solid ${
|
|
117
|
+
border-radius: ${n.radius.xs};
|
|
118
|
+
outline: 2px solid ${a.blue[800]};
|
|
119
119
|
outline-offset: 2px;
|
|
120
120
|
}
|
|
121
|
-
`}},
|
|
121
|
+
`}},Ja=e=>nd("light",e),eo=e=>nd("dark",e);bo(["click"]);m0=z('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Ho=z("<div>"),g0=z('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),h0=z("<select name=tsqd-queries-filter-sort>"),x0=z("<select name=tsqd-mutations-filter-sort>"),y0=z("<span>Asc"),v0=z("<span>Desc"),C0=z('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),L0=z("<div>Settings"),b0=z("<span>Position"),I0=z("<span>Top"),w0=z("<span>Bottom"),S0=z("<span>Left"),k0=z("<span>Right"),P0=z("<span>Theme"),M0=z("<span>Light"),A0=z("<span>Dark"),D0=z("<span>System"),T0=z("<div><div class=tsqd-queries-container>"),R0=z("<div><div class=tsqd-mutations-container>"),F0=z('<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>'),Di=z("<option>Sort by "),E0=z("<div class=tsqd-query-disabled-indicator>disabled"),sd=z("<button><div></div><code class=tsqd-query-hash>"),$0=z("<div role=tooltip id=tsqd-status-tooltip>"),B0=z("<span>"),O0=z("<button><span></span><span>"),q0=z("<button><span></span> Error"),N0=z('<div><span></span>Trigger Error<select><option value=""disabled selected>'),U0=z('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),z0=z("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),H0=z('<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">'),_0=z("<option>"),V0=z('<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">'),[rt,Kr]=O(null),[fa,ld]=O(null),[yt,ns]=O(0),[Ka,Ti]=O(!1),id=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?mt(a):pt(a)),r=Un(),n=w(()=>W().buttonPosition||jc),s=w(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:W().initialIsOpen||Xc),i=w(()=>e.localStore.position||W().position||An),l;G(()=>{let f=l.parentElement,d=e.localStore.height||Ri,p=e.localStore.width||Fi,c=i();f.style.setProperty("--tsqd-panel-height",`${c==="top"?"-":""}${d}px`),f.style.setProperty("--tsqd-panel-width",`${c==="left"?"-":""}${p}px`)}),Ht(()=>{let f=()=>{let d=l.parentElement,p=getComputedStyle(d).fontSize;d.style.setProperty("--tsqd-font-size",p)};f(),window.addEventListener("focus",f),j(()=>{window.removeEventListener("focus",f)})});let u=w(()=>e.localStore.pip_open??"false");return[h(K,{get when(){return w(()=>!!r().pipWindow)()&&u()=="true"},get children(){return h(vn,{get mount(){return r().pipWindow?.document.body},get children(){return h(G0,{get children(){return h(Wr,e)}})}})}}),(()=>{var f=Ho(),d=l;return typeof d=="function"?wa(d,f):l=f,S(f,h(Kl,{name:"tsqd-panel-transition",get children(){return h(K,{get when(){return w(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return h(K0,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),S(f,h(Kl,{name:"tsqd-button-transition",get children(){return h(K,{get when(){return!s()},get children(){var p=m0(),c=p.firstChild,m=c.nextSibling;return S(c,h(Si,{})),m.$$click=()=>e.setLocalStore("open","true"),S(m,h(Si,{})),V(()=>F(p,N(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),p}})}}),null),V(()=>F(f,N(a`
|
|
122
122
|
& .tsqd-panel-transition-exit-active,
|
|
123
123
|
& .tsqd-panel-transition-enter-active {
|
|
124
124
|
transition:
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
129
|
& .tsqd-panel-transition-exit-to,
|
|
130
130
|
& .tsqd-panel-transition-enter {
|
|
131
|
-
${
|
|
131
|
+
${i()==="top"||i()==="bottom"?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
& .tsqd-button-transition-exit-active,
|
|
@@ -141,111 +141,111 @@
|
|
|
141
141
|
|
|
142
142
|
& .tsqd-button-transition-exit-to,
|
|
143
143
|
& .tsqd-button-transition-enter {
|
|
144
|
-
transform: ${
|
|
144
|
+
transform: ${n()==="relative"?"none;":n()==="top-left"?"translateX(-72px);":n()==="top-right"?"translateX(72px);":"translateY(72px);"};
|
|
145
145
|
opacity: 0;
|
|
146
146
|
}
|
|
147
|
-
`,"tsqd-transitions-container"))),
|
|
147
|
+
`,"tsqd-transitions-container"))),f})()]},G0=e=>{let t=Un(),a=Ue(),o=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,r=w(()=>a()==="dark"?mt(o):pt(o)),n=()=>{let{colors:s}=k,i=(l,u)=>a()==="dark"?u:l;return yt()<Aa?o`
|
|
148
148
|
flex-direction: column;
|
|
149
|
-
background-color: ${
|
|
150
|
-
`:
|
|
149
|
+
background-color: ${i(s.gray[300],s.gray[600])};
|
|
150
|
+
`:o`
|
|
151
151
|
flex-direction: row;
|
|
152
|
-
background-color: ${
|
|
153
|
-
`};return
|
|
152
|
+
background-color: ${i(s.gray[200],s.darkGray[900])};
|
|
153
|
+
`};return G(()=>{let s=t().pipWindow,i=()=>{s&&ns(s.innerWidth)};s&&(s.addEventListener("resize",i),i()),j(()=>{s&&s.removeEventListener("resize",i)})}),(()=>{var s=Ho();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),S(s,()=>e.children),V(()=>F(s,N(r().panel,n(),{[o`
|
|
154
154
|
min-width: min-content;
|
|
155
|
-
`]:
|
|
155
|
+
`]:yt()<Nn},"tsqd-main-panel"))),s})()},ud=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?mt(a):pt(a)),r;Ht(()=>{Ni(r,({width:s},i)=>{i===r&&ns(s)})});let n=()=>{let{colors:s}=k,i=(l,u)=>t()==="dark"?u:l;return yt()<Aa?a`
|
|
156
156
|
flex-direction: column;
|
|
157
|
-
background-color: ${
|
|
158
|
-
`:
|
|
157
|
+
background-color: ${i(s.gray[300],s.gray[600])};
|
|
158
|
+
`:a`
|
|
159
159
|
flex-direction: row;
|
|
160
|
-
background-color: ${
|
|
161
|
-
`};return(()=>{var s=
|
|
160
|
+
background-color: ${i(s.gray[200],s.darkGray[900])};
|
|
161
|
+
`};return(()=>{var s=Ho(),i=r;return typeof i=="function"?wa(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),S(s,()=>e.children),V(()=>F(s,N(o().parentPanel,n(),{[a`
|
|
162
162
|
min-width: min-content;
|
|
163
|
-
`]:
|
|
163
|
+
`]:yt()<Nn},"tsqd-main-panel"))),s})()},K0=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?mt(a):pt(a)),[r,n]=O(!1),s=w(()=>e.localStore.position||W().position||An),i=f=>{let d=f.currentTarget.parentElement;if(!d)return;n(!0);let{height:p,width:c}=d.getBoundingClientRect(),m=f.clientX,g=f.clientY,x=0,y=Ln(3.5),v=Ln(12),C=b=>{if(b.preventDefault(),s()==="left"||s()==="right"){let T=s()==="right"?m-b.clientX:b.clientX-m;x=Math.round(c+T),x<v&&(x=v),e.setLocalStore("width",String(Math.round(x)));let D=d.getBoundingClientRect().width;Number(e.localStore.width)<D&&e.setLocalStore("width",String(D))}else{let T=s()==="bottom"?g-b.clientY:b.clientY-g;x=Math.round(p+T),x<y&&(x=y,Kr(null)),e.setLocalStore("height",String(Math.round(x)))}},L=()=>{r()&&n(!1),document.removeEventListener("mousemove",C,!1),document.removeEventListener("mouseUp",L,!1)};document.addEventListener("mousemove",C,!1),document.addEventListener("mouseup",L,!1)},l;Ht(()=>{Ni(l,({width:f},d)=>{d===l&&ns(f)})}),G(()=>{let f=l.parentElement?.parentElement?.parentElement;if(!f)return;let d=e.localStore.position||An,p=Rl("padding",d),c=e.localStore.position==="left"||e.localStore.position==="right",m=(({padding:g,paddingTop:x,paddingBottom:y,paddingLeft:v,paddingRight:C})=>({padding:g,paddingTop:x,paddingBottom:y,paddingLeft:v,paddingRight:C}))(f.style);f.style[p]=`${c?e.localStore.width:e.localStore.height}px`,j(()=>{Object.entries(m).forEach(([g,x])=>{f.style[g]=x})})});let u=()=>{let{colors:f}=k,d=(p,c)=>t()==="dark"?c:p;return yt()<Aa?a`
|
|
164
164
|
flex-direction: column;
|
|
165
|
-
background-color: ${
|
|
166
|
-
`:
|
|
165
|
+
background-color: ${d(f.gray[300],f.gray[600])};
|
|
166
|
+
`:a`
|
|
167
167
|
flex-direction: row;
|
|
168
|
-
background-color: ${
|
|
169
|
-
`};return(()=>{var
|
|
168
|
+
background-color: ${d(f.gray[200],f.darkGray[900])};
|
|
169
|
+
`};return(()=>{var f=g0(),d=f.firstChild,p=d.nextSibling,c=l;return typeof c=="function"?wa(c,f):l=f,d.$$mousedown=i,p.$$click=()=>e.setLocalStore("open","false"),S(p,h(Do,{})),S(f,h(Wr,e),null),V(m=>{var g=N(o().panel,o()[`panel-position-${s()}`],u(),{[a`
|
|
170
170
|
min-width: min-content;
|
|
171
|
-
`]:
|
|
171
|
+
`]:yt()<Nn&&(s()==="right"||s()==="left")},"tsqd-main-panel"),x=s()==="bottom"||s()==="top"?`${e.localStore.height||Ri}px`:"auto",y=s()==="right"||s()==="left"?`${e.localStore.width||Fi}px`:"auto",v=N(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),C=N(o().closeBtn,o()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==m.e&&F(f,m.e=g),x!==m.t&&((m.t=x)!=null?f.style.setProperty("height",x):f.style.removeProperty("height")),y!==m.a&&((m.a=y)!=null?f.style.setProperty("width",y):f.style.removeProperty("width")),v!==m.o&&F(d,m.o=v),C!==m.i&&F(p,m.i=C),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),f})()},Wr=e=>{J0(),ex();let t,a=Ue(),o=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,r=w(()=>a()==="dark"?mt(o):pt(o)),n=Un(),[s,i]=O("queries"),l=w(()=>e.localStore.sort||Zc),u=w(()=>Number(e.localStore.sortOrder)||Nl),f=w(()=>e.localStore.mutationSort||Yc),d=w(()=>Number(e.localStore.mutationSortOrder)||Nl),p=w(()=>br[l()]),c=w(()=>Ir[f()]),m=w(()=>W().onlineManager),g=w(()=>W().client.getQueryCache()),x=w(()=>W().client.getMutationCache()),y=ze(D=>D().getAll().length,!1),v=w(kt(()=>[y(),e.localStore.filter,l(),u()],()=>{let D=g().getAll(),$=e.localStore.filter?D.filter(M=>Ul(M.queryHash,e.localStore.filter||"").passed):[...D];return p()?$.sort((M,H)=>p()(M,H)*u()):$})),C=xt(D=>D().getAll().length,!1),L=w(kt(()=>[C(),e.localStore.mutationFilter,f(),d()],()=>{let D=x().getAll(),$=e.localStore.mutationFilter?D.filter(M=>{let H=`${M.options.mutationKey?JSON.stringify(M.options.mutationKey)+" - ":""}${new Date(M.state.submittedAt).toLocaleString()}`;return Ul(H,e.localStore.mutationFilter||"").passed}):[...D];return c()?$.sort((M,H)=>c()(M,H)*d()):$})),b=D=>{e.setLocalStore("position",D)},T=D=>{let I=getComputedStyle(t).getPropertyValue("--tsqd-font-size");D.style.setProperty("--tsqd-font-size",I)};return[(()=>{var D=F0(),$=D.firstChild,I=$.firstChild,M=I.firstChild,H=M.firstChild,U=H.nextSibling,se=U.firstChild,pe=$.nextSibling,Le=pe.firstChild,ye=Le.firstChild,ge=ye.firstChild,ve=ye.nextSibling,be=ve.nextSibling,Ee=Le.nextSibling,Qe=Ee.firstChild,Ae=Qe.nextSibling,We=t;return typeof We=="function"?wa(We,D):t=D,M.$$click=()=>{if(!n().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},S(U,()=>W().queryFlavor,se),S(U,()=>W().version,null),S(I,h(dt.Root,{get class(){return N(r().viewToggle)},get value(){return s()},onChange:E=>{i(E),Kr(null),ld(null)},get children(){return[h(dt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[h(dt.ItemInput,{}),h(dt.ItemControl,{get children(){return h(dt.ItemIndicator,{})}}),h(dt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),h(dt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[h(dt.ItemInput,{}),h(dt.ItemControl,{get children(){return h(dt.ItemIndicator,{})}}),h(dt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),S($,h(K,{get when(){return s()==="queries"},get children(){return h(X0,{})}}),null),S($,h(K,{get when(){return s()==="mutations"},get children(){return h(Q0,{})}}),null),S(ye,h(Eh,{}),ge),ge.$$input=E=>{s()==="queries"?e.setLocalStore("filter",E.currentTarget.value):e.setLocalStore("mutationFilter",E.currentTarget.value)},S(ve,h(K,{get when(){return s()==="queries"},get children(){var E=h0();return E.addEventListener("change",Me=>{e.setLocalStore("sort",Me.currentTarget.value)}),S(E,()=>Object.keys(br).map(Me=>(()=>{var ue=Di();return ue.firstChild,ue.value=Me,S(ue,Me,null),ue})())),V(()=>E.value=l()),E}}),null),S(ve,h(K,{get when(){return s()==="mutations"},get children(){var E=x0();return E.addEventListener("change",Me=>{e.setLocalStore("mutationSort",Me.currentTarget.value)}),S(E,()=>Object.keys(Ir).map(Me=>(()=>{var ue=Di();return ue.firstChild,ue.value=Me,S(ue,Me,null),ue})())),V(()=>E.value=f()),E}}),null),S(ve,h(Do,{}),null),be.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(d()*-1))},S(be,h(K,{get when(){return(s()==="queries"?u():d())===1},get children(){return[y0(),h(Ii,{})]}}),null),S(be,h(K,{get when(){return(s()==="queries"?u():d())===-1},get children(){return[v0(),h(wi,{})]}}),null),Qe.$$click=()=>{s()==="queries"?g().clear():x().clear()},S(Qe,h(rd,{})),Ae.$$click=()=>{Ka()?(m().setOnline(!0),Ti(!1)):(m().setOnline(!1),Ti(!0))},S(Ae,(()=>{var E=w(()=>!!Ka());return()=>E()?h(zh,{}):h(Uh,{})})()),S(Ee,h(K,{get when(){return w(()=>!n().pipWindow)()&&!n().disabled},get children(){var E=C0();return E.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},S(E,h(_h,{})),V(()=>F(E,N(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),E}}),null),S(Ee,h(Fe.Root,{gutter:4,get children(){return[h(Fe.Trigger,{get class(){return N(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return h(Hh,{})}}),h(Fe.Portal,{ref:E=>T(E),get mount(){return w(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return h(Fe.Content,{get class(){return N(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var E=L0();return V(()=>F(E,N(r().settingsMenuHeader,"tsqd-settings-menu-header"))),E})(),h(K,{get when(){return!e.showPanelViewOnly},get children(){return h(Fe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[h(Fe.SubTrigger,{get class(){return N(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[b0(),h(Do,{})]}}),h(Fe.Portal,{ref:E=>T(E),get mount(){return w(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return h(Fe.SubContent,{get class(){return N(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[h(Fe.Item,{onSelect:()=>{b("top")},as:"button",get class(){return N(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[I0(),h(Ii,{})]}}),h(Fe.Item,{onSelect:()=>{b("bottom")},as:"button",get class(){return N(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[w0(),h(wi,{})]}}),h(Fe.Item,{onSelect:()=>{b("left")},as:"button",get class(){return N(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[S0(),h($h,{})]}}),h(Fe.Item,{onSelect:()=>{b("right")},as:"button",get class(){return N(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[k0(),h(Bh,{})]}})]}})}})]}})}}),h(Fe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[h(Fe.SubTrigger,{get class(){return N(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[P0(),h(Do,{})]}}),h(Fe.Portal,{ref:E=>T(E),get mount(){return w(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return h(Fe.SubContent,{get class(){return N(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[h(Fe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return N(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[M0(),h(Oh,{})]}}),h(Fe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return N(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[A0(),h(qh,{})]}}),h(Fe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return N(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[D0(),h(Nh,{})]}})]}})}})]}})]}})}})]}}),null),S(D,h(K,{get when(){return s()==="queries"},get children(){var E=T0(),Me=E.firstChild;return S(Me,h(Mr,{by:ue=>ue.queryHash,get each(){return v()},children:ue=>h(W0,{get query(){return ue()}})})),V(()=>F(E,N(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),E}}),null),S(D,h(K,{get when(){return s()==="mutations"},get children(){var E=R0(),Me=E.firstChild;return S(Me,h(Mr,{by:ue=>ue.mutationId,get each(){return L()},children:ue=>h(j0,{get mutation(){return ue()}})})),V(()=>F(E,N(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),E}}),null),V(E=>{var Me=N(r().queriesContainer,yt()<Aa&&(rt()||fa())&&o`
|
|
172
172
|
height: 50%;
|
|
173
173
|
max-height: 50%;
|
|
174
|
-
`,
|
|
174
|
+
`,yt()<Aa&&!(rt()||fa())&&o`
|
|
175
175
|
height: 100%;
|
|
176
176
|
max-height: 100%;
|
|
177
|
-
`,"tsqd-queries-container"),
|
|
178
|
-
background-color: ${s(
|
|
179
|
-
color: ${s(
|
|
180
|
-
`:
|
|
181
|
-
background-color: ${s(
|
|
182
|
-
color: ${s(
|
|
183
|
-
`;return
|
|
184
|
-
background-color: ${s(
|
|
185
|
-
color: ${s(
|
|
186
|
-
`:
|
|
187
|
-
background-color: ${s(
|
|
188
|
-
color: ${s(
|
|
189
|
-
`;return
|
|
177
|
+
`,"tsqd-queries-container"),ue=N(r().row,"tsqd-header"),ra=r().logoAndToggleContainer,Z=N(r().logo,"tsqd-text-logo-container"),gt=N(r().tanstackLogo,"tsqd-text-logo-tanstack"),He=N(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),Ba=N(r().row,"tsqd-filters-actions-container"),lt=N(r().filtersContainer,"tsqd-filters-container"),na=N(r().filterInput,"tsqd-query-filter-textfield-container"),Ca=N("tsqd-query-filter-textfield"),Bt=N(r().filterSelect,"tsqd-query-filter-sort-container"),It=`Sort order ${(s()==="queries"?u():d())===-1?"descending":"ascending"}`,Ot=(s()==="queries"?u():d())===-1,q=N(r().actionsContainer,"tsqd-actions-container"),he=N(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),je=`Clear ${s()} cache`,Ce=N(r().actionsBtn,Ka()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),me=`${Ka()?"Unset offline mocking behavior":"Mock offline behavior"}`,Ie=Ka(),Oe=`${Ka()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Me!==E.e&&F(D,E.e=Me),ue!==E.t&&F($,E.t=ue),ra!==E.a&&F(I,E.a=ra),Z!==E.o&&F(M,E.o=Z),gt!==E.i&&F(H,E.i=gt),He!==E.n&&F(U,E.n=He),Ba!==E.s&&F(pe,E.s=Ba),lt!==E.h&&F(Le,E.h=lt),na!==E.r&&F(ye,E.r=na),Ca!==E.d&&F(ge,E.d=Ca),Bt!==E.l&&F(ve,E.l=Bt),It!==E.u&&R(be,"aria-label",E.u=It),Ot!==E.c&&R(be,"aria-pressed",E.c=Ot),q!==E.w&&F(Ee,E.w=q),he!==E.m&&F(Qe,E.m=he),je!==E.f&&R(Qe,"title",E.f=je),Ce!==E.y&&F(Ae,E.y=Ce),me!==E.g&&R(Ae,"aria-label",E.g=me),Ie!==E.p&&R(Ae,"aria-pressed",E.p=Ie),Oe!==E.b&&R(Ae,"title",E.b=Oe),E},{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}),V(()=>ge.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),D})(),h(K,{get when(){return w(()=>s()==="queries")()&&rt()},get children(){return h(Z0,{})}}),h(K,{get when(){return w(()=>s()==="mutations")()&&fa()},get children(){return h(Y0,{})}})]},W0=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?mt(a):pt(a)),{colors:r,alpha:n}=k,s=(c,m)=>t()==="dark"?m:c,i=ze(c=>c().find({queryKey:e.query.queryKey})?.state,!0,c=>c.query.queryHash===e.query.queryHash),l=ze(c=>c().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,c=>c.query.queryHash===e.query.queryHash),u=ze(c=>c().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,c=>c.query.queryHash===e.query.queryHash),f=ze(c=>c().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,c=>c.query.queryHash===e.query.queryHash),d=w(()=>Fl({queryState:i(),observerCount:f(),isStale:u()})),p=()=>d()==="gray"?a`
|
|
178
|
+
background-color: ${s(r[d()][200],r[d()][700])};
|
|
179
|
+
color: ${s(r[d()][700],r[d()][300])};
|
|
180
|
+
`:a`
|
|
181
|
+
background-color: ${s(r[d()][200]+n[80],r[d()][900])};
|
|
182
|
+
color: ${s(r[d()][800],r[d()][300])};
|
|
183
|
+
`;return h(K,{get when(){return i()},get children(){var c=sd(),m=c.firstChild,g=m.nextSibling;return c.$$click=()=>Kr(e.query.queryHash===rt()?null:e.query.queryHash),S(m,f),S(g,()=>e.query.queryHash),S(c,h(K,{get when(){return l()},get children(){return E0()}}),null),V(x=>{var y=N(o().queryRow,rt()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),v=`Query key ${e.query.queryHash}`,C=N(p(),"tsqd-query-observer-count");return y!==x.e&&F(c,x.e=y),v!==x.t&&R(c,"aria-label",x.t=v),C!==x.a&&F(m,x.a=C),x},{e:void 0,t:void 0,a:void 0}),c}})},j0=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?mt(a):pt(a)),{colors:r,alpha:n}=k,s=(p,c)=>t()==="dark"?c:p,i=xt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=xt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=xt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),f=w(()=>Pa({isPaused:l(),status:u()})),d=()=>f()==="gray"?a`
|
|
184
|
+
background-color: ${s(r[f()][200],r[f()][700])};
|
|
185
|
+
color: ${s(r[f()][700],r[f()][300])};
|
|
186
|
+
`:a`
|
|
187
|
+
background-color: ${s(r[f()][200]+n[80],r[f()][900])};
|
|
188
|
+
color: ${s(r[f()][800],r[f()][300])};
|
|
189
|
+
`;return h(K,{get when(){return i()},get children(){var p=sd(),c=p.firstChild,m=c.nextSibling;return p.$$click=()=>{ld(e.mutation.mutationId===fa()?null:e.mutation.mutationId)},S(c,h(K,{get when(){return f()==="purple"},get children(){return h(Jh,{})}}),null),S(c,h(K,{get when(){return f()==="green"},get children(){return h(Qh,{})}}),null),S(c,h(K,{get when(){return f()==="red"},get children(){return h(Yh,{})}}),null),S(c,h(K,{get when(){return f()==="yellow"},get children(){return h(Zh,{})}}),null),S(m,h(K,{get when(){return e.mutation.options.mutationKey},get children(){return[w(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),S(m,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),V(g=>{var x=N(o().queryRow,fa()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),y=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,v=N(d(),"tsqd-query-observer-count");return x!==g.e&&F(p,g.e=x),y!==g.t&&R(p,"aria-label",g.t=y),v!==g.a&&F(c,g.a=v),g},{e:void 0,t:void 0,a:void 0}),p}})},X0=()=>{let e=ze(l=>l().getAll().filter(u=>ka(u)==="stale").length),t=ze(l=>l().getAll().filter(u=>ka(u)==="fresh").length),a=ze(l=>l().getAll().filter(u=>ka(u)==="fetching").length),o=ze(l=>l().getAll().filter(u=>ka(u)==="paused").length),r=ze(l=>l().getAll().filter(u=>ka(u)==="inactive").length),n=Ue(),s=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,i=w(()=>n()==="dark"?mt(s):pt(s));return(()=>{var l=Ho();return S(l,h(Gt,{label:"Fresh",color:"green",get count(){return t()}}),null),S(l,h(Gt,{label:"Fetching",color:"blue",get count(){return a()}}),null),S(l,h(Gt,{label:"Paused",color:"purple",get count(){return o()}}),null),S(l,h(Gt,{label:"Stale",color:"yellow",get count(){return e()}}),null),S(l,h(Gt,{label:"Inactive",color:"gray",get count(){return r()}}),null),V(()=>F(l,N(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},Q0=()=>{let e=xt(i=>i().getAll().filter(l=>Pa({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=xt(i=>i().getAll().filter(l=>Pa({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=xt(i=>i().getAll().filter(l=>Pa({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=xt(i=>i().getAll().filter(l=>Pa({isPaused:l.state.isPaused,status:l.state.status})==="red").length),r=Ue(),n=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,s=w(()=>r()==="dark"?mt(n):pt(n));return(()=>{var i=Ho();return S(i,h(Gt,{label:"Paused",color:"purple",get count(){return a()}}),null),S(i,h(Gt,{label:"Pending",color:"yellow",get count(){return t()}}),null),S(i,h(Gt,{label:"Success",color:"green",get count(){return e()}}),null),S(i,h(Gt,{label:"Error",color:"red",get count(){return o()}}),null),V(()=>F(i,N(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},Gt=e=>{let t=Ue(),a=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,o=w(()=>t()==="dark"?mt(a):pt(a)),{colors:r,alpha:n}=k,s=(c,m)=>t()==="dark"?m:c,i,[l,u]=O(!1),[f,d]=O(!1),p=w(()=>!(rt()&&yt()<Wc&&yt()>Aa||yt()<Aa));return(()=>{var c=O0(),m=c.firstChild,g=m.nextSibling,x=i;return typeof x=="function"?wa(x,c):i=c,c.addEventListener("mouseleave",()=>{u(!1),d(!1)}),c.addEventListener("mouseenter",()=>u(!0)),c.addEventListener("blur",()=>d(!1)),c.addEventListener("focus",()=>d(!0)),yn(c,Y({get disabled(){return p()},get class(){return N(o().queryStatusTag,!p()&&a`
|
|
190
190
|
cursor: pointer;
|
|
191
191
|
&:hover {
|
|
192
|
-
background: ${s(
|
|
192
|
+
background: ${s(r.gray[200],r.darkGray[400])}${n[80]};
|
|
193
193
|
}
|
|
194
|
-
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||
|
|
195
|
-
width: ${
|
|
196
|
-
height: ${
|
|
197
|
-
border-radius: ${
|
|
198
|
-
background-color: ${
|
|
199
|
-
`,"tsqd-query-status-tag-dot"),
|
|
200
|
-
background-color: ${s(
|
|
201
|
-
color: ${s(
|
|
202
|
-
`,"tsqd-query-status-tag-count");return
|
|
203
|
-
background-color: ${o
|
|
204
|
-
color: ${o
|
|
205
|
-
border-color: ${o
|
|
194
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||f()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),S(c,h(K,{get when(){return w(()=>!p())()&&(l()||f())},get children(){var y=$0();return S(y,()=>e.label),V(()=>F(y,N(o().statusTooltip,"tsqd-query-status-tooltip"))),y}}),m),S(c,h(K,{get when(){return p()},get children(){var y=B0();return S(y,()=>e.label),V(()=>F(y,N(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),y}}),g),S(g,()=>e.count),V(y=>{var v=N(a`
|
|
195
|
+
width: ${k.size[1.5]};
|
|
196
|
+
height: ${k.size[1.5]};
|
|
197
|
+
border-radius: ${k.border.radius.full};
|
|
198
|
+
background-color: ${k.colors[e.color][500]};
|
|
199
|
+
`,"tsqd-query-status-tag-dot"),C=N(o().queryStatusCount,e.count>0&&e.color!=="gray"&&a`
|
|
200
|
+
background-color: ${s(r[e.color][100],r[e.color][900])};
|
|
201
|
+
color: ${s(r[e.color][700],r[e.color][300])};
|
|
202
|
+
`,"tsqd-query-status-tag-count");return v!==y.e&&F(m,y.e=v),C!==y.t&&F(g,y.t=C),y},{e:void 0,t:void 0}),c})()},Z0=()=>{let e=Ue(),t=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,a=w(()=>e()==="dark"?mt(t):pt(t)),{colors:o}=k,r=(I,M)=>e()==="dark"?M:I,n=W().client,[s,i]=O(!1),[l,u]=O("view"),[f,d]=O(!1),p=w(()=>W().errorTypes||[]),c=ze(I=>I().getAll().find(M=>M.queryHash===rt()),!1),m=ze(I=>I().getAll().find(M=>M.queryHash===rt()),!1),g=ze(I=>I().getAll().find(M=>M.queryHash===rt())?.state,!1),x=ze(I=>I().getAll().find(M=>M.queryHash===rt())?.state.data,!1),y=ze(I=>{let M=I().getAll().find(H=>H.queryHash===rt());return M?ka(M):"inactive"}),v=ze(I=>{let M=I().getAll().find(H=>H.queryHash===rt());return M?M.state.status:"pending"}),C=ze(I=>I().getAll().find(M=>M.queryHash===rt())?.getObserversCount()??0),L=w(()=>El(y())),b=()=>{c()?.fetch()?.catch(()=>{})},T=I=>{let M=I?.initializer(c())??new Error("Unknown error from devtools"),H=c().options;c().setState({status:"error",error:M,fetchMeta:{...c().state.fetchMeta,__previousQueryOptions:H}})},D=()=>{let I=c(),M=I.state,H=I.state.fetchMeta?I.state.fetchMeta.__previousQueryOptions:null;I.cancel({silent:!0}),I.setState({...M,fetchStatus:"idle",fetchMeta:null}),H&&I.fetch(H)};G(()=>{y()!=="fetching"&&i(!1)});let $=()=>L()==="gray"?t`
|
|
203
|
+
background-color: ${r(o[L()][200],o[L()][700])};
|
|
204
|
+
color: ${r(o[L()][700],o[L()][300])};
|
|
205
|
+
border-color: ${r(o[L()][400],o[L()][600])};
|
|
206
206
|
`:t`
|
|
207
|
-
background-color: ${o
|
|
208
|
-
color: ${o
|
|
209
|
-
border-color: ${o
|
|
210
|
-
`;return
|
|
211
|
-
color: ${o
|
|
212
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),
|
|
213
|
-
background-color: ${o
|
|
214
|
-
`;return
|
|
215
|
-
background-color: ${
|
|
216
|
-
`,
|
|
217
|
-
color: ${o
|
|
218
|
-
`),
|
|
219
|
-
color: ${o
|
|
220
|
-
`);return
|
|
221
|
-
color: ${o
|
|
222
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),
|
|
223
|
-
background-color: ${o
|
|
224
|
-
`,
|
|
225
|
-
color: ${o
|
|
226
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),
|
|
227
|
-
background-color: ${o
|
|
228
|
-
`,
|
|
229
|
-
color: ${o
|
|
230
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),
|
|
231
|
-
background-color: ${o
|
|
232
|
-
`,
|
|
233
|
-
color: ${o
|
|
234
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),
|
|
235
|
-
background-color: ${o
|
|
236
|
-
`,
|
|
237
|
-
color: ${o
|
|
238
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),
|
|
239
|
-
background-color: ${o
|
|
240
|
-
`,
|
|
241
|
-
background-color: ${o
|
|
242
|
-
color: ${o
|
|
243
|
-
border-color: ${o
|
|
207
|
+
background-color: ${r(o[L()][100],o[L()][900])};
|
|
208
|
+
color: ${r(o[L()][700],o[L()][300])};
|
|
209
|
+
border-color: ${r(o[L()][400],o[L()][600])};
|
|
210
|
+
`;return h(K,{get when(){return w(()=>!!c())()&&g()},get children(){var I=H0(),M=I.firstChild,H=M.nextSibling,U=H.firstChild,se=U.firstChild,pe=se.firstChild,Le=se.nextSibling,ye=U.nextSibling,ge=ye.firstChild,ve=ge.nextSibling,be=ye.nextSibling,Ee=be.firstChild,Qe=Ee.nextSibling,Ae=H.nextSibling,We=Ae.nextSibling,E=We.firstChild,Me=E.firstChild,ue=E.nextSibling,ra=ue.firstChild,Z=ue.nextSibling,gt=Z.firstChild,He=Z.nextSibling,Ba=He.firstChild,lt=He.nextSibling,na=lt.firstChild,Ca=na.nextSibling,Bt=We.nextSibling;Bt.firstChild;var It=Bt.nextSibling,Ot=It.nextSibling;return S(pe,()=>Io(c().queryKey,!0)),S(Le,y),S(ve,C),S(Qe,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),E.$$click=b,ue.$$click=()=>n.invalidateQueries(c()),Z.$$click=()=>n.resetQueries(c()),He.$$click=()=>{n.removeQueries(c()),Kr(null)},lt.$$click=()=>{if(c()?.state.data===void 0)i(!0),D();else{let q=c();if(!q)return;let he=q.options;q.fetch({...he,queryFn:()=>new Promise(()=>{}),gcTime:-1}),q.setState({data:void 0,status:"pending",fetchMeta:{...q.state.fetchMeta,__previousQueryOptions:he}})}},S(lt,()=>v()==="pending"?"Restore":"Trigger",Ca),S(We,h(K,{get when(){return p().length===0||v()==="error"},get children(){var q=q0(),he=q.firstChild,je=he.nextSibling;return q.$$click=()=>{c().state.error?n.resetQueries(c()):T()},S(q,()=>v()==="error"?"Restore":"Trigger",je),V(Ce=>{var me=N(t`
|
|
211
|
+
color: ${r(o.red[500],o.red[400])};
|
|
212
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),Ie=v()==="pending",Oe=t`
|
|
213
|
+
background-color: ${r(o.red[500],o.red[400])};
|
|
214
|
+
`;return me!==Ce.e&&F(q,Ce.e=me),Ie!==Ce.t&&(q.disabled=Ce.t=Ie),Oe!==Ce.a&&F(he,Ce.a=Oe),Ce},{e:void 0,t:void 0,a:void 0}),q}}),null),S(We,h(K,{get when(){return!(p().length===0||v()==="error")},get children(){var q=N0(),he=q.firstChild,je=he.nextSibling,Ce=je.nextSibling;return Ce.firstChild,Ce.addEventListener("change",me=>{let Ie=p().find(Oe=>Oe.name===me.currentTarget.value);T(Ie)}),S(Ce,h(ul,{get each(){return p()},children:me=>(()=>{var Ie=_0();return S(Ie,()=>me.name),V(()=>Ie.value=me.name),Ie})()}),null),S(q,h(Do,{}),null),V(me=>{var Ie=N(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),Oe=t`
|
|
215
|
+
background-color: ${k.colors.red[400]};
|
|
216
|
+
`,ce=v()==="pending";return Ie!==me.e&&F(q,me.e=Ie),Oe!==me.t&&F(he,me.t=Oe),ce!==me.a&&(Ce.disabled=me.a=ce),me},{e:void 0,t:void 0,a:void 0}),q}}),null),S(Bt,()=>l()==="view"?"Explorer":"Editor",null),S(I,h(K,{get when(){return l()==="view"},get children(){var q=U0();return S(q,h(da,{label:"Data",defaultExpanded:["Data"],get value(){return x()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return c()}})),V(he=>(he=k.size[2])!=null?q.style.setProperty("padding",he):q.style.removeProperty("padding")),q}}),It),S(I,h(K,{get when(){return l()==="edit"},get children(){var q=z0(),he=q.firstChild,je=he.nextSibling,Ce=je.firstChild,me=Ce.nextSibling,Ie=me.firstChild,Oe=Ie.nextSibling;return q.addEventListener("submit",ce=>{ce.preventDefault();let Nt=new FormData(ce.currentTarget).get("data");try{let ht=JSON.parse(Nt);c().setState({...c().state,data:ht}),u("view")}catch{d(!0)}}),he.addEventListener("focus",()=>d(!1)),S(Ce,()=>f()?"Invalid Value":""),Ie.$$click=()=>u("view"),V(ce=>{var qt=N(a().devtoolsEditForm,"tsqd-query-details-data-editor"),Nt=a().devtoolsEditTextarea,ht=f(),La=a().devtoolsEditFormActions,Ut=a().devtoolsEditFormError,ba=a().devtoolsEditFormActionContainer,zt=N(a().devtoolsEditFormAction,t`
|
|
217
|
+
color: ${r(o.gray[600],o.gray[300])};
|
|
218
|
+
`),sa=N(a().devtoolsEditFormAction,t`
|
|
219
|
+
color: ${r(o.blue[600],o.blue[400])};
|
|
220
|
+
`);return qt!==ce.e&&F(q,ce.e=qt),Nt!==ce.t&&F(he,ce.t=Nt),ht!==ce.a&&R(he,"data-error",ce.a=ht),La!==ce.o&&F(je,ce.o=La),Ut!==ce.i&&F(Ce,ce.i=Ut),ba!==ce.n&&F(me,ce.n=ba),zt!==ce.s&&F(Ie,ce.s=zt),sa!==ce.h&&F(Oe,ce.h=sa),ce},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),V(()=>he.value=JSON.stringify(x(),null,2)),q}}),It),S(Ot,h(da,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return m()}})),V(q=>{var he=N(a().detailsContainer,"tsqd-query-details-container"),je=N(a().detailsHeader,"tsqd-query-details-header"),Ce=N(a().detailsBody,"tsqd-query-details-summary-container"),me=N(a().queryDetailsStatus,$()),Ie=N(a().detailsHeader,"tsqd-query-details-header"),Oe=N(a().actionsBody,"tsqd-query-details-actions-container"),ce=N(t`
|
|
221
|
+
color: ${r(o.blue[600],o.blue[400])};
|
|
222
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),qt=y()==="fetching",Nt=t`
|
|
223
|
+
background-color: ${r(o.blue[600],o.blue[400])};
|
|
224
|
+
`,ht=N(t`
|
|
225
|
+
color: ${r(o.yellow[600],o.yellow[400])};
|
|
226
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),La=v()==="pending",Ut=t`
|
|
227
|
+
background-color: ${r(o.yellow[600],o.yellow[400])};
|
|
228
|
+
`,ba=N(t`
|
|
229
|
+
color: ${r(o.gray[600],o.gray[300])};
|
|
230
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),zt=v()==="pending",sa=t`
|
|
231
|
+
background-color: ${r(o.gray[600],o.gray[400])};
|
|
232
|
+
`,or=N(t`
|
|
233
|
+
color: ${r(o.pink[500],o.pink[400])};
|
|
234
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),so=y()==="fetching",rr=t`
|
|
235
|
+
background-color: ${r(o.pink[500],o.pink[400])};
|
|
236
|
+
`,Oa=N(t`
|
|
237
|
+
color: ${r(o.cyan[500],o.cyan[400])};
|
|
238
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),nr=s(),lo=t`
|
|
239
|
+
background-color: ${r(o.cyan[500],o.cyan[400])};
|
|
240
|
+
`,io=N(a().detailsHeader,"tsqd-query-details-header"),uo=N(a().detailsHeader,"tsqd-query-details-header"),qa=k.size[2];return he!==q.e&&F(I,q.e=he),je!==q.t&&F(M,q.t=je),Ce!==q.a&&F(H,q.a=Ce),me!==q.o&&F(Le,q.o=me),Ie!==q.i&&F(Ae,q.i=Ie),Oe!==q.n&&F(We,q.n=Oe),ce!==q.s&&F(E,q.s=ce),qt!==q.h&&(E.disabled=q.h=qt),Nt!==q.r&&F(Me,q.r=Nt),ht!==q.d&&F(ue,q.d=ht),La!==q.l&&(ue.disabled=q.l=La),Ut!==q.u&&F(ra,q.u=Ut),ba!==q.c&&F(Z,q.c=ba),zt!==q.w&&(Z.disabled=q.w=zt),sa!==q.m&&F(gt,q.m=sa),or!==q.f&&F(He,q.f=or),so!==q.y&&(He.disabled=q.y=so),rr!==q.g&&F(Ba,q.g=rr),Oa!==q.p&&F(lt,q.p=Oa),nr!==q.b&&(lt.disabled=q.b=nr),lo!==q.T&&F(na,q.T=lo),io!==q.A&&F(Bt,q.A=io),uo!==q.O&&F(It,q.O=uo),qa!==q.I&&((q.I=qa)!=null?Ot.style.setProperty("padding",qa):Ot.style.removeProperty("padding")),q},{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}),I}})},Y0=()=>{let e=Ue(),t=W().shadowDOMTarget?J.bind({target:W().shadowDOMTarget}):J,a=w(()=>e()==="dark"?mt(t):pt(t)),{colors:o}=k,r=(f,d)=>e()==="dark"?d:f,n=xt(f=>{let p=f().getAll().find(c=>c.mutationId===fa());return p?p.state.isPaused:!1}),s=xt(f=>{let p=f().getAll().find(c=>c.mutationId===fa());return p?p.state.status:"idle"}),i=w(()=>Pa({isPaused:n(),status:s()})),l=xt(f=>f().getAll().find(d=>d.mutationId===fa()),!1),u=()=>i()==="gray"?t`
|
|
241
|
+
background-color: ${r(o[i()][200],o[i()][700])};
|
|
242
|
+
color: ${r(o[i()][700],o[i()][300])};
|
|
243
|
+
border-color: ${r(o[i()][400],o[i()][600])};
|
|
244
244
|
`:t`
|
|
245
|
-
background-color: ${o
|
|
246
|
-
color: ${o
|
|
247
|
-
border-color: ${o
|
|
248
|
-
`;return
|
|
245
|
+
background-color: ${r(o[i()][100],o[i()][900])};
|
|
246
|
+
color: ${r(o[i()][700],o[i()][300])};
|
|
247
|
+
border-color: ${r(o[i()][400],o[i()][600])};
|
|
248
|
+
`;return h(K,{get when(){return l()},get children(){var f=V0(),d=f.firstChild,p=d.nextSibling,c=p.firstChild,m=c.firstChild,g=m.firstChild,x=m.nextSibling,y=c.nextSibling,v=y.firstChild,C=v.nextSibling,L=p.nextSibling,b=L.nextSibling,T=b.nextSibling,D=T.nextSibling,$=D.nextSibling,I=$.nextSibling,M=I.nextSibling,H=M.nextSibling;return S(g,h(K,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return Io(l().options.mutationKey,!0)}})),S(x,h(K,{get when(){return i()==="purple"},children:"pending"}),null),S(x,h(K,{get when(){return i()!=="purple"},get children(){return s()}}),null),S(C,()=>new Date(l().state.submittedAt).toLocaleTimeString()),S(b,h(da,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),S(D,h(da,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),S(I,h(da,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),S(H,h(da,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),V(U=>{var se=N(a().detailsContainer,"tsqd-query-details-container"),pe=N(a().detailsHeader,"tsqd-query-details-header"),Le=N(a().detailsBody,"tsqd-query-details-summary-container"),ye=N(a().queryDetailsStatus,u()),ge=N(a().detailsHeader,"tsqd-query-details-header"),ve=k.size[2],be=N(a().detailsHeader,"tsqd-query-details-header"),Ee=k.size[2],Qe=N(a().detailsHeader,"tsqd-query-details-header"),Ae=k.size[2],We=N(a().detailsHeader,"tsqd-query-details-header"),E=k.size[2];return se!==U.e&&F(f,U.e=se),pe!==U.t&&F(d,U.t=pe),Le!==U.a&&F(p,U.a=Le),ye!==U.o&&F(x,U.o=ye),ge!==U.i&&F(L,U.i=ge),ve!==U.n&&((U.n=ve)!=null?b.style.setProperty("padding",ve):b.style.removeProperty("padding")),be!==U.s&&F(T,U.s=be),Ee!==U.h&&((U.h=Ee)!=null?D.style.setProperty("padding",Ee):D.style.removeProperty("padding")),Qe!==U.r&&F($,U.r=Qe),Ae!==U.d&&((U.d=Ae)!=null?I.style.setProperty("padding",Ae):I.style.removeProperty("padding")),We!==U.l&&F(M,U.l=We),E!==U.u&&((U.u=E)!=null?H.style.setProperty("padding",E):H.style.removeProperty("padding")),U},{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}),f}})},Fr=new Map,J0=()=>{let e=w(()=>W().client.getQueryCache()),t=e().subscribe(a=>{Js(()=>{for(let[o,r]of Fr.entries())r.shouldUpdate(a)&&r.setter(o(e))})});return j(()=>{Fr.clear(),t()}),t},ze=(e,t=!0,a=()=>!0)=>{let o=w(()=>W().client.getQueryCache()),[r,n]=O(e(o),t?void 0:{equals:!1});return G(()=>{n(e(o))}),Fr.set(e,{setter:n,shouldUpdate:a}),j(()=>{Fr.delete(e)}),r},Er=new Map,ex=()=>{let e=w(()=>W().client.getMutationCache()),t=e().subscribe(()=>{for(let[a,o]of Er.entries())queueMicrotask(()=>{o(a(e))})});return j(()=>{Er.clear(),t()}),t},xt=(e,t=!0)=>{let a=w(()=>W().client.getMutationCache()),[o,r]=O(e(a),t?void 0:{equals:!1});return G(()=>{r(e(a))}),Er.set(e,r),j(()=>{Er.delete(e)}),o},dd=(e,t)=>{let{colors:a,font:o,size:r,alpha:n,shadow:s,border:i}=k,l=(u,f)=>e==="light"?u:f;return{devtoolsBtn:t`
|
|
249
249
|
z-index: 100000;
|
|
250
250
|
position: fixed;
|
|
251
251
|
padding: 4px;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
|
|
277
277
|
&:focus-within {
|
|
278
278
|
outline-offset: 2px;
|
|
279
|
-
outline: 3px solid ${
|
|
279
|
+
outline: 3px solid ${a.green[600]};
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
& button {
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
position: fixed;
|
|
303
303
|
z-index: 9999;
|
|
304
304
|
display: flex;
|
|
305
|
-
gap: ${
|
|
305
|
+
gap: ${k.size[.5]};
|
|
306
306
|
& * {
|
|
307
307
|
box-sizing: border-box;
|
|
308
308
|
text-transform: none;
|
|
@@ -317,17 +317,17 @@
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
& *::-webkit-scrollbar-thumb {
|
|
320
|
-
background: ${l(
|
|
320
|
+
background: ${l(a.gray[300],a.darkGray[200])};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
& *::-webkit-scrollbar-thumb:hover {
|
|
324
|
-
background: ${l(
|
|
324
|
+
background: ${l(a.gray[400],a.darkGray[300])};
|
|
325
325
|
}
|
|
326
326
|
`,parentPanel:t`
|
|
327
327
|
z-index: 9999;
|
|
328
328
|
display: flex;
|
|
329
329
|
height: 100%;
|
|
330
|
-
gap: ${
|
|
330
|
+
gap: ${k.size[.5]};
|
|
331
331
|
& * {
|
|
332
332
|
box-sizing: border-box;
|
|
333
333
|
text-transform: none;
|
|
@@ -342,11 +342,11 @@
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
& *::-webkit-scrollbar-thumb {
|
|
345
|
-
background: ${l(
|
|
345
|
+
background: ${l(a.gray[300],a.darkGray[200])};
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
& *::-webkit-scrollbar-thumb:hover {
|
|
349
|
-
background: ${l(
|
|
349
|
+
background: ${l(a.gray[400],a.darkGray[300])};
|
|
350
350
|
}
|
|
351
351
|
`,"devtoolsBtn-position-bottom-right":t`
|
|
352
352
|
bottom: 12px;
|
|
@@ -367,26 +367,26 @@
|
|
|
367
367
|
right: 0;
|
|
368
368
|
left: 0;
|
|
369
369
|
max-height: 90%;
|
|
370
|
-
min-height: ${
|
|
371
|
-
border-bottom: ${l(
|
|
370
|
+
min-height: ${r[14]};
|
|
371
|
+
border-bottom: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
372
372
|
`,"panel-position-bottom":t`
|
|
373
373
|
bottom: 0;
|
|
374
374
|
right: 0;
|
|
375
375
|
left: 0;
|
|
376
376
|
max-height: 90%;
|
|
377
|
-
min-height: ${
|
|
378
|
-
border-top: ${l(
|
|
377
|
+
min-height: ${r[14]};
|
|
378
|
+
border-top: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
379
379
|
`,"panel-position-right":t`
|
|
380
380
|
bottom: 0;
|
|
381
381
|
right: 0;
|
|
382
382
|
top: 0;
|
|
383
|
-
border-left: ${l(
|
|
383
|
+
border-left: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
384
384
|
max-width: 90%;
|
|
385
385
|
`,"panel-position-left":t`
|
|
386
386
|
bottom: 0;
|
|
387
387
|
left: 0;
|
|
388
388
|
top: 0;
|
|
389
|
-
border-right: ${l(
|
|
389
|
+
border-right: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
390
390
|
max-width: 90%;
|
|
391
391
|
`,closeBtn:t`
|
|
392
392
|
position: absolute;
|
|
@@ -396,36 +396,36 @@
|
|
|
396
396
|
align-items: center;
|
|
397
397
|
justify-content: center;
|
|
398
398
|
outline: none;
|
|
399
|
-
background-color: ${l(
|
|
399
|
+
background-color: ${l(a.gray[50],a.darkGray[700])};
|
|
400
400
|
&:hover {
|
|
401
|
-
background-color: ${l(
|
|
401
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
402
402
|
}
|
|
403
403
|
&:focus-visible {
|
|
404
|
-
outline: 2px solid ${
|
|
404
|
+
outline: 2px solid ${a.blue[600]};
|
|
405
405
|
}
|
|
406
406
|
& svg {
|
|
407
|
-
color: ${l(
|
|
408
|
-
width: ${
|
|
409
|
-
height: ${
|
|
407
|
+
color: ${l(a.gray[600],a.gray[400])};
|
|
408
|
+
width: ${r[2]};
|
|
409
|
+
height: ${r[2]};
|
|
410
410
|
}
|
|
411
411
|
`,"closeBtn-position-top":t`
|
|
412
412
|
bottom: 0;
|
|
413
|
-
right: ${
|
|
413
|
+
right: ${r[2]};
|
|
414
414
|
transform: translate(0, 100%);
|
|
415
|
-
border-right: ${l(
|
|
416
|
-
border-left: ${l(
|
|
415
|
+
border-right: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
416
|
+
border-left: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
417
417
|
border-top: none;
|
|
418
|
-
border-bottom: ${l(
|
|
419
|
-
border-radius: 0px 0px ${
|
|
420
|
-
padding: ${
|
|
418
|
+
border-bottom: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
419
|
+
border-radius: 0px 0px ${i.radius.sm} ${i.radius.sm};
|
|
420
|
+
padding: ${r[.5]} ${r[1.5]} ${r[1]} ${r[1.5]};
|
|
421
421
|
|
|
422
422
|
&::after {
|
|
423
423
|
content: ' ';
|
|
424
424
|
position: absolute;
|
|
425
425
|
bottom: 100%;
|
|
426
|
-
left: -${
|
|
427
|
-
height: ${
|
|
428
|
-
width: calc(100% + ${
|
|
426
|
+
left: -${r[2.5]};
|
|
427
|
+
height: ${r[1.5]};
|
|
428
|
+
width: calc(100% + ${r[5]});
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
& svg {
|
|
@@ -433,62 +433,62 @@
|
|
|
433
433
|
}
|
|
434
434
|
`,"closeBtn-position-bottom":t`
|
|
435
435
|
top: 0;
|
|
436
|
-
right: ${
|
|
436
|
+
right: ${r[2]};
|
|
437
437
|
transform: translate(0, -100%);
|
|
438
|
-
border-right: ${l(
|
|
439
|
-
border-left: ${l(
|
|
440
|
-
border-top: ${l(
|
|
438
|
+
border-right: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
439
|
+
border-left: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
440
|
+
border-top: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
441
441
|
border-bottom: none;
|
|
442
|
-
border-radius: ${
|
|
443
|
-
padding: ${
|
|
442
|
+
border-radius: ${i.radius.sm} ${i.radius.sm} 0px 0px;
|
|
443
|
+
padding: ${r[1]} ${r[1.5]} ${r[.5]} ${r[1.5]};
|
|
444
444
|
|
|
445
445
|
&::after {
|
|
446
446
|
content: ' ';
|
|
447
447
|
position: absolute;
|
|
448
448
|
top: 100%;
|
|
449
|
-
left: -${
|
|
450
|
-
height: ${
|
|
451
|
-
width: calc(100% + ${
|
|
449
|
+
left: -${r[2.5]};
|
|
450
|
+
height: ${r[1.5]};
|
|
451
|
+
width: calc(100% + ${r[5]});
|
|
452
452
|
}
|
|
453
453
|
`,"closeBtn-position-right":t`
|
|
454
|
-
bottom: ${
|
|
454
|
+
bottom: ${r[2]};
|
|
455
455
|
left: 0;
|
|
456
456
|
transform: translate(-100%, 0);
|
|
457
457
|
border-right: none;
|
|
458
|
-
border-left: ${l(
|
|
459
|
-
border-top: ${l(
|
|
460
|
-
border-bottom: ${l(
|
|
461
|
-
border-radius: ${
|
|
462
|
-
padding: ${
|
|
458
|
+
border-left: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
459
|
+
border-top: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
460
|
+
border-bottom: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
461
|
+
border-radius: ${i.radius.sm} 0px 0px ${i.radius.sm};
|
|
462
|
+
padding: ${r[1.5]} ${r[.5]} ${r[1.5]} ${r[1]};
|
|
463
463
|
|
|
464
464
|
&::after {
|
|
465
465
|
content: ' ';
|
|
466
466
|
position: absolute;
|
|
467
467
|
left: 100%;
|
|
468
|
-
height: calc(100% + ${
|
|
469
|
-
width: ${
|
|
468
|
+
height: calc(100% + ${r[5]});
|
|
469
|
+
width: ${r[1.5]};
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
& svg {
|
|
473
473
|
transform: rotate(-90deg);
|
|
474
474
|
}
|
|
475
475
|
`,"closeBtn-position-left":t`
|
|
476
|
-
bottom: ${
|
|
476
|
+
bottom: ${r[2]};
|
|
477
477
|
right: 0;
|
|
478
478
|
transform: translate(100%, 0);
|
|
479
479
|
border-left: none;
|
|
480
|
-
border-right: ${l(
|
|
481
|
-
border-top: ${l(
|
|
482
|
-
border-bottom: ${l(
|
|
483
|
-
border-radius: 0px ${
|
|
484
|
-
padding: ${
|
|
480
|
+
border-right: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
481
|
+
border-top: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
482
|
+
border-bottom: ${l(a.gray[400],a.darkGray[300])} 1px solid;
|
|
483
|
+
border-radius: 0px ${i.radius.sm} ${i.radius.sm} 0px;
|
|
484
|
+
padding: ${r[1.5]} ${r[1]} ${r[1.5]} ${r[.5]};
|
|
485
485
|
|
|
486
486
|
&::after {
|
|
487
487
|
content: ' ';
|
|
488
488
|
position: absolute;
|
|
489
489
|
right: 100%;
|
|
490
|
-
height: calc(100% + ${
|
|
491
|
-
width: ${
|
|
490
|
+
height: calc(100% + ${r[5]});
|
|
491
|
+
width: ${r[1.5]};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
& svg {
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
}
|
|
497
497
|
`,queriesContainer:t`
|
|
498
498
|
flex: 1 1 700px;
|
|
499
|
-
background-color: ${l(
|
|
499
|
+
background-color: ${l(a.gray[50],a.darkGray[700])};
|
|
500
500
|
display: flex;
|
|
501
501
|
flex-direction: column;
|
|
502
502
|
& * {
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
position: absolute;
|
|
507
507
|
transition: background-color 0.125s ease;
|
|
508
508
|
&:hover {
|
|
509
|
-
background-color: ${
|
|
509
|
+
background-color: ${a.purple[400]}${l("",n[90])};
|
|
510
510
|
}
|
|
511
511
|
z-index: 4;
|
|
512
512
|
`,"dragHandle-position-top":t`
|
|
@@ -533,21 +533,21 @@
|
|
|
533
533
|
display: flex;
|
|
534
534
|
justify-content: space-between;
|
|
535
535
|
align-items: center;
|
|
536
|
-
padding: ${
|
|
537
|
-
gap: ${
|
|
538
|
-
border-bottom: ${l(
|
|
536
|
+
padding: ${k.size[2]} ${k.size[2.5]};
|
|
537
|
+
gap: ${k.size[2.5]};
|
|
538
|
+
border-bottom: ${l(a.gray[300],a.darkGray[500])} 1px solid;
|
|
539
539
|
align-items: center;
|
|
540
540
|
& > button {
|
|
541
541
|
padding: 0;
|
|
542
542
|
background: transparent;
|
|
543
543
|
border: none;
|
|
544
544
|
display: flex;
|
|
545
|
-
gap: ${
|
|
545
|
+
gap: ${r[.5]};
|
|
546
546
|
flex-direction: column;
|
|
547
547
|
}
|
|
548
548
|
`,logoAndToggleContainer:t`
|
|
549
549
|
display: flex;
|
|
550
|
-
gap: ${
|
|
550
|
+
gap: ${k.size[3]};
|
|
551
551
|
align-items: center;
|
|
552
552
|
`,logo:t`
|
|
553
553
|
cursor: pointer;
|
|
@@ -555,25 +555,25 @@
|
|
|
555
555
|
flex-direction: column;
|
|
556
556
|
background-color: transparent;
|
|
557
557
|
border: none;
|
|
558
|
-
gap: ${
|
|
558
|
+
gap: ${k.size[.5]};
|
|
559
559
|
padding: 0px;
|
|
560
560
|
&:hover {
|
|
561
561
|
opacity: 0.7;
|
|
562
562
|
}
|
|
563
563
|
&:focus-visible {
|
|
564
564
|
outline-offset: 4px;
|
|
565
|
-
border-radius: ${
|
|
566
|
-
outline: 2px solid ${
|
|
565
|
+
border-radius: ${i.radius.xs};
|
|
566
|
+
outline: 2px solid ${a.blue[800]};
|
|
567
567
|
}
|
|
568
568
|
`,tanstackLogo:t`
|
|
569
|
-
font-size: ${
|
|
570
|
-
font-weight: ${
|
|
571
|
-
line-height: ${
|
|
569
|
+
font-size: ${o.size.md};
|
|
570
|
+
font-weight: ${o.weight.bold};
|
|
571
|
+
line-height: ${o.lineHeight.xs};
|
|
572
572
|
white-space: nowrap;
|
|
573
|
-
color: ${l(
|
|
573
|
+
color: ${l(a.gray[600],a.gray[300])};
|
|
574
574
|
`,queryFlavorLogo:t`
|
|
575
|
-
font-weight: ${
|
|
576
|
-
font-size: ${
|
|
575
|
+
font-weight: ${o.weight.semibold};
|
|
576
|
+
font-size: ${o.size.xs};
|
|
577
577
|
background: linear-gradient(
|
|
578
578
|
to right,
|
|
579
579
|
${l("#ea4037, #ff9b11","#dd524b, #e9a03b")}
|
|
@@ -585,53 +585,53 @@
|
|
|
585
585
|
white-space: nowrap;
|
|
586
586
|
`,queryStatusContainer:t`
|
|
587
587
|
display: flex;
|
|
588
|
-
gap: ${
|
|
588
|
+
gap: ${k.size[2]};
|
|
589
589
|
height: min-content;
|
|
590
590
|
`,queryStatusTag:t`
|
|
591
591
|
display: flex;
|
|
592
|
-
gap: ${
|
|
592
|
+
gap: ${k.size[1.5]};
|
|
593
593
|
box-sizing: border-box;
|
|
594
|
-
height: ${
|
|
595
|
-
background: ${l(
|
|
596
|
-
color: ${l(
|
|
597
|
-
border-radius: ${
|
|
598
|
-
font-size: ${
|
|
599
|
-
padding: ${
|
|
600
|
-
padding-left: ${
|
|
594
|
+
height: ${k.size[6.5]};
|
|
595
|
+
background: ${l(a.gray[50],a.darkGray[500])};
|
|
596
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
597
|
+
border-radius: ${k.border.radius.sm};
|
|
598
|
+
font-size: ${o.size.sm};
|
|
599
|
+
padding: ${k.size[1]};
|
|
600
|
+
padding-left: ${k.size[1.5]};
|
|
601
601
|
align-items: center;
|
|
602
|
-
font-weight: ${
|
|
603
|
-
border: ${l("1px solid "+
|
|
602
|
+
font-weight: ${o.weight.medium};
|
|
603
|
+
border: ${l("1px solid "+a.gray[300],"1px solid transparent")};
|
|
604
604
|
user-select: none;
|
|
605
605
|
position: relative;
|
|
606
606
|
&:focus-visible {
|
|
607
607
|
outline-offset: 2px;
|
|
608
|
-
outline: 2px solid ${
|
|
608
|
+
outline: 2px solid ${a.blue[800]};
|
|
609
609
|
}
|
|
610
610
|
`,queryStatusTagLabel:t`
|
|
611
|
-
font-size: ${
|
|
611
|
+
font-size: ${o.size.xs};
|
|
612
612
|
`,queryStatusCount:t`
|
|
613
|
-
font-size: ${
|
|
613
|
+
font-size: ${o.size.xs};
|
|
614
614
|
padding: 0 5px;
|
|
615
615
|
display: flex;
|
|
616
616
|
align-items: center;
|
|
617
617
|
justify-content: center;
|
|
618
|
-
color: ${l(
|
|
619
|
-
background-color: ${l(
|
|
618
|
+
color: ${l(a.gray[500],a.gray[400])};
|
|
619
|
+
background-color: ${l(a.gray[200],a.darkGray[300])};
|
|
620
620
|
border-radius: 2px;
|
|
621
621
|
font-variant-numeric: tabular-nums;
|
|
622
|
-
height: ${
|
|
622
|
+
height: ${k.size[4.5]};
|
|
623
623
|
`,statusTooltip:t`
|
|
624
624
|
position: absolute;
|
|
625
625
|
z-index: 1;
|
|
626
|
-
background-color: ${l(
|
|
626
|
+
background-color: ${l(a.gray[50],a.darkGray[500])};
|
|
627
627
|
top: 100%;
|
|
628
628
|
left: 50%;
|
|
629
|
-
transform: translate(-50%, calc(${
|
|
630
|
-
padding: ${
|
|
631
|
-
border-radius: ${
|
|
632
|
-
font-size: ${
|
|
633
|
-
border: 1px solid ${l(
|
|
634
|
-
color: ${l(
|
|
629
|
+
transform: translate(-50%, calc(${k.size[2]}));
|
|
630
|
+
padding: ${k.size[.5]} ${k.size[2]};
|
|
631
|
+
border-radius: ${k.border.radius.sm};
|
|
632
|
+
font-size: ${o.size.xs};
|
|
633
|
+
border: 1px solid ${l(a.gray[400],a.gray[600])};
|
|
634
|
+
color: ${l(a.gray[600],a.gray[300])};
|
|
635
635
|
|
|
636
636
|
&::before {
|
|
637
637
|
top: 0px;
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
transform: translate(-50%, -100%);
|
|
642
642
|
position: absolute;
|
|
643
643
|
border-color: transparent transparent
|
|
644
|
-
${l(
|
|
644
|
+
${l(a.gray[400],a.gray[600])} transparent;
|
|
645
645
|
border-style: solid;
|
|
646
646
|
border-width: 7px;
|
|
647
647
|
/* transform: rotate(180deg); */
|
|
@@ -655,65 +655,65 @@
|
|
|
655
655
|
transform: translate(-50%, calc(-100% + 2px));
|
|
656
656
|
position: absolute;
|
|
657
657
|
border-color: transparent transparent
|
|
658
|
-
${l(
|
|
658
|
+
${l(a.gray[100],a.darkGray[500])} transparent;
|
|
659
659
|
border-style: solid;
|
|
660
660
|
border-width: 7px;
|
|
661
661
|
}
|
|
662
662
|
`,filtersContainer:t`
|
|
663
663
|
display: flex;
|
|
664
|
-
gap: ${
|
|
664
|
+
gap: ${k.size[2]};
|
|
665
665
|
& > button {
|
|
666
666
|
cursor: pointer;
|
|
667
|
-
padding: ${
|
|
668
|
-
${
|
|
669
|
-
border-radius: ${
|
|
670
|
-
background-color: ${l(
|
|
671
|
-
border: 1px solid ${l(
|
|
672
|
-
color: ${l(
|
|
673
|
-
font-size: ${
|
|
667
|
+
padding: ${k.size[.5]} ${k.size[1.5]} ${k.size[.5]}
|
|
668
|
+
${k.size[2]};
|
|
669
|
+
border-radius: ${k.border.radius.sm};
|
|
670
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
671
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
672
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
673
|
+
font-size: ${o.size.xs};
|
|
674
674
|
display: flex;
|
|
675
675
|
align-items: center;
|
|
676
|
-
line-height: ${
|
|
677
|
-
gap: ${
|
|
676
|
+
line-height: ${o.lineHeight.sm};
|
|
677
|
+
gap: ${k.size[1.5]};
|
|
678
678
|
max-width: 160px;
|
|
679
679
|
&:focus-visible {
|
|
680
680
|
outline-offset: 2px;
|
|
681
|
-
border-radius: ${
|
|
682
|
-
outline: 2px solid ${
|
|
681
|
+
border-radius: ${i.radius.xs};
|
|
682
|
+
outline: 2px solid ${a.blue[800]};
|
|
683
683
|
}
|
|
684
684
|
& svg {
|
|
685
|
-
width: ${
|
|
686
|
-
height: ${
|
|
687
|
-
color: ${l(
|
|
685
|
+
width: ${k.size[3]};
|
|
686
|
+
height: ${k.size[3]};
|
|
687
|
+
color: ${l(a.gray[500],a.gray[400])};
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
`,filterInput:t`
|
|
691
|
-
padding: ${
|
|
692
|
-
border-radius: ${
|
|
693
|
-
background-color: ${l(
|
|
691
|
+
padding: ${r[.5]} ${r[2]};
|
|
692
|
+
border-radius: ${k.border.radius.sm};
|
|
693
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
694
694
|
display: flex;
|
|
695
695
|
box-sizing: content-box;
|
|
696
696
|
align-items: center;
|
|
697
|
-
gap: ${
|
|
697
|
+
gap: ${k.size[1.5]};
|
|
698
698
|
max-width: 160px;
|
|
699
699
|
min-width: 100px;
|
|
700
|
-
border: 1px solid ${l(
|
|
700
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
701
701
|
height: min-content;
|
|
702
|
-
color: ${l(
|
|
702
|
+
color: ${l(a.gray[600],a.gray[400])};
|
|
703
703
|
& > svg {
|
|
704
|
-
width: ${
|
|
705
|
-
height: ${
|
|
704
|
+
width: ${r[3]};
|
|
705
|
+
height: ${r[3]};
|
|
706
706
|
}
|
|
707
707
|
& input {
|
|
708
|
-
font-size: ${
|
|
708
|
+
font-size: ${o.size.xs};
|
|
709
709
|
width: 100%;
|
|
710
|
-
background-color: ${l(
|
|
710
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
711
711
|
border: none;
|
|
712
712
|
padding: 0;
|
|
713
|
-
line-height: ${
|
|
714
|
-
color: ${l(
|
|
713
|
+
line-height: ${o.lineHeight.sm};
|
|
714
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
715
715
|
&::placeholder {
|
|
716
|
-
color: ${l(
|
|
716
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
717
717
|
}
|
|
718
718
|
&:focus {
|
|
719
719
|
outline: none;
|
|
@@ -722,32 +722,32 @@
|
|
|
722
722
|
|
|
723
723
|
&:focus-within {
|
|
724
724
|
outline-offset: 2px;
|
|
725
|
-
border-radius: ${
|
|
726
|
-
outline: 2px solid ${
|
|
725
|
+
border-radius: ${i.radius.xs};
|
|
726
|
+
outline: 2px solid ${a.blue[800]};
|
|
727
727
|
}
|
|
728
728
|
`,filterSelect:t`
|
|
729
|
-
padding: ${
|
|
730
|
-
border-radius: ${
|
|
731
|
-
background-color: ${l(
|
|
729
|
+
padding: ${k.size[.5]} ${k.size[2]};
|
|
730
|
+
border-radius: ${k.border.radius.sm};
|
|
731
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
732
732
|
display: flex;
|
|
733
733
|
align-items: center;
|
|
734
|
-
gap: ${
|
|
734
|
+
gap: ${k.size[1.5]};
|
|
735
735
|
box-sizing: content-box;
|
|
736
736
|
max-width: 160px;
|
|
737
|
-
border: 1px solid ${l(
|
|
737
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
738
738
|
height: min-content;
|
|
739
739
|
& > svg {
|
|
740
|
-
color: ${l(
|
|
741
|
-
width: ${
|
|
742
|
-
height: ${
|
|
740
|
+
color: ${l(a.gray[600],a.gray[400])};
|
|
741
|
+
width: ${k.size[2]};
|
|
742
|
+
height: ${k.size[2]};
|
|
743
743
|
}
|
|
744
744
|
& > select {
|
|
745
745
|
appearance: none;
|
|
746
|
-
color: ${l(
|
|
746
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
747
747
|
min-width: 100px;
|
|
748
|
-
line-height: ${
|
|
749
|
-
font-size: ${
|
|
750
|
-
background-color: ${l(
|
|
748
|
+
line-height: ${o.lineHeight.sm};
|
|
749
|
+
font-size: ${o.size.xs};
|
|
750
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
751
751
|
border: none;
|
|
752
752
|
&:focus {
|
|
753
753
|
outline: none;
|
|
@@ -755,42 +755,42 @@
|
|
|
755
755
|
}
|
|
756
756
|
&:focus-within {
|
|
757
757
|
outline-offset: 2px;
|
|
758
|
-
border-radius: ${
|
|
759
|
-
outline: 2px solid ${
|
|
758
|
+
border-radius: ${i.radius.xs};
|
|
759
|
+
outline: 2px solid ${a.blue[800]};
|
|
760
760
|
}
|
|
761
761
|
`,actionsContainer:t`
|
|
762
762
|
display: flex;
|
|
763
|
-
gap: ${
|
|
763
|
+
gap: ${k.size[2]};
|
|
764
764
|
`,actionsBtn:t`
|
|
765
|
-
border-radius: ${
|
|
766
|
-
background-color: ${l(
|
|
767
|
-
border: 1px solid ${l(
|
|
768
|
-
width: ${
|
|
769
|
-
height: ${
|
|
765
|
+
border-radius: ${k.border.radius.sm};
|
|
766
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
767
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
768
|
+
width: ${k.size[6.5]};
|
|
769
|
+
height: ${k.size[6.5]};
|
|
770
770
|
justify-content: center;
|
|
771
771
|
display: flex;
|
|
772
772
|
align-items: center;
|
|
773
|
-
gap: ${
|
|
773
|
+
gap: ${k.size[1.5]};
|
|
774
774
|
max-width: 160px;
|
|
775
775
|
cursor: pointer;
|
|
776
776
|
padding: 0;
|
|
777
777
|
&:hover {
|
|
778
|
-
background-color: ${l(
|
|
778
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
779
779
|
}
|
|
780
780
|
& svg {
|
|
781
|
-
color: ${l(
|
|
782
|
-
width: ${
|
|
783
|
-
height: ${
|
|
781
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
782
|
+
width: ${k.size[3]};
|
|
783
|
+
height: ${k.size[3]};
|
|
784
784
|
}
|
|
785
785
|
&:focus-visible {
|
|
786
786
|
outline-offset: 2px;
|
|
787
|
-
border-radius: ${
|
|
788
|
-
outline: 2px solid ${
|
|
787
|
+
border-radius: ${i.radius.xs};
|
|
788
|
+
outline: 2px solid ${a.blue[800]};
|
|
789
789
|
}
|
|
790
790
|
`,actionsBtnOffline:t`
|
|
791
791
|
& svg {
|
|
792
|
-
stroke: ${l(
|
|
793
|
-
fill: ${l(
|
|
792
|
+
stroke: ${l(a.yellow[700],a.yellow[500])};
|
|
793
|
+
fill: ${l(a.yellow[700],a.yellow[500])};
|
|
794
794
|
}
|
|
795
795
|
`,overflowQueryContainer:t`
|
|
796
796
|
flex: 1;
|
|
@@ -805,46 +805,46 @@
|
|
|
805
805
|
padding: 0;
|
|
806
806
|
border: none;
|
|
807
807
|
cursor: pointer;
|
|
808
|
-
color: ${l(
|
|
809
|
-
background-color: ${l(
|
|
808
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
809
|
+
background-color: ${l(a.gray[50],a.darkGray[700])};
|
|
810
810
|
line-height: 1;
|
|
811
811
|
&:focus {
|
|
812
812
|
outline: none;
|
|
813
813
|
}
|
|
814
814
|
&:focus-visible {
|
|
815
815
|
outline-offset: -2px;
|
|
816
|
-
border-radius: ${
|
|
817
|
-
outline: 2px solid ${
|
|
816
|
+
border-radius: ${i.radius.xs};
|
|
817
|
+
outline: 2px solid ${a.blue[800]};
|
|
818
818
|
}
|
|
819
819
|
&:hover .tsqd-query-hash {
|
|
820
|
-
background-color: ${l(
|
|
820
|
+
background-color: ${l(a.gray[200],a.darkGray[600])};
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
& .tsqd-query-observer-count {
|
|
824
|
-
padding: 0 ${
|
|
824
|
+
padding: 0 ${k.size[1]};
|
|
825
825
|
user-select: none;
|
|
826
|
-
min-width: ${
|
|
826
|
+
min-width: ${k.size[6.5]};
|
|
827
827
|
align-self: stretch;
|
|
828
828
|
display: flex;
|
|
829
829
|
align-items: center;
|
|
830
830
|
justify-content: center;
|
|
831
|
-
font-size: ${
|
|
832
|
-
font-weight: ${
|
|
831
|
+
font-size: ${o.size.xs};
|
|
832
|
+
font-weight: ${o.weight.medium};
|
|
833
833
|
border-bottom-width: 1px;
|
|
834
834
|
border-bottom-style: solid;
|
|
835
|
-
border-bottom: 1px solid ${l(
|
|
835
|
+
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[700])};
|
|
836
836
|
}
|
|
837
837
|
& .tsqd-query-hash {
|
|
838
838
|
user-select: text;
|
|
839
|
-
font-size: ${
|
|
839
|
+
font-size: ${o.size.xs};
|
|
840
840
|
display: flex;
|
|
841
841
|
align-items: center;
|
|
842
|
-
min-height: ${
|
|
842
|
+
min-height: ${k.size[6]};
|
|
843
843
|
flex: 1;
|
|
844
|
-
padding: ${
|
|
844
|
+
padding: ${k.size[1]} ${k.size[2]};
|
|
845
845
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
846
846
|
'Liberation Mono', 'Courier New', monospace;
|
|
847
|
-
border-bottom: 1px solid ${l(
|
|
847
|
+
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
848
848
|
text-align: left;
|
|
849
849
|
text-overflow: clip;
|
|
850
850
|
word-break: break-word;
|
|
@@ -854,18 +854,18 @@
|
|
|
854
854
|
align-self: stretch;
|
|
855
855
|
display: flex;
|
|
856
856
|
align-items: center;
|
|
857
|
-
padding: 0 ${
|
|
858
|
-
color: ${l(
|
|
859
|
-
background-color: ${l(
|
|
860
|
-
border-bottom: 1px solid ${l(
|
|
861
|
-
font-size: ${
|
|
857
|
+
padding: 0 ${k.size[2]};
|
|
858
|
+
color: ${l(a.gray[800],a.gray[300])};
|
|
859
|
+
background-color: ${l(a.gray[300],a.darkGray[600])};
|
|
860
|
+
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
861
|
+
font-size: ${o.size.xs};
|
|
862
862
|
}
|
|
863
863
|
`,selectedQueryRow:t`
|
|
864
|
-
background-color: ${l(
|
|
864
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
865
865
|
`,detailsContainer:t`
|
|
866
866
|
flex: 1 1 700px;
|
|
867
|
-
background-color: ${l(
|
|
868
|
-
color: ${l(
|
|
867
|
+
background-color: ${l(a.gray[50],a.darkGray[700])};
|
|
868
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
869
869
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
870
870
|
display: flex;
|
|
871
871
|
flex-direction: column;
|
|
@@ -877,22 +877,22 @@
|
|
|
877
877
|
position: sticky;
|
|
878
878
|
top: 0;
|
|
879
879
|
z-index: 2;
|
|
880
|
-
background-color: ${l(
|
|
881
|
-
padding: ${
|
|
882
|
-
font-weight: ${
|
|
883
|
-
font-size: ${
|
|
884
|
-
line-height: ${
|
|
880
|
+
background-color: ${l(a.gray[200],a.darkGray[600])};
|
|
881
|
+
padding: ${k.size[1.5]} ${k.size[2]};
|
|
882
|
+
font-weight: ${o.weight.medium};
|
|
883
|
+
font-size: ${o.size.xs};
|
|
884
|
+
line-height: ${o.lineHeight.xs};
|
|
885
885
|
text-align: left;
|
|
886
886
|
`,detailsBody:t`
|
|
887
|
-
margin: ${
|
|
887
|
+
margin: ${k.size[1.5]} 0px ${k.size[2]} 0px;
|
|
888
888
|
& > div {
|
|
889
889
|
display: flex;
|
|
890
890
|
align-items: stretch;
|
|
891
|
-
padding: 0 ${
|
|
892
|
-
line-height: ${
|
|
891
|
+
padding: 0 ${k.size[2]};
|
|
892
|
+
line-height: ${o.lineHeight.sm};
|
|
893
893
|
justify-content: space-between;
|
|
894
894
|
& > span {
|
|
895
|
-
font-size: ${
|
|
895
|
+
font-size: ${o.size.xs};
|
|
896
896
|
}
|
|
897
897
|
& > span:nth-child(2) {
|
|
898
898
|
font-variant-numeric: tabular-nums;
|
|
@@ -900,15 +900,15 @@
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
& > div:first-child {
|
|
903
|
-
margin-bottom: ${
|
|
903
|
+
margin-bottom: ${k.size[1.5]};
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
& code {
|
|
907
907
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
908
908
|
'Liberation Mono', 'Courier New', monospace;
|
|
909
909
|
margin: 0;
|
|
910
|
-
font-size: ${
|
|
911
|
-
line-height: ${
|
|
910
|
+
font-size: ${o.size.xs};
|
|
911
|
+
line-height: ${o.lineHeight.xs};
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
& pre {
|
|
@@ -917,36 +917,36 @@
|
|
|
917
917
|
align-items: center;
|
|
918
918
|
}
|
|
919
919
|
`,queryDetailsStatus:t`
|
|
920
|
-
border: 1px solid ${
|
|
921
|
-
border-radius: ${
|
|
922
|
-
font-weight: ${
|
|
923
|
-
padding: ${
|
|
920
|
+
border: 1px solid ${a.darkGray[200]};
|
|
921
|
+
border-radius: ${k.border.radius.sm};
|
|
922
|
+
font-weight: ${o.weight.medium};
|
|
923
|
+
padding: ${k.size[1]} ${k.size[2.5]};
|
|
924
924
|
`,actionsBody:t`
|
|
925
925
|
flex-wrap: wrap;
|
|
926
|
-
margin: ${
|
|
926
|
+
margin: ${k.size[2]} 0px ${k.size[2]} 0px;
|
|
927
927
|
display: flex;
|
|
928
|
-
gap: ${
|
|
929
|
-
padding: 0px ${
|
|
928
|
+
gap: ${k.size[2]};
|
|
929
|
+
padding: 0px ${k.size[2]};
|
|
930
930
|
& > button {
|
|
931
931
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
932
|
-
font-size: ${
|
|
933
|
-
padding: ${
|
|
932
|
+
font-size: ${o.size.xs};
|
|
933
|
+
padding: ${k.size[1]} ${k.size[2]};
|
|
934
934
|
display: flex;
|
|
935
|
-
border-radius: ${
|
|
936
|
-
background-color: ${l(
|
|
937
|
-
border: 1px solid ${l(
|
|
935
|
+
border-radius: ${k.border.radius.sm};
|
|
936
|
+
background-color: ${l(a.gray[100],a.darkGray[600])};
|
|
937
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
938
938
|
align-items: center;
|
|
939
|
-
gap: ${
|
|
940
|
-
font-weight: ${
|
|
941
|
-
line-height: ${
|
|
939
|
+
gap: ${k.size[2]};
|
|
940
|
+
font-weight: ${o.weight.medium};
|
|
941
|
+
line-height: ${o.lineHeight.xs};
|
|
942
942
|
cursor: pointer;
|
|
943
943
|
&:focus-visible {
|
|
944
944
|
outline-offset: 2px;
|
|
945
|
-
border-radius: ${
|
|
946
|
-
outline: 2px solid ${
|
|
945
|
+
border-radius: ${i.radius.xs};
|
|
946
|
+
outline: 2px solid ${a.blue[800]};
|
|
947
947
|
}
|
|
948
948
|
&:hover {
|
|
949
|
-
background-color: ${l(
|
|
949
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
&:disabled {
|
|
@@ -955,38 +955,38 @@
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
& > span {
|
|
958
|
-
width: ${
|
|
959
|
-
height: ${
|
|
960
|
-
border-radius: ${
|
|
958
|
+
width: ${r[1.5]};
|
|
959
|
+
height: ${r[1.5]};
|
|
960
|
+
border-radius: ${k.border.radius.full};
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
`,actionsSelect:t`
|
|
964
|
-
font-size: ${
|
|
965
|
-
padding: ${
|
|
964
|
+
font-size: ${o.size.xs};
|
|
965
|
+
padding: ${k.size[.5]} ${k.size[2]};
|
|
966
966
|
display: flex;
|
|
967
|
-
border-radius: ${
|
|
967
|
+
border-radius: ${k.border.radius.sm};
|
|
968
968
|
overflow: hidden;
|
|
969
|
-
background-color: ${l(
|
|
970
|
-
border: 1px solid ${l(
|
|
969
|
+
background-color: ${l(a.gray[100],a.darkGray[600])};
|
|
970
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
971
971
|
align-items: center;
|
|
972
|
-
gap: ${
|
|
973
|
-
font-weight: ${
|
|
974
|
-
line-height: ${
|
|
975
|
-
color: ${l(
|
|
972
|
+
gap: ${k.size[2]};
|
|
973
|
+
font-weight: ${o.weight.medium};
|
|
974
|
+
line-height: ${o.lineHeight.sm};
|
|
975
|
+
color: ${l(a.red[500],a.red[400])};
|
|
976
976
|
cursor: pointer;
|
|
977
977
|
position: relative;
|
|
978
978
|
&:hover {
|
|
979
|
-
background-color: ${l(
|
|
979
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
980
980
|
}
|
|
981
981
|
& > span {
|
|
982
|
-
width: ${
|
|
983
|
-
height: ${
|
|
984
|
-
border-radius: ${
|
|
982
|
+
width: ${r[1.5]};
|
|
983
|
+
height: ${r[1.5]};
|
|
984
|
+
border-radius: ${k.border.radius.full};
|
|
985
985
|
}
|
|
986
986
|
&:focus-within {
|
|
987
987
|
outline-offset: 2px;
|
|
988
|
-
border-radius: ${
|
|
989
|
-
outline: 2px solid ${
|
|
988
|
+
border-radius: ${i.radius.xs};
|
|
989
|
+
outline: 2px solid ${a.blue[800]};
|
|
990
990
|
}
|
|
991
991
|
& select {
|
|
992
992
|
position: absolute;
|
|
@@ -1002,11 +1002,11 @@
|
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
& svg path {
|
|
1005
|
-
stroke: ${
|
|
1005
|
+
stroke: ${k.colors.red[400]};
|
|
1006
1006
|
}
|
|
1007
1007
|
& svg {
|
|
1008
|
-
width: ${
|
|
1009
|
-
height: ${
|
|
1008
|
+
width: ${k.size[2]};
|
|
1009
|
+
height: ${k.size[2]};
|
|
1010
1010
|
}
|
|
1011
1011
|
`,settingsMenu:t`
|
|
1012
1012
|
display: flex;
|
|
@@ -1014,90 +1014,90 @@
|
|
|
1014
1014
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1015
1015
|
}
|
|
1016
1016
|
flex-direction: column;
|
|
1017
|
-
gap: ${
|
|
1018
|
-
border-radius: ${
|
|
1019
|
-
border: 1px solid ${l(
|
|
1020
|
-
background-color: ${l(
|
|
1021
|
-
font-size: ${
|
|
1022
|
-
color: ${l(
|
|
1017
|
+
gap: ${r[.5]};
|
|
1018
|
+
border-radius: ${k.border.radius.sm};
|
|
1019
|
+
border: 1px solid ${l(a.gray[300],a.gray[700])};
|
|
1020
|
+
background-color: ${l(a.gray[50],a.darkGray[600])};
|
|
1021
|
+
font-size: ${o.size.xs};
|
|
1022
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
1023
1023
|
z-index: 99999;
|
|
1024
1024
|
min-width: 120px;
|
|
1025
|
-
padding: ${
|
|
1025
|
+
padding: ${r[.5]};
|
|
1026
1026
|
`,settingsSubTrigger:t`
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
align-items: center;
|
|
1029
1029
|
justify-content: space-between;
|
|
1030
|
-
border-radius: ${
|
|
1031
|
-
padding: ${
|
|
1030
|
+
border-radius: ${k.border.radius.xs};
|
|
1031
|
+
padding: ${k.size[1]} ${k.size[1]};
|
|
1032
1032
|
cursor: pointer;
|
|
1033
1033
|
background-color: transparent;
|
|
1034
1034
|
border: none;
|
|
1035
|
-
color: ${l(
|
|
1035
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
1036
1036
|
& svg {
|
|
1037
|
-
color: ${l(
|
|
1037
|
+
color: ${l(a.gray[600],a.gray[400])};
|
|
1038
1038
|
transform: rotate(-90deg);
|
|
1039
|
-
width: ${
|
|
1040
|
-
height: ${
|
|
1039
|
+
width: ${k.size[2]};
|
|
1040
|
+
height: ${k.size[2]};
|
|
1041
1041
|
}
|
|
1042
1042
|
&:hover {
|
|
1043
|
-
background-color: ${l(
|
|
1043
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
1044
1044
|
}
|
|
1045
1045
|
&:focus-visible {
|
|
1046
1046
|
outline-offset: 2px;
|
|
1047
|
-
outline: 2px solid ${
|
|
1047
|
+
outline: 2px solid ${a.blue[800]};
|
|
1048
1048
|
}
|
|
1049
1049
|
&.data-disabled {
|
|
1050
1050
|
opacity: 0.6;
|
|
1051
1051
|
cursor: not-allowed;
|
|
1052
1052
|
}
|
|
1053
1053
|
`,settingsMenuHeader:t`
|
|
1054
|
-
padding: ${
|
|
1055
|
-
font-weight: ${
|
|
1056
|
-
border-bottom: 1px solid ${l(
|
|
1057
|
-
color: ${l(
|
|
1058
|
-
font-size: ${
|
|
1054
|
+
padding: ${k.size[1]} ${k.size[1]};
|
|
1055
|
+
font-weight: ${o.weight.medium};
|
|
1056
|
+
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
1057
|
+
color: ${l(a.gray[500],a.gray[400])};
|
|
1058
|
+
font-size: ${o.size.xs};
|
|
1059
1059
|
`,settingsSubButton:t`
|
|
1060
1060
|
display: flex;
|
|
1061
1061
|
align-items: center;
|
|
1062
1062
|
justify-content: space-between;
|
|
1063
|
-
color: ${l(
|
|
1064
|
-
font-size: ${
|
|
1065
|
-
border-radius: ${
|
|
1066
|
-
padding: ${
|
|
1063
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
1064
|
+
font-size: ${o.size.xs};
|
|
1065
|
+
border-radius: ${k.border.radius.xs};
|
|
1066
|
+
padding: ${k.size[1]} ${k.size[1]};
|
|
1067
1067
|
cursor: pointer;
|
|
1068
1068
|
background-color: transparent;
|
|
1069
1069
|
border: none;
|
|
1070
1070
|
& svg {
|
|
1071
|
-
color: ${l(
|
|
1071
|
+
color: ${l(a.gray[600],a.gray[400])};
|
|
1072
1072
|
}
|
|
1073
1073
|
&:hover {
|
|
1074
|
-
background-color: ${l(
|
|
1074
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
1075
1075
|
}
|
|
1076
1076
|
&:focus-visible {
|
|
1077
1077
|
outline-offset: 2px;
|
|
1078
|
-
outline: 2px solid ${
|
|
1078
|
+
outline: 2px solid ${a.blue[800]};
|
|
1079
1079
|
}
|
|
1080
1080
|
`,themeSelectedButton:t`
|
|
1081
|
-
background-color: ${l(
|
|
1082
|
-
color: ${l(
|
|
1081
|
+
background-color: ${l(a.purple[100],a.purple[900])};
|
|
1082
|
+
color: ${l(a.purple[700],a.purple[300])};
|
|
1083
1083
|
& svg {
|
|
1084
|
-
color: ${l(
|
|
1084
|
+
color: ${l(a.purple[700],a.purple[300])};
|
|
1085
1085
|
}
|
|
1086
1086
|
&:hover {
|
|
1087
|
-
background-color: ${l(
|
|
1087
|
+
background-color: ${l(a.purple[100],a.purple[900])};
|
|
1088
1088
|
}
|
|
1089
1089
|
`,viewToggle:t`
|
|
1090
|
-
border-radius: ${
|
|
1091
|
-
background-color: ${l(
|
|
1092
|
-
border: 1px solid ${l(
|
|
1090
|
+
border-radius: ${k.border.radius.sm};
|
|
1091
|
+
background-color: ${l(a.gray[200],a.darkGray[600])};
|
|
1092
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
1093
1093
|
display: flex;
|
|
1094
1094
|
padding: 0;
|
|
1095
|
-
font-size: ${
|
|
1096
|
-
color: ${l(
|
|
1095
|
+
font-size: ${o.size.xs};
|
|
1096
|
+
color: ${l(a.gray[700],a.gray[300])};
|
|
1097
1097
|
overflow: hidden;
|
|
1098
1098
|
|
|
1099
1099
|
&:has(:focus-visible) {
|
|
1100
|
-
outline: 2px solid ${
|
|
1100
|
+
outline: 2px solid ${a.blue[800]};
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
1103
|
& .tsqd-radio-toggle {
|
|
@@ -1107,97 +1107,97 @@
|
|
|
1107
1107
|
display: flex;
|
|
1108
1108
|
align-items: center;
|
|
1109
1109
|
cursor: pointer;
|
|
1110
|
-
line-height: ${
|
|
1110
|
+
line-height: ${o.lineHeight.md};
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
& label:hover {
|
|
1114
|
-
background-color: ${l(
|
|
1114
|
+
background-color: ${l(a.gray[100],a.darkGray[500])};
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
1118
|
& > [data-checked] {
|
|
1119
1119
|
opacity: 1;
|
|
1120
|
-
background-color: ${l(
|
|
1120
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
1121
1121
|
& label:hover {
|
|
1122
|
-
background-color: ${l(
|
|
1122
|
+
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
& .tsqd-radio-toggle:first-child {
|
|
1127
1127
|
& label {
|
|
1128
|
-
padding: 0 ${
|
|
1128
|
+
padding: 0 ${k.size[1.5]} 0 ${k.size[2]};
|
|
1129
1129
|
}
|
|
1130
|
-
border-right: 1px solid ${l(
|
|
1130
|
+
border-right: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
1133
|
& .tsqd-radio-toggle:nth-child(2) {
|
|
1134
1134
|
& label {
|
|
1135
|
-
padding: 0 ${
|
|
1135
|
+
padding: 0 ${k.size[2]} 0 ${k.size[1.5]};
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
`,devtoolsEditForm:t`
|
|
1139
|
-
padding: ${
|
|
1139
|
+
padding: ${r[2]};
|
|
1140
1140
|
& > [data-error='true'] {
|
|
1141
|
-
outline: 2px solid ${l(
|
|
1141
|
+
outline: 2px solid ${l(a.red[200],a.red[800])};
|
|
1142
1142
|
outline-offset: 2px;
|
|
1143
|
-
border-radius: ${
|
|
1143
|
+
border-radius: ${i.radius.xs};
|
|
1144
1144
|
}
|
|
1145
1145
|
`,devtoolsEditTextarea:t`
|
|
1146
1146
|
width: 100%;
|
|
1147
1147
|
max-height: 500px;
|
|
1148
1148
|
font-family: 'Fira Code', monospace;
|
|
1149
|
-
font-size: ${
|
|
1150
|
-
border-radius: ${
|
|
1149
|
+
font-size: ${o.size.xs};
|
|
1150
|
+
border-radius: ${i.radius.sm};
|
|
1151
1151
|
field-sizing: content;
|
|
1152
|
-
padding: ${
|
|
1153
|
-
background-color: ${l(
|
|
1154
|
-
color: ${l(
|
|
1155
|
-
border: 1px solid ${l(
|
|
1152
|
+
padding: ${r[2]};
|
|
1153
|
+
background-color: ${l(a.gray[100],a.darkGray[800])};
|
|
1154
|
+
color: ${l(a.gray[900],a.gray[100])};
|
|
1155
|
+
border: 1px solid ${l(a.gray[200],a.gray[700])};
|
|
1156
1156
|
resize: none;
|
|
1157
1157
|
&:focus {
|
|
1158
1158
|
outline-offset: 2px;
|
|
1159
|
-
border-radius: ${
|
|
1160
|
-
outline: 2px solid ${l(
|
|
1159
|
+
border-radius: ${i.radius.xs};
|
|
1160
|
+
outline: 2px solid ${l(a.blue[200],a.blue[800])};
|
|
1161
1161
|
}
|
|
1162
1162
|
`,devtoolsEditFormActions:t`
|
|
1163
1163
|
display: flex;
|
|
1164
1164
|
justify-content: space-between;
|
|
1165
|
-
gap: ${
|
|
1165
|
+
gap: ${r[2]};
|
|
1166
1166
|
align-items: center;
|
|
1167
|
-
padding-top: ${
|
|
1168
|
-
font-size: ${
|
|
1167
|
+
padding-top: ${r[1]};
|
|
1168
|
+
font-size: ${o.size.xs};
|
|
1169
1169
|
`,devtoolsEditFormError:t`
|
|
1170
|
-
color: ${l(
|
|
1170
|
+
color: ${l(a.red[700],a.red[500])};
|
|
1171
1171
|
`,devtoolsEditFormActionContainer:t`
|
|
1172
1172
|
display: flex;
|
|
1173
|
-
gap: ${
|
|
1173
|
+
gap: ${r[2]};
|
|
1174
1174
|
`,devtoolsEditFormAction:t`
|
|
1175
1175
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1176
|
-
font-size: ${
|
|
1177
|
-
padding: ${
|
|
1176
|
+
font-size: ${o.size.xs};
|
|
1177
|
+
padding: ${r[1]} ${k.size[2]};
|
|
1178
1178
|
display: flex;
|
|
1179
|
-
border-radius: ${
|
|
1180
|
-
background-color: ${l(
|
|
1181
|
-
border: 1px solid ${l(
|
|
1179
|
+
border-radius: ${i.radius.sm};
|
|
1180
|
+
background-color: ${l(a.gray[100],a.darkGray[600])};
|
|
1181
|
+
border: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
1182
1182
|
align-items: center;
|
|
1183
|
-
gap: ${
|
|
1184
|
-
font-weight: ${
|
|
1185
|
-
line-height: ${
|
|
1183
|
+
gap: ${r[2]};
|
|
1184
|
+
font-weight: ${o.weight.medium};
|
|
1185
|
+
line-height: ${o.lineHeight.xs};
|
|
1186
1186
|
cursor: pointer;
|
|
1187
1187
|
&:focus-visible {
|
|
1188
1188
|
outline-offset: 2px;
|
|
1189
|
-
border-radius: ${
|
|
1190
|
-
outline: 2px solid ${
|
|
1189
|
+
border-radius: ${i.radius.xs};
|
|
1190
|
+
outline: 2px solid ${a.blue[800]};
|
|
1191
1191
|
}
|
|
1192
1192
|
&:hover {
|
|
1193
|
-
background-color: ${l(
|
|
1193
|
+
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
&:disabled {
|
|
1197
1197
|
opacity: 0.6;
|
|
1198
1198
|
cursor: not-allowed;
|
|
1199
1199
|
}
|
|
1200
|
-
`}},et=e=>tc("light",e),tt=e=>tc("dark",e);Kn(["click","mousedown","input"]);});var nc={};io(nc,{default:()=>f1});var d1,f1,rc=Dn(()=>{"use strict";te();ui();Un();d1=e=>{let[t,n]=Kr({prefix:"TanstackQueryDevtools"}),r=Dr(),o=S(()=>{let i=t.theme_preference||Vr;return i!=="system"?i:r()});return m(tr.Provider,{value:e,get children(){return m(Ur,{localStore:t,setLocalStore:n,get children(){return m(nr.Provider,{value:o,get children(){return m(Ja,{localStore:t,setLocalStore:n})}})}})}})},f1=d1});var oc={};io(oc,{default:()=>h1});var g1,h1,ic=Dn(()=>{"use strict";te();ui();Un();g1=e=>{let[t,n]=Kr({prefix:"TanstackQueryDevtools"}),r=Dr(),o=S(()=>{let i=t.theme_preference||Vr;return i!=="system"?i:r()});return m(tr.Provider,{value:e,get children(){return m(Ur,{disabled:!0,localStore:t,setLocalStore:n,get children(){return m(nr.Provider,{value:o,get children(){return m(ec,{get children(){return m(eo,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},h1=g1});var C1={};io(C1,{Studio:()=>kc});module.exports=Oc(C1);te();var Sm=require("../index-ESMXH6DI.css");te();te();var xc=require("@radix-ui/react-slot");te();var yc=require("@tanstack/react-query");te();var ro=require("@tanstack/react-query");te();te();var at=Ti(require("react"),1),to=require("@tanstack/react-query");te();Un();var sc=class{#t;#c;#u;#d;#e=!1;#f;#n;#r;#o;#i;#s;#l;#a;constructor(e){let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:a,errorTypes:l,styleNonce:c,shadowDOMTarget:d}=e;this.#t=q(t),this.#u=n,this.#d=r,this.#c=o,this.#f=c,this.#n=d,this.#r=q(i),this.#o=q(s),this.#i=q(a),this.#s=q(l)}setButtonPosition(e){this.#r[1](e)}setPosition(e){this.#o[1](e)}setInitialIsOpen(e){this.#i[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=wo(()=>{let n=this,[r]=this.#r,[o]=this.#o,[i]=this.#i,[s]=this.#s,[a]=this.#t,l;return this.#l?l=this.#l:(l=bo(()=>Promise.resolve().then(()=>(rc(),nc))),this.#l=l),Eo(this.#f,this.#n),m(l,W({get queryFlavor(){return n.#u},get version(){return n.#d},get onlineManager(){return n.#c},get shadowDOMTarget(){return n.#n}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#a=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#a?.(),this.#e=!1}},lc=class{#t;#c;#u;#d;#e=!1;#f;#n;#r;#o;#i;#s;#l;#a;#g;constructor(e){let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:a,errorTypes:l,styleNonce:c,shadowDOMTarget:d,onClose:u}=e;this.#t=q(t),this.#u=n,this.#d=r,this.#c=o,this.#f=c,this.#n=d,this.#r=q(i),this.#o=q(s),this.#i=q(a),this.#s=q(l),this.#l=q(u)}setButtonPosition(e){this.#r[1](e)}setPosition(e){this.#o[1](e)}setInitialIsOpen(e){this.#i[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}setOnClose(e){this.#l[1](()=>e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=wo(()=>{let n=this,[r]=this.#r,[o]=this.#o,[i]=this.#i,[s]=this.#s,[a]=this.#t,[l]=this.#l,c;return this.#a?c=this.#a:(c=bo(()=>Promise.resolve().then(()=>(ic(),oc))),this.#a=c),Eo(this.#f,this.#n),m(c,W({get queryFlavor(){return n.#u},get version(){return n.#d},get onlineManager(){return n.#c},get shadowDOMTarget(){return n.#n}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#g=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#g?.(),this.#e=!1}};var ac=require("react/jsx-runtime");function cc(e){let t=(0,to.useQueryClient)(e.client),n=at.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:a,shadowDOMTarget:l}=e,[c]=at.useState(new sc({client:t,queryFlavor:"React Query",version:"5",onlineManager:to.onlineManager,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:a,shadowDOMTarget:l}));return at.useEffect(()=>{c.setClient(t)},[t,c]),at.useEffect(()=>{r&&c.setButtonPosition(r)},[r,c]),at.useEffect(()=>{o&&c.setPosition(o)},[o,c]),at.useEffect(()=>{c.setInitialIsOpen(i||!1)},[i,c]),at.useEffect(()=>{c.setErrorTypes(s||[])},[s,c]),at.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),(0,ac.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}te();var Dt=Ti(require("react"),1),no=require("@tanstack/react-query");var uc=require("react/jsx-runtime");function dc(e){let t=(0,no.useQueryClient)(e.client),n=Dt.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i}=e,[s]=Dt.useState(new lc({client:t,queryFlavor:"React Query",version:"5",onlineManager:no.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose}));return Dt.useEffect(()=>{s.setClient(t)},[t,s]),Dt.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),Dt.useEffect(()=>{s.setErrorTypes(r||[])},[r,s]),Dt.useEffect(()=>(n.current&&s.mount(n.current),()=>{s.unmount()}),[s]),(0,uc.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var fc=process.env.NODE_ENV!=="development"?function(){return null}:cc,em=process.env.NODE_ENV!=="development"?function(){return null}:dc;var gc=require("nuqs/adapters/react"),En=require("react"),kn=require("react/jsx-runtime"),y1=new ro.QueryClient,hc=(0,En.createContext)(void 0);function mc(e){let{children:t,...n}=e,[r,o]=(0,En.useState)(null);return(0,kn.jsxs)(ro.QueryClientProvider,{client:y1,children:[(0,kn.jsx)(fc,{}),(0,kn.jsx)(gc.NuqsAdapter,{children:(0,kn.jsx)(hc.Provider,{value:{...n,activeTable:r,setActiveTable:o},children:t})})]})}function oo(){let e=(0,En.useContext)(hc);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}var pc=-1;function vc(){let{adapter:e}=oo();return(0,yc.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}}},initialDataUpdatedAt:pc,queryFn:async({signal:t})=>{let[n,r]=await e.introspect({abortSignal:t});if(n)throw n;return r},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===pc?0:1/0})}te();var bc=require("clsx"),wc=require("tailwind-merge");function di(...e){return(0,wc.twMerge)((0,bc.clsx)(e))}var yt=require("react/jsx-runtime"),cr=()=>{let{data:e}=vc(),{activeTable:t,adapter:n,setActiveTable:r}=oo();return(0,yt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,yt.jsx)(cr.Block,{label:"Tables",children:Object.values(e.schemas[n.defaultSchema||"db"].tables).map(o=>(0,yt.jsx)(cr.Item,{isActive:t===o,onClick:i=>{i.preventDefault(),t!==o&&r(o)},className:`ps-px-2 ps-py-1 ps-cursor-pointer ps-rounded ${t===o?"ps-bg-primary ps-text-white":"ps-hover:ps-bg-gray-100"}`,children:o.name},`${o.schema}-${o.name}`))})})},v1=({className:e,label:t,children:n,...r})=>(0,yt.jsxs)("div",{className:di("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...r,children:[(0,yt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,yt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,yt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:n})]}),b1=({className:e,asChild:t=!1,isActive:n,size:r,...o})=>(0,yt.jsx)(t?xc.Slot:"button",{"data-sidebar":"menu-button","data-size":r,"data-active":n,className:di("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",e),...o});cr.Block=v1;cr.Item=b1;var Cc=cr;te();var on=require("react"),$c=require("react/jsx-runtime"),w1={theme:"system",setTheme:()=>null},x1=(0,on.createContext)(w1);function Sc({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){let[o,i]=(0,on.useState)(()=>localStorage.getItem(n)||t);(0,on.useEffect)(()=>{let a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);let s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return(0,$c.jsx)(x1.Provider,{...r,value:s,children:e})}var Ut=require("react/jsx-runtime");function kc(e){let{adapter:t}=e;return t?(0,Ut.jsx)(Sc,{children:(0,Ut.jsx)(mc,{adapter:t,children:(0,Ut.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-rounded-sm ps-bg-background ps-p-4 ps-relative",children:[(0,Ut.jsx)(Cc,{}),(0,Ut.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg"})]})})}):(console.error("No adapter provided to Studio component"),(0,Ut.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1200
|
+
`}},pt=e=>dd("light",e),mt=e=>dd("dark",e);bo(["click","mousedown","input"]);});var fd={};tn(fd,{default:()=>ax});var tx,ax,cd=fo(()=>{"use strict";P();ss();wo();tx=e=>{let[t,a]=$r({prefix:"TanstackQueryDevtools"}),o=wr(),r=w(()=>{let n=t.theme_preference||Br;return n!=="system"?n:o()});return h($o.Provider,{value:e,get children(){return h(Or,{localStore:t,setLocalStore:a,get children(){return h(Bo.Provider,{value:r,get children(){return h(id,{localStore:t,setLocalStore:a})}})}})}})},ax=tx});var pd={};tn(pd,{default:()=>rx});var ox,rx,md=fo(()=>{"use strict";P();ss();wo();ox=e=>{let[t,a]=$r({prefix:"TanstackQueryDevtools"}),o=wr(),r=w(()=>{let n=t.theme_preference||Br;return n!=="system"?n:o()});return h($o.Provider,{value:e,get children(){return h(Or,{disabled:!0,localStore:t,setLocalStore:a,get children(){return h(Bo.Provider,{value:r,get children(){return h(ud,{get children(){return h(Wr,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},rx=ox});var Ex={};tn(Ex,{Studio:()=>hf});module.exports=If(Ex);P();var kL=require("../index-ESMXH6DI.css");P();P();var Dd=require("@radix-ui/react-slot");P();var kd=require("@tanstack/react-query");P();var Qr=require("@tanstack/react-query");P();P();var Lt=Ze(require("react"),1),jr=require("@tanstack/react-query");P();wo();var gd=class{#t;#u;#d;#f;#e=!1;#c;#a;#o;#r;#n;#s;#l;#i;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:f}=e;this.#t=O(t),this.#d=a,this.#f=o,this.#u=r,this.#c=u,this.#a=f,this.#o=O(n),this.#r=O(s),this.#n=O(i),this.#s=O(l)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=hn(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,l;return this.#l?l=this.#l:(l=gn(()=>Promise.resolve().then(()=>(cd(),fd))),this.#l=l),bn(this.#c,this.#a),h(l,Y({get queryFlavor(){return a.#d},get version(){return a.#f},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#i=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#i?.(),this.#e=!1}},hd=class{#t;#u;#d;#f;#e=!1;#c;#a;#o;#r;#n;#s;#l;#i;#p;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:f,onClose:d}=e;this.#t=O(t),this.#d=a,this.#f=o,this.#u=r,this.#c=u,this.#a=f,this.#o=O(n),this.#r=O(s),this.#n=O(i),this.#s=O(l),this.#l=O(d)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}setOnClose(e){this.#l[1](()=>e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=hn(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,[l]=this.#l,u;return this.#i?u=this.#i:(u=gn(()=>Promise.resolve().then(()=>(md(),pd))),this.#i=u),bn(this.#c,this.#a),h(u,Y({get queryFlavor(){return a.#d},get version(){return a.#f},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#p=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};var xd=require("react/jsx-runtime");function yd(e){let t=(0,jr.useQueryClient)(e.client),a=Lt.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Lt.useState(new gd({client:t,queryFlavor:"React Query",version:"5",onlineManager:jr.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Lt.useEffect(()=>{u.setClient(t)},[t,u]),Lt.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Lt.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Lt.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Lt.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Lt.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,xd.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}P();var Xt=Ze(require("react"),1),Xr=require("@tanstack/react-query");var vd=require("react/jsx-runtime");function Cd(e){let t=(0,Xr.useQueryClient)(e.client),a=Xt.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=Xt.useState(new hd({client:t,queryFlavor:"React Query",version:"5",onlineManager:Xr.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return Xt.useEffect(()=>{s.setClient(t)},[t,s]),Xt.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),Xt.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),Xt.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,vd.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var Ld=process.env.NODE_ENV!=="development"?function(){return null}:yd,cy=process.env.NODE_ENV!=="development"?function(){return null}:Cd;var bd=require("nuqs/adapters/react"),ao=require("react"),to=require("react/jsx-runtime"),lx=new Qr.QueryClient,Id=(0,ao.createContext)(void 0);function wd(e){let{children:t,...a}=e,[o,r]=(0,ao.useState)(null);return(0,to.jsxs)(Qr.QueryClientProvider,{client:lx,children:[(0,to.jsx)(Ld,{}),(0,to.jsx)(bd.NuqsAdapter,{children:(0,to.jsx)(Id.Provider,{value:{...a,activeTable:o,setActiveTable:r},children:t})})]})}function Tt(){let e=(0,ao.useContext)(Id);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}var Sd=-1;function Pd(){let{adapter:e}=Tt();return(0,kd.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}}},initialDataUpdatedAt:Sd,queryFn:async({signal:t})=>{let[a,o]=await e.introspect({abortSignal:t});if(a)throw a;return o},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===Sd?0:1/0})}P();var Md=require("clsx"),Ad=require("tailwind-merge");function _(...e){return(0,Ad.twMerge)((0,Md.clsx)(e))}var Rt=require("react/jsx-runtime"),_o=()=>{let{data:e}=Pd(),{activeTable:t,adapter:a,setActiveTable:o}=Tt();return(0,Rt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,Rt.jsx)(_o.Block,{label:"Tables",children:Object.values(e.schemas[a.defaultSchema||"db"].tables).map(r=>(0,Rt.jsx)(_o.Item,{isActive:t===r,onClick:n=>{n.preventDefault(),t!==r&&o(r)},className:`ps-px-2 ps-py-1 ps-cursor-pointer ps-rounded ${t===r?"ps-bg-primary ps-text-white":"ps-hover:ps-bg-gray-100"}`,children:r.name},`${r.schema}-${r.name}`))})})},ix=({className:e,label:t,children:a,...o})=>(0,Rt.jsxs)("div",{className:_("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...o,children:[(0,Rt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,Rt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,Rt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),ux=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,Rt.jsx)(t?Dd.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:_("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",e),...r});_o.Block=ix;_o.Item=ux;var Td=_o;P();P();var Rd=require("@tanstack/react-query");function Fd(){let{activeTable:e,adapter:t}=Tt();return(0,Rd.useQuery)({enabled:!!e,gcTime:0,queryKey:["active-table",e?.schema,e?.name,"query"],queryFn:async({signal:a})=>{let[o,r]=await t.query({table:e.name,schema:e.schema},{abortSignal:a});if(o)throw o;return r}})}P();var va=require("@dnd-kit/core"),no=require("@dnd-kit/sortable"),df=require("@dnd-kit/utilities"),$t=require("@tanstack/react-table"),bt=require("react");P();var Qt=Ze(require("react"),1);var Ft=require("react/jsx-runtime"),ls=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,Ft.jsx)("table",{ref:a,className:_("ps-w-full ps-caption-bottom ps-text-sm table-fixed",e),...t})}));ls.displayName="Table";var is=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("thead",{ref:a,className:_("[&_tr]:ps-border-b",e),...t}));is.displayName="TableHeader";var us=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tbody",{ref:a,className:_("[&_tr:last-child]:ps-border-0",e),...t}));us.displayName="TableBody";var dx=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tfoot",{ref:a,className:_("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));dx.displayName="TableFooter";var Vo=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tr",{ref:a,className:_("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));Vo.displayName="TableRow";var Zr=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("th",{ref:a,className:_("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));Zr.displayName="TableHead";var Go=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("td",{ref:a,className:_("ps-p-2 ps-align-middle [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));Go.displayName="TableCell";var fx=Qt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("caption",{ref:a,className:_("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));fx.displayName="TableCaption";P();P();var Vd=require("@uiw/codemirror-theme-tokyo-night"),Gd=Ze(require("@uiw/react-codemirror"),1);P();var Zt=Ze(require("@radix-ui/react-popover"),1),et=Ze(require("react"),1);var oo=require("react/jsx-runtime"),Ed=et.createContext(null),ds=({children:e,...t})=>{let[a,o]=et.useState(!1);return(0,oo.jsx)(Ed.Provider,{value:{open:a,setOpen:o},children:(0,oo.jsx)(Zt.Root,{open:a,onOpenChange:o,...t,children:e})})};ds.displayName="PopoverCell";var fs=et.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=et.useContext(Ed),[s,i]=et.useState(!1),l=et.useRef(null);return et.useEffect(()=>{let d=p=>{let c=p.target;l.current&&!l.current.contains(c)&&(console.log("Outside click - removing focus"),i(!1))};return document.addEventListener("click",d),()=>document.removeEventListener("click",d)},[]),(0,oo.jsx)(Zt.Trigger,{ref:d=>{typeof r=="function"?r(d):r&&(r.current=d),l.current=d},onClick:d=>{d.preventDefault(),console.log("Click handler - setting focus to true"),i(!0)},onDoubleClick:d=>{d.preventDefault(),n?.setOpen(!0),t?.()},"data-focus":s.toString(),className:_("w-full h-full cursor-pointer",a),...o,children:e})});fs.displayName="PopoverCellTrigger";var cs=et.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,oo.jsx)(Zt.Portal,{children:(0,oo.jsx)(Zt.Content,{ref:r,align:t,sideOffset:a,className:_("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));cs.displayName=Zt.Content.displayName;P();P();P();var Jr=require("react");P();var $d=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yr=(...e)=>e.filter((t,a,o)=>!!t&&o.indexOf(t)===a).join(" ");P();var Ko=require("react");P();var Bd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Od=(0,Ko.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,Ko.createElement)("svg",{ref:l,...Bd,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Yr("lucide",r),...i},[...s.map(([u,f])=>(0,Ko.createElement)(u,f)),...Array.isArray(n)?n:[n]]));var fe=(e,t)=>{let a=(0,Jr.forwardRef)(({className:o,...r},n)=>(0,Jr.createElement)(Od,{ref:n,iconNode:t,className:Yr(`lucide-${$d(e)}`,o),...r}));return a.displayName=`${e}`,a};P();var ha=fe("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);P();var Wo=fe("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);P();var Yt=fe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);P();var ro=fe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);P();var jo=fe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);P();var Jt=fe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);P();var Xo=fe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);P();var Qo=fe("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);P();var Zo=fe("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);P();var Fa=fe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);P();var Yo=fe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);P();var xa=fe("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);P();var Jo=fe("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);P();var er=fe("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);P();var tr=fe("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);var Ud=require("react");P();var te=Ze(require("@radix-ui/react-context-menu"),1);var ea=Ze(require("react"),1);var $e=require("react/jsx-runtime"),qd=te.Root,Nd=te.Trigger;var cx=ea.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,$e.jsxs)(te.SubTrigger,{ref:r,className:_("ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[state=open]:ps-bg-accent data-[state=open]:ps-text-accent-foreground",t&&"ps-pl-8",e),...o,children:[a,(0,$e.jsx)(Jt,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));cx.displayName=te.SubTrigger.displayName;var px=ea.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(te.SubContent,{ref:a,className:_("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t}));px.displayName=te.SubContent.displayName;var ps=ea.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(te.Portal,{children:(0,$e.jsx)(te.Content,{ref:a,className:_("ps-z-50 ps-max-h-[--radix-context-menu-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t})}));ps.displayName=te.Content.displayName;var ms=ea.forwardRef(({className:e,inset:t,...a},o)=>(0,$e.jsx)(te.Item,{ref:o,className:_("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",t&&"ps-pl-8",e),...a}));ms.displayName=te.Item.displayName;var mx=ea.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,$e.jsxs)(te.CheckboxItem,{ref:r,className:_("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,$e.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,$e.jsx)(te.ItemIndicator,{children:(0,$e.jsx)(Yt,{className:"ps-h-4 ps-w-4"})})}),t]}));mx.displayName=te.CheckboxItem.displayName;var gx=ea.forwardRef(({className:e,children:t,...a},o)=>(0,$e.jsxs)(te.RadioItem,{ref:o,className:_("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,$e.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,$e.jsx)(te.ItemIndicator,{children:(0,$e.jsx)(Fa,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));gx.displayName=te.RadioItem.displayName;var hx=ea.forwardRef(({className:e,inset:t,...a},o)=>(0,$e.jsx)(te.Label,{ref:o,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));hx.displayName=te.Label.displayName;var xx=ea.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(te.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));xx.displayName=te.Separator.displayName;var yx=({className:e,...t})=>(0,$e.jsx)("span",{className:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});yx.displayName="ContextMenuShortcut";var Ea=require("react/jsx-runtime"),gs=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,Ud.isValidElement)(e)){let t=e.props;return e.type&&typeof e.type=="function"&&e.type.name==="RevealText"?t.text||"":e.type&&typeof e.type=="function"&&e.type.name==="NullValue"?"NULL":t.children?gs(t.children):""}return Array.isArray(e)?e.map(gs).join(""):""},zd=({children:e})=>(0,Ea.jsxs)(qd,{children:[(0,Ea.jsx)(Nd,{className:"ps-block ps-w-full ps-p-[var(--studio-cell-spacing)]",children:e}),(0,Ea.jsx)(ps,{children:(0,Ea.jsxs)(ms,{onClick:()=>{let t=gs(e);navigator.clipboard.writeText(t).catch(a=>{console.error("Failed to copy to clipboard:",a)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,Ea.jsx)(Yo,{size:12}),"Copy"]})})]});P();var _d=require("react/jsx-runtime");function Hd(){return(0,_d.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})}var ta=require("react/jsx-runtime");function Kd({cell:e,getPinningStyles:t,dataType:a,isRelational:o,relatesTo:r,relationField:n}){let s=e.getValue(),i=s==null,l=u=>{if(u==null)return"NULL";if(typeof u=="object")try{return JSON.stringify(u,null,2)}catch(f){return console.error("Error stringifying value:",f),String(u)}return String(u)};return(0,ta.jsxs)(ds,{children:[(0,ta.jsx)(fs,{asChild:!0,children:(0,ta.jsx)(Go,{...t(e.column),"data-cell-type":"data","data-type":a.toLowerCase(),"data-relational":o?"true":void 0,"data-relates-to":r,"data-relation-field":n,className:_(t(e.column).className,"ps-p-0",e.column.getIsPinned()&&"ps-sticky"),children:(0,ta.jsx)(zd,{children:i?(0,ta.jsx)(Hd,{}):l(s)})})}),(0,ta.jsx)(cs,{align:"start",alignOffset:0,sideOffset:0,className:"ps-min-w-(--radix-popover-trigger-width) ps-rounded-none ps-bg-muted ps-p-0",children:(0,ta.jsx)(Gd.default,{value:l(s),theme:Vd.tokyoNight,height:"100px",basicSetup:{lineNumbers:!0,foldGutter:!1,dropCursor:!1,allowMultipleSelections:!1,indentOnInput:!1},onChange:u=>{console.log("New value:",u)}})})]},e.id)}var jd=require("react/jsx-runtime");function Wd({cell:e,getPinningStyles:t,dataType:a}){let o={cell:e,getPinningStyles:t},r=e.column.columnDef.meta,n={...o,isRelational:r?.isRelational,relatesTo:r?.relatesTo,relationField:r?.relationField};return(0,jd.jsx)(Kd,{...n,dataType:a||"STRING"})}P();var tf=require("@tanstack/react-table");P();var Xd=require("@radix-ui/react-slot"),Qd=require("class-variance-authority"),Zd=Ze(require("react"),1);var Yd=require("react/jsx-runtime"),vx=(0,Qd.cva)("ps-inline-flex ps-items-center ps-justify-center ps-gap-2 ps-whitespace-nowrap ps-rounded-md ps-text-sm ps-font-medium ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-pointer-events-none disabled:ps-opacity-50 [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",{variants:{variant:{default:"ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/90",destructive:"ps-bg-destructive ps-text-destructive-foreground ps-shadow-sm hover:ps-bg-destructive/90",outline:"ps-border ps-border-input ps-bg-background ps-shadow-sm hover:ps-bg-accent hover:ps-text-accent-foreground",secondary:"ps-bg-secondary ps-text-secondary-foreground ps-shadow-sm hover:ps-bg-secondary/80",ghost:"hover:ps-bg-accent hover:ps-text-accent-foreground",link:"ps-text-primary ps-underline-offset-4 hover:ps-underline"},size:{default:"ps-h-9 ps-px-4 ps-py-2",sm:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",lg:"ps-h-10 ps-rounded-md ps-px-8",icon:"ps-h-9 ps-w-9"}},defaultVariants:{variant:"default",size:"default"}}),Et=Zd.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,Yd.jsx)(o?Xd.Slot:"button",{className:_(vx({variant:t,size:a,className:e})),ref:n,...r}));Et.displayName="Button";P();var ae=Ze(require("@radix-ui/react-dropdown-menu"),1);var aa=Ze(require("react"),1);var Be=require("react/jsx-runtime"),Jd=ae.Root,ef=ae.Trigger;var Cx=aa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Be.jsxs)(ae.SubTrigger,{ref:r,className:_("ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent data-[state=open]:ps-bg-accent [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",t&&"ps-pl-8",e),...o,children:[a,(0,Be.jsx)(Jt,{className:"ps-ml-auto"})]}));Cx.displayName=ae.SubTrigger.displayName;var Lx=aa.forwardRef(({className:e,...t},a)=>(0,Be.jsx)(ae.SubContent,{ref:a,className:_("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));Lx.displayName=ae.SubContent.displayName;var hs=aa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Be.jsx)(ae.Portal,{children:(0,Be.jsx)(ae.Content,{ref:o,sideOffset:t,className:_("ps-z-50 ps-max-h-[var(--radix-dropdown-menu-content-available-height)] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md","data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}));hs.displayName=ae.Content.displayName;var en=aa.forwardRef(({className:e,inset:t,...a},o)=>(0,Be.jsx)(ae.Item,{ref:o,className:_("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50 [&>svg]:ps-size-4 [&>svg]:ps-shrink-0",t&&"ps-pl-8",e),...a}));en.displayName=ae.Item.displayName;var bx=aa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Be.jsxs)(ae.CheckboxItem,{ref:r,className:_("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Be.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Be.jsx)(ae.ItemIndicator,{children:(0,Be.jsx)(Yt,{className:"ps-h-4 ps-w-4"})})}),t]}));bx.displayName=ae.CheckboxItem.displayName;var Ix=aa.forwardRef(({className:e,children:t,...a},o)=>(0,Be.jsxs)(ae.RadioItem,{ref:o,className:_("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Be.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Be.jsx)(ae.ItemIndicator,{children:(0,Be.jsx)(Fa,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));Ix.displayName=ae.RadioItem.displayName;var wx=aa.forwardRef(({className:e,inset:t,...a},o)=>(0,Be.jsx)(ae.Label,{ref:o,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));wx.displayName=ae.Label.displayName;var Sx=aa.forwardRef(({className:e,...t},a)=>(0,Be.jsx)(ae.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));Sx.displayName=ae.Separator.displayName;var kx=({className:e,...t})=>(0,Be.jsx)("span",{className:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});kx.displayName="DropdownMenuShortcut";var ke=require("react/jsx-runtime");function xs({header:e}){let t=e.column.columnDef.meta,a=t?.dataType,o=t?.isRelational;return(0,ke.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full",children:[(0,ke.jsxs)("div",{className:"ps-flex-1 ps-flex ps-items-center ps-justify-between",children:[o&&(0,ke.jsx)(Jo,{size:14,className:"text-blue-700"}),(0,ke.jsxs)("div",{className:"ps-align-text-bottom ps-leading-none ps-h-[20px]",children:[(0,ke.jsx)("span",{className:"ps-inline-block ps-text-foreground ps-font-bold ps-text-sm",children:e.isPlaceholder?null:(0,tf.flexRender)(e.column.columnDef.header,e.getContext())}),a&&a!=="NONE"&&(0,ke.jsx)("span",{className:"ps-inline-block ps-ml-2 ps-text-xs ps-font-mono ps-text-muted-foreground/70 ps-lowercase",children:a})]}),(0,ke.jsx)("span",{className:"ps-flex ps-items-center ps-gap-1",children:e.column.getCanPin()&&e.column.id!=="select"&&(0,ke.jsxs)(Jd,{children:[(0,ke.jsx)(ef,{asChild:!0,children:(0,ke.jsx)(Et,{variant:"ghost",size:"icon",children:(0,ke.jsx)(xa,{size:16})})}),(0,ke.jsxs)(hs,{children:[e.column.getCanSort()&&(0,ke.jsx)(en,{onClick:()=>e.column.toggleSorting(e.column.getIsSorted()==="asc"),children:(0,ke.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[e.column.getIsSorted()==="asc"?(0,ke.jsx)(ha,{size:16}):(0,ke.jsx)(Wo,{size:16}),e.column.getIsSorted()==="asc"?"Sort descending":"Sort ascending"]})}),(0,ke.jsx)(en,{onClick:()=>e.column.pin(e.column.getIsPinned()?!1:"left"),children:e.column.getIsPinned()?(0,ke.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ke.jsx)(er,{size:16}),"Unpin column"]}):(0,ke.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ke.jsx)(tr,{size:16}),"Pin column"]})})]})]})})]}),e.column.getCanResize()&&(0,ke.jsx)("button",{type:"button",tabIndex:0,onMouseDown:r=>{r.stopPropagation(),e.getResizeHandler()(r)},onTouchStart:r=>{r.stopPropagation(),e.getResizeHandler()(r)},onClick:r=>r.stopPropagation(),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),e.getResizeHandler()(r))},className:_("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-3 ps-cursor-col-resize","ps-select-none ps-touch-none ps-transition-colors ps-group","ps-border-0 ps-bg-transparent",e.column.getIsResizing()&&"ps-bg-gray-300","before:ps-absolute before:ps-right-[3px] before:ps-top-1/2 before:ps--translate-y-1/2","after:ps-absolute after:ps-right-[7px] after:ps-top-1/2 after:ps--translate-y-1/2","before:ps-w-[2px] before:ps-h-0 before:ps-bg-gray-400 before:ps-rounded-full before:ps-opacity-0","after:ps-w-[2px] after:ps-h-0 after:ps-bg-gray-400 after:ps-rounded-full after:ps-opacity-0","before:ps-transition-all before:ps-duration-200","after:ps-transition-all after:ps-duration-200","group-hover:before:ps-opacity-100","group-hover:after:ps-opacity-100","group-hover:before:ps-h-4","group-hover:after:ps-h-4","group-active:ps-bg-transparent group-active:before:ps-bg-white group-active:after:ps-bg-white",e.column.getIsResizing()&&"before:ps-opacity-100"),"aria-label":"Resize column"})]})}P();P();var af=Ze(require("react"),1);var of=require("react/jsx-runtime"),ys=af.forwardRef(({className:e,type:t,...a},o)=>(0,of.jsx)("input",{type:t,className:_("ps-flex ps-h-9 ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-1 ps-text-base ps-shadow-sm ps-transition-colors file:ps-border-0 file:ps-bg-transparent file:ps-text-sm file:ps-font-medium file:ps-text-foreground placeholder:ps-text-muted-foreground focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 md:ps-text-sm",e),ref:o,...a}));ys.displayName="Input";P();var oe=Ze(require("@radix-ui/react-select"),1);var ya=Ze(require("react"),1);var De=require("react/jsx-runtime"),rf=oe.Root;var nf=oe.Value,vs=ya.forwardRef(({className:e,children:t,...a},o)=>(0,De.jsxs)(oe.Trigger,{ref:o,className:_("ps-flex ps-h-9 ps-w-full ps-items-center ps-justify-between ps-whitespace-nowrap ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-2 ps-text-sm ps-shadow-sm ps-ring-offset-background data-[placeholder]:ps-text-muted-foreground focus:ps-outline-none focus:ps-ring-1 focus:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 [&>span]:ps-line-clamp-1",e),...a,children:[t,(0,De.jsx)(oe.Icon,{asChild:!0,children:(0,De.jsx)(ro,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));vs.displayName=oe.Trigger.displayName;var sf=ya.forwardRef(({className:e,...t},a)=>(0,De.jsx)(oe.ScrollUpButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,De.jsx)(Xo,{className:"ps-h-4 ps-w-4"})}));sf.displayName=oe.ScrollUpButton.displayName;var lf=ya.forwardRef(({className:e,...t},a)=>(0,De.jsx)(oe.ScrollDownButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,De.jsx)(ro,{className:"ps-h-4 ps-w-4"})}));lf.displayName=oe.ScrollDownButton.displayName;var Cs=ya.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,De.jsx)(oe.Portal,{children:(0,De.jsxs)(oe.Content,{ref:r,className:_("ps-relative ps-z-50 ps-max-h-[--radix-select-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-select-content-transform-origin]",a==="popper"&&"data-[side=bottom]:ps-translate-y-1 data-[side=left]:ps--translate-x-1 data-[side=right]:ps-translate-x-1 data-[side=top]:ps--translate-y-1",e),position:a,...o,children:[(0,De.jsx)(sf,{}),(0,De.jsx)(oe.Viewport,{className:_("ps-p-1",a==="popper"&&"ps-h-[var(--radix-select-trigger-height)] ps-w-full ps-min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,De.jsx)(lf,{})]})}));Cs.displayName=oe.Content.displayName;var Px=ya.forwardRef(({className:e,...t},a)=>(0,De.jsx)(oe.Label,{ref:a,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",e),...t}));Px.displayName=oe.Label.displayName;var Ls=ya.forwardRef(({className:e,children:t,...a},o)=>(0,De.jsxs)(oe.Item,{ref:o,className:_("ps-relative ps-flex ps-w-full ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-2 ps-pr-8 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,De.jsx)("span",{className:"ps-absolute ps-right-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,De.jsx)(oe.ItemIndicator,{children:(0,De.jsx)(Yt,{className:"ps-h-4 ps-w-4"})})}),(0,De.jsx)(oe.ItemText,{children:t})]}));Ls.displayName=oe.Item.displayName;var Mx=ya.forwardRef(({className:e,...t},a)=>(0,De.jsx)(oe.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));Mx.displayName=oe.Separator.displayName;var Pe=require("react/jsx-runtime"),Ax=[10,20,50,100];function uf({table:e,variant:t="basic",className:a}){let{pageSize:o,pageIndex:r}=e.getState().pagination,n=e.getPageCount();return(0,Pe.jsx)("div",{className:_("ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-4 ps-px-4",a),children:t==="basic"?(0,Pe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Pe.jsx)(Et,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:"Previous"}),(0,Pe.jsx)(Et,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:"Next"})]}):(0,Pe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Pe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Pe.jsx)(Et,{variant:"outline",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:(0,Pe.jsx)(Qo,{className:"ps-w-4 ps-h-4"})}),(0,Pe.jsx)(Et,{variant:"outline",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:(0,Pe.jsx)(jo,{className:"ps-w-4 ps-h-4"})}),(0,Pe.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Pe.jsx)(ys,{type:"number",min:1,max:n,value:r+1,className:"ps-w-12",onChange:s=>{let i=s.target.value?Number(s.target.value)-1:0;e.setPageIndex(i)}}),(0,Pe.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",n]})]}),(0,Pe.jsx)(Et,{variant:"outline",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:(0,Pe.jsx)(Jt,{className:"ps-w-4 ps-h-4"})}),(0,Pe.jsx)(Et,{variant:"outline",onClick:()=>e.setPageIndex(n-1),disabled:!e.getCanNextPage(),children:(0,Pe.jsx)(Zo,{className:"ps-w-4 ps-h-4"})})]}),(0,Pe.jsxs)(rf,{value:o.toString(),onValueChange:s=>e.setPageSize(Number(s)),children:[(0,Pe.jsx)(vs,{children:(0,Pe.jsx)(nf,{})}),(0,Pe.jsx)(Cs,{children:Ax.map(s=>(0,Pe.jsxs)(Ls,{value:s.toString(),children:[s," per page"]},s))})]})]})})}P();var ar=e=>{let t=e.getIsPinned(),a=t==="left"&&e.getIsLastColumn("left"),o=t==="right"&&e.getIsFirstColumn("right");return{className:_("ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",t&&["ps-sticky ps-bg-background ps-shadow-[1px_0_0_0_hsl(var(--border))]",t==="left"?"ps-left-0":"ps-right-0","ps-z-20"],!t&&"ps-relative ps-z-10",a&&"ps-shadow-[1px_0_0_0_hsl(var(--border))]",o&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.getSize(),left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0}}};var ne=require("react/jsx-runtime"),Dx=e=>{let{activeTable:t}=Tt();return t?(0,ne.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,ne.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,ne.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:(0,ne.jsx)("h1",{className:"ps-text-sm ps-font-medium",children:t.name})})})}):null},Tx=({header:e,children:t,getPinningStyles:a})=>{let{attributes:o,listeners:r,transform:n,transition:s,setNodeRef:i,isDragging:l,isOver:u}=(0,no.useSortable)({id:e.id}),f=e.column.columnDef.meta,d={transform:df.CSS.Transform.toString(n),transition:s,...a(e.column).style,cursor:"grab",touchAction:"none"};return(0,ne.jsxs)(Zr,{ref:i,...o,...r,style:d,"data-relational":f?.isRelational?"true":void 0,"data-relates-to":f?.relatesTo,"data-relation-field":f?.relationField,className:_("ps-group",a(e.column).className,l&&"ps-opacity-50",u&&"ps-bg-gray-100","ps-select-none ps-touch-none ps-relative",e.column.getIsPinned()&&"ps-sticky"),children:[t,u&&(0,ne.jsx)("div",{className:"ps-absolute ps-inset-0 ps-border-2 ps-border-primary ps-rounded-sm ps-pointer-events-none"})]})};function ff({data:e=[],columns:t}){console.log("Data received in StudioGrid:",e);let[a,o]=(0,bt.useState)([]),[r,n]=(0,bt.useState)([]),[s,i]=(0,bt.useState)({}),[l,u]=(0,bt.useState)({left:[],right:[]}),[f,d]=(0,bt.useState)([]),[p,c]=(0,bt.useState)("");(0,bt.useEffect)(()=>{if(t&&t.length>0){let C=t.map(D=>D.id);if(f.length===0){d(C);return}let L=[...f],b=L.filter(D=>!t.some($=>$.id===D));b.forEach(D=>{let $=L.indexOf(D);$!==-1&&L.splice($,1)});let T=C.filter(D=>!L.includes(D));T.length>0&&L.push(...T),(b.length>0||T.length>0)&&d(L)}},[t,f]);let m=(0,va.useSensor)(va.MouseSensor,{activationConstraint:{distance:10}}),g=(0,va.useSensors)(m),x=C=>{let{active:L,over:b}=C;if(b&&L.id!==b.id){let T=v.getColumn(L.id),D=v.getColumn(b.id);if(!T||!D)return;let $=T.getIsPinned(),I=D.getIsPinned();if($!==I)return;let M=f.indexOf(L.id),H=f.indexOf(b.id);if(M===-1||H===-1)return;let U=[...f];U.splice(M,1),U.splice(H,0,L.id),d(U)}},y=(0,bt.useMemo)(()=>{if(!t||t.length===0)return console.log("No columns configuration available"),[];let C=(L,b)=>{if(L==null)return"";switch(b){case"TIMESTAMP":return L?new Date(L).toLocaleString():"";case"UUID":case"STRING":return String(L);default:return String(L)}};return t.map(L=>({accessorKey:L.id,header:()=>(0,ne.jsx)("div",{className:"ps-font-medium",children:L.id}),cell:({getValue:b})=>C(b(),L.type),meta:{dataType:L.type,isRelational:L.isRelational,relatesTo:L.relatesTo,relationField:L.relationField}}))},[t]),v=(0,$t.useReactTable)({data:e||[],defaultColumn:{size:200,minSize:50,maxSize:500},columns:y,getCoreRowModel:(0,$t.getCoreRowModel)(),onSortingChange:o,getSortedRowModel:(0,$t.getSortedRowModel)(),getPaginationRowModel:(0,$t.getPaginationRowModel)(),getFilteredRowModel:(0,$t.getFilteredRowModel)(),onColumnFiltersChange:n,enableColumnResizing:!0,columnResizeMode:"onChange",onColumnSizingChange:i,enableColumnPinning:!0,onColumnPinningChange:u,onGlobalFilterChange:c,globalFilterFn:(C,L,b)=>{let T=C.getValue(L);return T==null?!1:String(T).toLowerCase().includes(String(b).toLowerCase())},state:{sorting:a,columnFilters:r,columnSizing:s,columnPinning:l,columnOrder:f,globalFilter:p}});return!e||e.length===0?(0,ne.jsxs)("div",{className:"ps-p-4 ps-border ps-rounded-md ps-w-full",children:[(0,ne.jsx)("p",{className:"ps-text-lg ps-font-semibold",children:"No data available."}),(0,ne.jsx)("p",{className:"ps-text-sm ps-text-gray-500",children:e?"Data array is empty.":"Data is undefined."})]}):(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b",children:(0,ne.jsx)(Dx,{_table:v})}),(0,ne.jsx)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full",children:(0,ne.jsxs)("div",{className:"ps-flex ps-flex-col ps-w-full ps-h-full ps-overflow-scroll",children:[(0,ne.jsx)(va.DndContext,{sensors:g,onDragEnd:x,children:(0,ne.jsxs)(ls,{children:[(0,ne.jsx)(is,{children:v.getHeaderGroups().map(C=>(0,ne.jsx)(Vo,{className:_("ps-relative",v.getLeftLeafHeaders().some(L=>L.column.getIsPinned()==="left")&&`ps-pl-[${v.getLeftLeafHeaders().filter(L=>L.column.getIsPinned()==="left").reduce((L,b)=>L+b.getSize(),0)}px]`),children:(0,ne.jsx)(no.SortableContext,{items:C.headers.map(L=>L.id),strategy:no.horizontalListSortingStrategy,children:C.headers.map(L=>L.column.id==="select"?(0,ne.jsx)(Zr,{className:_("ps-px-[var(--studio-cell-spacing)]",ar(L.column).className,L.column.getIsPinned()&&"ps-sticky"),style:ar(L.column).style,"data-cell-type":"select",children:(0,ne.jsx)(xs,{header:L})},L.id):(0,ne.jsx)(Tx,{header:L,table:v,getPinningStyles:ar,children:(0,ne.jsx)(xs,{header:L})},L.id))})},C.id))}),(0,ne.jsx)(us,{children:v.getRowModel().rows?.length?v.getRowModel().rows.map(C=>(0,ne.jsx)(Vo,{className:_("ps-bg-table-row ps-odd:bg-table-row-odd ps-group"),children:C.getVisibleCells().map(L=>(0,ne.jsx)(Wd,{cell:L,getPinningStyles:ar,dataType:t.find(b=>b.id===L.column.id)?.type},L.id))},C.id)):(0,ne.jsx)(Vo,{children:(0,ne.jsx)(Go,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:"No results."})})})]})}),(0,ne.jsx)(uf,{table:v,variant:"numeric"})]})})]})}var pf=require("react/jsx-runtime");function cf(e){let{activeTable:t}=Tt(),{data:a,isLoading:o}=Fd();if(!t)return null;let r=a?.rows||[];return(0,pf.jsx)(ff,{columns:t.columns,isLoading:o,rows:r})}P();var $a=require("react"),gf=require("react/jsx-runtime"),Rx={theme:"system",setTheme:()=>null},Fx=(0,$a.createContext)(Rx);function mf({children:e,defaultTheme:t="system",storageKey:a="vite-ui-theme",...o}){let[r,n]=(0,$a.useState)(()=>localStorage.getItem(a)||t);(0,$a.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),r==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(l);return}i.classList.add(r)},[r]);let s={theme:r,setTheme:i=>{localStorage.setItem(a,i),n(i)}};return(0,gf.jsx)(Fx.Provider,{...o,value:s,children:e})}var oa=require("react/jsx-runtime");function hf(e){let{adapter:t}=e;return t?(0,oa.jsx)(mf,{children:(0,oa.jsx)(wd,{adapter:t,children:(0,oa.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-rounded-sm ps-bg-background ps-p-4 ps-relative",children:[(0,oa.jsx)(Td,{}),(0,oa.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg",children:(0,oa.jsx)(cf,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,oa.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1201
1201
|
/*! Bundled license information:
|
|
1202
1202
|
|
|
1203
1203
|
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|
|
@@ -1329,4 +1329,164 @@
|
|
|
1329
1329
|
* https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/utils/src/scrollIntoView.ts
|
|
1330
1330
|
*)
|
|
1331
1331
|
*)
|
|
1332
|
+
|
|
1333
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
1334
|
+
(**
|
|
1335
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1336
|
+
*
|
|
1337
|
+
* This source code is licensed under the ISC license.
|
|
1338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1339
|
+
*)
|
|
1340
|
+
|
|
1341
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
1342
|
+
(**
|
|
1343
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1344
|
+
*
|
|
1345
|
+
* This source code is licensed under the ISC license.
|
|
1346
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1347
|
+
*)
|
|
1348
|
+
|
|
1349
|
+
lucide-react/dist/esm/Icon.js:
|
|
1350
|
+
(**
|
|
1351
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1352
|
+
*
|
|
1353
|
+
* This source code is licensed under the ISC license.
|
|
1354
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1355
|
+
*)
|
|
1356
|
+
|
|
1357
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
1358
|
+
(**
|
|
1359
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1360
|
+
*
|
|
1361
|
+
* This source code is licensed under the ISC license.
|
|
1362
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1363
|
+
*)
|
|
1364
|
+
|
|
1365
|
+
lucide-react/dist/esm/icons/arrow-down-wide-narrow.js:
|
|
1366
|
+
(**
|
|
1367
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1368
|
+
*
|
|
1369
|
+
* This source code is licensed under the ISC license.
|
|
1370
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1371
|
+
*)
|
|
1372
|
+
|
|
1373
|
+
lucide-react/dist/esm/icons/arrow-up-wide-narrow.js:
|
|
1374
|
+
(**
|
|
1375
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1376
|
+
*
|
|
1377
|
+
* This source code is licensed under the ISC license.
|
|
1378
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1379
|
+
*)
|
|
1380
|
+
|
|
1381
|
+
lucide-react/dist/esm/icons/check.js:
|
|
1382
|
+
(**
|
|
1383
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1384
|
+
*
|
|
1385
|
+
* This source code is licensed under the ISC license.
|
|
1386
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1387
|
+
*)
|
|
1388
|
+
|
|
1389
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
1390
|
+
(**
|
|
1391
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1392
|
+
*
|
|
1393
|
+
* This source code is licensed under the ISC license.
|
|
1394
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1395
|
+
*)
|
|
1396
|
+
|
|
1397
|
+
lucide-react/dist/esm/icons/chevron-left.js:
|
|
1398
|
+
(**
|
|
1399
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1400
|
+
*
|
|
1401
|
+
* This source code is licensed under the ISC license.
|
|
1402
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1403
|
+
*)
|
|
1404
|
+
|
|
1405
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
1406
|
+
(**
|
|
1407
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1408
|
+
*
|
|
1409
|
+
* This source code is licensed under the ISC license.
|
|
1410
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1411
|
+
*)
|
|
1412
|
+
|
|
1413
|
+
lucide-react/dist/esm/icons/chevron-up.js:
|
|
1414
|
+
(**
|
|
1415
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1416
|
+
*
|
|
1417
|
+
* This source code is licensed under the ISC license.
|
|
1418
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1419
|
+
*)
|
|
1420
|
+
|
|
1421
|
+
lucide-react/dist/esm/icons/chevrons-left.js:
|
|
1422
|
+
(**
|
|
1423
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1424
|
+
*
|
|
1425
|
+
* This source code is licensed under the ISC license.
|
|
1426
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1427
|
+
*)
|
|
1428
|
+
|
|
1429
|
+
lucide-react/dist/esm/icons/chevrons-right.js:
|
|
1430
|
+
(**
|
|
1431
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1432
|
+
*
|
|
1433
|
+
* This source code is licensed under the ISC license.
|
|
1434
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1435
|
+
*)
|
|
1436
|
+
|
|
1437
|
+
lucide-react/dist/esm/icons/circle.js:
|
|
1438
|
+
(**
|
|
1439
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1440
|
+
*
|
|
1441
|
+
* This source code is licensed under the ISC license.
|
|
1442
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1443
|
+
*)
|
|
1444
|
+
|
|
1445
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
1446
|
+
(**
|
|
1447
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1448
|
+
*
|
|
1449
|
+
* This source code is licensed under the ISC license.
|
|
1450
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1451
|
+
*)
|
|
1452
|
+
|
|
1453
|
+
lucide-react/dist/esm/icons/ellipsis.js:
|
|
1454
|
+
(**
|
|
1455
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1456
|
+
*
|
|
1457
|
+
* This source code is licensed under the ISC license.
|
|
1458
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1459
|
+
*)
|
|
1460
|
+
|
|
1461
|
+
lucide-react/dist/esm/icons/link.js:
|
|
1462
|
+
(**
|
|
1463
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1464
|
+
*
|
|
1465
|
+
* This source code is licensed under the ISC license.
|
|
1466
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1467
|
+
*)
|
|
1468
|
+
|
|
1469
|
+
lucide-react/dist/esm/icons/pin-off.js:
|
|
1470
|
+
(**
|
|
1471
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1472
|
+
*
|
|
1473
|
+
* This source code is licensed under the ISC license.
|
|
1474
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1475
|
+
*)
|
|
1476
|
+
|
|
1477
|
+
lucide-react/dist/esm/icons/pin.js:
|
|
1478
|
+
(**
|
|
1479
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1480
|
+
*
|
|
1481
|
+
* This source code is licensed under the ISC license.
|
|
1482
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1483
|
+
*)
|
|
1484
|
+
|
|
1485
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
1486
|
+
(**
|
|
1487
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1488
|
+
*
|
|
1489
|
+
* This source code is licensed under the ISC license.
|
|
1490
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1491
|
+
*)
|
|
1332
1492
|
*/
|