@prisma/studio-core 0.0.0-dev.202505081603 → 0.0.0-dev.202505081607

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/ui/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
- "use strict";var Vm=Object.create;var bn=Object.defineProperty;var Gm=Object.getOwnPropertyDescriptor;var Km=Object.getOwnPropertyNames;var Wm=Object.getPrototypeOf,Qm=Object.prototype.hasOwnProperty;var tr=(e,t)=>()=>(e&&(t=e(e=0)),t);var wn=(e,t)=>{for(var a in t)bn(e,a,{get:t[a],enumerable:!0})},Cn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Km(t))!Qm.call(e,r)&&r!==a&&bn(e,r,{get:()=>t[r],enumerable:!(o=Gm(t,r))||o.enumerable});return e},ma=(e,t,a)=>(Cn(e,t,"default"),a&&Cn(a,t,"default")),ge=(e,t,a)=>(a=e!=null?Vm(Wm(e)):{},Cn(t||!e||!e.__esModule?bn(a,"default",{value:e,enumerable:!0}):a,e)),jm=e=>Cn(bn({},"__esModule",{value:!0}),e);var b=tr(()=>{});function cu(e){let t=String(e),a=t.length-1;return Y.context.id+(a?String.fromCharCode(96+a):"")+t}function uo(e){Y.context=e}function Ag(){return{...Y.context,id:Y.getNextContextId(),count:0}}function Zt(e,t){let a=we,o=le,r=e.length===0,n=t===void 0?o:t,s=r?ku:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>ke(()=>Ua(s)));le=s,we=null;try{return ct(i,!0)}finally{we=a,le=o}}function N(e,t){t=t?Object.assign({},Tn,t):Tn;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(q&&q.running&&q.sources.has(a)?r=r(a.tValue):r=r(a.value)),Du(a,r));return[Tu.bind(a),o]}function Dn(e,t,a){let o=$n(e,t,!0,ht);Oo&&q&&q.running?ze.push(o):Bo(o)}function W(e,t,a){let o=$n(e,t,!1,ht);Oo&&q&&q.running?ze.push(o):Bo(o)}function Q(e,t,a){Iu=qg;let o=$n(e,t,!1,ht),r=kr&&Ue(kr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),tt?tt.push(o):Bo(o)}function k(e,t,a){a=a?Object.assign({},Tn,a):Tn;let o=$n(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Oo&&q&&q.running?(o.tState=ht,ze.push(o)):Bo(o),Tu.bind(o)}function Dg(e){return e&&typeof e=="object"&&"then"in e}function Eg(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=Hs,l=null,u=!1,d=!1,c="initialValue"in n,p=typeof o=="function"&&k(o),f=new Set,[m,g]=(n.storage||N)(n.initialValue),[h,x]=N(void 0),[y,C]=N(void 0,{equals:!1}),[w,L]=N(c?"ready":"unresolved");Y.context&&(l=Y.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Y.load&&Y.has(l)&&(i=Y.load(l)));function E(I,_,F,re){return s===I&&(s=null,re!==void 0&&(c=!0),(I===i||_===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(re,{value:_})),i=Hs,q&&I&&u?(q.promises.delete(I),u=!1,ct(()=>{q.running=!0,D(_,F)},!1)):D(_,F)),_}function D(I,_){ct(()=>{_===void 0&&g(()=>I),L(_!==void 0?"errored":c?"ready":"unresolved"),x(_);for(let F of f.keys())F.decrement();f.clear()},!1)}function T(){let I=kr&&Ue(kr),_=m(),F=h();if(F!==void 0&&!s)throw F;return we&&!we.user&&I&&Dn(()=>{y(),s&&(I.resolved&&q&&u?q.promises.add(s):f.has(I)||(I.increment(),f.add(I)))}),_}function S(I=!0){if(I!==!1&&d)return;d=!1;let _=p?p():o;if(u=q&&q.running,_==null||_===!1){E(s,ke(m));return}q&&s&&q.promises.delete(s);let F=i!==Hs?i:ke(()=>r(_,{value:m(),refetching:I}));return Dg(F)?(s=F,"value"in F?(F.status==="success"?E(s,F.value,void 0,_):E(s,void 0,Gs(F.value),_),F):(d=!0,queueMicrotask(()=>d=!1),ct(()=>{L(c?"refreshing":"pending"),C()},!1),F.then(re=>E(F,re,void 0,_),re=>E(F,void 0,Gs(re),_)))):(E(s,F,void 0,_),F)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return T();let I=h();if(I&&!s)throw I;return m()}}}),p?Dn(()=>S(!1)):S(!1),[T,{refetch:S,mutate:g}]}function Pu(e){return ct(e,!1)}function ke(e){if(!Eo&&we===null)return e();let t=we;we=null;try{return Eo?Eo.untrack(e):e()}finally{we=t}}function Jt(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=ke(()=>t(i,r,s));return r=i,l}}function ha(e){Q(()=>ke(e))}function Z(e){return le===null||(le.cleanups===null?le.cleanups=[e]:le.cleanups.push(e)),e}function En(){return le}function Fg(e,t){let a=le,o=we;le=e,we=null;try{return ct(t,!0)}catch(r){qn(r)}finally{le=a,we=o}}function Mu(e){if(q&&q.running)return e(),q.done;let t=we,a=le;return Promise.resolve().then(()=>{we=t,le=a;let o;return(Oo||kr)&&(o=q||(q={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),ct(e,!1),we=le=null,o?o.done:void 0})}function Ru(){return[Og,Mu]}function Qe(e,t){let a=Symbol("context");return{id:a,Provider:Ng(a),defaultValue:e}}function Ue(e){let t;return le&&le.context&&(t=le.context[e.id])!==void 0?t:e.defaultValue}function Au(e){let t=k(e),a=k(()=>Ks(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Tu(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===ht)Bo(this);else{let t=ze;ze=null,ct(()=>Fn(this),!1),ze=t}if(we){let t=this.observers?this.observers.length:0;we.sources?(we.sources.push(this),we.sourceSlots.push(t)):(we.sources=[this],we.sourceSlots=[t]),this.observers?(this.observers.push(we),this.observerSlots.push(we.sources.length-1)):(this.observers=[we],this.observerSlots=[we.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function Du(e,t,a){let o=q&&q.running&&q.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(q){let r=q.running;(r||!a&&q.sources.has(e))&&(q.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ct(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=q&&q.running;s&&q.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?ze.push(n):tt.push(n),n.observers&&Fu(n)),s?n.tState=ht:n.state=ht)}if(ze.length>1e6)throw ze=[],new Error},!1)}return t}function Bo(e){if(!e.fn)return;Ua(e);let t=Bn;mu(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{ct(()=>{q&&(q.running=!0),we=le=e,mu(e,e.tValue,t),we=le=null},!1)})}function mu(e,t,a){let o,r=le,n=we;we=le=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=ht,e.tOwned&&e.tOwned.forEach(Ua),e.tOwned=void 0):(e.state=ht,e.owned&&e.owned.forEach(Ua),e.owned=null)),e.updatedAt=a+1,qn(s)}finally{we=n,le=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?Du(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function $n(e,t,a,o=ht,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:le,context:le?le.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),le===null||le!==ku&&(q&&q.running&&le.pure?le.tOwned?le.tOwned.push(n):le.tOwned=[n]:le.owned?le.owned.push(n):le.owned=[n]),Eo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=Eo.factory(n.fn,i);Z(()=>l.dispose());let u=()=>Mu(i).then(()=>d.dispose()),d=Eo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function Pr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Ir)return Fn(e);if(e.suspense&&ke(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Bn);){if(t&&q.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(q.disposed.has(r))return}if((t?e.tState:e.state)===ht)Bo(e);else if((t?e.tState:e.state)===Ir){let r=ze;ze=null,ct(()=>Fn(e,a[0]),!1),ze=r}}}function ct(e,t){if(ze)return e();let a=!1;t||(ze=[]),tt?a=!0:tt=[],Bn++;try{let o=e();return Bg(a),o}catch(o){a||(tt=null),ze=null,qn(o)}}function Bg(e){if(ze&&(Oo&&q&&q.running?$g(ze):Eu(ze),ze=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;tt.push.apply(tt,q.effects),t=q.resolve;for(let n of tt)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,ct(()=>{for(let n of r)Ua(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Ua(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}pu(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,tt),tt=null,pu(!0);return}}let a=tt;tt=null,a.length&&ct(()=>Iu(a),!1),t&&t()}function Eu(e){for(let t=0;t<e.length;t++)Pr(e[t])}function $g(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),Oo(()=>{o.delete(a),ct(()=>{q.running=!0,Pr(a)},!1),q&&(q.running=!1)}))}}function qg(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:Pr(o)}if(Y.context){if(Y.count){Y.effects||(Y.effects=[]),Y.effects.push(...e.slice(0,a));return}uo()}for(Y.effects&&(Y.done||!Y.count)&&(e=[...Y.effects,...e],a+=Y.effects.length,delete Y.effects),t=0;t<a;t++)Pr(e[t])}function Fn(e,t){let a=q&&q.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===ht?r!==t&&(!r.updatedAt||r.updatedAt<Bn)&&Pr(r):n===Ir&&Fn(r,t)}}}function Fu(e){let t=q&&q.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=Ir:o.state=Ir,o.pure?ze.push(o):tt.push(o),o.observers&&Fu(o))}}function Ua(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--)Ua(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Ou(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ua(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}q&&q.running?e.tState=0:e.state=0}function Ou(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Ou(e.owned[a])}function Gs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function gu(e,t,a){try{for(let o of t)o(e)}catch(o){qn(o,a&&a.owner||null)}}function qn(e,t=le){let a=fu&&t&&t.context&&t.context[fu],o=Gs(e);if(!a)throw o;tt?tt.push({fn(){gu(o,a,t)},state:ht}):gu(o,a,t)}function Ks(e){if(typeof e=="function"&&!e.length)return Ks(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=Ks(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Ng(e,t){return function(o){let r;return W(()=>r=ke(()=>(le.context={...le.context,[e]:o.value},Au(()=>o.children))),void 0),r}}function On(e){for(let t=0;t<e.length;t++)e[t]()}function zg(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return Z(()=>On(n)),()=>{let l=e()||[],u=l.length,d,c;return l[Dr],ke(()=>{let f,m,g,h,x,y,C,w,L;if(u===0)s!==0&&(On(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Ws],r[0]=Zt(E=>(n[0]=E,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=Zt(p);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),y=0,C=Math.min(s,u);y<C&&o[y]===l[y];y++);for(C=s-1,w=u-1;C>=y&&w>=y&&o[C]===l[w];C--,w--)g[w]=r[C],h[w]=n[C],i&&(x[w]=i[C]);for(f=new Map,m=new Array(w+1),c=w;c>=y;c--)L=l[c],d=f.get(L),m[c]=d===void 0?-1:d,f.set(L,c);for(d=y;d<=C;d++)L=o[d],c=f.get(L),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],f.set(L,c)):n[d]();for(c=y;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=Zt(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(f){if(n[c]=f,i){let[m,g]=N(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function Ug(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return Z(()=>On(n)),()=>{let u=e()||[],d=u.length;return u[Dr],ke(()=>{if(d===0)return i!==0&&(On(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Ws],r[0]=Zt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===Ws&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<d;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=Zt(c));for(;l<o.length;l++)n[l]();return i=s.length=n.length=d,o=u.slice(0),r=r.slice(0,i)});function c(p){n[l]=p;let[f,m]=N(u[l]);return s[l]=m,t(f,l)}}}function v(e,t){if(Hg&&Y.context){let a=Y.context;uo(Ag());let o=ke(()=>e(t||{}));return uo(a),o}return ke(()=>e(t||{}))}function kn(){return!0}function _s(e){return(e=typeof e=="function"?e():e)?e:{}}function _g(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function te(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&An in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(Su&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=_s(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in _s(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(_s(e[i])));return[...new Set(s)]}},Qs);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 d=l[u];if(d==="__proto__"||d==="constructor")continue;let c=Object.getOwnPropertyDescriptor(i,d);if(!o[d])o[d]=c.get?{enumerable:!0,configurable:!0,get:_g.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let p=a[d];p&&(c.get?p.push(c.get.bind(i)):c.value!==void 0&&p.push(()=>c.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 ye(e,...t){if(Su&&An 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)}},Qs));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))}},Qs)),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 el(e){let t,a,o=r=>{let n=Y.context;if(n){let[i,l]=N();Y.count||(Y.count=0),Y.count++,(a||(a=e())).then(u=>{!Y.done&&uo(n),Y.count--,l(()=>u.default),uo()}),t=i}else if(!t){let[i]=Eg(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?ke(()=>{if(!n||Y.done)return s(r);let i=Y.context;uo(n);let l=s(r);return uo(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function xt(){return Y.context?Y.getNextContextId():`cl-${Vg++}`}function $u(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(zg(()=>e.each,e.children,t||void 0))}function qu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Ug(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,a=k(()=>e.when,void 0,void 0),o=t?a:k(a,void 0,{equals:(r,n)=>!r==!n});return k(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?ke(()=>n(t?r:()=>{if(!ke(o))throw Bu("Show");return a()})):n}return e.fallback},void 0,void 0)}function Nu(e){let t=Au(()=>e.children),a=k(()=>{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,d=k(()=>u()?void 0:l.when,void 0,void 0),c=l.keyed?d:k(d,void 0,{equals:(p,f)=>!p==!f});n=()=>u()||(c()?[i,d,l]:void 0)}return n});return k(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?ke(()=>i(s.keyed?n():()=>{if(ke(a)()?.[0]!==r)throw Bu("Match");return n()})):i},void 0,void 0)}function Nn(e){return e}function Xg(e,t){let a=jg[e];return typeof a=="object"?a[t]?a.$:void 0:a}function eh(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 d=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],d)}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 d=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],d),t[r]=a[n]}else{if(!u){u=new Map;let c=i;for(;c<n;)u.set(a[c],c++)}let d=u.get(t[s]);if(d!=null)if(i<d&&d<n){let c=s,p=1,f;for(;++c<r&&c<n&&!((f=u.get(t[c]))==null||f!==d+p);)p++;if(p>d-i){let m=t[s];for(;i<d;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function tl(e,t,a,o={}){let r;return Zt(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function K(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?()=>ke(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function Er(e,t=window.document){let a=t[Lr]||(t[Lr]=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,Hu))}}function Uu(e=window.document){if(e[Lr]){for(let t of e[Lr].keys())e.removeEventListener(t,Hu);delete e[Lr]}}function O(e,t,a){fo(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function th(e,t,a,o){fo(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function ah(e,t,a){fo(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function B(e,t){fo(e)||(t==null?e.removeAttribute("class"):e.className=t)}function al(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 oh(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]||(hu(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||(hu(e,i,!0),a[i]=l)}return a}function rh(e,t,a){if(!t)return a?O(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 ol(e,t={},a,o){let r={};return o||W(()=>r.children=Mr(e,t.children,r.children)),W(()=>typeof t.ref=="function"&&co(t.ref,e)),W(()=>nh(e,t,a,!0,r,!0)),r}function co(e,t,a){return ke(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return Mr(e,t,o,a);W(r=>Mr(e,t(),r,a),o)}function nh(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=xu(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=xu(e,s,i,r[s],a,n,t)}}function sh(e){let t,a;return!fo()||!(t=Y.registry.get(a=ih()))?e():(Y.completed&&Y.completed.add(t),Y.registry.delete(a),t)}function fo(e){return!!Y.context&&!Y.done&&(!e||e.isConnected)}function lh(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function hu(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 xu(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return rh(e,a,o);if(t==="classList")return oh(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(),f=Zg.has(p);if(!f&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(f||a)&&(al(e,p,a,f),f&&Er([p]))}else if(t.slice(0,5)==="attr:")O(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")ah(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Wg.has(t))||!r&&((d=Xg(t,e.tagName))||(l=Kg.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(fo(e))return a;t==="class"||t==="className"?B(e,a):i&&!l&&!u?e[lh(t)]=a:e[d||t]=a}else{let p=r&&t.indexOf(":")>-1&&Yg[t.split(":")[0]];p?th(e,p,t,a):O(e,Qg[t]||t,a)}return a}function Hu(e){if(Y.registry&&Y.events&&Y.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}}),Y.registry&&!Y.done&&(Y.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 Mr(e,t,a,o,r){let n=fo(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let d=a[u];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}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=Ao(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=Ao(e,a,o)}else{if(s==="function")return W(()=>{let l=t();for(;typeof l=="function";)l=l();a=Mr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(js(l,t,a,r))return W(()=>a=Mr(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return a;let c=[d];for(;(d=d.nextSibling)!==o;)c.push(d);return a=c}if(l.length===0){if(a=Ao(e,a,o),i)return a}else u?a.length===0?yu(e,l,o):eh(e,a,l):(a&&Ao(e),yu(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=Ao(e,a,o,t);Ao(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function js(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=js(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=js(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let d=String(i);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return r}function yu(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function Ao(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 ih(){return Y.getNextContextId()}function _u(e,t=!1){return t?document.createElementNS(uh,e):document.createElement(e)}function rl(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=En(),n,s=!!Y.context;return Q(()=>{s&&(En().user=s=!1),n||(n=Fg(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);Zt(c=>P(i,()=>l()?c():n(),null)),Z(d)}else{let l=_u(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}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),Z(()=>i.removeChild(l))}},void 0,{render:!s}),a}function dh(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return ke(()=>o(t));case"string":let r=Jg.has(o),n=Y.context?sh():_u(o,r);return ol(n,t,r),n}})}function Vu(e){let[,t]=ye(e,["component"]);return dh(()=>e.component,t)}function ph(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 mh(e,t){let a=ph(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 Fo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function Rn(e,t){return e.indexOf(t)!==-1}function vu(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Xt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function zn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Ju(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function ad(e){if(Rn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Rn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Rn(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Js(e,t,a=[]){if(!e)return;if(!Ha(e)){Fo(e,(n,s)=>Js(n,t,[...a,...Sr(s)]));return}let[o,r]=e;r&&Fo(r,(n,s)=>{Js(n,t,[...a,...Sr(s)])}),t(o,a)}function Eh(e,t,a){return Js(t,(o,r)=>{e=Zs(e,r,n=>Th(n,o,a))}),e}function Fh(e,t){function a(o,r){let n=Dh(e,Sr(r));o.map(Sr).forEach(s=>{e=Zs(e,s,()=>n)})}if(Ha(t)){let[o,r]=t;o.forEach(n=>{e=Zs(e,Sr(n),()=>e)}),r&&Fo(r,a)}else Fo(t,a);return e}function Bh(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function $h(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(Vs):a[Vs(n)]=s.map(Vs)}),o?Xs(a)?[o]:[o,a]:Xs(a)?void 0:a}function rd(e){return Object.prototype.toString.call(e).slice(8,-1)}function wu(e){return rd(e)==="Array"}function qh(e){if(rd(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Nh(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 Ys(e,t={}){if(wu(e))return e.map(r=>Ys(r,t));if(!qh(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(wu(t.props)&&!t.props.includes(n))return r;let s=e[n],i=Ys(s,t);return Nh(r,n,i,e,t.nonenumerable),r},{})}function po(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function sd(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function ld({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function mo({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function id(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Y,Lu,Tg,An,Su,Dr,Tn,fu,Iu,ht,Ir,ku,Hs,le,q,Oo,Eo,we,ze,tt,Bn,Og,pu,kr,Ws,Hg,Qs,Vg,Bu,zu,Gg,Kg,Wg,Qg,jg,Zg,Jg,Yg,Lr,at,uh,ch,Gu,fh,gh,hh,Ku,xh,Rr,Xs,Ha,yh,vh,Ch,bh,Ar,Tr,Wu,wh,Lh,Cu,Sh,Ih,kh,Ph,Mh,Qu,Vs,Sr,ju,Xu,Rh,Zu,Yu,ed,Ah,bu,td,Th,To,Dh,Zs,Oh,od,pe,nl,nd,Fr,Pn,zh,ud,Uh,Un,Mn,dd,Hh,Hn,sl,_n,za,Do,ll,Or=tr(()=>{"use strict";b();Y={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return cu(this.context.count)},getNextContextId(){return cu(this.context.count++)}};Lu=!1,Tg=(e,t)=>e===t,An=Symbol("solid-proxy"),Su=typeof Proxy=="function",Dr=Symbol("solid-track"),Tn={equals:Tg},fu=null,Iu=Eu,ht=1,Ir=2,ku={owned:null,cleanups:null,context:null,owner:null},Hs={},le=null,q=null,Oo=null,Eo=null,we=null,ze=null,tt=null,Bn=0;[Og,pu]=N(!1);Ws=Symbol("fallback");Hg=!1;Qs={get(e,t,a){return t===An?a:e.get(t)},has(e,t){return t===An?!0:e.has(t)},set:kn,deleteProperty:kn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:kn,deleteProperty:kn}},ownKeys(e){return e.keys()}};Vg=0;Bu=e=>`Stale read from <${e}>.`;zu=void 0,Gg=["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"],Kg=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Gg]),Wg=new Set(["innerHTML","textContent","innerText","children"]),Qg=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),jg=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}});Zg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Jg=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"]),Yg={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};Lr="_$DX_DELEGATE";at=!1,uh="http://www.w3.org/2000/svg";ch=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()}},Gu=class{constructor(e){this.generateIdentifier=e,this.kv=new ch}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)}},fh=class extends Gu{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)}};gh=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return mh(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},hh=e=>Object.prototype.toString.call(e).slice(8,-1),Ku=e=>typeof e>"u",xh=e=>e===null,Rr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Xs=e=>Rr(e)&&Object.keys(e).length===0,Ha=e=>Array.isArray(e),yh=e=>typeof e=="string",vh=e=>typeof e=="number"&&!isNaN(e),Ch=e=>typeof e=="boolean",bh=e=>e instanceof RegExp,Ar=e=>e instanceof Map,Tr=e=>e instanceof Set,Wu=e=>hh(e)==="Symbol",wh=e=>e instanceof Date&&!isNaN(e.valueOf()),Lh=e=>e instanceof Error,Cu=e=>typeof e=="number"&&isNaN(e),Sh=e=>Ch(e)||xh(e)||Ku(e)||vh(e)||yh(e)||Wu(e),Ih=e=>typeof e=="bigint",kh=e=>e===1/0||e===-1/0,Ph=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Mh=e=>e instanceof URL,Qu=e=>e.replace(/\./g,"\\."),Vs=e=>e.map(String).map(Qu).join("."),Sr=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};ju=[Xt(Ku,"undefined",()=>null,()=>{}),Xt(Ih,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Xt(wh,"Date",e=>e.toISOString(),e=>new Date(e)),Xt(Lh,"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}),Xt(bh,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Xt(Tr,"set",e=>[...e.values()],e=>new Set(e)),Xt(Ar,"map",e=>[...e.entries()],e=>new Map(e)),Xt(e=>Cu(e)||kh(e),"number",e=>Cu(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Xt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Xt(Mh,"URL",e=>e.toString(),e=>new URL(e))];Xu=zn((e,t)=>Wu(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}),Rh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Zu=zn(Ph,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Rh[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Yu=zn(Ju,(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)}),ed=zn((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)}),Ah=[Yu,Xu,ed,Zu],bu=(e,t)=>{let a=vu(Ah,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=vu(ju,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},td={};ju.forEach(e=>{td[e.annotation]=e});Th=(e,t,a)=>{if(Ha(t))switch(t[0]){case"symbol":return Xu.untransform(e,t,a);case"class":return Yu.untransform(e,t,a);case"custom":return ed.untransform(e,t,a);case"typed-array":return Zu.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=td[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},To=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Dh=(e,t)=>{ad(t);for(let a=0;a<t.length;a++){let o=t[a];if(Tr(e))e=To(e,+o);else if(Ar(e)){let r=+o,n=+t[++a]==0?"key":"value",s=To(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},Zs=(e,t,a)=>{if(ad(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ha(o)){let i=+s;o=o[i]}else if(Rr(o))o=o[s];else if(Tr(o)){let i=+s;o=To(o,i)}else if(Ar(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=To(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ha(o)?o[+r]=a(o[+r]):Rr(o)&&(o[r]=a(o[r])),Tr(o)){let n=To(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(Ar(o)){let n=+t[t.length-2],s=To(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};Oh=(e,t)=>Rr(e)||Ha(e)||Ar(e)||Tr(e)||Ju(e,t);od=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Sh(e);if(!i){Bh(e,r,t);let f=s.get(e);if(f)return o?{transformedValue:null}:f}if(!Oh(e,a)){let f=bu(e,a),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return i||s.set(e,m),m}if(Rn(n,e))return{transformedValue:null};let l=bu(e,a),u=l?.value??e,d=Ha(u)?[]:{},c={};Fo(u,(f,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=od(f,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Ha(g.annotations)?c[m]=g.annotations:Rr(g.annotations)&&Fo(g.annotations,(h,x)=>{c[Qu(m)+"."+x]=h})});let p=Xs(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,p),p};pe=class{constructor({dedupe:e=!1}={}){this.classRegistry=new fh,this.symbolRegistry=new Gu(t=>t.description??""),this.customTransformerRegistry=new gh,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=od(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=$h(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=Ys(t);return a?.values&&(o=Eh(o,a.values,this)),a?.referentialEqualities&&(o=Fh(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)}};pe.defaultInstance=new pe;pe.serialize=pe.defaultInstance.serialize.bind(pe.defaultInstance);pe.deserialize=pe.defaultInstance.deserialize.bind(pe.defaultInstance);pe.stringify=pe.defaultInstance.stringify.bind(pe.defaultInstance);pe.parse=pe.defaultInstance.parse.bind(pe.defaultInstance);pe.registerClass=pe.defaultInstance.registerClass.bind(pe.defaultInstance);pe.registerSymbol=pe.defaultInstance.registerSymbol.bind(pe.defaultInstance);pe.registerCustom=pe.defaultInstance.registerCustom.bind(pe.defaultInstance);pe.allowErrorProps=pe.defaultInstance.allowErrorProps.bind(pe.defaultInstance);nl=pe.serialize;pe.deserialize;nd=pe.stringify;pe.parse;pe.registerClass;pe.registerCustom;pe.registerSymbol;pe.allowErrorProps;Fr=(e,t=!1)=>{let{json:a}=nl(e);return JSON.stringify(a,null,t?2:void 0)},Pn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,zh=(e,t)=>e.queryHash.localeCompare(t.queryHash),ud=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uh=(e,t)=>Pn(e)===Pn(t)?ud(e,t):Pn(e)>Pn(t)?1:-1,Un={status:Uh,"query hash":zh,"last updated":ud},Mn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,dd=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Hh=(e,t)=>Mn(e)===Mn(t)?dd(e,t):Mn(e)>Mn(t)?1:-1,Hn={status:Hh,"last updated":dd},sl=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),_n=()=>{let[e,t]=N("dark");return ha(()=>{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),Z(()=>a.removeEventListener("change",o))}),e},za=(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,za(o.get(r),n,a)),o}if(e instanceof Set){let o=za(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]=za(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]=za(o[r],n,a),o}return e},Do=(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,Do(a.get(o),r)),a}if(e instanceof Set){let a=Do(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]=Do(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]=Do(a[o],r),a}return e},ll=(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 Wh(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Qh(e,...t){return typeof e=="function"?e(...t):e}function Xh(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 Zh(e){let[t,a]=N(),o=e?.throw?(p,f)=>{throw a(p instanceof Error?p:new Error(f)),p}:(p,f)=>{a(p instanceof Error?p:new Error(f))},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,f){let m=s.get(f);m||(m=N(void 0,{equals:!1}),s.set(f,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${f}`)}catch(y){return o(y,`Error reading ${n}${f} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,f,e.options):g}}),l=(p,f,m)=>{let g=e?.serializer?e.serializer(f,p,m??e.options):f,h=`${n}${p}`;r.forEach(y=>{try{y.getItem(h)!==g&&y.setItem(h,g)}catch(C){o(C,`Error setting ${n}${p} to ${g} in ${y.name}`)}});let x=s.get(p);x&&x[1]()},u=p=>r.forEach(f=>{try{f.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${f.name}`)}}),d=()=>r.forEach(p=>{try{p.clear()}catch(f){o(f,`Error clearing ${p.name}`)}}),c=()=>{let p={},f=(m,g)=>{if(!p.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(p[m]=h)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(h){o(h,`Error getting all values from in ${m.name}`)}for(let h of g)f(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)p.hasOwnProperty(h)||f(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&ha(()=>{let p=f=>{let m=!1;r.forEach(g=>{try{g!==f.storageArea&&f.key&&f.newValue!==g.getItem(f.key)&&(f.newValue?g.setItem(f.key,f.newValue):g.removeItem(f.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${f.key}=${f.newValue})`)}}),m&&f.key&&s.get(f.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),Z(()=>globalThis.removeEventListener("storage",p))):(r.forEach(f=>f.addEventListener?.("storage",p)),Z(()=>r.forEach(f=>f.removeEventListener?.("storage",p))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function X(){return Ue(Kr)}function Xe(){return Ue(Wr)}function l0(e){return e.replace(s0,t=>uc[t])}function md(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:ft.MATCHES,!a.accessors){let s=gd(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=c0(e,a.accessors),n={rankedValue:e,rank:ft.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=gd(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=ft.MATCHES?l=u:l>d&&(l=d),l=Math.min(l,d),l>=c&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=c,n.rankedValue=i.itemValue)}return n}function gd(e,t,a){return e=hd(e,a),t=hd(t,a),t.length>e.length?ft.NO_MATCH:e===t?ft.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ft.EQUAL:e.startsWith(t)?ft.STARTS_WITH:e.includes(` ${t}`)?ft.WORD_STARTS_WITH:e.includes(t)?ft.CONTAINS:t.length===1?ft.NO_MATCH:i0(e).includes(t)?ft.ACRONYM:u0(e,t))}function i0(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function u0(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,p=u.length;c<p;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return ft.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return ft.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let d=t[l];if(o=r(d,e,o),!(o>-1))return ft.NO_MATCH}let i=o-s;return n(i)}function hd(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=l0(e)),e}function d0(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 c0(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=f0(n),i=d0(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function f0(e){return typeof e=="function"?xd:{...xd,...e}}function se(e){let t=this||{},a=e.call?e(t.p):e;return x0(a.unshift?a.raw?y0(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,m0(t.target),t.g,t.o,t.k)}function cc(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=cc(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function H(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=cc(e))&&(o&&(o+=" "),o+=t);return o}function v0(e,t){let a=ke(e);if(at){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=N([],{equals:!1}),[l]=Ru(),u=c=>{i(p=>(p.push.apply(p,c),p));for(let p of c)n.delete(p)},d=(c,p,f)=>c.splice(f,0,p);return k(c=>{let p=s(),f=e();if(f[Dr],ke(l))return l(),c;if(p.length){let m=c.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return ke(()=>{let m=new Set(f),g=f.slice(),h=[],x=[],y=[];for(let w of f)(r.has(w)?y:h).push(w);let C=!h.length;for(let w=0;w<c.length;w++){let L=c[w];m.has(L)||(n.has(L)||(x.push(L),n.add(L)),d(g,L,w)),C&&L!==g[w]&&(C=!1)}return!x.length&&C?c:(o({list:g,added:h,removed:x,unchanged:y,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function ut(...e){return Wh(e)}function gl(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return gl(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=gl(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function C0(e,t=vd,a=vd){let o=k(e),r=k(()=>gl(o(),at?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function b0(e){return k(()=>{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 fc(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function w0(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())}),fc(()=>{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 L0(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()),fc(()=>{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 bd(e){for(let t of e)t.dispose()}function S0(e,t,a,o={}){if(at){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 Z(()=>bd(r.values())),()=>{let s=e()||[];return s[Dr],ke(()=>{if(!s.length)return bd(r.values()),r.clear(),o.fallback?[Zt(c=>(r.set(il,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(il);if(!r.size||l){l?.dispose(),r.delete(il);for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);n(i,c,d,p)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);u.delete(p);let f=r.get(p);f?(i[d]=f.mapped,f.setIndex?.(d),f.setItem(()=>c)):n(i,c,d,p)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){Zt(d=>{let[c,p]=N(i),f={setItem:p,dispose:d};if(a.length>1){let[m,g]=N(l);f.setIndex=g,f.mapped=a(c,m)}else f.mapped=a(c);r.set(u,f),s[l]=f.mapped})}}function Wn(e){let{by:t}=e;return k(S0(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function I0(e,t,a,o){return e.addEventListener(t,a,o),jh(e.removeEventListener.bind(e,t,a,o))}function k0(e,t,a,o){if(at)return;let r=()=>{pl(A(e)).forEach(n=>{n&&pl(A(t)).forEach(s=>I0(n,s,a,o))})};typeof e=="function"?Q(r):W(r)}function P0(e,t){if(at)return{observe:cd,unobserve:cd};let a=new ResizeObserver(e);return Z(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function pc(e,t,a){if(at)return;let o=new WeakMap,{observe:r,unobserve:n}=P0(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),p=o.get(u);(!p||p.width!==d||p.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);Q(s=>{let i=Kh(pl(A(e)));return Xh(i,s,r,n),i},[])}function wd(e){let t={},a;for(;a=M0.exec(e);)t[a[1]]=a[2];return t}function os(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=wd(e)}else typeof t=="string"&&(t=wd(t));return{...e,...t}}function R0(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function hl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function A0(e){return typeof e=="number"}function qo(e){return Object.prototype.toString.call(e)==="[object String]"}function T0(e){return typeof e=="function"}function Qr(e){return t=>`${e()}-${t}`}function kt(e,t){return e?e===t||e.contains(t):!1}function Nr(e,t=!1){let{activeElement:a}=ea(e);if(!a?.nodeName)return null;if(mc(a)&&a.contentDocument)return Nr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=ea(a).getElementById(o);if(r)return r}}return a}function D0(e){return ea(e).defaultView||window}function ea(e){return e?e.ownerDocument||e:document}function mc(e){return e.tagName==="IFRAME"}function Pl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function rs(){return Pl(/^Mac/i)}function E0(){return Pl(/^iPhone/i)}function F0(){return Pl(/^iPad/i)||rs()&&navigator.maxTouchPoints>1}function O0(){return E0()||F0()}function B0(){return rs()||O0()}function Te(e,t){return t&&(T0(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function je(e){return t=>{for(let a of e)Te(t,a)}}function $0(e){return rs()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(q0())e.focus({preventScroll:!0});else{let t=N0(e);e.focus(),z0(t)}}function q0(){if(Vn==null){Vn=!1;try{document.createElement("div").focus({get preventScroll(){return Vn=!0,!0}})}catch{}}return Vn}function N0(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 z0(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function hc(e,t){let o=Array.from(e.querySelectorAll(Ml)).filter(Ld);return t&&Ld(e)&&o.unshift(e),o.forEach((r,n)=>{if(mc(r)&&r.contentDocument){let s=r.contentDocument.body,i=hc(s,!1);o.splice(n,1,...i)}}),o}function Ld(e){return xc(e)&&!_0(e)}function xc(e){return e.matches(Ml)&&Rl(e)}function _0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Rl(e,t){return e.nodeName!=="#comment"&&V0(e)&&G0(e,t)&&(!e.parentElement||Rl(e.parentElement,e))}function V0(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 G0(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function K0(e,t,a){let o=t?.tabbable?H0:Ml,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Rl(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Sd(e){for(;e&&!W0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function W0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Q0(){}function j0(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,d]=t[i],[c,p]=t[l],[,f]=t[l===0?s-1:l-1]||[0,0],m=(d-p)*(a-u)-(u-c)*(o-d);if(p<d){if(o>=p&&o<d){if(m===0)return!0;m>0&&(o===p?o>f&&(r=!r):r=!r)}}else if(d<p){if(o>d&&o<=p){if(m===0)return!0;m<0&&(o===p?o<f&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function he(e,t){return te(e,t)}function kd(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=Br.get(a.target);o||(o=new Set,Br.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=Br.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),Br.delete(a.target)),Br.size===0)){for(let r of Id)r();Id.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function xl(e,t){let a=Pd(e,t,"left"),o=Pd(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 Pd(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 X0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Sd(e);for(;e&&r&&e!==a&&r!==a;)xl(r,e),e=r,r=Sd(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 Pt(e){return t=>(e(t),()=>e(void 0))}function ns(e,t){let[a,o]=N(Md(t?.()));return Q(()=>{o(e()?.tagName.toLowerCase()||Md(t?.()))}),a}function Md(e){return qo(e)?e:void 0}function De(e){let[t,a]=ye(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return v(Vu,te(a,{get component(){return t.as}}))}function J0(e){let t=`form-control-${xt()}`,a=he({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(g,h,x)=>{let y=x!=null||o()!=null;return[x,o(),y&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,f=k(()=>({"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:f,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:c,getAriaDescribedBy:p,generateId:Qr(()=>A(a.id)),registerLabel:Pt(r),registerField:Pt(s),registerDescription:Pt(l),registerErrorMessage:Pt(d)}}}function jr(){let e=Ue(vc);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Cc(e){let t=jr(),a=he({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,te({as:"div"},()=>t.dataset(),a))}function bc(e){let t=jr(),a=he({id:t.generateId("error-message")},e),[o,r]=ye(a,["forceMount"]),n=()=>t.validationState()==="invalid";return Q(()=>{n()&&Z(t.registerErrorMessage(r.id))}),v(j,{get when(){return o.forceMount||n()},get children(){return v(De,te({as:"div"},()=>t.dataset(),r))}})}function Y0(e){let t,a=jr(),o=he({id:a.generateId("label")},e),[r,n]=ye(o,["ref"]),s=ns(()=>t,()=>"label");return Q(()=>Z(a.registerLabel(n.id))),v(De,te({as:"label",ref(i){let l=ut(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function ex(e,t){Q(Jt(e,a=>{if(a==null)return;let o=tx(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),Z(()=>{o.removeEventListener("reset",t)}))}))}function tx(e){return ax(e)?e.form:e.closest("form")}function ax(e){return e.matches("textarea, input, select, button")}function Xr(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{ke(()=>{let i=Qh(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function wc(e){let[t,a]=Xr(e);return[()=>t()??!1,a]}function ox(e){let[t,a]=Xr(e);return[()=>t()??[],a]}function rx(e={}){let[t,a]=wc({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 Sc(){return Ue(Lc)}function sx(){let e=Sc();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Ic(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function lx(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&&Ic(r,a))return o+1}return 0}function ix(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:Ic(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function kc(e,t){let a=ix(e);e!==a&&t(a)}function ux(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 ea(o).body}function dx(e,t){Q(()=>{let a=setTimeout(()=>{kc(e(),t)});Z(()=>clearTimeout(a))})}function cx(e,t){if(typeof IntersectionObserver!="function"){dx(e,t);return}let a=[];Q(()=>{let o=()=>{let s=!!a.length;a=e(),s&&kc(e(),t)},r=ux(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}Z(()=>n.disconnect())})}function fx(e={}){let[t,a]=ox({value:()=>A(e.items),onChange:n=>e.onItemsChange?.(n)});cx(t,a);let o=n=>(a(s=>{let i=lx(s,n);return R0(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>v(Lc.Provider,{value:{registerItem:o},get children(){return n.children}})}}function px(e){let t=sx(),a=he({shouldRegisterItem:!0},e);Q(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());Z(o)})}function Pc(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=qo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=qo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(qo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return qo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(qo(l)||A0(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 d=Pc({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...d),t+=d.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 mx(e,t=[]){return k(()=>{let a=Pc({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 xx(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return gx.has(a)}let t=e.split("-")[0];return hx.has(t)}function yx(e){return xx(e)?"rtl":"ltr"}function Mc(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:yx(e)}}function Rd(){yl=Mc();for(let e of zr)e(yl)}function vx(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(yl),o=k(()=>at?e:t());return ha(()=>{zr.size===0&&window.addEventListener("languagechange",Rd),zr.add(a),Z(()=>{zr.delete(a),zr.size===0&&window.removeEventListener("languagechange",Rd)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Qa(){let e=vx();return Ue(Cx)||e}function bx(e){let{locale:t}=Qa(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return ul.has(o)&&(r=ul.get(o)),r||(r=new Intl.Collator(t(),e),ul.set(o,r)),r})}function wx(e){let[t,a]=Xr(e);return[()=>t()??new ya,a]}function Ac(e){return B0()?e.altKey:e.ctrlKey}function No(e){return rs()?e.metaKey:e.ctrlKey}function Ad(e){return new ya(e)}function Lx(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function Sx(e){let t=he({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=A(t.selectedKeys);return g!=null?Ad(g):g}),i=k(()=>{let g=A(t.defaultSelectedKeys);return g!=null?Ad(g):new ya}),[l,u]=wx({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(A(t.selectionBehavior)),p=()=>A(t.selectionMode),f=()=>A(t.disallowEmptySelection)??!1,m=g=>{(A(t.allowDuplicateSelectionEvents)||!Lx(g,l()))&&u(g)};return Q(()=>{let g=l();A(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),Q(()=>{c(A(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function Ix(e){let[t,a]=N(""),[o,r]=N(-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=kx(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(p=>p+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&Px(d)&&(d=d[0],c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d)),c!=null&&(l.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function kx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Px(e){return e.split("").every(t=>t===e[0])}function Mx(e,t,a){let r=te({selectOnFocus:()=>A(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Qa(),i={top:0,left:0};k0(()=>A(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Ix({isDisabled:()=>A(r.disallowTypeAhead),keyboardDelegate:()=>A(r.keyboardDelegate),selectionManager:()=>A(r.selectionManager)}),u=()=>A(r.orientation)??"vertical",d=h=>{Te(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let y=A(r.selectionManager),C=A(r.selectOnFocus),w=T=>{T!=null&&(y.setFocusedKey(T),h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&!Ac(h)&&y.replaceSelection(T))},L=A(r.keyboardDelegate),E=A(r.shouldFocusWrap),D=y.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(L.getKeyBelow){h.preventDefault();let T;D!=null?T=L.getKeyBelow(D):T=L.getFirstKey?.(),T==null&&E&&(T=L.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(L.getKeyAbove){h.preventDefault();let T;D!=null?T=L.getKeyAbove(D):T=L.getLastKey?.(),T==null&&E&&(T=L.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(L.getKeyLeftOf){h.preventDefault();let T=s()==="rtl",S;D!=null?S=L.getKeyLeftOf(D):S=T?L.getFirstKey?.():L.getLastKey?.(),w(S)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(L.getKeyRightOf){h.preventDefault();let T=s()==="rtl",S;D!=null?S=L.getKeyRightOf(D):S=T?L.getLastKey?.():L.getFirstKey?.(),w(S)}break}case"Home":if(L.getFirstKey){h.preventDefault();let T=L.getFirstKey(D,No(h));T!=null&&(y.setFocusedKey(T),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&y.replaceSelection(T))}break;case"End":if(L.getLastKey){h.preventDefault();let T=L.getLastKey(D,No(h));T!=null&&(y.setFocusedKey(T),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&y.replaceSelection(T))}break;case"PageDown":if(L.getKeyPageBelow&&D!=null){h.preventDefault();let T=L.getKeyPageBelow(D);w(T)}break;case"PageUp":if(L.getKeyPageAbove&&D!=null){h.preventDefault();let T=L.getKeyPageAbove(D);w(T)}break;case"a":No(h)&&y.selectionMode()==="multiple"&&A(r.disallowSelectAll)!==!0&&(h.preventDefault(),y.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),A(r.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!A(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let T=K0(x,{tabbable:!0}),S,I;do I=T.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&rt(S)}break}}},c=h=>{let x=A(r.selectionManager),y=A(r.keyboardDelegate),C=A(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=E=>{E!=null&&(x.setFocusedKey(E),C&&x.replaceSelection(E))},L=h.relatedTarget;L&&h.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??y.getLastKey?.()):w(x.firstSelectedKey()??y.getFirstKey?.())}else if(!A(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let L=w.querySelector(`[data-key="${x.focusedKey()}"]`);L&&(rt(L),xl(w,L))}}}},p=h=>{let x=A(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},f=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=A(r.autoFocus);if(!h)return;let x=A(r.selectionManager),y=A(r.keyboardDelegate),C;h==="first"&&(C=y.getFirstKey?.()),h==="last"&&(C=y.getLastKey?.());let w=x.selectedKeys();w.size&&(C=w.values().next().value),x.setFocused(!0),x.setFocusedKey(C);let L=t();L&&C==null&&!A(r.shouldUseVirtualFocus)&&rt(L)};return ha(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),Q(Jt([n,()=>A(r.isVirtualized),()=>A(r.selectionManager).focusedKey()],h=>{let[x,y,C]=h;if(y)C&&r.scrollToKey?.(C);else if(C&&x){let w=x.querySelector(`[data-key="${C}"]`);w&&xl(x,w)}})),{tabIndex:k(()=>{if(!A(r.shouldUseVirtualFocus))return A(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:c,onFocusOut:p}}function Tc(e,t){let a=()=>A(e.selectionManager),o=()=>A(e.key),r=()=>A(e.shouldUseVirtualFocus),n=y=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):y?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||No(y)||"pointerType"in y&&y.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,d=y=>{l()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!A(e.shouldSelectOnPressUp)&&n(y))},c=y=>{l()&&y.pointerType==="mouse"&&y.button===0&&A(e.shouldSelectOnPressUp)&&A(e.allowsDifferentPressOrigin)&&n(y)},p=y=>{l()&&(A(e.shouldSelectOnPressUp)&&!A(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(y)},f=y=>{!l()||!["Enter"," "].includes(y.key)||(Ac(y)?a().toggleSelection(o()):n(y))},m=y=>{i()&&y.preventDefault()},g=y=>{let C=t();r()||i()||!C||y.target===C&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>A(e.virtualized)?void 0:o());return Q(Jt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([y,C,w,L,E])=>{y&&C===L&&E&&!w&&document.activeElement!==y&&(e.focus?e.focus():rt(y))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:p,onKeyDown:f,onMouseDown:m,onFocus:g}}function Ax(e){let t=Sx(e),o=mx({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 Td(e.filter(n)):new Td(n)},[()=>e.filter]),r=new Rx(o,t);return Dn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Hr(e){return Ca.findIndex(t=>t.node===e)}function Ex(e){return Ca[Hr(e)]}function Fx(e){return Ca[Ca.length-1].node===e}function Fc(){return Ca.filter(e=>e.isPointerBlocking)}function Ox(){return[...Fc()].slice(-1)[0]}function Al(){return Fc().length>0}function Oc(e){let t=Hr(Ox()?.node);return Hr(e)<t}function Bx(e){Ca.push(e)}function $x(e){let t=Hr(e);t<0||Ca.splice(t,1)}function qx(){for(let{node:e}of Ca)e.style.pointerEvents=Oc(e)?"none":"auto"}function Nx(e){if(Al()&&!vl){let t=ea(e);Ec=document.body.style.pointerEvents,t.body.style.pointerEvents="none",vl=!0}}function zx(e){if(Al())return;let t=ea(e);t.body.style.pointerEvents=Ec,t.body.style.length===0&&t.body.removeAttribute("style"),vl=!1}function _x(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Hx.indexOf(e.type)!==-1:!1}function Tl(e){let t,a=he({type:"button"},e),[o,r]=ye(a,["ref","type","disabled"]),n=ns(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:_x({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return v(De,te({as:"button",ref(u){let d=ut(c=>t=c,o.ref);typeof d=="function"&&d(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 Cl(e,t,a){return Ct(e,Yt(t,a))}function vo(e,t){return typeof e=="function"?e(t):e}function Ka(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function Bc(e){return e==="x"?"y":"x"}function Dl(e){return e==="y"?"height":"width"}function xo(e){return["top","bottom"].includes(Ka(e))?"y":"x"}function El(e){return Bc(xo(e))}function Qx(e,t,a){a===void 0&&(a=!1);let o=Ho(e),r=El(e),n=Dl(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Xn(s)),[s,Xn(s)]}function jx(e){let t=Xn(e);return[bl(e),t,bl(t)]}function bl(e){return e.replace(/start|end/g,t=>Wx[t])}function Xx(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 Zx(e,t,a,o){let r=Ho(e),n=Xx(Ka(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(bl)))),n}function Xn(e){return e.replace(/left|right|bottom|top/g,t=>Kx[t])}function Jx(e){return{top:0,right:0,bottom:0,left:0,...e}}function $c(e){return typeof e!="number"?Jx(e):{top:e,right:e,bottom:e,left:e}}function Zn(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 Dd(e,t,a){let{reference:o,floating:r}=e,n=xo(t),s=El(t),i=Dl(s),l=Ka(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:c};break;case"left":f={x:o.x-r.width,y:c};break;default:f={x:o.x,y:o.y}}switch(Ho(t)){case"start":f[s]-=p*(a&&u?-1:1);break;case"end":f[s]+=p*(a&&u?-1:1);break}return f}async function _r(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:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=vo(t,e),m=$c(f),h=i[p?c==="floating"?"reference":"floating":c],x=Zn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="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)),w=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},L=Zn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-L.top+m.top)/w.y,bottom:(L.bottom-x.bottom+m.bottom)/w.y,left:(x.left-L.left+m.left)/w.x,right:(L.right-x.right+m.right)/w.x}}function Ed(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fd(e){return Gx.some(t=>e[t]>=0)}async function o1(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ka(a),i=Ho(a),l=xo(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=vo(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(f=i==="end"?m*-1:m),l?{x:f*d,y:p*u}:{x:p*u,y:f*d}}function _o(e){return qc(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ba(e){var t;return(t=(qc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qc(e){return e instanceof Node||e instanceof bt(e).Node}function zt(e){return e instanceof Element||e instanceof bt(e).Element}function ta(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Od(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Zr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function l1(e){return["table","td","th"].includes(_o(e))}function ls(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Fl(e){let t=Ol(),a=zt(e)?Ut(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 i1(e){let t=Wa(e);for(;ta(t)&&!Uo(t);){if(Fl(t))return t;if(ls(t))return null;t=Wa(t)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uo(e){return["html","body","#document"].includes(_o(e))}function Ut(e){return bt(e).getComputedStyle(e)}function is(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wa(e){if(_o(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Od(e)&&e.host||ba(e);return Od(t)?t.host:t}function Nc(e){let t=Wa(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ta(t)&&Zr(t)?t:Nc(t)}function Vr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Nc(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=bt(r);return n?t.concat(s,s.visualViewport||[],Zr(r)?r:[],s.frameElement&&a?Vr(s.frameElement):[]):t.concat(r,Vr(r,[],a))}function zc(e){let t=Ut(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=ta(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=jn(a)!==n||jn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function Bl(e){return zt(e)?e:e.contextElement}function zo(e){let t=Bl(e);if(!ta(t))return Ga(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=zc(t),s=(n?jn(a.width):a.width)/o,i=(n?jn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function Uc(e){let t=bt(e);return!Ol()||!t.visualViewport?u1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function d1(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==bt(e)?!1:t}function yo(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=Bl(e),s=Ga(1);t&&(o?zt(o)&&(s=zo(o)):s=zo(e));let i=d1(n,a,o)?Uc(n):Ga(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,d=r.width/s.x,c=r.height/s.y;if(n){let p=bt(n),f=o&&zt(o)?bt(o):o,m=p,g=m.frameElement;for(;g&&o&&f!==m;){let h=zo(g),x=g.getBoundingClientRect(),y=Ut(g),C=x.left+(g.clientLeft+parseFloat(y.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(y.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=C,u+=w,m=bt(g),g=m.frameElement}}return Zn({width:d,height:c,x:l,y:u})}function c1(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=ba(o),i=t?ls(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Ga(1),d=Ga(0),c=ta(o);if((c||!c&&!n)&&((_o(o)!=="body"||Zr(s))&&(l=is(o)),ta(o))){let p=yo(o);u=zo(o),d.x=p.x+o.clientLeft,d.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+d.x,y:a.y*u.y-l.scrollTop*u.y+d.y}}function f1(e){return Array.from(e.getClientRects())}function Hc(e){return yo(ba(e)).left+is(e).scrollLeft}function p1(e){let t=ba(e),a=is(e),o=e.ownerDocument.body,r=Ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+Hc(e),i=-a.scrollTop;return Ut(o).direction==="rtl"&&(s+=Ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function m1(e,t){let a=bt(e),o=ba(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=Ol();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function g1(e,t){let a=yo(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=ta(e)?zo(e):Ga(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 Bd(e,t,a){let o;if(t==="viewport")o=m1(e,a);else if(t==="document")o=p1(ba(e));else if(zt(t))o=g1(t,a);else{let r=Uc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Zn(o)}function _c(e,t){let a=Wa(e);return a===t||!zt(a)||Uo(a)?!1:Ut(a).position==="fixed"||_c(a,t)}function h1(e,t){let a=t.get(e);if(a)return a;let o=Vr(e,[],!1).filter(i=>zt(i)&&_o(i)!=="body"),r=null,n=Ut(e).position==="fixed",s=n?Wa(e):e;for(;zt(s)&&!Uo(s);){let i=Ut(s),l=Fl(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Zr(s)&&!l&&_c(e,s))?o=o.filter(d=>d!==s):r=i,s=Wa(s)}return t.set(e,o),o}function x1(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?ls(t)?[]:h1(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Bd(t,d,r);return u.top=Ct(c.top,u.top),u.right=Yt(c.right,u.right),u.bottom=Yt(c.bottom,u.bottom),u.left=Ct(c.left,u.left),u},Bd(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function y1(e){let{width:t,height:a}=zc(e);return{width:t,height:a}}function v1(e,t,a){let o=ta(t),r=ba(t),n=a==="fixed",s=yo(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Ga(0);if(o||!o&&!n)if((_o(t)!=="body"||Zr(r))&&(i=is(t)),o){let c=yo(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=Hc(r));let u=s.left+i.scrollLeft-l.x,d=s.top+i.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function dl(e){return Ut(e).position==="static"}function $d(e,t){return!ta(e)||Ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function Vc(e,t){let a=bt(e);if(ls(e))return a;if(!ta(e)){let r=Wa(e);for(;r&&!Uo(r);){if(zt(r)&&!dl(r))return r;r=Wa(r)}return a}let o=$d(e,t);for(;o&&l1(o)&&dl(o);)o=$d(o,t);return o&&Uo(o)&&dl(o)&&!Fl(o)?a:o||i1(e)||a}function b1(e){return Ut(e).direction==="rtl"}function w1(e,t){let a=null,o,r=ba(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:d,width:c,height:p}=e.getBoundingClientRect();if(i||t(),!c||!p)return;let f=Gn(d),m=Gn(r.clientWidth-(u+c)),g=Gn(r.clientHeight-(d+p)),h=Gn(u),y={rootMargin:-f+"px "+-m+"px "+-g+"px "+-h+"px",threshold:Ct(0,Yt(1,l))||1},C=!0;function w(L){let E=L[0].intersectionRatio;if(E!==l){if(!C)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{a=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,y)}a.observe(e)}return s(!0),n}function L1(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=Bl(e),d=r||n?[...u?Vr(u):[],...Vr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?w1(u,a):null,p=-1,f=null;s&&(f=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=f)==null||C.observe(t)})),a()}),u&&!l&&f.observe(u),f.observe(t));let m,g=l?yo(e):null;l&&h();function h(){let x=yo(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&a(),g=x,m=requestAnimationFrame(h)}return a(),()=>{var x;d.forEach(y=>{r&&y.removeEventListener("scroll",a),n&&y.removeEventListener("resize",a)}),c?.(),(x=f)==null||x.disconnect(),f=null,l&&cancelAnimationFrame(m)}}function ql(){let e=Ue($l);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function Nl(e){let t=ql(),a=he({size:wl},e),[o,r]=ye(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=E1(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",d=()=>Number.parseInt(u())*2*(wl/o.size),c=()=>`rotate(${D1[n()]} ${qd} ${qd}) translate(0 2)`;return v(De,te({as:"div",ref(p){let f=ut(t.setArrowRef,o.ref);typeof f=="function"&&f(p)},"aria-hidden":"true",get style(){return os({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":d()},o.style)}},r,{get children(){let p=T1(),f=p.firstChild;return W(()=>O(f,"transform",c())),p}}))}function E1(e){let[t,a]=N();return Q(()=>{let o=e();o&&a(D0(o).getComputedStyle(o))}),t}function F1(e){let t=ql(),[a,o]=ye(e,["ref","style"]);return v(De,te({as:"div",ref(r){let n=ut(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return os({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Nd(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 O1(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?Nd(o):e?e.getBoundingClientRect():Nd()}}}function B1(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function q1(e,t){let[a,o]=e.split("-"),r=$1[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 N1(e){let t=he({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]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>O1(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Qa();async function d(){let p=l(),f=a(),m=r();if(!p||!f)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;f.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let x=[S1(({placement:E})=>{let D=!!E.split("-")[1];return{mainAxis:h,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let E=typeof t.flip=="string"?t.flip.split(" "):void 0;if(E!==void 0&&!E.every(B1))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(k1({padding:t.overflowPadding,fallbackPlacements:E}))}(t.slide||t.overlap)&&x.push(I1({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(P1({padding:t.overflowPadding,apply({availableWidth:E,availableHeight:D,rects:T}){let S=Math.round(T.reference.width);E=Math.floor(E),D=Math.floor(D),f.style.setProperty("--kb-popper-anchor-width",`${S}px`),f.style.setProperty("--kb-popper-content-available-width",`${E}px`),f.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(f.style.width=`${S}px`),t.fitViewport&&(f.style.maxWidth=`${E}px`,f.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(M1({padding:t.detachedPadding})),m&&x.push(R1({element:m,padding:t.arrowPadding}));let y=await A1(p,f,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...Gc,isRTL:()=>u()==="rtl"}});if(i(y.placement),t.onCurrentPlacementChange?.(y.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",q1(y.placement,u()));let C=Math.round(y.x),w=Math.round(y.y),L;if(t.hideWhenDetached&&(L=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${w}px, 0)`,visibility:L}),m&&y.middlewareData.arrow){let{x:E,y:D}=y.middlewareData.arrow,T=y.placement.split("-")[0];Object.assign(m.style,{left:E!=null?`${E}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}Q(()=>{let p=l(),f=a();if(!p||!f)return;let m=L1(p,f,d,{elementResize:typeof ResizeObserver=="function"});Z(m)}),Q(()=>{let p=a(),f=t.contentRef?.();!p||!f||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(f).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return v($l.Provider,{value:c,get children(){return t.children}})}function z1(e){let t=a=>{a.key===kl.Escape&&e.onEscapeKeyDown?.(a)};Q(()=>{if(at||A(e.isDisabled))return;let a=e.ownerDocument?.()??ea();a.addEventListener("keydown",t),Z(()=>{a.removeEventListener("keydown",t)})})}function U1(e,t){let a,o=Q0,r=()=>ea(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let p=c.target;return!(p instanceof HTMLElement)||p.closest(`[${Qn}]`)||!kt(r(),p)||kt(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=c=>{function p(){let f=t(),m=c.target;if(!f||!m||!l(c))return;let g=je([n,i]);m.addEventListener(zd,g,{once:!0});let h=new CustomEvent(zd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||$0(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},d=c=>{let p=t(),f=c.target;if(!p||!f||!l(c))return;let m=je([s,i]);f.addEventListener(Ud,m,{once:!0});let g=new CustomEvent(Ud,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});f.dispatchEvent(g)};Q(()=>{at||A(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),Z(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function H1(){return Ue(Wc)}function _1(e){let t,a=H1(),[o,r]=ye(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let p=a?.registerNestedLayer(c);return()=>{n.delete(c),p?.()}};U1({shouldExcludeElement:c=>t?o.excludedElements?.some(p=>kt(p(),c))||[...n].some(p=>kt(p,c)):!1,onPointerDownOutside:c=>{!t||yt.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!yt.isTopMostLayer(t)||(o.onPointerDownOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.())},onFocusOutside:c=>{o.onFocusOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.()}},()=>t),z1({ownerDocument:()=>ea(t),onEscapeKeyDown:c=>{!t||!yt.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ha(()=>{if(!t)return;yt.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);yt.assignPointerEventToLayers(),yt.disableBodyPointerEvents(t),Z(()=>{t&&(yt.removeLayer(t),c?.(),yt.assignPointerEventToLayers(),yt.restoreBodyPointerEvents(t))})}),Q(Jt([()=>t,()=>o.disableOutsidePointerEvents],([c,p])=>{if(!c)return;let f=yt.find(c);f&&f.isPointerBlocking!==p&&(f.isPointerBlocking=p,yt.assignPointerEventToLayers()),p&&yt.disableBodyPointerEvents(c),Z(()=>{yt.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return v(Wc.Provider,{value:d,get children(){return v(De,te({as:"div",ref(c){let p=ut(f=>t=f,o.ref);typeof p=="function"&&p(c)}},r))}})}function Qc(e={}){let[t,a]=wc({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 Xc(){let e=Ue(jc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Jr(){let e=Ue(Zc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Jc(e){let t=jr(),a=Xc(),o=`${t.generateId("item")}-${xt()}`,r=he({id:o},e),[n,s]=ye(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),[f,m]=N(),[g,h]=N(!1),x=k(()=>a.isSelectedValue(n.value)),y=k(()=>n.disabled||t.isDisabled()||!1),C=E=>{Te(E,n.onPointerDown),g()&&E.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":y()?"":void 0,"data-checked":x()?"":void 0})),L={value:()=>n.value,dataset:w,isSelected:x,isDisabled:y,inputId:i,labelId:u,descriptionId:c,inputRef:f,select:()=>a.setSelectedValue(n.value),generateId:Qr(()=>s.id),registerInput:Pt(l),registerLabel:Pt(d),registerDescription:Pt(p),setIsFocused:h,setInputRef:m};return v(Zc.Provider,{value:L,get children(){return v(De,te({as:"div",role:"group",onPointerDown:C},w,s))}})}function Yc(e){let t=Jr(),a=he({id:t.generateId("control")},e),[o,r]=ye(a,["onClick","onKeyDown"]);return v(De,te({as:"div",onClick:i=>{Te(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Te(i,o.onKeyDown),i.key===kl.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function ef(e){let t=Jr(),a=he({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,te({as:"div"},()=>t.dataset(),a))}function tf(e){let t=Jr(),a=he({id:t.generateId("indicator")},e),[o,r]=ye(a,["ref","forceMount"]),[n,s]=N(),{present:i}=Dc({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return v(j,{get when(){return i()},get children(){return v(De,te({as:"div",ref(l){let u=ut(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function af(e){let t=jr(),a=Xc(),o=Jr(),r=he({id:o.generateId("input")},e),[n,s]=ye(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,d]=N(!1),c=m=>{if(Te(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},p=m=>{Te(m,n.onFocus),o.setIsFocused(!0)},f=m=>{Te(m,n.onBlur),o.setIsFocused(!1)};return Q(Jt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!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})),Q(()=>Z(o.registerInput(s.id))),v(De,te({as:"input",ref(m){let g=ut(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 os({...yc},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:p,onBlur:f},()=>o.dataset(),s))}function of(e){let t=Jr(),a=he({id:t.generateId("label")},e);return Q(()=>Z(t.registerLabel(a.id))),v(De,te({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function rf(e){return v(Y0,te({as:"span"},e))}function nf(e){let t,a=`radiogroup-${xt()}`,o=he({id:a,orientation:"vertical"},e),[r,n,s]=ye(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Z0),[i,l]=Xr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=J0(n);ex(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(A(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),f={ariaDescribedBy:c,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=p(h.value)}}};return v(vc.Provider,{value:u,get children(){return v(jc.Provider,{value:f,get children(){return v(De,te({as:"div",ref(m){let g=ut(h=>t=h,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 d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function K1(e,t,a){let o=bx({usage:"search",sensitivity:"base"}),r=k(()=>{let n=A(e.keyboardDelegate);return n||new G1(e.collection,t,o)});return Mx({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 W1(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>ea(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,yc),m},d=()=>{let m=t();return m?hc(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},p=()=>{let m=d();return m.length>0?m[m.length-1]:null},f=()=>{let m=t();if(!m)return!1;let g=Nr(m);return!g||kt(m,g)?!1:xc(g)};Q(()=>{if(at)return;let m=t();if(!m)return;_d.add(r);let g=Nr(m);if(!kt(m,g)){let x=new CustomEvent(cl,Hd);m.addEventListener(cl,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{rt(c()),Nr(m)===g&&rt(m)},0)}Z(()=>{m.removeEventListener(cl,s),setTimeout(()=>{let x=new CustomEvent(fl,Hd);f()&&x.preventDefault(),m.addEventListener(fl,i),m.dispatchEvent(x),x.defaultPrevented||rt(g??l().body),m.removeEventListener(fl,i),_d.remove(r)},0)})}),Q(()=>{if(at)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=x=>{let y=x.target;y?.closest(`[${Qn}]`)||(kt(m,y)?n=y:rt(n))},h=x=>{let C=x.relatedTarget??Nr(m);C?.closest(`[${Qn}]`)||kt(m,C)||rt(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),Z(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),Q(()=>{if(at)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(C){let w=c(),L=p();C.relatedTarget===w?rt(L):rt(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let y=new MutationObserver(C=>{for(let w of C)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});y.observe(m,{childList:!0,subtree:!1}),Z(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),y.disconnect()})})}function j1(e){Q(()=>{A(e.isDisabled)||Z(X1(A(e.targets),A(e.root)))})}function X1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${Q1}], [${Qn}]`))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 f of a)if(p.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(l);if(c===NodeFilter.FILTER_ACCEPT&&n(l),c!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)n(p),p=d.nextNode()}},n=l=>{let u=$r.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),$r.set(l,u+1))};St.length&&St[St.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(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(a.delete(d),o.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?a.add(d):d instanceof Element&&r(d)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return St.push(i),()=>{s.disconnect();for(let l of o){let u=$r.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),$r.delete(l)):$r.set(l,u-1)}i===St[St.length-1]?(St.pop(),St.length&&St[St.length-1].observe()):St.splice(St.indexOf(i),1)}}function lf(){return Ue(sf)}function wa(){let e=lf();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function zl(){let e=Ue(uf);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function aa(){let e=Ue(df);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Ul(e){let t,a=aa(),o=wa(),r=he({id:a.generateId(`item-${xt()}`)},e),[n,s]=ye(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),f=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>f().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};px({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Tc({key:m,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),y=S=>{Te(S,n.onPointerMove),S.pointerType==="mouse"&&(n.disabled?o.onItemLeave(S):(o.onItemEnter(S),S.defaultPrevented||(rt(S.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},C=S=>{Te(S,n.onPointerLeave),S.pointerType==="mouse"&&o.onItemLeave(S)},w=S=>{Te(S,n.onPointerUp),!n.disabled&&S.button===0&&h()},L=S=>{if(Te(S,n.onKeyDown),!S.repeat&&!n.disabled)switch(S.key){case"Enter":case" ":h();break}},E=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"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})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:p,generateId:Qr(()=>s.id),registerLabel:Pt(l),registerDescription:Pt(d)};return v(uf.Provider,{value:T,get children(){return v(De,te({as:"div",ref(S){let I=ut(_=>t=_,n.ref);typeof I=="function"&&I(S)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return E()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return x.dataKey()},get onPointerDown(){return je([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return je([w,x.onPointerUp])},get onClick(){return je([n.onClick,x.onClick])},get onKeyDown(){return je([L,x.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,x.onMouseDown])},get onFocus(){return je([n.onFocus,x.onFocus])},onPointerMove:y,onPointerLeave:C},D,s))}})}function cf(e){let t=he({closeOnSelect:!1},e),[a,o]=ye(t,["checked","defaultChecked","onChange","onSelect"]),r=rx({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return v(Ul,te({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function us(){return Ue(sy)}function ff(e){let t=aa(),a=wa(),o=us(),{direction:r}=Qa(),n=he({id:t.generateId("trigger")},e),[s,i]=ye(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=ns(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);Q(Jt(()=>o?.value(),x=>{d()&&x===l()&&a.triggerRef()?.focus()}));let c=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=x=>{Te(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},f=x=>{Te(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Te(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case jd.first(t.orientation()):x.stopPropagation(),x.preventDefault(),X0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case jd.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Gr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Gr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{Te(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{Te(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return Q(()=>Z(a.registerTriggerId(s.id))),v(Tl,te({ref(x){let y=ut(a.setTriggerRef,s.ref);typeof y=="function"&&y(x)},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 k(()=>!!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:f,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function pf(){return Ue(ly)}function mf(e){let t,a=aa(),o=wa(),r=us(),n=pf(),{direction:s}=Qa(),i=he({id:a.generateId(`content-${xt()}`)},e),[l,u]=ye(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,c=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=K1({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);W1({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:C=>{r===void 0&&l.onOpenAutoFocus?.(C)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let f=C=>{if(kt(C.currentTarget,C.target)&&(C.key==="Tab"&&o.isOpen()&&C.preventDefault(),r!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case Gr.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Gr.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()},h=C=>{Te(C,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=C=>{if(Te(C,l.onPointerMove),C.pointerType!=="mouse")return;let w=C.target,L=d!==C.clientX;kt(C.currentTarget,w)&&L&&(o.setPointerDir(C.clientX>d?"right":"left"),d=C.clientX)};Q(()=>Z(o.registerContentId(l.id)));let y={ref:ut(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:je([l.onKeyDown,p.onKeyDown,f]),onMouseDown:je([l.onMouseDown,p.onMouseDown]),onFocusIn:je([l.onFocusIn,p.onFocusIn]),onFocusOut:je([l.onFocusOut,p.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return v(j,{get when(){return o.contentPresent()},get children(){return v(j,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return v(De,te({as:"div"},()=>o.dataset(),y,u))},get children(){return v(Kc.Positioner,{get children(){return v(_1,te({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return os({"--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(),y,u))}})}})}})}function iy(e){let t,a=aa(),o=wa(),[r,n]=ye(e,["ref"]);return ny({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),v(mf,te({ref(s){let i=ut(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function uy(){let e=Ue(gf);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Hl(e){let t=aa(),a=he({id:t.generateId(`group-${xt()}`)},e),[o,r]=N(),n={generateId:Qr(()=>a.id),registerLabelId:Pt(r)};return v(gf.Provider,{value:n,get children(){return v(De,te({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function hf(e){let t=uy(),a=he({id:t.generateId("label")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerLabelId(o.id))),v(De,te({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function xf(e){let t=wa(),a=he({children:"\u25BC"},e);return v(De,te({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function yf(e){return v(Ul,te({role:"menuitem",closeOnSelect:!0},e))}function vf(e){let t=zl(),a=he({id:t.generateId("description")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerDescription(o.id))),v(De,te({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Cf(e){let t=zl(),a=he({id:t.generateId("indicator")},e),[o,r]=ye(a,["forceMount"]);return v(j,{get when(){return o.forceMount||t.isChecked()},get children(){return v(De,te({as:"div"},()=>t.dataset(),r))}})}function bf(e){let t=zl(),a=he({id:t.generateId("label")},e),[o,r]=ye(a,["ref","id"]);return Q(()=>Z(t.registerLabel(o.id))),v(De,te({as:"div",ref(n){let s=ut(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function wf(e){let t=wa();return v(j,{get when(){return t.contentPresent()},get children(){return v(rl,e)}})}function dy(){let e=Ue(Lf);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Sf(e){let a=aa().generateId(`radiogroup-${xt()}`),o=he({id:a},e),[r,n]=ye(o,["value","defaultValue","onChange","disabled"]),[s,i]=Xr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return v(Lf.Provider,{value:l,get children(){return v(Hl,n)}})}function If(e){let t=dy(),a=he({closeOnSelect:!1},e),[o,r]=ye(a,["value","onSelect"]);return v(Ul,te({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function cy(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 fy(e,t){return t?j0([e.clientX,e.clientY],t):!1}function kf(e){let t=aa(),a=Sc(),o=lf(),r=us(),n=pf(),s=he({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ye(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[p,f]=N(),[m,g]=N(),[h,x]=N(),[y,C]=N(),[w,L]=N(!0),[E,D]=N(l.placement),[T,S]=N([]),[I,_]=N([]),{DomCollectionProvider:F}=fx({items:I,onItemsChange:_}),re=Qc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:ee=>i.onOpenChange?.(ee)}),{present:fe}=Dc({show:()=>t.forceMount()||re.isOpen(),element:()=>y()??null}),J=Ax({selectionMode:"none",dataSource:I}),ne=ee=>{L(ee),re.open()},me=(ee=!1)=>{re.close(),ee&&o&&o.close(!0)},xe=ee=>{L(ee),re.toggle()},Ce=()=>{let ee=y();ee&&(rt(ee),J.selectionManager().setFocused(!0),J.selectionManager().setFocusedKey(void 0))},Oe=()=>{n!=null?setTimeout(()=>Ce()):Ce()},Re=ee=>{S(et=>[...et,ee]);let Ft=o?.registerNestedMenu(ee);return()=>{S(et=>hl(et,ee)),Ft?.()}},qe=ee=>c===d?.side&&fy(ee,d?.area),lt=ee=>{qe(ee)&&ee.preventDefault()},$=ee=>{qe(ee)||Oe()},Be=ee=>{qe(ee)&&ee.preventDefault()};j1({isDisabled:()=>!(o==null&&re.isOpen()&&t.isModal()),targets:()=>[y(),...T()].filter(Boolean)}),Q(()=>{let ee=y();if(!ee||!o)return;let Ft=o.registerNestedMenu(ee);Z(()=>{Ft()})}),Q(()=>{o===void 0&&r?.registerMenu(t.value(),[y(),...T()])}),Q(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&ne(!0)):me())}),Q(()=>{o!==void 0||r===void 0||re.isOpen()&&r.setValue(t.value())}),Z(()=>{o===void 0&&r?.unregisterMenu(t.value())});let Ea={dataset:k(()=>({"data-expanded":re.isOpen()?"":void 0,"data-closed":re.isOpen()?void 0:""})),isOpen:re.isOpen,contentPresent:fe,nestedMenus:T,currentPlacement:E,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>J,parentMenuContext:()=>o,triggerRef:h,contentRef:y,triggerId:p,contentId:m,setTriggerRef:x,setContentRef:C,open:ne,close:me,toggle:xe,focusContent:Oe,onItemEnter:lt,onItemLeave:$,onTriggerLeave:Be,setPointerDir:ee=>c=ee,setPointerGraceTimeoutId:ee=>u=ee,setPointerGraceIntent:ee=>d=ee,registerNestedMenu:Re,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Pt(f),registerContentId:Pt(g)};return v(F,{get children(){return v(sf.Provider,{value:Ea,get children(){return v(j,{when:n===void 0,get fallback(){return l.children},get children(){return v(Kc,te({anchorRef:h,contentRef:y,onCurrentPlacementChange:D},l))}})}})}})}function Pf(e){let{direction:t}=Qa();return v(kf,te({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Mf(e){let t=wa(),a=aa(),[o,r]=ye(e,["onFocusOutside","onKeyDown"]),{direction:n}=Qa();return v(mf,te({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;kt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Te(d,o.onKeyDown);let c=kt(d.currentTarget,d.target),p=py.close(n(),a.orientation()).includes(d.key),f=t.parentMenuContext()!=null;c&&p&&f&&(t.close(),rt(t.triggerRef()))}},r))}function Rf(e){let t,a=aa(),o=wa(),r=he({id:a.generateId(`sub-trigger-${xt()}`)},e),[n,s]=ye(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{at||(i&&window.clearTimeout(i),i=null)},{direction:u}=Qa(),d=()=>n.id,c=()=>{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(),f=()=>c().focusedKey()===d(),m=Tc({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=C=>{Te(C,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=C=>{if(Te(C,n.onPointerMove),C.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(C),!C.defaultPrevented){if(n.disabled){w?.onItemLeave(C);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(C),C.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),rt(C.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=C=>{if(Te(C,n.onPointerLeave),C.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),L=o.contentRef();if(L){w?.setPointerGraceIntent({area:cy(o.currentPlacement(),C,L),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let E=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(E)}else{if(w?.onTriggerLeave(C),C.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(C)},y=C=>{Te(C,n.onKeyDown),!C.repeat&&(n.disabled||my.open(u(),a.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return Q(()=>{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:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});Z(C)}),Q(Jt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),C=>{Z(()=>{window.clearTimeout(C),o.parentMenuContext()?.setPointerGraceIntent(null)})})),Q(()=>Z(o.registerTriggerId(n.id))),Z(()=>{l()}),v(De,te({as:"div",ref(C){let w=ut(L=>{o.setTriggerRef(L),t=L},n.ref);typeof w=="function"&&w(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 k(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return je([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return je([n.onPointerUp,m.onPointerUp])},get onClick(){return je([g,m.onClick])},get onKeyDown(){return je([y,m.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,m.onMouseDown])},get onFocus(){return je([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function gy(e){let t=us(),a=`menu-${xt()}`,o=he({id:a,modal:!0},e),[r,n]=ye(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Qc({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:Qr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return v(df.Provider,{value:i,get children(){return v(kf,te({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function ds(e){let t,a=he({orientation:"horizontal"},e),[o,r]=ye(a,["ref","orientation"]),n=ns(()=>t,()=>"hr");return v(De,te({as:"hr",ref(s){let i=ut(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 Af(e){let t=aa(),a=wa(),[o,r]=ye(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return v(iy,te({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||rt(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function Tf(e){let t=`dropdownmenu-${xt()}`,a=he({id:t},e);return v(gy,a)}function zy(){return vy()}function Ef(){return Cy()}function Ur(){return by()}function Zd(){return wy()}function Jd(){return _l()}function Uy(){return(()=>{var e=_l();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Hy(){return(()=>{var e=_l();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _y(){return Ly()}function Vy(){return Sy()}function Gy(){return Iy()}function Ky(){return ky()}function Wy(){return Py()}function Qy(){return My()}function jy(){return Ry()}function Xy(){return Ay()}function Zy(){return Ty()}function Jy(e){return(()=>{var t=Df(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Yy(){return Dy()}function ev(){return Ey()}function tv(e){return[v(j,{get when(){return e.checked},get children(){var t=Df(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),v(j,{get when(){return!e.checked},get children(){var t=Fy(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function av(){return Oy()}function ov(){return By()}function rv(){return $y()}function nv(){return qy()}function Yd(){let e=xt();return(()=>{var t=Ny(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,d=u.firstChild,c=u.nextSibling,p=c.firstChild,f=c.nextSibling,m=f.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,y=h.nextSibling,C=y.nextSibling,w=C.firstChild,L=C.nextSibling,E=L.firstChild,D=L.nextSibling,T=D.nextSibling,S=T.firstChild,I=T.nextSibling,_=I.firstChild,F=I.nextSibling,re=F.nextSibling,fe=re.firstChild,J=re.nextSibling,ne=J.firstChild,me=J.nextSibling,xe=me.nextSibling,Ce=xe.firstChild,Oe=xe.nextSibling,Re=Oe.firstChild,qe=Oe.nextSibling,lt=qe.firstChild,$=lt.nextSibling,Be=$.nextSibling,be=Be.nextSibling,Ea=be.nextSibling,ee=qe.nextSibling,Ft=ee.firstChild,et=ee.nextSibling,So=et.firstChild,wt=et.nextSibling,Fa=wt.firstChild,no=Fa.nextSibling,ia=no.nextSibling,Wt=ia.firstChild,ua=Wt.nextSibling,z=ua.nextSibling,Ie=z.nextSibling,it=Ie.nextSibling,Pe=it.nextSibling,Se=Pe.nextSibling,Ae=Se.nextSibling,We=Ae.nextSibling,Le=We.nextSibling,da=Le.nextSibling,ca=da.nextSibling,Ot=wt.nextSibling,so=Ot.firstChild,fa=Ot.nextSibling,lo=fa.firstChild,pa=fa.nextSibling,Oa=pa.firstChild,xn=Oa.nextSibling,Zo=pa.nextSibling,yn=Zo.firstChild,Io=Zo.nextSibling,vn=Io.firstChild,Jo=Io.nextSibling,Yo=Jo.firstChild,er=Yo.nextSibling,ko=er.nextSibling,Ri=ko.nextSibling,Ai=Ri.nextSibling,Ti=Ai.nextSibling,Di=Ti.nextSibling,Ei=Di.nextSibling,Fi=Ei.nextSibling,Oi=Fi.nextSibling,Bi=Oi.nextSibling,$i=Bi.nextSibling,qi=$i.nextSibling,Ni=qi.nextSibling,zi=Ni.nextSibling,Ui=zi.nextSibling,Hi=Ui.nextSibling,_m=Hi.nextSibling;return O(a,"id",`a-${e}`),O(o,"fill",`url(#a-${e})`),O(n,"id",`am-${e}`),O(s,"id",`b-${e}`),O(i,"filter",`url(#am-${e})`),O(l,"mask",`url(#b-${e})`),O(d,"id",`ah-${e}`),O(c,"id",`k-${e}`),O(p,"filter",`url(#ah-${e})`),O(f,"mask",`url(#k-${e})`),O(g,"id",`ae-${e}`),O(h,"id",`j-${e}`),O(x,"filter",`url(#ae-${e})`),O(y,"mask",`url(#j-${e})`),O(w,"id",`ai-${e}`),O(L,"id",`i-${e}`),O(E,"filter",`url(#ai-${e})`),O(D,"mask",`url(#i-${e})`),O(S,"id",`aj-${e}`),O(I,"id",`h-${e}`),O(_,"filter",`url(#aj-${e})`),O(F,"mask",`url(#h-${e})`),O(fe,"id",`ag-${e}`),O(J,"id",`g-${e}`),O(ne,"filter",`url(#ag-${e})`),O(me,"mask",`url(#g-${e})`),O(Ce,"id",`af-${e}`),O(Oe,"id",`f-${e}`),O(Re,"filter",`url(#af-${e})`),O(qe,"mask",`url(#f-${e})`),O(be,"id",`m-${e}`),O(Ea,"fill",`url(#m-${e})`),O(Ft,"id",`ak-${e}`),O(et,"id",`e-${e}`),O(So,"filter",`url(#ak-${e})`),O(wt,"mask",`url(#e-${e})`),O(Fa,"id",`n-${e}`),O(no,"fill",`url(#n-${e})`),O(Wt,"id",`r-${e}`),O(ua,"fill",`url(#r-${e})`),O(z,"id",`s-${e}`),O(Ie,"fill",`url(#s-${e})`),O(it,"id",`q-${e}`),O(Pe,"fill",`url(#q-${e})`),O(Se,"id",`p-${e}`),O(Ae,"fill",`url(#p-${e})`),O(We,"id",`o-${e}`),O(Le,"fill",`url(#o-${e})`),O(da,"id",`l-${e}`),O(ca,"fill",`url(#l-${e})`),O(so,"id",`al-${e}`),O(fa,"id",`d-${e}`),O(lo,"filter",`url(#al-${e})`),O(pa,"mask",`url(#d-${e})`),O(Oa,"id",`u-${e}`),O(xn,"fill",`url(#u-${e})`),O(yn,"id",`ad-${e}`),O(Io,"id",`c-${e}`),O(vn,"filter",`url(#ad-${e})`),O(Jo,"mask",`url(#c-${e})`),O(Yo,"id",`t-${e}`),O(er,"fill",`url(#t-${e})`),O(ko,"id",`v-${e}`),O(Ri,"stroke",`url(#v-${e})`),O(Ai,"id",`aa-${e}`),O(Ti,"stroke",`url(#aa-${e})`),O(Di,"id",`w-${e}`),O(Ei,"stroke",`url(#w-${e})`),O(Fi,"id",`ac-${e}`),O(Oi,"stroke",`url(#ac-${e})`),O(Bi,"id",`ab-${e}`),O($i,"stroke",`url(#ab-${e})`),O(qi,"id",`y-${e}`),O(Ni,"stroke",`url(#y-${e})`),O(zi,"id",`x-${e}`),O(Ui,"stroke",`url(#x-${e})`),O(Hi,"id",`z-${e}`),O(_m,"stroke",`url(#z-${e})`),t})()}function hv(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function oc(e){return Symbol.iterator in e}function _a(e){let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&oc(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})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&oc(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=k(()=>hv(d(),100)),f=e.dataPath??[];return(()=>{var m=qr();return P(m,v(j,{get when(){return p().length},get children(){return[(()=>{var g=fv(),h=g.firstChild,x=h.firstChild,y=x.nextSibling,C=y.nextSibling,w=C.nextSibling,L=w.firstChild;return h.$$click=()=>i(),P(h,v(tc,{get expanded(){return n()}}),x),P(y,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",L),P(w,()=>d().length,L),P(w,()=>d().length>1?"items":"item",null),P(g,v(j,{get when(){return e.editable},get children(){var E=qr();return P(E,v(xv,{get value(){return e.value}}),null),P(E,v(j,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(ac,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return v(yv,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return k(()=>!!e.onEdit)()&&!nl(e.value).meta},get children(){var D=cv();return D.$$click=()=>{e.onEdit?.()},P(D,v(Zy,{})),W(()=>B(D,o().actionButton)),D}}),null),W(()=>B(E,o().actions)),E}}),null),W(E=>{var D=o().expanderButtonContainer,T=o().expanderButton,S=o().info;return D!==E.e&&B(g,E.e=D),T!==E.t&&B(h,E.t=T),S!==E.a&&B(w,E.a=S),E},{e:void 0,t:void 0,a:void 0}),g})(),v(j,{get when(){return n()},get children(){return[v(j,{get when(){return p().length===1},get children(){var g=qr();return P(g,v(Wn,{get each(){return d()},by:h=>h.label,children:h=>v(_a,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...f,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),W(()=>B(g,o().subEntry)),g}}),v(j,{get when(){return p().length>1},get children(){var g=qr();return P(g,v(qu,{get each(){return p()},children:(h,x)=>(()=>{var y=gv(),C=y.firstChild,w=C.firstChild,L=w.firstChild,E=L.nextSibling,D=E.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(S=>S.includes(x)?S.filter(I=>I!==x):[...S,x]),P(w,v(tc,{get expanded(){return l().includes(x)}}),L),P(w,x*100,E),P(w,x*100+100-1,T),P(C,v(j,{get when(){return l().includes(x)},get children(){var S=qr();return P(S,v(Wn,{get each(){return h()},by:I=>I.label,children:I=>v(_a,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...f,I().label]},get activeQuery(){return e.activeQuery}})})),W(()=>B(S,o().subEntry)),S}}),null),W(S=>{var I=o().entry,_=o().expanderButton;return I!==S.e&&B(C,S.e=I),_!==S.t&&B(w,S.t=_),S},{e:void 0,t:void 0}),y})()})),W(()=>B(g,o().subEntry)),g}})]}})]}}),null),P(m,v(j,{get when(){return p().length===0},get children(){var g=mv(),h=g.firstChild,x=h.firstChild;return P(h,()=>e.label,x),P(g,v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var y=ec();return P(y,()=>Fr(e.value)),W(()=>B(y,o().value)),y})()},get children(){return[v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var y=pv();return y.addEventListener("change",C=>{let w=e.activeQuery.state.data,L=za(w,f,c()==="number"?C.target.valueAsNumber:C.target.value);r.setQueryData(e.activeQuery.queryKey,L)}),W(C=>{var w=c()==="number"?"number":"text",L=H(o().value,o().editableInput);return w!==C.e&&O(y,"type",C.e=w),L!==C.t&&B(y,C.t=L),C},{e:void 0,t:void 0}),W(()=>y.value=e.value),y}}),v(j,{get when(){return c()==="boolean"},get children(){var y=ec();return P(y,v(vv,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),P(y,()=>Fr(e.value),null),W(()=>B(y,H(o().value,o().actions,o().editableInput))),y}})]}}),null),P(g,v(j,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(ac,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),W(y=>{var C=o().row,w=o().label;return C!==y.e&&B(g,y.e=C),w!==y.t&&B(h,y.t=w),y},{e:void 0,t:void 0}),g}}),null),W(()=>B(m,o().entry)),m})()}var _h,Vh,cd,Gh,Kh,A,pl,jh,es,Jh,fd,Lt,Yh,ho,Sl,e0,ml,ts,t0,sc,a0,lc,o0,pd,r0,Kr,ic,as,Il,Wr,uc,n0,s0,ft,xd,p0,m0,g0,h0,yd,go,xa,dc,x0,y0,vd,Cd,il,M0,kl,Vn,gc,U0,Ml,H0,Br,Id,yc,Z0,vc,nx,ss,Lc,gx,hx,yl,zr,Cx,ul,ya,Rx,Td,ot,Tx,Dx,Dc,Qn,Ec,vl,Ca,yt,Ux,Hx,Vx,Gx,Yt,Ct,jn,Gn,Ga,Kx,Wx,Yx,e1,t1,a1,r1,n1,s1,u1,C1,Gc,S1,I1,k1,P1,M1,R1,A1,$l,T1,wl,qd,D1,$1,Kc,zd,Ud,Wc,It,jc,Zc,V1,G1,cl,fl,Hd,_d,Q1,$r,St,Kn,Z1,Vd,J1,Y1,ey,Gd,Kd,ty,ay,oy,Wd,Qd,Ll,ry,ny,sf,uf,df,sy,Gr,jd,ly,gf,Lf,py,Xd,my,hy,xy,He,yy,M,vy,Cy,by,wy,_l,Ly,Sy,Iy,ky,Py,My,Ry,Ay,Ty,Df,Dy,Ey,Fy,Oy,By,$y,qy,Ny,sv,lv,iv,uv,dv,cv,qr,fv,pv,ec,mv,gv,tc,xv,yv,ac,vv,Ff,Vo,Go,Cv,Yr,bv,wv,Lv,Sv,Iv,kv,Pv,Mv,Rv,Av,Tv,Dv,Ev,Fv,Ov,Bv,$v,qv,Nv,rc,zv,Of,Uv,Hv,_v,Vv,Gv,Kv,Wv,Qv,jv,Xv,vt,cs,Va,Bf,Nt,Vl,$o,nc,$f,Zv,qf,Jv,fs,Yv,eC,tC,aC,va,oC,rC,Jn,nC,Je,Yn,sC,qt,Nf,Mt,Rt,Gl=tr(()=>{"use strict";b();Or();_h=!at,Vh=_h&&!!zu,cd=()=>{},Gh=e=>e!=null,Kh=e=>e.filter(Gh);A=e=>typeof e=="function"&&!e.length?e():e,pl=e=>Array.isArray(e)?e:e?[e]:[];jh=Vh?e=>En()?Z(e):e:Z;es=Zh,Jh=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),fd=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},Lt=Jh({_cookies:[globalThis.document,"cookie"],getItem:e=>Lt._cookies[0][Lt._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=Lt.getItem(e);Lt._cookies[0][Lt._cookies[1]]=`${e}=${t}${fd(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:Lt});window.dispatchEvent(r)},removeItem:e=>{Lt._cookies[0][Lt._cookies[1]]=`${e}=deleted${fd({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return Lt._cookies[0][Lt._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return Lt._cookies[0][Lt._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),Yh=1024,ho=796,Sl=700,e0="bottom-right",ml="bottom",ts="system",t0=!1,sc=500,a0=500,lc=500,o0=Object.keys(Un)[0],pd=1,r0=Object.keys(Hn)[0],Kr=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});ic=Qe(void 0),as=e=>{let[t,a]=N(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="",Uu(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(X().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),p=u.ownerNode,f="";p&&"id"in p&&(f=p.id),f&&c.setAttribute("id",f),c.textContent=d,l.document.head.appendChild(c)}catch{let c=document.createElement("link");if(u.href==null)return;c.rel="stylesheet",c.type=u.type,c.media=u.media.toString(),c.href=u.href,l.document.head.appendChild(c)}}),Er(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};Q(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||a0))}),Q(()=>{let s=(X().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(X().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),Z(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return v(ic.Provider,{value:n,get children(){return e.children}})},Il=()=>k(()=>{let t=Ue(ic);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Wr=Qe(()=>"dark");uc={\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"},n0=Object.keys(uc).join("|"),s0=new RegExp(n0,"g");ft={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};xd={maxRanking:1/0,minRanking:-1/0};p0={data:""},m0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||p0,g0=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,h0=/\/\*[^]*?\*\/| +/g,yd=/\n+/g,go=(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"?go(s,n):n+"{"+go(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=go(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+=go.p?go.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},xa={},dc=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+dc(e[a]);return t}return e},x0=(e,t,a,o,r)=>{let n=dc(e),s=xa[n]||(xa[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!xa[s]){let l=n!==e?e:(u=>{let d,c,p=[{}];for(;d=g0.exec(u.replace(h0,""));)d[4]?p.shift():d[3]?(c=d[3].replace(yd," ").trim(),p.unshift(p[0][c]=p[0][c]||{})):p[0][d[1]]=d[2].replace(yd," ").trim();return p[0]})(e);xa[s]=go(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&xa.g?xa.g:null;return a&&(xa.g=xa[s]),((l,u,d,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(xa[s],t,o,i),s},y0=(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?"":go(i,""):i===!1?"":i}return o+r+(s??"")},"");se.bind({g:1});se.bind({k:1});vd=at?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Cd=e=>{let t=b0(e);return v0(C0(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)w0(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:d}of i)if(u.isConnected){let c=u.getBoundingClientRect(),p=d.left-c.left,f=d.top-c.top;(p||f)&&(u.style.transform=`translate(${p}px, ${f}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let d=function(c){(c.target===u||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",d),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",d)}});for(let l of o)L0(s,e,l,()=>r([l]))}})},il=Symbol("fallback");M0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;kl=(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))(kl||{});Vn=null;gc=["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'])"],U0=[...gc,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Ml=gc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",H0=U0.join(':not([hidden]):not([tabindex="-1"]),');Br=new Map,Id=new Set;typeof document<"u"&&(document.readyState!=="loading"?kd():document.addEventListener("DOMContentLoaded",kd));yc={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"};Z0=["id","name","validationState","required","disabled","readOnly"];vc=Qe();nx=Object.defineProperty,ss=(e,t)=>{for(var a in t)nx(e,a,{get:t[a],enumerable:!0})},Lc=Qe();gx=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);yl=Mc(),zr=new Set;Cx=Qe();ul=new Map;ya=class Rc extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Rc?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Rx=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 ya(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 ya(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 ya([t],t,t):new ya;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new ya;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 ya)}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}},Td=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])}};ot=e=>typeof e=="function"?e():e,Tx=e=>{let t=k(()=>{let s=ot(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(ot(e.show)?"present":"hidden"),n="none";return Q(s=>{let i=ot(e.show);return ke(()=>{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}),Q(()=>{let s=ot(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let c=a().includes(u.animationName);u.target===s&&c&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),Z(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},Dx=Tx,Dc=Dx,Qn="data-kb-top-layer",vl=!1,Ca=[];yt={layers:Ca,isTopMostLayer:Fx,hasPointerBlockingLayer:Al,isBelowPointerBlockingLayer:Oc,addLayer:Bx,removeLayer:$x,indexOf:Hr,find:Ex,assignPointerEventToLayers:qx,disableBodyPointerEvents:Nx,restoreBodyPointerEvents:zx},Ux={};ss(Ux,{Button:()=>Vx,Root:()=>Tl});Hx=["button","color","file","image","reset","submit"];Vx=Tl,Gx=["top","right","bottom","left"],Yt=Math.min,Ct=Math.max,jn=Math.round,Gn=Math.floor,Ga=e=>({x:e,y:e}),Kx={left:"right",right:"left",bottom:"top",top:"bottom"},Wx={start:"end",end:"start"};Yx=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:d,y:c}=Dd(u,o,l),p=o,f={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:y,y:C,data:w,reset:L}=await x({x:d,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});d=y??d,c=C??c,f={...f,[h]:{...f[h],...w}},L&&m<=50&&(m++,typeof L=="object"&&(L.placement&&(p=L.placement),L.rects&&(u=L.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):L.rects),{x:d,y:c}=Dd(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:r,middlewareData:f}};e1=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:d=0}=vo(e,t)||{};if(u==null)return{};let c=$c(d),p={x:a,y:o},f=El(r),m=Dl(f),g=await s.getDimensions(u),h=f==="y",x=h?"top":"left",y=h?"bottom":"right",C=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[f]-p[f]-n.floating[m],L=p[f]-n.reference[f],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=E?E[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(E)))&&(D=i.floating[C]||n.floating[m]);let T=w/2-L/2,S=D/2-g[m]/2-1,I=Yt(c[x],S),_=Yt(c[y],S),F=I,re=D-g[m]-_,fe=D/2-g[m]/2+T,J=Cl(F,fe,re),ne=!l.arrow&&Ho(r)!=null&&fe!==J&&n.reference[m]/2-(fe<F?I:_)-g[m]/2<0,me=ne?fe<F?fe-F:fe-re:0;return{[f]:p[f]+me,data:{[f]:J,centerOffset:fe-J-me,...ne&&{alignmentOffset:me}},reset:ne}}}),t1=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:d=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=vo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Ka(r),y=xo(i),C=Ka(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=p||(C||!g?[Xn(i)]:jx(i)),E=m!=="none";!p&&E&&L.push(...Zx(i,g,m,w));let D=[i,...L],T=await _r(t,h),S=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&S.push(T[x]),c){let fe=Qx(r,s,w);S.push(T[fe[0]],T[fe[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(fe=>fe<=0)){var _,F;let fe=(((_=n.flip)==null?void 0:_.index)||0)+1,J=D[fe];if(J)return{data:{index:fe,overflows:I},reset:{placement:J}};let ne=(F=I.filter(me=>me.overflows[0]<=0).sort((me,xe)=>me.overflows[1]-xe.overflows[1])[0])==null?void 0:F.placement;if(!ne)switch(f){case"bestFit":{var re;let me=(re=I.filter(xe=>{if(E){let Ce=xo(xe.placement);return Ce===y||Ce==="y"}return!0}).map(xe=>[xe.placement,xe.overflows.filter(Ce=>Ce>0).reduce((Ce,Oe)=>Ce+Oe,0)]).sort((xe,Ce)=>xe[1]-Ce[1])[0])==null?void 0:re[0];me&&(ne=me);break}case"initialPlacement":ne=i;break}if(r!==ne)return{reset:{placement:ne}}}return{}}}};a1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=vo(e,t);switch(o){case"referenceHidden":{let n=await _r(t,{...r,elementContext:"reference"}),s=Ed(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Fd(s)}}}case"escaped":{let n=await _r(t,{...r,altBoundary:!0}),s=Ed(n,a.floating);return{data:{escapedOffsets:s,escaped:Fd(s)}}}default:return{}}}}};r1=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 o1(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}}}}},n1=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:h=>{let{x,y}=h;return{x,y}}},...l}=vo(e,t),u={x:a,y:o},d=await _r(t,l),c=xo(Ka(r)),p=Bc(c),f=u[p],m=u[c];if(n){let h=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=f+d[h],C=f-d[x];f=Cl(y,f,C)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",y=m+d[h],C=m-d[x];m=Cl(y,m,C)}let g=i.fn({...t,[p]:f,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},s1=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}=vo(e,t),l=await _r(t,i),u=Ka(a),d=Ho(a),c=xo(a)==="y",{width:p,height:f}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");let h=f-l.top-l.bottom,x=p-l.left-l.right,y=Yt(f-l[m],h),C=Yt(p-l[g],x),w=!t.middlewareData.shift,L=y,E=C;if(c?E=d||w?Yt(C,x):x:L=d||w?Yt(y,h):h,w&&!d){let T=Ct(l.left,0),S=Ct(l.right,0),I=Ct(l.top,0),_=Ct(l.bottom,0);c?E=p-2*(T!==0||S!==0?T+S:Ct(l.left,l.right)):L=f-2*(I!==0||_!==0?I+_:Ct(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:L});let D=await r.getDimensions(n.floating);return p!==D.width||f!==D.height?{reset:{rects:!0}}:{}}}};u1=Ga(0);C1=async function(e){let t=this.getOffsetParent||Vc,a=this.getDimensions,o=await a(e.floating);return{reference:v1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};Gc={convertOffsetParentRelativeRectToViewportRelativeRect:c1,getDocumentElement:ba,getClippingRect:x1,getOffsetParent:Vc,getElementRects:C1,getClientRects:f1,getDimensions:y1,getScale:zo,isElement:zt,isRTL:b1};S1=r1,I1=n1,k1=t1,P1=s1,M1=a1,R1=e1,A1=(e,t,a)=>{let o=new Map,r={platform:Gc,...a},n={...r.platform,_c:o};return Yx(e,t,{...r,platform:n})},$l=Qe();T1=K('<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">'),wl=30,qd=wl/2,D1={top:180,right:-90,bottom:0,left:90};$1={top:"bottom",right:"left",bottom:"top",left:"right"};Kc=Object.assign(N1,{Arrow:Nl,Context:$l,usePopperContext:ql,Positioner:F1});zd="interactOutside.pointerDownOutside",Ud="interactOutside.focusOutside";Wc=Qe();It={};ss(It,{Description:()=>Cc,ErrorMessage:()=>bc,Item:()=>Jc,ItemControl:()=>Yc,ItemDescription:()=>ef,ItemIndicator:()=>tf,ItemInput:()=>af,ItemLabel:()=>of,Label:()=>rf,RadioGroup:()=>V1,Root:()=>nf});jc=Qe();Zc=Qe();V1=Object.assign(nf,{Description:Cc,ErrorMessage:bc,Item:Jc,ItemControl:Yc,ItemDescription:ef,ItemIndicator:tf,ItemInput:af,ItemLabel:of,Label:rf}),G1=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)}}};cl="focusScope.autoFocusOnMount",fl="focusScope.autoFocusOnUnmount",Hd={bubbles:!1,cancelable:!0},_d={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=hl(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=hl(this.stack,e),this.active()?.resume()}};Q1="data-live-announcer";$r=new WeakMap,St=[];Kn=new Map,Z1=e=>{Q(()=>{let t=ot(e.style)??{},a=ot(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Kn.get(e.key);r?r.activeCount++:Kn.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);Z(()=>{let n=Kn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Kn.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?.()}})})},Vd=Z1,J1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Y1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},ey=(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,d]=J1(r,t),c=d-l-o*u;(u!==0||c!==0)&&Y1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[Gd,Kd]=N([]),ty=e=>Gd().indexOf(e)===Gd().length-1,ay=e=>{let t=te({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=xt(),o=[0,0],r=null,n=null;Q(()=>{ot(t.enabled)&&(Kd(u=>[...u,a]),Z(()=>{Kd(u=>u.filter(d=>d!==a))}))}),Q(()=>{if(!ot(t.enabled)||!ot(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(ot(t.preventScrollbarShift)){let c={overflow:"hidden"},p=[];d>0&&(ot(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,p.push({key:"--scrollbar-width",value:`${d}px`}));let f=window.scrollY,m=window.scrollX;Vd({key:"prevent-scroll",element:u,style:c,properties:p,cleanup:()=>{ot(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,f)}})}else Vd({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),Q(()=>{!ty(a)||!ot(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),Z(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=Wd(u),r=null,n=null},i=u=>{let d=u.target,c=ot(t.element),p=oy(u),f=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=f==="x"?p[0]:p[1],g=Qd(d,f,m,c),h;c&&Ll(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=ot(t.element),c=u.target,p;if(u.touches.length===2)p=!ot(t.allowPinchZoom);else{if(r==null||n===null){let f=Wd(u).map((g,h)=>o[h]-g),m=Math.abs(f[0])>Math.abs(f[1])?"x":"y";r=m,n=m==="x"?f[0]:f[1]}if(c.type==="range")p=!1;else{let f=Qd(c,r,n,d);d&&Ll(d,c)?p=!f:p=!0}}p&&u.cancelable&&u.preventDefault()}},oy=e=>[e.deltaX,e.deltaY],Wd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Qd=(e,t,a,o)=>{let r=o!==null&&Ll(o,e),[n,s]=ey(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Ll=(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},ry=ay,ny=ry,sf=Qe();uf=Qe();df=Qe();sy=Qe();Gr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Gr.next(e==="ltr"?"rtl":"ltr",t)},jd={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};ly=Qe();gf=Qe();Lf=Qe();py={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Xd=["Enter"," "],my={open:(e,t)=>e==="ltr"?[...Xd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Xd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};hy={};ss(hy,{Root:()=>ds,Separator:()=>xy});xy=ds,He={};ss(He,{Arrow:()=>Nl,CheckboxItem:()=>cf,Content:()=>Af,DropdownMenu:()=>yy,Group:()=>Hl,GroupLabel:()=>hf,Icon:()=>xf,Item:()=>yf,ItemDescription:()=>vf,ItemIndicator:()=>Cf,ItemLabel:()=>bf,Portal:()=>wf,RadioGroup:()=>Sf,RadioItem:()=>If,Root:()=>Tf,Separator:()=>ds,Sub:()=>Pf,SubContent:()=>Mf,SubTrigger:()=>Rf,Trigger:()=>ff});yy=Object.assign(Tf,{Arrow:Nl,CheckboxItem:cf,Content:Af,Group:Hl,GroupLabel:hf,Icon:xf,Item:yf,ItemDescription:vf,ItemIndicator:Cf,ItemLabel:bf,Portal:wf,RadioGroup:Sf,RadioItem:If,Separator:ds,Sub:Pf,SubContent:Mf,SubTrigger:Rf,Trigger:ff}),M={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}},vy=K('<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>'),Cy=K('<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>'),by=K('<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>'),wy=K('<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>'),_l=K('<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>'),Ly=K('<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>'),Sy=K('<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>'),Iy=K('<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>'),ky=K('<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">'),Py=K('<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">'),My=K('<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>'),Ry=K('<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>'),Ay=K('<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>'),Ty=K('<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>'),Df=K('<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>'),Dy=K('<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>'),Ey=K('<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>'),Fy=K('<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>'),Oy=K('<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>'),By=K('<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>'),$y=K('<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>'),qy=K('<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>'),Ny=K('<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>');sv=K('<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>'),lv=K('<button title="Copy object to clipboard">'),iv=K('<button title="Remove all items"aria-label="Remove all items">'),uv=K('<button title="Delete item"aria-label="Delete item">'),dv=K('<button title="Toggle value"aria-label="Toggle value">'),cv=K('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),qr=K("<div>"),fv=K("<div><button> <span></span> <span> "),pv=K("<input>"),ec=K("<span>"),mv=K("<div><span>:"),gv=K("<div><div><button> [<!>...<!>]");tc=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a));return(()=>{var r=sv();return W(()=>B(r,H(o().expander,a`
1
+ "use strict";var Vm=Object.create;var Sn=Object.defineProperty;var Gm=Object.getOwnPropertyDescriptor;var Km=Object.getOwnPropertyNames;var Wm=Object.getPrototypeOf,Qm=Object.prototype.hasOwnProperty;var ar=(e,t)=>()=>(e&&(t=e(e=0)),t);var In=(e,t)=>{for(var a in t)Sn(e,a,{get:t[a],enumerable:!0})},Ln=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Km(t))!Qm.call(e,r)&&r!==a&&Sn(e,r,{get:()=>t[r],enumerable:!(o=Gm(t,r))||o.enumerable});return e},fa=(e,t,a)=>(Ln(e,t,"default"),a&&Ln(a,t,"default")),xe=(e,t,a)=>(a=e!=null?Vm(Wm(e)):{},Ln(t||!e||!e.__esModule?Sn(a,"default",{value:e,enumerable:!0}):a,e)),jm=e=>Ln(Sn({},"__esModule",{value:!0}),e);var C=ar(()=>{});function du(e){let t=String(e),a=t.length-1;return ee.context.id+(a?String.fromCharCode(96+a):"")+t}function co(e){ee.context=e}function Ag(){return{...ee.context,id:ee.getNextContextId(),count:0}}function jt(e,t){let a=Ce,o=le,r=e.length===0,n=t===void 0?o:t,s=r?Iu:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>ke(()=>Ha(s)));le=s,Ce=null;try{return ct(i,!0)}finally{Ce=a,le=o}}function N(e,t){t=t?Object.assign({},Fn,t):Fn;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(q&&q.running&&q.sources.has(a)?r=r(a.tValue):r=r(a.value)),Tu(a,r));return[Au.bind(a),o]}function On(e,t,a){let o=zn(e,t,!0,ht);$o&&q&&q.running?Ne.push(o):qo(o)}function W(e,t,a){let o=zn(e,t,!1,ht);$o&&q&&q.running?Ne.push(o):qo(o)}function Q(e,t,a){Su=qg;let o=zn(e,t,!1,ht),r=Rr&&ze(Rr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),tt?tt.push(o):qo(o)}function k(e,t,a){a=a?Object.assign({},Fn,a):Fn;let o=zn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,$o&&q&&q.running?(o.tState=ht,Ne.push(o)):qo(o),Au.bind(o)}function Dg(e){return e&&typeof e=="object"&&"then"in e}function Eg(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=Ks,l=null,u=!1,d=!1,c="initialValue"in n,p=typeof o=="function"&&k(o),f=new Set,[m,g]=(n.storage||N)(n.initialValue),[h,x]=N(void 0),[y,b]=N(void 0,{equals:!1}),[w,L]=N(c?"ready":"unresolved");ee.context&&(l=ee.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:ee.load&&ee.has(l)&&(i=ee.load(l)));function D(I,H,F,re){return s===I&&(s=null,re!==void 0&&(c=!0),(I===i||H===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(re,{value:H})),i=Ks,q&&I&&u?(q.promises.delete(I),u=!1,ct(()=>{q.running=!0,E(H,F)},!1)):E(H,F)),H}function E(I,H){ct(()=>{H===void 0&&g(()=>I),L(H!==void 0?"errored":c?"ready":"unresolved"),x(H);for(let F of f.keys())F.decrement();f.clear()},!1)}function A(){let I=Rr&&ze(Rr),H=m(),F=h();if(F!==void 0&&!s)throw F;return Ce&&!Ce.user&&I&&On(()=>{y(),s&&(I.resolved&&q&&u?q.promises.add(s):f.has(I)||(I.increment(),f.add(I)))}),H}function S(I=!0){if(I!==!1&&d)return;d=!1;let H=p?p():o;if(u=q&&q.running,H==null||H===!1){D(s,ke(m));return}q&&s&&q.promises.delete(s);let F=i!==Ks?i:ke(()=>r(H,{value:m(),refetching:I}));return Dg(F)?(s=F,"value"in F?(F.status==="success"?D(s,F.value,void 0,H):D(s,void 0,js(F.value),H),F):(d=!0,queueMicrotask(()=>d=!1),ct(()=>{L(c?"refreshing":"pending"),b()},!1),F.then(re=>D(F,re,void 0,H),re=>D(F,void 0,js(re),H)))):(D(s,F,void 0,H),F)}return Object.defineProperties(A,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return A();let I=h();if(I&&!s)throw I;return m()}}}),p?On(()=>S(!1)):S(!1),[A,{refetch:S,mutate:g}]}function ku(e){return ct(e,!1)}function ke(e){if(!Oo&&Ce===null)return e();let t=Ce;Ce=null;try{return Oo?Oo.untrack(e):e()}finally{Ce=t}}function Xt(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=ke(()=>t(i,r,s));return r=i,l}}function ga(e){Q(()=>ke(e))}function Z(e){return le===null||(le.cleanups===null?le.cleanups=[e]:le.cleanups.push(e)),e}function Bn(){return le}function Fg(e,t){let a=le,o=Ce;le=e,Ce=null;try{return ct(t,!0)}catch(r){Un(r)}finally{le=a,Ce=o}}function Pu(e){if(q&&q.running)return e(),q.done;let t=Ce,a=le;return Promise.resolve().then(()=>{Ce=t,le=a;let o;return($o||Rr)&&(o=q||(q={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),ct(e,!1),Ce=le=null,o?o.done:void 0})}function Mu(){return[Og,Pu]}function Qe(e,t){let a=Symbol("context");return{id:a,Provider:Ng(a),defaultValue:e}}function ze(e){let t;return le&&le.context&&(t=le.context[e.id])!==void 0?t:e.defaultValue}function Ru(e){let t=k(e),a=k(()=>Xs(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Au(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===ht)qo(this);else{let t=Ne;Ne=null,ct(()=>$n(this),!1),Ne=t}if(Ce){let t=this.observers?this.observers.length:0;Ce.sources?(Ce.sources.push(this),Ce.sourceSlots.push(t)):(Ce.sources=[this],Ce.sourceSlots=[t]),this.observers?(this.observers.push(Ce),this.observerSlots.push(Ce.sources.length-1)):(this.observers=[Ce],this.observerSlots=[Ce.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function Tu(e,t,a){let o=q&&q.running&&q.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(q){let r=q.running;(r||!a&&q.sources.has(e))&&(q.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ct(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=q&&q.running;s&&q.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?Ne.push(n):tt.push(n),n.observers&&Eu(n)),s?n.tState=ht:n.state=ht)}if(Ne.length>1e6)throw Ne=[],new Error},!1)}return t}function qo(e){if(!e.fn)return;Ha(e);let t=Nn;pu(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{ct(()=>{q&&(q.running=!0),Ce=le=e,pu(e,e.tValue,t),Ce=le=null},!1)})}function pu(e,t,a){let o,r=le,n=Ce;Ce=le=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=ht,e.tOwned&&e.tOwned.forEach(Ha),e.tOwned=void 0):(e.state=ht,e.owned&&e.owned.forEach(Ha),e.owned=null)),e.updatedAt=a+1,Un(s)}finally{Ce=n,le=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?Tu(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function zn(e,t,a,o=ht,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:le,context:le?le.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),le===null||le!==Iu&&(q&&q.running&&le.pure?le.tOwned?le.tOwned.push(n):le.tOwned=[n]:le.owned?le.owned.push(n):le.owned=[n]),Oo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=Oo.factory(n.fn,i);Z(()=>l.dispose());let u=()=>Pu(i).then(()=>d.dispose()),d=Oo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function Ar(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Mr)return $n(e);if(e.suspense&&ke(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Nn);){if(t&&q.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(q.disposed.has(r))return}if((t?e.tState:e.state)===ht)qo(e);else if((t?e.tState:e.state)===Mr){let r=Ne;Ne=null,ct(()=>$n(e,a[0]),!1),Ne=r}}}function ct(e,t){if(Ne)return e();let a=!1;t||(Ne=[]),tt?a=!0:tt=[],Nn++;try{let o=e();return Bg(a),o}catch(o){a||(tt=null),Ne=null,Un(o)}}function Bg(e){if(Ne&&($o&&q&&q.running?$g(Ne):Du(Ne),Ne=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;tt.push.apply(tt,q.effects),t=q.resolve;for(let n of tt)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,ct(()=>{for(let n of r)Ha(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Ha(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}fu(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,tt),tt=null,fu(!0);return}}let a=tt;tt=null,a.length&&ct(()=>Su(a),!1),t&&t()}function Du(e){for(let t=0;t<e.length;t++)Ar(e[t])}function $g(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),$o(()=>{o.delete(a),ct(()=>{q.running=!0,Ar(a)},!1),q&&(q.running=!1)}))}}function qg(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:Ar(o)}if(ee.context){if(ee.count){ee.effects||(ee.effects=[]),ee.effects.push(...e.slice(0,a));return}co()}for(ee.effects&&(ee.done||!ee.count)&&(e=[...ee.effects,...e],a+=ee.effects.length,delete ee.effects),t=0;t<a;t++)Ar(e[t])}function $n(e,t){let a=q&&q.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===ht?r!==t&&(!r.updatedAt||r.updatedAt<Nn)&&Ar(r):n===Mr&&$n(r,t)}}}function Eu(e){let t=q&&q.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=Mr:o.state=Mr,o.pure?Ne.push(o):tt.push(o),o.observers&&Eu(o))}}function Ha(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--)Ha(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Fu(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ha(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}q&&q.running?e.tState=0:e.state=0}function Fu(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Fu(e.owned[a])}function js(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function mu(e,t,a){try{for(let o of t)o(e)}catch(o){Un(o,a&&a.owner||null)}}function Un(e,t=le){let a=cu&&t&&t.context&&t.context[cu],o=js(e);if(!a)throw o;tt?tt.push({fn(){mu(o,a,t)},state:ht}):mu(o,a,t)}function Xs(e){if(typeof e=="function"&&!e.length)return Xs(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=Xs(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Ng(e,t){return function(o){let r;return W(()=>r=ke(()=>(le.context={...le.context,[e]:o.value},Ru(()=>o.children))),void 0),r}}function qn(e){for(let t=0;t<e.length;t++)e[t]()}function zg(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return Z(()=>qn(n)),()=>{let l=e()||[],u=l.length,d,c;return l[Or],ke(()=>{let f,m,g,h,x,y,b,w,L;if(u===0)s!==0&&(qn(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Zs],r[0]=jt(D=>(n[0]=D,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=jt(p);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),y=0,b=Math.min(s,u);y<b&&o[y]===l[y];y++);for(b=s-1,w=u-1;b>=y&&w>=y&&o[b]===l[w];b--,w--)g[w]=r[b],h[w]=n[b],i&&(x[w]=i[b]);for(f=new Map,m=new Array(w+1),c=w;c>=y;c--)L=l[c],d=f.get(L),m[c]=d===void 0?-1:d,f.set(L,c);for(d=y;d<=b;d++)L=o[d],c=f.get(L),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],f.set(L,c)):n[d]();for(c=y;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=jt(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(f){if(n[c]=f,i){let[m,g]=N(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function Ug(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return Z(()=>qn(n)),()=>{let u=e()||[],d=u.length;return u[Or],ke(()=>{if(d===0)return i!==0&&(qn(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Zs],r[0]=jt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===Zs&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<d;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=jt(c));for(;l<o.length;l++)n[l]();return i=s.length=n.length=d,o=u.slice(0),r=r.slice(0,i)});function c(p){n[l]=p;let[f,m]=N(u[l]);return s[l]=m,t(f,l)}}}function v(e,t){if(Hg&&ee.context){let a=ee.context;co(Ag());let o=ke(()=>e(t||{}));return co(a),o}return ke(()=>e(t||{}))}function Rn(){return!0}function Ws(e){return(e=typeof e=="function"?e():e)?e:{}}function _g(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function ae(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&En in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(Lu&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=Ws(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in Ws(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(Ws(e[i])));return[...new Set(s)]}},Js);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 d=l[u];if(d==="__proto__"||d==="constructor")continue;let c=Object.getOwnPropertyDescriptor(i,d);if(!o[d])o[d]=c.get?{enumerable:!0,configurable:!0,get:_g.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let p=a[d];p&&(c.get?p.push(c.get.bind(i)):c.value!==void 0&&p.push(()=>c.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 ye(e,...t){if(Lu&&En 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)}},Js));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))}},Js)),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 rl(e){let t,a,o=r=>{let n=ee.context;if(n){let[i,l]=N();ee.count||(ee.count=0),ee.count++,(a||(a=e())).then(u=>{!ee.done&&co(n),ee.count--,l(()=>u.default),co()}),t=i}else if(!t){let[i]=Eg(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?ke(()=>{if(!n||ee.done)return s(r);let i=ee.context;co(n);let l=s(r);return co(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function xt(){return ee.context?ee.getNextContextId():`cl-${Vg++}`}function Bu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(zg(()=>e.each,e.children,t||void 0))}function $u(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Ug(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,a=k(()=>e.when,void 0,void 0),o=t?a:k(a,void 0,{equals:(r,n)=>!r==!n});return k(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?ke(()=>n(t?r:()=>{if(!ke(o))throw Ou("Show");return a()})):n}return e.fallback},void 0,void 0)}function qu(e){let t=Ru(()=>e.children),a=k(()=>{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,d=k(()=>u()?void 0:l.when,void 0,void 0),c=l.keyed?d:k(d,void 0,{equals:(p,f)=>!p==!f});n=()=>u()||(c()?[i,d,l]:void 0)}return n});return k(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?ke(()=>i(s.keyed?n():()=>{if(ke(a)()?.[0]!==r)throw Ou("Match");return n()})):i},void 0,void 0)}function Hn(e){return e}function Xg(e,t){let a=jg[e];return typeof a=="object"?a[t]?a.$:void 0:a}function eh(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 d=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],d)}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 d=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],d),t[r]=a[n]}else{if(!u){u=new Map;let c=i;for(;c<n;)u.set(a[c],c++)}let d=u.get(t[s]);if(d!=null)if(i<d&&d<n){let c=s,p=1,f;for(;++c<r&&c<n&&!((f=u.get(t[c]))==null||f!==d+p);)p++;if(p>d-i){let m=t[s];for(;i<d;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function nl(e,t,a,o={}){let r;return jt(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function G(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?()=>ke(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function Br(e,t=window.document){let a=t[kr]||(t[kr]=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,Uu))}}function zu(e=window.document){if(e[kr]){for(let t of e[kr].keys())e.removeEventListener(t,Uu);delete e[kr]}}function O(e,t,a){po(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function th(e,t,a,o){po(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function ah(e,t,a){po(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function B(e,t){po(e)||(t==null?e.removeAttribute("class"):e.className=t)}function sl(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 oh(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]||(gu(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||(gu(e,i,!0),a[i]=l)}return a}function rh(e,t,a){if(!t)return a?O(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 ll(e,t={},a,o){let r={};return o||W(()=>r.children=Tr(e,t.children,r.children)),W(()=>typeof t.ref=="function"&&fo(t.ref,e)),W(()=>nh(e,t,a,!0,r,!0)),r}function fo(e,t,a){return ke(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return Tr(e,t,o,a);W(r=>Tr(e,t(),r,a),o)}function nh(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=hu(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=hu(e,s,i,r[s],a,n,t)}}function sh(e){let t,a;return!po()||!(t=ee.registry.get(a=ih()))?e():(ee.completed&&ee.completed.add(t),ee.registry.delete(a),t)}function po(e){return!!ee.context&&!ee.done&&(!e||e.isConnected)}function lh(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function gu(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 hu(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return rh(e,a,o);if(t==="classList")return oh(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(),f=Zg.has(p);if(!f&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(f||a)&&(sl(e,p,a,f),f&&Br([p]))}else if(t.slice(0,5)==="attr:")O(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")ah(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Wg.has(t))||!r&&((d=Xg(t,e.tagName))||(l=Kg.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(po(e))return a;t==="class"||t==="className"?B(e,a):i&&!l&&!u?e[lh(t)]=a:e[d||t]=a}else{let p=r&&t.indexOf(":")>-1&&Yg[t.split(":")[0]];p?th(e,p,t,a):O(e,Qg[t]||t,a)}return a}function Uu(e){if(ee.registry&&ee.events&&ee.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}}),ee.registry&&!ee.done&&(ee.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 Tr(e,t,a,o,r){let n=po(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let d=a[u];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}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=Do(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=Do(e,a,o)}else{if(s==="function")return W(()=>{let l=t();for(;typeof l=="function";)l=l();a=Tr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(Ys(l,t,a,r))return W(()=>a=Tr(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return a;let c=[d];for(;(d=d.nextSibling)!==o;)c.push(d);return a=c}if(l.length===0){if(a=Do(e,a,o),i)return a}else u?a.length===0?xu(e,l,o):eh(e,a,l):(a&&Do(e),xu(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=Do(e,a,o,t);Do(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function Ys(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=Ys(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=Ys(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let d=String(i);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return r}function xu(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function Do(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 ih(){return ee.getNextContextId()}function Hu(e,t=!1){return t?document.createElementNS(uh,e):document.createElement(e)}function il(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=Bn(),n,s=!!ee.context;return Q(()=>{s&&(Bn().user=s=!1),n||(n=Fg(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);jt(c=>P(i,()=>l()?c():n(),null)),Z(d)}else{let l=Hu(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}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),Z(()=>i.removeChild(l))}},void 0,{render:!s}),a}function dh(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return ke(()=>o(t));case"string":let r=Jg.has(o),n=ee.context?sh():Hu(o,r);return ll(n,t,r),n}})}function _u(e){let[,t]=ye(e,["component"]);return dh(()=>e.component,t)}function ph(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 mh(e,t){let a=ph(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 Bo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function Dn(e,t){return e.indexOf(t)!==-1}function yu(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Qt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function _n(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Zu(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function td(e){if(Dn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Dn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Dn(e,"constructor"))throw new Error("constructor is not allowed as a property")}function al(e,t,a=[]){if(!e)return;if(!_a(e)){Bo(e,(n,s)=>al(n,t,[...a,...Pr(s)]));return}let[o,r]=e;r&&Bo(r,(n,s)=>{al(n,t,[...a,...Pr(s)])}),t(o,a)}function Eh(e,t,a){return al(t,(o,r)=>{e=tl(e,r,n=>Th(n,o,a))}),e}function Fh(e,t){function a(o,r){let n=Dh(e,Pr(r));o.map(Pr).forEach(s=>{e=tl(e,s,()=>n)})}if(_a(t)){let[o,r]=t;o.forEach(n=>{e=tl(e,Pr(n),()=>e)}),r&&Bo(r,a)}else Bo(t,a);return e}function Bh(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function $h(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(Qs):a[Qs(n)]=s.map(Qs)}),o?el(a)?[o]:[o,a]:el(a)?void 0:a}function od(e){return Object.prototype.toString.call(e).slice(8,-1)}function bu(e){return od(e)==="Array"}function qh(e){if(od(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Nh(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 ol(e,t={}){if(bu(e))return e.map(r=>ol(r,t));if(!qh(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(bu(t.props)&&!t.props.includes(n))return r;let s=e[n],i=ol(s,t);return Nh(r,n,i,e,t.nonenumerable),r},{})}function mo(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function nd(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function sd({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function go({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function ld(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var ee,wu,Tg,En,Lu,Or,Fn,cu,Su,ht,Mr,Iu,Ks,le,q,$o,Oo,Ce,Ne,tt,Nn,Og,fu,Rr,Zs,Hg,Js,Vg,Ou,Nu,Gg,Kg,Wg,Qg,jg,Zg,Jg,Yg,kr,at,uh,ch,Vu,fh,gh,hh,Gu,xh,Dr,el,_a,yh,vh,Ch,bh,Er,Fr,Ku,wh,Lh,vu,Sh,Ih,kh,Ph,Mh,Wu,Qs,Pr,Qu,ju,Rh,Xu,Ju,Yu,Ah,Cu,ed,Th,Eo,Dh,tl,Oh,ad,me,ul,rd,$r,An,zh,id,Uh,Vn,Tn,ud,Hh,Gn,dl,Kn,Ua,Fo,cl,qr=ar(()=>{"use strict";C();ee={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return du(this.context.count)},getNextContextId(){return du(this.context.count++)}};wu=!1,Tg=(e,t)=>e===t,En=Symbol("solid-proxy"),Lu=typeof Proxy=="function",Or=Symbol("solid-track"),Fn={equals:Tg},cu=null,Su=Du,ht=1,Mr=2,Iu={owned:null,cleanups:null,context:null,owner:null},Ks={},le=null,q=null,$o=null,Oo=null,Ce=null,Ne=null,tt=null,Nn=0;[Og,fu]=N(!1);Zs=Symbol("fallback");Hg=!1;Js={get(e,t,a){return t===En?a:e.get(t)},has(e,t){return t===En?!0:e.has(t)},set:Rn,deleteProperty:Rn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Rn,deleteProperty:Rn}},ownKeys(e){return e.keys()}};Vg=0;Ou=e=>`Stale read from <${e}>.`;Nu=void 0,Gg=["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"],Kg=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Gg]),Wg=new Set(["innerHTML","textContent","innerText","children"]),Qg=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),jg=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}});Zg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Jg=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"]),Yg={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};kr="_$DX_DELEGATE";at=!1,uh="http://www.w3.org/2000/svg";ch=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()}},Vu=class{constructor(e){this.generateIdentifier=e,this.kv=new ch}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)}},fh=class extends Vu{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)}};gh=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return mh(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},hh=e=>Object.prototype.toString.call(e).slice(8,-1),Gu=e=>typeof e>"u",xh=e=>e===null,Dr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,el=e=>Dr(e)&&Object.keys(e).length===0,_a=e=>Array.isArray(e),yh=e=>typeof e=="string",vh=e=>typeof e=="number"&&!isNaN(e),Ch=e=>typeof e=="boolean",bh=e=>e instanceof RegExp,Er=e=>e instanceof Map,Fr=e=>e instanceof Set,Ku=e=>hh(e)==="Symbol",wh=e=>e instanceof Date&&!isNaN(e.valueOf()),Lh=e=>e instanceof Error,vu=e=>typeof e=="number"&&isNaN(e),Sh=e=>Ch(e)||xh(e)||Gu(e)||vh(e)||yh(e)||Ku(e),Ih=e=>typeof e=="bigint",kh=e=>e===1/0||e===-1/0,Ph=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Mh=e=>e instanceof URL,Wu=e=>e.replace(/\./g,"\\."),Qs=e=>e.map(String).map(Wu).join("."),Pr=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};Qu=[Qt(Gu,"undefined",()=>null,()=>{}),Qt(Ih,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Qt(wh,"Date",e=>e.toISOString(),e=>new Date(e)),Qt(Lh,"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}),Qt(bh,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Qt(Fr,"set",e=>[...e.values()],e=>new Set(e)),Qt(Er,"map",e=>[...e.entries()],e=>new Map(e)),Qt(e=>vu(e)||kh(e),"number",e=>vu(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Qt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Qt(Mh,"URL",e=>e.toString(),e=>new URL(e))];ju=_n((e,t)=>Ku(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}),Rh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Xu=_n(Ph,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Rh[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Ju=_n(Zu,(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)}),Yu=_n((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)}),Ah=[Ju,ju,Yu,Xu],Cu=(e,t)=>{let a=yu(Ah,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=yu(Qu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},ed={};Qu.forEach(e=>{ed[e.annotation]=e});Th=(e,t,a)=>{if(_a(t))switch(t[0]){case"symbol":return ju.untransform(e,t,a);case"class":return Ju.untransform(e,t,a);case"custom":return Yu.untransform(e,t,a);case"typed-array":return Xu.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=ed[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},Eo=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Dh=(e,t)=>{td(t);for(let a=0;a<t.length;a++){let o=t[a];if(Fr(e))e=Eo(e,+o);else if(Er(e)){let r=+o,n=+t[++a]==0?"key":"value",s=Eo(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},tl=(e,t,a)=>{if(td(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(_a(o)){let i=+s;o=o[i]}else if(Dr(o))o=o[s];else if(Fr(o)){let i=+s;o=Eo(o,i)}else if(Er(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=Eo(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(_a(o)?o[+r]=a(o[+r]):Dr(o)&&(o[r]=a(o[r])),Fr(o)){let n=Eo(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(Er(o)){let n=+t[t.length-2],s=Eo(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};Oh=(e,t)=>Dr(e)||_a(e)||Er(e)||Fr(e)||Zu(e,t);ad=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Sh(e);if(!i){Bh(e,r,t);let f=s.get(e);if(f)return o?{transformedValue:null}:f}if(!Oh(e,a)){let f=Cu(e,a),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return i||s.set(e,m),m}if(Dn(n,e))return{transformedValue:null};let l=Cu(e,a),u=l?.value??e,d=_a(u)?[]:{},c={};Bo(u,(f,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=ad(f,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,_a(g.annotations)?c[m]=g.annotations:Dr(g.annotations)&&Bo(g.annotations,(h,x)=>{c[Wu(m)+"."+x]=h})});let p=el(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,p),p};me=class{constructor({dedupe:e=!1}={}){this.classRegistry=new fh,this.symbolRegistry=new Vu(t=>t.description??""),this.customTransformerRegistry=new gh,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=ad(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=$h(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=ol(t);return a?.values&&(o=Eh(o,a.values,this)),a?.referentialEqualities&&(o=Fh(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)}};me.defaultInstance=new me;me.serialize=me.defaultInstance.serialize.bind(me.defaultInstance);me.deserialize=me.defaultInstance.deserialize.bind(me.defaultInstance);me.stringify=me.defaultInstance.stringify.bind(me.defaultInstance);me.parse=me.defaultInstance.parse.bind(me.defaultInstance);me.registerClass=me.defaultInstance.registerClass.bind(me.defaultInstance);me.registerSymbol=me.defaultInstance.registerSymbol.bind(me.defaultInstance);me.registerCustom=me.defaultInstance.registerCustom.bind(me.defaultInstance);me.allowErrorProps=me.defaultInstance.allowErrorProps.bind(me.defaultInstance);ul=me.serialize;me.deserialize;rd=me.stringify;me.parse;me.registerClass;me.registerCustom;me.registerSymbol;me.allowErrorProps;$r=(e,t=!1)=>{let{json:a}=ul(e);return JSON.stringify(a,null,t?2:void 0)},An=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,zh=(e,t)=>e.queryHash.localeCompare(t.queryHash),id=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uh=(e,t)=>An(e)===An(t)?id(e,t):An(e)>An(t)?1:-1,Vn={status:Uh,"query hash":zh,"last updated":id},Tn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,ud=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Hh=(e,t)=>Tn(e)===Tn(t)?ud(e,t):Tn(e)>Tn(t)?1:-1,Gn={status:Hh,"last updated":ud},dl=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Kn=()=>{let[e,t]=N("dark");return ga(()=>{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),Z(()=>a.removeEventListener("change",o))}),e},Ua=(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,Ua(o.get(r),n,a)),o}if(e instanceof Set){let o=Ua(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]=Ua(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]=Ua(o[r],n,a),o}return e},Fo=(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,Fo(a.get(o),r)),a}if(e instanceof Set){let a=Fo(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]=Fo(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]=Fo(a[o],r),a}return e},cl=(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 Wh(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Qh(e,...t){return typeof e=="function"?e(...t):e}function Xh(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 Zh(e){let[t,a]=N(),o=e?.throw?(p,f)=>{throw a(p instanceof Error?p:new Error(f)),p}:(p,f)=>{a(p instanceof Error?p:new Error(f))},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,f){let m=s.get(f);m||(m=N(void 0,{equals:!1}),s.set(f,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${f}`)}catch(y){return o(y,`Error reading ${n}${f} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,f,e.options):g}}),l=(p,f,m)=>{let g=e?.serializer?e.serializer(f,p,m??e.options):f,h=`${n}${p}`;r.forEach(y=>{try{y.getItem(h)!==g&&y.setItem(h,g)}catch(b){o(b,`Error setting ${n}${p} to ${g} in ${y.name}`)}});let x=s.get(p);x&&x[1]()},u=p=>r.forEach(f=>{try{f.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${f.name}`)}}),d=()=>r.forEach(p=>{try{p.clear()}catch(f){o(f,`Error clearing ${p.name}`)}}),c=()=>{let p={},f=(m,g)=>{if(!p.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(p[m]=h)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(h){o(h,`Error getting all values from in ${m.name}`)}for(let h of g)f(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)p.hasOwnProperty(h)||f(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&ga(()=>{let p=f=>{let m=!1;r.forEach(g=>{try{g!==f.storageArea&&f.key&&f.newValue!==g.getItem(f.key)&&(f.newValue?g.setItem(f.key,f.newValue):g.removeItem(f.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${f.key}=${f.newValue})`)}}),m&&f.key&&s.get(f.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),Z(()=>globalThis.removeEventListener("storage",p))):(r.forEach(f=>f.addEventListener?.("storage",p)),Z(()=>r.forEach(f=>f.removeEventListener?.("storage",p))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function X(){return ze(jr)}function Xe(){return ze(Xr)}function l0(e){return e.replace(s0,t=>ic[t])}function pd(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:ft.MATCHES,!a.accessors){let s=md(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=c0(e,a.accessors),n={rankedValue:e,rank:ft.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=md(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=ft.MATCHES?l=u:l>d&&(l=d),l=Math.min(l,d),l>=c&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=c,n.rankedValue=i.itemValue)}return n}function md(e,t,a){return e=gd(e,a),t=gd(t,a),t.length>e.length?ft.NO_MATCH:e===t?ft.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ft.EQUAL:e.startsWith(t)?ft.STARTS_WITH:e.includes(` ${t}`)?ft.WORD_STARTS_WITH:e.includes(t)?ft.CONTAINS:t.length===1?ft.NO_MATCH:i0(e).includes(t)?ft.ACRONYM:u0(e,t))}function i0(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function u0(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,p=u.length;c<p;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return ft.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return ft.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let d=t[l];if(o=r(d,e,o),!(o>-1))return ft.NO_MATCH}let i=o-s;return n(i)}function gd(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=l0(e)),e}function d0(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 c0(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=f0(n),i=d0(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function f0(e){return typeof e=="function"?hd:{...hd,...e}}function se(e){let t=this||{},a=e.call?e(t.p):e;return x0(a.unshift?a.raw?y0(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,m0(t.target),t.g,t.o,t.k)}function dc(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=dc(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function U(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=dc(e))&&(o&&(o+=" "),o+=t);return o}function v0(e,t){let a=ke(e);if(at){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=N([],{equals:!1}),[l]=Mu(),u=c=>{i(p=>(p.push.apply(p,c),p));for(let p of c)n.delete(p)},d=(c,p,f)=>c.splice(f,0,p);return k(c=>{let p=s(),f=e();if(f[Or],ke(l))return l(),c;if(p.length){let m=c.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return ke(()=>{let m=new Set(f),g=f.slice(),h=[],x=[],y=[];for(let w of f)(r.has(w)?y:h).push(w);let b=!h.length;for(let w=0;w<c.length;w++){let L=c[w];m.has(L)||(n.has(L)||(x.push(L),n.add(L)),d(g,L,w)),b&&L!==g[w]&&(b=!1)}return!x.length&&b?c:(o({list:g,added:h,removed:x,unchanged:y,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function ut(...e){return Wh(e)}function vl(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return vl(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=vl(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function C0(e,t=yd,a=yd){let o=k(e),r=k(()=>vl(o(),at?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function b0(e){return k(()=>{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 cc(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function w0(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())}),cc(()=>{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 L0(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()),cc(()=>{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 Cd(e){for(let t of e)t.dispose()}function S0(e,t,a,o={}){if(at){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 Z(()=>Cd(r.values())),()=>{let s=e()||[];return s[Or],ke(()=>{if(!s.length)return Cd(r.values()),r.clear(),o.fallback?[jt(c=>(r.set(fl,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(fl);if(!r.size||l){l?.dispose(),r.delete(fl);for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);n(i,c,d,p)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);u.delete(p);let f=r.get(p);f?(i[d]=f.mapped,f.setIndex?.(d),f.setItem(()=>c)):n(i,c,d,p)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){jt(d=>{let[c,p]=N(i),f={setItem:p,dispose:d};if(a.length>1){let[m,g]=N(l);f.setIndex=g,f.mapped=a(c,m)}else f.mapped=a(c);r.set(u,f),s[l]=f.mapped})}}function Xn(e){let{by:t}=e;return k(S0(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function I0(e,t,a,o){return e.addEventListener(t,a,o),jh(e.removeEventListener.bind(e,t,a,o))}function k0(e,t,a,o){if(at)return;let r=()=>{xl(T(e)).forEach(n=>{n&&xl(T(t)).forEach(s=>I0(n,s,a,o))})};typeof e=="function"?Q(r):W(r)}function P0(e,t){if(at)return{observe:dd,unobserve:dd};let a=new ResizeObserver(e);return Z(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function fc(e,t,a){if(at)return;let o=new WeakMap,{observe:r,unobserve:n}=P0(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),p=o.get(u);(!p||p.width!==d||p.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);Q(s=>{let i=Kh(xl(T(e)));return Xh(i,s,r,n),i},[])}function bd(e){let t={},a;for(;a=M0.exec(e);)t[a[1]]=a[2];return t}function ss(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=bd(e)}else typeof t=="string"&&(t=bd(t));return{...e,...t}}function R0(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function Cl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function A0(e){return typeof e=="number"}function zo(e){return Object.prototype.toString.call(e)==="[object String]"}function T0(e){return typeof e=="function"}function Zr(e){return t=>`${e()}-${t}`}function Pt(e,t){return e?e===t||e.contains(t):!1}function Hr(e,t=!1){let{activeElement:a}=Jt(e);if(!a?.nodeName)return null;if(pc(a)&&a.contentDocument)return Hr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Jt(a).getElementById(o);if(r)return r}}return a}function D0(e){return Jt(e).defaultView||window}function Jt(e){return e?e.ownerDocument||e:document}function pc(e){return e.tagName==="IFRAME"}function Tl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function ls(){return Tl(/^Mac/i)}function E0(){return Tl(/^iPhone/i)}function F0(){return Tl(/^iPad/i)||ls()&&navigator.maxTouchPoints>1}function O0(){return E0()||F0()}function B0(){return ls()||O0()}function De(e,t){return t&&(T0(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function je(e){return t=>{for(let a of e)De(t,a)}}function $0(e){return ls()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(q0())e.focus({preventScroll:!0});else{let t=N0(e);e.focus(),z0(t)}}function q0(){if(Wn==null){Wn=!1;try{document.createElement("div").focus({get preventScroll(){return Wn=!0,!0}})}catch{}}return Wn}function N0(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 z0(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function gc(e,t){let o=Array.from(e.querySelectorAll(Dl)).filter(wd);return t&&wd(e)&&o.unshift(e),o.forEach((r,n)=>{if(pc(r)&&r.contentDocument){let s=r.contentDocument.body,i=gc(s,!1);o.splice(n,1,...i)}}),o}function wd(e){return hc(e)&&!_0(e)}function hc(e){return e.matches(Dl)&&El(e)}function _0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function El(e,t){return e.nodeName!=="#comment"&&V0(e)&&G0(e,t)&&(!e.parentElement||El(e.parentElement,e))}function V0(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 G0(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function K0(e,t,a){let o=t?.tabbable?H0:Dl,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&El(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Ld(e){for(;e&&!W0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function W0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Q0(){}function j0(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,d]=t[i],[c,p]=t[l],[,f]=t[l===0?s-1:l-1]||[0,0],m=(d-p)*(a-u)-(u-c)*(o-d);if(p<d){if(o>=p&&o<d){if(m===0)return!0;m>0&&(o===p?o>f&&(r=!r):r=!r)}}else if(d<p){if(o>d&&o<=p){if(m===0)return!0;m<0&&(o===p?o<f&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function ge(e,t){return ae(e,t)}function Id(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=Nr.get(a.target);o||(o=new Set,Nr.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=Nr.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),Nr.delete(a.target)),Nr.size===0)){for(let r of Sd)r();Sd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function bl(e,t){let a=kd(e,t,"left"),o=kd(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 kd(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 X0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Ld(e);for(;e&&r&&e!==a&&r!==a;)bl(r,e),e=r,r=Ld(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 Mt(e){return t=>(e(t),()=>e(void 0))}function is(e,t){let[a,o]=N(Pd(t?.()));return Q(()=>{o(e()?.tagName.toLowerCase()||Pd(t?.()))}),a}function Pd(e){return zo(e)?e:void 0}function Ee(e){let[t,a]=ye(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return v(_u,ae(a,{get component(){return t.as}}))}function J0(e){let t=`form-control-${xt()}`,a=ge({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(g,h,x)=>{let y=x!=null||o()!=null;return[x,o(),y&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,f=k(()=>({"data-valid":T(a.validationState)==="valid"?"":void 0,"data-invalid":T(a.validationState)==="invalid"?"":void 0,"data-required":T(a.required)?"":void 0,"data-disabled":T(a.disabled)?"":void 0,"data-readonly":T(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>T(a.name)??T(a.id),dataset:f,validationState:()=>T(a.validationState),isRequired:()=>T(a.required),isDisabled:()=>T(a.disabled),isReadOnly:()=>T(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:p,generateId:Zr(()=>T(a.id)),registerLabel:Mt(r),registerField:Mt(s),registerDescription:Mt(l),registerErrorMessage:Mt(d)}}}function Jr(){let e=ze(yc);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function vc(e){let t=Jr(),a=ge({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(Ee,ae({as:"div"},()=>t.dataset(),a))}function Cc(e){let t=Jr(),a=ge({id:t.generateId("error-message")},e),[o,r]=ye(a,["forceMount"]),n=()=>t.validationState()==="invalid";return Q(()=>{n()&&Z(t.registerErrorMessage(r.id))}),v(j,{get when(){return o.forceMount||n()},get children(){return v(Ee,ae({as:"div"},()=>t.dataset(),r))}})}function Y0(e){let t,a=Jr(),o=ge({id:a.generateId("label")},e),[r,n]=ye(o,["ref"]),s=is(()=>t,()=>"label");return Q(()=>Z(a.registerLabel(n.id))),v(Ee,ae({as:"label",ref(i){let l=ut(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function ex(e,t){Q(Xt(e,a=>{if(a==null)return;let o=tx(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),Z(()=>{o.removeEventListener("reset",t)}))}))}function tx(e){return ax(e)?e.form:e.closest("form")}function ax(e){return e.matches("textarea, input, select, button")}function Yr(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{ke(()=>{let i=Qh(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function bc(e){let[t,a]=Yr(e);return[()=>t()??!1,a]}function ox(e){let[t,a]=Yr(e);return[()=>t()??[],a]}function rx(e={}){let[t,a]=bc({value:()=>T(e.isSelected),defaultValue:()=>!!T(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(n)},toggle:()=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(!t())}}}function Lc(){return ze(wc)}function sx(){let e=Lc();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Sc(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function lx(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&&Sc(r,a))return o+1}return 0}function ix(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:Sc(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function Ic(e,t){let a=ix(e);e!==a&&t(a)}function ux(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 Jt(o).body}function dx(e,t){Q(()=>{let a=setTimeout(()=>{Ic(e(),t)});Z(()=>clearTimeout(a))})}function cx(e,t){if(typeof IntersectionObserver!="function"){dx(e,t);return}let a=[];Q(()=>{let o=()=>{let s=!!a.length;a=e(),s&&Ic(e(),t)},r=ux(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}Z(()=>n.disconnect())})}function fx(e={}){let[t,a]=ox({value:()=>T(e.items),onChange:n=>e.onItemsChange?.(n)});cx(t,a);let o=n=>(a(s=>{let i=lx(s,n);return R0(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>v(wc.Provider,{value:{registerItem:o},get children(){return n.children}})}}function px(e){let t=sx(),a=ge({shouldRegisterItem:!0},e);Q(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());Z(o)})}function kc(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=zo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=zo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(zo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return zo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(zo(l)||A0(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 d=kc({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...d),t+=d.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 mx(e,t=[]){return k(()=>{let a=kc({dataSource:T(e.dataSource),getKey:T(e.getKey),getTextValue:T(e.getTextValue),getDisabled:T(e.getDisabled),getSectionChildren:T(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function xx(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return gx.has(a)}let t=e.split("-")[0];return hx.has(t)}function yx(e){return xx(e)?"rtl":"ltr"}function Pc(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:yx(e)}}function Md(){wl=Pc();for(let e of _r)e(wl)}function vx(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(wl),o=k(()=>at?e:t());return ga(()=>{_r.size===0&&window.addEventListener("languagechange",Md),_r.add(a),Z(()=>{_r.delete(a),_r.size===0&&window.removeEventListener("languagechange",Md)})}),{locale:()=>o().locale,direction:()=>o().direction}}function ja(){let e=vx();return ze(Cx)||e}function bx(e){let{locale:t}=ja(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return pl.has(o)&&(r=pl.get(o)),r||(r=new Intl.Collator(t(),e),pl.set(o,r)),r})}function wx(e){let[t,a]=Yr(e);return[()=>t()??new xa,a]}function Rc(e){return B0()?e.altKey:e.ctrlKey}function Uo(e){return ls()?e.metaKey:e.ctrlKey}function Rd(e){return new xa(e)}function Lx(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function Sx(e){let t=ge({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=T(t.selectedKeys);return g!=null?Rd(g):g}),i=k(()=>{let g=T(t.defaultSelectedKeys);return g!=null?Rd(g):new xa}),[l,u]=wx({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(T(t.selectionBehavior)),p=()=>T(t.selectionMode),f=()=>T(t.disallowEmptySelection)??!1,m=g=>{(T(t.allowDuplicateSelectionEvents)||!Lx(g,l()))&&u(g)};return Q(()=>{let g=l();T(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),Q(()=>{c(T(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function Ix(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(T(e.isDisabled))return;let i=T(e.keyboardDelegate),l=T(e.selectionManager);if(!i.getKeyForSearch)return;let u=kx(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(p=>p+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&Px(d)&&(d=d[0],c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d)),c!=null&&(l.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function kx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Px(e){return e.split("").every(t=>t===e[0])}function Mx(e,t,a){let r=ae({selectOnFocus:()=>T(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=ja(),i={top:0,left:0};k0(()=>T(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Ix({isDisabled:()=>T(r.disallowTypeAhead),keyboardDelegate:()=>T(r.keyboardDelegate),selectionManager:()=>T(r.selectionManager)}),u=()=>T(r.orientation)??"vertical",d=h=>{De(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let y=T(r.selectionManager),b=T(r.selectOnFocus),w=A=>{A!=null&&(y.setFocusedKey(A),h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):b&&!Rc(h)&&y.replaceSelection(A))},L=T(r.keyboardDelegate),D=T(r.shouldFocusWrap),E=y.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(L.getKeyBelow){h.preventDefault();let A;E!=null?A=L.getKeyBelow(E):A=L.getFirstKey?.(),A==null&&D&&(A=L.getFirstKey?.(E)),w(A)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(L.getKeyAbove){h.preventDefault();let A;E!=null?A=L.getKeyAbove(E):A=L.getLastKey?.(),A==null&&D&&(A=L.getLastKey?.(E)),w(A)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(L.getKeyLeftOf){h.preventDefault();let A=s()==="rtl",S;E!=null?S=L.getKeyLeftOf(E):S=A?L.getFirstKey?.():L.getLastKey?.(),w(S)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(L.getKeyRightOf){h.preventDefault();let A=s()==="rtl",S;E!=null?S=L.getKeyRightOf(E):S=A?L.getLastKey?.():L.getFirstKey?.(),w(S)}break}case"Home":if(L.getFirstKey){h.preventDefault();let A=L.getFirstKey(E,Uo(h));A!=null&&(y.setFocusedKey(A),Uo(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):b&&y.replaceSelection(A))}break;case"End":if(L.getLastKey){h.preventDefault();let A=L.getLastKey(E,Uo(h));A!=null&&(y.setFocusedKey(A),Uo(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):b&&y.replaceSelection(A))}break;case"PageDown":if(L.getKeyPageBelow&&E!=null){h.preventDefault();let A=L.getKeyPageBelow(E);w(A)}break;case"PageUp":if(L.getKeyPageAbove&&E!=null){h.preventDefault();let A=L.getKeyPageAbove(E);w(A)}break;case"a":Uo(h)&&y.selectionMode()==="multiple"&&T(r.disallowSelectAll)!==!0&&(h.preventDefault(),y.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),T(r.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!T(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let A=K0(x,{tabbable:!0}),S,I;do I=A.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&rt(S)}break}}},c=h=>{let x=T(r.selectionManager),y=T(r.keyboardDelegate),b=T(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=D=>{D!=null&&(x.setFocusedKey(D),b&&x.replaceSelection(D))},L=h.relatedTarget;L&&h.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??y.getLastKey?.()):w(x.firstSelectedKey()??y.getFirstKey?.())}else if(!T(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let L=w.querySelector(`[data-key="${x.focusedKey()}"]`);L&&(rt(L),bl(w,L))}}}},p=h=>{let x=T(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},f=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=T(r.autoFocus);if(!h)return;let x=T(r.selectionManager),y=T(r.keyboardDelegate),b;h==="first"&&(b=y.getFirstKey?.()),h==="last"&&(b=y.getLastKey?.());let w=x.selectedKeys();w.size&&(b=w.values().next().value),x.setFocused(!0),x.setFocusedKey(b);let L=t();L&&b==null&&!T(r.shouldUseVirtualFocus)&&rt(L)};return ga(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),Q(Xt([n,()=>T(r.isVirtualized),()=>T(r.selectionManager).focusedKey()],h=>{let[x,y,b]=h;if(y)b&&r.scrollToKey?.(b);else if(b&&x){let w=x.querySelector(`[data-key="${b}"]`);w&&bl(x,w)}})),{tabIndex:k(()=>{if(!T(r.shouldUseVirtualFocus))return T(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:c,onFocusOut:p}}function Ac(e,t){let a=()=>T(e.selectionManager),o=()=>T(e.key),r=()=>T(e.shouldUseVirtualFocus),n=y=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):y?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Uo(y)||"pointerType"in y&&y.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>T(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=y=>{l()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!T(e.shouldSelectOnPressUp)&&n(y))},c=y=>{l()&&y.pointerType==="mouse"&&y.button===0&&T(e.shouldSelectOnPressUp)&&T(e.allowsDifferentPressOrigin)&&n(y)},p=y=>{l()&&(T(e.shouldSelectOnPressUp)&&!T(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(y)},f=y=>{!l()||!["Enter"," "].includes(y.key)||(Rc(y)?a().toggleSelection(o()):n(y))},m=y=>{i()&&y.preventDefault()},g=y=>{let b=t();r()||i()||!b||y.target===b&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>T(e.virtualized)?void 0:o());return Q(Xt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([y,b,w,L,D])=>{y&&b===L&&D&&!w&&document.activeElement!==y&&(e.focus?e.focus():rt(y))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:p,onKeyDown:f,onMouseDown:m,onFocus:g}}function Ax(e){let t=Sx(e),o=mx({dataSource:()=>T(e.dataSource),getKey:()=>T(e.getKey),getTextValue:()=>T(e.getTextValue),getDisabled:()=>T(e.getDisabled),getSectionChildren:()=>T(e.getSectionChildren),factory:n=>e.filter?new Ad(e.filter(n)):new Ad(n)},[()=>e.filter]),r=new Rx(o,t);return On(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Gr(e){return va.findIndex(t=>t.node===e)}function Ex(e){return va[Gr(e)]}function Fx(e){return va[va.length-1].node===e}function Ec(){return va.filter(e=>e.isPointerBlocking)}function Ox(){return[...Ec()].slice(-1)[0]}function Fl(){return Ec().length>0}function Fc(e){let t=Gr(Ox()?.node);return Gr(e)<t}function Bx(e){va.push(e)}function $x(e){let t=Gr(e);t<0||va.splice(t,1)}function qx(){for(let{node:e}of va)e.style.pointerEvents=Fc(e)?"none":"auto"}function Nx(e){if(Fl()&&!Ll){let t=Jt(e);Dc=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Ll=!0}}function zx(e){if(Fl())return;let t=Jt(e);t.body.style.pointerEvents=Dc,t.body.style.length===0&&t.body.removeAttribute("style"),Ll=!1}function _x(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Hx.indexOf(e.type)!==-1:!1}function Ol(e){let t,a=ge({type:"button"},e),[o,r]=ye(a,["ref","type","disabled"]),n=is(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:_x({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return v(Ee,ae({as:"button",ref(u){let d=ut(c=>t=c,o.ref);typeof d=="function"&&d(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 Sl(e,t,a){return Ct(e,Zt(t,a))}function Co(e,t){return typeof e=="function"?e(t):e}function Wa(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function Oc(e){return e==="x"?"y":"x"}function Bl(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(Wa(e))?"y":"x"}function $l(e){return Oc(yo(e))}function Qx(e,t,a){a===void 0&&(a=!1);let o=Vo(e),r=$l(e),n=Bl(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Yn(s)),[s,Yn(s)]}function jx(e){let t=Yn(e);return[Il(e),t,Il(t)]}function Il(e){return e.replace(/start|end/g,t=>Wx[t])}function Xx(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 Zx(e,t,a,o){let r=Vo(e),n=Xx(Wa(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Il)))),n}function Yn(e){return e.replace(/left|right|bottom|top/g,t=>Kx[t])}function Jx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bc(e){return typeof e!="number"?Jx(e):{top:e,right:e,bottom:e,left:e}}function es(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 Td(e,t,a){let{reference:o,floating:r}=e,n=yo(t),s=$l(t),i=Bl(s),l=Wa(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:c};break;case"left":f={x:o.x-r.width,y:c};break;default:f={x:o.x,y:o.y}}switch(Vo(t)){case"start":f[s]-=p*(a&&u?-1:1);break;case"end":f[s]+=p*(a&&u?-1:1);break}return f}async function Kr(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:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=Co(t,e),m=Bc(f),h=i[p?c==="floating"?"reference":"floating":c],x=es(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(b))?await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1}:{x:1,y:1},L=es(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:b,strategy:l}):y);return{top:(x.top-L.top+m.top)/w.y,bottom:(L.bottom-x.bottom+m.bottom)/w.y,left:(x.left-L.left+m.left)/w.x,right:(L.right-x.right+m.right)/w.x}}function Dd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ed(e){return Gx.some(t=>e[t]>=0)}async function o1(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Wa(a),i=Vo(a),l=yo(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=Co(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(f=i==="end"?m*-1:m),l?{x:f*d,y:p*u}:{x:p*u,y:f*d}}function Go(e){return $c(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ca(e){var t;return(t=($c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $c(e){return e instanceof Node||e instanceof bt(e).Node}function zt(e){return e instanceof Element||e instanceof bt(e).Element}function Yt(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Fd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function en(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function l1(e){return["table","td","th"].includes(Go(e))}function ds(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ql(e){let t=Nl(),a=zt(e)?Ut(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 i1(e){let t=Qa(e);for(;Yt(t)&&!_o(t);){if(ql(t))return t;if(ds(t))return null;t=Qa(t)}return null}function Nl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _o(e){return["html","body","#document"].includes(Go(e))}function Ut(e){return bt(e).getComputedStyle(e)}function cs(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qa(e){if(Go(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Fd(e)&&e.host||Ca(e);return Fd(t)?t.host:t}function qc(e){let t=Qa(e);return _o(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&en(t)?t:qc(t)}function Wr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=qc(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=bt(r);return n?t.concat(s,s.visualViewport||[],en(r)?r:[],s.frameElement&&a?Wr(s.frameElement):[]):t.concat(r,Wr(r,[],a))}function Nc(e){let t=Ut(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Yt(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Jn(a)!==n||Jn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function zl(e){return zt(e)?e:e.contextElement}function Ho(e){let t=zl(e);if(!Yt(t))return Ka(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Nc(t),s=(n?Jn(a.width):a.width)/o,i=(n?Jn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function zc(e){let t=bt(e);return!Nl()||!t.visualViewport?u1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function d1(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==bt(e)?!1:t}function vo(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=zl(e),s=Ka(1);t&&(o?zt(o)&&(s=Ho(o)):s=Ho(e));let i=d1(n,a,o)?zc(n):Ka(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,d=r.width/s.x,c=r.height/s.y;if(n){let p=bt(n),f=o&&zt(o)?bt(o):o,m=p,g=m.frameElement;for(;g&&o&&f!==m;){let h=Ho(g),x=g.getBoundingClientRect(),y=Ut(g),b=x.left+(g.clientLeft+parseFloat(y.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(y.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=b,u+=w,m=bt(g),g=m.frameElement}}return es({width:d,height:c,x:l,y:u})}function c1(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=Ca(o),i=t?ds(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Ka(1),d=Ka(0),c=Yt(o);if((c||!c&&!n)&&((Go(o)!=="body"||en(s))&&(l=cs(o)),Yt(o))){let p=vo(o);u=Ho(o),d.x=p.x+o.clientLeft,d.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+d.x,y:a.y*u.y-l.scrollTop*u.y+d.y}}function f1(e){return Array.from(e.getClientRects())}function Uc(e){return vo(Ca(e)).left+cs(e).scrollLeft}function p1(e){let t=Ca(e),a=cs(e),o=e.ownerDocument.body,r=Ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+Uc(e),i=-a.scrollTop;return Ut(o).direction==="rtl"&&(s+=Ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function m1(e,t){let a=bt(e),o=Ca(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=Nl();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function g1(e,t){let a=vo(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Yt(e)?Ho(e):Ka(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 Od(e,t,a){let o;if(t==="viewport")o=m1(e,a);else if(t==="document")o=p1(Ca(e));else if(zt(t))o=g1(t,a);else{let r=zc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return es(o)}function Hc(e,t){let a=Qa(e);return a===t||!zt(a)||_o(a)?!1:Ut(a).position==="fixed"||Hc(a,t)}function h1(e,t){let a=t.get(e);if(a)return a;let o=Wr(e,[],!1).filter(i=>zt(i)&&Go(i)!=="body"),r=null,n=Ut(e).position==="fixed",s=n?Qa(e):e;for(;zt(s)&&!_o(s);){let i=Ut(s),l=ql(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||en(s)&&!l&&Hc(e,s))?o=o.filter(d=>d!==s):r=i,s=Qa(s)}return t.set(e,o),o}function x1(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?ds(t)?[]:h1(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Od(t,d,r);return u.top=Ct(c.top,u.top),u.right=Zt(c.right,u.right),u.bottom=Zt(c.bottom,u.bottom),u.left=Ct(c.left,u.left),u},Od(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function y1(e){let{width:t,height:a}=Nc(e);return{width:t,height:a}}function v1(e,t,a){let o=Yt(t),r=Ca(t),n=a==="fixed",s=vo(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Ka(0);if(o||!o&&!n)if((Go(t)!=="body"||en(r))&&(i=cs(t)),o){let c=vo(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=Uc(r));let u=s.left+i.scrollLeft-l.x,d=s.top+i.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function ml(e){return Ut(e).position==="static"}function Bd(e,t){return!Yt(e)||Ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function _c(e,t){let a=bt(e);if(ds(e))return a;if(!Yt(e)){let r=Qa(e);for(;r&&!_o(r);){if(zt(r)&&!ml(r))return r;r=Qa(r)}return a}let o=Bd(e,t);for(;o&&l1(o)&&ml(o);)o=Bd(o,t);return o&&_o(o)&&ml(o)&&!ql(o)?a:o||i1(e)||a}function b1(e){return Ut(e).direction==="rtl"}function w1(e,t){let a=null,o,r=Ca(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:d,width:c,height:p}=e.getBoundingClientRect();if(i||t(),!c||!p)return;let f=Qn(d),m=Qn(r.clientWidth-(u+c)),g=Qn(r.clientHeight-(d+p)),h=Qn(u),y={rootMargin:-f+"px "+-m+"px "+-g+"px "+-h+"px",threshold:Ct(0,Zt(1,l))||1},b=!0;function w(L){let D=L[0].intersectionRatio;if(D!==l){if(!b)return s();D?s(!1,D):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{a=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,y)}a.observe(e)}return s(!0),n}function L1(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=zl(e),d=r||n?[...u?Wr(u):[],...Wr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?w1(u,a):null,p=-1,f=null;s&&(f=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),a()}),u&&!l&&f.observe(u),f.observe(t));let m,g=l?vo(e):null;l&&h();function h(){let x=vo(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&a(),g=x,m=requestAnimationFrame(h)}return a(),()=>{var x;d.forEach(y=>{r&&y.removeEventListener("scroll",a),n&&y.removeEventListener("resize",a)}),c?.(),(x=f)==null||x.disconnect(),f=null,l&&cancelAnimationFrame(m)}}function Hl(){let e=ze(Ul);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function _l(e){let t=Hl(),a=ge({size:kl},e),[o,r]=ye(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=E1(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",d=()=>Number.parseInt(u())*2*(kl/o.size),c=()=>`rotate(${D1[n()]} ${$d} ${$d}) translate(0 2)`;return v(Ee,ae({as:"div",ref(p){let f=ut(t.setArrowRef,o.ref);typeof f=="function"&&f(p)},"aria-hidden":"true",get style(){return ss({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":d()},o.style)}},r,{get children(){let p=T1(),f=p.firstChild;return W(()=>O(f,"transform",c())),p}}))}function E1(e){let[t,a]=N();return Q(()=>{let o=e();o&&a(D0(o).getComputedStyle(o))}),t}function F1(e){let t=Hl(),[a,o]=ye(e,["ref","style"]);return v(Ee,ae({as:"div",ref(r){let n=ut(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return ss({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function qd(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 O1(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?qd(o):e?e.getBoundingClientRect():qd()}}}function B1(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function q1(e,t){let[a,o]=e.split("-"),r=$1[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 N1(e){let t=ge({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]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>O1(t.anchorRef?.(),t.getAnchorRect),{direction:u}=ja();async function d(){let p=l(),f=a(),m=r();if(!p||!f)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;f.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let x=[S1(({placement:D})=>{let E=!!D.split("-")[1];return{mainAxis:h,crossAxis:E?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let D=typeof t.flip=="string"?t.flip.split(" "):void 0;if(D!==void 0&&!D.every(B1))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(k1({padding:t.overflowPadding,fallbackPlacements:D}))}(t.slide||t.overlap)&&x.push(I1({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(P1({padding:t.overflowPadding,apply({availableWidth:D,availableHeight:E,rects:A}){let S=Math.round(A.reference.width);D=Math.floor(D),E=Math.floor(E),f.style.setProperty("--kb-popper-anchor-width",`${S}px`),f.style.setProperty("--kb-popper-content-available-width",`${D}px`),f.style.setProperty("--kb-popper-content-available-height",`${E}px`),t.sameWidth&&(f.style.width=`${S}px`),t.fitViewport&&(f.style.maxWidth=`${D}px`,f.style.maxHeight=`${E}px`)}})),t.hideWhenDetached&&x.push(M1({padding:t.detachedPadding})),m&&x.push(R1({element:m,padding:t.arrowPadding}));let y=await A1(p,f,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...Vc,isRTL:()=>u()==="rtl"}});if(i(y.placement),t.onCurrentPlacementChange?.(y.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",q1(y.placement,u()));let b=Math.round(y.x),w=Math.round(y.y),L;if(t.hideWhenDetached&&(L=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${b}px, ${w}px, 0)`,visibility:L}),m&&y.middlewareData.arrow){let{x:D,y:E}=y.middlewareData.arrow,A=y.placement.split("-")[0];Object.assign(m.style,{left:D!=null?`${D}px`:"",top:E!=null?`${E}px`:"",[A]:"100%"})}}Q(()=>{let p=l(),f=a();if(!p||!f)return;let m=L1(p,f,d,{elementResize:typeof ResizeObserver=="function"});Z(m)}),Q(()=>{let p=a(),f=t.contentRef?.();!p||!f||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(f).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return v(Ul.Provider,{value:c,get children(){return t.children}})}function z1(e){let t=a=>{a.key===Al.Escape&&e.onEscapeKeyDown?.(a)};Q(()=>{if(at||T(e.isDisabled))return;let a=e.ownerDocument?.()??Jt();a.addEventListener("keydown",t),Z(()=>{a.removeEventListener("keydown",t)})})}function U1(e,t){let a,o=Q0,r=()=>Jt(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let p=c.target;return!(p instanceof HTMLElement)||p.closest(`[${Zn}]`)||!Pt(r(),p)||Pt(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=c=>{function p(){let f=t(),m=c.target;if(!f||!m||!l(c))return;let g=je([n,i]);m.addEventListener(Nd,g,{once:!0});let h=new CustomEvent(Nd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||$0(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},d=c=>{let p=t(),f=c.target;if(!p||!f||!l(c))return;let m=je([s,i]);f.addEventListener(zd,m,{once:!0});let g=new CustomEvent(zd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});f.dispatchEvent(g)};Q(()=>{at||T(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),Z(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function H1(){return ze(Kc)}function _1(e){let t,a=H1(),[o,r]=ye(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let p=a?.registerNestedLayer(c);return()=>{n.delete(c),p?.()}};U1({shouldExcludeElement:c=>t?o.excludedElements?.some(p=>Pt(p(),c))||[...n].some(p=>Pt(p,c)):!1,onPointerDownOutside:c=>{!t||yt.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!yt.isTopMostLayer(t)||(o.onPointerDownOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.())},onFocusOutside:c=>{o.onFocusOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.()}},()=>t),z1({ownerDocument:()=>Jt(t),onEscapeKeyDown:c=>{!t||!yt.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ga(()=>{if(!t)return;yt.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);yt.assignPointerEventToLayers(),yt.disableBodyPointerEvents(t),Z(()=>{t&&(yt.removeLayer(t),c?.(),yt.assignPointerEventToLayers(),yt.restoreBodyPointerEvents(t))})}),Q(Xt([()=>t,()=>o.disableOutsidePointerEvents],([c,p])=>{if(!c)return;let f=yt.find(c);f&&f.isPointerBlocking!==p&&(f.isPointerBlocking=p,yt.assignPointerEventToLayers()),p&&yt.disableBodyPointerEvents(c),Z(()=>{yt.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return v(Kc.Provider,{value:d,get children(){return v(Ee,ae({as:"div",ref(c){let p=ut(f=>t=f,o.ref);typeof p=="function"&&p(c)}},r))}})}function Wc(e={}){let[t,a]=bc({value:()=>T(e.open),defaultValue:()=>!!T(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 jc(){let e=ze(Qc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function tn(){let e=ze(Xc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Zc(e){let t=Jr(),a=jc(),o=`${t.generateId("item")}-${xt()}`,r=ge({id:o},e),[n,s]=ye(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),[f,m]=N(),[g,h]=N(!1),x=k(()=>a.isSelectedValue(n.value)),y=k(()=>n.disabled||t.isDisabled()||!1),b=D=>{De(D,n.onPointerDown),g()&&D.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":y()?"":void 0,"data-checked":x()?"":void 0})),L={value:()=>n.value,dataset:w,isSelected:x,isDisabled:y,inputId:i,labelId:u,descriptionId:c,inputRef:f,select:()=>a.setSelectedValue(n.value),generateId:Zr(()=>s.id),registerInput:Mt(l),registerLabel:Mt(d),registerDescription:Mt(p),setIsFocused:h,setInputRef:m};return v(Xc.Provider,{value:L,get children(){return v(Ee,ae({as:"div",role:"group",onPointerDown:b},w,s))}})}function Jc(e){let t=tn(),a=ge({id:t.generateId("control")},e),[o,r]=ye(a,["onClick","onKeyDown"]);return v(Ee,ae({as:"div",onClick:i=>{De(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{De(i,o.onKeyDown),i.key===Al.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function Yc(e){let t=tn(),a=ge({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(Ee,ae({as:"div"},()=>t.dataset(),a))}function ef(e){let t=tn(),a=ge({id:t.generateId("indicator")},e),[o,r]=ye(a,["ref","forceMount"]),[n,s]=N(),{present:i}=Tc({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return v(j,{get when(){return i()},get children(){return v(Ee,ae({as:"div",ref(l){let u=ut(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function tf(e){let t=Jr(),a=jc(),o=tn(),r=ge({id:o.generateId("input")},e),[n,s]=ye(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,d]=N(!1),c=m=>{if(De(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},p=m=>{De(m,n.onFocus),o.setIsFocused(!0)},f=m=>{De(m,n.onBlur),o.setIsFocused(!1)};return Q(Xt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!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})),Q(()=>Z(o.registerInput(s.id))),v(Ee,ae({as:"input",ref(m){let g=ut(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 ss({...xc},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:p,onBlur:f},()=>o.dataset(),s))}function af(e){let t=tn(),a=ge({id:t.generateId("label")},e);return Q(()=>Z(t.registerLabel(a.id))),v(Ee,ae({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function of(e){return v(Y0,ae({as:"span"},e))}function rf(e){let t,a=`radiogroup-${xt()}`,o=ge({id:a,orientation:"vertical"},e),[r,n,s]=ye(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Z0),[i,l]=Yr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=J0(n);ex(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(T(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),f={ariaDescribedBy:c,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=p(h.value)}}};return v(yc.Provider,{value:u,get children(){return v(Qc.Provider,{value:f,get children(){return v(Ee,ae({as:"div",ref(m){let g=ut(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return T(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 d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function K1(e,t,a){let o=bx({usage:"search",sensitivity:"base"}),r=k(()=>{let n=T(e.keyboardDelegate);return n||new G1(e.collection,t,o)});return Mx({selectionManager:()=>T(e.selectionManager),keyboardDelegate:r,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:n=>T(e.scrollToKey)?.(n),orientation:()=>T(e.orientation)},t)}function W1(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Jt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,xc),m},d=()=>{let m=t();return m?gc(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},p=()=>{let m=d();return m.length>0?m[m.length-1]:null},f=()=>{let m=t();if(!m)return!1;let g=Hr(m);return!g||Pt(m,g)?!1:hc(g)};Q(()=>{if(at)return;let m=t();if(!m)return;Hd.add(r);let g=Hr(m);if(!Pt(m,g)){let x=new CustomEvent(gl,Ud);m.addEventListener(gl,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{rt(c()),Hr(m)===g&&rt(m)},0)}Z(()=>{m.removeEventListener(gl,s),setTimeout(()=>{let x=new CustomEvent(hl,Ud);f()&&x.preventDefault(),m.addEventListener(hl,i),m.dispatchEvent(x),x.defaultPrevented||rt(g??l().body),m.removeEventListener(hl,i),Hd.remove(r)},0)})}),Q(()=>{if(at)return;let m=t();if(!m||!T(e.trapFocus)||a())return;let g=x=>{let y=x.target;y?.closest(`[${Zn}]`)||(Pt(m,y)?n=y:rt(n))},h=x=>{let b=x.relatedTarget??Hr(m);b?.closest(`[${Zn}]`)||Pt(m,b)||rt(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),Z(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),Q(()=>{if(at)return;let m=t();if(!m||!T(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(b){let w=c(),L=p();b.relatedTarget===w?rt(L):rt(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let y=new MutationObserver(b=>{for(let w of b)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});y.observe(m,{childList:!0,subtree:!1}),Z(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),y.disconnect()})})}function j1(e){Q(()=>{T(e.isDisabled)||Z(X1(T(e.targets),T(e.root)))})}function X1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${Q1}], [${Zn}]`))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 f of a)if(p.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(l);if(c===NodeFilter.FILTER_ACCEPT&&n(l),c!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)n(p),p=d.nextNode()}},n=l=>{let u=zr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),zr.set(l,u+1))};It.length&&It[It.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(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(a.delete(d),o.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?a.add(d):d instanceof Element&&r(d)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return It.push(i),()=>{s.disconnect();for(let l of o){let u=zr.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),zr.delete(l)):zr.set(l,u-1)}i===It[It.length-1]?(It.pop(),It.length&&It[It.length-1].observe()):It.splice(It.indexOf(i),1)}}function sf(){return ze(nf)}function ba(){let e=sf();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function Vl(){let e=ze(lf);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function ea(){let e=ze(uf);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Gl(e){let t,a=ea(),o=ba(),r=ge({id:a.generateId(`item-${xt()}`)},e),[n,s]=ye(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),f=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>f().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};px({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Ac({key:m,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),y=S=>{De(S,n.onPointerMove),S.pointerType==="mouse"&&(n.disabled?o.onItemLeave(S):(o.onItemEnter(S),S.defaultPrevented||(rt(S.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},b=S=>{De(S,n.onPointerLeave),S.pointerType==="mouse"&&o.onItemLeave(S)},w=S=>{De(S,n.onPointerUp),!n.disabled&&S.button===0&&h()},L=S=>{if(De(S,n.onKeyDown),!S.repeat&&!n.disabled)switch(S.key){case"Enter":case" ":h();break}},D=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),E=k(()=>({"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})),A={isChecked:()=>n.checked,dataset:E,setLabelRef:p,generateId:Zr(()=>s.id),registerLabel:Mt(l),registerDescription:Mt(d)};return v(lf.Provider,{value:A,get children(){return v(Ee,ae({as:"div",ref(S){let I=ut(H=>t=H,n.ref);typeof I=="function"&&I(S)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return D()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return x.dataKey()},get onPointerDown(){return je([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return je([w,x.onPointerUp])},get onClick(){return je([n.onClick,x.onClick])},get onKeyDown(){return je([L,x.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,x.onMouseDown])},get onFocus(){return je([n.onFocus,x.onFocus])},onPointerMove:y,onPointerLeave:b},E,s))}})}function df(e){let t=ge({closeOnSelect:!1},e),[a,o]=ye(t,["checked","defaultChecked","onChange","onSelect"]),r=rx({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return v(Gl,ae({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function fs(){return ze(sy)}function cf(e){let t=ea(),a=ba(),o=fs(),{direction:r}=ja(),n=ge({id:t.generateId("trigger")},e),[s,i]=ye(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=is(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);Q(Xt(()=>o?.value(),x=>{d()&&x===l()&&a.triggerRef()?.focus()}));let c=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=x=>{De(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},f=x=>{De(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(De(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case Qd.first(t.orientation()):x.stopPropagation(),x.preventDefault(),X0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case Qd.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Qr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Qr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{De(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{De(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return Q(()=>Z(a.registerTriggerId(s.id))),v(Ol,ae({ref(x){let y=ut(a.setTriggerRef,s.ref);typeof y=="function"&&y(x)},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 k(()=>!!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:f,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function ff(){return ze(ly)}function pf(e){let t,a=ea(),o=ba(),r=fs(),n=ff(),{direction:s}=ja(),i=ge({id:a.generateId(`content-${xt()}`)},e),[l,u]=ye(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,c=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=K1({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);W1({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:b=>{r===void 0&&l.onOpenAutoFocus?.(b)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let f=b=>{if(Pt(b.currentTarget,b.target)&&(b.key==="Tab"&&o.isOpen()&&b.preventDefault(),r!==void 0&&b.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(b.key){case Qr.next(s(),a.orientation()):b.stopPropagation(),b.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Qr.previous(s(),a.orientation()):if(b.currentTarget.hasAttribute("data-closed"))break;b.stopPropagation(),b.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=b=>{l.onEscapeKeyDown?.(b),r?.setAutoFocusMenu(!1),o.close(!0)},g=b=>{l.onFocusOutside?.(b),a.isModal()&&b.preventDefault()},h=b=>{De(b,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=b=>{if(De(b,l.onPointerMove),b.pointerType!=="mouse")return;let w=b.target,L=d!==b.clientX;Pt(b.currentTarget,w)&&L&&(o.setPointerDir(b.clientX>d?"right":"left"),d=b.clientX)};Q(()=>Z(o.registerContentId(l.id)));let y={ref:ut(b=>{o.setContentRef(b),t=b},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:je([l.onKeyDown,p.onKeyDown,f]),onMouseDown:je([l.onMouseDown,p.onMouseDown]),onFocusIn:je([l.onFocusIn,p.onFocusIn]),onFocusOut:je([l.onFocusOut,p.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return v(j,{get when(){return o.contentPresent()},get children(){return v(j,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return v(Ee,ae({as:"div"},()=>o.dataset(),y,u))},get children(){return v(Gc.Positioner,{get children(){return v(_1,ae({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return ss({"--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(),y,u))}})}})}})}function iy(e){let t,a=ea(),o=ba(),[r,n]=ye(e,["ref"]);return ny({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),v(pf,ae({ref(s){let i=ut(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function uy(){let e=ze(mf);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Kl(e){let t=ea(),a=ge({id:t.generateId(`group-${xt()}`)},e),[o,r]=N(),n={generateId:Zr(()=>a.id),registerLabelId:Mt(r)};return v(mf.Provider,{value:n,get children(){return v(Ee,ae({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function gf(e){let t=uy(),a=ge({id:t.generateId("label")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerLabelId(o.id))),v(Ee,ae({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function hf(e){let t=ba(),a=ge({children:"\u25BC"},e);return v(Ee,ae({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function xf(e){return v(Gl,ae({role:"menuitem",closeOnSelect:!0},e))}function yf(e){let t=Vl(),a=ge({id:t.generateId("description")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerDescription(o.id))),v(Ee,ae({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function vf(e){let t=Vl(),a=ge({id:t.generateId("indicator")},e),[o,r]=ye(a,["forceMount"]);return v(j,{get when(){return o.forceMount||t.isChecked()},get children(){return v(Ee,ae({as:"div"},()=>t.dataset(),r))}})}function Cf(e){let t=Vl(),a=ge({id:t.generateId("label")},e),[o,r]=ye(a,["ref","id"]);return Q(()=>Z(t.registerLabel(o.id))),v(Ee,ae({as:"div",ref(n){let s=ut(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function bf(e){let t=ba();return v(j,{get when(){return t.contentPresent()},get children(){return v(il,e)}})}function dy(){let e=ze(wf);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Lf(e){let a=ea().generateId(`radiogroup-${xt()}`),o=ge({id:a},e),[r,n]=ye(o,["value","defaultValue","onChange","disabled"]),[s,i]=Yr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return v(wf.Provider,{value:l,get children(){return v(Kl,n)}})}function Sf(e){let t=dy(),a=ge({closeOnSelect:!1},e),[o,r]=ye(a,["value","onSelect"]);return v(Gl,ae({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function cy(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 fy(e,t){return t?j0([e.clientX,e.clientY],t):!1}function If(e){let t=ea(),a=Lc(),o=sf(),r=fs(),n=ff(),s=ge({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ye(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[p,f]=N(),[m,g]=N(),[h,x]=N(),[y,b]=N(),[w,L]=N(!0),[D,E]=N(l.placement),[A,S]=N([]),[I,H]=N([]),{DomCollectionProvider:F}=fx({items:I,onItemsChange:H}),re=Wc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:te=>i.onOpenChange?.(te)}),{present:fe}=Tc({show:()=>t.forceMount()||re.isOpen(),element:()=>y()??null}),be=Ax({selectionMode:"none",dataSource:I}),he=te=>{L(te),re.open()},Y=(te=!1)=>{re.close(),te&&o&&o.close(!0)},ne=te=>{L(te),re.toggle()},pe=()=>{let te=y();te&&(rt(te),be.selectionManager().setFocused(!0),be.selectionManager().setFocusedKey(void 0))},Re=()=>{n!=null?setTimeout(()=>pe()):pe()},Ae=te=>{S(et=>[...et,te]);let Ot=o?.registerNestedMenu(te);return()=>{S(et=>Cl(et,te)),Ot?.()}},$e=te=>c===d?.side&&fy(te,d?.area),lt=te=>{$e(te)&&te.preventDefault()},$=te=>{$e(te)||Re()},Oe=te=>{$e(te)&&te.preventDefault()};j1({isDisabled:()=>!(o==null&&re.isOpen()&&t.isModal()),targets:()=>[y(),...A()].filter(Boolean)}),Q(()=>{let te=y();if(!te||!o)return;let Ot=o.registerNestedMenu(te);Z(()=>{Ot()})}),Q(()=>{o===void 0&&r?.registerMenu(t.value(),[y(),...A()])}),Q(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&he(!0)):Y())}),Q(()=>{o!==void 0||r===void 0||re.isOpen()&&r.setValue(t.value())}),Z(()=>{o===void 0&&r?.unregisterMenu(t.value())});let Ta={dataset:k(()=>({"data-expanded":re.isOpen()?"":void 0,"data-closed":re.isOpen()?void 0:""})),isOpen:re.isOpen,contentPresent:fe,nestedMenus:A,currentPlacement:D,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>be,parentMenuContext:()=>o,triggerRef:h,contentRef:y,triggerId:p,contentId:m,setTriggerRef:x,setContentRef:b,open:he,close:Y,toggle:ne,focusContent:Re,onItemEnter:lt,onItemLeave:$,onTriggerLeave:Oe,setPointerDir:te=>c=te,setPointerGraceTimeoutId:te=>u=te,setPointerGraceIntent:te=>d=te,registerNestedMenu:Ae,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Mt(f),registerContentId:Mt(g)};return v(F,{get children(){return v(nf.Provider,{value:Ta,get children(){return v(j,{when:n===void 0,get fallback(){return l.children},get children(){return v(Gc,ae({anchorRef:h,contentRef:y,onCurrentPlacementChange:E},l))}})}})}})}function kf(e){let{direction:t}=ja();return v(If,ae({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Pf(e){let t=ba(),a=ea(),[o,r]=ye(e,["onFocusOutside","onKeyDown"]),{direction:n}=ja();return v(pf,ae({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;Pt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{De(d,o.onKeyDown);let c=Pt(d.currentTarget,d.target),p=py.close(n(),a.orientation()).includes(d.key),f=t.parentMenuContext()!=null;c&&p&&f&&(t.close(),rt(t.triggerRef()))}},r))}function Mf(e){let t,a=ea(),o=ba(),r=ge({id:a.generateId(`sub-trigger-${xt()}`)},e),[n,s]=ye(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{at||(i&&window.clearTimeout(i),i=null)},{direction:u}=ja(),d=()=>n.id,c=()=>{let b=o.parentMenuContext();if(b==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return b.listState().selectionManager()},p=()=>o.listState().collection(),f=()=>c().focusedKey()===d(),m=Ac({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=b=>{De(b,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=b=>{if(De(b,n.onPointerMove),b.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(b),!b.defaultPrevented){if(n.disabled){w?.onItemLeave(b);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(b),b.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),rt(b.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=b=>{if(De(b,n.onPointerLeave),b.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),L=o.contentRef();if(L){w?.setPointerGraceIntent({area:cy(o.currentPlacement(),b,L),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let D=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(D)}else{if(w?.onTriggerLeave(b),b.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(b)},y=b=>{De(b,n.onKeyDown),!b.repeat&&(n.disabled||my.open(u(),a.orientation()).includes(b.key)&&(b.stopPropagation(),b.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return Q(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let b=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});Z(b)}),Q(Xt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),b=>{Z(()=>{window.clearTimeout(b),o.parentMenuContext()?.setPointerGraceIntent(null)})})),Q(()=>Z(o.registerTriggerId(n.id))),Z(()=>{l()}),v(Ee,ae({as:"div",ref(b){let w=ut(L=>{o.setTriggerRef(L),t=L},n.ref);typeof w=="function"&&w(b)},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 k(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return je([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return je([n.onPointerUp,m.onPointerUp])},get onClick(){return je([g,m.onClick])},get onKeyDown(){return je([y,m.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,m.onMouseDown])},get onFocus(){return je([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function gy(e){let t=fs(),a=`menu-${xt()}`,o=ge({id:a,modal:!0},e),[r,n]=ye(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Wc({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:Zr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return v(uf.Provider,{value:i,get children(){return v(If,ae({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function ps(e){let t,a=ge({orientation:"horizontal"},e),[o,r]=ye(a,["ref","orientation"]),n=is(()=>t,()=>"hr");return v(Ee,ae({as:"hr",ref(s){let i=ut(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 Rf(e){let t=ea(),a=ba(),[o,r]=ye(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return v(iy,ae({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||rt(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function Af(e){let t=`dropdownmenu-${xt()}`,a=ge({id:t},e);return v(gy,a)}function zy(){return vy()}function Df(){return Cy()}function Vr(){return by()}function Xd(){return wy()}function Zd(){return Wl()}function Uy(){return(()=>{var e=Wl();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Hy(){return(()=>{var e=Wl();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _y(){return Ly()}function Vy(){return Sy()}function Gy(){return Iy()}function Ky(){return ky()}function Wy(){return Py()}function Qy(){return My()}function jy(){return Ry()}function Xy(){return Ay()}function Zy(){return Ty()}function Jy(e){return(()=>{var t=Tf(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Yy(){return Dy()}function ev(){return Ey()}function tv(e){return[v(j,{get when(){return e.checked},get children(){var t=Tf(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),v(j,{get when(){return!e.checked},get children(){var t=Fy(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function av(){return Oy()}function ov(){return By()}function rv(){return $y()}function nv(){return qy()}function Jd(){let e=xt();return(()=>{var t=Ny(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,d=u.firstChild,c=u.nextSibling,p=c.firstChild,f=c.nextSibling,m=f.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,y=h.nextSibling,b=y.nextSibling,w=b.firstChild,L=b.nextSibling,D=L.firstChild,E=L.nextSibling,A=E.nextSibling,S=A.firstChild,I=A.nextSibling,H=I.firstChild,F=I.nextSibling,re=F.nextSibling,fe=re.firstChild,be=re.nextSibling,he=be.firstChild,Y=be.nextSibling,ne=Y.nextSibling,pe=ne.firstChild,Re=ne.nextSibling,Ae=Re.firstChild,$e=Re.nextSibling,lt=$e.firstChild,$=lt.nextSibling,Oe=$.nextSibling,ve=Oe.nextSibling,Ta=ve.nextSibling,te=$e.nextSibling,Ot=te.firstChild,et=te.nextSibling,Io=et.firstChild,Lt=et.nextSibling,Da=Lt.firstChild,so=Da.nextSibling,sa=so.nextSibling,Wt=sa.firstChild,la=Wt.nextSibling,z=la.nextSibling,Ie=z.nextSibling,it=Ie.nextSibling,Pe=it.nextSibling,Se=Pe.nextSibling,Te=Se.nextSibling,We=Te.nextSibling,we=We.nextSibling,ia=we.nextSibling,ua=ia.nextSibling,Bt=Lt.nextSibling,lo=Bt.firstChild,da=Bt.nextSibling,io=da.firstChild,ca=da.nextSibling,Ea=ca.firstChild,Cn=Ea.nextSibling,Jo=ca.nextSibling,bn=Jo.firstChild,ko=Jo.nextSibling,wn=ko.firstChild,Yo=ko.nextSibling,er=Yo.firstChild,tr=er.nextSibling,Po=tr.nextSibling,Ti=Po.nextSibling,Di=Ti.nextSibling,Ei=Di.nextSibling,Fi=Ei.nextSibling,Oi=Fi.nextSibling,Bi=Oi.nextSibling,$i=Bi.nextSibling,qi=$i.nextSibling,Ni=qi.nextSibling,zi=Ni.nextSibling,Ui=zi.nextSibling,Hi=Ui.nextSibling,_i=Hi.nextSibling,Vi=_i.nextSibling,_m=Vi.nextSibling;return O(a,"id",`a-${e}`),O(o,"fill",`url(#a-${e})`),O(n,"id",`am-${e}`),O(s,"id",`b-${e}`),O(i,"filter",`url(#am-${e})`),O(l,"mask",`url(#b-${e})`),O(d,"id",`ah-${e}`),O(c,"id",`k-${e}`),O(p,"filter",`url(#ah-${e})`),O(f,"mask",`url(#k-${e})`),O(g,"id",`ae-${e}`),O(h,"id",`j-${e}`),O(x,"filter",`url(#ae-${e})`),O(y,"mask",`url(#j-${e})`),O(w,"id",`ai-${e}`),O(L,"id",`i-${e}`),O(D,"filter",`url(#ai-${e})`),O(E,"mask",`url(#i-${e})`),O(S,"id",`aj-${e}`),O(I,"id",`h-${e}`),O(H,"filter",`url(#aj-${e})`),O(F,"mask",`url(#h-${e})`),O(fe,"id",`ag-${e}`),O(be,"id",`g-${e}`),O(he,"filter",`url(#ag-${e})`),O(Y,"mask",`url(#g-${e})`),O(pe,"id",`af-${e}`),O(Re,"id",`f-${e}`),O(Ae,"filter",`url(#af-${e})`),O($e,"mask",`url(#f-${e})`),O(ve,"id",`m-${e}`),O(Ta,"fill",`url(#m-${e})`),O(Ot,"id",`ak-${e}`),O(et,"id",`e-${e}`),O(Io,"filter",`url(#ak-${e})`),O(Lt,"mask",`url(#e-${e})`),O(Da,"id",`n-${e}`),O(so,"fill",`url(#n-${e})`),O(Wt,"id",`r-${e}`),O(la,"fill",`url(#r-${e})`),O(z,"id",`s-${e}`),O(Ie,"fill",`url(#s-${e})`),O(it,"id",`q-${e}`),O(Pe,"fill",`url(#q-${e})`),O(Se,"id",`p-${e}`),O(Te,"fill",`url(#p-${e})`),O(We,"id",`o-${e}`),O(we,"fill",`url(#o-${e})`),O(ia,"id",`l-${e}`),O(ua,"fill",`url(#l-${e})`),O(lo,"id",`al-${e}`),O(da,"id",`d-${e}`),O(io,"filter",`url(#al-${e})`),O(ca,"mask",`url(#d-${e})`),O(Ea,"id",`u-${e}`),O(Cn,"fill",`url(#u-${e})`),O(bn,"id",`ad-${e}`),O(ko,"id",`c-${e}`),O(wn,"filter",`url(#ad-${e})`),O(Yo,"mask",`url(#c-${e})`),O(er,"id",`t-${e}`),O(tr,"fill",`url(#t-${e})`),O(Po,"id",`v-${e}`),O(Ti,"stroke",`url(#v-${e})`),O(Di,"id",`aa-${e}`),O(Ei,"stroke",`url(#aa-${e})`),O(Fi,"id",`w-${e}`),O(Oi,"stroke",`url(#w-${e})`),O(Bi,"id",`ac-${e}`),O($i,"stroke",`url(#ac-${e})`),O(qi,"id",`ab-${e}`),O(Ni,"stroke",`url(#ab-${e})`),O(zi,"id",`y-${e}`),O(Ui,"stroke",`url(#y-${e})`),O(Hi,"id",`x-${e}`),O(_i,"stroke",`url(#x-${e})`),O(Vi,"id",`z-${e}`),O(_m,"stroke",`url(#z-${e})`),t})()}function hv(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function ac(e){return Symbol.iterator in e}function Va(e){let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Wo(a):Ko(a)),r=X().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&ac(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})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&ac(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=k(()=>hv(d(),100)),f=e.dataPath??[];return(()=>{var m=Ur();return P(m,v(j,{get when(){return p().length},get children(){return[(()=>{var g=fv(),h=g.firstChild,x=h.firstChild,y=x.nextSibling,b=y.nextSibling,w=b.nextSibling,L=w.firstChild;return h.$$click=()=>i(),P(h,v(ec,{get expanded(){return n()}}),x),P(y,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",L),P(w,()=>d().length,L),P(w,()=>d().length>1?"items":"item",null),P(g,v(j,{get when(){return e.editable},get children(){var D=Ur();return P(D,v(xv,{get value(){return e.value}}),null),P(D,v(j,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(tc,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(D,v(j,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return v(yv,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(D,v(j,{get when(){return k(()=>!!e.onEdit)()&&!ul(e.value).meta},get children(){var E=cv();return E.$$click=()=>{e.onEdit?.()},P(E,v(Zy,{})),W(()=>B(E,o().actionButton)),E}}),null),W(()=>B(D,o().actions)),D}}),null),W(D=>{var E=o().expanderButtonContainer,A=o().expanderButton,S=o().info;return E!==D.e&&B(g,D.e=E),A!==D.t&&B(h,D.t=A),S!==D.a&&B(w,D.a=S),D},{e:void 0,t:void 0,a:void 0}),g})(),v(j,{get when(){return n()},get children(){return[v(j,{get when(){return p().length===1},get children(){var g=Ur();return P(g,v(Xn,{get each(){return d()},by:h=>h.label,children:h=>v(Va,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...f,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),W(()=>B(g,o().subEntry)),g}}),v(j,{get when(){return p().length>1},get children(){var g=Ur();return P(g,v($u,{get each(){return p()},children:(h,x)=>(()=>{var y=gv(),b=y.firstChild,w=b.firstChild,L=w.firstChild,D=L.nextSibling,E=D.nextSibling,A=E.nextSibling;return A.nextSibling,w.$$click=()=>u(S=>S.includes(x)?S.filter(I=>I!==x):[...S,x]),P(w,v(ec,{get expanded(){return l().includes(x)}}),L),P(w,x*100,D),P(w,x*100+100-1,A),P(b,v(j,{get when(){return l().includes(x)},get children(){var S=Ur();return P(S,v(Xn,{get each(){return h()},by:I=>I.label,children:I=>v(Va,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...f,I().label]},get activeQuery(){return e.activeQuery}})})),W(()=>B(S,o().subEntry)),S}}),null),W(S=>{var I=o().entry,H=o().expanderButton;return I!==S.e&&B(b,S.e=I),H!==S.t&&B(w,S.t=H),S},{e:void 0,t:void 0}),y})()})),W(()=>B(g,o().subEntry)),g}})]}})]}}),null),P(m,v(j,{get when(){return p().length===0},get children(){var g=mv(),h=g.firstChild,x=h.firstChild;return P(h,()=>e.label,x),P(g,v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var y=Yd();return P(y,()=>$r(e.value)),W(()=>B(y,o().value)),y})()},get children(){return[v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var y=pv();return y.addEventListener("change",b=>{let w=e.activeQuery.state.data,L=Ua(w,f,c()==="number"?b.target.valueAsNumber:b.target.value);r.setQueryData(e.activeQuery.queryKey,L)}),W(b=>{var w=c()==="number"?"number":"text",L=U(o().value,o().editableInput);return w!==b.e&&O(y,"type",b.e=w),L!==b.t&&B(y,b.t=L),b},{e:void 0,t:void 0}),W(()=>y.value=e.value),y}}),v(j,{get when(){return c()==="boolean"},get children(){var y=Yd();return P(y,v(vv,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),P(y,()=>$r(e.value),null),W(()=>B(y,U(o().value,o().actions,o().editableInput))),y}})]}}),null),P(g,v(j,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(tc,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),W(y=>{var b=o().row,w=o().label;return b!==y.e&&B(g,y.e=b),w!==y.t&&B(h,y.t=w),y},{e:void 0,t:void 0}),g}}),null),W(()=>B(m,o().entry)),m})()}var _h,Vh,dd,Gh,Kh,T,xl,jh,os,Jh,cd,St,Yh,xo,Ml,e0,yl,rs,t0,nc,a0,sc,o0,fd,r0,jr,lc,ns,Rl,Xr,ic,n0,s0,ft,hd,p0,m0,g0,h0,xd,ho,ha,uc,x0,y0,yd,vd,fl,M0,Al,Wn,mc,U0,Dl,H0,Nr,Sd,xc,Z0,yc,nx,us,wc,gx,hx,wl,_r,Cx,pl,xa,Rx,Ad,ot,Tx,Dx,Tc,Zn,Dc,Ll,va,yt,Ux,Hx,Vx,Gx,Zt,Ct,Jn,Qn,Ka,Kx,Wx,Yx,e1,t1,a1,r1,n1,s1,u1,C1,Vc,S1,I1,k1,P1,M1,R1,A1,Ul,T1,kl,$d,D1,$1,Gc,Nd,zd,Kc,kt,Qc,Xc,V1,G1,gl,hl,Ud,Hd,Q1,zr,It,jn,Z1,_d,J1,Y1,ey,Vd,Gd,ty,ay,oy,Kd,Wd,Pl,ry,ny,nf,lf,uf,sy,Qr,Qd,ly,mf,wf,py,jd,my,hy,xy,Ue,yy,M,vy,Cy,by,wy,Wl,Ly,Sy,Iy,ky,Py,My,Ry,Ay,Ty,Tf,Dy,Ey,Fy,Oy,By,$y,qy,Ny,sv,lv,iv,uv,dv,cv,Ur,fv,pv,Yd,mv,gv,ec,xv,yv,tc,vv,Ef,Ko,Wo,Cv,an,bv,wv,Lv,Sv,Iv,kv,Pv,Mv,Rv,Av,Tv,Dv,Ev,Fv,Ov,Bv,$v,qv,Nv,oc,zv,Ff,Uv,Hv,_v,Vv,Gv,Kv,Wv,Qv,jv,Xv,vt,ms,Ga,Of,Nt,Ql,No,rc,Bf,Zv,$f,Jv,gs,Yv,eC,tC,aC,ya,oC,rC,ts,nC,Je,as,sC,qt,qf,Rt,At,jl=ar(()=>{"use strict";C();qr();_h=!at,Vh=_h&&!!Nu,dd=()=>{},Gh=e=>e!=null,Kh=e=>e.filter(Gh);T=e=>typeof e=="function"&&!e.length?e():e,xl=e=>Array.isArray(e)?e:e?[e]:[];jh=Vh?e=>Bn()?Z(e):e:Z;os=Zh,Jh=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),cd=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},St=Jh({_cookies:[globalThis.document,"cookie"],getItem:e=>St._cookies[0][St._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=St.getItem(e);St._cookies[0][St._cookies[1]]=`${e}=${t}${cd(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:St});window.dispatchEvent(r)},removeItem:e=>{St._cookies[0][St._cookies[1]]=`${e}=deleted${cd({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return St._cookies[0][St._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return St._cookies[0][St._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),Yh=1024,xo=796,Ml=700,e0="bottom-right",yl="bottom",rs="system",t0=!1,nc=500,a0=500,sc=500,o0=Object.keys(Vn)[0],fd=1,r0=Object.keys(Gn)[0],jr=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});lc=Qe(void 0),ns=e=>{let[t,a]=N(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="",zu(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(X().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),p=u.ownerNode,f="";p&&"id"in p&&(f=p.id),f&&c.setAttribute("id",f),c.textContent=d,l.document.head.appendChild(c)}catch{let c=document.createElement("link");if(u.href==null)return;c.rel="stylesheet",c.type=u.type,c.media=u.media.toString(),c.href=u.href,l.document.head.appendChild(c)}}),Br(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};Q(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||a0))}),Q(()=>{let s=(X().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(X().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),Z(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return v(lc.Provider,{value:n,get children(){return e.children}})},Rl=()=>k(()=>{let t=ze(lc);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Xr=Qe(()=>"dark");ic={\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"},n0=Object.keys(ic).join("|"),s0=new RegExp(n0,"g");ft={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};hd={maxRanking:1/0,minRanking:-1/0};p0={data:""},m0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||p0,g0=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,h0=/\/\*[^]*?\*\/| +/g,xd=/\n+/g,ho=(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"?ho(s,n):n+"{"+ho(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=ho(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+=ho.p?ho.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},ha={},uc=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+uc(e[a]);return t}return e},x0=(e,t,a,o,r)=>{let n=uc(e),s=ha[n]||(ha[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!ha[s]){let l=n!==e?e:(u=>{let d,c,p=[{}];for(;d=g0.exec(u.replace(h0,""));)d[4]?p.shift():d[3]?(c=d[3].replace(xd," ").trim(),p.unshift(p[0][c]=p[0][c]||{})):p[0][d[1]]=d[2].replace(xd," ").trim();return p[0]})(e);ha[s]=ho(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&ha.g?ha.g:null;return a&&(ha.g=ha[s]),((l,u,d,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(ha[s],t,o,i),s},y0=(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?"":ho(i,""):i===!1?"":i}return o+r+(s??"")},"");se.bind({g:1});se.bind({k:1});yd=at?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;vd=e=>{let t=b0(e);return v0(C0(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)w0(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:d}of i)if(u.isConnected){let c=u.getBoundingClientRect(),p=d.left-c.left,f=d.top-c.top;(p||f)&&(u.style.transform=`translate(${p}px, ${f}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let d=function(c){(c.target===u||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",d),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",d)}});for(let l of o)L0(s,e,l,()=>r([l]))}})},fl=Symbol("fallback");M0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Al=(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))(Al||{});Wn=null;mc=["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'])"],U0=[...mc,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Dl=mc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",H0=U0.join(':not([hidden]):not([tabindex="-1"]),');Nr=new Map,Sd=new Set;typeof document<"u"&&(document.readyState!=="loading"?Id():document.addEventListener("DOMContentLoaded",Id));xc={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"};Z0=["id","name","validationState","required","disabled","readOnly"];yc=Qe();nx=Object.defineProperty,us=(e,t)=>{for(var a in t)nx(e,a,{get:t[a],enumerable:!0})},wc=Qe();gx=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);wl=Pc(),_r=new Set;Cx=Qe();pl=new Map;xa=class Mc extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Mc?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Rx=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 xa(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 xa(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 xa([t],t,t):new xa;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new xa;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 xa)}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}},Ad=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])}};ot=e=>typeof e=="function"?e():e,Tx=e=>{let t=k(()=>{let s=ot(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(ot(e.show)?"present":"hidden"),n="none";return Q(s=>{let i=ot(e.show);return ke(()=>{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}),Q(()=>{let s=ot(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let c=a().includes(u.animationName);u.target===s&&c&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),Z(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},Dx=Tx,Tc=Dx,Zn="data-kb-top-layer",Ll=!1,va=[];yt={layers:va,isTopMostLayer:Fx,hasPointerBlockingLayer:Fl,isBelowPointerBlockingLayer:Fc,addLayer:Bx,removeLayer:$x,indexOf:Gr,find:Ex,assignPointerEventToLayers:qx,disableBodyPointerEvents:Nx,restoreBodyPointerEvents:zx},Ux={};us(Ux,{Button:()=>Vx,Root:()=>Ol});Hx=["button","color","file","image","reset","submit"];Vx=Ol,Gx=["top","right","bottom","left"],Zt=Math.min,Ct=Math.max,Jn=Math.round,Qn=Math.floor,Ka=e=>({x:e,y:e}),Kx={left:"right",right:"left",bottom:"top",top:"bottom"},Wx={start:"end",end:"start"};Yx=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:d,y:c}=Td(u,o,l),p=o,f={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:y,y:b,data:w,reset:L}=await x({x:d,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});d=y??d,c=b??c,f={...f,[h]:{...f[h],...w}},L&&m<=50&&(m++,typeof L=="object"&&(L.placement&&(p=L.placement),L.rects&&(u=L.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):L.rects),{x:d,y:c}=Td(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:r,middlewareData:f}};e1=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:d=0}=Co(e,t)||{};if(u==null)return{};let c=Bc(d),p={x:a,y:o},f=$l(r),m=Bl(f),g=await s.getDimensions(u),h=f==="y",x=h?"top":"left",y=h?"bottom":"right",b=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[f]-p[f]-n.floating[m],L=p[f]-n.reference[f],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),E=D?D[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(D)))&&(E=i.floating[b]||n.floating[m]);let A=w/2-L/2,S=E/2-g[m]/2-1,I=Zt(c[x],S),H=Zt(c[y],S),F=I,re=E-g[m]-H,fe=E/2-g[m]/2+A,be=Sl(F,fe,re),he=!l.arrow&&Vo(r)!=null&&fe!==be&&n.reference[m]/2-(fe<F?I:H)-g[m]/2<0,Y=he?fe<F?fe-F:fe-re:0;return{[f]:p[f]+Y,data:{[f]:be,centerOffset:fe-be-Y,...he&&{alignmentOffset:Y}},reset:he}}}),t1=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:d=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=Co(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Wa(r),y=yo(i),b=Wa(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=p||(b||!g?[Yn(i)]:jx(i)),D=m!=="none";!p&&D&&L.push(...Zx(i,g,m,w));let E=[i,...L],A=await Kr(t,h),S=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&S.push(A[x]),c){let fe=Qx(r,s,w);S.push(A[fe[0]],A[fe[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(fe=>fe<=0)){var H,F;let fe=(((H=n.flip)==null?void 0:H.index)||0)+1,be=E[fe];if(be)return{data:{index:fe,overflows:I},reset:{placement:be}};let he=(F=I.filter(Y=>Y.overflows[0]<=0).sort((Y,ne)=>Y.overflows[1]-ne.overflows[1])[0])==null?void 0:F.placement;if(!he)switch(f){case"bestFit":{var re;let Y=(re=I.filter(ne=>{if(D){let pe=yo(ne.placement);return pe===y||pe==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(pe=>pe>0).reduce((pe,Re)=>pe+Re,0)]).sort((ne,pe)=>ne[1]-pe[1])[0])==null?void 0:re[0];Y&&(he=Y);break}case"initialPlacement":he=i;break}if(r!==he)return{reset:{placement:he}}}return{}}}};a1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=Co(e,t);switch(o){case"referenceHidden":{let n=await Kr(t,{...r,elementContext:"reference"}),s=Dd(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ed(s)}}}case"escaped":{let n=await Kr(t,{...r,altBoundary:!0}),s=Dd(n,a.floating);return{data:{escapedOffsets:s,escaped:Ed(s)}}}default:return{}}}}};r1=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 o1(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}}}}},n1=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:h=>{let{x,y}=h;return{x,y}}},...l}=Co(e,t),u={x:a,y:o},d=await Kr(t,l),c=yo(Wa(r)),p=Oc(c),f=u[p],m=u[c];if(n){let h=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=f+d[h],b=f-d[x];f=Sl(y,f,b)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",y=m+d[h],b=m-d[x];m=Sl(y,m,b)}let g=i.fn({...t,[p]:f,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},s1=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}=Co(e,t),l=await Kr(t,i),u=Wa(a),d=Vo(a),c=yo(a)==="y",{width:p,height:f}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");let h=f-l.top-l.bottom,x=p-l.left-l.right,y=Zt(f-l[m],h),b=Zt(p-l[g],x),w=!t.middlewareData.shift,L=y,D=b;if(c?D=d||w?Zt(b,x):x:L=d||w?Zt(y,h):h,w&&!d){let A=Ct(l.left,0),S=Ct(l.right,0),I=Ct(l.top,0),H=Ct(l.bottom,0);c?D=p-2*(A!==0||S!==0?A+S:Ct(l.left,l.right)):L=f-2*(I!==0||H!==0?I+H:Ct(l.top,l.bottom))}await s({...t,availableWidth:D,availableHeight:L});let E=await r.getDimensions(n.floating);return p!==E.width||f!==E.height?{reset:{rects:!0}}:{}}}};u1=Ka(0);C1=async function(e){let t=this.getOffsetParent||_c,a=this.getDimensions,o=await a(e.floating);return{reference:v1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};Vc={convertOffsetParentRelativeRectToViewportRelativeRect:c1,getDocumentElement:Ca,getClippingRect:x1,getOffsetParent:_c,getElementRects:C1,getClientRects:f1,getDimensions:y1,getScale:Ho,isElement:zt,isRTL:b1};S1=r1,I1=n1,k1=t1,P1=s1,M1=a1,R1=e1,A1=(e,t,a)=>{let o=new Map,r={platform:Vc,...a},n={...r.platform,_c:o};return Yx(e,t,{...r,platform:n})},Ul=Qe();T1=G('<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">'),kl=30,$d=kl/2,D1={top:180,right:-90,bottom:0,left:90};$1={top:"bottom",right:"left",bottom:"top",left:"right"};Gc=Object.assign(N1,{Arrow:_l,Context:Ul,usePopperContext:Hl,Positioner:F1});Nd="interactOutside.pointerDownOutside",zd="interactOutside.focusOutside";Kc=Qe();kt={};us(kt,{Description:()=>vc,ErrorMessage:()=>Cc,Item:()=>Zc,ItemControl:()=>Jc,ItemDescription:()=>Yc,ItemIndicator:()=>ef,ItemInput:()=>tf,ItemLabel:()=>af,Label:()=>of,RadioGroup:()=>V1,Root:()=>rf});Qc=Qe();Xc=Qe();V1=Object.assign(rf,{Description:vc,ErrorMessage:Cc,Item:Zc,ItemControl:Jc,ItemDescription:Yc,ItemIndicator:ef,ItemInput:tf,ItemLabel:af,Label:of}),G1=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)}}};gl="focusScope.autoFocusOnMount",hl="focusScope.autoFocusOnUnmount",Ud={bubbles:!1,cancelable:!0},Hd={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Cl(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Cl(this.stack,e),this.active()?.resume()}};Q1="data-live-announcer";zr=new WeakMap,It=[];jn=new Map,Z1=e=>{Q(()=>{let t=ot(e.style)??{},a=ot(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=jn.get(e.key);r?r.activeCount++:jn.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);Z(()=>{let n=jn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}jn.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?.()}})})},_d=Z1,J1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Y1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},ey=(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,d]=J1(r,t),c=d-l-o*u;(u!==0||c!==0)&&Y1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[Vd,Gd]=N([]),ty=e=>Vd().indexOf(e)===Vd().length-1,ay=e=>{let t=ae({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=xt(),o=[0,0],r=null,n=null;Q(()=>{ot(t.enabled)&&(Gd(u=>[...u,a]),Z(()=>{Gd(u=>u.filter(d=>d!==a))}))}),Q(()=>{if(!ot(t.enabled)||!ot(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(ot(t.preventScrollbarShift)){let c={overflow:"hidden"},p=[];d>0&&(ot(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,p.push({key:"--scrollbar-width",value:`${d}px`}));let f=window.scrollY,m=window.scrollX;_d({key:"prevent-scroll",element:u,style:c,properties:p,cleanup:()=>{ot(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,f)}})}else _d({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),Q(()=>{!ty(a)||!ot(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),Z(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=Kd(u),r=null,n=null},i=u=>{let d=u.target,c=ot(t.element),p=oy(u),f=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=f==="x"?p[0]:p[1],g=Wd(d,f,m,c),h;c&&Pl(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=ot(t.element),c=u.target,p;if(u.touches.length===2)p=!ot(t.allowPinchZoom);else{if(r==null||n===null){let f=Kd(u).map((g,h)=>o[h]-g),m=Math.abs(f[0])>Math.abs(f[1])?"x":"y";r=m,n=m==="x"?f[0]:f[1]}if(c.type==="range")p=!1;else{let f=Wd(c,r,n,d);d&&Pl(d,c)?p=!f:p=!0}}p&&u.cancelable&&u.preventDefault()}},oy=e=>[e.deltaX,e.deltaY],Kd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Wd=(e,t,a,o)=>{let r=o!==null&&Pl(o,e),[n,s]=ey(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Pl=(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},ry=ay,ny=ry,nf=Qe();lf=Qe();uf=Qe();sy=Qe();Qr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Qr.next(e==="ltr"?"rtl":"ltr",t)},Qd={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};ly=Qe();mf=Qe();wf=Qe();py={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};jd=["Enter"," "],my={open:(e,t)=>e==="ltr"?[...jd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...jd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};hy={};us(hy,{Root:()=>ps,Separator:()=>xy});xy=ps,Ue={};us(Ue,{Arrow:()=>_l,CheckboxItem:()=>df,Content:()=>Rf,DropdownMenu:()=>yy,Group:()=>Kl,GroupLabel:()=>gf,Icon:()=>hf,Item:()=>xf,ItemDescription:()=>yf,ItemIndicator:()=>vf,ItemLabel:()=>Cf,Portal:()=>bf,RadioGroup:()=>Lf,RadioItem:()=>Sf,Root:()=>Af,Separator:()=>ps,Sub:()=>kf,SubContent:()=>Pf,SubTrigger:()=>Mf,Trigger:()=>cf});yy=Object.assign(Af,{Arrow:_l,CheckboxItem:df,Content:Rf,Group:Kl,GroupLabel:gf,Icon:hf,Item:xf,ItemDescription:yf,ItemIndicator:vf,ItemLabel:Cf,Portal:bf,RadioGroup:Lf,RadioItem:Sf,Separator:ps,Sub:kf,SubContent:Pf,SubTrigger:Mf,Trigger:cf}),M={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}},vy=G('<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>'),Cy=G('<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>'),by=G('<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>'),wy=G('<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>'),Wl=G('<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>'),Ly=G('<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>'),Sy=G('<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>'),Iy=G('<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>'),ky=G('<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">'),Py=G('<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">'),My=G('<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>'),Ry=G('<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>'),Ay=G('<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>'),Ty=G('<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>'),Tf=G('<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>'),Dy=G('<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>'),Ey=G('<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>'),Fy=G('<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>'),Oy=G('<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>'),By=G('<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>'),$y=G('<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>'),qy=G('<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>'),Ny=G('<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>');sv=G('<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>'),lv=G('<button title="Copy object to clipboard">'),iv=G('<button title="Remove all items"aria-label="Remove all items">'),uv=G('<button title="Delete item"aria-label="Delete item">'),dv=G('<button title="Toggle value"aria-label="Toggle value">'),cv=G('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Ur=G("<div>"),fv=G("<div><button> <span></span> <span> "),pv=G("<input>"),Yd=G("<span>"),mv=G("<div><span>:"),gv=G("<div><div><button> [<!>...<!>]");ec=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Wo(a):Ko(a));return(()=>{var r=sv();return W(()=>B(r,U(o().expander,a`
2
2
  transform: rotate(${e.expanded?90:0}deg);
3
3
  `,e.expanded&&a`
4
4
  & svg {
5
5
  top: -1px;
6
6
  }
7
- `))),r})()},xv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),[r,n]=N("NoCopy");return(()=>{var s=lv();return al(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(nd(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),P(s,v(Nu,{get children(){return[v(Nn,{get when(){return r()==="NoCopy"},get children(){return v(Xy,{})}}),v(Nn,{get when(){return r()==="SuccessCopy"},get children(){return v(Jy,{get theme(){return t()}})}}),v(Nn,{get when(){return r()==="ErrorCopy"},get children(){return v(Yy,{})}})]}})),W(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&&B(s,i.e=l),u!==i.t&&O(s,"aria-label",i.t=u),i},{e:void 0,t:void 0}),s})()},yv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client;return(()=>{var n=iv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=za(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(ev,{})),W(()=>B(n,o().actionButton)),n})()},ac=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client;return(()=>{var n=uv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Do(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(Ef,{})),W(()=>B(n,H(o().actionButton))),n})()},vv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client;return(()=>{var n=dv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=za(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(tv,{get theme(){return t()},get checked(){return e.value}})),W(()=>B(n,H(o().actionButton,a`
7
+ `))),r})()},xv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Wo(a):Ko(a)),[r,n]=N("NoCopy");return(()=>{var s=lv();return sl(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(rd(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),P(s,v(qu,{get children(){return[v(Hn,{get when(){return r()==="NoCopy"},get children(){return v(Xy,{})}}),v(Hn,{get when(){return r()==="SuccessCopy"},get children(){return v(Jy,{get theme(){return t()}})}}),v(Hn,{get when(){return r()==="ErrorCopy"},get children(){return v(Yy,{})}})]}})),W(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&&B(s,i.e=l),u!==i.t&&O(s,"aria-label",i.t=u),i},{e:void 0,t:void 0}),s})()},yv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Wo(a):Ko(a)),r=X().client;return(()=>{var n=iv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Ua(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(ev,{})),W(()=>B(n,o().actionButton)),n})()},tc=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Wo(a):Ko(a)),r=X().client;return(()=>{var n=uv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Fo(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(Df,{})),W(()=>B(n,U(o().actionButton))),n})()},vv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Wo(a):Ko(a)),r=X().client;return(()=>{var n=dv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Ua(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(tv,{get theme(){return t()},get checked(){return e.value}})),W(()=>B(n,U(o().actionButton,a`
8
8
  width: ${M.size[3.5]};
9
9
  height: ${M.size[3.5]};
10
- `))),n})()};Ff=(e,t)=>{let{colors:a,font:o,size:r,border:n}=M,s=(i,l)=>e==="light"?i:l;return{entry:t`
10
+ `))),n})()};Ef=(e,t)=>{let{colors:a,font:o,size:r,border:n}=M,s=(i,l)=>e==="light"?i:l;return{entry:t`
11
11
  & * {
12
12
  font-size: ${o.size.xs};
13
13
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
@@ -118,7 +118,7 @@
118
118
  outline: 2px solid ${a.blue[800]};
119
119
  outline-offset: 2px;
120
120
  }
121
- `}},Vo=e=>Ff("light",e),Go=e=>Ff("dark",e);Er(["click"]);Cv=K('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Yr=K("<div>"),bv=K('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),wv=K("<select name=tsqd-queries-filter-sort>"),Lv=K("<select name=tsqd-mutations-filter-sort>"),Sv=K("<span>Asc"),Iv=K("<span>Desc"),kv=K('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Pv=K("<div>Settings"),Mv=K("<span>Position"),Rv=K("<span>Top"),Av=K("<span>Bottom"),Tv=K("<span>Left"),Dv=K("<span>Right"),Ev=K("<span>Theme"),Fv=K("<span>Light"),Ov=K("<span>Dark"),Bv=K("<span>System"),$v=K("<div><div class=tsqd-queries-container>"),qv=K("<div><div class=tsqd-mutations-container>"),Nv=K('<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>'),rc=K("<option>Sort by "),zv=K("<div class=tsqd-query-disabled-indicator>disabled"),Of=K("<button><div></div><code class=tsqd-query-hash>"),Uv=K("<div role=tooltip id=tsqd-status-tooltip>"),Hv=K("<span>"),_v=K("<button><span></span><span>"),Vv=K("<button><span></span> Error"),Gv=K('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Kv=K('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Wv=K("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),Qv=K('<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">'),jv=K("<option>"),Xv=K('<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">'),[vt,cs]=N(null),[Va,Bf]=N(null),[Nt,Vl]=N(0),[$o,nc]=N(!1),$f=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),r=Il(),n=k(()=>X().buttonPosition||e0),s=k(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:X().initialIsOpen||t0),i=k(()=>e.localStore.position||X().position||ml),l;Q(()=>{let d=l.parentElement,c=e.localStore.height||sc,p=e.localStore.width||lc,f=i();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${c}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${p}px`)}),ha(()=>{let d=()=>{let c=l.parentElement,p=getComputedStyle(c).fontSize;c.style.setProperty("--tsqd-font-size",p)};d(),window.addEventListener("focus",d),Z(()=>{window.removeEventListener("focus",d)})});let u=k(()=>e.localStore.pip_open??"false");return[v(j,{get when(){return k(()=>!!r().pipWindow)()&&u()=="true"},get children(){return v(rl,{get mount(){return r().pipWindow?.document.body},get children(){return v(Zv,{get children(){return v(fs,e)}})}})}}),(()=>{var d=Yr(),c=l;return typeof c=="function"?co(c,d):l=d,P(d,v(Cd,{name:"tsqd-panel-transition",get children(){return v(j,{get when(){return k(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return v(Jv,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),P(d,v(Cd,{name:"tsqd-button-transition",get children(){return v(j,{get when(){return!s()},get children(){var p=Cv(),f=p.firstChild,m=f.nextSibling;return P(f,v(Yd,{})),m.$$click=()=>e.setLocalStore("open","true"),P(m,v(Yd,{})),W(()=>B(p,H(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),p}})}}),null),W(()=>B(d,H(a`
121
+ `}},Ko=e=>Ef("light",e),Wo=e=>Ef("dark",e);Br(["click"]);Cv=G('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),an=G("<div>"),bv=G('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),wv=G("<select name=tsqd-queries-filter-sort>"),Lv=G("<select name=tsqd-mutations-filter-sort>"),Sv=G("<span>Asc"),Iv=G("<span>Desc"),kv=G('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Pv=G("<div>Settings"),Mv=G("<span>Position"),Rv=G("<span>Top"),Av=G("<span>Bottom"),Tv=G("<span>Left"),Dv=G("<span>Right"),Ev=G("<span>Theme"),Fv=G("<span>Light"),Ov=G("<span>Dark"),Bv=G("<span>System"),$v=G("<div><div class=tsqd-queries-container>"),qv=G("<div><div class=tsqd-mutations-container>"),Nv=G('<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>'),oc=G("<option>Sort by "),zv=G("<div class=tsqd-query-disabled-indicator>disabled"),Ff=G("<button><div></div><code class=tsqd-query-hash>"),Uv=G("<div role=tooltip id=tsqd-status-tooltip>"),Hv=G("<span>"),_v=G("<button><span></span><span>"),Vv=G("<button><span></span> Error"),Gv=G('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Kv=G('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Wv=G("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),Qv=G('<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">'),jv=G("<option>"),Xv=G('<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">'),[vt,ms]=N(null),[Ga,Of]=N(null),[Nt,Ql]=N(0),[No,rc]=N(!1),Bf=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?At(a):Rt(a)),r=Rl(),n=k(()=>X().buttonPosition||e0),s=k(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:X().initialIsOpen||t0),i=k(()=>e.localStore.position||X().position||yl),l;Q(()=>{let d=l.parentElement,c=e.localStore.height||nc,p=e.localStore.width||sc,f=i();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${c}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${p}px`)}),ga(()=>{let d=()=>{let c=l.parentElement,p=getComputedStyle(c).fontSize;c.style.setProperty("--tsqd-font-size",p)};d(),window.addEventListener("focus",d),Z(()=>{window.removeEventListener("focus",d)})});let u=k(()=>e.localStore.pip_open??"false");return[v(j,{get when(){return k(()=>!!r().pipWindow)()&&u()=="true"},get children(){return v(il,{get mount(){return r().pipWindow?.document.body},get children(){return v(Zv,{get children(){return v(gs,e)}})}})}}),(()=>{var d=an(),c=l;return typeof c=="function"?fo(c,d):l=d,P(d,v(vd,{name:"tsqd-panel-transition",get children(){return v(j,{get when(){return k(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return v(Jv,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),P(d,v(vd,{name:"tsqd-button-transition",get children(){return v(j,{get when(){return!s()},get children(){var p=Cv(),f=p.firstChild,m=f.nextSibling;return P(f,v(Jd,{})),m.$$click=()=>e.setLocalStore("open","true"),P(m,v(Jd,{})),W(()=>B(p,U(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),p}})}}),null),W(()=>B(d,U(a`
122
122
  & .tsqd-panel-transition-exit-active,
123
123
  & .tsqd-panel-transition-enter-active {
124
124
  transition:
@@ -144,62 +144,62 @@
144
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"))),d})()]},Zv=e=>{let t=Il(),a=Xe(),o=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,r=k(()=>a()==="dark"?Rt(o):Mt(o)),n=()=>{let{colors:s}=M,i=(l,u)=>a()==="dark"?u:l;return Nt()<ho?o`
147
+ `,"tsqd-transitions-container"))),d})()]},Zv=e=>{let t=Rl(),a=Xe(),o=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,r=k(()=>a()==="dark"?At(o):Rt(o)),n=()=>{let{colors:s}=M,i=(l,u)=>a()==="dark"?u:l;return Nt()<xo?o`
148
148
  flex-direction: column;
149
149
  background-color: ${i(s.gray[300],s.gray[600])};
150
150
  `:o`
151
151
  flex-direction: row;
152
152
  background-color: ${i(s.gray[200],s.darkGray[900])};
153
- `};return Q(()=>{let s=t().pipWindow,i=()=>{s&&Vl(s.innerWidth)};s&&(s.addEventListener("resize",i),i()),Z(()=>{s&&s.removeEventListener("resize",i)})}),(()=>{var s=Yr();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),P(s,()=>e.children),W(()=>B(s,H(r().panel,n(),{[o`
153
+ `};return Q(()=>{let s=t().pipWindow,i=()=>{s&&Ql(s.innerWidth)};s&&(s.addEventListener("resize",i),i()),Z(()=>{s&&s.removeEventListener("resize",i)})}),(()=>{var s=an();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),P(s,()=>e.children),W(()=>B(s,U(r().panel,n(),{[o`
154
154
  min-width: min-content;
155
- `]:Nt()<Sl},"tsqd-main-panel"))),s})()},qf=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),r;ha(()=>{pc(r,({width:s},i)=>{i===r&&Vl(s)})});let n=()=>{let{colors:s}=M,i=(l,u)=>t()==="dark"?u:l;return Nt()<ho?a`
155
+ `]:Nt()<Ml},"tsqd-main-panel"))),s})()},$f=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?At(a):Rt(a)),r;ga(()=>{fc(r,({width:s},i)=>{i===r&&Ql(s)})});let n=()=>{let{colors:s}=M,i=(l,u)=>t()==="dark"?u:l;return Nt()<xo?a`
156
156
  flex-direction: column;
157
157
  background-color: ${i(s.gray[300],s.gray[600])};
158
158
  `:a`
159
159
  flex-direction: row;
160
160
  background-color: ${i(s.gray[200],s.darkGray[900])};
161
- `};return(()=>{var s=Yr(),i=r;return typeof i=="function"?co(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),P(s,()=>e.children),W(()=>B(s,H(o().parentPanel,n(),{[a`
161
+ `};return(()=>{var s=an(),i=r;return typeof i=="function"?fo(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),P(s,()=>e.children),W(()=>B(s,U(o().parentPanel,n(),{[a`
162
162
  min-width: min-content;
163
- `]:Nt()<Sl},"tsqd-main-panel"))),s})()},Jv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),[r,n]=N(!1),s=k(()=>e.localStore.position||X().position||ml),i=d=>{let c=d.currentTarget.parentElement;if(!c)return;n(!0);let{height:p,width:f}=c.getBoundingClientRect(),m=d.clientX,g=d.clientY,h=0,x=sl(3.5),y=sl(12),C=L=>{if(L.preventDefault(),s()==="left"||s()==="right"){let E=s()==="right"?m-L.clientX:L.clientX-m;h=Math.round(f+E),h<y&&(h=y),e.setLocalStore("width",String(Math.round(h)));let D=c.getBoundingClientRect().width;Number(e.localStore.width)<D&&e.setLocalStore("width",String(D))}else{let E=s()==="bottom"?g-L.clientY:L.clientY-g;h=Math.round(p+E),h<x&&(h=x,cs(null)),e.setLocalStore("height",String(Math.round(h)))}},w=()=>{r()&&n(!1),document.removeEventListener("mousemove",C,!1),document.removeEventListener("mouseUp",w,!1)};document.addEventListener("mousemove",C,!1),document.addEventListener("mouseup",w,!1)},l;ha(()=>{pc(l,({width:d},c)=>{c===l&&Vl(d)})}),Q(()=>{let d=l.parentElement?.parentElement?.parentElement;if(!d)return;let c=e.localStore.position||ml,p=sd("padding",c),f=e.localStore.position==="left"||e.localStore.position==="right",m=(({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:y,paddingRight:C})=>({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:y,paddingRight:C}))(d.style);d.style[p]=`${f?e.localStore.width:e.localStore.height}px`,Z(()=>{Object.entries(m).forEach(([g,h])=>{d.style[g]=h})})});let u=()=>{let{colors:d}=M,c=(p,f)=>t()==="dark"?f:p;return Nt()<ho?a`
163
+ `]:Nt()<Ml},"tsqd-main-panel"))),s})()},Jv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?At(a):Rt(a)),[r,n]=N(!1),s=k(()=>e.localStore.position||X().position||yl),i=d=>{let c=d.currentTarget.parentElement;if(!c)return;n(!0);let{height:p,width:f}=c.getBoundingClientRect(),m=d.clientX,g=d.clientY,h=0,x=dl(3.5),y=dl(12),b=L=>{if(L.preventDefault(),s()==="left"||s()==="right"){let D=s()==="right"?m-L.clientX:L.clientX-m;h=Math.round(f+D),h<y&&(h=y),e.setLocalStore("width",String(Math.round(h)));let E=c.getBoundingClientRect().width;Number(e.localStore.width)<E&&e.setLocalStore("width",String(E))}else{let D=s()==="bottom"?g-L.clientY:L.clientY-g;h=Math.round(p+D),h<x&&(h=x,ms(null)),e.setLocalStore("height",String(Math.round(h)))}},w=()=>{r()&&n(!1),document.removeEventListener("mousemove",b,!1),document.removeEventListener("mouseUp",w,!1)};document.addEventListener("mousemove",b,!1),document.addEventListener("mouseup",w,!1)},l;ga(()=>{fc(l,({width:d},c)=>{c===l&&Ql(d)})}),Q(()=>{let d=l.parentElement?.parentElement?.parentElement;if(!d)return;let c=e.localStore.position||yl,p=nd("padding",c),f=e.localStore.position==="left"||e.localStore.position==="right",m=(({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:y,paddingRight:b})=>({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:y,paddingRight:b}))(d.style);d.style[p]=`${f?e.localStore.width:e.localStore.height}px`,Z(()=>{Object.entries(m).forEach(([g,h])=>{d.style[g]=h})})});let u=()=>{let{colors:d}=M,c=(p,f)=>t()==="dark"?f:p;return Nt()<xo?a`
164
164
  flex-direction: column;
165
165
  background-color: ${c(d.gray[300],d.gray[600])};
166
166
  `:a`
167
167
  flex-direction: row;
168
168
  background-color: ${c(d.gray[200],d.darkGray[900])};
169
- `};return(()=>{var d=bv(),c=d.firstChild,p=c.nextSibling,f=l;return typeof f=="function"?co(f,d):l=d,c.$$mousedown=i,p.$$click=()=>e.setLocalStore("open","false"),P(p,v(Ur,{})),P(d,v(fs,e),null),W(m=>{var g=H(o().panel,o()[`panel-position-${s()}`],u(),{[a`
169
+ `};return(()=>{var d=bv(),c=d.firstChild,p=c.nextSibling,f=l;return typeof f=="function"?fo(f,d):l=d,c.$$mousedown=i,p.$$click=()=>e.setLocalStore("open","false"),P(p,v(Vr,{})),P(d,v(gs,e),null),W(m=>{var g=U(o().panel,o()[`panel-position-${s()}`],u(),{[a`
170
170
  min-width: min-content;
171
- `]:Nt()<Sl&&(s()==="right"||s()==="left")},"tsqd-main-panel"),h=s()==="bottom"||s()==="top"?`${e.localStore.height||sc}px`:"auto",x=s()==="right"||s()==="left"?`${e.localStore.width||lc}px`:"auto",y=H(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),C=H(o().closeBtn,o()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==m.e&&B(d,m.e=g),h!==m.t&&((m.t=h)!=null?d.style.setProperty("height",h):d.style.removeProperty("height")),x!==m.a&&((m.a=x)!=null?d.style.setProperty("width",x):d.style.removeProperty("width")),y!==m.o&&B(c,m.o=y),C!==m.i&&B(p,m.i=C),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},fs=e=>{nC(),sC();let t,a=Xe(),o=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,r=k(()=>a()==="dark"?Rt(o):Mt(o)),n=Il(),[s,i]=N("queries"),l=k(()=>e.localStore.sort||o0),u=k(()=>Number(e.localStore.sortOrder)||pd),d=k(()=>e.localStore.mutationSort||r0),c=k(()=>Number(e.localStore.mutationSortOrder)||pd),p=k(()=>Un[l()]),f=k(()=>Hn[d()]),m=k(()=>X().onlineManager),g=k(()=>X().client.getQueryCache()),h=k(()=>X().client.getMutationCache()),x=Je(D=>D().getAll().length,!1),y=k(Jt(()=>[x(),e.localStore.filter,l(),u()],()=>{let D=g().getAll(),T=e.localStore.filter?D.filter(I=>md(I.queryHash,e.localStore.filter||"").passed):[...D];return p()?T.sort((I,_)=>p()(I,_)*u()):T})),C=qt(D=>D().getAll().length,!1),w=k(Jt(()=>[C(),e.localStore.mutationFilter,d(),c()],()=>{let D=h().getAll(),T=e.localStore.mutationFilter?D.filter(I=>{let _=`${I.options.mutationKey?JSON.stringify(I.options.mutationKey)+" - ":""}${new Date(I.state.submittedAt).toLocaleString()}`;return md(_,e.localStore.mutationFilter||"").passed}):[...D];return f()?T.sort((I,_)=>f()(I,_)*c()):T})),L=D=>{e.setLocalStore("position",D)},E=D=>{let S=getComputedStyle(t).getPropertyValue("--tsqd-font-size");D.style.setProperty("--tsqd-font-size",S)};return[(()=>{var D=Nv(),T=D.firstChild,S=T.firstChild,I=S.firstChild,_=I.firstChild,F=_.nextSibling,re=F.firstChild,fe=T.nextSibling,J=fe.firstChild,ne=J.firstChild,me=ne.firstChild,xe=ne.nextSibling,Ce=xe.nextSibling,Oe=J.nextSibling,Re=Oe.firstChild,qe=Re.nextSibling,lt=t;return typeof lt=="function"?co(lt,D):t=D,I.$$click=()=>{if(!n().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},P(F,()=>X().queryFlavor,re),P(F,()=>X().version,null),P(S,v(It.Root,{get class(){return H(r().viewToggle)},get value(){return s()},onChange:$=>{i($),cs(null),Bf(null)},get children(){return[v(It.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[v(It.ItemInput,{}),v(It.ItemControl,{get children(){return v(It.ItemIndicator,{})}}),v(It.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),v(It.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[v(It.ItemInput,{}),v(It.ItemControl,{get children(){return v(It.ItemIndicator,{})}}),v(It.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),P(T,v(j,{get when(){return s()==="queries"},get children(){return v(tC,{})}}),null),P(T,v(j,{get when(){return s()==="mutations"},get children(){return v(aC,{})}}),null),P(ne,v(zy,{}),me),me.$$input=$=>{s()==="queries"?e.setLocalStore("filter",$.currentTarget.value):e.setLocalStore("mutationFilter",$.currentTarget.value)},P(xe,v(j,{get when(){return s()==="queries"},get children(){var $=wv();return $.addEventListener("change",Be=>{e.setLocalStore("sort",Be.currentTarget.value)}),P($,()=>Object.keys(Un).map(Be=>(()=>{var be=rc();return be.firstChild,be.value=Be,P(be,Be,null),be})())),W(()=>$.value=l()),$}}),null),P(xe,v(j,{get when(){return s()==="mutations"},get children(){var $=Lv();return $.addEventListener("change",Be=>{e.setLocalStore("mutationSort",Be.currentTarget.value)}),P($,()=>Object.keys(Hn).map(Be=>(()=>{var be=rc();return be.firstChild,be.value=Be,P(be,Be,null),be})())),W(()=>$.value=d()),$}}),null),P(xe,v(Ur,{}),null),Ce.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(c()*-1))},P(Ce,v(j,{get when(){return(s()==="queries"?u():c())===1},get children(){return[Sv(),v(Zd,{})]}}),null),P(Ce,v(j,{get when(){return(s()==="queries"?u():c())===-1},get children(){return[Iv(),v(Jd,{})]}}),null),Re.$$click=()=>{s()==="queries"?g().clear():h().clear()},P(Re,v(Ef,{})),qe.$$click=()=>{$o()?(m().setOnline(!0),nc(!1)):(m().setOnline(!1),nc(!0))},P(qe,(()=>{var $=k(()=>!!$o());return()=>$()?v(Wy,{}):v(Ky,{})})()),P(Oe,v(j,{get when(){return k(()=>!n().pipWindow)()&&!n().disabled},get children(){var $=kv();return $.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},P($,v(jy,{})),W(()=>B($,H(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),$}}),null),P(Oe,v(He.Root,{gutter:4,get children(){return[v(He.Trigger,{get class(){return H(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return v(Qy,{})}}),v(He.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(He.Content,{get class(){return H(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var $=Pv();return W(()=>B($,H(r().settingsMenuHeader,"tsqd-settings-menu-header"))),$})(),v(j,{get when(){return!e.showPanelViewOnly},get children(){return v(He.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(He.SubTrigger,{get class(){return H(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Mv(),v(Ur,{})]}}),v(He.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(He.SubContent,{get class(){return H(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(He.Item,{onSelect:()=>{L("top")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Rv(),v(Zd,{})]}}),v(He.Item,{onSelect:()=>{L("bottom")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Av(),v(Jd,{})]}}),v(He.Item,{onSelect:()=>{L("left")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Tv(),v(Uy,{})]}}),v(He.Item,{onSelect:()=>{L("right")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[Dv(),v(Hy,{})]}})]}})}})]}})}}),v(He.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(He.SubTrigger,{get class(){return H(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Ev(),v(Ur,{})]}}),v(He.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(He.SubContent,{get class(){return H(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(He.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return H(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Fv(),v(_y,{})]}}),v(He.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return H(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Ov(),v(Vy,{})]}}),v(He.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return H(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Bv(),v(Gy,{})]}})]}})}})]}})]}})}})]}}),null),P(D,v(j,{get when(){return s()==="queries"},get children(){var $=$v(),Be=$.firstChild;return P(Be,v(Wn,{by:be=>be.queryHash,get each(){return y()},children:be=>v(Yv,{get query(){return be()}})})),W(()=>B($,H(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),$}}),null),P(D,v(j,{get when(){return s()==="mutations"},get children(){var $=qv(),Be=$.firstChild;return P(Be,v(Wn,{by:be=>be.mutationId,get each(){return w()},children:be=>v(eC,{get mutation(){return be()}})})),W(()=>B($,H(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),$}}),null),W($=>{var Be=H(r().queriesContainer,Nt()<ho&&(vt()||Va())&&o`
171
+ `]:Nt()<Ml&&(s()==="right"||s()==="left")},"tsqd-main-panel"),h=s()==="bottom"||s()==="top"?`${e.localStore.height||nc}px`:"auto",x=s()==="right"||s()==="left"?`${e.localStore.width||sc}px`:"auto",y=U(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),b=U(o().closeBtn,o()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==m.e&&B(d,m.e=g),h!==m.t&&((m.t=h)!=null?d.style.setProperty("height",h):d.style.removeProperty("height")),x!==m.a&&((m.a=x)!=null?d.style.setProperty("width",x):d.style.removeProperty("width")),y!==m.o&&B(c,m.o=y),b!==m.i&&B(p,m.i=b),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},gs=e=>{nC(),sC();let t,a=Xe(),o=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,r=k(()=>a()==="dark"?At(o):Rt(o)),n=Rl(),[s,i]=N("queries"),l=k(()=>e.localStore.sort||o0),u=k(()=>Number(e.localStore.sortOrder)||fd),d=k(()=>e.localStore.mutationSort||r0),c=k(()=>Number(e.localStore.mutationSortOrder)||fd),p=k(()=>Vn[l()]),f=k(()=>Gn[d()]),m=k(()=>X().onlineManager),g=k(()=>X().client.getQueryCache()),h=k(()=>X().client.getMutationCache()),x=Je(E=>E().getAll().length,!1),y=k(Xt(()=>[x(),e.localStore.filter,l(),u()],()=>{let E=g().getAll(),A=e.localStore.filter?E.filter(I=>pd(I.queryHash,e.localStore.filter||"").passed):[...E];return p()?A.sort((I,H)=>p()(I,H)*u()):A})),b=qt(E=>E().getAll().length,!1),w=k(Xt(()=>[b(),e.localStore.mutationFilter,d(),c()],()=>{let E=h().getAll(),A=e.localStore.mutationFilter?E.filter(I=>{let H=`${I.options.mutationKey?JSON.stringify(I.options.mutationKey)+" - ":""}${new Date(I.state.submittedAt).toLocaleString()}`;return pd(H,e.localStore.mutationFilter||"").passed}):[...E];return f()?A.sort((I,H)=>f()(I,H)*c()):A})),L=E=>{e.setLocalStore("position",E)},D=E=>{let S=getComputedStyle(t).getPropertyValue("--tsqd-font-size");E.style.setProperty("--tsqd-font-size",S)};return[(()=>{var E=Nv(),A=E.firstChild,S=A.firstChild,I=S.firstChild,H=I.firstChild,F=H.nextSibling,re=F.firstChild,fe=A.nextSibling,be=fe.firstChild,he=be.firstChild,Y=he.firstChild,ne=he.nextSibling,pe=ne.nextSibling,Re=be.nextSibling,Ae=Re.firstChild,$e=Ae.nextSibling,lt=t;return typeof lt=="function"?fo(lt,E):t=E,I.$$click=()=>{if(!n().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},P(F,()=>X().queryFlavor,re),P(F,()=>X().version,null),P(S,v(kt.Root,{get class(){return U(r().viewToggle)},get value(){return s()},onChange:$=>{i($),ms(null),Of(null)},get children(){return[v(kt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[v(kt.ItemInput,{}),v(kt.ItemControl,{get children(){return v(kt.ItemIndicator,{})}}),v(kt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),v(kt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[v(kt.ItemInput,{}),v(kt.ItemControl,{get children(){return v(kt.ItemIndicator,{})}}),v(kt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),P(A,v(j,{get when(){return s()==="queries"},get children(){return v(tC,{})}}),null),P(A,v(j,{get when(){return s()==="mutations"},get children(){return v(aC,{})}}),null),P(he,v(zy,{}),Y),Y.$$input=$=>{s()==="queries"?e.setLocalStore("filter",$.currentTarget.value):e.setLocalStore("mutationFilter",$.currentTarget.value)},P(ne,v(j,{get when(){return s()==="queries"},get children(){var $=wv();return $.addEventListener("change",Oe=>{e.setLocalStore("sort",Oe.currentTarget.value)}),P($,()=>Object.keys(Vn).map(Oe=>(()=>{var ve=oc();return ve.firstChild,ve.value=Oe,P(ve,Oe,null),ve})())),W(()=>$.value=l()),$}}),null),P(ne,v(j,{get when(){return s()==="mutations"},get children(){var $=Lv();return $.addEventListener("change",Oe=>{e.setLocalStore("mutationSort",Oe.currentTarget.value)}),P($,()=>Object.keys(Gn).map(Oe=>(()=>{var ve=oc();return ve.firstChild,ve.value=Oe,P(ve,Oe,null),ve})())),W(()=>$.value=d()),$}}),null),P(ne,v(Vr,{}),null),pe.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(c()*-1))},P(pe,v(j,{get when(){return(s()==="queries"?u():c())===1},get children(){return[Sv(),v(Xd,{})]}}),null),P(pe,v(j,{get when(){return(s()==="queries"?u():c())===-1},get children(){return[Iv(),v(Zd,{})]}}),null),Ae.$$click=()=>{s()==="queries"?g().clear():h().clear()},P(Ae,v(Df,{})),$e.$$click=()=>{No()?(m().setOnline(!0),rc(!1)):(m().setOnline(!1),rc(!0))},P($e,(()=>{var $=k(()=>!!No());return()=>$()?v(Wy,{}):v(Ky,{})})()),P(Re,v(j,{get when(){return k(()=>!n().pipWindow)()&&!n().disabled},get children(){var $=kv();return $.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},P($,v(jy,{})),W(()=>B($,U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),$}}),null),P(Re,v(Ue.Root,{gutter:4,get children(){return[v(Ue.Trigger,{get class(){return U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return v(Qy,{})}}),v(Ue.Portal,{ref:$=>D($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(Ue.Content,{get class(){return U(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var $=Pv();return W(()=>B($,U(r().settingsMenuHeader,"tsqd-settings-menu-header"))),$})(),v(j,{get when(){return!e.showPanelViewOnly},get children(){return v(Ue.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Ue.SubTrigger,{get class(){return U(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Mv(),v(Vr,{})]}}),v(Ue.Portal,{ref:$=>D($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(Ue.SubContent,{get class(){return U(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Ue.Item,{onSelect:()=>{L("top")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Rv(),v(Xd,{})]}}),v(Ue.Item,{onSelect:()=>{L("bottom")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Av(),v(Zd,{})]}}),v(Ue.Item,{onSelect:()=>{L("left")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Tv(),v(Uy,{})]}}),v(Ue.Item,{onSelect:()=>{L("right")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[Dv(),v(Hy,{})]}})]}})}})]}})}}),v(Ue.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Ue.SubTrigger,{get class(){return U(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Ev(),v(Vr,{})]}}),v(Ue.Portal,{ref:$=>D($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(Ue.SubContent,{get class(){return U(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Ue.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Fv(),v(_y,{})]}}),v(Ue.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Ov(),v(Vy,{})]}}),v(Ue.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Bv(),v(Gy,{})]}})]}})}})]}})]}})}})]}}),null),P(E,v(j,{get when(){return s()==="queries"},get children(){var $=$v(),Oe=$.firstChild;return P(Oe,v(Xn,{by:ve=>ve.queryHash,get each(){return y()},children:ve=>v(Yv,{get query(){return ve()}})})),W(()=>B($,U(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),$}}),null),P(E,v(j,{get when(){return s()==="mutations"},get children(){var $=qv(),Oe=$.firstChild;return P(Oe,v(Xn,{by:ve=>ve.mutationId,get each(){return w()},children:ve=>v(eC,{get mutation(){return ve()}})})),W(()=>B($,U(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),$}}),null),W($=>{var Oe=U(r().queriesContainer,Nt()<xo&&(vt()||Ga())&&o`
172
172
  height: 50%;
173
173
  max-height: 50%;
174
- `,Nt()<ho&&!(vt()||Va())&&o`
174
+ `,Nt()<xo&&!(vt()||Ga())&&o`
175
175
  height: 100%;
176
176
  max-height: 100%;
177
- `,"tsqd-queries-container"),be=H(r().row,"tsqd-header"),Ea=r().logoAndToggleContainer,ee=H(r().logo,"tsqd-text-logo-container"),Ft=H(r().tanstackLogo,"tsqd-text-logo-tanstack"),et=H(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),So=H(r().row,"tsqd-filters-actions-container"),wt=H(r().filtersContainer,"tsqd-filters-container"),Fa=H(r().filterInput,"tsqd-query-filter-textfield-container"),no=H("tsqd-query-filter-textfield"),ia=H(r().filterSelect,"tsqd-query-filter-sort-container"),Wt=`Sort order ${(s()==="queries"?u():c())===-1?"descending":"ascending"}`,ua=(s()==="queries"?u():c())===-1,z=H(r().actionsContainer,"tsqd-actions-container"),Ie=H(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),it=`Clear ${s()} cache`,Pe=H(r().actionsBtn,$o()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),Se=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`,Ae=$o(),We=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Be!==$.e&&B(D,$.e=Be),be!==$.t&&B(T,$.t=be),Ea!==$.a&&B(S,$.a=Ea),ee!==$.o&&B(I,$.o=ee),Ft!==$.i&&B(_,$.i=Ft),et!==$.n&&B(F,$.n=et),So!==$.s&&B(fe,$.s=So),wt!==$.h&&B(J,$.h=wt),Fa!==$.r&&B(ne,$.r=Fa),no!==$.d&&B(me,$.d=no),ia!==$.l&&B(xe,$.l=ia),Wt!==$.u&&O(Ce,"aria-label",$.u=Wt),ua!==$.c&&O(Ce,"aria-pressed",$.c=ua),z!==$.w&&B(Oe,$.w=z),Ie!==$.m&&B(Re,$.m=Ie),it!==$.f&&O(Re,"title",$.f=it),Pe!==$.y&&B(qe,$.y=Pe),Se!==$.g&&O(qe,"aria-label",$.g=Se),Ae!==$.p&&O(qe,"aria-pressed",$.p=Ae),We!==$.b&&O(qe,"title",$.b=We),$},{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}),W(()=>me.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),D})(),v(j,{get when(){return k(()=>s()==="queries")()&&vt()},get children(){return v(oC,{})}}),v(j,{get when(){return k(()=>s()==="mutations")()&&Va()},get children(){return v(rC,{})}})]},Yv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),{colors:r,alpha:n}=M,s=(f,m)=>t()==="dark"?m:f,i=Je(f=>f().find({queryKey:e.query.queryKey})?.state,!0,f=>f.query.queryHash===e.query.queryHash),l=Je(f=>f().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,f=>f.query.queryHash===e.query.queryHash),u=Je(f=>f().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,f=>f.query.queryHash===e.query.queryHash),d=Je(f=>f().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,f=>f.query.queryHash===e.query.queryHash),c=k(()=>ld({queryState:i(),observerCount:d(),isStale:u()})),p=()=>c()==="gray"?a`
177
+ `,"tsqd-queries-container"),ve=U(r().row,"tsqd-header"),Ta=r().logoAndToggleContainer,te=U(r().logo,"tsqd-text-logo-container"),Ot=U(r().tanstackLogo,"tsqd-text-logo-tanstack"),et=U(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),Io=U(r().row,"tsqd-filters-actions-container"),Lt=U(r().filtersContainer,"tsqd-filters-container"),Da=U(r().filterInput,"tsqd-query-filter-textfield-container"),so=U("tsqd-query-filter-textfield"),sa=U(r().filterSelect,"tsqd-query-filter-sort-container"),Wt=`Sort order ${(s()==="queries"?u():c())===-1?"descending":"ascending"}`,la=(s()==="queries"?u():c())===-1,z=U(r().actionsContainer,"tsqd-actions-container"),Ie=U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),it=`Clear ${s()} cache`,Pe=U(r().actionsBtn,No()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),Se=`${No()?"Unset offline mocking behavior":"Mock offline behavior"}`,Te=No(),We=`${No()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Oe!==$.e&&B(E,$.e=Oe),ve!==$.t&&B(A,$.t=ve),Ta!==$.a&&B(S,$.a=Ta),te!==$.o&&B(I,$.o=te),Ot!==$.i&&B(H,$.i=Ot),et!==$.n&&B(F,$.n=et),Io!==$.s&&B(fe,$.s=Io),Lt!==$.h&&B(be,$.h=Lt),Da!==$.r&&B(he,$.r=Da),so!==$.d&&B(Y,$.d=so),sa!==$.l&&B(ne,$.l=sa),Wt!==$.u&&O(pe,"aria-label",$.u=Wt),la!==$.c&&O(pe,"aria-pressed",$.c=la),z!==$.w&&B(Re,$.w=z),Ie!==$.m&&B(Ae,$.m=Ie),it!==$.f&&O(Ae,"title",$.f=it),Pe!==$.y&&B($e,$.y=Pe),Se!==$.g&&O($e,"aria-label",$.g=Se),Te!==$.p&&O($e,"aria-pressed",$.p=Te),We!==$.b&&O($e,"title",$.b=We),$},{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}),W(()=>Y.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),E})(),v(j,{get when(){return k(()=>s()==="queries")()&&vt()},get children(){return v(oC,{})}}),v(j,{get when(){return k(()=>s()==="mutations")()&&Ga()},get children(){return v(rC,{})}})]},Yv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?At(a):Rt(a)),{colors:r,alpha:n}=M,s=(f,m)=>t()==="dark"?m:f,i=Je(f=>f().find({queryKey:e.query.queryKey})?.state,!0,f=>f.query.queryHash===e.query.queryHash),l=Je(f=>f().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,f=>f.query.queryHash===e.query.queryHash),u=Je(f=>f().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,f=>f.query.queryHash===e.query.queryHash),d=Je(f=>f().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,f=>f.query.queryHash===e.query.queryHash),c=k(()=>sd({queryState:i(),observerCount:d(),isStale:u()})),p=()=>c()==="gray"?a`
178
178
  background-color: ${s(r[c()][200],r[c()][700])};
179
179
  color: ${s(r[c()][700],r[c()][300])};
180
180
  `:a`
181
181
  background-color: ${s(r[c()][200]+n[80],r[c()][900])};
182
182
  color: ${s(r[c()][800],r[c()][300])};
183
- `;return v(j,{get when(){return i()},get children(){var f=Of(),m=f.firstChild,g=m.nextSibling;return f.$$click=()=>cs(e.query.queryHash===vt()?null:e.query.queryHash),P(m,d),P(g,()=>e.query.queryHash),P(f,v(j,{get when(){return l()},get children(){return zv()}}),null),W(h=>{var x=H(o().queryRow,vt()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),y=`Query key ${e.query.queryHash}`,C=H(p(),"tsqd-query-observer-count");return x!==h.e&&B(f,h.e=x),y!==h.t&&O(f,"aria-label",h.t=y),C!==h.a&&B(m,h.a=C),h},{e:void 0,t:void 0,a:void 0}),f}})},eC=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),{colors:r,alpha:n}=M,s=(p,f)=>t()==="dark"?f:p,i=qt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=qt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=qt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),d=k(()=>mo({isPaused:l(),status:u()})),c=()=>d()==="gray"?a`
183
+ `;return v(j,{get when(){return i()},get children(){var f=Ff(),m=f.firstChild,g=m.nextSibling;return f.$$click=()=>ms(e.query.queryHash===vt()?null:e.query.queryHash),P(m,d),P(g,()=>e.query.queryHash),P(f,v(j,{get when(){return l()},get children(){return zv()}}),null),W(h=>{var x=U(o().queryRow,vt()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),y=`Query key ${e.query.queryHash}`,b=U(p(),"tsqd-query-observer-count");return x!==h.e&&B(f,h.e=x),y!==h.t&&O(f,"aria-label",h.t=y),b!==h.a&&B(m,h.a=b),h},{e:void 0,t:void 0,a:void 0}),f}})},eC=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?At(a):Rt(a)),{colors:r,alpha:n}=M,s=(p,f)=>t()==="dark"?f:p,i=qt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=qt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=qt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),d=k(()=>go({isPaused:l(),status:u()})),c=()=>d()==="gray"?a`
184
184
  background-color: ${s(r[d()][200],r[d()][700])};
185
185
  color: ${s(r[d()][700],r[d()][300])};
186
186
  `:a`
187
187
  background-color: ${s(r[d()][200]+n[80],r[d()][900])};
188
188
  color: ${s(r[d()][800],r[d()][300])};
189
- `;return v(j,{get when(){return i()},get children(){var p=Of(),f=p.firstChild,m=f.nextSibling;return p.$$click=()=>{Bf(e.mutation.mutationId===Va()?null:e.mutation.mutationId)},P(f,v(j,{get when(){return d()==="purple"},get children(){return v(nv,{})}}),null),P(f,v(j,{get when(){return d()==="green"},get children(){return v(av,{})}}),null),P(f,v(j,{get when(){return d()==="red"},get children(){return v(rv,{})}}),null),P(f,v(j,{get when(){return d()==="yellow"},get children(){return v(ov,{})}}),null),P(m,v(j,{get when(){return e.mutation.options.mutationKey},get children(){return[k(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),P(m,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),W(g=>{var h=H(o().queryRow,Va()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),x=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,y=H(c(),"tsqd-query-observer-count");return h!==g.e&&B(p,g.e=h),x!==g.t&&O(p,"aria-label",g.t=x),y!==g.a&&B(f,g.a=y),g},{e:void 0,t:void 0,a:void 0}),p}})},tC=()=>{let e=Je(l=>l().getAll().filter(u=>po(u)==="stale").length),t=Je(l=>l().getAll().filter(u=>po(u)==="fresh").length),a=Je(l=>l().getAll().filter(u=>po(u)==="fetching").length),o=Je(l=>l().getAll().filter(u=>po(u)==="paused").length),r=Je(l=>l().getAll().filter(u=>po(u)==="inactive").length),n=Xe(),s=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,i=k(()=>n()==="dark"?Rt(s):Mt(s));return(()=>{var l=Yr();return P(l,v(va,{label:"Fresh",color:"green",get count(){return t()}}),null),P(l,v(va,{label:"Fetching",color:"blue",get count(){return a()}}),null),P(l,v(va,{label:"Paused",color:"purple",get count(){return o()}}),null),P(l,v(va,{label:"Stale",color:"yellow",get count(){return e()}}),null),P(l,v(va,{label:"Inactive",color:"gray",get count(){return r()}}),null),W(()=>B(l,H(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},aC=()=>{let e=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="red").length),r=Xe(),n=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,s=k(()=>r()==="dark"?Rt(n):Mt(n));return(()=>{var i=Yr();return P(i,v(va,{label:"Paused",color:"purple",get count(){return a()}}),null),P(i,v(va,{label:"Pending",color:"yellow",get count(){return t()}}),null),P(i,v(va,{label:"Success",color:"green",get count(){return e()}}),null),P(i,v(va,{label:"Error",color:"red",get count(){return o()}}),null),W(()=>B(i,H(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},va=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),{colors:r,alpha:n}=M,s=(f,m)=>t()==="dark"?m:f,i,[l,u]=N(!1),[d,c]=N(!1),p=k(()=>!(vt()&&Nt()<Yh&&Nt()>ho||Nt()<ho));return(()=>{var f=_v(),m=f.firstChild,g=m.nextSibling,h=i;return typeof h=="function"?co(h,f):i=f,f.addEventListener("mouseleave",()=>{u(!1),c(!1)}),f.addEventListener("mouseenter",()=>u(!0)),f.addEventListener("blur",()=>c(!1)),f.addEventListener("focus",()=>c(!0)),ol(f,te({get disabled(){return p()},get class(){return H(o().queryStatusTag,!p()&&a`
189
+ `;return v(j,{get when(){return i()},get children(){var p=Ff(),f=p.firstChild,m=f.nextSibling;return p.$$click=()=>{Of(e.mutation.mutationId===Ga()?null:e.mutation.mutationId)},P(f,v(j,{get when(){return d()==="purple"},get children(){return v(nv,{})}}),null),P(f,v(j,{get when(){return d()==="green"},get children(){return v(av,{})}}),null),P(f,v(j,{get when(){return d()==="red"},get children(){return v(rv,{})}}),null),P(f,v(j,{get when(){return d()==="yellow"},get children(){return v(ov,{})}}),null),P(m,v(j,{get when(){return e.mutation.options.mutationKey},get children(){return[k(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),P(m,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),W(g=>{var h=U(o().queryRow,Ga()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),x=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,y=U(c(),"tsqd-query-observer-count");return h!==g.e&&B(p,g.e=h),x!==g.t&&O(p,"aria-label",g.t=x),y!==g.a&&B(f,g.a=y),g},{e:void 0,t:void 0,a:void 0}),p}})},tC=()=>{let e=Je(l=>l().getAll().filter(u=>mo(u)==="stale").length),t=Je(l=>l().getAll().filter(u=>mo(u)==="fresh").length),a=Je(l=>l().getAll().filter(u=>mo(u)==="fetching").length),o=Je(l=>l().getAll().filter(u=>mo(u)==="paused").length),r=Je(l=>l().getAll().filter(u=>mo(u)==="inactive").length),n=Xe(),s=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,i=k(()=>n()==="dark"?At(s):Rt(s));return(()=>{var l=an();return P(l,v(ya,{label:"Fresh",color:"green",get count(){return t()}}),null),P(l,v(ya,{label:"Fetching",color:"blue",get count(){return a()}}),null),P(l,v(ya,{label:"Paused",color:"purple",get count(){return o()}}),null),P(l,v(ya,{label:"Stale",color:"yellow",get count(){return e()}}),null),P(l,v(ya,{label:"Inactive",color:"gray",get count(){return r()}}),null),W(()=>B(l,U(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},aC=()=>{let e=qt(i=>i().getAll().filter(l=>go({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=qt(i=>i().getAll().filter(l=>go({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=qt(i=>i().getAll().filter(l=>go({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=qt(i=>i().getAll().filter(l=>go({isPaused:l.state.isPaused,status:l.state.status})==="red").length),r=Xe(),n=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,s=k(()=>r()==="dark"?At(n):Rt(n));return(()=>{var i=an();return P(i,v(ya,{label:"Paused",color:"purple",get count(){return a()}}),null),P(i,v(ya,{label:"Pending",color:"yellow",get count(){return t()}}),null),P(i,v(ya,{label:"Success",color:"green",get count(){return e()}}),null),P(i,v(ya,{label:"Error",color:"red",get count(){return o()}}),null),W(()=>B(i,U(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},ya=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?At(a):Rt(a)),{colors:r,alpha:n}=M,s=(f,m)=>t()==="dark"?m:f,i,[l,u]=N(!1),[d,c]=N(!1),p=k(()=>!(vt()&&Nt()<Yh&&Nt()>xo||Nt()<xo));return(()=>{var f=_v(),m=f.firstChild,g=m.nextSibling,h=i;return typeof h=="function"?fo(h,f):i=f,f.addEventListener("mouseleave",()=>{u(!1),c(!1)}),f.addEventListener("mouseenter",()=>u(!0)),f.addEventListener("blur",()=>c(!1)),f.addEventListener("focus",()=>c(!0)),ll(f,ae({get disabled(){return p()},get class(){return U(o().queryStatusTag,!p()&&a`
190
190
  cursor: pointer;
191
191
  &:hover {
192
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()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),P(f,v(j,{get when(){return k(()=>!p())()&&(l()||d())},get children(){var x=Uv();return P(x,()=>e.label),W(()=>B(x,H(o().statusTooltip,"tsqd-query-status-tooltip"))),x}}),m),P(f,v(j,{get when(){return p()},get children(){var x=Hv();return P(x,()=>e.label),W(()=>B(x,H(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),x}}),g),P(g,()=>e.count),W(x=>{var y=H(a`
194
+ `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),P(f,v(j,{get when(){return k(()=>!p())()&&(l()||d())},get children(){var x=Uv();return P(x,()=>e.label),W(()=>B(x,U(o().statusTooltip,"tsqd-query-status-tooltip"))),x}}),m),P(f,v(j,{get when(){return p()},get children(){var x=Hv();return P(x,()=>e.label),W(()=>B(x,U(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),x}}),g),P(g,()=>e.count),W(x=>{var y=U(a`
195
195
  width: ${M.size[1.5]};
196
196
  height: ${M.size[1.5]};
197
197
  border-radius: ${M.border.radius.full};
198
198
  background-color: ${M.colors[e.color][500]};
199
- `,"tsqd-query-status-tag-dot"),C=H(o().queryStatusCount,e.count>0&&e.color!=="gray"&&a`
199
+ `,"tsqd-query-status-tag-dot"),b=U(o().queryStatusCount,e.count>0&&e.color!=="gray"&&a`
200
200
  background-color: ${s(r[e.color][100],r[e.color][900])};
201
201
  color: ${s(r[e.color][700],r[e.color][300])};
202
- `,"tsqd-query-status-tag-count");return y!==x.e&&B(m,x.e=y),C!==x.t&&B(g,x.t=C),x},{e:void 0,t:void 0}),f})()},oC=()=>{let e=Xe(),t=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,a=k(()=>e()==="dark"?Rt(t):Mt(t)),{colors:o}=M,r=(S,I)=>e()==="dark"?I:S,n=X().client,[s,i]=N(!1),[l,u]=N("view"),[d,c]=N(!1),p=k(()=>X().errorTypes||[]),f=Je(S=>S().getAll().find(I=>I.queryHash===vt()),!1),m=Je(S=>S().getAll().find(I=>I.queryHash===vt()),!1),g=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.state,!1),h=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.state.data,!1),x=Je(S=>{let I=S().getAll().find(_=>_.queryHash===vt());return I?po(I):"inactive"}),y=Je(S=>{let I=S().getAll().find(_=>_.queryHash===vt());return I?I.state.status:"pending"}),C=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.getObserversCount()??0),w=k(()=>id(x())),L=()=>{f()?.fetch()?.catch(()=>{})},E=S=>{let I=S?.initializer(f())??new Error("Unknown error from devtools"),_=f().options;f().setState({status:"error",error:I,fetchMeta:{...f().state.fetchMeta,__previousQueryOptions:_}})},D=()=>{let S=f(),I=S.state,_=S.state.fetchMeta?S.state.fetchMeta.__previousQueryOptions:null;S.cancel({silent:!0}),S.setState({...I,fetchStatus:"idle",fetchMeta:null}),_&&S.fetch(_)};Q(()=>{x()!=="fetching"&&i(!1)});let T=()=>w()==="gray"?t`
202
+ `,"tsqd-query-status-tag-count");return y!==x.e&&B(m,x.e=y),b!==x.t&&B(g,x.t=b),x},{e:void 0,t:void 0}),f})()},oC=()=>{let e=Xe(),t=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,a=k(()=>e()==="dark"?At(t):Rt(t)),{colors:o}=M,r=(S,I)=>e()==="dark"?I:S,n=X().client,[s,i]=N(!1),[l,u]=N("view"),[d,c]=N(!1),p=k(()=>X().errorTypes||[]),f=Je(S=>S().getAll().find(I=>I.queryHash===vt()),!1),m=Je(S=>S().getAll().find(I=>I.queryHash===vt()),!1),g=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.state,!1),h=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.state.data,!1),x=Je(S=>{let I=S().getAll().find(H=>H.queryHash===vt());return I?mo(I):"inactive"}),y=Je(S=>{let I=S().getAll().find(H=>H.queryHash===vt());return I?I.state.status:"pending"}),b=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.getObserversCount()??0),w=k(()=>ld(x())),L=()=>{f()?.fetch()?.catch(()=>{})},D=S=>{let I=S?.initializer(f())??new Error("Unknown error from devtools"),H=f().options;f().setState({status:"error",error:I,fetchMeta:{...f().state.fetchMeta,__previousQueryOptions:H}})},E=()=>{let S=f(),I=S.state,H=S.state.fetchMeta?S.state.fetchMeta.__previousQueryOptions:null;S.cancel({silent:!0}),S.setState({...I,fetchStatus:"idle",fetchMeta:null}),H&&S.fetch(H)};Q(()=>{x()!=="fetching"&&i(!1)});let A=()=>w()==="gray"?t`
203
203
  background-color: ${r(o[w()][200],o[w()][700])};
204
204
  color: ${r(o[w()][700],o[w()][300])};
205
205
  border-color: ${r(o[w()][400],o[w()][600])};
@@ -207,37 +207,37 @@
207
207
  background-color: ${r(o[w()][100],o[w()][900])};
208
208
  color: ${r(o[w()][700],o[w()][300])};
209
209
  border-color: ${r(o[w()][400],o[w()][600])};
210
- `;return v(j,{get when(){return k(()=>!!f())()&&g()},get children(){var S=Qv(),I=S.firstChild,_=I.nextSibling,F=_.firstChild,re=F.firstChild,fe=re.firstChild,J=re.nextSibling,ne=F.nextSibling,me=ne.firstChild,xe=me.nextSibling,Ce=ne.nextSibling,Oe=Ce.firstChild,Re=Oe.nextSibling,qe=_.nextSibling,lt=qe.nextSibling,$=lt.firstChild,Be=$.firstChild,be=$.nextSibling,Ea=be.firstChild,ee=be.nextSibling,Ft=ee.firstChild,et=ee.nextSibling,So=et.firstChild,wt=et.nextSibling,Fa=wt.firstChild,no=Fa.nextSibling,ia=lt.nextSibling;ia.firstChild;var Wt=ia.nextSibling,ua=Wt.nextSibling;return P(fe,()=>Fr(f().queryKey,!0)),P(J,x),P(xe,C),P(Re,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),$.$$click=L,be.$$click=()=>n.invalidateQueries(f()),ee.$$click=()=>n.resetQueries(f()),et.$$click=()=>{n.removeQueries(f()),cs(null)},wt.$$click=()=>{if(f()?.state.data===void 0)i(!0),D();else{let z=f();if(!z)return;let Ie=z.options;z.fetch({...Ie,queryFn:()=>new Promise(()=>{}),gcTime:-1}),z.setState({data:void 0,status:"pending",fetchMeta:{...z.state.fetchMeta,__previousQueryOptions:Ie}})}},P(wt,()=>y()==="pending"?"Restore":"Trigger",no),P(lt,v(j,{get when(){return p().length===0||y()==="error"},get children(){var z=Vv(),Ie=z.firstChild,it=Ie.nextSibling;return z.$$click=()=>{f().state.error?n.resetQueries(f()):E()},P(z,()=>y()==="error"?"Restore":"Trigger",it),W(Pe=>{var Se=H(t`
210
+ `;return v(j,{get when(){return k(()=>!!f())()&&g()},get children(){var S=Qv(),I=S.firstChild,H=I.nextSibling,F=H.firstChild,re=F.firstChild,fe=re.firstChild,be=re.nextSibling,he=F.nextSibling,Y=he.firstChild,ne=Y.nextSibling,pe=he.nextSibling,Re=pe.firstChild,Ae=Re.nextSibling,$e=H.nextSibling,lt=$e.nextSibling,$=lt.firstChild,Oe=$.firstChild,ve=$.nextSibling,Ta=ve.firstChild,te=ve.nextSibling,Ot=te.firstChild,et=te.nextSibling,Io=et.firstChild,Lt=et.nextSibling,Da=Lt.firstChild,so=Da.nextSibling,sa=lt.nextSibling;sa.firstChild;var Wt=sa.nextSibling,la=Wt.nextSibling;return P(fe,()=>$r(f().queryKey,!0)),P(be,x),P(ne,b),P(Ae,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),$.$$click=L,ve.$$click=()=>n.invalidateQueries(f()),te.$$click=()=>n.resetQueries(f()),et.$$click=()=>{n.removeQueries(f()),ms(null)},Lt.$$click=()=>{if(f()?.state.data===void 0)i(!0),E();else{let z=f();if(!z)return;let Ie=z.options;z.fetch({...Ie,queryFn:()=>new Promise(()=>{}),gcTime:-1}),z.setState({data:void 0,status:"pending",fetchMeta:{...z.state.fetchMeta,__previousQueryOptions:Ie}})}},P(Lt,()=>y()==="pending"?"Restore":"Trigger",so),P(lt,v(j,{get when(){return p().length===0||y()==="error"},get children(){var z=Vv(),Ie=z.firstChild,it=Ie.nextSibling;return z.$$click=()=>{f().state.error?n.resetQueries(f()):D()},P(z,()=>y()==="error"?"Restore":"Trigger",it),W(Pe=>{var Se=U(t`
211
211
  color: ${r(o.red[500],o.red[400])};
212
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),Ae=y()==="pending",We=t`
212
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),Te=y()==="pending",We=t`
213
213
  background-color: ${r(o.red[500],o.red[400])};
214
- `;return Se!==Pe.e&&B(z,Pe.e=Se),Ae!==Pe.t&&(z.disabled=Pe.t=Ae),We!==Pe.a&&B(Ie,Pe.a=We),Pe},{e:void 0,t:void 0,a:void 0}),z}}),null),P(lt,v(j,{get when(){return!(p().length===0||y()==="error")},get children(){var z=Gv(),Ie=z.firstChild,it=Ie.nextSibling,Pe=it.nextSibling;return Pe.firstChild,Pe.addEventListener("change",Se=>{let Ae=p().find(We=>We.name===Se.currentTarget.value);E(Ae)}),P(Pe,v($u,{get each(){return p()},children:Se=>(()=>{var Ae=jv();return P(Ae,()=>Se.name),W(()=>Ae.value=Se.name),Ae})()}),null),P(z,v(Ur,{}),null),W(Se=>{var Ae=H(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),We=t`
214
+ `;return Se!==Pe.e&&B(z,Pe.e=Se),Te!==Pe.t&&(z.disabled=Pe.t=Te),We!==Pe.a&&B(Ie,Pe.a=We),Pe},{e:void 0,t:void 0,a:void 0}),z}}),null),P(lt,v(j,{get when(){return!(p().length===0||y()==="error")},get children(){var z=Gv(),Ie=z.firstChild,it=Ie.nextSibling,Pe=it.nextSibling;return Pe.firstChild,Pe.addEventListener("change",Se=>{let Te=p().find(We=>We.name===Se.currentTarget.value);D(Te)}),P(Pe,v(Bu,{get each(){return p()},children:Se=>(()=>{var Te=jv();return P(Te,()=>Se.name),W(()=>Te.value=Se.name),Te})()}),null),P(z,v(Vr,{}),null),W(Se=>{var Te=U(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),We=t`
215
215
  background-color: ${M.colors.red[400]};
216
- `,Le=y()==="pending";return Ae!==Se.e&&B(z,Se.e=Ae),We!==Se.t&&B(Ie,Se.t=We),Le!==Se.a&&(Pe.disabled=Se.a=Le),Se},{e:void 0,t:void 0,a:void 0}),z}}),null),P(ia,()=>l()==="view"?"Explorer":"Editor",null),P(S,v(j,{get when(){return l()==="view"},get children(){var z=Kv();return P(z,v(_a,{label:"Data",defaultExpanded:["Data"],get value(){return h()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return f()}})),W(Ie=>(Ie=M.size[2])!=null?z.style.setProperty("padding",Ie):z.style.removeProperty("padding")),z}}),Wt),P(S,v(j,{get when(){return l()==="edit"},get children(){var z=Wv(),Ie=z.firstChild,it=Ie.nextSibling,Pe=it.firstChild,Se=Pe.nextSibling,Ae=Se.firstChild,We=Ae.nextSibling;return z.addEventListener("submit",Le=>{Le.preventDefault();let ca=new FormData(Le.currentTarget).get("data");try{let Ot=JSON.parse(ca);f().setState({...f().state,data:Ot}),u("view")}catch{c(!0)}}),Ie.addEventListener("focus",()=>c(!1)),P(Pe,()=>d()?"Invalid Value":""),Ae.$$click=()=>u("view"),W(Le=>{var da=H(a().devtoolsEditForm,"tsqd-query-details-data-editor"),ca=a().devtoolsEditTextarea,Ot=d(),so=a().devtoolsEditFormActions,fa=a().devtoolsEditFormError,lo=a().devtoolsEditFormActionContainer,pa=H(a().devtoolsEditFormAction,t`
216
+ `,we=y()==="pending";return Te!==Se.e&&B(z,Se.e=Te),We!==Se.t&&B(Ie,Se.t=We),we!==Se.a&&(Pe.disabled=Se.a=we),Se},{e:void 0,t:void 0,a:void 0}),z}}),null),P(sa,()=>l()==="view"?"Explorer":"Editor",null),P(S,v(j,{get when(){return l()==="view"},get children(){var z=Kv();return P(z,v(Va,{label:"Data",defaultExpanded:["Data"],get value(){return h()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return f()}})),W(Ie=>(Ie=M.size[2])!=null?z.style.setProperty("padding",Ie):z.style.removeProperty("padding")),z}}),Wt),P(S,v(j,{get when(){return l()==="edit"},get children(){var z=Wv(),Ie=z.firstChild,it=Ie.nextSibling,Pe=it.firstChild,Se=Pe.nextSibling,Te=Se.firstChild,We=Te.nextSibling;return z.addEventListener("submit",we=>{we.preventDefault();let ua=new FormData(we.currentTarget).get("data");try{let Bt=JSON.parse(ua);f().setState({...f().state,data:Bt}),u("view")}catch{c(!0)}}),Ie.addEventListener("focus",()=>c(!1)),P(Pe,()=>d()?"Invalid Value":""),Te.$$click=()=>u("view"),W(we=>{var ia=U(a().devtoolsEditForm,"tsqd-query-details-data-editor"),ua=a().devtoolsEditTextarea,Bt=d(),lo=a().devtoolsEditFormActions,da=a().devtoolsEditFormError,io=a().devtoolsEditFormActionContainer,ca=U(a().devtoolsEditFormAction,t`
217
217
  color: ${r(o.gray[600],o.gray[300])};
218
- `),Oa=H(a().devtoolsEditFormAction,t`
218
+ `),Ea=U(a().devtoolsEditFormAction,t`
219
219
  color: ${r(o.blue[600],o.blue[400])};
220
- `);return da!==Le.e&&B(z,Le.e=da),ca!==Le.t&&B(Ie,Le.t=ca),Ot!==Le.a&&O(Ie,"data-error",Le.a=Ot),so!==Le.o&&B(it,Le.o=so),fa!==Le.i&&B(Pe,Le.i=fa),lo!==Le.n&&B(Se,Le.n=lo),pa!==Le.s&&B(Ae,Le.s=pa),Oa!==Le.h&&B(We,Le.h=Oa),Le},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),W(()=>Ie.value=JSON.stringify(h(),null,2)),z}}),Wt),P(ua,v(_a,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return m()}})),W(z=>{var Ie=H(a().detailsContainer,"tsqd-query-details-container"),it=H(a().detailsHeader,"tsqd-query-details-header"),Pe=H(a().detailsBody,"tsqd-query-details-summary-container"),Se=H(a().queryDetailsStatus,T()),Ae=H(a().detailsHeader,"tsqd-query-details-header"),We=H(a().actionsBody,"tsqd-query-details-actions-container"),Le=H(t`
220
+ `);return ia!==we.e&&B(z,we.e=ia),ua!==we.t&&B(Ie,we.t=ua),Bt!==we.a&&O(Ie,"data-error",we.a=Bt),lo!==we.o&&B(it,we.o=lo),da!==we.i&&B(Pe,we.i=da),io!==we.n&&B(Se,we.n=io),ca!==we.s&&B(Te,we.s=ca),Ea!==we.h&&B(We,we.h=Ea),we},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),W(()=>Ie.value=JSON.stringify(h(),null,2)),z}}),Wt),P(la,v(Va,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return m()}})),W(z=>{var Ie=U(a().detailsContainer,"tsqd-query-details-container"),it=U(a().detailsHeader,"tsqd-query-details-header"),Pe=U(a().detailsBody,"tsqd-query-details-summary-container"),Se=U(a().queryDetailsStatus,A()),Te=U(a().detailsHeader,"tsqd-query-details-header"),We=U(a().actionsBody,"tsqd-query-details-actions-container"),we=U(t`
221
221
  color: ${r(o.blue[600],o.blue[400])};
222
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),da=x()==="fetching",ca=t`
222
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),ia=x()==="fetching",ua=t`
223
223
  background-color: ${r(o.blue[600],o.blue[400])};
224
- `,Ot=H(t`
224
+ `,Bt=U(t`
225
225
  color: ${r(o.yellow[600],o.yellow[400])};
226
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),so=y()==="pending",fa=t`
226
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),lo=y()==="pending",da=t`
227
227
  background-color: ${r(o.yellow[600],o.yellow[400])};
228
- `,lo=H(t`
228
+ `,io=U(t`
229
229
  color: ${r(o.gray[600],o.gray[300])};
230
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),pa=y()==="pending",Oa=t`
230
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),ca=y()==="pending",Ea=t`
231
231
  background-color: ${r(o.gray[600],o.gray[400])};
232
- `,xn=H(t`
232
+ `,Cn=U(t`
233
233
  color: ${r(o.pink[500],o.pink[400])};
234
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Zo=x()==="fetching",yn=t`
234
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Jo=x()==="fetching",bn=t`
235
235
  background-color: ${r(o.pink[500],o.pink[400])};
236
- `,Io=H(t`
236
+ `,ko=U(t`
237
237
  color: ${r(o.cyan[500],o.cyan[400])};
238
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),vn=s(),Jo=t`
238
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),wn=s(),Yo=t`
239
239
  background-color: ${r(o.cyan[500],o.cyan[400])};
240
- `,Yo=H(a().detailsHeader,"tsqd-query-details-header"),er=H(a().detailsHeader,"tsqd-query-details-header"),ko=M.size[2];return Ie!==z.e&&B(S,z.e=Ie),it!==z.t&&B(I,z.t=it),Pe!==z.a&&B(_,z.a=Pe),Se!==z.o&&B(J,z.o=Se),Ae!==z.i&&B(qe,z.i=Ae),We!==z.n&&B(lt,z.n=We),Le!==z.s&&B($,z.s=Le),da!==z.h&&($.disabled=z.h=da),ca!==z.r&&B(Be,z.r=ca),Ot!==z.d&&B(be,z.d=Ot),so!==z.l&&(be.disabled=z.l=so),fa!==z.u&&B(Ea,z.u=fa),lo!==z.c&&B(ee,z.c=lo),pa!==z.w&&(ee.disabled=z.w=pa),Oa!==z.m&&B(Ft,z.m=Oa),xn!==z.f&&B(et,z.f=xn),Zo!==z.y&&(et.disabled=z.y=Zo),yn!==z.g&&B(So,z.g=yn),Io!==z.p&&B(wt,z.p=Io),vn!==z.b&&(wt.disabled=z.b=vn),Jo!==z.T&&B(Fa,z.T=Jo),Yo!==z.A&&B(ia,z.A=Yo),er!==z.O&&B(Wt,z.O=er),ko!==z.I&&((z.I=ko)!=null?ua.style.setProperty("padding",ko):ua.style.removeProperty("padding")),z},{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}),S}})},rC=()=>{let e=Xe(),t=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,a=k(()=>e()==="dark"?Rt(t):Mt(t)),{colors:o}=M,r=(d,c)=>e()==="dark"?c:d,n=qt(d=>{let p=d().getAll().find(f=>f.mutationId===Va());return p?p.state.isPaused:!1}),s=qt(d=>{let p=d().getAll().find(f=>f.mutationId===Va());return p?p.state.status:"idle"}),i=k(()=>mo({isPaused:n(),status:s()})),l=qt(d=>d().getAll().find(c=>c.mutationId===Va()),!1),u=()=>i()==="gray"?t`
240
+ `,er=U(a().detailsHeader,"tsqd-query-details-header"),tr=U(a().detailsHeader,"tsqd-query-details-header"),Po=M.size[2];return Ie!==z.e&&B(S,z.e=Ie),it!==z.t&&B(I,z.t=it),Pe!==z.a&&B(H,z.a=Pe),Se!==z.o&&B(be,z.o=Se),Te!==z.i&&B($e,z.i=Te),We!==z.n&&B(lt,z.n=We),we!==z.s&&B($,z.s=we),ia!==z.h&&($.disabled=z.h=ia),ua!==z.r&&B(Oe,z.r=ua),Bt!==z.d&&B(ve,z.d=Bt),lo!==z.l&&(ve.disabled=z.l=lo),da!==z.u&&B(Ta,z.u=da),io!==z.c&&B(te,z.c=io),ca!==z.w&&(te.disabled=z.w=ca),Ea!==z.m&&B(Ot,z.m=Ea),Cn!==z.f&&B(et,z.f=Cn),Jo!==z.y&&(et.disabled=z.y=Jo),bn!==z.g&&B(Io,z.g=bn),ko!==z.p&&B(Lt,z.p=ko),wn!==z.b&&(Lt.disabled=z.b=wn),Yo!==z.T&&B(Da,z.T=Yo),er!==z.A&&B(sa,z.A=er),tr!==z.O&&B(Wt,z.O=tr),Po!==z.I&&((z.I=Po)!=null?la.style.setProperty("padding",Po):la.style.removeProperty("padding")),z},{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}),S}})},rC=()=>{let e=Xe(),t=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,a=k(()=>e()==="dark"?At(t):Rt(t)),{colors:o}=M,r=(d,c)=>e()==="dark"?c:d,n=qt(d=>{let p=d().getAll().find(f=>f.mutationId===Ga());return p?p.state.isPaused:!1}),s=qt(d=>{let p=d().getAll().find(f=>f.mutationId===Ga());return p?p.state.status:"idle"}),i=k(()=>go({isPaused:n(),status:s()})),l=qt(d=>d().getAll().find(c=>c.mutationId===Ga()),!1),u=()=>i()==="gray"?t`
241
241
  background-color: ${r(o[i()][200],o[i()][700])};
242
242
  color: ${r(o[i()][700],o[i()][300])};
243
243
  border-color: ${r(o[i()][400],o[i()][600])};
@@ -245,7 +245,7 @@
245
245
  background-color: ${r(o[i()][100],o[i()][900])};
246
246
  color: ${r(o[i()][700],o[i()][300])};
247
247
  border-color: ${r(o[i()][400],o[i()][600])};
248
- `;return v(j,{get when(){return l()},get children(){var d=Xv(),c=d.firstChild,p=c.nextSibling,f=p.firstChild,m=f.firstChild,g=m.firstChild,h=m.nextSibling,x=f.nextSibling,y=x.firstChild,C=y.nextSibling,w=p.nextSibling,L=w.nextSibling,E=L.nextSibling,D=E.nextSibling,T=D.nextSibling,S=T.nextSibling,I=S.nextSibling,_=I.nextSibling;return P(g,v(j,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return Fr(l().options.mutationKey,!0)}})),P(h,v(j,{get when(){return i()==="purple"},children:"pending"}),null),P(h,v(j,{get when(){return i()!=="purple"},get children(){return s()}}),null),P(C,()=>new Date(l().state.submittedAt).toLocaleTimeString()),P(L,v(_a,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),P(D,v(_a,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),P(S,v(_a,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),P(_,v(_a,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),W(F=>{var re=H(a().detailsContainer,"tsqd-query-details-container"),fe=H(a().detailsHeader,"tsqd-query-details-header"),J=H(a().detailsBody,"tsqd-query-details-summary-container"),ne=H(a().queryDetailsStatus,u()),me=H(a().detailsHeader,"tsqd-query-details-header"),xe=M.size[2],Ce=H(a().detailsHeader,"tsqd-query-details-header"),Oe=M.size[2],Re=H(a().detailsHeader,"tsqd-query-details-header"),qe=M.size[2],lt=H(a().detailsHeader,"tsqd-query-details-header"),$=M.size[2];return re!==F.e&&B(d,F.e=re),fe!==F.t&&B(c,F.t=fe),J!==F.a&&B(p,F.a=J),ne!==F.o&&B(h,F.o=ne),me!==F.i&&B(w,F.i=me),xe!==F.n&&((F.n=xe)!=null?L.style.setProperty("padding",xe):L.style.removeProperty("padding")),Ce!==F.s&&B(E,F.s=Ce),Oe!==F.h&&((F.h=Oe)!=null?D.style.setProperty("padding",Oe):D.style.removeProperty("padding")),Re!==F.r&&B(T,F.r=Re),qe!==F.d&&((F.d=qe)!=null?S.style.setProperty("padding",qe):S.style.removeProperty("padding")),lt!==F.l&&B(I,F.l=lt),$!==F.u&&((F.u=$)!=null?_.style.setProperty("padding",$):_.style.removeProperty("padding")),F},{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}),d}})},Jn=new Map,nC=()=>{let e=k(()=>X().client.getQueryCache()),t=e().subscribe(a=>{Pu(()=>{for(let[o,r]of Jn.entries())r.shouldUpdate(a)&&r.setter(o(e))})});return Z(()=>{Jn.clear(),t()}),t},Je=(e,t=!0,a=()=>!0)=>{let o=k(()=>X().client.getQueryCache()),[r,n]=N(e(o),t?void 0:{equals:!1});return Q(()=>{n(e(o))}),Jn.set(e,{setter:n,shouldUpdate:a}),Z(()=>{Jn.delete(e)}),r},Yn=new Map,sC=()=>{let e=k(()=>X().client.getMutationCache()),t=e().subscribe(()=>{for(let[a,o]of Yn.entries())queueMicrotask(()=>{o(a(e))})});return Z(()=>{Yn.clear(),t()}),t},qt=(e,t=!0)=>{let a=k(()=>X().client.getMutationCache()),[o,r]=N(e(a),t?void 0:{equals:!1});return Q(()=>{r(e(a))}),Yn.set(e,r),Z(()=>{Yn.delete(e)}),o},Nf=(e,t)=>{let{colors:a,font:o,size:r,alpha:n,shadow:s,border:i}=M,l=(u,d)=>e==="light"?u:d;return{devtoolsBtn:t`
248
+ `;return v(j,{get when(){return l()},get children(){var d=Xv(),c=d.firstChild,p=c.nextSibling,f=p.firstChild,m=f.firstChild,g=m.firstChild,h=m.nextSibling,x=f.nextSibling,y=x.firstChild,b=y.nextSibling,w=p.nextSibling,L=w.nextSibling,D=L.nextSibling,E=D.nextSibling,A=E.nextSibling,S=A.nextSibling,I=S.nextSibling,H=I.nextSibling;return P(g,v(j,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return $r(l().options.mutationKey,!0)}})),P(h,v(j,{get when(){return i()==="purple"},children:"pending"}),null),P(h,v(j,{get when(){return i()!=="purple"},get children(){return s()}}),null),P(b,()=>new Date(l().state.submittedAt).toLocaleTimeString()),P(L,v(Va,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),P(E,v(Va,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),P(S,v(Va,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),P(H,v(Va,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),W(F=>{var re=U(a().detailsContainer,"tsqd-query-details-container"),fe=U(a().detailsHeader,"tsqd-query-details-header"),be=U(a().detailsBody,"tsqd-query-details-summary-container"),he=U(a().queryDetailsStatus,u()),Y=U(a().detailsHeader,"tsqd-query-details-header"),ne=M.size[2],pe=U(a().detailsHeader,"tsqd-query-details-header"),Re=M.size[2],Ae=U(a().detailsHeader,"tsqd-query-details-header"),$e=M.size[2],lt=U(a().detailsHeader,"tsqd-query-details-header"),$=M.size[2];return re!==F.e&&B(d,F.e=re),fe!==F.t&&B(c,F.t=fe),be!==F.a&&B(p,F.a=be),he!==F.o&&B(h,F.o=he),Y!==F.i&&B(w,F.i=Y),ne!==F.n&&((F.n=ne)!=null?L.style.setProperty("padding",ne):L.style.removeProperty("padding")),pe!==F.s&&B(D,F.s=pe),Re!==F.h&&((F.h=Re)!=null?E.style.setProperty("padding",Re):E.style.removeProperty("padding")),Ae!==F.r&&B(A,F.r=Ae),$e!==F.d&&((F.d=$e)!=null?S.style.setProperty("padding",$e):S.style.removeProperty("padding")),lt!==F.l&&B(I,F.l=lt),$!==F.u&&((F.u=$)!=null?H.style.setProperty("padding",$):H.style.removeProperty("padding")),F},{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}),d}})},ts=new Map,nC=()=>{let e=k(()=>X().client.getQueryCache()),t=e().subscribe(a=>{ku(()=>{for(let[o,r]of ts.entries())r.shouldUpdate(a)&&r.setter(o(e))})});return Z(()=>{ts.clear(),t()}),t},Je=(e,t=!0,a=()=>!0)=>{let o=k(()=>X().client.getQueryCache()),[r,n]=N(e(o),t?void 0:{equals:!1});return Q(()=>{n(e(o))}),ts.set(e,{setter:n,shouldUpdate:a}),Z(()=>{ts.delete(e)}),r},as=new Map,sC=()=>{let e=k(()=>X().client.getMutationCache()),t=e().subscribe(()=>{for(let[a,o]of as.entries())queueMicrotask(()=>{o(a(e))})});return Z(()=>{as.clear(),t()}),t},qt=(e,t=!0)=>{let a=k(()=>X().client.getMutationCache()),[o,r]=N(e(a),t?void 0:{equals:!1});return Q(()=>{r(e(a))}),as.set(e,r),Z(()=>{as.delete(e)}),o},qf=(e,t)=>{let{colors:a,font:o,size:r,alpha:n,shadow:s,border:i}=M,l=(u,d)=>e==="light"?u:d;return{devtoolsBtn:t`
249
249
  z-index: 100000;
250
250
  position: fixed;
251
251
  padding: 4px;
@@ -1197,9 +1197,9 @@
1197
1197
  opacity: 0.6;
1198
1198
  cursor: not-allowed;
1199
1199
  }
1200
- `}},Mt=e=>Nf("light",e),Rt=e=>Nf("dark",e);Er(["click","mousedown","input"]);});var zf={};wn(zf,{default:()=>iC});var lC,iC,Uf=tr(()=>{"use strict";b();Gl();Or();lC=e=>{let[t,a]=es({prefix:"TanstackQueryDevtools"}),o=_n(),r=k(()=>{let n=t.theme_preference||ts;return n!=="system"?n:o()});return v(Kr.Provider,{value:e,get children(){return v(as,{localStore:t,setLocalStore:a,get children(){return v(Wr.Provider,{value:r,get children(){return v($f,{localStore:t,setLocalStore:a})}})}})}})},iC=lC});var Hf={};wn(Hf,{default:()=>dC});var uC,dC,_f=tr(()=>{"use strict";b();Gl();Or();uC=e=>{let[t,a]=es({prefix:"TanstackQueryDevtools"}),o=_n(),r=k(()=>{let n=t.theme_preference||ts;return n!=="system"?n:o()});return v(Kr.Provider,{value:e,get children(){return v(as,{disabled:!0,localStore:t,setLocalStore:a,get children(){return v(Wr.Provider,{value:r,get children(){return v(qf,{get children(){return v(fs,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},dC=uC});var ob={};wn(ob,{Studio:()=>Hm});module.exports=jm(ob);b();b();b();var Yi=require("clsx");b();var Ns="-",Xm=e=>{let t=Jm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(Ns);return i[0]===""&&i.length!==1&&i.shift(),Wi(i,t)||Zm(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},Wi=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Wi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(Ns);return t.validators.find(({validator:s})=>s(n))?.classGroupId},_i=/^\[(.+)\]$/,Zm=e=>{if(_i.test(e)){let t=_i.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Jm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return eg(Object.entries(e.classGroups),a).forEach(([n,s])=>{qs(s,o,n,t)}),o},qs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:Vi(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Ym(r)){qs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{qs(s,Vi(t,n),a,o)})})},Vi=(e,t)=>{let a=e;return t.split(Ns).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Ym=e=>e.isThemeGetter,eg=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,r]}):e,tg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}},Qi="!",ag=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===r&&(o||i.slice(h,h+n)===t)){l.push(i.slice(d,h)),d=h+n;continue}if(x==="/"){c=h;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(d),f=p.startsWith(Qi),m=f?p.substring(1):p,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},og=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},rg=e=>({cache:tg(e.cacheSize),parseClassName:ag(e),...Xm(e)}),ng=/\s+/,sg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(ng),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,g=o(m?p.substring(0,f):p);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(p),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=og(d).join(":"),x=c?h+Qi:h,y=x+g;if(n.includes(y))continue;n.push(y);let C=r(g,m);for(let w=0;w<C.length;++w){let L=C[w];n.push(x+L)}i=u+(i.length>0?" "+i:i)}return i};function lg(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=ji(t))&&(o&&(o+=" "),o+=a);return o}var ji=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=ji(e[o]))&&(a&&(a+=" "),a+=t);return a};function Gi(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=rg(u),o=a.cache.get,r=a.cache.set,n=i,i(l)}function i(l){let u=o(l);if(u)return u;let d=sg(l,a);return r(l,d),d}return function(){return n(lg.apply(null,arguments))}}var Me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Xi=/^\[(?:([a-z-]+):)?(.+)\]$/i,ig=/^\d+\/\d+$/,ug=new Set(["px","full","screen"]),dg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>Po(e)||ug.has(e)||ig.test(e),Ba=e=>Mo(e,"length",wg),Po=e=>!!e&&!Number.isNaN(Number(e)),$s=e=>Mo(e,"number",Po),ar=e=>!!e&&Number.isInteger(Number(e)),gg=e=>e.endsWith("%")&&Po(e.slice(0,-1)),oe=e=>Xi.test(e),$a=e=>dg.test(e),hg=new Set(["length","size","percentage"]),xg=e=>Mo(e,hg,Zi),yg=e=>Mo(e,"position",Zi),vg=new Set(["image","url"]),Cg=e=>Mo(e,vg,Sg),bg=e=>Mo(e,"",Lg),or=()=>!0,Mo=(e,t,a)=>{let o=Xi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},wg=e=>cg.test(e)&&!fg.test(e),Zi=()=>!1,Lg=e=>pg.test(e),Sg=e=>mg.test(e);var Ki=()=>{let e=Me("colors"),t=Me("spacing"),a=Me("blur"),o=Me("brightness"),r=Me("borderColor"),n=Me("borderRadius"),s=Me("borderSpacing"),i=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),c=Me("invert"),p=Me("gap"),f=Me("gradientColorStops"),m=Me("gradientColorStopPositions"),g=Me("inset"),h=Me("margin"),x=Me("opacity"),y=Me("padding"),C=Me("saturate"),w=Me("scale"),L=Me("sepia"),E=Me("skew"),D=Me("space"),T=Me("translate"),S=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",oe,t],F=()=>[oe,t],re=()=>["",ga,Ba],fe=()=>["auto",Po,oe],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",oe],Oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Re=()=>[Po,oe];return{cacheSize:500,separator:":",theme:{colors:[or],spacing:[ga,Ba],blur:["none","",$a,oe],brightness:Re(),borderColor:[e],borderRadius:["none","","full",$a,oe],borderSpacing:F(),borderWidth:re(),contrast:Re(),grayscale:Ce(),hueRotate:Re(),invert:Ce(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[gg,Ba],inset:_(),margin:_(),opacity:Re(),padding:F(),saturate:Re(),scale:Re(),sepia:Ce(),skew:Re(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[$a]}],"break-after":[{"break-after":Oe()}],"break-before":[{"break-before":Oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),oe]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ar,oe]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",ar,oe]}],"grid-cols":[{"grid-cols":[or]}],"col-start-end":[{col:["auto",{span:["full",ar,oe]},oe]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[or]}],"row-start-end":[{row:["auto",{span:[ar,oe]},oe]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[$a]},$a]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$a,Ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$s]}],"font-family":[{font:[or]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",Po,$s]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,Ba]}],"underline-offset":[{"underline-offset":["auto",ga,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),yg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:ne()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[ga,oe]}],"outline-w":[{outline:[ga,Ba]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ga,Ba]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$a,bg]}],"shadow-color":[{shadow:[or]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$a,oe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[C]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:Re()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:Re()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ar,oe]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,Ba,$s]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ig=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{rr(e,"cacheSize",t),rr(e,"prefix",a),rr(e,"separator",o),rr(e,"experimentalParseClassName",r);for(let i in s)kg(e[i],s[i]);for(let i in n)Pg(e[i],n[i]);return e},rr=(e,t,a)=>{a!==void 0&&(e[t]=a)},kg=(e,t)=>{if(t)for(let a in t)rr(e,a,t[a])},Pg=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},Ji=(e,...t)=>typeof e=="function"?Gi(Ki,e,...t):Gi(()=>Ig(Ki(),e),...t);var Mg=Ji({prefix:"ps-"});function U(...e){return Mg((0,Yi.clsx)(e))}b();var Dm=require("@tanstack/react-query");b();b();var Sn=require("react");b();var eu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ln=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();b();var nr=require("react");b();var tu={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 au=(0,nr.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,nr.createElement)("svg",{ref:l,...tu,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Ln("lucide",r),...i},[...s.map(([u,d])=>(0,nr.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var ae=(e,t)=>{let a=(0,Sn.forwardRef)(({className:o,...r},n)=>(0,Sn.createElement)(au,{ref:n,iconNode:t,className:Ln(`lucide-${eu(e)}`,o),...r}));return a.displayName=`${e}`,a};b();var qa=ae("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"}]]);b();var sr=ae("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"}]]);b();var Bt=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var Qt=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var lr=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var $t=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var ir=ae("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);b();var ur=ae("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var dr=ae("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var io=ae("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var cr=ae("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"}]]);b();var fr=ae("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);b();var pr=ae("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);b();var Ro=ae("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);b();var mr=ae("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);b();var gr=ae("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);b();var hr=ae("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);b();var xr=ae("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var yr=ae("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var vr=ae("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"}]]);b();var Cr=ae("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"}]]);b();var Na=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var hn=require("react"),Em=require("sonner");b();var ou=require("@radix-ui/react-slot"),ru=require("class-variance-authority"),nu=ge(require("react"),1);var su=require("react/jsx-runtime"),Rg=(0,ru.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",xs:"ps-h-6 ps-rounded-md ps-px-2 ps-text-xs",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"}}),Fe=nu.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,su.jsx)(o?ou.Slot:"button",{className:U(Rg({variant:t,size:a,className:e})),ref:n,...r}));Fe.displayName="Button";b();var br=ge(require("@radix-ui/react-checkbox"),1);var lu=ge(require("react"),1);var In=require("react/jsx-runtime"),wr=lu.forwardRef(({className:e,...t},a)=>(0,In.jsx)(br.Root,{ref:a,className:U("ps-peer ps-h-4 ps-w-4 ps-shrink-0 ps-rounded-sm ps-border ps-border-primary ps-shadow focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=checked]:ps-text-primary-foreground",e),...t,children:(0,In.jsx)(br.Indicator,{className:U("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,In.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}));wr.displayName=br.Root.displayName;b();var jt=ge(require("@radix-ui/react-popover"),1),iu=ge(require("react"),1);var zs=require("react/jsx-runtime"),uu=jt.Root,du=jt.Trigger;var Us=iu.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,zs.jsx)(jt.Portal,{children:(0,zs.jsx)(jt.Content,{ref:r,align:t,sideOffset:a,className:U("ps-z-50 ps-w-72 ps-rounded-md ps-border ps-bg-popover ps-p-4 ps-text-popover-foreground ps-shadow-md ps-outline-none 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-popover-content-transform-origin]",e),...o})}));Us.displayName=jt.Content.displayName;b();var xs=require("@tanstack/react-query");b();var gs=require("@tanstack/react-query");b();b();var Ht=ge(require("react"),1),ps=require("@tanstack/react-query");b();Or();var Vf=class{#t;#u;#d;#c;#e=!1;#f;#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:d}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(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=tl(()=>{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=el(()=>Promise.resolve().then(()=>(Uf(),zf))),this.#l=l),ll(this.#f,this.#a),v(l,te({get queryFlavor(){return a.#d},get version(){return a.#c},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}},Gf=class{#t;#u;#d;#c;#e=!1;#f;#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:d,onClose:c}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l),this.#l=N(c)}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=tl(()=>{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=el(()=>Promise.resolve().then(()=>(_f(),Hf))),this.#i=u),ll(this.#f,this.#a),v(u,te({get queryFlavor(){return a.#d},get version(){return a.#c},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 Kf=require("react/jsx-runtime");function Wf(e){let t=(0,ps.useQueryClient)(e.client),a=Ht.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ht.useState(new Vf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ps.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Ht.useEffect(()=>{u.setClient(t)},[t,u]),Ht.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ht.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ht.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ht.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ht.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Kf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var La=ge(require("react"),1),ms=require("@tanstack/react-query");var Qf=require("react/jsx-runtime");function jf(e){let t=(0,ms.useQueryClient)(e.client),a=La.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=La.useState(new Gf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ms.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return La.useEffect(()=>{s.setClient(t)},[t,s]),La.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),La.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),La.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,Qf.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var Xf=process.env.NODE_ENV!=="development"?function(){return null}:Wf,VL=process.env.NODE_ENV!=="development"?function(){return null}:jf;var ep=require("nuqs/adapters/react"),Sa=require("react"),tp=require("sonner");b();var Zf=require("sonner"),Yf=require("react/jsx-runtime"),Jf=({...e})=>(0,Yf.jsx)(Zf.Toaster,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var Co=require("react/jsx-runtime"),pC=new gs.QueryClient,ap=(0,Sa.createContext)(void 0);function op(e){let{children:t,...a}=e,[o,r]=(0,Sa.useState)(null),[n,s]=(0,Sa.useState)(!1),i=e.onError;i??=d=>tp.toast.error(d.message);let l=(0,Sa.useMemo)(()=>e.onTelemetryEvent??(()=>{}),[e.onTelemetryEvent]),u=()=>s(d=>!d);return(0,Co.jsxs)(gs.QueryClientProvider,{client:pC,children:[(0,Co.jsx)(Xf,{}),(0,Co.jsx)(Jf,{}),(0,Co.jsx)(ep.NuqsAdapter,{children:(0,Co.jsx)(ap.Provider,{value:{...a,activeTable:o,isFullscreen:n,setActiveTable:r,onError:i,emitTelemetryEvent:l,toggleFullscreen:u},children:t})})]})}function Ze(){let e=(0,Sa.useContext)(ap);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}b();b();b();function bo(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]??null),a},{}))}function mC(e,t){let a={filter:bo(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function rp(e,t){return{...e,__ps_rowid:mC(e,t)}}function hs(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:rp(a,t)}:o!==void 0?{...e,rows:o.map(r=>rp(r,t))}:e}function np(){let{activeTable:e,adapter:t}=Ze(),a=(0,xs.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,xs.useMutation)({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(n){let[s,i]=await t.insert({rows:n,table:e},{});if(s)throw s;return hs(i,e)},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}b();var sp=require("@tanstack/react-query");function lp(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Ze();return(0,sp.useQuery)({enabled:!!r,gcTime:0,placeholderData(s,i){let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},async queryFn({signal:s}){let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return hs(l,r)},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}b();var ys=require("@tanstack/react-query");function ip(){let{activeTable:e,adapter:t,onError:a}=Ze(),o=(0,ys.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,ys.useMutation)({mutationFn:async n=>{let[s,i]=await t.update(n.details,n.options);if(s)throw s;return i},mutationKey:[...r,"update"],onError(n,s){let{changes:i,row:l}=s.details;a(n),Kl({getFinderFn(){let u={...l,...i},d=bo(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,p)=>({...c,[p]:l[p]}),{})}}})},onMutate(n){let{details:s}=n;Kl({getFinderFn(){let{row:i}=s,l=bo(i,e.columns);return u=>l.every(([d,c])=>u[d]===c)},queryClient:o,table:e,updaterFn:function(l){return{...l,...s.changes}}})},onSuccess(n,s){Kl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=bo(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(l){let{__ps_updated_at__:u}=l,{row:d}=n;return u!=null&&d.__ps_updated_at__<=u?l:{...l,...d}}})},retry:!1})}function Kl(e){let{getFinderFn:t,queryClient:a,table:o,updaterFn:r}=e,n;a.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},s=>{let{rows:i=[]}=s||{};if(i.length===0)return s;let l=i.findIndex(n??=t());if(l===-1)return s;let u=r(i[l]);return{...s,rows:[...i.slice(0,l),u,...i.slice(l+1)]}})}b();var up=require("@tanstack/react-query");function vs(){return(0,up.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}b();var dp=require("react");var Ye={};wn(Ye,{keyMap:()=>Wl,urlKeys:()=>gC,useQueryState:()=>Ko,useQueryStates:()=>en});b();var Cs=require("nuqs");ma(Ye,require("nuqs"));function Wl(e){return e}function gC(e){return e}var SS=Symbol("BRAND_SYMBOL");function Ko(e,t){return(0,Cs.useQueryState)(e,t)}function en(e,t){return(0,Cs.useQueryStates)(e,t)}var hC=25,xC={pageIndex:Ye.parseAsIndex.withDefault(0),pageSize:Ye.parseAsInteger.withDefault(hC)};function bs(){let[{pageIndex:e,pageSize:t},a]=en(xC),o=(0,dp.useCallback)(r=>{a(typeof r=="function"?n=>{let s=r(n);return{pageIndex:s.pageIndex,pageSize:s.pageSize}}:{pageIndex:r.pageIndex,pageSize:r.pageSize})},[a]);return{paginationState:{pageIndex:e,pageSize:t},setPaginationState:o}}b();var Ls=require("react");b();var ws=require("@tanstack/react-query");function cp(){let{activeTable:e,adapter:t}=Ze(),a=(0,ws.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,ws.useMutation)({mutationKey:["schema",o,"table",r,"delete"],async mutationFn(n){let[s,i]=await t.delete({rows:n,table:e},{});if(s)throw s;return i},async onSuccess(){await a.invalidateQueries({exact:!1,queryKey:["schema",o,"table",r,"query"]})},retry:!1})}function fp(e){let{activeTable:t,onError:a}=Ze(),{paginationState:o}=bs(),[r,n]=(0,Ls.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=cp();(0,Ls.useEffect)(()=>n({}),[t,o.pageIndex]);function l(){let u=e?.rows.filter(d=>r[d.__ps_rowid]);i(u??[],{onSuccess(){n({})},onError:a})}return{deleteSelection:l,setRowSelectionState:n,rowSelectionState:r,isSelecting:s}}b();var Ss=require("react");function pp(){let[e,t]=Ko("sort",{defaultValue:""}),a=s=>{if(!s)return[];try{return s.split(",").map(i=>{let[l,u]=i.split(":");return!l||!u||!["asc","desc"].includes(u)?null:{column:l,direction:u}}).filter(Boolean)}catch(i){return console.error("Failed to parse sorting parameter:",i),[]}},[o,r]=(0,Ss.useState)(()=>a(e));return(0,Ss.useEffect)(()=>{let s=a(e);r(s)},[e]),{sortingState:o,setSortingState:s=>{let i=typeof s=="function"?s(o):s;r(i);let l=i.length>0?i.map(u=>`${u.column}:${u.direction}`).join(","):null;t(l)}}}b();var Ep=require("remeda");b();var yp=require("react");b();b();var Ia=ge(require("react"),1);var oa=require("react/jsx-runtime"),Ql=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,oa.jsx)("table",{ref:a,className:U("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Ql.displayName="Table";var jl=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("thead",{ref:a,className:U(e),...t}));jl.displayName="TableHeader";var Xl=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("tbody",{ref:a,className:U("[&_tr:last-child]:ps-border-0",e),...t}));Xl.displayName="TableBody";var yC=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("tfoot",{ref:a,className:U("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));yC.displayName="TableFooter";var wo=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("tr",{ref:a,className:U("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));wo.displayName="TableRow";var Zl=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("th",{ref:a,className:U("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));Zl.displayName="TableHead";var tn=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("td",{ref:a,className:U("ps-align-middle",e),...t}));tn.displayName="TableCell";var vC=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("caption",{ref:a,className:U("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));vC.displayName="TableCaption";b();var hp=require("react");b();var ue=ge(require("@radix-ui/react-context-menu"),1);var ka=ge(require("react"),1);var Ge=require("react/jsx-runtime"),mp=ue.Root,gp=ue.Trigger;var CC=ka.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ge.jsxs)(ue.SubTrigger,{ref:r,className:U("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,Ge.jsx)($t,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));CC.displayName=ue.SubTrigger.displayName;var bC=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.SubContent,{ref:a,className:U("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}));bC.displayName=ue.SubContent.displayName;var Jl=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Portal,{children:(0,Ge.jsx)(ue.Content,{ref:a,className:U("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})}));Jl.displayName=ue.Content.displayName;var Yl=ka.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Item,{ref:o,className:U("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}));Yl.displayName=ue.Item.displayName;var wC=ka.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ge.jsxs)(ue.CheckboxItem,{ref:r,className:U("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,Ge.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,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),t]}));wC.displayName=ue.CheckboxItem.displayName;var LC=ka.forwardRef(({className:e,children:t,...a},o)=>(0,Ge.jsxs)(ue.RadioItem,{ref:o,className:U("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,Ge.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,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(io,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));LC.displayName=ue.RadioItem.displayName;var SC=ka.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Label,{ref:o,className:U("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));SC.displayName=ue.Label.displayName;var IC=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Separator,{ref:a,className:U("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));IC.displayName=ue.Separator.displayName;var kC=({className:e,...t})=>(0,Ge.jsx)("span",{className:U("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});kC.displayName="ContextMenuShortcut";var Lo=require("react/jsx-runtime");function xp(e){let{children:t}=e;return(0,Lo.jsxs)(mp,{children:[(0,Lo.jsx)(gp,{className:"ps-block ps-w-full ps-px-[var(--studio-cell-spacing)] ps-leading-[var(--studio-cell-height)] ps-h-[var(--studio-cell-height)] ps-text-xs ps-font-mono ps-whitespace-nowrap ps-overflow-hidden ps-text-ellipsis",children:t}),(0,Lo.jsx)(Jl,{children:(0,Lo.jsxs)(Yl,{onClick:()=>{let a=ei(t);navigator.clipboard.writeText(a).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,Lo.jsx)(cr,{size:12}),"Copy"]})})]})}function ei(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,hp.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?ei(t.children):""}return Array.isArray(e)?e.map(ei).join(""):""}var ti=require("react/jsx-runtime");function _e(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,ti.jsx)(tn,{...n,className:U("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head","ps-cursor-pointer",a),ref:o,style:r,children:(0,ti.jsx)(xp,{children:t})})}var ai=require("react/jsx-runtime"),oi=(0,yp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ai.jsx)(_e,{...r,...a,ref:t,children:(0,ai.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});oi.displayName="BooleanCell";b();var vp=require("react");var Cp=require("react/jsx-runtime"),ri=(0,vp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Cp.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ri.displayName="DateCell";b();var bp=require("react");var wp=require("react/jsx-runtime"),an=(0,bp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,wp.jsx)(_e,{...o,...a,ref:t})});an.displayName="EmptyCell";b();var Lp=require("react");var Sp=require("react/jsx-runtime"),ni=(0,Lp.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,Sp.jsx)(_e,{...n,...a,ref:t,children:String(o)})});ni.displayName="EnumCell";b();var Ip=require("react");var kp=require("react/jsx-runtime"),Is=(0,Ip.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,kp.jsx)(_e,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});Is.displayName="JSONCell";b();var Pp=require("react");var si=require("react/jsx-runtime"),li=(0,Pp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,si.jsx)(_e,{...o,...a,ref:t,children:(0,si.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});li.displayName="NullCell";b();var Mp=require("react");var ii=require("react/jsx-runtime"),ui=(0,Mp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ii.jsx)(_e,{...r,...a,ref:t,children:(0,ii.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});ui.displayName="NumericCell";b();var Rp=require("react");var Ap=require("react/jsx-runtime"),ks=(0,Rp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Ap.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ks.displayName="RawCell";b();var Tp=require("react");var Dp=require("react/jsx-runtime"),di=(0,Tp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Dp.jsx)(_e,{...r,...a,ref:t,children:String(o)})});di.displayName="TimeCell";var At=require("react/jsx-runtime");function Ps({cell:e,column:t,props:a}){let o=e.getValue();if(o===void 0)return(0,At.jsx)(an,{});if(o===null)return(0,At.jsx)(li,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,At.jsx)(Is,{containerProps:a,value:o});if(r==="string")return(0,At.jsx)(ks,{containerProps:a,value:o});if(r==="enum")return(0,At.jsx)(ni,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,At.jsx)(oi,{containerProps:a,value:o});if(r==="datetime")return(0,At.jsx)(ri,{containerProps:a,value:o});if(r==="time")return(0,At.jsx)(di,{containerProps:a,value:o});if(r==="numeric")return(0,At.jsx)(ui,{containerProps:a,value:o});if(r==="raw")return(0,Ep.isObjectType)(o)?(0,At.jsx)(Is,{containerProps:a,value:o}):(0,At.jsx)(ks,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}b();var Fp=require("react");var ci=require("react/jsx-runtime"),fi=(0,Fp.forwardRef)((e,t)=>{let{row:a,readonly:o,...r}=e;return(0,ci.jsx)(_e,{ref:t,...r,children:(0,ci.jsx)(wr,{checked:a.getIsSelected(),disabled:!a.getCanSelect()||o,onCheckedChange:a.getToggleSelectedHandler()})})});fi.displayName="SelectRowCell";b();b();var Pa=ge(require("@radix-ui/react-popover"),1),nt=ge(require("react"),1);var Wo=require("react/jsx-runtime"),Op=nt.createContext(null),pi=({children:e,...t})=>{let[a,o]=nt.useState(!1);return(0,Wo.jsx)(Op.Provider,{value:{open:a,setOpen:o},children:(0,Wo.jsx)(Pa.Root,{open:a,onOpenChange:o,...t,children:e})})};pi.displayName="PopoverCell";var mi=nt.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=nt.useRef(null);return(0,Wo.jsx)(Pa.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:U("w-full h-full cursor-pointer",a),...o,children:e})});mi.displayName="PopoverCellTrigger";var gi=nt.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Wo.jsx)(Pa.Portal,{children:(0,Wo.jsx)(Pa.Content,{ref:r,align:t,sideOffset:a,className:U("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-none 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),onEscapeKeyDown:n=>n.preventDefault(),...o})}));gi.displayName=Pa.Content.displayName;function pt(e){let t=nt.useContext(Op),a=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return nt.useEffect(()=>{let r=n=>{(n.key==="Enter"||n.key==="Return")&&!n.shiftKey?a():n.key==="Escape"&&o()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var on=require("react/jsx-runtime");function Ms(e){let{cellComponent:t,inputComponent:a}=e;return(0,on.jsxs)(pi,{children:[(0,on.jsx)(mi,{asChild:!0,children:t}),(0,on.jsx)(gi,{align:"start",alignOffset:-1,className:"ps-min-w-cell ps-rounded-none ps-bg-muted ps-p-0 ps-z-30 ps-gap-0 ps-border-blue-500 ps-min-w-[calc(var(--radix-popover-trigger-width) + 1px)]",sideOffset:-40,children:a})]})}b();var dt=require("@dnd-kit/core"),ra=require("@dnd-kit/sortable"),_p=require("@dnd-kit/utilities");var xi=require("react"),Rs=require("uuid");b();var Bp=require("class-variance-authority");var qp=require("react/jsx-runtime"),hi=(0,Bp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});function $p({className:e,variant:t,...a}){return(0,qp.jsx)("div",{className:U(hi({variant:t}),e),...a})}b();var Np=ge(require("react"),1);var zp=require("react/jsx-runtime"),_t=Np.forwardRef(({className:e,type:t,...a},o)=>(0,zp.jsx)("input",{type:t,className:U("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-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",e),ref:o,...a}));_t.displayName="Input";b();var de=ge(require("@radix-ui/react-select"),1);var ja=ge(require("react"),1);var Ne=require("react/jsx-runtime"),rn=de.Root;var nn=de.Value,Qo=ja.forwardRef(({className:e,children:t,...a},o)=>(0,Ne.jsxs)(de.Trigger,{ref:o,className:U("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,Ne.jsx)(de.Icon,{asChild:!0,children:(0,Ne.jsx)(Qt,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));Qo.displayName=de.Trigger.displayName;var Up=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.ScrollUpButton,{ref:a,className:U("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,Ne.jsx)(ir,{className:"ps-h-4 ps-w-4"})}));Up.displayName=de.ScrollUpButton.displayName;var Hp=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.ScrollDownButton,{ref:a,className:U("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,Ne.jsx)(Qt,{className:"ps-h-4 ps-w-4"})}));Hp.displayName=de.ScrollDownButton.displayName;var jo=ja.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,Ne.jsx)(de.Portal,{children:(0,Ne.jsxs)(de.Content,{ref:r,className:U("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,Ne.jsx)(Up,{}),(0,Ne.jsx)(de.Viewport,{className:U("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,Ne.jsx)(Hp,{})]})}));jo.displayName=de.Content.displayName;var PC=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.Label,{ref:a,className:U("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",e),...t}));PC.displayName=de.Label.displayName;var $e=ja.forwardRef(({className:e,children:t,...a},o)=>(0,Ne.jsxs)(de.Item,{ref:o,className:U("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,Ne.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,Ne.jsx)(de.ItemIndicator,{children:(0,Ne.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),(0,Ne.jsx)(de.ItemText,{children:t})]}));$e.displayName=de.Item.displayName;var MC=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.Separator,{ref:a,className:U("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));MC.displayName=de.Separator.displayName;var V=require("react/jsx-runtime"),Vp=["id","name","email","created_at","updated_at","status","role","department"],RC=({filter:e,onUpdate:t,onDelete:a,parentId:o,isLast:r})=>{let{attributes:n,listeners:s,setNodeRef:i,transform:l,transition:u,isDragging:d}=(0,ra.useSortable)({id:e.id,data:{type:e.kind,parentId:o}}),c={transform:_p.CSS.Transform.toString(l),transition:u,opacity:d?.5:1};return(0,V.jsx)("div",{ref:i,style:c,className:"ps-flex ps-flex-row ps-justify-between ps-gap-2",children:e.kind==="ColumnFilter"?(0,V.jsx)(Gp,{filter:e,onUpdate:t,onDelete:a,dragHandleProps:{...n,...s},isLast:r}):(0,V.jsx)(yi,{group:e,onUpdate:t,onDelete:a,dragHandleProps:{...n,...s},isLast:r})})},Gp=({filter:e,onUpdate:t,onDelete:a,dragHandleProps:o,isLast:r})=>{let n=u=>{t({...e,column:u})},s=u=>{t({...e,operator:u})},i=u=>{t({...e,value:u.target.value})},l=u=>{t({...e,after:u})};return(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-gap-2 ps-w-full",children:[(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,V.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,V.jsx)(Ro,{className:"ps-text-muted-foreground",size:16})}),(0,V.jsxs)(rn,{value:e.column,onValueChange:n,children:[(0,V.jsx)(Qo,{className:"ps-w-28 ps-text-xs",children:(0,V.jsx)(nn,{placeholder:"Select column"})}),(0,V.jsx)(jo,{children:Vp.map(u=>(0,V.jsx)($e,{value:u,children:u},u))})]}),(0,V.jsxs)(rn,{value:e.operator,onValueChange:u=>s(u),children:[(0,V.jsx)(Qo,{className:"ps-w-20 ps-text-xs",children:(0,V.jsx)(nn,{placeholder:"Operator"})}),(0,V.jsxs)(jo,{children:[(0,V.jsx)($e,{value:"=",children:"="}),(0,V.jsx)($e,{value:"!=",children:"!="}),(0,V.jsx)($e,{value:">",children:">"}),(0,V.jsx)($e,{value:">=",children:">="}),(0,V.jsx)($e,{value:"<",children:"<"}),(0,V.jsx)($e,{value:"<=",children:"<="}),(0,V.jsx)($e,{value:"in",children:"in"}),(0,V.jsx)($e,{value:"not in",children:"not in"}),(0,V.jsx)($e,{value:"is",children:"is"}),(0,V.jsx)($e,{value:"is not",children:"is not"}),(0,V.jsx)($e,{value:"like",children:"like"}),(0,V.jsx)($e,{value:"not like",children:"not like"}),(0,V.jsx)($e,{value:"ilike",children:"ilike"}),(0,V.jsx)($e,{value:"not ilike",children:"not ilike"}),(0,V.jsx)($e,{value:"match",children:"match"})]})]}),(0,V.jsx)(_t,{value:e.value||"",onChange:i,placeholder:"value",className:"ps-w-24 ps-text-xs"}),(0,V.jsxs)(rn,{value:e.after,onValueChange:u=>l(u),children:[(0,V.jsx)(Qo,{className:"ps-w-20 ps-text-xs",children:(0,V.jsx)(nn,{})}),(0,V.jsxs)(jo,{children:[(0,V.jsx)($e,{value:"and",children:"AND"}),(0,V.jsx)($e,{value:"or",children:"OR"})]})]})]}),(0,V.jsx)(Fe,{variant:"ghost",size:"xs",onClick:a,children:(0,V.jsx)(Na,{size:14})})]})},yi=({group:e,onUpdate:t,onDelete:a,dragHandleProps:o,isRoot:r=!1,isLast:n=!1})=>{let[s,i]=(0,xi.useState)(!0),[l,u]=(0,xi.useState)(null),d=e.filters||[],c=(0,dt.useSensors)((0,dt.useSensor)(dt.PointerSensor,{activationConstraint:{distance:8}}),(0,dt.useSensor)(dt.KeyboardSensor,{coordinateGetter:ra.sortableKeyboardCoordinates})),p=()=>{let C={kind:"ColumnFilter",column:Vp[0],operator:"=",value:"",id:(0,Rs.v4)(),after:"and"};t({...e,filters:[...d,C]})},f=()=>{let C={kind:"ColumnFilters",filters:[],id:(0,Rs.v4)(),after:"and"};t({...e,filters:[...d,C]})},m=(C,w)=>{let L=[...d];L[C]=w,t({...e,filters:L})},g=C=>{let w=[...d];w.splice(C,1),t({...e,filters:w})},h=C=>{u(C.active.id)},x=C=>{let{active:w,over:L}=C;if(L&&w.id!==L.id){let E=d.findIndex(S=>S.id===w.id),D=d.findIndex(S=>S.id===L.id),T=(0,ra.arrayMove)(d,E,D);t({...e,filters:T})}u(null)},y=()=>s?(0,V.jsxs)("div",{className:U("ps-flex ps-flex-col ps-gap-2",r?"":"ps-ml-6"),children:[(0,V.jsxs)(dt.DndContext,{sensors:c,collisionDetection:dt.closestCenter,onDragStart:h,onDragEnd:x,children:[(0,V.jsx)(ra.SortableContext,{items:d.map(C=>C.id),strategy:ra.verticalListSortingStrategy,children:d.map((C,w)=>(0,V.jsx)(RC,{filter:C,onUpdate:L=>m(w,L),onDelete:()=>g(w),parentId:e.id,isLast:w===d.length-1},C.id))}),(0,V.jsx)(dt.DragOverlay,{children:(0,V.jsx)("div",{children:l?(0,V.jsx)("div",{className:"ps-opacity-80",children:(()=>{let C=d.find(w=>w.id===l);return C?C.kind==="ColumnFilter"?(0,V.jsx)(Gp,{filter:C,onUpdate:()=>{},onDelete:()=>{},isLast:!0}):(0,V.jsx)(yi,{group:C,onUpdate:()=>{},onDelete:()=>{},isLast:!0}):null})()}):null})})]}),(0,V.jsxs)("div",{className:"ps-flex ps-gap-2 ps-w-full ps-justify-between",children:[(0,V.jsx)(Fe,{variant:"outline",size:"sm",onClick:p,className:"ps-flex ps-items-center ps-gap-1",children:"Add Condition"}),(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,V.jsx)(Fe,{variant:"outline",size:"sm",onClick:f,className:"ps-flex ps-items-center ps-gap-1",children:"Add Group"}),!r&&(0,V.jsxs)(rn,{value:e.after,onValueChange:C=>t({...e,after:C}),children:[(0,V.jsx)(Qo,{className:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",children:(0,V.jsx)(nn,{})}),(0,V.jsxs)(jo,{children:[(0,V.jsx)($e,{value:"and",children:"AND"}),(0,V.jsx)($e,{value:"or",children:"OR"})]})]})]})]})]}):null;return(0,V.jsxs)("div",{"data-filter-group-header":!0,className:"ps-flex ps-flex-col ps-gap-2 ps-w-full",children:[(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-w-fullps-gap-2",children:[!r&&(0,V.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,V.jsx)(Ro,{className:"ps-text-gray-400",size:16})}),(0,V.jsx)(Fe,{variant:"ghost",size:"sm",className:"ps-p-0 ps-h-6 ps-w-6",onClick:()=>i(!s),children:s?(0,V.jsx)(Qt,{size:16}):(0,V.jsx)($t,{size:16})}),(0,V.jsxs)($p,{variant:"outline",className:"ps-ml-2",children:[d.length," ",d.length===1?"condition":"conditions"]})]}),!r&&(0,V.jsx)(Fe,{variant:"ghost",size:"xs",onClick:a,children:(0,V.jsx)(Na,{size:14})})]}),(0,V.jsx)("div",{className:U(r?"":"ps-border-l-4 ps-border-l-gray-500"),children:y()})]})};function Kp({filter:e,setFilter:t}){return(0,V.jsx)(yi,{group:{...e,id:e.id||(0,Rs.v4)()},onUpdate:t,onDelete:()=>{},isRoot:!0})}b();var Ja=require("@dnd-kit/core"),Ya=require("@dnd-kit/sortable"),sm=require("@dnd-kit/utilities"),Ds=require("@tanstack/react-table");b();var Ma=ge(require("react"),1),G=ge(require("react"),1);function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Xa.apply(null,arguments)}var AC=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function TC(e,t){let[a,o]=G.default.useState();G.default.useEffect(()=>{let n=AC(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=G.default.useCallback(n=>{o(s=>{let i=n;typeof n=="function"&&(i=n(s));try{localStorage.setItem(e,JSON.stringify(i))}catch{}return i})},[e]);return[a,r]}var na={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},jp=G.default.createContext(na);function Xp(e){let{theme:t,...a}=e;return G.default.createElement(jp.Provider,Xa({value:t},a))}function DC(){return G.default.useContext(jp)}function EC(e){let[t,a]=G.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return G.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=n=>{let{matches:s}=n;return a(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[t,e,a]),t}var FC=typeof window>"u";function Vt(e,t,a){return a===void 0&&(a={}),G.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=DC(),l=Object.entries(a).reduce((u,d)=>{let[c,p]=d;return EC(c)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return G.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function OC(){let e=G.default.useRef(!1),t=G.default.useCallback(()=>e.current,[]);return G.default[FC?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var BC=Vt("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Vt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var $C=Vt("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Vt("code",{fontSize:".9em"});Vt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Vt("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var Wp=Vt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),As=Vt("span",{cursor:"pointer",color:"white"}),qC=Vt("span",(e,t)=>({color:t.danger})),vi=Vt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),NC=Vt("span",{color:"grey",fontSize:".7rem"}),Qp=e=>{let{expanded:t,style:a={},...o}=e;return G.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},zC=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,p]=G.default.useState(void 0),[f,m]=G.default.useState([]),g=()=>{p(o())};return G.default.createElement(Wp,{key:a},n!=null&&n.length?G.default.createElement(G.default.Fragment,null,G.default.createElement(As,{onClick:()=>l()},G.default.createElement(Qp,{expanded:i})," ",a," ",G.default.createElement(NC,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?G.default.createElement(vi,null,r.map(h=>t(h))):G.default.createElement(vi,null,n.map((h,x)=>G.default.createElement("div",{key:x},G.default.createElement(Wp,null,G.default.createElement(As,{onClick:()=>m(y=>y.includes(x)?y.filter(C=>C!==x):[...y,x])},G.default.createElement(Qp,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),f.includes(x)?G.default.createElement(vi,null,h.map(y=>t(y))):null)))):null):s==="function"?G.default.createElement(G.default.Fragment,null,G.default.createElement(sa,{renderer:d,label:G.default.createElement("button",{onClick:g},G.default.createElement(As,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):G.default.createElement(G.default.Fragment,null,G.default.createElement(As,null,a,":")," ",G.default.createElement(qC,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function sa(e){let{value:t,defaultExpanded:a,renderer:o=zC,pageSize:r=100,depth:n=0,...s}=e,[i,l]=G.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,p,f=[],m=g=>{let h=d.concat(g.label),x=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:x}};if(Array.isArray(t)?(c="array",p=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",p=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",p=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),p){let g=0;for(;g<p.length;)f.push(p.slice(g,g+r)),g=g+r}return o({handleEntry:g=>G.default.createElement(sa,Xa({key:g.label,renderer:o},s,g)),type:c,subEntries:p,subEntryPages:f,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function Zp(e){return Ma.createElement("svg",Xa({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),Ma.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Ma.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},Ma.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},Ma.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},Ma.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),Ma.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),Ma.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function Jp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=G.default.useRef(null),i=G.default.useRef(null),[l,u]=TC("reactTableDevtoolsOpen",t),d=OC(),{style:c={},...p}=o,{style:f={},onClick:m,...g}=r;return d()?G.default.createElement(n,{ref:s,className:"ReactTableDevtools"},G.default.createElement(Xp,{theme:na},l?G.default.createElement(UC,Xa({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):G.default.createElement("button",Xa({type:"button"},g,{"aria-label":"Open React Table Devtools",onClick:h=>{u(!0),m&&m(h)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...f}}),G.default.createElement(Zp,{"aria-hidden":!0})))):null}var UC=G.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return G.default.createElement(Xp,{theme:na},G.default.createElement(BC,Xa({ref:a,className:"ReactTableDevtoolsPanel"},s),G.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
1200
+ `}},Rt=e=>qf("light",e),At=e=>qf("dark",e);Br(["click","mousedown","input"]);});var Nf={};In(Nf,{default:()=>iC});var lC,iC,zf=ar(()=>{"use strict";C();jl();qr();lC=e=>{let[t,a]=os({prefix:"TanstackQueryDevtools"}),o=Kn(),r=k(()=>{let n=t.theme_preference||rs;return n!=="system"?n:o()});return v(jr.Provider,{value:e,get children(){return v(ns,{localStore:t,setLocalStore:a,get children(){return v(Xr.Provider,{value:r,get children(){return v(Bf,{localStore:t,setLocalStore:a})}})}})}})},iC=lC});var Uf={};In(Uf,{default:()=>dC});var uC,dC,Hf=ar(()=>{"use strict";C();jl();qr();uC=e=>{let[t,a]=os({prefix:"TanstackQueryDevtools"}),o=Kn(),r=k(()=>{let n=t.theme_preference||rs;return n!=="system"?n:o()});return v(jr.Provider,{value:e,get children(){return v(ns,{disabled:!0,localStore:t,setLocalStore:a,get children(){return v(Xr.Provider,{value:r,get children(){return v($f,{get children(){return v(gs,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},dC=uC});var nb={};In(nb,{Studio:()=>Hm});module.exports=jm(nb);C();C();var Zo=require("motion/react");C();var tu=require("clsx");C();var Gs="-",Xm=e=>{let t=Jm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(Gs);return i[0]===""&&i.length!==1&&i.shift(),ji(i,t)||Zm(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},ji=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?ji(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(Gs);return t.validators.find(({validator:s})=>s(n))?.classGroupId},Gi=/^\[(.+)\]$/,Zm=e=>{if(Gi.test(e)){let t=Gi.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Jm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return eg(Object.entries(e.classGroups),a).forEach(([n,s])=>{Vs(s,o,n,t)}),o},Vs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:Ki(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Ym(r)){Vs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{Vs(s,Ki(t,n),a,o)})})},Ki=(e,t)=>{let a=e;return t.split(Gs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Ym=e=>e.isThemeGetter,eg=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,r]}):e,tg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}},Xi="!",ag=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===r&&(o||i.slice(h,h+n)===t)){l.push(i.slice(d,h)),d=h+n;continue}if(x==="/"){c=h;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(d),f=p.startsWith(Xi),m=f?p.substring(1):p,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},og=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},rg=e=>({cache:tg(e.cacheSize),parseClassName:ag(e),...Xm(e)}),ng=/\s+/,sg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(ng),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,g=o(m?p.substring(0,f):p);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(p),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=og(d).join(":"),x=c?h+Xi:h,y=x+g;if(n.includes(y))continue;n.push(y);let b=r(g,m);for(let w=0;w<b.length;++w){let L=b[w];n.push(x+L)}i=u+(i.length>0?" "+i:i)}return i};function lg(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Zi(t))&&(o&&(o+=" "),o+=a);return o}var Zi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Zi(e[o]))&&(a&&(a+=" "),a+=t);return a};function Wi(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=rg(u),o=a.cache.get,r=a.cache.set,n=i,i(l)}function i(l){let u=o(l);if(u)return u;let d=sg(l,a);return r(l,d),d}return function(){return n(lg.apply(null,arguments))}}var Me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ji=/^\[(?:([a-z-]+):)?(.+)\]$/i,ig=/^\d+\/\d+$/,ug=new Set(["px","full","screen"]),dg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=e=>Mo(e)||ug.has(e)||ig.test(e),Fa=e=>Ro(e,"length",wg),Mo=e=>!!e&&!Number.isNaN(Number(e)),_s=e=>Ro(e,"number",Mo),or=e=>!!e&&Number.isInteger(Number(e)),gg=e=>e.endsWith("%")&&Mo(e.slice(0,-1)),oe=e=>Ji.test(e),Oa=e=>dg.test(e),hg=new Set(["length","size","percentage"]),xg=e=>Ro(e,hg,Yi),yg=e=>Ro(e,"position",Yi),vg=new Set(["image","url"]),Cg=e=>Ro(e,vg,Sg),bg=e=>Ro(e,"",Lg),rr=()=>!0,Ro=(e,t,a)=>{let o=Ji.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},wg=e=>cg.test(e)&&!fg.test(e),Yi=()=>!1,Lg=e=>pg.test(e),Sg=e=>mg.test(e);var Qi=()=>{let e=Me("colors"),t=Me("spacing"),a=Me("blur"),o=Me("brightness"),r=Me("borderColor"),n=Me("borderRadius"),s=Me("borderSpacing"),i=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),c=Me("invert"),p=Me("gap"),f=Me("gradientColorStops"),m=Me("gradientColorStopPositions"),g=Me("inset"),h=Me("margin"),x=Me("opacity"),y=Me("padding"),b=Me("saturate"),w=Me("scale"),L=Me("sepia"),D=Me("skew"),E=Me("space"),A=Me("translate"),S=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",oe,t],F=()=>[oe,t],re=()=>["",pa,Fa],fe=()=>["auto",Mo,oe],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",oe],Re=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ae=()=>[Mo,oe];return{cacheSize:500,separator:":",theme:{colors:[rr],spacing:[pa,Fa],blur:["none","",Oa,oe],brightness:Ae(),borderColor:[e],borderRadius:["none","","full",Oa,oe],borderSpacing:F(),borderWidth:re(),contrast:Ae(),grayscale:pe(),hueRotate:Ae(),invert:pe(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[gg,Fa],inset:H(),margin:H(),opacity:Ae(),padding:F(),saturate:Ae(),scale:Ae(),sepia:pe(),skew:Ae(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[Oa]}],"break-after":[{"break-after":Re()}],"break-before":[{"break-before":Re()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...be(),oe]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",or,oe]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",or,oe]}],"grid-cols":[{"grid-cols":[rr]}],"col-start-end":[{col:["auto",{span:["full",or,oe]},oe]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[rr]}],"row-start-end":[{row:["auto",{span:[or,oe]},oe]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[Oa]},Oa]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Oa,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_s]}],"font-family":[{font:[rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",Mo,_s]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pa,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pa,Fa]}],"underline-offset":[{"underline-offset":["auto",pa,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),yg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...he(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:he()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[pa,oe]}],"outline-w":[{outline:[pa,Fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[pa,Fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oa,bg]}],"shadow-color":[{shadow:[rr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Oa,oe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[b]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:Ae()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:Ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[or,oe]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pa,Fa,_s]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ig=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{nr(e,"cacheSize",t),nr(e,"prefix",a),nr(e,"separator",o),nr(e,"experimentalParseClassName",r);for(let i in s)kg(e[i],s[i]);for(let i in n)Pg(e[i],n[i]);return e},nr=(e,t,a)=>{a!==void 0&&(e[t]=a)},kg=(e,t)=>{if(t)for(let a in t)nr(e,a,t[a])},Pg=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},eu=(e,...t)=>typeof e=="function"?Wi(Qi,e,...t):Wi(()=>Ig(Qi(),e),...t);var Mg=eu({prefix:"ps-"});function _(...e){return Mg((0,tu.clsx)(e))}C();var Dm=require("@tanstack/react-query");C();C();var Pn=require("react");C();var au=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kn=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();C();var sr=require("react");C();var ou={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 ru=(0,sr.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,sr.createElement)("svg",{ref:l,...ou,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:kn("lucide",r),...i},[...s.map(([u,d])=>(0,sr.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var J=(e,t)=>{let a=(0,Pn.forwardRef)(({className:o,...r},n)=>(0,Pn.createElement)(ru,{ref:n,iconNode:t,className:kn(`lucide-${au(e)}`,o),...r}));return a.displayName=`${e}`,a};C();var Ba=J("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"}]]);C();var lr=J("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"}]]);C();var $t=J("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);C();var $a=J("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);C();var ir=J("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);C();var ma=J("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);C();var ur=J("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);C();var dr=J("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);C();var cr=J("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);C();var uo=J("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);C();var fr=J("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"}]]);C();var pr=J("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);C();var qa=J("Grid2x2Plus",[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 22v-6",key:"qhmiwi"}]]);C();var Ao=J("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);C();var mr=J("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);C();var gr=J("ListFilterPlus",[["path",{d:"M10 18h4",key:"1ulq68"}],["path",{d:"M11 6H3",key:"1u26ik"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 9V3",key:"xwwp7m"}],["path",{d:"M7 12h8",key:"7a1bxv"}]]);C();var hr=J("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);C();var xr=J("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);C();var yr=J("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);C();var vr=J("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);C();var Na=J("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);C();var za=J("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);C();var Cr=J("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"}]]);C();var br=J("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"}]]);C();var wr=J("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);C();var To=J("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);C();var Lr=J("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var vn=require("react"),Em=require("sonner");C();var nu=require("@radix-ui/react-slot"),su=require("class-variance-authority"),lu=xe(require("react"),1);var iu=require("react/jsx-runtime"),Rg=(0,su.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"}}),Be=lu.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,iu.jsx)(o?nu.Slot:"button",{className:_(Rg({variant:t,size:a,className:e})),ref:n,...r}));Be.displayName="Button";C();var Sr=xe(require("@radix-ui/react-checkbox"),1);var uu=xe(require("react"),1);var Mn=require("react/jsx-runtime"),Ir=uu.forwardRef(({className:e,...t},a)=>(0,Mn.jsx)(Sr.Root,{ref:a,className:_("ps-peer ps-h-4 ps-w-4 ps-shrink-0 ps-rounded-sm ps-border ps-border-primary ps-shadow focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=checked]:ps-text-primary-foreground",e),...t,children:(0,Mn.jsx)(Sr.Indicator,{className:_("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,Mn.jsx)($t,{className:"ps-h-4 ps-w-4"})})}));Ir.displayName=Sr.Root.displayName;C();var bs=require("@tanstack/react-query");C();var vs=require("@tanstack/react-query");C();C();var Ht=xe(require("react"),1),hs=require("@tanstack/react-query");C();qr();var _f=class{#t;#u;#d;#c;#e=!1;#f;#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:d}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(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=nl(()=>{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=rl(()=>Promise.resolve().then(()=>(zf(),Nf))),this.#l=l),cl(this.#f,this.#a),v(l,ae({get queryFlavor(){return a.#d},get version(){return a.#c},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}},Vf=class{#t;#u;#d;#c;#e=!1;#f;#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:d,onClose:c}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l),this.#l=N(c)}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=nl(()=>{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=rl(()=>Promise.resolve().then(()=>(Hf(),Uf))),this.#i=u),cl(this.#f,this.#a),v(u,ae({get queryFlavor(){return a.#d},get version(){return a.#c},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 Gf=require("react/jsx-runtime");function Kf(e){let t=(0,hs.useQueryClient)(e.client),a=Ht.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ht.useState(new _f({client:t,queryFlavor:"React Query",version:"5",onlineManager:hs.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Ht.useEffect(()=>{u.setClient(t)},[t,u]),Ht.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ht.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ht.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ht.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ht.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Gf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}C();var wa=xe(require("react"),1),xs=require("@tanstack/react-query");var Wf=require("react/jsx-runtime");function Qf(e){let t=(0,xs.useQueryClient)(e.client),a=wa.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=wa.useState(new Vf({client:t,queryFlavor:"React Query",version:"5",onlineManager:xs.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return wa.useEffect(()=>{s.setClient(t)},[t,s]),wa.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),wa.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),wa.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,Wf.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var jf=process.env.NODE_ENV!=="development"?function(){return null}:Kf,uS=process.env.NODE_ENV!=="development"?function(){return null}:Qf;var ta=require("react"),tp=require("sonner");C();var Xf=require("sonner"),Jf=require("react/jsx-runtime"),Zf=({...e})=>(0,Jf.jsx)(Xf.Toaster,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});C();var Yf=require("nuqs/adapters/custom"),ys=require("react");function pC(){let e=window.location.hash.slice(1),[t,a]=(0,ys.useState)(new URLSearchParams(e));function o(n){let{pathname:s,search:i}=window.location,l=decodeURIComponent(n.toString()),u=`${s}${i}#${l}`;window.history.pushState(null,"",u),a(n)}function r(){let n=window.location.hash.slice(1);return new URLSearchParams(n)}return(0,ys.useEffect)(()=>{function n(){let s=window.location.hash.slice(1);a(new URLSearchParams(s))}return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),{searchParams:t,updateUrl:o,getSearchParamsSnapshot:r}}var ep=(0,Yf.unstable_createAdapterProvider)(pC);var bo=require("react/jsx-runtime"),mC=new vs.QueryClient,ap=(0,ta.createContext)(void 0);function op(e){let{children:t,...a}=e,[o,r]=(0,ta.useState)(null),[n,s]=(0,ta.useState)(!1),[i,l]=(0,ta.useState)(!0),u=e.onError;u??=f=>tp.toast.error(f.message);let d=(0,ta.useMemo)(()=>e.onTelemetryEvent??(()=>{}),[e.onTelemetryEvent]),c=()=>s(f=>!f),p=()=>l(f=>!f);return(0,bo.jsxs)(vs.QueryClientProvider,{client:mC,children:[(0,bo.jsx)(jf,{}),(0,bo.jsx)(Zf,{}),(0,bo.jsx)(ep,{children:(0,bo.jsx)(ap.Provider,{value:{...a,activeTable:o,isFullscreen:n,setActiveTable:r,onError:u,emitTelemetryEvent:d,toggleFullscreen:c,isNavigationOpen:i,toggleNavigation:p},children:t})})]})}function Ze(){let e=(0,ta.useContext)(ap);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}C();C();C();function wo(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]??null),a},{}))}function gC(e,t){let a={filter:wo(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function rp(e,t){return{...e,__ps_rowid:gC(e,t)}}function Cs(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:rp(a,t)}:o!==void 0?{...e,rows:o.map(r=>rp(r,t))}:e}function np(){let{activeTable:e,adapter:t}=Ze(),a=(0,bs.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,bs.useMutation)({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(n){let[s,i]=await t.insert({rows:n,table:e},{});if(s)throw s;return Cs(i,e)},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}C();var sp=require("@tanstack/react-query");function lp(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Ze();return(0,sp.useQuery)({enabled:!!r,gcTime:0,placeholderData(s,i){let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},async queryFn({signal:s}){let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return Cs(l,r)},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}C();var ws=require("@tanstack/react-query");function ip(){let{activeTable:e,adapter:t,onError:a}=Ze(),o=(0,ws.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,ws.useMutation)({mutationFn:async n=>{let[s,i]=await t.update(n.details,n.options);if(s)throw s;return i},mutationKey:[...r,"update"],onError(n,s){let{changes:i,row:l}=s.details;a(n),Xl({getFinderFn(){let u={...l,...i},d=wo(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,p)=>({...c,[p]:l[p]}),{})}}})},onMutate(n){let{details:s}=n;Xl({getFinderFn(){let{row:i}=s,l=wo(i,e.columns);return u=>l.every(([d,c])=>u[d]===c)},queryClient:o,table:e,updaterFn:function(l){return{...l,...s.changes}}})},onSuccess(n,s){Xl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=wo(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(l){let{__ps_updated_at__:u}=l,{row:d}=n;return u!=null&&d.__ps_updated_at__<=u?l:{...l,...d}}})},retry:!1})}function Xl(e){let{getFinderFn:t,queryClient:a,table:o,updaterFn:r}=e,n;a.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},s=>{let{rows:i=[]}=s||{};if(i.length===0)return s;let l=i.findIndex(n??=t());if(l===-1)return s;let u=r(i[l]);return{...s,rows:[...i.slice(0,l),u,...i.slice(l+1)]}})}C();var up=require("@tanstack/react-query");function Ls(){return(0,up.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}C();var dp=require("react");var Ye={};In(Ye,{keyMap:()=>Zl,urlKeys:()=>hC,useQueryState:()=>Qo,useQueryStates:()=>on});C();var Ss=require("nuqs");fa(Ye,require("nuqs"));function Zl(e){return e}function hC(e){return e}var WS=Symbol("BRAND_SYMBOL");function Qo(e,t){return(0,Ss.useQueryState)(e,t)}function on(e,t){return(0,Ss.useQueryStates)(e,t)}var xC=25,yC={pageIndex:Ye.parseAsIndex.withDefault(0),pageSize:Ye.parseAsInteger.withDefault(xC)};function Is(){let[{pageIndex:e,pageSize:t},a]=on(yC),o=(0,dp.useCallback)(r=>{a(typeof r=="function"?n=>{let s=r(n);return{pageIndex:s.pageIndex,pageSize:s.pageSize}}:{pageIndex:r.pageIndex,pageSize:r.pageSize})},[a]);return{paginationState:{pageIndex:e,pageSize:t},setPaginationState:o}}C();var Ps=require("react");C();var ks=require("@tanstack/react-query");function cp(){let{activeTable:e,adapter:t}=Ze(),a=(0,ks.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,ks.useMutation)({mutationKey:["schema",o,"table",r,"delete"],async mutationFn(n){let[s,i]=await t.delete({rows:n,table:e},{});if(s)throw s;return i},async onSuccess(){await a.invalidateQueries({exact:!1,queryKey:["schema",o,"table",r,"query"]})},retry:!1})}function fp(e){let{activeTable:t,onError:a}=Ze(),{paginationState:o}=Is(),[r,n]=(0,Ps.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=cp();(0,Ps.useEffect)(()=>n({}),[t,o.pageIndex]);function l(){let u=e?.rows.filter(d=>r[d.__ps_rowid]);i(u??[],{onSuccess(){n({})},onError:a})}return{deleteSelection:l,setRowSelectionState:n,rowSelectionState:r,isSelecting:s}}C();var Ms=require("react");function pp(){let[e,t]=Qo("sort",{defaultValue:""}),a=s=>{if(!s)return[];try{return s.split(",").map(i=>{let[l,u]=i.split(":");return!l||!u||!["asc","desc"].includes(u)?null:{column:l,direction:u}}).filter(Boolean)}catch(i){return console.error("Failed to parse sorting parameter:",i),[]}},[o,r]=(0,Ms.useState)(()=>a(e));return(0,Ms.useEffect)(()=>{let s=a(e);r(s)},[e]),{sortingState:o,setSortingState:s=>{let i=typeof s=="function"?s(o):s;r(i);let l=i.length>0?i.map(u=>`${u.column}:${u.direction}`).join(","):null;t(l)}}}C();var Ep=require("remeda");C();var yp=require("react");C();C();var La=xe(require("react"),1);var aa=require("react/jsx-runtime"),Jl=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,aa.jsx)("table",{ref:a,className:_("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Jl.displayName="Table";var Yl=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("thead",{ref:a,className:_(e),...t}));Yl.displayName="TableHeader";var ei=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("tbody",{ref:a,className:_("[&_tr:last-child]:ps-border-0",e),...t}));ei.displayName="TableBody";var vC=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("tfoot",{ref:a,className:_("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));vC.displayName="TableFooter";var Lo=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("tr",{ref:a,className:_("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));Lo.displayName="TableRow";var ti=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("th",{ref:a,className:_("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));ti.displayName="TableHead";var rn=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("td",{ref:a,className:_("ps-align-middle",e),...t}));rn.displayName="TableCell";var CC=La.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("caption",{ref:a,className:_("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));CC.displayName="TableCaption";C();var hp=require("react");C();var ue=xe(require("@radix-ui/react-context-menu"),1);var Sa=xe(require("react"),1);var Ge=require("react/jsx-runtime"),mp=ue.Root,gp=ue.Trigger;var bC=Sa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ge.jsxs)(ue.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,Ge.jsx)(ma,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));bC.displayName=ue.SubTrigger.displayName;var wC=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.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}));wC.displayName=ue.SubContent.displayName;var ai=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Portal,{children:(0,Ge.jsx)(ue.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})}));ai.displayName=ue.Content.displayName;var oi=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.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}));oi.displayName=ue.Item.displayName;var LC=Sa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ge.jsxs)(ue.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,Ge.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,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)($t,{className:"ps-h-4 ps-w-4"})})}),t]}));LC.displayName=ue.CheckboxItem.displayName;var SC=Sa.forwardRef(({className:e,children:t,...a},o)=>(0,Ge.jsxs)(ue.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,Ge.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,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(uo,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));SC.displayName=ue.RadioItem.displayName;var IC=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.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}));IC.displayName=ue.Label.displayName;var kC=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));kC.displayName=ue.Separator.displayName;var PC=({className:e,...t})=>(0,Ge.jsx)("span",{className:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});PC.displayName="ContextMenuShortcut";var So=require("react/jsx-runtime");function xp(e){let{children:t}=e;return(0,So.jsxs)(mp,{children:[(0,So.jsx)(gp,{className:"ps-block ps-w-full ps-px-[var(--studio-cell-spacing)] ps-leading-[var(--studio-cell-height)] ps-h-[var(--studio-cell-height)] ps-text-xs ps-font-mono ps-whitespace-nowrap ps-overflow-hidden ps-text-ellipsis",children:t}),(0,So.jsx)(ai,{children:(0,So.jsxs)(oi,{onClick:()=>{let a=ri(t);navigator.clipboard.writeText(a).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,So.jsx)(fr,{size:12}),"Copy"]})})]})}function ri(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,hp.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?ri(t.children):""}return Array.isArray(e)?e.map(ri).join(""):""}var ni=require("react/jsx-runtime");function He(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,ni.jsx)(rn,{...n,className:_("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head","ps-cursor-pointer",a),ref:o,style:r,children:(0,ni.jsx)(xp,{children:t})})}var si=require("react/jsx-runtime"),li=(0,yp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,si.jsx)(He,{...r,...a,ref:t,children:(0,si.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});li.displayName="BooleanCell";C();var vp=require("react");var Cp=require("react/jsx-runtime"),ii=(0,vp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Cp.jsx)(He,{...r,...a,ref:t,children:String(o)})});ii.displayName="DateCell";C();var bp=require("react");var wp=require("react/jsx-runtime"),nn=(0,bp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,wp.jsx)(He,{...o,...a,ref:t})});nn.displayName="EmptyCell";C();var Lp=require("react");var Sp=require("react/jsx-runtime"),ui=(0,Lp.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,Sp.jsx)(He,{...n,...a,ref:t,children:String(o)})});ui.displayName="EnumCell";C();var Ip=require("react");var kp=require("react/jsx-runtime"),Rs=(0,Ip.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,kp.jsx)(He,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});Rs.displayName="JSONCell";C();var Pp=require("react");var di=require("react/jsx-runtime"),ci=(0,Pp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,di.jsx)(He,{...o,...a,ref:t,children:(0,di.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});ci.displayName="NullCell";C();var Mp=require("react");var fi=require("react/jsx-runtime"),pi=(0,Mp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,fi.jsx)(He,{...r,...a,ref:t,children:(0,fi.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});pi.displayName="NumericCell";C();var Rp=require("react");var Ap=require("react/jsx-runtime"),As=(0,Rp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Ap.jsx)(He,{...r,...a,ref:t,children:String(o)})});As.displayName="RawCell";C();var Tp=require("react");var Dp=require("react/jsx-runtime"),mi=(0,Tp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Dp.jsx)(He,{...r,...a,ref:t,children:String(o)})});mi.displayName="TimeCell";var Tt=require("react/jsx-runtime");function Ts({cell:e,column:t,props:a}){let o=e.getValue();if(o===void 0)return(0,Tt.jsx)(nn,{});if(o===null)return(0,Tt.jsx)(ci,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,Tt.jsx)(Rs,{containerProps:a,value:o});if(r==="string")return(0,Tt.jsx)(As,{containerProps:a,value:o});if(r==="enum")return(0,Tt.jsx)(ui,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,Tt.jsx)(li,{containerProps:a,value:o});if(r==="datetime")return(0,Tt.jsx)(ii,{containerProps:a,value:o});if(r==="time")return(0,Tt.jsx)(mi,{containerProps:a,value:o});if(r==="numeric")return(0,Tt.jsx)(pi,{containerProps:a,value:o});if(r==="raw")return(0,Ep.isObjectType)(o)?(0,Tt.jsx)(Rs,{containerProps:a,value:o}):(0,Tt.jsx)(As,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}C();var Fp=require("react");var gi=require("react/jsx-runtime"),hi=(0,Fp.forwardRef)((e,t)=>{let{row:a,readonly:o,...r}=e;return(0,gi.jsx)(He,{ref:t,...r,children:(0,gi.jsx)(Ir,{checked:a.getIsSelected(),disabled:!a.getCanSelect()||o,onCheckedChange:a.getToggleSelectedHandler()})})});hi.displayName="SelectRowCell";C();C();var Ia=xe(require("@radix-ui/react-popover"),1),nt=xe(require("react"),1);var jo=require("react/jsx-runtime"),Op=nt.createContext(null),xi=({children:e,...t})=>{let[a,o]=nt.useState(!1);return(0,jo.jsx)(Op.Provider,{value:{open:a,setOpen:o},children:(0,jo.jsx)(Ia.Root,{open:a,onOpenChange:o,...t,children:e})})};xi.displayName="PopoverCell";var yi=nt.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=nt.useRef(null);return(0,jo.jsx)(Ia.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:_("w-full h-full cursor-pointer",a),...o,children:e})});yi.displayName="PopoverCellTrigger";var vi=nt.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,jo.jsx)(Ia.Portal,{children:(0,jo.jsx)(Ia.Content,{ref:r,align:t,sideOffset:a,className:_("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-none 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),onEscapeKeyDown:n=>n.preventDefault(),...o})}));vi.displayName=Ia.Content.displayName;function pt(e){let t=nt.useContext(Op),a=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return nt.useEffect(()=>{let r=n=>{(n.key==="Enter"||n.key==="Return")&&!n.shiftKey?a():n.key==="Escape"&&o()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var sn=require("react/jsx-runtime");function Ds(e){let{cellComponent:t,inputComponent:a}=e;return(0,sn.jsxs)(xi,{children:[(0,sn.jsx)(yi,{asChild:!0,children:t}),(0,sn.jsx)(vi,{align:"start",alignOffset:-1,className:"ps-min-w-cell ps-rounded-none ps-bg-muted ps-p-0 ps-z-30 ps-gap-0 ps-border-blue-500 ps-min-w-[calc(var(--radix-popover-trigger-width) + 1px)]",sideOffset:-40,children:a})]})}C();var dt=require("@dnd-kit/core"),oa=require("@dnd-kit/sortable"),zp=require("@dnd-kit/utilities");var Up=require("react"),Os=require("uuid");C();var Bp=xe(require("react"),1);var $p=require("react/jsx-runtime"),_t=Bp.forwardRef(({className:e,type:t,...a},o)=>(0,$p.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-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",e),ref:o,...a}));_t.displayName="Input";C();var de=xe(require("@radix-ui/react-select"),1);var Xa=xe(require("react"),1);var qe=require("react/jsx-runtime"),Es=de.Root;var Fs=de.Value,ln=Xa.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(de.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,qe.jsx)(de.Icon,{asChild:!0,children:(0,qe.jsx)($a,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));ln.displayName=de.Trigger.displayName;var qp=Xa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.ScrollUpButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,qe.jsx)(ur,{className:"ps-h-4 ps-w-4"})}));qp.displayName=de.ScrollUpButton.displayName;var Np=Xa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.ScrollDownButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,qe.jsx)($a,{className:"ps-h-4 ps-w-4"})}));Np.displayName=de.ScrollDownButton.displayName;var un=Xa.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,qe.jsx)(de.Portal,{children:(0,qe.jsxs)(de.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,qe.jsx)(qp,{}),(0,qe.jsx)(de.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,qe.jsx)(Np,{})]})}));un.displayName=de.Content.displayName;var MC=Xa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.Label,{ref:a,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",e),...t}));MC.displayName=de.Label.displayName;var _e=Xa.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(de.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,qe.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,qe.jsx)(de.ItemIndicator,{children:(0,qe.jsx)($t,{className:"ps-h-4 ps-w-4"})})}),(0,qe.jsx)(de.ItemText,{children:t})]}));_e.displayName=de.Item.displayName;var RC=Xa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));RC.displayName=de.Separator.displayName;var K=require("react/jsx-runtime"),Hp=["id","name","email","created_at","updated_at","status","role","department"],AC=({filter:e,onUpdate:t,onDelete:a,parentId:o})=>{let{attributes:r,listeners:n,setNodeRef:s,transform:i,transition:l,isDragging:u}=(0,oa.useSortable)({id:e.id,data:{type:e.kind,parentId:o}}),d={transform:zp.CSS.Transform.toString(i),transition:l,opacity:u?.5:1};return(0,K.jsx)("div",{ref:s,style:d,className:"ps-mt-2",children:e.kind==="ColumnFilter"?(0,K.jsx)(_p,{filter:e,onUpdate:t,onDelete:a,dragHandleProps:{...r,...n}}):(0,K.jsx)(Ci,{group:e,onUpdate:t,onDelete:a,dragHandleProps:{...r,...n}})})},_p=({filter:e,onUpdate:t,onDelete:a,dragHandleProps:o})=>{let r=i=>{t({...e,column:i})},n=i=>{t({...e,operator:i})},s=i=>{t({...e,value:i.target.value})};return(0,K.jsx)("div",{className:"ps-mt-2",children:(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,K.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,K.jsx)(Ao,{className:"ps-text-gray-400",size:16})}),(0,K.jsxs)(Es,{value:e.column,onValueChange:r,children:[(0,K.jsx)(ln,{className:"ps-w-[180px] ps-h-8 ps-text-xs",children:(0,K.jsx)(Fs,{placeholder:"Select column"})}),(0,K.jsx)(un,{children:Hp.map(i=>(0,K.jsx)(_e,{value:i,children:i},i))})]}),(0,K.jsxs)(Es,{value:e.operator,onValueChange:i=>n(i),children:[(0,K.jsx)(ln,{className:"ps-w-[100px] ps-h-8 ps-text-xs",children:(0,K.jsx)(Fs,{placeholder:"Operator"})}),(0,K.jsxs)(un,{children:[(0,K.jsx)(_e,{value:"=",children:"="}),(0,K.jsx)(_e,{value:"!=",children:"!="}),(0,K.jsx)(_e,{value:">",children:">"}),(0,K.jsx)(_e,{value:">=",children:">="}),(0,K.jsx)(_e,{value:"<",children:"<"}),(0,K.jsx)(_e,{value:"<=",children:"<="}),(0,K.jsx)(_e,{value:"in",children:"in"}),(0,K.jsx)(_e,{value:"not in",children:"not in"}),(0,K.jsx)(_e,{value:"is",children:"is"}),(0,K.jsx)(_e,{value:"is not",children:"is not"}),(0,K.jsx)(_e,{value:"like",children:"like"}),(0,K.jsx)(_e,{value:"not like",children:"not like"}),(0,K.jsx)(_e,{value:"ilike",children:"ilike"}),(0,K.jsx)(_e,{value:"not ilike",children:"not ilike"}),(0,K.jsx)(_e,{value:"match",children:"match"})]})]}),(0,K.jsx)(_t,{value:e.value||"",onChange:s,placeholder:"value",className:"ps-flex-1 ps-h-8 ps-text-xs"}),(0,K.jsx)(Be,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100 ps-h-8 ps-text-xs",children:(0,K.jsx)(To,{size:16})})]})})},Ci=({group:e,onUpdate:t,onDelete:a,dragHandleProps:o,isRoot:r=!1})=>{let[n,s]=(0,Up.useState)(null),i=e.and?"and":"or",l=e.and||e.or||[],u=(0,dt.useSensors)((0,dt.useSensor)(dt.PointerSensor,{activationConstraint:{distance:8}}),(0,dt.useSensor)(dt.KeyboardSensor,{coordinateGetter:oa.sortableKeyboardCoordinates})),d=y=>{t(y==="and"?{...e,and:l,or:void 0}:{...e,or:l,and:void 0})},c=()=>{let y={kind:"ColumnFilter",column:Hp[0],operator:"=",value:"",id:(0,Os.v4)()};t(i==="and"?{...e,and:[...l,y]}:{...e,or:[...l,y]})},p=()=>{let y={kind:"ColumnFilters",and:[],id:(0,Os.v4)()};t(i==="and"?{...e,and:[...l,y]}:{...e,or:[...l,y]})},f=(y,b)=>{let w=[...l];w[y]=b,t(i==="and"?{...e,and:w}:{...e,or:w})},m=y=>{let b=[...l];b.splice(y,1),t(i==="and"?{...e,and:b}:{...e,or:b})},g=y=>{s(y.active.id)},h=y=>{let{active:b,over:w}=y;if(w&&b.id!==w.id){let L=l.findIndex(A=>A.id===b.id),D=l.findIndex(A=>A.id===w.id),E=(0,oa.arrayMove)(l,L,D);t(i==="and"?{...e,and:E}:{...e,or:E})}s(null)},x=()=>(0,K.jsx)("div",{children:(0,K.jsx)("div",{children:(0,K.jsxs)(dt.DndContext,{sensors:u,collisionDetection:dt.closestCenter,onDragStart:g,onDragEnd:h,children:[(0,K.jsx)(oa.SortableContext,{items:l.map(y=>y.id),strategy:oa.verticalListSortingStrategy,children:l.map((y,b)=>(0,K.jsx)(AC,{filter:y,onUpdate:w=>f(b,w),onDelete:()=>m(b),parentId:e.id},y.id))}),(0,K.jsx)(dt.DragOverlay,{children:n?(0,K.jsx)("div",{className:"ps-opacity-80",children:(()=>{let y=l.find(b=>b.id===n);return y?y.kind==="ColumnFilter"?(0,K.jsx)(_p,{filter:y,onUpdate:()=>{},onDelete:()=>{}}):(0,K.jsx)(Ci,{group:y,onUpdate:()=>{},onDelete:()=>{}}):null})()}):null})]})})});return(0,K.jsxs)("div",{className:"ps-bg-background",children:[(0,K.jsx)("div",{className:"ps-pb-0",children:(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between",children:[(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[!r&&(0,K.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,K.jsx)(Ao,{className:"ps-text-gray-400",size:16})}),(0,K.jsxs)(Es,{value:i,onValueChange:d,children:[(0,K.jsxs)(ln,{className:"ps-w-[100px] ps-font-bold ps-italic ps-h-8",children:[(0,K.jsx)(wr,{size:14}),(0,K.jsx)(Fs,{})]}),(0,K.jsxs)(un,{children:[(0,K.jsx)(_e,{value:"and",children:"AND"}),(0,K.jsx)(_e,{value:"or",children:"OR"})]})]}),(0,K.jsxs)(Be,{variant:"outline",size:"sm",onClick:c,children:[(0,K.jsx)(gr,{size:14}),"Filter"]}),(0,K.jsxs)(Be,{variant:"outline",size:"sm",onClick:p,children:[(0,K.jsx)(qa,{size:14}),"Group"]})]}),!r&&(0,K.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,K.jsx)(Be,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100",children:(0,K.jsx)(To,{size:16})})})]})}),(0,K.jsx)("div",{className:`${r?"":"ps-ml-5"}`,children:x()})]})};function Vp({filter:e,setFilter:t}){return(0,K.jsx)(Ci,{group:{...e,id:(0,Os.v4)()},onUpdate:t,onDelete:()=>{},isRoot:!0})}C();var Ya=require("@dnd-kit/core"),eo=require("@dnd-kit/sortable"),rm=require("@dnd-kit/utilities"),qs=require("@tanstack/react-table");C();var ka=xe(require("react"),1),V=xe(require("react"),1);function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Za.apply(null,arguments)}var TC=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function DC(e,t){let[a,o]=V.default.useState();V.default.useEffect(()=>{let n=TC(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=V.default.useCallback(n=>{o(s=>{let i=n;typeof n=="function"&&(i=n(s));try{localStorage.setItem(e,JSON.stringify(i))}catch{}return i})},[e]);return[a,r]}var ra={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Wp=V.default.createContext(ra);function Qp(e){let{theme:t,...a}=e;return V.default.createElement(Wp.Provider,Za({value:t},a))}function EC(){return V.default.useContext(Wp)}function FC(e){let[t,a]=V.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return V.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=n=>{let{matches:s}=n;return a(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[t,e,a]),t}var OC=typeof window>"u";function Vt(e,t,a){return a===void 0&&(a={}),V.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=EC(),l=Object.entries(a).reduce((u,d)=>{let[c,p]=d;return FC(c)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return V.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function BC(){let e=V.default.useRef(!1),t=V.default.useCallback(()=>e.current,[]);return V.default[OC?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var $C=Vt("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Vt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var qC=Vt("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Vt("code",{fontSize:".9em"});Vt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Vt("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var Gp=Vt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Bs=Vt("span",{cursor:"pointer",color:"white"}),NC=Vt("span",(e,t)=>({color:t.danger})),bi=Vt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),zC=Vt("span",{color:"grey",fontSize:".7rem"}),Kp=e=>{let{expanded:t,style:a={},...o}=e;return V.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},UC=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,p]=V.default.useState(void 0),[f,m]=V.default.useState([]),g=()=>{p(o())};return V.default.createElement(Gp,{key:a},n!=null&&n.length?V.default.createElement(V.default.Fragment,null,V.default.createElement(Bs,{onClick:()=>l()},V.default.createElement(Kp,{expanded:i})," ",a," ",V.default.createElement(zC,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?V.default.createElement(bi,null,r.map(h=>t(h))):V.default.createElement(bi,null,n.map((h,x)=>V.default.createElement("div",{key:x},V.default.createElement(Gp,null,V.default.createElement(Bs,{onClick:()=>m(y=>y.includes(x)?y.filter(b=>b!==x):[...y,x])},V.default.createElement(Kp,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),f.includes(x)?V.default.createElement(bi,null,h.map(y=>t(y))):null)))):null):s==="function"?V.default.createElement(V.default.Fragment,null,V.default.createElement(na,{renderer:d,label:V.default.createElement("button",{onClick:g},V.default.createElement(Bs,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):V.default.createElement(V.default.Fragment,null,V.default.createElement(Bs,null,a,":")," ",V.default.createElement(NC,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function na(e){let{value:t,defaultExpanded:a,renderer:o=UC,pageSize:r=100,depth:n=0,...s}=e,[i,l]=V.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,p,f=[],m=g=>{let h=d.concat(g.label),x=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:x}};if(Array.isArray(t)?(c="array",p=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",p=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",p=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),p){let g=0;for(;g<p.length;)f.push(p.slice(g,g+r)),g=g+r}return o({handleEntry:g=>V.default.createElement(na,Za({key:g.label,renderer:o},s,g)),type:c,subEntries:p,subEntryPages:f,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function jp(e){return ka.createElement("svg",Za({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),ka.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ka.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ka.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ka.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ka.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),ka.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),ka.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function Xp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=V.default.useRef(null),i=V.default.useRef(null),[l,u]=DC("reactTableDevtoolsOpen",t),d=BC(),{style:c={},...p}=o,{style:f={},onClick:m,...g}=r;return d()?V.default.createElement(n,{ref:s,className:"ReactTableDevtools"},V.default.createElement(Qp,{theme:ra},l?V.default.createElement(HC,Za({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):V.default.createElement("button",Za({type:"button"},g,{"aria-label":"Open React Table Devtools",onClick:h=>{u(!0),m&&m(h)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...f}}),V.default.createElement(jp,{"aria-hidden":!0})))):null}var HC=V.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return V.default.createElement(Qp,{theme:ra},V.default.createElement($C,Za({ref:a,className:"ReactTableDevtoolsPanel"},s),V.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
1201
1201
  .ReactTableDevtoolsPanel * {
1202
- scrollbar-color: ${na.backgroundAlt} ${na.gray};
1202
+ scrollbar-color: ${ra.backgroundAlt} ${ra.gray};
1203
1203
  }
1204
1204
 
1205
1205
  .ReactTableDevtoolsPanel *::-webkit-scrollbar, .ReactTableDevtoolsPanel scrollbar {
@@ -1208,15 +1208,15 @@
1208
1208
  }
1209
1209
 
1210
1210
  .ReactTableDevtoolsPanel *::-webkit-scrollbar-track, .ReactTableDevtoolsPanel scrollbar-track {
1211
- background: ${na.backgroundAlt};
1211
+ background: ${ra.backgroundAlt};
1212
1212
  }
1213
1213
 
1214
1214
  .ReactTableDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactTableDevtoolsPanel scrollbar-thumb {
1215
- background: ${na.gray};
1215
+ background: ${ra.gray};
1216
1216
  border-radius: .5em;
1217
- border: 3px solid ${na.backgroundAlt};
1217
+ border: 3px solid ${ra.backgroundAlt};
1218
1218
  }
1219
- `}}),G.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${na.grayAlt}`,display:"flex",flexDirection:"column"}},G.default.createElement("div",{style:{padding:".5em",background:na.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},G.default.createElement(Zp,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),G.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",G.default.createElement("span",{style:{fontWeight:100}},"Devtools")),G.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?G.default.createElement($C,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),G.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},G.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},G.default.createElement(sa,{label:"Instance",value:o,defaultExpanded:!1}),G.default.createElement("div",{style:{height:".5rem"}}),G.default.createElement(sa,{label:"State",value:o.getState(),defaultExpanded:!1}),G.default.createElement("div",{style:{height:".5rem"}}),G.default.createElement(sa,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),G.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},G.default.createElement(sa,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Za=require("react");b();var tm=require("@tanstack/react-table");var sn=require("motion/react");b();var ce=ge(require("@radix-ui/react-dropdown-menu"),1);var Ra=ge(require("react"),1);var Ke=require("react/jsx-runtime"),Yp=ce.Root,em=ce.Trigger;var HC=Ra.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(ce.SubTrigger,{ref:r,className:U("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,Ke.jsx)($t,{className:"ps-ml-auto"})]}));HC.displayName=ce.SubTrigger.displayName;var _C=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.SubContent,{ref:a,className:U("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}));_C.displayName=ce.SubContent.displayName;var Ci=Ra.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(ce.Portal,{children:(0,Ke.jsx)(ce.Content,{ref:o,sideOffset:t,className:U("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})}));Ci.displayName=ce.Content.displayName;var Ts=Ra.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Item,{ref:o,className:U("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}));Ts.displayName=ce.Item.displayName;var VC=Ra.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(ce.CheckboxItem,{ref:r,className:U("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,Ke.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,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),t]}));VC.displayName=ce.CheckboxItem.displayName;var GC=Ra.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(ce.RadioItem,{ref:o,className:U("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,Ke.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,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(io,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));GC.displayName=ce.RadioItem.displayName;var KC=Ra.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Label,{ref:o,className:U("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));KC.displayName=ce.Label.displayName;var WC=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.Separator,{ref:a,className:U("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));WC.displayName=ce.Separator.displayName;var QC=({className:e,...t})=>(0,Ke.jsx)("span",{className:U("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});QC.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function am(e){let{header:t,className:a}=e;return(0,ie.jsxs)("div",{className:U("ps-flex ps-items-center ps-justify-between",a),children:[(0,ie.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,ie.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,ie.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,ie.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,tm.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,ie.jsxs)("span",{className:"ps-relative ps-flex ps-shrink-0 ps-gap-1",children:[(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-ml-1",children:(0,ie.jsx)(sn.AnimatePresence,{mode:"wait",children:t.column.getIsSorted()==="desc"?(0,ie.jsx)(sn.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:(0,ie.jsx)(xr,{size:14,className:"ps-text-muted-foreground"})},"desc"):t.column.getIsSorted()==="asc"?(0,ie.jsx)(sn.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},children:(0,ie.jsx)(yr,{size:14,className:"ps-text-muted-foreground"})},"asc"):null})}),t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(Yp,{children:[(0,ie.jsx)(em,{asChild:!0,children:(0,ie.jsx)(Fe,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ie.jsx)(Qt,{size:12})})}),(0,ie.jsxs)(Ci,{children:[t.column.getCanSort()&&(0,ie.jsx)(Ts,{onClick:()=>t.column.toggleSorting(),children:(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(qa,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(sr,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Na,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)(Ts,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(vr,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(Cr,{size:16}),"Pin column"]})})]})]})]})]}),t.column.getCanResize()&&(0,ie.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),t.getResizeHandler()(o))},className:U("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}b();var bi=require("react/jsx-runtime");function om({className:e}){return(0,bi.jsx)("div",{"data-loading-bar":!0,className:U("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,bi.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}b();var Ve=require("react/jsx-runtime");function rm(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount();return(0,Ve.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip ps-sticky ps-bottom-0 ps-left-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:a==="basic"?(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Fe,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ve.jsx)(Fe,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(ur,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(lr,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Ve.jsx)(_t,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:n=>{let s=n.target.value?Number(n.target.value)-1:0;t.setPageIndex(s)}}),(0,Ve.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)($t,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(dr,{className:"ps-w-4 ps-h-4"})})]})})})})}b();function ln(e,t){let a=e.getIsPinned(),o=a==="left"&&e.getIsFirstColumn("left"),r=a==="right"&&e.getIsFirstColumn("right"),n=o||r;return{className:U("ps-group ps-border-r ps-border-b ps-border-table-border","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",n&&t==="header"&&"ps-sticky ps-z-10",n&&t==="cell"&&"ps-sticky ps-z-9",n&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.columnDef.size,left:o?`${e.getStart("left")}px`:void 0,right:r?`${e.getAfter("right")}px`:void 0}}}var Ee=require("react/jsx-runtime"),jC=e=>{let{children:t,className:a,header:o,style:r}=e,n="disableDragging"in o.column.columnDef,{attributes:s,listeners:i,transform:l,transition:u,setNodeRef:d,isDragging:c}=(0,Ya.useSortable)({id:o.id}),p={...r,cursor:"grab",touchAction:"none",transform:sm.CSS.Transform.toString(l),transition:u},f=U(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-bg-table-head"),m=U(f,c&&"!ps-z-50 ps-border-2 ps-border-violet-500");return(0,Ee.jsx)(Zl,{ref:d,...s,...i,style:n?r:p,className:n?f:m,children:(0,Ee.jsx)("div",{className:"ps-w-full",children:t})})};function lm(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:p}=e,[f,m]=(0,Za.useState)([]),[g,h]=(0,Za.useState)({left:["__ps_select"],right:[]}),[x,y]=(0,Za.useState)({}),C=(0,Za.useMemo)(()=>nm(p),[p]),w=o||r;(0,Za.useEffect)(()=>m(t.map(({accessorKey:S})=>S)),[]);function L({active:S,over:I}){I&&S.id!==I.id&&m(_=>{let F=_.indexOf(S.id),re=_.indexOf(I.id);return(0,Ya.arrayMove)(_,F,re)})}let E=(0,Ja.useSensor)(Ja.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Ja.useSensors)(E),T=(0,Ds.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&p),getCoreRowModel:(0,Ds.getCoreRowModel)(),getRowId:({__ps_rowid:S})=>S,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:y,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:S=>i?.(I=>(typeof S=="function"&&(S=S(nm(I))),XC(S))),pageCount:l,state:{columnOrder:f,columnPinning:g,columnSizing:x,pagination:u,rowSelection:c,sorting:C}});return(0,Ee.jsxs)(Ee.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Ee.jsx)(Jp,{table:T}),(0,Ee.jsxs)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative ps-bg-slate-100",children:[(0,Ee.jsx)("div",{children:w&&(0,Ee.jsx)(om,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Ee.jsx)(Ja.DndContext,{sensors:D,onDragEnd:L,children:(0,Ee.jsxs)(Ql,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border ps-w-auto",children:[(0,Ee.jsx)(jl,{children:T.getHeaderGroups().map(S=>(0,Ee.jsx)(wo,{children:(0,Ee.jsx)(Ya.SortableContext,{items:S.headers.filter(I=>!("disableDragging"in I.column.columnDef)).map(I=>I.id),strategy:Ya.horizontalListSortingStrategy,children:S.headers.map(I=>(0,Ee.jsx)(jC,{header:I,table:T,...ln(I.column,"header"),children:(0,Ee.jsx)(am,{header:I})},I.id))})},S.id))}),(0,Ee.jsxs)(Xl,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(S=>(0,Ee.jsx)(wo,{className:U("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:S.getVisibleCells().map((I,_)=>{if(typeof I.column.columnDef.cell=="function"){let F=I.column.columnDef.cell(I.getContext());return(0,Ee.jsx)(F,{...ln(I.column,"cell")},_)}return null})},S.id)):(0,Ee.jsx)(wo,{children:(0,Ee.jsx)(tn,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,Ee.jsx)(rm,{table:T,variant:"numeric"})]})]})}function nm(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function XC(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}b();b();var Gt=ge(require("@radix-ui/react-tooltip"),1),im=ge(require("react"),1);var wi=require("react/jsx-runtime"),um=Gt.Provider,dm=Gt.Root,cm=Gt.Trigger,Li=im.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,wi.jsx)(Gt.Portal,{children:(0,wi.jsx)(Gt.Content,{ref:o,sideOffset:t,className:U("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-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-tooltip-content-transform-origin]",e),...a})}));Li.displayName=Gt.Content.displayName;var Tt=require("react/jsx-runtime");function fm({column:e}){return e.isInPrimaryKey?(0,Tt.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,Tt.jsx)(um,{delayDuration:300,children:(0,Tt.jsxs)(dm,{children:[(0,Tt.jsx)(cm,{asChild:!0,children:(0,Tt.jsx)(mr,{size:12})}),(0,Tt.jsx)(Li,{children:(0,Tt.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,Tt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,Tt.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,Tt.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}b();var Mm=require("remeda");b();var ki=require("motion/react"),fn=ge(require("react"),1);b();var Si=ge(require("@radix-ui/react-label"),1),pm=require("class-variance-authority"),mm=ge(require("react"),1);var gm=require("react/jsx-runtime"),ZC=(0,pm.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),un=mm.forwardRef(({className:e,...t},a)=>(0,gm.jsx)(Si.Root,{ref:a,className:U(ZC(),e),...t}));un.displayName=Si.Root.displayName;b();var dn=ge(require("@radix-ui/react-switch"),1),hm=ge(require("react"),1);var Ii=require("react/jsx-runtime"),cn=hm.forwardRef(({className:e,...t},a)=>(0,Ii.jsx)(dn.Root,{className:U("ps-peer ps-inline-flex ps-h-5 ps-w-9 ps-shrink-0 ps-cursor-pointer ps-items-center ps-rounded-full ps-border-2 ps-border-transparent ps-shadow-sm ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-2 focus-visible:ps-ring-ring focus-visible:ps-ring-offset-2 focus-visible:ps-ring-offset-background disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=unchecked]:ps-bg-input",e),...t,ref:a,children:(0,Ii.jsx)(dn.Thumb,{className:U("ps-pointer-events-none ps-block ps-h-4 ps-w-4 ps-rounded-full ps-bg-background ps-shadow-lg ps-ring-0 ps-transition-transform data-[state=checked]:ps-translate-x-4 data-[state=unchecked]:ps-translate-x-0")})}));cn.displayName=dn.Root.displayName;b();var st=require("react/jsx-runtime"),mt=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1,readonly:n})=>(0,st.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs ps-",children:!n&&(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground",children:(0,st.jsx)(fr,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground ps-text-[8px] ps-leading-none ps-font-semibold",children:"Esc"})," ","Cancel changes"]})]}),o&&(0,st.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,st.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,st.jsx)(cn,{id:"set-nullable",checked:r,onCheckedChange:u=>{o&&o(u)}}),(0,st.jsx)("span",{children:"Set to NULL"})]})})]})});var Kt=require("react/jsx-runtime");function xm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,fn.useState)(t===null?!1:t),[l,u]=(0,fn.useState)(t===null),d=t===null?!1:t,c=x=>{i(x)},p=x=>{u(x)},f=fn.default.useCallback(()=>{let x=l?null:s;return x!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0 ps-px-2",children:[(0,Kt.jsx)(un,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Kt.jsx)(ki.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Kt.jsx)(cn,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:l||r})}),(0,Kt.jsx)(ki.motion.div,{"data-value":!0,className:"ps-inline-flex ps-items-center ps-text-xs ps-text-muted-foreground ps-font-mono",initial:{x:-40,opacity:1},animate:{x:0,opacity:1},transition:{duration:.12,delay:0},children:l?"NULL":String(s)})]}),(0,Kt.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Pi=ge(require("dayjs"),1),vm=ge(require("dayjs/plugin/localizedFormat"),1),Es=require("react");b();var ym=require("react");function Xo(e){let{initialValue:t}=e,[a,o]=(0,ym.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Dt=require("react/jsx-runtime");Pi.default.extend(vm.default);function Cm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Es.useMemo)(()=>{try{let f=(0,Pi.default)(s);return f.isValid()?s.includes(":")?f.format("LL LTS"):f.format("LL"):s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Es.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsxs)("form",{onSubmit:l,children:[(0,Dt.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Dt.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Dt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Dt.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Dt.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Dt.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}b();var pn=require("react");var Aa=require("react/jsx-runtime");function bm(e){let{onSubmit:t,column:a,value:o,options:r=[],readonly:n}=e,s=a.nullable===!0,i=String(o),[l,u]=(0,pn.useState)(i),[d,c]=(0,pn.useState)(o===null),p=y=>{u(y)},f=y=>{c(y)},m=(0,pn.useCallback)(()=>d?o!==null?(t(null),!0):!1:l!==i?(t(l),!0):!1,[l,i,t,d,o]),g=()=>{u(i),c(o===null)},{handleSave:h,handleCancel:x}=pt({onSave:m,onCancel:g,readonly:n});return(0,Aa.jsxs)(Aa.Fragment,{children:[(0,Aa.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-font-mono ps-h-[var(--studio-cell-height)] ps-px-2 ps-py-0 ps-w-full ps-text-xs ps-text-muted-foreground",children:l}),(0,Aa.jsx)("div",{className:"ps-flex ps-flex-row ps-flex-wrap ps-gap-2 ps-p-2 ps-min-w-[var(--radix-popover-trigger-width)] ps-max-w-min ps-border-t ps-border-table-border ps-overflow-y-scroll ps-max-h-32",children:r.map(y=>(0,Aa.jsx)("button",{onClick:()=>p(y),className:hi({variant:y===l?"default":"outline"}),disabled:d||n,children:y},y))}),(0,Aa.jsx)(mt,{onSave:h,onCancel:x,onNullChange:s?f:void 0,isNull:d,readonly:n})]})}b();var mn=ge(require("react"),1);var eo=require("react/jsx-runtime");function wm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,s=t===null?"":JSON.stringify(t,null,2),[i,l]=(0,mn.useState)(s),[u,d]=(0,mn.useState)(t===null),c=x=>{l(x.target.value)},p=x=>{d(x)},f=mn.default.useCallback(()=>{if(u)return t!==null?(a(null),!0):!1;let x=i===""?null:JSON.parse(i);return x!==t?(a(x),!0):!1},[i,t,a,u]),m=()=>{l(s),d(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,eo.jsx)("textarea",{rows:5,value:i,onChange:c,disabled:u||r,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,eo.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:u,readonly:r})]})}b();var gn=ge(require("react"),1);var Ta=require("react/jsx-runtime");function Lm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,gn.useState)(t===null?"":String(t)),[l,u]=(0,gn.useState)(t===null),d=t===null?"":String(t),c=x=>{i(x.target.value)},p=x=>{u(x)},f=gn.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let x=s===""?null:Number(s);return s!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,Ta.jsx)(un,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ta.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:s,onChange:c,disabled:l||r,className:"ps-cell-input-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,Ta.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Sm=ge(require("react"),1);var Da=require("react/jsx-runtime");function Im(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r});function i(p){p.preventDefault(),s!==r&&t(s)}let l=Sm.default.useCallback(()=>s!==r?(t(s),!0):!1,[s,r,t]),u=()=>{},{handleSave:d,handleCancel:c}=pt({onSave:l,onCancel:u,readonly:o});return(0,Da.jsxs)(Da.Fragment,{children:[(0,Da.jsxs)("form",{onSubmit:i,children:[(0,Da.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s,disabled:o}),(0,Da.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Da.jsx)(mt,{onSave:d,onCancel:c,readonly:o})]})}b();var Mi=ge(require("dayjs"),1),km=ge(require("dayjs/plugin/localizedFormat"),1),Fs=require("react");var Et=require("react/jsx-runtime");Mi.default.extend(km.default);function Pm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Fs.useMemo)(()=>{try{if(!s.includes(":"))return s;let f=/[+-]\d{2}(:\d{2})?$/.test(s),m=(0,Mi.default)(`2000-01-01 ${s}`);if(m.isValid())return m.format("h:mm A")+(f?` (${m.format("Z")})`:"");let g=/(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?([+-]\d{2}(?::\d{2})?)?/,h=s.match(g);if(h){let x=parseInt(h[1]||"12",10),y=h[2]||"00",C=h[4]||"",w=x>=12?"PM":"AM";return`${x%12===0?12:x%12}:${y} ${w}${C?` (${C})`:""}`}return s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Fs.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:l,children:[(0,Et.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Et.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Et.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Et.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Et.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Et.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}var to=require("react/jsx-runtime");function Os(e){let{cell:t,column:a,onSubmit:o}=e,{group:r,options:n,isArray:s}=a.datatype,i=a.isComputed||e.readonly,l=t.getValue(),u=l===void 0?"":l;return r==="datetime"?(0,to.jsx)(Cm,{onSubmit:o,value:u,column:a,readonly:i}):r==="time"?(0,to.jsx)(Pm,{onSubmit:o,value:u,column:a,readonly:i}):r==="json"||s?(0,to.jsx)(wm,{onSubmit:o,value:u,column:a,readonly:i}):r==="boolean"?(0,to.jsx)(xm,{onSubmit:o,value:u,column:a,readonly:i}):r==="enum"?(0,to.jsx)(bm,{onSubmit:o,value:u,options:n,column:a,readonly:i}):r==="numeric"?(0,to.jsx)(Lm,{onSubmit:o,value:u,column:a,readonly:i}):(0,to.jsx)(Im,{onSubmit:o,value:(0,Mm.isObjectType)(u)?JSON.stringify(u):u,readonly:i})}b();var Rm=require("@tanstack/react-table"),Am=require("remeda");var ao=require("react/jsx-runtime");function Tm(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=!!vs();function n(l,u){o(d=>{let c=[...d];return c[l]={...c[l],...u},c})}let s=Object.values(t.options.columns).map(l=>l.id==="__ps_select"?{...l,cell(){return()=>(0,ao.jsx)(an,{})}}:{...l,cell({cell:u}){return d=>(0,ao.jsx)(Ms,{cellComponent:Ps({cell:u,column:l.meta,props:d}),inputComponent:Os({cell:u,column:l.meta,onSubmit(c){n(d.rowIndex,{[l.id]:c})},readonly:r})})}}),i=(0,Rm.useReactTable)({...t.options,columns:s,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Am.omit)(t.options.state,["pagination","sorting"])});return(0,ao.jsx)(ao.Fragment,{children:i.getRowModel().rows.map((l,u)=>(0,ao.jsx)(wo,{children:l.getVisibleCells().map((d,c)=>{if(typeof d.column.columnDef.cell=="function"){let p=d.column.columnDef.cell(d.getContext());return(0,ao.jsx)(p,{...ln(d.column,"cell"),rowIndex:u},c)}return null})},u))})}var ve=require("react/jsx-runtime");function Fm(e){let t=!!(0,Dm.useIsMutating)(),{activeTable:a,onError:o,isFullscreen:r,toggleFullscreen:n}=Ze(),{sortingState:s,setSortingState:i}=pp(),{paginationState:l,setPaginationState:u}=bs(),[d,c]=(0,hn.useState)([]),{data:p,isFetching:f}=lp({...l,sortOrder:s}),{deleteSelection:m,isSelecting:g,rowSelectionState:h,setRowSelectionState:x}=fp(p),[y,C]=(0,hn.useState)({kind:"ColumnFilters",and:[]}),w=!Object.values(a?.columns??{}).some(J=>J.isInPrimaryKey),L=vs(),E=np(),D=ip();if((0,hn.useEffect)(()=>c([]),[a]),!a)return null;function T(){E.mutate(d,{onError:o,onSuccess(){Em.toast.success("Rows inserted successfully"),c([])}})}function S(){c(J=>[...J,{}])}function I(){c([])}function _(J,ne,me){D.mutate({details:{changes:{[ne.name]:J},row:me,table:a},options:{}})}let F=Object.values(a?.columns??{}).map(J=>({id:J.name,accessorKey:J.name,meta:J,header(){return fm({column:J})},cell({cell:ne}){return me=>(0,ve.jsx)(Ms,{cellComponent:Ps({cell:ne,column:J,props:me}),inputComponent:Os({cell:ne,column:J,readonly:w,onSubmit(xe){return _(xe,J,ne.row.original)}})})}})),re=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,enableResizing:!1,enableSorting:!1,disableDragging:!0,size:0,header({table:J}){return(0,ve.jsx)(wr,{checked:J.getIsAllRowsSelected(),onCheckedChange:ne=>J.toggleAllRowsSelected(!!ne),disabled:w})},cell({row:J}){return ne=>(0,ve.jsx)(fi,{row:J,readonly:w,...ne})}}],fe=[...F,...re].sort(YC);return(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:(0,ve.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,ve.jsxs)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:[(0,ve.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ve.jsxs)(uu,{children:[(0,ve.jsx)(du,{asChild:!0,children:(0,ve.jsx)(Fe,{variant:"outline",size:"sm",children:(0,ve.jsx)(pr,{})})}),(0,ve.jsx)(Us,{align:"start",side:"bottom",className:"ps-w-min",children:(0,ve.jsx)(Kp,{filter:y,setFilter:C})})]}),(0,ve.jsx)(Fe,{variant:"outline",size:"sm",onClick:S,disabled:L>0,children:"Insert row"}),d.length>0&&(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(Fe,{variant:"secondary",size:"sm",onClick:T,children:"Save"}),(0,ve.jsx)(Fe,{variant:"ghost",size:"sm",onClick:I,children:"Cancel"})]}),g&&(0,ve.jsx)(ve.Fragment,{children:(0,ve.jsx)(Fe,{variant:"secondary",size:"sm",onClick:m,children:"Delete"})})]}),(0,ve.jsx)(Fe,{variant:"outline",size:"icon",onClick:n,children:r?(0,ve.jsx)(hr,{}):(0,ve.jsx)(gr,{})})]})})}),(0,ve.jsx)(lm,{columnDefs:fe,getBeforeRows:J=>(0,ve.jsx)(Tm,{table:J,stagedRows:d,setStagedRows:c}),isLoading:f,isProcessing:t,onPaginationChange:u,onRowSelectionChange:x,onSortingChange:i,pageCount:JC(p?.filteredRowCount??1/0,l.pageSize),paginationState:l,rows:p?.rows??[],rowSelectionState:h,sortingState:s})]})}function JC(e,t){if(e===1/0)return;let a=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER}function YC(e,t){let a=e.meta,o=t.meta;return e.id==="__ps_select"||t.id==="__ps_select"?1:a===void 0||o===void 0?0:a.isInPrimaryKey&&!o.isInPrimaryKey?-1:!a.isInPrimaryKey&&o.isInPrimaryKey?1:a.name.localeCompare(o.name)}b();var Um=require("@radix-ui/react-slot");b();var Bm=require("react/jsx-runtime");function Om({className:e,...t}){return(0,Bm.jsx)("div",{className:U("ps-animate-pulse ps-rounded-md ps-bg-primary/10",e),...t})}b();var oo=require("react"),Nm=require("uuid");b();var $m=require("@tanstack/react-query");var Bs=-1;function qm(){let{adapter:e}=Ze();return(0,$m.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC",filterOperators:[]},initialDataUpdatedAt:Bs,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===Bs?0:1/0})}function zm(){let{activeTable:e,setActiveTable:t,adapter:a,emitTelemetryEvent:o}=Ze(),{data:r,dataUpdatedAt:n}=qm(),s=n===Bs,i=(0,oo.useMemo)(()=>Object.values(r.schemas[a.defaultSchema||"db"]?.tables||{}),[r.schemas,a.defaultSchema]),l=(0,oo.useMemo)(()=>Object.values(r.schemas).reduce((g,h)=>g+Object.keys(h.tables).length,0),[r.schemas]),[u]=i,[d,c]=en({table:{defaultValue:null,parse:g=>g,serialize:g=>g??""},schema:{defaultValue:"",parse:g=>g,serialize:g=>g??""}}),[,p]=Ko("pageIndex",{parse:g=>g,serialize:g=>g??""}),[,f]=Ko("sort",{parse:g=>g,serialize:g=>g??""});(0,oo.useEffect)(()=>{if(!s){if(d?.table&&i.length>0){let g=i.find(h=>h.name===d.table);if(g){t(g);return}}i.length>0&&!e&&(t(u||null),u&&c({table:u.name,schema:u.schema}))}},[s,d,i,u,e,t,c]);let m=(0,oo.useCallback)(g=>{e!==g&&(t(g),c({table:g.name,schema:g.schema}),p(null),f(null))},[e,t,c,p,f]);return(0,oo.useEffect)(()=>{n!==-1&&o({event:"studio_launched",payload:{event_id:(0,Nm.v4)(),timestamp:new Date().toISOString(),table_count:l}})},[i,o,n,l]),{tables:i,activeTable:e,isLoading:s,handleTableChange:m}}var gt=require("react/jsx-runtime");function ro(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=zm();return(0,gt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0 ps-overflow-y-auto ps-max-h-full ps-min-h-0 ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",children:(0,gt.jsx)(ro.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,gt.jsx)(ro.Item,{isActive:t===r,onClick:()=>{o(r)},className:"ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-primary/5 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:r.name},`${r.schema}-${r.name}`)):a?Array(4).fill(null).map((r,n)=>(0,gt.jsx)(ro.Item,{wrapChildrenInSpan:!1,children:(0,gt.jsx)(Om,{className:"ps-h-3 ps-w-full"})},n)):(0,gt.jsx)(ro.Item,{children:"No tables found"})})})}var eb=({className:e,label:t,children:a,...o})=>(0,gt.jsxs)("div",{className:e,...o,children:[(0,gt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4 ps-sticky ps-top-0 ps-bg-card",children:(0,gt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,gt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),tb=({className:e,asChild:t=!1,isActive:a,size:o,children:r,wrapChildrenInSpan:n=!0,...s})=>(0,gt.jsx)(t?Um.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:U("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),...s,children:n?(0,gt.jsx)("span",{className:"ps-truncate",children:r}):r});ro.Block=eb;ro.Item=tb;var la=require("react/jsx-runtime");function Hm(e){let{adapter:t,onError:a,onTelemetryEvent:o}=e;return t?(0,la.jsx)(op,{adapter:t,onError:a,onTelemetryEvent:o,children:(0,la.jsx)(ab,{})}):(console.error("No adapter provided to Studio component"),(0,la.jsx)("div",{children:"Error: No adapter provided"}))}function ab(){let{isFullscreen:e}=Ze(),t=U("ps-flex ps-flex-col ps-w-full ps-min-h-0 ps-max-h-full",e&&"ps-fixed ps-inset-0 ps-z-[9999] ps-bg-background ps-p-2");return(0,la.jsx)("div",{className:t,children:(0,la.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full ps-min-h-full",children:[(0,la.jsx)(ro,{}),(0,la.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-bg-slate-100 ps-border ps-rounded-lg ps-self-start ps-h-full ps-min-h-full ps-max-h-full ps-overflow-clip",children:(0,la.jsx)(Fm,{})})]})})}0&&(module.exports={Studio});
1219
+ `}}),V.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${ra.grayAlt}`,display:"flex",flexDirection:"column"}},V.default.createElement("div",{style:{padding:".5em",background:ra.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},V.default.createElement(jp,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),V.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",V.default.createElement("span",{style:{fontWeight:100}},"Devtools")),V.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?V.default.createElement(qC,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),V.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(na,{label:"Instance",value:o,defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(na,{label:"State",value:o.getState(),defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(na,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(na,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),V.default.createElement(na,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),V.default.createElement(na,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),V.default.createElement(na,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),V.default.createElement(na,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Ja=require("react");C();var Yp=require("@tanstack/react-table");var dn=require("motion/react");C();var ce=xe(require("@radix-ui/react-dropdown-menu"),1);var Pa=xe(require("react"),1);var Ke=require("react/jsx-runtime"),Zp=ce.Root,Jp=ce.Trigger;var _C=Pa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(ce.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,Ke.jsx)(ma,{className:"ps-ml-auto"})]}));_C.displayName=ce.SubTrigger.displayName;var VC=Pa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.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}));VC.displayName=ce.SubContent.displayName;var wi=Pa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(ce.Portal,{children:(0,Ke.jsx)(ce.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})}));wi.displayName=ce.Content.displayName;var $s=Pa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.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}));$s.displayName=ce.Item.displayName;var GC=Pa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(ce.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,Ke.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,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)($t,{className:"ps-h-4 ps-w-4"})})}),t]}));GC.displayName=ce.CheckboxItem.displayName;var KC=Pa.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(ce.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,Ke.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,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(uo,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));KC.displayName=ce.RadioItem.displayName;var WC=Pa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Label,{ref:o,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));WC.displayName=ce.Label.displayName;var QC=Pa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));QC.displayName=ce.Separator.displayName;var jC=({className:e,...t})=>(0,Ke.jsx)("span",{className:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});jC.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function em(e){let{header:t,className:a}=e;return(0,ie.jsxs)("div",{className:_("ps-flex ps-items-center ps-justify-between",a),children:[(0,ie.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,ie.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,ie.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,ie.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,Yp.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,ie.jsxs)("span",{className:"ps-relative ps-flex ps-shrink-0 ps-gap-1",children:[(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-ml-1",children:(0,ie.jsx)(dn.AnimatePresence,{mode:"wait",children:t.column.getIsSorted()==="desc"?(0,ie.jsx)(dn.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:(0,ie.jsx)(yr,{size:14,className:"ps-text-muted-foreground"})},"desc"):t.column.getIsSorted()==="asc"?(0,ie.jsx)(dn.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},children:(0,ie.jsx)(vr,{size:14,className:"ps-text-muted-foreground"})},"asc"):null})}),t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(Zp,{children:[(0,ie.jsx)(Jp,{asChild:!0,children:(0,ie.jsx)(Be,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ie.jsx)($a,{size:12})})}),(0,ie.jsxs)(wi,{children:[t.column.getCanSort()&&(0,ie.jsx)($s,{onClick:()=>t.column.toggleSorting(),children:(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Ba,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(lr,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Lr,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)($s,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(Cr,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(br,{size:16}),"Pin column"]})})]})]})]})]}),t.column.getCanResize()&&(0,ie.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),t.getResizeHandler()(o))},className:_("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}C();var Li=require("react/jsx-runtime");function tm({className:e}){return(0,Li.jsx)("div",{"data-loading-bar":!0,className:_("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,Li.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}C();var Ve=require("react/jsx-runtime");function am(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount();return(0,Ve.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip ps-sticky ps-bottom-0 ps-left-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:a==="basic"?(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Be,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ve.jsx)(Be,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(dr,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(ir,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Ve.jsx)(_t,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:n=>{let s=n.target.value?Number(n.target.value)-1:0;t.setPageIndex(s)}}),(0,Ve.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(ma,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(cr,{className:"ps-w-4 ps-h-4"})})]})})})})}C();function cn(e,t){let a=e.getIsPinned(),o=a==="left"&&e.getIsFirstColumn("left"),r=a==="right"&&e.getIsFirstColumn("right"),n=o||r;return{className:_("ps-group ps-border-r ps-border-b ps-border-table-border","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",n&&t==="header"&&"ps-sticky ps-z-10",n&&t==="cell"&&"ps-sticky ps-z-9",n&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.columnDef.size,left:o?`${e.getStart("left")}px`:void 0,right:r?`${e.getAfter("right")}px`:void 0}}}var Fe=require("react/jsx-runtime"),XC=e=>{let{children:t,className:a,header:o,style:r}=e,n="disableDragging"in o.column.columnDef,{attributes:s,listeners:i,transform:l,transition:u,setNodeRef:d,isDragging:c}=(0,eo.useSortable)({id:o.id}),p={...r,cursor:"grab",touchAction:"none",transform:rm.CSS.Transform.toString(l),transition:u},f=_(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-bg-table-head"),m=_(f,c&&"!ps-z-50 ps-border-2 ps-border-violet-500");return(0,Fe.jsx)(ti,{ref:d,...s,...i,style:n?r:p,className:n?f:m,children:(0,Fe.jsx)("div",{className:"ps-w-full",children:t})})};function nm(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:p}=e,[f,m]=(0,Ja.useState)([]),[g,h]=(0,Ja.useState)({left:["__ps_select"],right:[]}),[x,y]=(0,Ja.useState)({}),b=(0,Ja.useMemo)(()=>om(p),[p]),w=o||r;(0,Ja.useEffect)(()=>m(t.map(({accessorKey:S})=>S)),[]);function L({active:S,over:I}){I&&S.id!==I.id&&m(H=>{let F=H.indexOf(S.id),re=H.indexOf(I.id);return(0,eo.arrayMove)(H,F,re)})}let D=(0,Ya.useSensor)(Ya.MouseSensor,{activationConstraint:{distance:10}}),E=(0,Ya.useSensors)(D),A=(0,qs.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&p),getCoreRowModel:(0,qs.getCoreRowModel)(),getRowId:({__ps_rowid:S})=>S,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:y,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:S=>i?.(I=>(typeof S=="function"&&(S=S(om(I))),ZC(S))),pageCount:l,state:{columnOrder:f,columnPinning:g,columnSizing:x,pagination:u,rowSelection:c,sorting:b}});return(0,Fe.jsxs)(Fe.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Fe.jsx)(Xp,{table:A}),(0,Fe.jsxs)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative",children:[(0,Fe.jsx)("div",{children:w&&(0,Fe.jsx)(tm,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Fe.jsx)(Ya.DndContext,{sensors:E,onDragEnd:L,children:(0,Fe.jsxs)(Jl,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border ps-w-auto",children:[(0,Fe.jsx)(Yl,{children:A.getHeaderGroups().map(S=>(0,Fe.jsx)(Lo,{children:(0,Fe.jsx)(eo.SortableContext,{items:S.headers.filter(I=>!("disableDragging"in I.column.columnDef)).map(I=>I.id),strategy:eo.horizontalListSortingStrategy,children:S.headers.map(I=>(0,Fe.jsx)(XC,{header:I,table:A,...cn(I.column,"header"),children:(0,Fe.jsx)(em,{header:I})},I.id))})},S.id))}),(0,Fe.jsxs)(ei,{children:[a?.(A),A.getRowModel().rows?.length?A.getRowModel().rows.map(S=>(0,Fe.jsx)(Lo,{className:_("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:S.getVisibleCells().map((I,H)=>{if(typeof I.column.columnDef.cell=="function"){let F=I.column.columnDef.cell(I.getContext());return(0,Fe.jsx)(F,{...cn(I.column,"cell")},H)}return null})},S.id)):(0,Fe.jsx)(Lo,{children:(0,Fe.jsx)(rn,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,Fe.jsx)(am,{table:A,variant:"numeric"})]})]})}function om(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function ZC(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}C();C();var Gt=xe(require("@radix-ui/react-tooltip"),1),sm=xe(require("react"),1);var Si=require("react/jsx-runtime"),lm=Gt.Provider,im=Gt.Root,um=Gt.Trigger,Ii=sm.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Si.jsx)(Gt.Portal,{children:(0,Si.jsx)(Gt.Content,{ref:o,sideOffset:t,className:_("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-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-tooltip-content-transform-origin]",e),...a})}));Ii.displayName=Gt.Content.displayName;var Dt=require("react/jsx-runtime");function dm({column:e}){return e.isInPrimaryKey?(0,Dt.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,Dt.jsx)(lm,{delayDuration:300,children:(0,Dt.jsxs)(im,{children:[(0,Dt.jsx)(um,{asChild:!0,children:(0,Dt.jsx)(mr,{size:12})}),(0,Dt.jsx)(Ii,{children:(0,Dt.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,Dt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,Dt.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,Dt.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}C();var Mm=require("remeda");C();var Mi=require("motion/react"),gn=xe(require("react"),1);C();var ki=xe(require("@radix-ui/react-label"),1),cm=require("class-variance-authority"),fm=xe(require("react"),1);var pm=require("react/jsx-runtime"),JC=(0,cm.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),fn=fm.forwardRef(({className:e,...t},a)=>(0,pm.jsx)(ki.Root,{ref:a,className:_(JC(),e),...t}));fn.displayName=ki.Root.displayName;C();var pn=xe(require("@radix-ui/react-switch"),1),mm=xe(require("react"),1);var Pi=require("react/jsx-runtime"),mn=mm.forwardRef(({className:e,...t},a)=>(0,Pi.jsx)(pn.Root,{className:_("ps-peer ps-inline-flex ps-h-5 ps-w-9 ps-shrink-0 ps-cursor-pointer ps-items-center ps-rounded-full ps-border-2 ps-border-transparent ps-shadow-sm ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-2 focus-visible:ps-ring-ring focus-visible:ps-ring-offset-2 focus-visible:ps-ring-offset-background disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=unchecked]:ps-bg-input",e),...t,ref:a,children:(0,Pi.jsx)(pn.Thumb,{className:_("ps-pointer-events-none ps-block ps-h-4 ps-w-4 ps-rounded-full ps-bg-background ps-shadow-lg ps-ring-0 ps-transition-transform data-[state=checked]:ps-translate-x-4 data-[state=unchecked]:ps-translate-x-0")})}));mn.displayName=pn.Root.displayName;C();var st=require("react/jsx-runtime"),mt=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1,readonly:n})=>(0,st.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs ps-",children:!n&&(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground",children:(0,st.jsx)(pr,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground ps-text-[8px] ps-leading-none ps-font-semibold",children:"Esc"})," ","Cancel changes"]})]}),o&&(0,st.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,st.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,st.jsx)(mn,{id:"set-nullable",checked:r,onCheckedChange:u=>{o&&o(u)}}),(0,st.jsx)("span",{children:"Set to NULL"})]})})]})});var Kt=require("react/jsx-runtime");function gm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,gn.useState)(t===null?!1:t),[l,u]=(0,gn.useState)(t===null),d=t===null?!1:t,c=x=>{i(x)},p=x=>{u(x)},f=gn.default.useCallback(()=>{let x=l?null:s;return x!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0 ps-px-2",children:[(0,Kt.jsx)(fn,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Kt.jsx)(Mi.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Kt.jsx)(mn,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:l||r})}),(0,Kt.jsx)(Mi.motion.div,{"data-value":!0,className:"ps-inline-flex ps-items-center ps-text-xs ps-text-muted-foreground ps-font-mono",initial:{x:-40,opacity:1},animate:{x:0,opacity:1},transition:{duration:.12,delay:0},children:l?"NULL":String(s)})]}),(0,Kt.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}C();var Ri=xe(require("dayjs"),1),xm=xe(require("dayjs/plugin/localizedFormat"),1),Ns=require("react");C();var hm=require("react");function Xo(e){let{initialValue:t}=e,[a,o]=(0,hm.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Et=require("react/jsx-runtime");Ri.default.extend(xm.default);function ym(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Ns.useMemo)(()=>{try{let f=(0,Ri.default)(s);return f.isValid()?s.includes(":")?f.format("LL LTS"):f.format("LL"):s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Ns.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:l,children:[(0,Et.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Et.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Et.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Et.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Et.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Et.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}C();var hn=require("react");C();var vm=require("class-variance-authority");var YC=require("react/jsx-runtime"),Cm=(0,vm.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});var Ma=require("react/jsx-runtime");function bm(e){let{onSubmit:t,column:a,value:o,options:r=[],readonly:n}=e,s=a.nullable===!0,i=String(o),[l,u]=(0,hn.useState)(i),[d,c]=(0,hn.useState)(o===null),p=y=>{u(y)},f=y=>{c(y)},m=(0,hn.useCallback)(()=>d?o!==null?(t(null),!0):!1:l!==i?(t(l),!0):!1,[l,i,t,d,o]),g=()=>{u(i),c(o===null)},{handleSave:h,handleCancel:x}=pt({onSave:m,onCancel:g,readonly:n});return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-font-mono ps-h-[var(--studio-cell-height)] ps-px-2 ps-py-0 ps-w-full ps-text-xs ps-text-muted-foreground",children:l}),(0,Ma.jsx)("div",{className:"ps-flex ps-flex-row ps-flex-wrap ps-gap-2 ps-p-2 ps-min-w-[var(--radix-popover-trigger-width)] ps-max-w-min ps-border-t ps-border-table-border ps-overflow-y-scroll ps-max-h-32",children:r.map(y=>(0,Ma.jsx)("button",{onClick:()=>p(y),className:Cm({variant:y===l?"default":"outline"}),disabled:d||n,children:y},y))}),(0,Ma.jsx)(mt,{onSave:h,onCancel:x,onNullChange:s?f:void 0,isNull:d,readonly:n})]})}C();var xn=xe(require("react"),1);var to=require("react/jsx-runtime");function wm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,s=t===null?"":JSON.stringify(t,null,2),[i,l]=(0,xn.useState)(s),[u,d]=(0,xn.useState)(t===null),c=x=>{l(x.target.value)},p=x=>{d(x)},f=xn.default.useCallback(()=>{if(u)return t!==null?(a(null),!0):!1;let x=i===""?null:JSON.parse(i);return x!==t?(a(x),!0):!1},[i,t,a,u]),m=()=>{l(s),d(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,to.jsxs)(to.Fragment,{children:[(0,to.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,to.jsx)("textarea",{rows:5,value:i,onChange:c,disabled:u||r,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,to.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:u,readonly:r})]})}C();var yn=xe(require("react"),1);var Ra=require("react/jsx-runtime");function Lm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,yn.useState)(t===null?"":String(t)),[l,u]=(0,yn.useState)(t===null),d=t===null?"":String(t),c=x=>{i(x.target.value)},p=x=>{u(x)},f=yn.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let x=s===""?null:Number(s);return s!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Ra.jsxs)(Ra.Fragment,{children:[(0,Ra.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,Ra.jsx)(fn,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ra.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:s,onChange:c,disabled:l||r,className:"ps-cell-input-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,Ra.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}C();var Sm=xe(require("react"),1);var Aa=require("react/jsx-runtime");function Im(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r});function i(p){p.preventDefault(),s!==r&&t(s)}let l=Sm.default.useCallback(()=>s!==r?(t(s),!0):!1,[s,r,t]),u=()=>{},{handleSave:d,handleCancel:c}=pt({onSave:l,onCancel:u,readonly:o});return(0,Aa.jsxs)(Aa.Fragment,{children:[(0,Aa.jsxs)("form",{onSubmit:i,children:[(0,Aa.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s,disabled:o}),(0,Aa.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Aa.jsx)(mt,{onSave:d,onCancel:c,readonly:o})]})}C();var Ai=xe(require("dayjs"),1),km=xe(require("dayjs/plugin/localizedFormat"),1),zs=require("react");var Ft=require("react/jsx-runtime");Ai.default.extend(km.default);function Pm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,zs.useMemo)(()=>{try{if(!s.includes(":"))return s;let f=/[+-]\d{2}(:\d{2})?$/.test(s),m=(0,Ai.default)(`2000-01-01 ${s}`);if(m.isValid())return m.format("h:mm A")+(f?` (${m.format("Z")})`:"");let g=/(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?([+-]\d{2}(?::\d{2})?)?/,h=s.match(g);if(h){let x=parseInt(h[1]||"12",10),y=h[2]||"00",b=h[4]||"",w=x>=12?"PM":"AM";return`${x%12===0?12:x%12}:${y} ${w}${b?` (${b})`:""}`}return s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,zs.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsxs)("form",{onSubmit:l,children:[(0,Ft.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Ft.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Ft.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Ft.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Ft.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Ft.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}var ao=require("react/jsx-runtime");function Us(e){let{cell:t,column:a,onSubmit:o}=e,{group:r,options:n,isArray:s}=a.datatype,i=a.isComputed||e.readonly,l=t.getValue(),u=l===void 0?"":l;return r==="datetime"?(0,ao.jsx)(ym,{onSubmit:o,value:u,column:a,readonly:i}):r==="time"?(0,ao.jsx)(Pm,{onSubmit:o,value:u,column:a,readonly:i}):r==="json"||s?(0,ao.jsx)(wm,{onSubmit:o,value:u,column:a,readonly:i}):r==="boolean"?(0,ao.jsx)(gm,{onSubmit:o,value:u,column:a,readonly:i}):r==="enum"?(0,ao.jsx)(bm,{onSubmit:o,value:u,options:n,column:a,readonly:i}):r==="numeric"?(0,ao.jsx)(Lm,{onSubmit:o,value:u,column:a,readonly:i}):(0,ao.jsx)(Im,{onSubmit:o,value:(0,Mm.isObjectType)(u)?JSON.stringify(u):u,readonly:i})}C();var Rm=require("@tanstack/react-table"),Am=require("remeda");var oo=require("react/jsx-runtime");function Tm(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=!!Ls();function n(l,u){o(d=>{let c=[...d];return c[l]={...c[l],...u},c})}let s=Object.values(t.options.columns).map(l=>l.id==="__ps_select"?{...l,cell(){return()=>(0,oo.jsx)(nn,{})}}:{...l,cell({cell:u}){return d=>(0,oo.jsx)(Ds,{cellComponent:Ts({cell:u,column:l.meta,props:d}),inputComponent:Us({cell:u,column:l.meta,onSubmit(c){n(d.rowIndex,{[l.id]:c})},readonly:r})})}}),i=(0,Rm.useReactTable)({...t.options,columns:s,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Am.omit)(t.options.state,["pagination","sorting"])});return(0,oo.jsx)(oo.Fragment,{children:i.getRowModel().rows.map((l,u)=>(0,oo.jsx)(Lo,{children:l.getVisibleCells().map((d,c)=>{if(typeof d.column.columnDef.cell=="function"){let p=d.column.columnDef.cell(d.getContext());return(0,oo.jsx)(p,{...cn(d.column,"cell"),rowIndex:u},c)}return null})},u))})}var Le=require("react/jsx-runtime");function Fm(e){let t=!!(0,Dm.useIsMutating)(),{activeTable:a,onError:o,isFullscreen:r,toggleFullscreen:n,toggleNavigation:s,isNavigationOpen:i}=Ze(),{sortingState:l,setSortingState:u}=pp(),{paginationState:d,setPaginationState:c}=Is(),[p,f]=(0,vn.useState)([]),{data:m,isFetching:g}=lp({...d,sortOrder:l}),{deleteSelection:h,isSelecting:x,rowSelectionState:y,setRowSelectionState:b}=fp(m),[w,L]=(0,vn.useState)({kind:"ColumnFilters",and:[]}),D=!Object.values(a?.columns??{}).some(Y=>Y.isInPrimaryKey),E=Ls(),A=np(),S=ip();if((0,vn.useEffect)(()=>f([]),[a]),!a)return null;function I(){A.mutate(p,{onError:o,onSuccess(){Em.toast.success("Rows inserted successfully"),f([])}})}function H(){f(Y=>[...Y,{}])}function F(){f([])}function re(Y,ne,pe){S.mutate({details:{changes:{[ne.name]:Y},row:pe,table:a},options:{}})}let fe=Object.values(a?.columns??{}).map(Y=>({id:Y.name,accessorKey:Y.name,meta:Y,header(){return dm({column:Y})},cell({cell:ne}){return pe=>(0,Le.jsx)(Ds,{cellComponent:Ts({cell:ne,column:Y,props:pe}),inputComponent:Us({cell:ne,column:Y,readonly:D,onSubmit(Re){return re(Re,Y,ne.row.original)}})})}})),be=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,enableResizing:!1,enableSorting:!1,disableDragging:!0,size:0,header({table:Y}){return(0,Le.jsx)(Ir,{checked:Y.getIsAllRowsSelected(),onCheckedChange:ne=>Y.toggleAllRowsSelected(!!ne),disabled:D})},cell({row:Y}){return ne=>(0,Le.jsx)(hi,{row:Y,readonly:D,...ne})}}],he=[...fe,...be].sort(tb);return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:(0,Le.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,Le.jsxs)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:[(0,Le.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,Le.jsx)(Be,{variant:"outline",size:"sm",onClick:s,children:i?(0,Le.jsx)(Na,{}):(0,Le.jsx)(za,{})}),(0,Le.jsx)(Be,{variant:"outline",size:"sm",onClick:H,disabled:E>0,children:"Insert row"}),p.length>0&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Be,{variant:"secondary",size:"sm",onClick:I,children:"Save"}),(0,Le.jsx)(Be,{variant:"ghost",size:"sm",onClick:F,children:"Cancel"})]}),x&&(0,Le.jsx)(Le.Fragment,{children:(0,Le.jsx)(Be,{variant:"secondary",size:"sm",onClick:h,children:"Delete"})})]}),(0,Le.jsx)(Be,{variant:"outline",size:"icon",onClick:n,children:r?(0,Le.jsx)(xr,{}):(0,Le.jsx)(hr,{})})]})})}),(0,Le.jsx)(Vp,{filter:w,setFilter:L}),(0,Le.jsx)(nm,{columnDefs:he,getBeforeRows:Y=>(0,Le.jsx)(Tm,{table:Y,stagedRows:p,setStagedRows:f}),isLoading:g,isProcessing:t,onPaginationChange:c,onRowSelectionChange:b,onSortingChange:u,pageCount:eb(m?.filteredRowCount??1/0,d.pageSize),paginationState:d,rows:m?.rows??[],rowSelectionState:y,sortingState:l})]})}function eb(e,t){if(e===1/0)return;let a=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER}function tb(e,t){let a=e.meta,o=t.meta;return e.id==="__ps_select"||t.id==="__ps_select"?1:a===void 0||o===void 0?0:a.isInPrimaryKey&&!o.isInPrimaryKey?-1:!a.isInPrimaryKey&&o.isInPrimaryKey?1:a.name.localeCompare(o.name)}C();var Um=require("@radix-ui/react-slot");C();var Bm=require("react/jsx-runtime");function Om({className:e,...t}){return(0,Bm.jsx)("div",{className:_("ps-animate-pulse ps-rounded-md ps-bg-primary/10",e),...t})}C();var ro=require("react"),Nm=require("uuid");C();var $m=require("@tanstack/react-query");var Hs=-1;function qm(){let{adapter:e}=Ze();return(0,$m.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC",filterOperators:[]},initialDataUpdatedAt:Hs,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===Hs?0:1/0})}function zm(){let{activeTable:e,setActiveTable:t,adapter:a,emitTelemetryEvent:o}=Ze(),{data:r,dataUpdatedAt:n}=qm(),s=n===Hs,i=(0,ro.useMemo)(()=>Object.values(r.schemas[a.defaultSchema||"db"]?.tables||{}),[r.schemas,a.defaultSchema]),l=(0,ro.useMemo)(()=>Object.values(r.schemas).reduce((g,h)=>g+Object.keys(h.tables).length,0),[r.schemas]),[u]=i,[d,c]=on({table:{defaultValue:null,parse:g=>g,serialize:g=>g??""},schema:{defaultValue:"",parse:g=>g,serialize:g=>g??""}}),[,p]=Qo("pageIndex",{parse:g=>g,serialize:g=>g??""}),[,f]=Qo("sort",{parse:g=>g,serialize:g=>g??""});(0,ro.useEffect)(()=>{if(!s){if(d?.table&&i.length>0){let g=i.find(h=>h.name===d.table);if(g){t(g);return}}i.length>0&&!e&&(t(u||null),u&&c({table:u.name,schema:u.schema}))}},[s,d,i,u,e,t,c]);let m=(0,ro.useCallback)(g=>{e!==g&&(t(g),c({table:g.name,schema:g.schema}),p(null),f(null))},[e,t,c,p,f]);return(0,ro.useEffect)(()=>{n!==-1&&o({event:"studio_launched",payload:{event_id:(0,Nm.v4)(),timestamp:new Date().toISOString(),table_count:l}})},[i,o,n,l]),{tables:i,activeTable:e,isLoading:s,handleTableChange:m}}var gt=require("react/jsx-runtime");function no({className:e}){let{tables:t,activeTable:a,isLoading:o,handleTableChange:r}=zm(),n=_("ps-flex ps-flex-col ps-w-48 ps-gap-4 ps-shrink-0 ps-overflow-y-auto ps-max-h-full ps-min-h-0 ps-text-card-foreground ps-shadow-xs",e);return(0,gt.jsx)("div",{className:n,children:(0,gt.jsx)(no.Block,{label:"Tables",children:t.length>0?t.map(s=>(0,gt.jsx)(no.Item,{isActive:a===s,onClick:()=>{r(s)},className:"ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-slate-200 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:s.name},`${s.schema}-${s.name}`)):o?Array(4).fill(null).map((s,i)=>(0,gt.jsx)(no.Item,{wrapChildrenInSpan:!1,children:(0,gt.jsx)(Om,{className:"ps-h-3 ps-w-full"})},i)):(0,gt.jsx)(no.Item,{children:"No tables found"})})})}var ab=({className:e,label:t,children:a,...o})=>(0,gt.jsxs)("div",{className:e,...o,children:[(0,gt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4 ps-sticky ps-top-0 ps-bg-slate-50/50 ps-backdrop-blur-sm",children:(0,gt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,gt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),ob=({className:e,asChild:t=!1,isActive:a,size:o,children:r,wrapChildrenInSpan:n=!0,...s})=>(0,gt.jsx)(t?Um.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:_("ps-py-1.5 ps-px-2 ps-text-sm ps-font-medium ps-rounded-md ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent",e),...s,children:n?(0,gt.jsx)("span",{className:"ps-truncate",children:r}):r});no.Block=ab;no.Item=ob;var wt=require("react/jsx-runtime");function Hm(e){let{adapter:t,onError:a,onTelemetryEvent:o}=e;return t?(0,wt.jsx)(op,{adapter:t,onError:a,onTelemetryEvent:o,children:(0,wt.jsx)(rb,{})}):(console.error("No adapter provided to Studio component"),(0,wt.jsx)("div",{children:"Error: No adapter provided"}))}function rb(){let{isFullscreen:e,isNavigationOpen:t}=Ze(),a=_("ps-flex ps-flex-col ps-w-full ps-min-h-0 ps-max-h-full",e&&"ps-fixed ps-inset-0 ps-z-[9999] ps-bg-background ps-p-2");return(0,wt.jsx)("div",{className:a,children:(0,wt.jsxs)("div",{className:"ps-flex ps-gap-0 ps-w-full ps-bg-neutral-50 ps-relative ps-max-h-full ps-min-h-full ps-rounded-lg",children:[(0,wt.jsx)(Zo.AnimatePresence,{mode:"wait",children:t&&(0,wt.jsx)(Zo.motion.div,{className:"ps-p-2",children:(0,wt.jsx)(Zo.motion.div,{initial:{width:0,opacity:0},animate:{width:"auto",opacity:1},exit:{width:0,opacity:0},transition:{duration:.14},className:"ps-flex ps-gap-4",children:(0,wt.jsx)(no,{})})})}),(0,wt.jsx)(Zo.motion.div,{className:"ps-flex ps-w-full ps-bg-neutral-100 ps-flex-col ps-p-px ps-rounded-lg ps-self-start ps-h-full ps-min-h-full ps-max-h-full ps-overflow-clip",transition:{duration:.14},children:(0,wt.jsx)(Fm,{})})]})})}0&&(module.exports={Studio});
1220
1220
  /*! Bundled license information:
1221
1221
 
1222
1222
  @tanstack/query-devtools/build/chunk/WXAWMS3D.js:
@@ -1477,7 +1477,7 @@ lucide-react/dist/esm/icons/corner-down-left.js:
1477
1477
  * See the LICENSE file in the root directory of this source tree.
1478
1478
  *)
1479
1479
 
1480
- lucide-react/dist/esm/icons/filter.js:
1480
+ lucide-react/dist/esm/icons/grid-2x2-plus.js:
1481
1481
  (**
1482
1482
  * @license lucide-react v0.466.0 - ISC
1483
1483
  *
@@ -1501,6 +1501,14 @@ lucide-react/dist/esm/icons/key-round.js:
1501
1501
  * See the LICENSE file in the root directory of this source tree.
1502
1502
  *)
1503
1503
 
1504
+ lucide-react/dist/esm/icons/list-filter-plus.js:
1505
+ (**
1506
+ * @license lucide-react v0.466.0 - ISC
1507
+ *
1508
+ * This source code is licensed under the ISC license.
1509
+ * See the LICENSE file in the root directory of this source tree.
1510
+ *)
1511
+
1504
1512
  lucide-react/dist/esm/icons/maximize.js:
1505
1513
  (**
1506
1514
  * @license lucide-react v0.466.0 - ISC
@@ -1533,6 +1541,22 @@ lucide-react/dist/esm/icons/move-up.js:
1533
1541
  * See the LICENSE file in the root directory of this source tree.
1534
1542
  *)
1535
1543
 
1544
+ lucide-react/dist/esm/icons/panel-left-close.js:
1545
+ (**
1546
+ * @license lucide-react v0.466.0 - ISC
1547
+ *
1548
+ * This source code is licensed under the ISC license.
1549
+ * See the LICENSE file in the root directory of this source tree.
1550
+ *)
1551
+
1552
+ lucide-react/dist/esm/icons/panel-left-open.js:
1553
+ (**
1554
+ * @license lucide-react v0.466.0 - ISC
1555
+ *
1556
+ * This source code is licensed under the ISC license.
1557
+ * See the LICENSE file in the root directory of this source tree.
1558
+ *)
1559
+
1536
1560
  lucide-react/dist/esm/icons/pin-off.js:
1537
1561
  (**
1538
1562
  * @license lucide-react v0.466.0 - ISC
@@ -1549,6 +1573,22 @@ lucide-react/dist/esm/icons/pin.js:
1549
1573
  * See the LICENSE file in the root directory of this source tree.
1550
1574
  *)
1551
1575
 
1576
+ lucide-react/dist/esm/icons/shapes.js:
1577
+ (**
1578
+ * @license lucide-react v0.466.0 - ISC
1579
+ *
1580
+ * This source code is licensed under the ISC license.
1581
+ * See the LICENSE file in the root directory of this source tree.
1582
+ *)
1583
+
1584
+ lucide-react/dist/esm/icons/trash-2.js:
1585
+ (**
1586
+ * @license lucide-react v0.466.0 - ISC
1587
+ *
1588
+ * This source code is licensed under the ISC license.
1589
+ * See the LICENSE file in the root directory of this source tree.
1590
+ *)
1591
+
1552
1592
  lucide-react/dist/esm/icons/x.js:
1553
1593
  (**
1554
1594
  * @license lucide-react v0.466.0 - ISC