PageSourceSearch

https://www.umph.ai/_next/static/chunks/535-192aa1f1a6b5dc4d.js

js umph.ai collected 2026-10-05 13:48:35 UTC 62,398 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[535],{5379:(t,e,n)=>{n.d(e,{D:()=>s});var r=n(12115),i=r.createContext(void 0),o={setTheme:t=>{},themes:[]},s=()=>{var t;return null!=(t=r.useContext(i))?t:o}},17067:(t,e,n)=>{n.d(e,{E:()=>Q});var r={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},i=new class{#t=r;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}},o="undefined"==typeof window||"Deno"in globalThis;function s(){}function a(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=t;if(s){if(r){if(e.queryHash!==c(s,e.options))return!1}else if(!f(e.queryKey,s))return!1}if("all"!==n){let t=e.isActive();if("active"===n&&!t||"inactive"===n&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(!i||i===e.state.fetchStatus)&&(!o||!!o(e))}function u(t,e){let{exact:n,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(h(e.options.mutationKey)!==h(o))return!1}else if(!f(e.options.mutationKey,o))return!1}return(!r||e.state.status===r)&&(!i||!!i(e))}function c(t,e){return(e?.queryKeyHashFn||h)(t)}function h(t){return JSON.stringify(t,(t,e)=>y(e)?Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}):e)}function f(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(n=>f(t[n],e[n]))}var d=Object.prototype.hasOwnProperty;function p(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function y(t){if(!m(t))return!1;let e=t.constructor;if(void 0===e)return!0;let n=e.prototype;return!!m(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function m(t){return"[object Object]"===Object.prototype.toString.call(t)}function g(t,e,n=0){let r=[...t,e];return n&&r.length>n?r.slice(1):r}function v(t,e,n=0){let r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var b=Symbol();function w(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==b?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}var x=function(t){setTimeout(t,0)},C=function(){let t=[],e=0,n=t=>{t()},r=t=>{t()},i=x,o=r=>{e?t.push(r):i(()=>{n(r)})};return{batch:o=>{let s;e++;try{s=o()}finally{--e||(()=>{let e=t;t=[],e.length&&i(()=>{r(()=>{e.forEach(t=>{n(t)})})})})()}return s},batchCalls:t=>(...e)=>{o(()=>{t(...e)})},schedule:o,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{i=t}}}(),O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},P=new class extends O{#n;#r;#i;constructor(){super(),this.#i=t=>{if(!o&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(t){this.#i=t,this.#r?.(),this.#r=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#n!==t&&(this.#n=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#n?this.#n:globalThis.document?.visibilityState!=="hidden"}},S=new class extends O{#o=!0;#r;#i;constructor(){super(),this.#i=t=>{if(!o&&window.addEventListener){let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(t){this.#i=t,this.#r?.(),this.#r=t(this.setOnline.bind(this))}
1setOnline(t){this.#o!==t&&(this.#o=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#o}};function A(t){return Math.min(1e3*2**t,3e4)}function E(t){return(t??"online")!=="online"||S.isOnline()}var R=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function T(t){let e,n=!1,r=0,s=function(){let t,e,n=new Promise((n,r)=>{t=n,e=r});function r(t){Object.assign(n,t),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=e=>{r({status:"fulfilled",value:e}),t(e)},n.reject=t=>{r({status:"rejected",reason:t}),e(t)},n}(),a=()=>P.isFocused()&&("always"===t.networkMode||S.isOnline())&&t.canRun(),l=()=>E(t.networkMode)&&t.canRun(),u=t=>{"pending"===s.status&&(e?.(),s.resolve(t))},c=t=>{"pending"===s.status&&(e?.(),s.reject(t))},h=()=>new Promise(n=>{e=t=>{("pending"!==s.status||a())&&n(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===s.status&&t.onContinue?.()}),f=()=>{let e;if("pending"!==s.status)return;let l=0===r?t.initialPromise:void 0;try{e=l??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(u).catch(e=>{if("pending"!==s.status)return;let l=t.retry??3*!o,u=t.retryDelay??A,d="function"==typeof u?u(r,e):u,p=!0===l||"number"==typeof l&&r<l||"function"==typeof l&&l(r,e);if(n||!p)return void c(e);r++,t.onFail?.(r,e),new Promise(t=>{i.setTimeout(t,d)}).then(()=>a()?void 0:h()).then(()=>{n?c(e):f()})})};return{promise:s,status:()=>s.status,cancel:e=>{if("pending"===s.status){let n=new R(e);c(n),t.onCancel?.(n)}},continue:()=>(e?.(),s),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:l,start:()=>(l()?f():h().then(f),s)}}var q=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){var t;this.clearGcTimeout(),"number"==typeof(t=this.gcTime)&&t>=0&&t!==1/0&&(this.#s=i.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(o?1/0:3e5))}clearGcTimeout(){this.#s&&(i.clearTimeout(this.#s),this.#s=void 0)}},j=class extends q{#a;#l;#u;#c;#h;#f;#d;constructor(t){super(),this.#d=!1,this.#f=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#c=t.client,this.#u=this.#c.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#a=k(this.options),this.state=t.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(t){if(this.options={...this.#f,...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=k(this.options);void 0!==t.data&&(this.setState(F(t.data,t.dataUpdatedAt)),this.#a=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(t,e){var n,r;let i=(n=this.state.data,"function"==typeof(r=this.options).structuralSharing?r.structuralSharing(n,t):!1!==r.structuralSharing?function t(e,n,r=0){if(e===n)return e;if(r>500)return n;let i=p(e)&&p(n);if(!i&&!(y(e)&&y(n)))return n;let o=(i?e:Object.keys(e)).length,s=i?n:Object.keys(n),a=s.length,l=i?Array(a):{},u=0;for(let c=0;c<a;c++){let a=i?c:s[c],h=e[a],f=n[a];if(h===f){l[a]=h,(i?c<o:d.call(e,a))&&u++;continue}if(null===h||null===f||"object"!=typeof h||"object"!=typeof f){l[a]=f;continue}let p=t(h,f,r+1);l[a]=p,p===h&&u++}return o===a&&u===o?e:l}(n,t):t);return this.#p({data:i,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),i}setState(t,e){this.#p({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#h?.promise;return this.#h?.cancel(t),e?e.then(s).catch(s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(t=>{var e;return!1!==(e=t.options.enabled,"function"==typeof e?e(this):e)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===b||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===a(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!Math.max(this.state.dataUpdatedAt+(t||0)-Date.now(),0))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#h&&(this.#d?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(t,e){if("idle"!==this.state.fetchStatus&&this.#h?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let n=new AbortController,r=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)}
1)},i=()=>{let t=w(this.options,e),n=(()=>{let t={client:this.#c,queryKey:this.queryKey,meta:this.meta};return r(t),t})();return(this.#d=!1,this.options.persister)?this.options.persister(t,n,this):t(n)},o=(()=>{let t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:i};return r(t),t})();this.options.behavior?.onFetch(o,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#p({type:"fetch",meta:o.fetchOptions?.meta}),this.#h=T({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:t=>{t instanceof R&&t.revert&&this.setState({...this.#l,fetchStatus:"idle"}),n.abort()},onFail:(t,e)=>{this.#p({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let t=await this.#h.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#u.config.onSuccess?.(t,this),this.#u.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof R){if(t.silent)return this.#h.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#p({type:"error",error:t}),this.#u.config.onError?.(t,this),this.#u.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#p(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":var n;return{...e,...(n=e.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:E(this.options.networkMode)?"fetching":"paused",...void 0===n&&{error:null,status:"pending"}}),fetchMeta:t.meta??null};case"success":let r={...e,...F(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=t.manual?r:void 0,r;case"error":let i=t.error;return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),C.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:t})})}};function F(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function k(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var D=class extends O{constructor(t={}){super(),this.config=t,this.#y=new Map}#y;build(t,e,n){let r=e.queryKey,i=e.queryHash??c(r,e),o=this.get(i);return o||(o=new j({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){this.#y.has(t.queryHash)||(this.#y.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#y.get(t.queryHash);
vendor: 9,754 bytes, line 1
1e&&(t.destroy(),e===t&&this.#y.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){C.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#y.get(t)}getAll(){return[...this.#y.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>l(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>l(t,e)):e}notify(t){C.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){C.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){C.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},L=class extends q{#c;#m;#g;#h;constructor(t){super(),this.#c=t.client,this.mutationId=t.mutationId,this.#g=t.mutationCache,this.#m=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#m.includes(t)||(this.#m.push(t),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#m=this.#m.filter(e=>e!==t),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#m.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#p({type:"continue"})},n={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=T({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#p({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#p({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});let r="pending"===this.state.status,i=!this.#h.canStart();try{if(r)e();else{this.#p({type:"pending",variables:t,isPaused:i}),this.#g.config.onMutate&&await this.#g.config.onMutate(t,this,n);let e=await this.options.onMutate?.(t,n);e!==this.state.context&&this.#p({type:"pending",context:e,variables:t,isPaused:i})}let o=await this.#h.start();return await this.#g.config.onSuccess?.(o,t,this.state.context,this,n),await this.options.onSuccess?.(o,t,this.state.context,n),await this.#g.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,t,this.state.context,n),this.#p({type:"success",data:o}),o}catch(e){try{await this.#g.config.onError?.(e,t,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,n)}catch(t){Promise.reject(t)}try{await this.#g.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,n)}catch(t){Promise.reject(t)}throw this.#p({type:"error",error:e}),e}finally{this.#g.runNext(this)}}#p(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,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{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),C.batch(()=>{this.#m.forEach(e=>{e.onMutationUpdate(t)}),this.#g.notify({mutation:this,type:"updated",action:t})})}},M=class extends O{constructor(t={}){super(),this.config=t,this.#v=new Set,this.#b=new Map,this.#w=0}#v;#b;#w;build(t,e,n){let r=new L({client:t,mutationCache:this,mutationId:++this.#w,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#v.add(t);let e=H(t);if("string"==typeof e){let n=this.#b.get(e);n?n.push(t):this.#b.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#v.delete(t)){let e=H(t);if("string"==typeof e){let n=this.#b.get(e);if(n)if(n.length>1){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}else n[0]===t&&this.#b.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=H(t);if("string"!=typeof e)return!0;{let n=this.#b.get(e),r=n?.find(t=>"pending"===t.state.status);return!r||r===t}}runNext(t){let e=H(t);if("string"!=typeof e)return Promise.resolve();{let n=this.#b.get(e)?.find(e=>e!==t&&e.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){C.batch(()=>{this.#v.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#v.clear(),this.#b.clear()})}getAll(){return Array.from(this.#v)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>u(e,t))}findAll(t={}){return this.getAll().filter(e=>u(t,e))}notify(t){C.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return C.batch(()=>Promise.all(t.map(t=>t.continue().catch(s))))}};function H(t){return t.options.scope?.id}function I(t){return{onFetch:(e,n)=>{let r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],s=e.state.data?.pageParams||[],a={pages:[],pageParams:[]},l=0,u=async()=>{let n=!1,u=w(e.options,e.fetchOptions),c=async(t,r,i)=>{if(n)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);let o=(()=>{var t,o;let s,a,l={client:e.client,queryKey:e.queryKey,pageParam:r,direction:i?"backward":"forward",meta:e.options.meta};return t=()=>e.signal,o=()=>n=!0,a=!1,Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(s??=t(),a||(a=!0,s.aborted?o():s.addEventListener("abort",o,{once:!0})),s)}),l})(),s=await u(o),{maxPages:a}=e.options,l=i?v:g;return{pages:l(t.pages,s,a),pageParams:l(t.pageParams,r,a)}};if(i&&o.length){let t="backward"===i,e={pages:o,pageParams:s},n=(t?function(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}:K)(r,e);a=await c(e,n,t)}else{let e=t??o.length;do{let t=0===l?s[0]??r.initialPageParam:K(r,a);if(l>0&&null==t)break;a=await c(a,t),l++}while(l<e)}return a};e.options.persister?e.fetchFn=()=>e.options.persister?.(u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=u}}}function K(t,{pages:e,pageParams:n}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}var Q=class{#x;#g;#f;#C;#O;#P;#S;#A;constructor(t={}){this.#x=t.queryCache||new D,this.#g=t.mutationCache||new M,this.#f=t.defaultOptions||{},this.#C=new Map,this.#O=new Map,this.#P=0}mount(){this.#P++,1===this.#P&&(this.#S=P.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#x.onFocus())}),this.#A=S.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#x.onOnline())}))}unmount(){this.#P--,0===this.#P&&(this.#S?.(),this.#S=void 0,this.#A?.(),this.#A=void 0)}isFetching(t){return this.#x.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#g.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#x.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),n=this.#x.build(this,e),r=n.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(a(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#x.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,n){let r=this.defaultQueryOptions({queryKey:t}),i=this.#x.get(r.queryHash),o=i?.state.data,s="function"==typeof e?e(o):e;if(void 0!==s)return this.#x.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(t,e,n){return C.batch(()=>this.#x.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,n)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#x.get(e.queryHash)?.state}removeQueries(t){let e=this.#x;C.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let n=this.#x;return C.batch(()=>(n.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let n={revert:!0,...e};return Promise.all(C.batch(()=>this.#x.findAll(t).map(t=>t.cancel(n)))).then(s).catch(s)}invalidateQueries(t,e={}){return C.batch(()=>(this.#x.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let n={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(C.batch(()=>this.#x.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(s)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(s)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let n=this.#x.build(this,e);return n.isStaleByTime(a(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s).catch(s)}fetchInfiniteQuery(t){return t.behavior=I(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s).catch(s)}ensureInfiniteQueryData(t){return t.behavior=I(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return S.isOnline()?this.#g.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#x}getMutationCache(){return this.#g}getDefaultOptions(){return this.#f}setDefaultOptions(t){this.#f=t}setQueryDefaults(t,e){this.#C.set(h(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#C.values()],n={};
1return e.forEach(e=>{f(t,e.queryKey)&&Object.assign(n,e.defaultOptions)}),n}setMutationDefaults(t,e){this.#O.set(h(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#O.values()],n={};return e.forEach(e=>{f(t,e.mutationKey)&&Object.assign(n,e.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#f.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=c(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===b&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#f.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#x.clear(),this.#g.clear()}}},20063:(t,e,n)=>{var r=n(47260);n.o(r,"usePathname")&&n.d(e,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(e,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(e,{useSearchParams:function(){return r.useSearchParams}})},26302:(t,e,n)=>{n.d(e,{sf:()=>l,so:()=>s});var r=n(26614),i=n(12115),o=(0,i.createContext)({client:r.Ay,bootstrap:void 0});function s(t){var e,n,s=t.children,a=t.client,l=t.apiKey,u=t.options,c=(0,i.useRef)(null),h=(0,i.useMemo)(function(){return a?(l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),u&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),a):(l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),r.Ay)},[a,l,JSON.stringify(u)]);return(0,i.useEffect)(function(){if(!a){var t=c.current;t?(l!==t.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),u&&!function t(e,n,r){if(void 0===r&&(r=new WeakMap),e===n)return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;if(r.has(e)&&r.get(e)===n)return!0;r.set(e,n);var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(var s=0;s<i.length;s++){var a=i[s];if(!o.includes(a)||!t(e[a],n[a],r))return!1}return!0}(u,t.options)&&r.Ay.set_config(u)):(r.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),r.Ay.init(l,u)),c.current={apiKey:l,options:null!=u?u:{}}}},[a,l,JSON.stringify(u)]),i.createElement(o.Provider,{value:{client:h,bootstrap:null!=(e=null==u?void 0:u.bootstrap)?e:null==(n=null==a?void 0:a.config)?void 0:n.bootstrap}},s)}var a=function(t){return"function"==typeof t},l=function(){return(0,i.useContext)(o).client},u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};"function"==typeof SuppressedError&&SuppressedError;var c={componentStack:null,exceptionEvent:null,error:null},h={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}function n(e){var n=t.call(this,e)||this;return n.state=c,n}u(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e),n.prototype.componentDidCatch=function(t,e){var n,r=this.props.additionalProperties;a(r)?n=r(t):"object"==typeof r&&(n=r);var i=this.context.client.captureException(t,n),o=e.componentStack;this.setState({error:t,componentStack:null!=o?o:null,exceptionEvent:i})},n.prototype.render=function(){var t=this.props,e=t.children,n=t.fallback,r=this.state;if(null==r.componentStack)return a(e)?e():e;var o=a(n)?i.createElement(n,{error:r.error,componentStack:r.componentStack,exceptionEvent:r.exceptionEvent}):n;return i.isValidElement(o)?o:(console.warn(h.INVALID_FALLBACK),i.createElement(i.Fragment,null))},n.contextType=o}(i.Component)},33300:(t,e,n)=>{n.d(e,{Kq:()=>em});var r=n(12115),i=n(92556),o=n(94446),s=n(3468),a=n(44831);n(68946);let l=["top","right","bottom","left"],u=Math.min,c=Math.max,h=Math.round,f=Math.floor,d=t=>({x:t,y:t}
1),p={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function v(t){return t.split("-")[1]}function b(t){return"x"===t?"y":"x"}function w(t){return"y"===t?"height":"width"}let x=new Set(["top","bottom"]);function C(t){return x.has(g(t))?"y":"x"}function O(t){return t.replace(/start|end/g,t=>y[t])}let P=["left","right"],S=["right","left"],A=["top","bottom"],E=["bottom","top"];function R(t){return t.replace(/left|right|bottom|top/g,t=>p[t])}function T(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function q(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function j(t,e,n){let r,{reference:i,floating:o}=t,s=C(e),a=b(C(e)),l=w(a),u=g(e),c="y"===s,h=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,d=i[l]/2-o[l]/2;switch(u){case"top":r={x:h,y:i.y-o.height};break;case"bottom":r={x:h,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(v(e)){case"start":r[a]-=d*(n&&c?-1:1);break;case"end":r[a]+=d*(n&&c?-1:1)}return r}let F=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=j(u,r,l),f=r,d={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:y}=a[n],{x:m,y:g,data:v,reset:b}=await y({x:c,y:h,initialPlacement:r,placement:f,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=g?g:h,d={...d,[o]:{...d[o],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:c,y:h}=j(u,f,l)),n=-1)}return{x:c,y:h,placement:f,strategy:i,middlewareData:d}};async function k(t,e){var n;void 0===e&&(e={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=m(e,t),p=T(d),y=a[f?"floating"===h?"reference":"floating":h],g=q(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===h?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),w=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},x=q(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+p.top)/w.y,bottom:(x.bottom-g.bottom+p.bottom)/w.y,left:(g.left-x.left+p.left)/w.x,right:(x.right-g.right+p.right)/w.x}}function D(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function L(t){return l.some(e=>t[e]>=0)}let M=new Set(["left","top"]);async function H(t,e){let{placement:n,platform:r,elements:i}=t,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=g(n),a=v(n),l="y"===C(n),u=M.has(s)?-1:1,c=o&&l?-1:1,h=m(e,t),{mainAxis:f,crossAxis:d,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof p&&(d="end"===a?-1*p:p),l?{x:d*c,y:f*u}:{x:f*u,y:d*c}}function I(){return"undefined"!=typeof window}function K(t){return _(t)?(t.nodeName||"").toLowerCase():"#document"}function Q(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function N(t){var e;return null==(e=(_(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function _(t){return!!I()&&(t instanceof Node||t instanceof Q(t).Node)}function U(t){return!!I()&&(t instanceof Element||t instanceof Q(t).Element)}function B(t){return!!I()&&(t instanceof HTMLElement||t instanceof Q(t).HTMLElement)}function W(t){return!!I()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Q(t).ShadowRoot)}let G=new Set(["inline","contents"]);function z(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=ti(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!G.has(i)}let V=new Set(["table","td","th"]),Y=[":popover-open",":modal"];function $(t){return Y.some(e=>{try{return t.matches(e)}catch(t){return!1}})}let X=["transform","translate","scale","rotate","perspective"],J=["transform","translate","scale","rotate","perspective","filter"],Z=["paint","layout","strict","content"];function tt(t){let e=te(),n=U(t)?ti(t):t;return X.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||J.some(t=>(n.willChange||"").includes(t))||Z.some(t=>(n.contain||"").includes(t))}function te(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let tn=new Set(["html","body","#document"]);function tr(t){return tn.has(K(t))}function ti(t){return Q(t).getComputedStyle(t)}function to(t){return U(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ts(t){if("html"===K(t))return t;let e=t.assignedSlot||t.parentNode||W(t)&&t.host||N(t);return W(e)?e.host:e}function ta(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);let i=function t(e){let n=ts(e);return tr(n)?e.ownerDocument?e.ownerDocument.body:e.body:B(n)&&z(n)?n:t(n)}(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),s=Q(i);if(o){let t=tl(s);
1return e.concat(s,s.visualViewport||[],z(i)?i:[],t&&n?ta(t):[])}return e.concat(i,ta(i,[],n))}function tl(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tu(t){let e=ti(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=B(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=h(n)!==o||h(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function tc(t){return U(t)?t:t.contextElement}function th(t){let e=tc(t);if(!B(e))return d(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=tu(e),s=(o?h(n.width):n.width)/r,a=(o?h(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let tf=d(0);function td(t){let e=Q(t);return te()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tf}function tp(t,e,n,r){var i;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),s=tc(t),a=d(1);e&&(r?U(r)&&(a=th(r)):a=th(t));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===Q(s))&&i)?td(s):d(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,h=o.width/a.x,f=o.height/a.y;if(s){let t=Q(s),e=r&&U(r)?Q(r):r,n=t,i=tl(n);for(;i&&r&&e!==n;){let t=th(i),e=i.getBoundingClientRect(),r=ti(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;u*=t.x,c*=t.y,h*=t.x,f*=t.y,u+=o,c+=s,i=tl(n=Q(i))}}return q({width:h,height:f,x:u,y:c})}function ty(t,e){let n=to(t).scrollLeft;return e?e.left+n:tp(N(t)).left+n}function tm(t,e){let n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-ty(t,n),y:n.top+e.scrollTop}}let tg=new Set(["absolute","fixed"]);function tv(t,e,n){let r;if("viewport"===e)r=function(t,e){let n=Q(t),r=N(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let t=te();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}let u=ty(r);if(u<=0){let t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-e.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(t,n);else if("document"===e)r=function(t){let e=N(t),n=to(t),r=t.ownerDocument.body,i=c(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=c(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+ty(t),a=-n.scrollTop;return"rtl"===ti(r).direction&&(s+=c(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(N(t));else if(U(e))r=function(t,e){let n=tp(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=B(t)?th(t):d(1),s=t.clientWidth*o.x,a=t.clientHeight*o.y;return{width:s,height:a,x:i*o.x,y:r*o.y}}(e,n);else{let n=td(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return q(r)}function tb(t){return"static"===ti(t).position}function tw(t,e){if(!B(t)||"fixed"===ti(t).position)return null;if(e)return e(t);let n=t.offsetParent;return N(t)===n&&(n=n.ownerDocument.body),n}function tx(t,e){var n;let r=Q(t);if($(t))return r;if(!B(t)){let e=ts(t);for(;e&&!tr(e);){if(U(e)&&!tb(e))return e;e=ts(e)}return r}let i=tw(t,e);for(;i&&(n=i,V.has(K(n)))&&tb(i);)i=tw(i,e);return i&&tr(i)&&tb(i)&&!tt(i)?r:i||function(t){let e=ts(t);for(;B(e)&&!tr(e);){if(tt(e))return e;if($(e))break;e=ts(e)}return null}(t)||r}let tC=async function(t){let e=this.getOffsetParent||tx,n=this.getDimensions,r=await n(t.floating);return{reference:function(t,e,n){let r=B(e),i=N(e),o="fixed"===n,s=tp(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=d(0);if(r||!r&&!o)if(("body"!==K(e)||z(i))&&(a=to(e)),r){let t=tp(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=ty(i));o&&!r&&i&&(l.x=ty(i));let u=!i||r||o?d(0):tm(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tO={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,o="fixed"===i,s=N(r),a=!!e&&$(e.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=d(1),c=d(0),h=B(r);if((h||!h&&!o)&&(("body"!==K(r)||z(s))&&(l=to(r)),B(r))){let t=tp(r);u=th(r),c.x=t.x+r.clientLeft,c.y=t.y+r.clientTop}let f=!s||h||o?d(0):tm(s,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:N,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,o=[..."clippingAncestors"===n?$(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let r=ta(t,[],!1).filter(t=>U(t)&&"body"!==K(t)),i=null,o="fixed"===ti(t).position,s=o?ts(t):t;for(;U(s)&&!tr(s);){let e=ti(s),n=tt(s);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&!!i&&tg.has(i.position)||z(s)&&!n&&function t(e,n){let r=ts(e);return!(r===n||!U(r)||tr(r))&&("fixed"===ti(r).position||t(r,n))}(t,s))?r=r.filter(t=>t!==s):i=e,s=ts(s)}return e.set(t,r),r}(e,this._c):[].concat(n),r],s=o[0],a=o.reduce((t,n)=>{let r=tv(e,n,i);return t.top=c(r.top,t.top),t.right=u(r.right,t.right),t.bottom=u(r.bottom,t.bottom),t.left=c(r.left,t.left),t},tv(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:tx,getElementRects:tC,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=tu(t);return{width:e,height:n}},getScale:th,isElement:U,isRTL:function(t){return"rtl"===ti(t).direction}};function tP(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}let tS=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:h,padding:f=0}=m(t,e)||{};if(null==h)return{};let d=T(f),p={x:n,y:r},y=b(C(i)),g=w(y),x=await s.getDimensions(h),O="y"===y,P=O?"clientHeight":"clientWidth",S=o.reference[g]+o.reference[y]-p[y]-o.floating[g],A=p[y]-o.reference[y],E=await (null==s.getOffsetParent?void 0:s.getOffsetParent(h)),R=E?E[P]:0;R&&await (null==s.isElement?void 0:s.isElement(E))||(R=a.floating[P]||o.floating[g]);let q=R/2-x[g]/2-1,j=u(d[O?"top":"left"],q),F=u(d[O?"bottom":"right"],q),k=R-x[g]-F,D=R/2-x[g]/2+(S/2-A/2),L=c(j,u(D,k)),M=!l.arrow&&null!=v(i)&&D!==L&&o.reference[g]/2-(D<j?j:F)-x[g]/2<0,H=M?D<j?D-j:D-k:0;return{[y]:p[y]+H,data:{[y]:L,centerOffset:D-L-H,...M&&{alignmentOffset:H}},reset:M}}});var tA=n(47650),tE="undefined"!=typeof document?r.useLayoutEffect:function(){};function tR(t,e){let n,r,i;if(t===e)return!0;
1if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(r=n;0!=r--;)if(!tR(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!t.$$typeof)&&!tR(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function tT(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function tq(t,e){let n=tT(t);return Math.round(e*n)/n}function tj(t){let e=r.useRef(t);return tE(()=>{e.current=t}),e}var tF=n(88142),tk=n(95155),tD=r.forwardRef((t,e)=>{let{children:n,width:r=10,height:i=5,...o}=t;return(0,tk.jsx)(tF.sG.svg,{...o,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:(0,tk.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tD.displayName="Arrow";var tL=n(70222),tM=n(4129),tH="Popper",[tI,tK]=(0,s.A)(tH),[tQ,tN]=tI(tH);var t_="PopperAnchor",tU=r.forwardRef((t,e)=>{let{__scopePopper:n,virtualRef:i,...s}=t,a=tN(t_,n),l=r.useRef(null),u=(0,o.s)(e,l),c=r.useRef(null);return r.useEffect(()=>{let t=c.current;c.current=(null==i?void 0:i.current)||l.current,t!==c.current&&a.onAnchorChange(c.current)}),i?null:(0,tk.jsx)(tF.sG.div,{...s,ref:u})});tU.displayName=t_;var tB="PopperContent",[tW,tG]=tI(tB),tz=r.forwardRef((t,e)=>{var n,i,s,a,l,h,d,p;let{__scopePopper:y,side:x="bottom",sideOffset:T=0,align:q="center",alignOffset:j=0,arrowPadding:I=0,avoidCollisions:K=!0,collisionBoundary:Q=[],collisionPadding:_=0,sticky:U="partial",hideWhenDetached:B=!1,updatePositionStrategy:W="optimized",onPlaced:G,...z}=t,V=tN(tB,y),[Y,$]=r.useState(null),X=(0,o.s)(e,t=>$(t)),[J,Z]=r.useState(null),tt=function(t){let[e,n]=r.useState(void 0);return(0,tM.N)(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let r,i;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=t.offsetWidth,i=t.offsetHeight;n({width:r,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}(J),te=null!=(d=null==tt?void 0:tt.width)?d:0,tn=null!=(p=null==tt?void 0:tt.height)?p:0,tr="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},ti=Array.isArray(Q)?Q:[Q],to=ti.length>0,ts={padding:tr,boundary:ti.filter(tX),altBoundary:to},{refs:tl,floatingStyles:tu,placement:th,isPositioned:tf,middlewareData:td}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=t,[h,f]=r.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,p]=r.useState(i);tR(d,i)||p(i);let[y,m]=r.useState(null),[g,v]=r.useState(null),b=r.useCallback(t=>{t!==O.current&&(O.current=t,m(t))},[]),w=r.useCallback(t=>{t!==P.current&&(P.current=t,v(t))},[]),x=s||y,C=a||g,O=r.useRef(null),P=r.useRef(null),S=r.useRef(h),A=null!=u,E=tj(u),R=tj(o),T=tj(c),q=r.useCallback(()=>{if(!O.current||!P.current)return;let t={placement:e,strategy:n,middleware:d};R.current&&(t.platform=R.current),((t,e,n)=>{let r=new Map,i={platform:tO,...n},o={...i.platform,_c:r};return F(t,e,{...i,platform:o})})(O.current,P.current,t).then(t=>{let e={...t,isPositioned:!1!==T.current};j.current&&!tR(S.current,e)&&(S.current=e,tA.flushSync(()=>{f(e)}))})},[d,e,n,R,T]);tE(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(t=>({...t,isPositioned:!1})))},[c]);let j=r.useRef(!1);tE(()=>(j.current=!0,()=>{j.current=!1}),[]),tE(()=>{if(x&&(O.current=x),C&&(P.current=C),x&&C){if(E.current)return E.current(x,C,q);q()}},[x,C,q,E,A]);let k=r.useMemo(()=>({reference:O,floating:P,setReference:b,setFloating:w}),[b,w]),D=r.useMemo(()=>({reference:x,floating:C}),[x,C]),L=r.useMemo(()=>{let t={position:n,left:0,top:0};if(!D.floating)return t;let e=tq(D.floating,h.x),r=tq(D.floating,h.y);return l?{...t,transform:"translate("+e+"px, "+r+"px)",...tT(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,l,D.floating,h.x,h.y]);return r.useMemo(()=>({...h,update:q,refs:k,elements:D,floatingStyles:L}),[h,q,k,D,L])}({strategy:"fixed",placement:x+("center"!==q?"-"+q:""),whileElementsMounted:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t,e,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,d=tc(t),p=o||s?[...d?ta(d):[],...ta(e)]:[];p.forEach(t=>{o&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});let y=d&&l?function(t,e){let n,r=null,i=N(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let h=t.getBoundingClientRect(),{left:d,top:p,width:y,height:m}=h;if(a||e(),!y||!m)return;let g=f(p),v=f(i.clientWidth-(d+y)),b={rootMargin:-g+"px "+-v+"px "+-f(i.clientHeight-(p+m))+"px "+-f(d)+"px",threshold:c(0,u(1,l))||1},w=!0;function x(e){let r=e[0].intersectionRatio;if(r!==l){if(!w)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||tP(h,t.getBoundingClientRect())||s(),w=!1}try{r=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch(t){r=new IntersectionObserver(x,b)}r.observe(t)}(!0),o}(d,n):null,m=-1,g=null;a&&(g=new ResizeObserver(t=>{let[r]=t;r&&r.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var t;null==(t=g)||t.observe(e)})),n()}),d&&!h&&g.observe(d),g.observe(e));let v=h?tp(t):null;return h&&function e(){let r=tp(t);v&&!tP(v,r)&&n(),v=r,i=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach(t=>{o&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==y||y(),null==(t=g)||t.disconnect(),g=null,h&&cancelAnimationFrame(i)}}(...e,{animationFrame:"always"===W})},elements:{reference:V.anchor},middleware:[((t,e)=>({...function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=e,l=await H(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}}(t),options:[t,e]}))({mainAxis:T+tn,alignmentAxis:j}),K&&((t,e)=>({...function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=m(t,e),h={x:n,y:r},f=await k(e,l),d=C(g(i)),p=b(d),y=h[p],v=h[d];
1if(o){let t="y"===p?"top":"left",e="y"===p?"bottom":"right",n=y+f[t],r=y-f[e];y=c(n,u(y,r))}if(s){let t="y"===d?"top":"left",e="y"===d?"bottom":"right",n=v+f[t],r=v-f[e];v=c(n,u(v,r))}let w=a.fn({...e,[p]:y,[d]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:o,[d]:s}}}}}}(t),options:[t,e]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===U?((t,e)=>({...function(t){return void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:r,placement:i,rects:o,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=m(t,e),c={x:n,y:r},h=C(i),f=b(h),d=c[f],p=c[h],y=m(a,e),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let t="y"===f?"height":"width",e=o.reference[f]-o.floating[t]+v.mainAxis,n=o.reference[f]+o.reference[t]-v.mainAxis;d<e?d=e:d>n&&(d=n)}if(u){var w,x;let t="y"===f?"width":"height",e=M.has(g(i)),n=o.reference[h]-o.floating[t]+(e&&(null==(w=s.offset)?void 0:w[h])||0)+(e?0:v.crossAxis),r=o.reference[h]+o.reference[t]+(e?0:(null==(x=s.offset)?void 0:x[h])||0)-(e?v.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:d,[h]:p}}}}(t),options:[t,e]}))():void 0,...ts}),K&&((t,e)=>({...function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r,i,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:h,elements:f}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:q=!0,...j}=m(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let F=g(a),D=C(c),L=g(c)===c,M=await (null==h.isRTL?void 0:h.isRTL(f.floating)),H=y||(L||!q?[R(c)]:function(t){let e=R(t);return[O(t),e,O(e)]}(c)),I="none"!==T;!y&&I&&H.push(...function(t,e,n,r){let i=v(t),o=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?S:P;return e?P:S;case"left":case"right":return e?A:E;default:return[]}}(g(t),"start"===n,r);return i&&(o=o.map(t=>t+"-"+i),e&&(o=o.concat(o.map(O)))),o}(c,q,T,M));let K=[c,...H],Q=await k(e,j),N=[],_=(null==(r=l.flip)?void 0:r.overflows)||[];if(d&&N.push(Q[F]),p){let t=function(t,e,n){void 0===n&&(n=!1);let r=v(t),i=b(C(t)),o=w(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=R(s)),[s,R(s)]}(a,u,M);N.push(Q[t[0]],Q[t[1]])}if(_=[..._,{placement:a,overflows:N}],!N.every(t=>t<=0)){let t=((null==(i=l.flip)?void 0:i.index)||0)+1,e=K[t];if(e&&("alignment"!==p||D===C(e)||_.every(t=>C(t.placement)!==D||t.overflows[0]>0)))return{data:{index:t,overflows:_},reset:{placement:e}};let n=null==(o=_.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(x){case"bestFit":{let t=null==(s=_.filter(t=>{if(I){let e=C(t.placement);return e===D||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:s[0];t&&(n=t);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(t),options:[t,e]}))({...ts}),((t,e)=>({...function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;let i,o,{placement:s,rects:a,platform:l,elements:h}=e,{apply:f=()=>{},...d}=m(t,e),p=await k(e,d),y=g(s),b=v(s),w="y"===C(s),{width:x,height:O}=a.floating;"top"===y||"bottom"===y?(i=y,o=b===(await (null==l.isRTL?void 0:l.isRTL(h.floating))?"start":"end")?"left":"right"):(o=y,i="end"===b?"top":"bottom");let P=O-p.top-p.bottom,S=x-p.left-p.right,A=u(O-p[i],P),E=u(x-p[o],S),R=!e.middlewareData.shift,T=A,q=E;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(q=S),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(T=P),R&&!b){let t=c(p.left,0),e=c(p.right,0),n=c(p.top,0),r=c(p.bottom,0);w?q=x-2*(0!==t||0!==e?t+e:c(p.left,p.right)):T=O-2*(0!==n||0!==r?n+r:c(p.top,p.bottom))}await f({...e,availableWidth:q,availableHeight:T});let j=await l.getDimensions(h.floating);return x!==j.width||O!==j.height?{reset:{rects:!0}}:{}}}}(t),options:[t,e]}))({...ts,apply:t=>{let{elements:e,rects:n,availableWidth:r,availableHeight:i}=t,{width:o,height:s}=n.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),J&&((t,e)=>({...(t=>({name:"arrow",options:t,fn(e){let{element:n,padding:r}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tS({element:n.current,padding:r}).fn(e):{}:n?tS({element:n,padding:r}).fn(e):{}}}))(t),options:[t,e]}))({element:J,padding:I}
1),tJ({arrowWidth:te,arrowHeight:tn}),B&&((t,e)=>({...function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:r="referenceHidden",...i}=m(t,e);switch(r){case"referenceHidden":{let t=D(await k(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:L(t)}}}case"escaped":{let t=D(await k(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:L(t)}}}default:return{}}}}}(t),options:[t,e]}))({strategy:"referenceHidden",...ts})]}),[ty,tm]=tZ(th),tg=(0,tL.c)(G);(0,tM.N)(()=>{tf&&(null==tg||tg())},[tf,tg]);let tv=null==(n=td.arrow)?void 0:n.x,tb=null==(i=td.arrow)?void 0:i.y,tw=(null==(s=td.arrow)?void 0:s.centerOffset)!==0,[tx,tC]=r.useState();return(0,tM.N)(()=>{Y&&tC(window.getComputedStyle(Y).zIndex)},[Y]),(0,tk.jsx)("div",{ref:tl.setFloating,"data-radix-popper-content-wrapper":"",style:{...tu,transform:tf?tu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tx,"--radix-popper-transform-origin":[null==(a=td.transformOrigin)?void 0:a.x,null==(l=td.transformOrigin)?void 0:l.y].join(" "),...(null==(h=td.hide)?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,tk.jsx)(tW,{scope:y,placedSide:ty,onArrowChange:Z,arrowX:tv,arrowY:tb,shouldHideArrow:tw,children:(0,tk.jsx)(tF.sG.div,{"data-side":ty,"data-align":tm,...z,ref:X,style:{...z.style,animation:tf?void 0:"none"}})})})});tz.displayName=tB;var tV="PopperArrow",tY={top:"bottom",right:"left",bottom:"top",left:"right"},t$=r.forwardRef(function(t,e){let{__scopePopper:n,...r}=t,i=tG(tV,n),o=tY[i.placedSide];return(0,tk.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,tk.jsx)(tD,{...r,ref:e,style:{...r.style,display:"block"}})})});function tX(t){return null!==t}t$.displayName=tV;var tJ=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,s;let{placement:a,rects:l,middlewareData:u}=e,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,h=c?0:t.arrowWidth,f=c?0:t.arrowHeight,[d,p]=tZ(a),y={start:"0%",center:"50%",end:"100%"}[p],m=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+h/2,g=(null!=(s=null==(i=u.arrow)?void 0:i.y)?s:0)+f/2,v="",b="";return"bottom"===d?(v=c?y:"".concat(m,"px"),b="".concat(-f,"px")):"top"===d?(v=c?y:"".concat(m,"px"),b="".concat(l.floating.height+f,"px")):"right"===d?(v="".concat(-f,"px"),b=c?y:"".concat(g,"px")):"left"===d&&(v="".concat(l.floating.width+f,"px"),b=c?y:"".concat(g,"px")),{data:{x:v,y:b}}}});function tZ(t){let[e,n="center"]=t.split("-");return[e,n]}n(75433);var t0=n(76842),t1=Symbol("radix.slottable"),t2=(n(23558),Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})),t5=r.forwardRef((t,e)=>(0,tk.jsx)(tF.sG.span,{...t,ref:e,style:{...t2,...t.style}}));t5.displayName="VisuallyHidden";var[t3,t4]=(0,s.A)("Tooltip",[tK]),t7=tK(),t9="TooltipProvider",t8="tooltip.open",[t6,et]=t3(t9),ee=t=>{let{__scopeTooltip:e,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=t,a=r.useRef(!0),l=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let t=u.current;return()=>window.clearTimeout(t)},[]),(0,tk.jsx)(t6,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(t=>{l.current=t},[]),disableHoverableContent:o,children:s})};ee.displayName=t9;var en="Tooltip",[er,ei]=t3(en),eo="TooltipTrigger";r.forwardRef((t,e)=>{let{__scopeTooltip:n,...s}=t,a=ei(eo,n),l=et(eo,n),u=t7(n),c=r.useRef(null),h=(0,o.s)(e,c,a.onTriggerChange),f=r.useRef(!1),d=r.useRef(!1),p=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),(0,tk.jsx)(tU,{asChild:!0,...u,children:(0,tk.jsx)(tF.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:h,onPointerMove:(0,i.mK)(t.onPointerMove,t=>{"touch"!==t.pointerType&&(d.current||l.isPointerInTransitRef.current||(a.onTriggerEnter(),d.current=!0))}),onPointerLeave:(0,i.mK)(t.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:(0,i.mK)(t.onPointerDown,()=>{a.open&&a.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:(0,i.mK)(t.onFocus,()=>{f.current||a.onOpen()}),onBlur:(0,i.mK)(t.onBlur,a.onClose),onClick:(0,i.mK)(t.onClick,a.onClose)})})}).displayName=eo;var[es,ea]=t3("TooltipPortal",{forceMount:void 0}),el="TooltipContent",eu=r.forwardRef((t,e)=>{let n=ea(el,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=t,s=ei(el,t.__scopeTooltip);return(0,tk.jsx)(t0.C,{present:r||s.open,children:s.disableHoverableContent?(0,tk.jsx)(ep,{side:i,...o,ref:e}):(0,tk.jsx)(ec,{side:i,...o,ref:e})})}),ec=r.forwardRef((t,e)=>{let n=ei(el,t.__scopeTooltip),i=et(el,t.__scopeTooltip),s=r.useRef(null),a=(0,o.s)(e,s),[l,u]=r.useState(null),{trigger:c,onClose:h}=n,f=s.current,{onPointerInTransitChange:d}=i,p=r.useCallback(()=>{u(null),d(!1)},[d]),y=r.useCallback((t,e)=>{let n=t.currentTarget,r={x:t.clientX,y:t.clientY},i=function(t,e){let n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(t){let e=t.slice();return e.sort((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:1*!!(t.y>e.y)),function(t){if(t.length<=1)return t.slice();let e=[];for(let n=0;n<t.length;n++){let r=t[n];for(;e.length>=2;){let t=e[e.length-1],n=e[e.length-2];if((t.x-n.x)*(r.y-n.y)>=(t.y-n.y)*(r.x-n.x))e.pop();else break}e.push(r)}e.pop();let n=[];for(let e=t.length-1;e>=0;e--){let r=t[e];for(;n.length>=2;){let t=n[n.length-1],e=n[n.length-2];if((t.x-e.x)*(r.y-e.y)>=(t.y-e.y)*(r.x-e.x))n.pop();else break}n.push(r)}return(n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y)?e:e.concat(n)}(e)}([...function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return r}(r,i),...function(t){let{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}(e.getBoundingClientRect())])),d(!0)},[d]);return r.useEffect(()=>()=>
1p(),[p]),r.useEffect(()=>{if(c&&f){let t=t=>y(t,f),e=t=>y(t,c);return c.addEventListener("pointerleave",t),f.addEventListener("pointerleave",e),()=>{c.removeEventListener("pointerleave",t),f.removeEventListener("pointerleave",e)}}},[c,f,y,p]),r.useEffect(()=>{if(l){let t=t=>{let e=t.target,n={x:t.clientX,y:t.clientY},r=(null==c?void 0:c.contains(e))||(null==f?void 0:f.contains(e)),i=!function(t,e){let{x:n,y:r}=t,i=!1;for(let t=0,o=e.length-1;t<e.length;o=t++){let s=e[t],a=e[o],l=s.x,u=s.y,c=a.x,h=a.y;u>r!=h>r&&n<(c-l)*(r-u)/(h-u)+l&&(i=!i)}return i}(n,l);r?p():i&&(p(),h())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}},[c,f,l,h,p]),(0,tk.jsx)(ep,{...t,ref:a})}),[eh,ef]=t3(en,{isInside:!1}),ed=function(t){let e=({children:t})=>(0,tk.jsx)(tk.Fragment,{children:t});return e.displayName=`${t}.Slottable`,e.__radixId=t1,e}("TooltipContent"),ep=r.forwardRef((t,e)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...u}=t,c=ei(el,n),h=t7(n),{onClose:f}=c;return r.useEffect(()=>(document.addEventListener(t8,f),()=>document.removeEventListener(t8,f)),[f]),r.useEffect(()=>{if(c.trigger){let t=t=>{let e=t.target;(null==e?void 0:e.contains(c.trigger))&&f()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}},[c.trigger,f]),(0,tk.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:t=>t.preventDefault(),onDismiss:f,children:(0,tk.jsxs)(tz,{"data-state":c.stateAttribute,...h,...u,ref:e,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,tk.jsx)(ed,{children:i}),(0,tk.jsx)(eh,{scope:n,isInside:!0,children:(0,tk.jsx)(t5,{id:c.contentId,role:"tooltip",children:o||i})})]})})});eu.displayName=el;var ey="TooltipArrow";r.forwardRef((t,e)=>{let{__scopeTooltip:n,...r}=t,i=t7(n);return ef(ey,n).isInside?null:(0,tk.jsx)(t$,{...i,...r,ref:e})}).displayName=ey;var em=ee},48314:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(71847).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},52056:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(71847).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},71847:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(12115);let i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((t,e,n)=>!!t&&n.indexOf(t)===e).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:h,...f}=t;return(0,r.createElement)("svg",{ref:e,...o,width:s,height:s,stroke:n,strokeWidth:l?24*Number(a)/Number(s):a,className:i("lucide",u),...f},[...h.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(c)?c:[c]])}),a=(t,e)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:a,...l}=n;return(0,r.createElement)(s,{ref:o,iconNode:e,className:i("lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return n.displayName="".concat(t),n}},99776:(t,e,n)=>{n.d(e,{Ht:()=>s});var r=n(12115),i=n(95155),o=r.createContext(void 0),s=t=>{let{client:e,children:n}=t;return r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:n})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.