var S=s=>{throw TypeError(s)};var M=(s,t,e)=>t.has(s)||S("Cannot "+e);var r=(s,t,e)=>(M(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(s,t,e)=>t.has(s)?S("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),b=(s,t,e,i)=>(M(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),f=(s,t,e)=>(M(s,t,"access private method"),e);import{c as O,S as R,G as q,H as w,I as j,J as K,p as F,r as y,K as D,M as I,j as L,d as T,F as U}from"./index-BTrh13Nx.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G=O("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J=O("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N=O("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var h,c,a,n,o,x,C,H,V=(H=class extends R{constructor(t,e){super();p(this,o);p(this,h);p(this,c);p(this,a);p(this,n);b(this,h,t),this.setOptions(e),this.bindMethods(),f(this,o,x).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,h).defaultMutationOptions(t),q(this.options,e)||r(this,h).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,a),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&w(e.mutationKey)!==w(this.options.mutationKey)?this.reset():((i=r(this,a))==null?void 0:i.state.status)==="pending"&&r(this,a).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,a))==null||t.removeObserver(this)}onMutationUpdate(t){f(this,o,x).call(this),f(this,o,C).call(this,t)}getCurrentResult(){return r(this,c)}reset(){var t;(t=r(this,a))==null||t.removeObserver(this),b(this,a,void 0),f(this,o,x).call(this),f(this,o,C).call(this)}mutate(t,e){var i;return b(this,n,e),(i=r(this,a))==null||i.removeObserver(this),b(this,a,r(this,h).getMutationCache().build(r(this,h),this.options)),r(this,a).addObserver(this),r(this,a).execute(t)}},h=new WeakMap,c=new WeakMap,a=new WeakMap,n=new WeakMap,o=new WeakSet,x=function(){var e;const t=((e=r(this,a))==null?void 0:e.state)??j();b(this,c,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},C=function(t){K.batch(()=>{var e,i,u,v,d,m,k,E;if(r(this,n)&&this.hasListeners()){const l=r(this,c).variables,g=r(this,c).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,n)).onSuccess)==null||i.call(e,t.data,l,g),(v=(u=r(this,n)).onSettled)==null||v.call(u,t.data,null,l,g)):(t==null?void 0:t.type)==="error"&&((m=(d=r(this,n)).onError)==null||m.call(d,t.error,l,g),(E=(k=r(this,n)).onSettled)==null||E.call(k,void 0,t.error,l,g))}this.listeners.forEach(l=>{l(r(this,c))})})},H);function P(s,t){const e=F(),[i]=y.useState(()=>new V(e,s));y.useEffect(()=>{i.setOptions(s)},[i,s]);const u=y.useSyncExternalStore(y.useCallback(d=>i.subscribe(K.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),v=y.useCallback((d,m)=>{i.mutate(d,m).catch(D)},[i]);if(u.error&&I(i.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:v,mutateAsync:u.mutate}}const z=U("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Q({className:s,variant:t,...e}){return L.jsx("div",{className:T(z({variant:t}),s),...e})}export{Q as B,G as C,N as F,J as a,P as u};
