var Di=e=>{throw TypeError(e)};var An=(e,t,n)=>t.has(e)||Di("Cannot "+n);var l=(e,t,n)=>(An(e,t,"read from private field"),n?n.call(e):t.get(e)),T=(e,t,n)=>t.has(e)?Di("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),v=(e,t,n,i)=>(An(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),C=(e,t,n)=>(An(e,t,"access private method"),n);var Ze=(e,t,n,i)=>({set _(s){v(e,t,s,n)},get _(){return l(e,t,i)}});import{G as ur,l as fi,g as fr,s as Ee,w as dr,a as Es,b as di,c as Ts,d as Te,e as hi,f as kt,S as xs,h as Rs,i as $e,j as Cs,k as Os,m as ut,n as hr,p as pr,o as mr,q as pi,r as mi,t as Ne,u as pn,v as Li,x as gr,y as yr,z as br,A as _n,B as cn}from"./monitoring-ujEZdQJ7.js";import{r as U,b as vr}from"./react-core-lkHtAB4F.js";var xe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Se=typeof window>"u"||"Deno"in globalThis;function ot(){}function Sr(e,t){return typeof e=="function"?e(t):e}function Un(e){return typeof e=="number"&&e>=0&&e!==1/0}function ks(e,t){return Math.max(e+(t||0)-Date.now(),0)}function re(e,t){return typeof e=="function"?e(t):e}function lt(e,t){return typeof e=="function"?e(t):e}function Fi(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:r,queryKey:o,stale:a}=e;if(o){if(i){if(t.queryHash!==gi(o,t.options))return!1}else if(!je(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||r&&!r(t))}function Bi(e,t){const{exact:n,status:i,predicate:s,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(n){if(Zt(t.options.mutationKey)!==Zt(r))return!1}else if(!je(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function gi(e,t){return(t?.queryKeyHashFn||Zt)(e)}function Zt(e){return JSON.stringify(e,(t,n)=>qn(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function je(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>je(e[n],t[n])):!1}function Is(e,t){if(e===t)return e;const n=$i(e)&&$i(t);if(n||qn(e)&&qn(t)){const i=n?e:Object.keys(e),s=i.length,r=n?t:Object.keys(t),o=r.length,a=n?[]:{};let c=0;for(let u=0;u{setTimeout(t,e)})}function Qn(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Is(e,t):t}function Er(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function Tr(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var yi=Symbol();function Ps(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===yi?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ut,Mt,ae,ds,xr=(ds=class extends xe{constructor(){super();T(this,Ut);T(this,Mt);T(this,ae);v(this,ae,t=>{if(!Se&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){l(this,Mt)||this.setEventListener(l(this,ae))}onUnsubscribe(){var t;this.hasListeners()||((t=l(this,Mt))==null||t.call(this),v(this,Mt,void 0))}setEventListener(t){var n;v(this,ae,t),(n=l(this,Mt))==null||n.call(this),v(this,Mt,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){l(this,Ut)!==t&&(v(this,Ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof l(this,Ut)=="boolean"?l(this,Ut):globalThis.document?.visibilityState!=="hidden"}},Ut=new WeakMap,Mt=new WeakMap,ae=new WeakMap,ds),bi=new xr,ce,At,le,hs,Rr=(hs=class extends xe{constructor(){super();T(this,ce,!0);T(this,At);T(this,le);v(this,le,t=>{if(!Se&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){l(this,At)||this.setEventListener(l(this,le))}onUnsubscribe(){var t;this.hasListeners()||((t=l(this,At))==null||t.call(this),v(this,At,void 0))}setEventListener(t){var n;v(this,le,t),(n=l(this,At))==null||n.call(this),v(this,At,t(this.setOnline.bind(this)))}setOnline(t){l(this,ce)!==t&&(v(this,ce,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return l(this,ce)}},ce=new WeakMap,At=new WeakMap,le=new WeakMap,hs),gn=new Rr;function Vn(){let e,t;const n=new Promise((s,r)=>{e=s,t=r});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}function Cr(e){return Math.min(1e3*2**e,3e4)}function Ms(e){return(e??"online")==="online"?gn.isOnline():!0}var As=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Dn(e){return e instanceof As}function _s(e){let t=!1,n=0,i=!1,s;const r=Vn(),o=g=>{i||(d(new As(g)),e.abort?.())},a=()=>{t=!0},c=()=>{t=!1},u=()=>bi.isFocused()&&(e.networkMode==="always"||gn.isOnline())&&e.canRun(),f=()=>Ms(e.networkMode)&&e.canRun(),h=g=>{i||(i=!0,e.onSuccess?.(g),s?.(),r.resolve(g))},d=g=>{i||(i=!0,e.onError?.(g),s?.(),r.reject(g))},p=()=>new Promise(g=>{s=b=>{(i||u())&&g(b)},e.onPause?.()}).then(()=>{s=void 0,i||e.onContinue?.()}),m=()=>{if(i)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(h).catch(y=>{if(i)return;const S=e.retry??(Se?0:3),x=e.retryDelay??Cr,E=typeof x=="function"?x(n,y):x,R=S===!0||typeof S=="number"&&nu()?void 0:p()).then(()=>{t?d(y):m()})})};return{promise:r,cancel:o,continue:()=>(s?.(),r),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?m():p().then(m),r)}}var Or=e=>setTimeout(e,0);function kr(){let e=[],t=0,n=a=>{a()},i=a=>{a()},s=Or;const r=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{i(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{r(()=>{a(...c)})},schedule:r,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{i=a},setScheduler:a=>{s=a}}}var V=kr(),qt,ps,Ds=(ps=class{constructor(){T(this,qt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Un(this.gcTime)&&v(this,qt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Se?1/0:5*60*1e3))}clearGcTimeout(){l(this,qt)&&(clearTimeout(l(this,qt)),v(this,qt,void 0))}},qt=new WeakMap,ps),ue,fe,rt,Qt,K,ze,Vt,at,vt,ms,Ir=(ms=class extends Ds{constructor(t){super();T(this,at);T(this,ue);T(this,fe);T(this,rt);T(this,Qt);T(this,K);T(this,ze);T(this,Vt);v(this,Vt,!1),v(this,ze,t.defaultOptions),this.setOptions(t.options),this.observers=[],v(this,Qt,t.client),v(this,rt,l(this,Qt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,v(this,ue,Pr(this.options)),this.state=t.state??l(this,ue),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return l(this,K)?.promise}setOptions(t){this.options={...l(this,ze),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&l(this,rt).remove(this)}setData(t,n){const i=Qn(this.state.data,t,this.options);return C(this,at,vt).call(this,{data:i,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),i}setState(t,n){C(this,at,vt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){const n=l(this,K)?.promise;return l(this,K)?.cancel(t),n?n.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(l(this,ue))}isActive(){return this.observers.some(t=>lt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yi||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ks(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),l(this,K)?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),l(this,K)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),l(this,rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(l(this,K)&&(l(this,Vt)?l(this,K).cancel({revert:!0}):l(this,K).cancelRetry()),this.scheduleGc()),l(this,rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||C(this,at,vt).call(this,{type:"invalidate"})}fetch(t,n){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(l(this,K))return l(this,K).continueRetry(),l(this,K).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,s=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(v(this,Vt,!0),i.signal)})},r=()=>{const c=Ps(this.options,n),u={client:l(this,Qt),queryKey:this.queryKey,meta:this.meta};return s(u),v(this,Vt,!1),this.options.persister?this.options.persister(c,u,this):c(u)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:l(this,Qt),state:this.state,fetchFn:r};s(o),this.options.behavior?.onFetch(o,this),v(this,fe,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&C(this,at,vt).call(this,{type:"fetch",meta:o.fetchOptions?.meta});const a=c=>{Dn(c)&&c.silent||C(this,at,vt).call(this,{type:"error",error:c}),Dn(c)||(l(this,rt).config.onError?.(c,this),l(this,rt).config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return v(this,K,_s({initialPromise:n?.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(u){a(u);return}l(this,rt).config.onSuccess?.(c,this),l(this,rt).config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,u)=>{C(this,at,vt).call(this,{type:"failed",failureCount:c,error:u})},onPause:()=>{C(this,at,vt).call(this,{type:"pause"})},onContinue:()=>{C(this,at,vt).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),l(this,K).start()}},ue=new WeakMap,fe=new WeakMap,rt=new WeakMap,Qt=new WeakMap,K=new WeakMap,ze=new WeakMap,Vt=new WeakMap,at=new WeakSet,vt=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Ls(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Dn(s)&&s.revert&&l(this,fe)?{...l(this,fe),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),V.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),l(this,rt).notify({query:this,type:"updated",action:t})})},ms);function Ls(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ms(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pr(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ht,gs,Mr=(gs=class extends xe{constructor(t={}){super();T(this,ht);this.config=t,v(this,ht,new Map)}build(t,n,i){const s=n.queryKey,r=n.queryHash??gi(s,n);let o=this.get(r);return o||(o=new Ir({client:t,queryKey:s,queryHash:r,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){l(this,ht).has(t.queryHash)||(l(this,ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=l(this,ht).get(t.queryHash);n&&(t.destroy(),n===t&&l(this,ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return l(this,ht).get(t)}getAll(){return[...l(this,ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Fi(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>Fi(t,i)):n}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ht=new WeakMap,gs),pt,Y,Kt,mt,Pt,ys,Ar=(ys=class extends Ds{constructor(t){super();T(this,mt);T(this,pt);T(this,Y);T(this,Kt);this.mutationId=t.mutationId,v(this,Y,t.mutationCache),v(this,pt,[]),this.state=t.state||Fs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){l(this,pt).includes(t)||(l(this,pt).push(t),this.clearGcTimeout(),l(this,Y).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){v(this,pt,l(this,pt).filter(n=>n!==t)),this.scheduleGc(),l(this,Y).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){l(this,pt).length||(this.state.status==="pending"?this.scheduleGc():l(this,Y).remove(this))}continue(){return l(this,Kt)?.continue()??this.execute(this.state.variables)}async execute(t){const n=()=>{C(this,mt,Pt).call(this,{type:"continue"})};v(this,Kt,_s({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(r,o)=>{C(this,mt,Pt).call(this,{type:"failed",failureCount:r,error:o})},onPause:()=>{C(this,mt,Pt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>l(this,Y).canRun(this)}));const i=this.state.status==="pending",s=!l(this,Kt).canStart();try{if(i)n();else{C(this,mt,Pt).call(this,{type:"pending",variables:t,isPaused:s}),await l(this,Y).config.onMutate?.(t,this);const o=await this.options.onMutate?.(t);o!==this.state.context&&C(this,mt,Pt).call(this,{type:"pending",context:o,variables:t,isPaused:s})}const r=await l(this,Kt).start();return await l(this,Y).config.onSuccess?.(r,t,this.state.context,this),await this.options.onSuccess?.(r,t,this.state.context),await l(this,Y).config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,t,this.state.context),C(this,mt,Pt).call(this,{type:"success",data:r}),r}catch(r){try{throw await l(this,Y).config.onError?.(r,t,this.state.context,this),await this.options.onError?.(r,t,this.state.context),await l(this,Y).config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,t,this.state.context),r}finally{C(this,mt,Pt).call(this,{type:"error",error:r})}}finally{l(this,Y).runNext(this)}}},pt=new WeakMap,Y=new WeakMap,Kt=new WeakMap,mt=new WeakSet,Pt=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),V.batch(()=>{l(this,pt).forEach(i=>{i.onMutationUpdate(t)}),l(this,Y).notify({mutation:this,type:"updated",action:t})})},ys);function Fs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wt,ct,Ue,bs,_r=(bs=class extends xe{constructor(t={}){super();T(this,wt);T(this,ct);T(this,Ue);this.config=t,v(this,wt,new Set),v(this,ct,new Map),v(this,Ue,0)}build(t,n,i){const s=new Ar({mutationCache:this,mutationId:++Ze(this,Ue)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){l(this,wt).add(t);const n=tn(t);if(typeof n=="string"){const i=l(this,ct).get(n);i?i.push(t):l(this,ct).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(l(this,wt).delete(t)){const n=tn(t);if(typeof n=="string"){const i=l(this,ct).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&l(this,ct).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=tn(t);if(typeof n=="string"){const s=l(this,ct).get(n)?.find(r=>r.state.status==="pending");return!s||s===t}else return!0}runNext(t){const n=tn(t);return typeof n=="string"?l(this,ct).get(n)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){V.batch(()=>{l(this,wt).forEach(t=>{this.notify({type:"removed",mutation:t})}),l(this,wt).clear(),l(this,ct).clear()})}getAll(){return Array.from(l(this,wt))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Bi(n,i))}findAll(t={}){return this.getAll().filter(n=>Bi(t,n))}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return V.batch(()=>Promise.all(t.map(n=>n.continue().catch(ot))))}},wt=new WeakMap,ct=new WeakMap,Ue=new WeakMap,bs);function tn(e){return e.options.scope?.id}function ji(e){return{onFetch:(t,n)=>{const i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,r=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let f=!1;const h=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},d=Ps(t.options,t.fetchOptions),p=async(m,g,b)=>{if(f)return Promise.reject();if(g==null&&m.pages.length)return Promise.resolve(m);const y={client:t.client,queryKey:t.queryKey,pageParam:g,direction:b?"backward":"forward",meta:t.options.meta};h(y);const S=await d(y),{maxPages:x}=t.options,E=b?Tr:Er;return{pages:E(m.pages,S,x),pageParams:E(m.pageParams,g,x)}};if(s&&r.length){const m=s==="backward",g=m?Dr:Hi,b={pages:r,pageParams:o},y=g(i,b);a=await p(b,y,m)}else{const m=e??r.length;do{const g=c===0?o[0]??i.initialPageParam:Hi(i,a);if(c>0&&g==null)break;a=await p(a,g),c++}while(ct.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function Hi(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function Dr(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var j,_t,Dt,de,he,Lt,pe,me,vs,gc=(vs=class{constructor(e={}){T(this,j);T(this,_t);T(this,Dt);T(this,de);T(this,he);T(this,Lt);T(this,pe);T(this,me);v(this,j,e.queryCache||new Mr),v(this,_t,e.mutationCache||new _r),v(this,Dt,e.defaultOptions||{}),v(this,de,new Map),v(this,he,new Map),v(this,Lt,0)}mount(){Ze(this,Lt)._++,l(this,Lt)===1&&(v(this,pe,bi.subscribe(async e=>{e&&(await this.resumePausedMutations(),l(this,j).onFocus())})),v(this,me,gn.subscribe(async e=>{e&&(await this.resumePausedMutations(),l(this,j).onOnline())})))}unmount(){var e,t;Ze(this,Lt)._--,l(this,Lt)===0&&((e=l(this,pe))==null||e.call(this),v(this,pe,void 0),(t=l(this,me))==null||t.call(this),v(this,me,void 0))}isFetching(e){return l(this,j).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return l(this,_t).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return l(this,j).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=l(this,j).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(re(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return l(this,j).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),r=l(this,j).get(i.queryHash)?.state.data,o=Sr(t,r);if(o!==void 0)return l(this,j).build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return V.batch(()=>l(this,j).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return l(this,j).get(t.queryHash)?.state}removeQueries(e){const t=l(this,j);V.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=l(this,j);return V.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=V.batch(()=>l(this,j).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(ot).catch(ot)}invalidateQueries(e,t={}){return V.batch(()=>(l(this,j).findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=V.batch(()=>l(this,j).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let r=s.fetch(void 0,n);return n.throwOnError||(r=r.catch(ot)),s.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(i).then(ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=l(this,j).build(this,t);return n.isStaleByTime(re(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ot).catch(ot)}fetchInfiniteQuery(e){return e.behavior=ji(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ot).catch(ot)}ensureInfiniteQueryData(e){return e.behavior=ji(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gn.isOnline()?l(this,_t).resumePausedMutations():Promise.resolve()}getQueryCache(){return l(this,j)}getMutationCache(){return l(this,_t)}getDefaultOptions(){return l(this,Dt)}setDefaultOptions(e){v(this,Dt,e)}setQueryDefaults(e,t){l(this,de).set(Zt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...l(this,de).values()],n={};return t.forEach(i=>{je(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){l(this,he).set(Zt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...l(this,he).values()],n={};return t.forEach(i=>{je(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...l(this,Dt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gi(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===yi&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...l(this,Dt).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){l(this,j).clear(),l(this,_t).clear()}},j=new WeakMap,_t=new WeakMap,Dt=new WeakMap,de=new WeakMap,he=new WeakMap,Lt=new WeakMap,pe=new WeakMap,me=new WeakMap,vs),Z,M,qe,X,Gt,ge,Ft,Bt,Qe,ye,be,Yt,Xt,$t,ve,D,_e,Kn,Gn,Yn,Xn,Jn,Zn,ti,Bs,Ss,yc=(Ss=class extends xe{constructor(t,n){super();T(this,D);T(this,Z);T(this,M);T(this,qe);T(this,X);T(this,Gt);T(this,ge);T(this,Ft);T(this,Bt);T(this,Qe);T(this,ye);T(this,be);T(this,Yt);T(this,Xt);T(this,$t);T(this,ve,new Set);this.options=n,v(this,Z,t),v(this,Bt,null),v(this,Ft,Vn()),this.options.experimental_prefetchInRender||l(this,Ft).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(l(this,M).addObserver(this),Wi(l(this,M),this.options)?C(this,D,_e).call(this):this.updateResult(),C(this,D,Xn).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(l(this,M),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(l(this,M),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,C(this,D,Jn).call(this),C(this,D,Zn).call(this),l(this,M).removeObserver(this)}setOptions(t){const n=this.options,i=l(this,M);if(this.options=l(this,Z).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof lt(this.options.enabled,l(this,M))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");C(this,D,ti).call(this),l(this,M).setOptions(this.options),n._defaulted&&!mn(this.options,n)&&l(this,Z).getQueryCache().notify({type:"observerOptionsUpdated",query:l(this,M),observer:this});const s=this.hasListeners();s&&zi(l(this,M),i,this.options,n)&&C(this,D,_e).call(this),this.updateResult(),s&&(l(this,M)!==i||lt(this.options.enabled,l(this,M))!==lt(n.enabled,l(this,M))||re(this.options.staleTime,l(this,M))!==re(n.staleTime,l(this,M)))&&C(this,D,Kn).call(this);const r=C(this,D,Gn).call(this);s&&(l(this,M)!==i||lt(this.options.enabled,l(this,M))!==lt(n.enabled,l(this,M))||r!==l(this,$t))&&C(this,D,Yn).call(this,r)}getOptimisticResult(t){const n=l(this,Z).getQueryCache().build(l(this,Z),t),i=this.createResult(n,t);return Fr(this,i)&&(v(this,X,i),v(this,ge,this.options),v(this,Gt,l(this,M).state)),i}getCurrentResult(){return l(this,X)}trackResult(t,n){const i={};return Object.keys(t).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n?.(s),t[s])})}),i}trackProp(t){l(this,ve).add(t)}getCurrentQuery(){return l(this,M)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=l(this,Z).defaultQueryOptions(t),i=l(this,Z).getQueryCache().build(l(this,Z),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return C(this,D,_e).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),l(this,X)))}createResult(t,n){const i=l(this,M),s=this.options,r=l(this,X),o=l(this,Gt),a=l(this,ge),u=t!==i?t.state:l(this,qe),{state:f}=t;let h={...f},d=!1,p;if(n._optimisticResults){const A=this.hasListeners(),_=!A&&Wi(t,n),L=A&&zi(t,i,n,s);(_||L)&&(h={...h,...Ls(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:b}=h;p=h.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let A;r?.isPlaceholderData&&n.placeholderData===a?.placeholderData?(A=r.data,y=!0):A=typeof n.placeholderData=="function"?n.placeholderData(l(this,be)?.state.data,l(this,be)):n.placeholderData,A!==void 0&&(b="success",p=Qn(r?.data,A,n),d=!0)}if(n.select&&p!==void 0&&!y)if(r&&p===o?.data&&n.select===l(this,Qe))p=l(this,ye);else try{v(this,Qe,n.select),p=n.select(p),p=Qn(r?.data,p,n),v(this,ye,p),v(this,Bt,null)}catch(A){v(this,Bt,A)}l(this,Bt)&&(m=l(this,Bt),p=l(this,ye),g=Date.now(),b="error");const S=h.fetchStatus==="fetching",x=b==="pending",E=b==="error",R=x&&S,O=p!==void 0,P={status:b,fetchStatus:h.fetchStatus,isPending:x,isSuccess:b==="success",isError:E,isInitialLoading:R,isLoading:R,data:p,dataUpdatedAt:h.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:E&&!O,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:E&&O,isStale:vi(t,n),refetch:this.refetch,promise:l(this,Ft)};if(this.options.experimental_prefetchInRender){const A=$=>{P.status==="error"?$.reject(P.error):P.data!==void 0&&$.resolve(P.data)},_=()=>{const $=v(this,Ft,P.promise=Vn());A($)},L=l(this,Ft);switch(L.status){case"pending":t.queryHash===i.queryHash&&A(L);break;case"fulfilled":(P.status==="error"||P.data!==L.value)&&_();break;case"rejected":(P.status!=="error"||P.error!==L.reason)&&_();break}}return P}updateResult(){const t=l(this,X),n=this.createResult(l(this,M),this.options);if(v(this,Gt,l(this,M).state),v(this,ge,this.options),l(this,Gt).data!==void 0&&v(this,be,l(this,M)),mn(n,t))return;v(this,X,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,r=typeof s=="function"?s():s;if(r==="all"||!r&&!l(this,ve).size)return!0;const o=new Set(r??l(this,ve));return this.options.throwOnError&&o.add("error"),Object.keys(l(this,X)).some(a=>{const c=a;return l(this,X)[c]!==t[c]&&o.has(c)})};C(this,D,Bs).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&C(this,D,Xn).call(this)}},Z=new WeakMap,M=new WeakMap,qe=new WeakMap,X=new WeakMap,Gt=new WeakMap,ge=new WeakMap,Ft=new WeakMap,Bt=new WeakMap,Qe=new WeakMap,ye=new WeakMap,be=new WeakMap,Yt=new WeakMap,Xt=new WeakMap,$t=new WeakMap,ve=new WeakMap,D=new WeakSet,_e=function(t){C(this,D,ti).call(this);let n=l(this,M).fetch(this.options,t);return t?.throwOnError||(n=n.catch(ot)),n},Kn=function(){C(this,D,Jn).call(this);const t=re(this.options.staleTime,l(this,M));if(Se||l(this,X).isStale||!Un(t))return;const i=ks(l(this,X).dataUpdatedAt,t)+1;v(this,Yt,setTimeout(()=>{l(this,X).isStale||this.updateResult()},i))},Gn=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(l(this,M)):this.options.refetchInterval)??!1},Yn=function(t){C(this,D,Zn).call(this),v(this,$t,t),!(Se||lt(this.options.enabled,l(this,M))===!1||!Un(l(this,$t))||l(this,$t)===0)&&v(this,Xt,setInterval(()=>{(this.options.refetchIntervalInBackground||bi.isFocused())&&C(this,D,_e).call(this)},l(this,$t)))},Xn=function(){C(this,D,Kn).call(this),C(this,D,Yn).call(this,C(this,D,Gn).call(this))},Jn=function(){l(this,Yt)&&(clearTimeout(l(this,Yt)),v(this,Yt,void 0))},Zn=function(){l(this,Xt)&&(clearInterval(l(this,Xt)),v(this,Xt,void 0))},ti=function(){const t=l(this,Z).getQueryCache().build(l(this,Z),this.options);if(t===l(this,M))return;const n=l(this,M);v(this,M,t),v(this,qe,t.state),this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))},Bs=function(t){V.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(l(this,X))}),l(this,Z).getQueryCache().notify({query:l(this,M),type:"observerResultsUpdated"})})},Ss);function Lr(e,t){return lt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wi(e,t){return Lr(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(lt(t.enabled,e)!==!1){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&vi(e,t)}return!1}function zi(e,t,n,i){return(e!==t||lt(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vi(e,n)}function vi(e,t){return lt(t.enabled,e)!==!1&&e.isStaleByTime(re(t.staleTime,e))}function Fr(e,t){return!mn(e.getCurrentResult(),t)}var Nt,jt,tt,Et,Tt,ln,ni,ws,bc=(ws=class extends xe{constructor(t,n){super();T(this,Tt);T(this,Nt);T(this,jt);T(this,tt);T(this,Et);v(this,Nt,t),this.setOptions(n),this.bindMethods(),C(this,Tt,ln).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=l(this,Nt).defaultMutationOptions(t),mn(this.options,n)||l(this,Nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:l(this,tt),observer:this}),n?.mutationKey&&this.options.mutationKey&&Zt(n.mutationKey)!==Zt(this.options.mutationKey)?this.reset():l(this,tt)?.state.status==="pending"&&l(this,tt).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||l(this,tt)?.removeObserver(this)}onMutationUpdate(t){C(this,Tt,ln).call(this),C(this,Tt,ni).call(this,t)}getCurrentResult(){return l(this,jt)}reset(){l(this,tt)?.removeObserver(this),v(this,tt,void 0),C(this,Tt,ln).call(this),C(this,Tt,ni).call(this)}mutate(t,n){return v(this,Et,n),l(this,tt)?.removeObserver(this),v(this,tt,l(this,Nt).getMutationCache().build(l(this,Nt),this.options)),l(this,tt).addObserver(this),l(this,tt).execute(t)}},Nt=new WeakMap,jt=new WeakMap,tt=new WeakMap,Et=new WeakMap,Tt=new WeakSet,ln=function(){const t=l(this,tt)?.state??Fs();v(this,jt,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ni=function(t){V.batch(()=>{if(l(this,Et)&&this.hasListeners()){const n=l(this,jt).variables,i=l(this,jt).context;t?.type==="success"?(l(this,Et).onSuccess?.(t.data,n,i),l(this,Et).onSettled?.(t.data,null,n,i)):t?.type==="error"&&(l(this,Et).onError?.(t.error,n,i),l(this,Et).onSettled?.(void 0,t.error,n,i))}this.listeners.forEach(n=>{n(l(this,jt))})})},ws);const Si=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Br=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Re=(e,t,n,i)=>{let s,r;return o=>{t.value>=0&&(o||i)&&(r=t.value-(s||0),(r||s===void 0)&&(s=t.value,t.delta=r,t.rating=Br(t.value,n),e(t)))}},I=ur,$r=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ve=(e=!0)=>{const t=I.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStartVe()?.activationStart||0,Ce=(e,t)=>{const n=Ve();let i="navigate";return n&&(I.document?.prerendering||Ke()>0?i="prerender":I.document?.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:$r(),navigationType:i}},ee=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch{}},Oe=e=>{const t=n=>{(n.type==="pagehide"||I.document?.visibilityState==="hidden")&&e(n)};I.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Cn=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Le=-1;const Nr=()=>I.document.visibilityState==="hidden"&&!I.document.prerendering?0:1/0,yn=e=>{I.document.visibilityState==="hidden"&&Le>-1&&(Le=e.type==="visibilitychange"?e.timeStamp:0,Hr())},jr=()=>{addEventListener("visibilitychange",yn,!0),addEventListener("prerenderingchange",yn,!0)},Hr=()=>{removeEventListener("visibilitychange",yn,!0),removeEventListener("prerenderingchange",yn,!0)},On=()=>(I.document&&Le<0&&(Le=Nr(),jr()),{get firstHiddenTime(){return Le}}),Ge=e=>{I.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Wr=[1800,3e3],zr=(e,t={})=>{Ge(()=>{const n=On(),i=Ce("FCP");let s;const o=ee("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime{zr(Cn(()=>{const n=Ce("CLS",0);let i,s=0,r=[];const o=c=>{c.forEach(u=>{if(!u.hadRecentInput){const f=r[0],h=r[r.length-1];s&&f&&h&&u.startTime-h.startTime<1e3&&u.startTime-f.startTime<5e3?(s+=u.value,r.push(u)):(s=u.value,r=[u])}}),s>n.value&&(n.value=s,n.entries=r,i())},a=ee("layout-shift",o);a&&(i=Re(e,n,Ur,t.reportAllChanges),Oe(()=>{o(a.takeRecords()),i(!0)}),setTimeout(i,0))}))},Qr=[100,300],Vr=(e,t={})=>{Ge(()=>{const n=On(),i=Ce("FID");let s;const r=c=>{c.startTime{c.forEach(r)},a=ee("first-input",o);s=Re(e,i,Qr,t.reportAllChanges),a&&Oe(Cn(()=>{o(a.takeRecords()),a.disconnect()}))})};let $s=0,Ln=1/0,en=0;const Kr=e=>{e.forEach(t=>{t.interactionId&&(Ln=Math.min(Ln,t.interactionId),en=Math.max(en,t.interactionId),$s=en?(en-Ln)/7+1:0)})};let ii;const Gr=()=>ii?$s:performance.interactionCount||0,Yr=()=>{"interactionCount"in performance||ii||(ii=ee("event",Kr,{type:"event",buffered:!0,durationThreshold:0}))},St=[],Fn=new Map,Xr=40;let Jr=0;const Zr=()=>Gr()-Jr,to=()=>{const e=Math.min(St.length-1,Math.floor(Zr()/50));return St[e]},Bn=10,eo=[],no=e=>{if(eo.forEach(i=>i(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=St[St.length-1],n=Fn.get(e.interactionId);if(n||St.lengtht.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0]?.startTime&&n.entries.push(e);else{const i={id:e.interactionId,latency:e.duration,entries:[e]};Fn.set(i.id,i),St.push(i)}St.sort((i,s)=>s.latency-i.latency),St.length>Bn&&St.splice(Bn).forEach(i=>Fn.delete(i.id))}},Ns=e=>{const t=I.requestIdleCallback||I.setTimeout;let n=-1;return e=Cn(e),I.document?.visibilityState==="hidden"?e():(n=t(e),Oe(e)),n},io=[200,500],so=(e,t={})=>{"PerformanceEventTiming"in I&&"interactionId"in PerformanceEventTiming.prototype&&Ge(()=>{Yr();const n=Ce("INP");let i;const s=o=>{Ns(()=>{o.forEach(no);const a=to();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,i())})},r=ee("event",s,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:Xr});i=Re(e,n,io,t.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),Oe(()=>{s(r.takeRecords()),i(!0)}))})},ro=[2500,4e3],Ui={},oo=(e,t={})=>{Ge(()=>{const n=On(),i=Ce("LCP");let s;const r=a=>{t.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime{Ui[i.id]||(r(o.takeRecords()),o.disconnect(),Ui[i.id]=!0,s(!0))});["keydown","click"].forEach(c=>{I.document&&addEventListener(c,()=>Ns(a),{once:!0,capture:!0})}),Oe(a)}})},ao=[800,1800],si=e=>{I.document?.prerendering?Ge(()=>si(e)):I.document?.readyState!=="complete"?addEventListener("load",()=>si(e),!0):setTimeout(e,0)},co=(e,t={})=>{const n=Ce("TTFB"),i=Re(e,n,ao,t.reportAllChanges);si(()=>{const s=Ve();s&&(n.value=Math.max(s.responseStart-Ke(),0),n.entries=[s],i(!0))})},Fe={},bn={};let js,Hs,Ws,zs,Us;function qs(e,t=!1){return Ye("cls",e,po,js,t)}function lo(e,t=!1){return Ye("lcp",e,go,Ws,t)}function uo(e){return Ye("fid",e,mo,Hs)}function fo(e){return Ye("ttfb",e,yo,zs)}function ho(e){return Ye("inp",e,bo,Us)}function vn(e,t){return Qs(e,t),bn[e]||(vo(e),bn[e]=!0),Vs(e,t)}function ke(e,t){const n=Fe[e];if(n?.length)for(const i of n)try{i(t)}catch(s){Si&&fi.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${fr(i)} Error:`,s)}}function po(){return qr(e=>{ke("cls",{metric:e}),js=e},{reportAllChanges:!0})}function mo(){return Vr(e=>{ke("fid",{metric:e}),Hs=e})}function go(){return oo(e=>{ke("lcp",{metric:e}),Ws=e},{reportAllChanges:!0})}function yo(){return co(e=>{ke("ttfb",{metric:e}),zs=e})}function bo(){return so(e=>{ke("inp",{metric:e}),Us=e})}function Ye(e,t,n,i,s=!1){Qs(e,t);let r;return bn[e]||(r=n(),bn[e]=!0),i&&t({metric:i}),Vs(e,t,s?r:void 0)}function vo(e){const t={};e==="event"&&(t.durationThreshold=0),ee(e,n=>{ke(e,{entries:n})},t)}function Qs(e,t){Fe[e]=Fe[e]||[],Fe[e].push(t)}function Vs(e,t,n){return()=>{n&&n();const i=Fe[e];if(!i)return;const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}function So(e){return"duration"in e}function $n(e){return typeof e=="number"&&isFinite(e)}function xt(e,t,n,{...i}){const s=Ee(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),dr(e,()=>{const r=Ts({startTime:t,...i});return r&&r.end(n),r})}function Ks(e){const t=Es();if(!t)return;const{name:n,transaction:i,attributes:s,startTime:r}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),f=t.getIntegrationByName("Replay")?.getReplayId(),h=di(),d=h.getUser(),p=d!==void 0?d.email||d.id||d.ip_address:void 0;let m;try{m=h.getScopeData().contexts.profile.profile_id}catch{}const g={release:o,environment:a,user:p||void 0,profile_id:m||void 0,replay_id:f||void 0,transaction:i,"user_agent.original":I.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return Ts({name:n,attributes:g,startTime:r,experimental:{standalone:!0}})}function wi(){return I.addEventListener&&I.performance}function H(e){return e/1e3}function wo(e){let t="unknown",n="unknown",i="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=i==="h"?"http":i,n=e.split(i)[1];break}i+=s}return i===e&&(t=i),{name:t,version:n}}function Eo(){let e=0,t,n;if(!xo())return;let i=!1;function s(){i||(i=!0,n&&To(e,t,n),r())}const r=qs(({metric:o})=>{const a=o.entries[o.entries.length-1];a&&(e=o.value,t=a)},!0);Oe(()=>{s()}),setTimeout(()=>{const o=Es();if(!o)return;const a=o.on("startNavigationSpan",()=>{s(),a?.()}),c=Te();if(c){const u=hi(c);Ee(u).op==="pageload"&&(n=u.spanContext().spanId)}},0)}function To(e,t,n){Si&&fi.log(`Sending CLS span (${e})`);const i=H((kt()||0)+(t?.startTime||0)),s=di().getScopeData().transactionName,r=t?$e(t.sources[0]?.node):"Layout shift",o={[ut]:"auto.http.browser.cls",[Os]:"ui.webvital.cls",[Cs]:t?.duration||0,"sentry.pageload.span_id":n},a=Ks({name:r,transaction:s,attributes:o,startTime:i});a&&(a.addEvent("cls",{[Rs]:"",[xs]:e}),a.end(i))}function xo(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const Ro=2147483647;let qi=0,Q={},J,Sn;function vc({recordClsStandaloneSpans:e}){const t=wi();if(t&&kt()){t.mark&&I.performance.mark("sentry-tracing-init");const n=ko(),i=Oo(),s=Io(),r=e?Eo():Co();return()=>{n(),i(),s(),r?.()}}return()=>{}}function Sc(){vn("longtask",({entries:e})=>{const t=Te();if(!t)return;const{op:n,start_timestamp:i}=Ee(t);for(const s of e){const r=H(kt()+s.startTime),o=H(s.duration);n==="navigation"&&i&&r{const n=Te();if(n)for(const i of t.getEntries()){if(!i.scripts[0])continue;const s=H(kt()+i.startTime),{start_timestamp:r,op:o}=Ee(n);if(o==="navigation"&&r&&s{const t=Te();if(t){for(const n of e)if(n.name==="click"){const i=H(kt()+n.startTime),s=H(n.duration),r={name:$e(n.target),op:`ui.interaction.${n.name}`,startTime:i,attributes:{[ut]:"auto.ui.browser.metrics"}},o=mr(n.target);o&&(r.attributes["ui.component_name"]=o),xt(t,i,i+s,r)}}})}function Co(){return qs(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Q.cls={value:e.value,unit:""},Sn=t)},!0)}function Oo(){return lo(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Q.lcp={value:e.value,unit:"millisecond"},J=t)},!0)}function ko(){return uo(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=H(kt()),i=H(t.startTime);Q.fid={value:e.value,unit:"millisecond"},Q["mark.fid"]={value:n+i,unit:"second"}})}function Io(){return fo(({metric:e})=>{e.entries[e.entries.length-1]&&(Q.ttfb={value:e.value,unit:"millisecond"})})}function Tc(e,t){const n=wi(),i=kt();if(!n?.getEntries||!i)return;const s=H(i),r=n.getEntries(),{op:o,start_timestamp:a}=Ee(e);if(r.slice(qi).forEach(c=>{const u=H(c.startTime),f=H(Math.max(0,c.duration));if(!(o==="navigation"&&a&&s+u{hr(u,f.value,f.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Ke()),Fo(e)}J=void 0,Sn=void 0,Q={}}function Po(e,t,n,i,s){const r=Ve(!1),o=H(r?r.requestStart:0),a=s+Math.max(n,o),c=s+n,u=c+i,f={[ut]:"auto.resource.browser.metrics"};a!==c&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=a),a<=u&&xt(e,a,u,{name:t.name,op:t.entryType,attributes:f})}function Mo(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(i=>{nn(e,t,i,n)}),nn(e,t,"secureConnection",n,"TLS/SSL"),nn(e,t,"fetch",n,"cache"),nn(e,t,"domainLookup",n,"DNS"),_o(e,t,n)}function nn(e,t,n,i,s=n){const r=Ao(n),o=t[r],a=t[`${n}Start`];!a||!o||xt(e,i+H(a),i+H(o),{op:`browser.${s}`,name:t.name,attributes:{[ut]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Ao(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function _o(e,t,n){const i=n+H(t.requestStart),s=n+H(t.responseEnd),r=n+H(t.responseStart);t.responseEnd&&(xt(e,i,s,{op:"browser.request",name:t.name,attributes:{[ut]:"auto.ui.browser.metrics"}}),xt(e,r,s,{op:"browser.response",name:t.name,attributes:{[ut]:"auto.ui.browser.metrics"}}))}function Do(e,t,n,i,s,r){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=pr(n),a={[ut]:"auto.resource.browser.metrics"};Nn(a,t,"transferSize","http.response_transfer_size"),Nn(a,t,"encodedBodySize","http.response_content_length"),Nn(a,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(a["http.response_delivery_type"]=c);const u=t.renderBlockingStatus;u&&(a["resource.render_blocking_status"]=u),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(I.location.origin);const{name:f,version:h}=wo(t.nextHopProtocol);a["network.protocol.name"]=f,a["network.protocol.version"]=h;const d=r+i,p=d+s;xt(e,d,p,{name:n.replace(I.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function Lo(e){const t=I.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),$n(n.rtt)&&(Q["connection.rtt"]={value:n.rtt,unit:"millisecond"})),$n(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),$n(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Fo(e){J&&(J.element&&e.setAttribute("lcp.element",$e(J.element)),J.id&&e.setAttribute("lcp.id",J.id),J.url&&e.setAttribute("lcp.url",J.url.trim().slice(0,200)),J.loadTime!=null&&e.setAttribute("lcp.loadTime",J.loadTime),J.renderTime!=null&&e.setAttribute("lcp.renderTime",J.renderTime),e.setAttribute("lcp.size",J.size)),Sn?.sources&&Sn.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,$e(t.node)))}function Nn(e,t,n,i){const s=t[n];s!=null&&s{const s=I[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(pn(s,"addEventListener",function(r){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[o]=u[o]||{refCount:0};if(!f.handler){const h=Vi(e);f.handler=h,r.call(this,o,h,c)}f.refCount++}catch{}return r.call(this,o,a,c)}}),pn(s,"removeEventListener",function(r){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[o];f&&(f.refCount--,f.refCount<=0&&(r.call(this,o,f.handler,c),f.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return r.call(this,o,a,c)}}))})}function jo(e){if(e.type!==ri)return!1;try{if(!e.target||e.target._sentryId!==oi)return!1}catch{}return!0}function Ho(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Vi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=Wo(n);if(Ho(n.type,i))return;Li(n,"_sentryCaptured",!0),i&&!i._sentryId&&Li(i,"_sentryId",gr());const s=n.type==="keypress"?"input":n.type;jo(n)||(e({event:n,name:s,global:t}),ri=n.type,oi=i?i._sentryId:void 0),clearTimeout(Qi),Qi=I.setTimeout(()=>{oi=void 0,ri=void 0},$o)}}function Wo(e){try{return e.target}catch{return null}}let sn;function Rc(e){const t="history";pi(t,e),mi(t,zo)}function zo(){if(I.addEventListener("popstate",()=>{const t=I.location.href,n=sn;if(sn=t,n===t)return;Ne("history",{from:n,to:t})}),!yr())return;function e(t){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const s=sn,r=String(i);if(sn=r,s===r)return t.apply(this,n);Ne("history",{from:s,to:r})}return t.apply(this,n)}}pn(I.history,"pushState",e),pn(I.history,"replaceState",e)}const un={};function Cc(e){const t=un[e];if(t)return t;let n=I[e];if(br(n))return un[e]=n.bind(I);const i=I.document;if(i&&typeof i.createElement=="function")try{const s=i.createElement("iframe");s.hidden=!0,i.head.appendChild(s);const r=s.contentWindow;r?.[e]&&(n=r[e]),i.head.removeChild(s)}catch(s){Si&&fi.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(un[e]=n.bind(I))}function Oc(e){un[e]=void 0}const rn="__sentry_xhr_v3__";function kc(e){const t="xhr";pi(t,e),mi(t,Uo)}function Uo(){if(!I.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,i){const s=new Error,r=_n()*1e3,o=cn(i[0])?i[0].toUpperCase():void 0,a=qo(i[1]);if(!o||!a)return t.apply(n,i);n[rn]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[rn];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:_n()*1e3,startTimestamp:r,xhr:n,virtualError:s};Ne("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,h){return c(),u.apply(f,h)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,h){const[d,p]=h,m=f[rn];return m&&cn(d)&&cn(p)&&(m.request_headers[d.toLowerCase()]=p),u.apply(f,h)}}),t.apply(n,i)}}),e.send=new Proxy(e.send,{apply(t,n,i){const s=n[rn];if(!s)return t.apply(n,i);i[0]!==void 0&&(s.body=i[0]);const r={startTimestamp:_n()*1e3,xhr:n};return Ne("xhr",r),t.apply(n,i)}})}function qo(e){if(cn(e))return e;try{return e.toString()}catch{}}const jn=[],fn=new Map;function Ic(){if(wi()&&kt()){const t=Qo();return()=>{t()}}return()=>{}}const Ki={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Qo(){return ho(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(m=>m.duration===e.value&&Ki[m.name]);if(!t)return;const{interactionId:n}=t,i=Ki[t.name],s=H(kt()+t.startTime),r=H(e.value),o=Te(),a=o?hi(o):void 0,u=(n!=null?fn.get(n):void 0)||a,f=u?Ee(u).description:di().getScopeData().transactionName,h=$e(t.target),d={[ut]:"auto.http.browser.inp",[Os]:`ui.interaction.${i}`,[Cs]:t.duration},p=Ks({name:h,transaction:f,attributes:d,startTime:s});p&&(p.addEvent("inp",{[Rs]:"millisecond",[xs]:e.value}),p.end(s+r))})}function Pc(){const e=({entries:t})=>{const n=Te(),i=n&&hi(n);t.forEach(s=>{if(!So(s)||!i)return;const r=s.interactionId;if(r!=null&&!fn.has(r)){if(jn.length>10){const o=jn.shift();fn.delete(o)}jn.push(r),fn.set(r,i)}})};vn("event",e),vn("first-input",e)}const Gs=-1,kn=0,Be=1,wn=2,Ei=3,Ti=4,xi=5,Ri=6,Ys=7,Xs=8,Gi=typeof self=="object"?self:globalThis,Vo=(e,t)=>{const n=(s,r)=>(e.set(r,s),s),i=s=>{if(e.has(s))return e.get(s);const[r,o]=t[s];switch(r){case kn:case Gs:return n(o,s);case Be:{const a=n([],s);for(const c of o)a.push(i(c));return a}case wn:{const a=n({},s);for(const[c,u]of o)a[i(c)]=i(u);return a}case Ei:return n(new Date(o),s);case Ti:{const{source:a,flags:c}=o;return n(new RegExp(a,c),s)}case xi:{const a=n(new Map,s);for(const[c,u]of o)a.set(i(c),i(u));return a}case Ri:{const a=n(new Set,s);for(const c of o)a.add(i(c));return a}case Ys:{const{name:a,message:c}=o;return n(new Gi[a](c),s)}case Xs:return n(BigInt(o),s);case"BigInt":return n(Object(BigInt(o)),s);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new Gi[r](o),s)};return i},Yi=e=>Vo(new Map,e)(0),ne="",{toString:Ko}={},{keys:Go}=Object,Me=e=>{const t=typeof e;if(t!=="object"||!e)return[kn,t];const n=Ko.call(e).slice(8,-1);switch(n){case"Array":return[Be,ne];case"Object":return[wn,ne];case"Date":return[Ei,ne];case"RegExp":return[Ti,ne];case"Map":return[xi,ne];case"Set":return[Ri,ne];case"DataView":return[Be,n]}return n.includes("Array")?[Be,n]:n.includes("Error")?[Ys,n]:[wn,n]},on=([e,t])=>e===kn&&(t==="function"||t==="symbol"),Yo=(e,t,n,i)=>{const s=(o,a)=>{const c=i.push(o)-1;return n.set(a,c),c},r=o=>{if(n.has(o))return n.get(o);let[a,c]=Me(o);switch(a){case kn:{let f=o;switch(c){case"bigint":a=Xs,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return s([Gs],o)}return s([a,f],o)}case Be:{if(c){let d=o;return c==="DataView"?d=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(o)),s([c,[...d]],o)}const f=[],h=s([a,f],o);for(const d of o)f.push(r(d));return h}case wn:{if(c)switch(c){case"BigInt":return s([c,o.toString()],o);case"Boolean":case"Number":case"String":return s([c,o.valueOf()],o)}if(t&&"toJSON"in o)return r(o.toJSON());const f=[],h=s([a,f],o);for(const d of Go(o))(e||!on(Me(o[d])))&&f.push([r(d),r(o[d])]);return h}case Ei:return s([a,o.toISOString()],o);case Ti:{const{source:f,flags:h}=o;return s([a,{source:f,flags:h}],o)}case xi:{const f=[],h=s([a,f],o);for(const[d,p]of o)(e||!(on(Me(d))||on(Me(p))))&&f.push([r(d),r(p)]);return h}case Ri:{const f=[],h=s([a,f],o);for(const d of o)(e||!on(Me(d)))&&f.push(r(d));return h}}const{message:u}=o;return s([a,{name:c,message:u}],o)};return r},Xi=(e,{json:t,lossy:n}={})=>{const i=[];return Yo(!(t||n),!!t,new Map,i)(e),i},Mc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Yi(Xi(e,t)):structuredClone(e):(e,t)=>Yi(Xi(e,t));var Ji,B="colors",G="sizes",w="space",Xo={gap:w,gridGap:w,columnGap:w,gridColumnGap:w,rowGap:w,gridRowGap:w,inset:w,insetBlock:w,insetBlockEnd:w,insetBlockStart:w,insetInline:w,insetInlineEnd:w,insetInlineStart:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockEnd:w,marginBlockStart:w,marginInline:w,marginInlineEnd:w,marginInlineStart:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockEnd:w,paddingBlockStart:w,paddingInline:w,paddingInlineEnd:w,paddingInlineStart:w,top:w,right:w,bottom:w,left:w,scrollMargin:w,scrollMarginTop:w,scrollMarginRight:w,scrollMarginBottom:w,scrollMarginLeft:w,scrollMarginX:w,scrollMarginY:w,scrollMarginBlock:w,scrollMarginBlockEnd:w,scrollMarginBlockStart:w,scrollMarginInline:w,scrollMarginInlineEnd:w,scrollMarginInlineStart:w,scrollPadding:w,scrollPaddingTop:w,scrollPaddingRight:w,scrollPaddingBottom:w,scrollPaddingLeft:w,scrollPaddingX:w,scrollPaddingY:w,scrollPaddingBlock:w,scrollPaddingBlockEnd:w,scrollPaddingBlockStart:w,scrollPaddingInline:w,scrollPaddingInlineEnd:w,scrollPaddingInlineStart:w,fontSize:"fontSizes",background:B,backgroundColor:B,backgroundImage:B,borderImage:B,border:B,borderBlock:B,borderBlockEnd:B,borderBlockStart:B,borderBottom:B,borderBottomColor:B,borderColor:B,borderInline:B,borderInlineEnd:B,borderInlineStart:B,borderLeft:B,borderLeftColor:B,borderRight:B,borderRightColor:B,borderTop:B,borderTopColor:B,caretColor:B,color:B,columnRuleColor:B,fill:B,outline:B,outlineColor:B,stroke:B,textDecorationColor:B,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:G,minBlockSize:G,maxBlockSize:G,inlineSize:G,minInlineSize:G,maxInlineSize:G,width:G,minWidth:G,maxWidth:G,height:G,minHeight:G,maxHeight:G,flexBasis:G,gridTemplateColumns:G,gridTemplateRows:G,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Jo=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Xe=()=>{const e=Object.create(null);return(t,n,...i)=>{const s=(r=>JSON.stringify(r,Jo))(t);return s in e?e[s]:e[s]=n(t,...i)}},dn=Symbol.for("sxs.internal"),Ci=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Zi=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Zo}=Object.prototype,ai=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),ta=/\s+(?![^()]*\))/,ie=e=>t=>e(...typeof t=="string"?String(t).split(ta):[t]),ts={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:ie((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:ie((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:ie((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:ie((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:ie((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:ie((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Hn=/([\d.]+)([^]*)/,ea=(e,t)=>e.length?e.reduce((n,i)=>(n.push(...t.map(s=>s.includes("&")?s.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(s)?`:is(${i})`:i):i+" "+s)),n),[]):t,na=(e,t)=>e in ia&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,i,s,r)=>i+(s==="stretch"?`-moz-available${r};${ai(e)}:${i}-webkit-fill-available`:`-moz-fit-content${r};${ai(e)}:${i}fit-content`)+r):String(t),ia={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Rt=e=>e?e+"-":"",Js=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,s,r,o,a)=>o=="$"==!!r?i:(s||o=="--"?"calc(":"")+"var(--"+(o==="$"?Rt(t)+(a.includes("$")?"":Rt(n))+a.replace(/\$/g,"-"):a)+")"+(s||o=="--"?"*"+(s||"")+(r||"1")+")":"")),sa=/\s*,\s*(?![^()]*\))/,ra=Object.prototype.toString,se=(e,t,n,i,s)=>{let r,o,a;const c=(u,f,h)=>{let d,p;const m=g=>{for(d in g){const S=d.charCodeAt(0)===64,x=S&&Array.isArray(g[d])?g[d]:[g[d]];for(p of x){const E=/[A-Z]/.test(y=d)?y:y.replace(/-[^]/g,O=>O[1].toUpperCase()),R=typeof p=="object"&&p&&p.toString===ra&&(!i.utils[E]||!f.length);if(E in i.utils&&!R){const O=i.utils[E];if(O!==o){o=O,m(O(p)),o=null;continue}}else if(E in ts){const O=ts[E];if(O!==a){a=O,m(O(p)),a=null;continue}}if(S&&(b=d.slice(1)in i.media?"@media "+i.media[d.slice(1)]:d,d=b.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(O,k,P,A,_,L)=>{const $=Hn.test(k),W=.0625*($?-1:1),[N,st]=$?[A,k]:[k,A];return"("+(P[0]==="="?"":P[0]===">"===$?"max-":"min-")+N+":"+(P[0]!=="="&&P.length===1?st.replace(Hn,(z,q,F)=>Number(q)+W*(P===">"?1:-1)+F):st)+(_?") and ("+(_[0]===">"?"min-":"max-")+N+":"+(_.length===1?L.replace(Hn,(z,q,F)=>Number(q)+W*(_===">"?-1:1)+F):L):"")+")"})),R){const O=S?h.concat(d):[...h],k=S?[...f]:ea(f,d.split(sa));r!==void 0&&s(es(...r)),r=void 0,c(p,k,O)}else r===void 0&&(r=[[],f,h]),d=S||d.charCodeAt(0)!==36?d:`--${Rt(i.prefix)}${d.slice(1).replace(/\$/g,"-")}`,p=R?p:typeof p=="number"?p&&E in oa?String(p)+"px":String(p):Js(na(E,p??""),i.prefix,i.themeMap[E]),r[0].push(`${S?`${d} `:`${ai(d)}:`}${p}`)}}var b,y};m(u),r!==void 0&&s(es(...r)),r=void 0};c(e,t,n)},es=(e,t,n)=>`${n.map(i=>`${i}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,oa={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},ns=e=>String.fromCharCode(e+(e>25?39:97)),Jt=e=>(t=>{let n,i="";for(n=Math.abs(t);n>52;n=n/52|0)i=ns(n%52)+i;return ns(n%52)+i})(((t,n)=>{let i=n.length;for(;i;)t=33*t^n.charCodeAt(--i);return t})(5381,JSON.stringify(e))>>>0),De=["themed","global","styled","onevar","resonevar","allvar","inline"],aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},ca=e=>{let t;const n=()=>{const{cssRules:s}=t.sheet;return[].map.call(s,(r,o)=>{const{cssText:a}=r;let c="";if(a.startsWith("--sxs"))return"";if(s[o-1]&&(c=s[o-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===r)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${a}`;return r.cssRules.length?`${c}${a}`:""}return a}).join("")},i=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const u in a)delete a[u]}const s=Object(e).styleSheets||[];for(const a of s)if(aa(a)){for(let c=0,u=a.cssRules;u[c];++c){const f=Object(u[c]);if(f.type!==1)continue;const h=Object(u[c+1]);if(h.type!==4)continue;++c;const{cssText:d}=f;if(!d.startsWith("--sxs"))continue;const p=d.slice(14,-3).trim().split(/\s+/),m=De[p[0]];m&&(t||(t={sheet:a,reset:i,rules:{},toString:n}),t.rules[m]={group:h,index:c,cache:new Set(p)})}if(t)break}if(!t){const a=(c,u)=>({type:u,cssRules:[],insertRule(f,h){this.cssRules.splice(h,0,a(f,{import:3,undefined:1}[(f.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,f=>f.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:i,toString:n}}const{sheet:r,rules:o}=t;for(let a=De.length-1;a>=0;--a){const c=De[a];if(!o[c]){const u=De[a+1],f=o[u]?o[u].index:r.cssRules.length;r.insertRule("@media{}",f),r.insertRule(`--sxs{--sxs:${a}}`,f),o[c]={group:r.cssRules[f+1],index:f,cache:new Set([a])}}la(o[c])}};return i(),t},la=e=>{const t=e.group;let n=t.cssRules.length;e.apply=i=>{try{t.insertRule(i,n),++n}catch{}}},Ae=Symbol(),ua=Xe(),fa=(e,t)=>ua(e,()=>(...n)=>{let i={type:null,composers:new Set};for(const s of n)if(s!=null)if(s[dn]){i.type==null&&(i.type=s[dn].type);for(const r of s[dn].composers)i.composers.add(r)}else s.constructor!==Object||s.$$typeof?i.type==null&&(i.type=s):i.composers.add(da(s,e));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),ha(e,i,t)}),da=({variants:e,compoundVariants:t,defaultVariants:n,...i},s)=>{const r=`${Rt(s.prefix)}c-${Jt(i)}`,o=[],a=[],c=Object.create(null),u=[];for(const d in n)c[d]=String(n[d]);if(typeof e=="object"&&e)for(const d in e){f=c,h=d,Zo.call(f,h)||(c[d]="undefined");const p=e[d];for(const m in p){const g={[d]:String(m)};String(m)==="undefined"&&u.push(d);const b=p[m],y=[g,b,!Zi(b)];o.push(y)}}var f,h;if(typeof t=="object"&&t)for(const d of t){let{css:p,...m}=d;p=typeof p=="object"&&p||{};for(const b in m)m[b]=String(m[b]);const g=[m,p,!Zi(p)];a.push(g)}return[r,i,o,a,c,u]},ha=(e,t,n)=>{const[i,s,r,o]=pa(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(h=>{function d(){for(let p=0;pd.rules[p]={apply:m=>d[Ae].push([p,m])}),d})(n):null,c=(a||n).rules,u=`.${i}${s.length>1?`:where(.${s.slice(1).join(".")})`:""}`,f=h=>{h=typeof h=="object"&&h||ma;const{css:d,...p}=h,m={};for(const y in r)if(delete p[y],y in h){let S=h[y];typeof S=="object"&&S?m[y]={"@initial":r[y],...S}:(S=String(S),m[y]=S!=="undefined"||o.has(y)?S:r[y])}else m[y]=r[y];const g=new Set([...s]);for(const[y,S,x,E]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),se(S,[`.${y}`],[],e,k=>{c.styled.apply(k)}));const R=is(x,m,e.media),O=is(E,m,e.media,!0);for(const k of R)if(k!==void 0)for(const[P,A,_]of k){const L=`${y}-${Jt(A)}-${P}`;g.add(L);const $=(_?n.rules.resonevar:n.rules.onevar).cache,W=_?c.resonevar:c.onevar;$.has(L)||($.add(L),se(A,[`.${L}`],[],e,N=>{W.apply(N)}))}for(const k of O)if(k!==void 0)for(const[P,A]of k){const _=`${y}-${Jt(A)}-${P}`;g.add(_),n.rules.allvar.cache.has(_)||(n.rules.allvar.cache.add(_),se(A,[`.${_}`],[],e,L=>{c.allvar.apply(L)}))}}if(typeof d=="object"&&d){const y=`${i}-i${Jt(d)}-css`;g.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),se(d,[`.${y}`],[],e,S=>{c.inline.apply(S)}))}for(const y of String(h.className||"").trim().split(/\s+/))y&&g.add(y);const b=p.className=[...g].join(" ");return{type:t.type,className:b,selector:u,props:p,toString:()=>b,deferredInjector:a}};return Ci(f,{className:i,selector:u,[dn]:t,toString:()=>(n.rules.styled.cache.has(i)||f(),i)})},pa=e=>{let t="";const n=[],i={},s=[];for(const[r,,,,o,a]of e){t===""&&(t=r),n.push(r),s.push(...a);for(const c in o){const u=o[c];(i[c]===void 0||u!=="undefined"||a.includes(u))&&(i[c]=u)}}return[t,n,i,new Set(s)]},is=(e,t,n,i)=>{const s=[];t:for(let[r,o,a]of e){if(a)continue;let c,u=0,f=!1;for(c in r){const h=r[c];let d=t[c];if(d!==h){if(typeof d!="object"||!d)continue t;{let p,m,g=0;for(const b in d){if(h===String(d[b])){if(b!=="@initial"){const y=b.slice(1);(m=m||[]).push(y in n?n[y]:b.replace(/^@media ?/,"")),f=!0}u+=g,p=!0}++g}if(m&&m.length&&(o={["@media "+m.join(", ")]:o}),!p)continue t}}}(s[u]=s[u]||[]).push([i?"cv":`${c}-${r[c]}`,o,f])}return s},ma={},ga=Xe(),ya=(e,t)=>ga(e,()=>(...n)=>{const i=()=>{for(let s of n){s=typeof s=="object"&&s||{};let r=Jt(s);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in s){let o=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(s["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,o++);delete s["@import"]}se(s,[],[],e,o=>{t.rules.global.apply(o)})}}return""};return Ci(i,{toString:i})}),ba=Xe(),va=(e,t)=>ba(e,()=>n=>{const i=`${Rt(e.prefix)}k-${Jt(n)}`,s=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const r=[];se(n,[],[],e,a=>r.push(a));const o=`@keyframes ${i}{${r.join("")}}`;t.rules.global.apply(o)}return i};return Ci(s,{get name(){return s()},toString:s})}),Sa=class{constructor(e,t,n,i){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Rt(this.prefix)+Rt(this.scale)+this.token}toString(){return this.computedValue}},wa=Xe(),Ea=(e,t)=>wa(e,()=>(n,i)=>{i=typeof n=="object"&&n||Object(i);const s=`.${n=(n=typeof n=="string"?n:"")||`${Rt(e.prefix)}t-${Jt(i)}`}`,r={},o=[];for(const c in i){r[c]={};for(const u in i[c]){const f=`--${Rt(e.prefix)}${c}-${u}`,h=Js(String(i[c][u]),e.prefix,c);r[c][u]=new Sa(u,h,c,e.prefix),o.push(`${f}:${h}`)}}const a=()=>{if(o.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${i===e.theme?":root,":""}.${n}{${o.join(";")}}`;t.rules.themed.apply(c)}return n};return{...r,get className(){return a()},selector:s,toString:a}}),Ta=Xe(),xa=e=>{let t=!1;const n=Ta(e,i=>{t=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",r=typeof i.media=="object"&&i.media||{},o=typeof i.root=="object"?i.root||null:globalThis.document||null,a=typeof i.theme=="object"&&i.theme||{},c={prefix:s,media:r,theme:a,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Xo},utils:typeof i.utils=="object"&&i.utils||{}},u=ca(o),f={css:fa(c,u),globalCss:ya(c,u),keyframes:va(c,u),createTheme:Ea(c,u),reset(){u.reset(),f.theme.toString()},theme:{},sheet:u,config:c,prefix:s,getCssText:u.toString,toString:u.toString};return String(f.theme=f.createTheme(a)),f});return t||n.reset(),n},Zs=()=>Ji||(Ji=xa()),Ac=(...e)=>Zs().createTheme(...e),_c=(...e)=>Zs().css(...e);const Ra=["top","right","bottom","left"],Ht=Math.min,nt=Math.max,En=Math.round,an=Math.floor,gt=e=>({x:e,y:e}),Ca={left:"right",right:"left",bottom:"top",top:"bottom"},Oa={start:"end",end:"start"};function ci(e,t,n){return nt(e,Ht(t,n))}function Ct(e,t){return typeof e=="function"?e(t):e}function Ot(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Oi(e){return e==="x"?"y":"x"}function ki(e){return e==="y"?"height":"width"}function Wt(e){return["top","bottom"].includes(Ot(e))?"y":"x"}function Ii(e){return Oi(Wt(e))}function ka(e,t,n){n===void 0&&(n=!1);const i=Ie(e),s=Ii(e),r=ki(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=Tn(o)),[o,Tn(o)]}function Ia(e){const t=Tn(e);return[li(e),t,li(t)]}function li(e){return e.replace(/start|end/g,t=>Oa[t])}function Pa(e,t,n){const i=["left","right"],s=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:i:t?i:s;case"left":case"right":return t?r:o;default:return[]}}function Ma(e,t,n,i){const s=Ie(e);let r=Pa(Ot(e),n==="start",i);return s&&(r=r.map(o=>o+"-"+s),t&&(r=r.concat(r.map(li)))),r}function Tn(e){return e.replace(/left|right|bottom|top/g,t=>Ca[t])}function Aa(e){return{top:0,right:0,bottom:0,left:0,...e}}function tr(e){return typeof e!="number"?Aa(e):{top:e,right:e,bottom:e,left:e}}function xn(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function ss(e,t,n){let{reference:i,floating:s}=e;const r=Wt(t),o=Ii(t),a=ki(o),c=Ot(t),u=r==="y",f=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,d=i[a]/2-s[a]/2;let p;switch(c){case"top":p={x:f,y:i.y-s.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-s.width,y:h};break;default:p={x:i.x,y:i.y}}switch(Ie(t)){case"start":p[o]-=d*(n&&u?-1:1);break;case"end":p[o]+=d*(n&&u?-1:1);break}return p}const _a=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:o}=n,a=r.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:h}=ss(u,i,c),d=i,p={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:r,platform:o,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=Ct(e,t)||{};if(u==null)return{};const h=tr(f),d={x:n,y:i},p=Ii(s),m=ki(p),g=await o.getDimensions(u),b=p==="y",y=b?"top":"left",S=b?"bottom":"right",x=b?"clientHeight":"clientWidth",E=r.reference[m]+r.reference[p]-d[p]-r.floating[m],R=d[p]-r.reference[p],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=O?O[x]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=a.floating[x]||r.floating[m]);const P=E/2-R/2,A=k/2-g[m]/2-1,_=Ht(h[y],A),L=Ht(h[S],A),$=_,W=k-g[m]-L,N=k/2-g[m]/2+P,st=ci($,N,W),z=!c.arrow&&Ie(s)!=null&&N!==st&&r.reference[m]/2-(N<$?_:L)-g[m]/2<0,q=z?N<$?N-$:N-W:0;return{[p]:d[p]+q,data:{[p]:st,centerOffset:N-st-q,...z&&{alignmentOffset:q}},reset:z}}}),La=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:r,rects:o,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ct(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=Ot(s),S=Wt(a),x=Ot(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=d||(x||!g?[Tn(a)]:Ia(a)),O=m!=="none";!d&&O&&R.push(...Ma(a,g,m,E));const k=[a,...R],P=await He(t,b),A=[];let _=((i=r.flip)==null?void 0:i.overflows)||[];if(f&&A.push(P[y]),h){const N=ka(s,o,E);A.push(P[N[0]],P[N[1]])}if(_=[..._,{placement:s,overflows:A}],!A.every(N=>N<=0)){var L,$;const N=(((L=r.flip)==null?void 0:L.index)||0)+1,st=k[N];if(st)return{data:{index:N,overflows:_},reset:{placement:st}};let z=($=_.filter(q=>q.overflows[0]<=0).sort((q,F)=>q.overflows[1]-F.overflows[1])[0])==null?void 0:$.placement;if(!z)switch(p){case"bestFit":{var W;const q=(W=_.filter(F=>{if(O){const et=Wt(F.placement);return et===S||et==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(et=>et>0).reduce((et,It)=>et+It,0)]).sort((F,et)=>F[1]-et[1])[0])==null?void 0:W[0];q&&(z=q);break}case"initialPlacement":z=a;break}if(s!==z)return{reset:{placement:z}}}return{}}}};function rs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function os(e){return Ra.some(t=>e[t]>=0)}const Fa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=Ct(e,t);switch(i){case"referenceHidden":{const r=await He(t,{...s,elementContext:"reference"}),o=rs(r,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:os(o)}}}case"escaped":{const r=await He(t,{...s,altBoundary:!0}),o=rs(r,n.floating);return{data:{escapedOffsets:o,escaped:os(o)}}}default:return{}}}}};async function Ba(e,t){const{placement:n,platform:i,elements:s}=e,r=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=Ot(n),a=Ie(n),c=Wt(n)==="y",u=["left","top"].includes(o)?-1:1,f=r&&c?-1:1,h=Ct(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const $a=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:r,placement:o,middlewareData:a}=t,c=await Ba(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:s+c.x,y:r+c.y,data:{...c,placement:o}}}}},Na=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:y,y:S}=b;return{x:y,y:S}}},...c}=Ct(e,t),u={x:n,y:i},f=await He(t,c),h=Wt(Ot(s)),d=Oi(h);let p=u[d],m=u[h];if(r){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",S=p+f[b],x=p-f[y];p=ci(S,p,x)}if(o){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",S=m+f[b],x=m-f[y];m=ci(S,m,x)}const g=a.fn({...t,[d]:p,[h]:m});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[d]:r,[h]:o}}}}}},ja=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:r,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ct(e,t),f={x:n,y:i},h=Wt(s),d=Oi(h);let p=f[d],m=f[h];const g=Ct(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const x=d==="y"?"height":"width",E=r.reference[d]-r.floating[x]+b.mainAxis,R=r.reference[d]+r.reference[x]-b.mainAxis;pR&&(p=R)}if(u){var y,S;const x=d==="y"?"width":"height",E=["top","left"].includes(Ot(s)),R=r.reference[h]-r.floating[x]+(E&&((y=o.offset)==null?void 0:y[h])||0)+(E?0:b.crossAxis),O=r.reference[h]+r.reference[x]+(E?0:((S=o.offset)==null?void 0:S[h])||0)-(E?b.crossAxis:0);mO&&(m=O)}return{[d]:p,[h]:m}}}},Ha=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:r,platform:o,elements:a}=t,{apply:c=()=>{},...u}=Ct(e,t),f=await He(t,u),h=Ot(s),d=Ie(s),p=Wt(s)==="y",{width:m,height:g}=r.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,b=d==="end"?"top":"bottom");const S=g-f.top-f.bottom,x=m-f.left-f.right,E=Ht(g-f[b],S),R=Ht(m-f[y],x),O=!t.middlewareData.shift;let k=E,P=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(k=S),O&&!d){const _=nt(f.left,0),L=nt(f.right,0),$=nt(f.top,0),W=nt(f.bottom,0);p?P=m-2*(_!==0||L!==0?_+L:nt(f.left,f.right)):k=g-2*($!==0||W!==0?$+W:nt(f.top,f.bottom))}await c({...t,availableWidth:P,availableHeight:k});const A=await o.getDimensions(a.floating);return m!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}};function In(){return typeof window<"u"}function Pe(e){return er(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bt(e){var t;return(t=(er(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function er(e){return In()?e instanceof Node||e instanceof it(e).Node:!1}function ft(e){return In()?e instanceof Element||e instanceof it(e).Element:!1}function yt(e){return In()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function as(e){return!In()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function Je(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(s)}function Wa(e){return["table","td","th"].includes(Pe(e))}function Pn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pi(e){const t=Mi(),n=ft(e)?dt(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function za(e){let t=zt(e);for(;yt(t)&&!we(t);){if(Pi(t))return t;if(Pn(t))return null;t=zt(t)}return null}function Mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function we(e){return["html","body","#document"].includes(Pe(e))}function dt(e){return it(e).getComputedStyle(e)}function Mn(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zt(e){if(Pe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||as(e)&&e.host||bt(e);return as(t)?t.host:t}function nr(e){const t=zt(e);return we(t)?e.ownerDocument?e.ownerDocument.body:e.body:yt(t)&&Je(t)?t:nr(t)}function We(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=nr(e),r=s===((i=e.ownerDocument)==null?void 0:i.body),o=it(s);if(r){const a=ui(o);return t.concat(o,o.visualViewport||[],Je(s)?s:[],a&&n?We(a):[])}return t.concat(s,We(s,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ir(e){const t=dt(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=yt(e),r=s?e.offsetWidth:n,o=s?e.offsetHeight:i,a=En(n)!==r||En(i)!==o;return a&&(n=r,i=o),{width:n,height:i,$:a}}function Ai(e){return ft(e)?e:e.contextElement}function oe(e){const t=Ai(e);if(!yt(t))return gt(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:r}=ir(t);let o=(r?En(n.width):n.width)/i,a=(r?En(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Ua=gt(0);function sr(e){const t=it(e);return!Mi()||!t.visualViewport?Ua:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qa(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function te(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=Ai(e);let o=gt(1);t&&(i?ft(i)&&(o=oe(i)):o=oe(e));const a=qa(r,n,i)?sr(r):gt(0);let c=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,f=s.width/o.x,h=s.height/o.y;if(r){const d=it(r),p=i&&ft(i)?it(i):i;let m=d,g=ui(m);for(;g&&i&&p!==m;){const b=oe(g),y=g.getBoundingClientRect(),S=dt(g),x=y.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,E=y.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;c*=b.x,u*=b.y,f*=b.x,h*=b.y,c+=x,u+=E,m=it(g),g=ui(m)}}return xn({width:f,height:h,x:c,y:u})}function _i(e,t){const n=Mn(e).scrollLeft;return t?t.left+n:te(bt(e)).left+n}function rr(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-(n?0:_i(e,i)),r=i.top+t.scrollTop;return{x:s,y:r}}function Qa(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const r=s==="fixed",o=bt(i),a=t?Pn(t.floating):!1;if(i===o||a&&r)return n;let c={scrollLeft:0,scrollTop:0},u=gt(1);const f=gt(0),h=yt(i);if((h||!h&&!r)&&((Pe(i)!=="body"||Je(o))&&(c=Mn(i)),yt(i))){const p=te(i);u=oe(i),f.x=p.x+i.clientLeft,f.y=p.y+i.clientTop}const d=o&&!h&&!r?rr(o,c,!0):gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-c.scrollTop*u.y+f.y+d.y}}function Va(e){return Array.from(e.getClientRects())}function Ka(e){const t=bt(e),n=Mn(e),i=e.ownerDocument.body,s=nt(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=nt(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+_i(e);const a=-n.scrollTop;return dt(i).direction==="rtl"&&(o+=nt(t.clientWidth,i.clientWidth)-s),{width:s,height:r,x:o,y:a}}function Ga(e,t){const n=it(e),i=bt(e),s=n.visualViewport;let r=i.clientWidth,o=i.clientHeight,a=0,c=0;if(s){r=s.width,o=s.height;const u=Mi();(!u||u&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:r,height:o,x:a,y:c}}function Ya(e,t){const n=te(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,r=yt(e)?oe(e):gt(1),o=e.clientWidth*r.x,a=e.clientHeight*r.y,c=s*r.x,u=i*r.y;return{width:o,height:a,x:c,y:u}}function cs(e,t,n){let i;if(t==="viewport")i=Ga(e,n);else if(t==="document")i=Ka(bt(e));else if(ft(t))i=Ya(t,n);else{const s=sr(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return xn(i)}function or(e,t){const n=zt(e);return n===t||!ft(n)||we(n)?!1:dt(n).position==="fixed"||or(n,t)}function Xa(e,t){const n=t.get(e);if(n)return n;let i=We(e,[],!1).filter(a=>ft(a)&&Pe(a)!=="body"),s=null;const r=dt(e).position==="fixed";let o=r?zt(e):e;for(;ft(o)&&!we(o);){const a=dt(o),c=Pi(o);!c&&a.position==="fixed"&&(s=null),(r?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Je(o)&&!c&&or(e,o))?i=i.filter(f=>f!==o):s=a,o=zt(o)}return t.set(e,i),i}function Ja(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const o=[...n==="clippingAncestors"?Pn(t)?[]:Xa(t,this._c):[].concat(n),i],a=o[0],c=o.reduce((u,f)=>{const h=cs(t,f,s);return u.top=nt(h.top,u.top),u.right=Ht(h.right,u.right),u.bottom=Ht(h.bottom,u.bottom),u.left=nt(h.left,u.left),u},cs(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Za(e){const{width:t,height:n}=ir(e);return{width:t,height:n}}function tc(e,t,n){const i=yt(t),s=bt(t),r=n==="fixed",o=te(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=gt(0);if(i||!i&&!r)if((Pe(t)!=="body"||Je(s))&&(a=Mn(t)),i){const d=te(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else s&&(c.x=_i(s));const u=s&&!i&&!r?rr(s,a):gt(0),f=o.left+a.scrollLeft-c.x-u.x,h=o.top+a.scrollTop-c.y-u.y;return{x:f,y:h,width:o.width,height:o.height}}function Wn(e){return dt(e).position==="static"}function ls(e,t){if(!yt(e)||dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bt(e)===n&&(n=n.ownerDocument.body),n}function ar(e,t){const n=it(e);if(Pn(e))return n;if(!yt(e)){let s=zt(e);for(;s&&!we(s);){if(ft(s)&&!Wn(s))return s;s=zt(s)}return n}let i=ls(e,t);for(;i&&Wa(i)&&Wn(i);)i=ls(i,t);return i&&we(i)&&Wn(i)&&!Pi(i)?n:i||za(e)||n}const ec=async function(e){const t=this.getOffsetParent||ar,n=this.getDimensions,i=await n(e.floating);return{reference:tc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function nc(e){return dt(e).direction==="rtl"}const ic={convertOffsetParentRelativeRectToViewportRelativeRect:Qa,getDocumentElement:bt,getClippingRect:Ja,getOffsetParent:ar,getElementRects:ec,getClientRects:Va,getDimensions:Za,getScale:oe,isElement:ft,isRTL:nc};function cr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sc(e,t){let n=null,i;const s=bt(e);function r(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const u=e.getBoundingClientRect(),{left:f,top:h,width:d,height:p}=u;if(a||t(),!d||!p)return;const m=an(h),g=an(s.clientWidth-(f+d)),b=an(s.clientHeight-(h+p)),y=an(f),x={rootMargin:-m+"px "+-g+"px "+-b+"px "+-y+"px",threshold:nt(0,Ht(1,c))||1};let E=!0;function R(O){const k=O[0].intersectionRatio;if(k!==c){if(!E)return o();k?o(!1,k):i=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!cr(u,e.getBoundingClientRect())&&o(),E=!1}try{n=new IntersectionObserver(R,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(R,x)}n.observe(e)}return o(!0),r}function Dc(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,u=Ai(e),f=s||r?[...u?We(u):[],...We(t)]:[];f.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const h=u&&a?sc(u,n):null;let d=-1,p=null;o&&(p=new ResizeObserver(y=>{let[S]=y;S&&S.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let m,g=c?te(e):null;c&&b();function b(){const y=te(e);g&&!cr(g,y)&&n(),g=y,m=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(S=>{s&&S.removeEventListener("scroll",n),r&&S.removeEventListener("resize",n)}),h?.(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const rc=$a,oc=Na,ac=La,cc=Ha,lc=Fa,us=Da,uc=ja,fc=(e,t,n)=>{const i=new Map,s={platform:ic,...n},r={...s.platform,_c:i};return _a(e,t,{...s,platform:r})};var hn=typeof document<"u"?U.useLayoutEffect:U.useEffect;function Rn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Rn(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const r=s[i];if(!(r==="_owner"&&e.$$typeof)&&!Rn(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function lr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fs(e,t){const n=lr(e);return Math.round(t*n)/n}function zn(e){const t=U.useRef(e);return hn(()=>{t.current=e}),t}function Lc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:r,floating:o}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,h]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=U.useState(i);Rn(d,i)||p(i);const[m,g]=U.useState(null),[b,y]=U.useState(null),S=U.useCallback(F=>{F!==O.current&&(O.current=F,g(F))},[]),x=U.useCallback(F=>{F!==k.current&&(k.current=F,y(F))},[]),E=r||m,R=o||b,O=U.useRef(null),k=U.useRef(null),P=U.useRef(f),A=c!=null,_=zn(c),L=zn(s),$=zn(u),W=U.useCallback(()=>{if(!O.current||!k.current)return;const F={placement:t,strategy:n,middleware:d};L.current&&(F.platform=L.current),fc(O.current,k.current,F).then(et=>{const It={...et,isPositioned:$.current!==!1};N.current&&!Rn(P.current,It)&&(P.current=It,vr.flushSync(()=>{h(It)}))})},[d,t,n,L,$]);hn(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[u]);const N=U.useRef(!1);hn(()=>(N.current=!0,()=>{N.current=!1}),[]),hn(()=>{if(E&&(O.current=E),R&&(k.current=R),E&&R){if(_.current)return _.current(E,R,W);W()}},[E,R,W,_,A]);const st=U.useMemo(()=>({reference:O,floating:k,setReference:S,setFloating:x}),[S,x]),z=U.useMemo(()=>({reference:E,floating:R}),[E,R]),q=U.useMemo(()=>{const F={position:n,left:0,top:0};if(!z.floating)return F;const et=fs(z.floating,f.x),It=fs(z.floating,f.y);return a?{...F,transform:"translate("+et+"px, "+It+"px)",...lr(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:et,top:It}},[n,a,z.floating,f.x,f.y]);return U.useMemo(()=>({...f,update:W,refs:st,elements:z,floatingStyles:q}),[f,W,st,z,q])}const dc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?us({element:i.current,padding:s}).fn(n):{}:i?us({element:i,padding:s}).fn(n):{}}}},Fc=(e,t)=>({...rc(e),options:[e,t]}),Bc=(e,t)=>({...oc(e),options:[e,t]}),$c=(e,t)=>({...uc(e),options:[e,t]}),Nc=(e,t)=>({...ac(e),options:[e,t]}),jc=(e,t)=>({...cc(e),options:[e,t]}),Hc=(e,t)=>({...lc(e),options:[e,t]}),Wc=(e,t)=>({...dc(e),options:[e,t]});export{Mc as A,gc as B,bc as M,yc as Q,rn as S,xa as X,_c as _,xc as a,kc as b,Oc as c,Rc as d,vn as e,wo as f,Cc as g,Ic as h,Se as i,wc as j,Sc as k,Ec as l,Tc as m,V as n,Fc as o,Bc as p,Ac as q,Pc as r,vc as s,Nc as t,Lc as u,jc as v,Wc as w,Hc as x,$c as y,Dc as z};