@vizzly-testing/cli 0.29.1 → 0.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- (function(){"use strict";function Rm(n,s){for(var c=0;c<s.length;c++){const o=s[c];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(o,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Wc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var sr={exports:{}},pn={};var Ic;function Dm(){if(Ic)return pn;Ic=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:n,type:o,key:v,ref:d!==void 0?d:null,props:m}}return pn.Fragment=s,pn.jsx=c,pn.jsxs=c,pn}var Pc;function _m(){return Pc||(Pc=1,sr.exports=Dm()),sr.exports}var r=_m(),El=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Lm={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},km=class{#e=Lm;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},Pa=new km;function Um(n){setTimeout(n,0)}var el=typeof window>"u"||"Deno"in globalThis;function ot(){}function Bm(n,s){return typeof n=="function"?n(s):n}function ir(n){return typeof n=="number"&&n>=0&&n!==1/0}function eo(n,s){return Math.max(n+(s||0)-Date.now(),0)}function Sa(n,s){return typeof n=="function"?n(s):n}function Dt(n,s){return typeof n=="function"?n(s):n}function to(n,s){const{type:c="all",exact:o,fetchStatus:d,predicate:m,queryKey:v,stale:g}=n;if(v){if(o){if(s.queryHash!==rr(v,s.options))return!1}else if(!xn(s.queryKey,v))return!1}if(c!=="all"){const b=s.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||d&&d!==s.state.fetchStatus||m&&!m(s))}function ao(n,s){const{exact:c,status:o,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(c){if(tl(s.options.mutationKey)!==tl(m))return!1}else if(!xn(s.options.mutationKey,m))return!1}return!(o&&s.state.status!==o||d&&!d(s))}function rr(n,s){return(s?.queryKeyHashFn||tl)(n)}function tl(n){return JSON.stringify(n,(s,c)=>ur(c)?Object.keys(c).sort().reduce((o,d)=>(o[d]=c[d],o),{}):c)}function xn(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(c=>xn(n[c],s[c])):!1}var Hm=Object.prototype.hasOwnProperty;function lo(n,s,c=0){if(n===s)return n;if(c>500)return s;const o=no(n)&&no(s);if(!o&&!(ur(n)&&ur(s)))return s;const m=(o?n:Object.keys(n)).length,v=o?s:Object.keys(s),g=v.length,b=o?new Array(g):{};let x=0;for(let y=0;y<g;y++){const E=o?y:v[y],N=n[E],_=s[E];if(N===_){b[E]=N,(o?y<m:Hm.call(n,E))&&x++;continue}if(N===null||_===null||typeof N!="object"||typeof _!="object"){b[E]=_;continue}const A=lo(N,_,c+1);b[E]=A,A===N&&x++}return m===g&&x===m?n:b}function Ss(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const c in n)if(n[c]!==s[c])return!1;return!0}function no(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ur(n){if(!so(n))return!1;const s=n.constructor;if(s===void 0)return!0;const c=s.prototype;return!(!so(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function so(n){return Object.prototype.toString.call(n)==="[object Object]"}function qm(n){return new Promise(s=>{Pa.setTimeout(s,n)})}function cr(n,s,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,s):c.structuralSharing!==!1?lo(n,s):s}function Qm(n,s,c=0){const o=[...n,s];return c&&o.length>c?o.slice(1):o}function Vm(n,s,c=0){const o=[s,...n];return c&&o.length>c?o.slice(0,-1):o}var or=Symbol();function io(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===or?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function fr(n,s){return typeof n=="function"?n(...s):!!n}function Ym(n,s,c){let o=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??=s(),o||(o=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),n}var Gm=class extends El{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!el&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},dr=new Gm;function hr(){let n,s;const c=new Promise((d,m)=>{n=d,s=m});c.status="pending",c.catch(()=>{});function o(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{o({status:"fulfilled",value:d}),n(d)},c.reject=d=>{o({status:"rejected",reason:d}),s(d)},c}var Zm=Um;function Xm(){let n=[],s=0,c=g=>{g()},o=g=>{g()},d=Zm;const m=g=>{s?n.push(g):d(()=>{c(g)})},v=()=>{const g=n;n=[],g.length&&d(()=>{o(()=>{g.forEach(b=>{c(b)})})})};return{batch:g=>{let b;s++;try{b=g()}finally{s--,s||v()}return b},batchCalls:g=>(...b)=>{m(()=>{g(...b)})},schedule:m,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{o=g},setScheduler:g=>{d=g}}}var Je=Xm(),Km=class extends El{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!el&&window.addEventListener){const s=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},Ns=new Km;function $m(n){return Math.min(1e3*2**n,3e4)}function ro(n){return(n??"online")==="online"?Ns.isOnline():!0}var mr=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function uo(n){let s=!1,c=0,o;const d=hr(),m=()=>d.status!=="pending",v=R=>{if(!m()){const Q=new mr(R);N(Q),n.onCancel?.(Q)}},g=()=>{s=!0},b=()=>{s=!1},x=()=>dr.isFocused()&&(n.networkMode==="always"||Ns.isOnline())&&n.canRun(),y=()=>ro(n.networkMode)&&n.canRun(),E=R=>{m()||(o?.(),d.resolve(R))},N=R=>{m()||(o?.(),d.reject(R))},_=()=>new Promise(R=>{o=Q=>{(m()||x())&&R(Q)},n.onPause?.()}).then(()=>{o=void 0,m()||n.onContinue?.()}),A=()=>{if(m())return;let R;const Q=c===0?n.initialPromise:void 0;try{R=Q??n.fn()}catch(H){R=Promise.reject(H)}Promise.resolve(R).then(E).catch(H=>{if(m())return;const V=n.retry??(el?0:3),F=n.retryDelay??$m,Z=typeof F=="function"?F(c,H):F,ne=V===!0||typeof V=="number"&&c<V||typeof V=="function"&&V(c,H);if(s||!ne){N(H);return}c++,n.onFail?.(c,H),qm(Z).then(()=>x()?void 0:_()).then(()=>{s?N(H):A()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(o?.(),d),cancelRetry:g,continueRetry:b,canStart:y,start:()=>(y()?A():_().then(A),d)}}var co=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ir(this.gcTime)&&(this.#e=Pa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(el?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Pa.clearTimeout(this.#e),this.#e=void 0)}},Jm=class extends co{#e;#t;#a;#n;#l;#i;#r;constructor(n){super(),this.#r=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=ho(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=ho(this.options);s.data!==void 0&&(this.setState(fo(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,s){const c=cr(this.state.data,n,this.options);return this.#s({data:c,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),c}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#l?.promise;return this.#l?.cancel(n),s?s.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Dt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===or||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Sa(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!eo(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(this.#l&&(this.#r?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.options)}const c=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},d=()=>{const g=io(this.options,s),x=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#r=!1,this.options.persister?this.options.persister(g,x,this):g(x)},v=(()=>{const g={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:d};return o(g),g})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#s({type:"fetch",meta:v.fetchOptions?.meta}),this.#l=uo({initialPromise:s?.initialPromise,fn:v.fetchFn,onCancel:g=>{g instanceof mr&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(g,b)=>{this.#s({type:"failed",failureCount:g,error:b})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const g=await this.#l.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#a.config.onSuccess?.(g,this),this.#a.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof mr){if(g.silent)return this.#l.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#s({type:"error",error:g}),this.#a.config.onError?.(g,this),this.#a.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#s(n){const s=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...oo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...fo(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const d=n.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=s(this.state),Je.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function oo(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ro(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function fo(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ho(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,c=s!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Fm=class extends El{constructor(n,s){super(),this.options=s,this.#e=n,this.#s=null,this.#r=hr(),this.bindMethods(),this.setOptions(s)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#i;#r;#s;#v;#d;#h;#c;#o;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),mo(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vr(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vr(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#w(),this.#t.removeObserver(this)}setOptions(n){const s=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#t.setOptions(this.options),s._defaulted&&!Ss(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&vo(this.#t,c,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||Sa(this.options.staleTime,this.#t)!==Sa(s.staleTime,this.#t))&&this.#p();const d=this.#x();o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||d!==this.#u)&&this.#g(d)}getOptimisticResult(n){const s=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(s,n);return Im(this,c)&&(this.#n=c,this.#i=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,s){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,s);return c.fetch().then(()=>this.createResult(c,s))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#j();let s=this.#t.fetch(this.options,n);return n?.throwOnError||(s=s.catch(ot)),s}#p(){this.#y();const n=Sa(this.options.staleTime,this.#t);if(el||this.#n.isStale||!ir(n))return;const c=eo(this.#n.dataUpdatedAt,n)+1;this.#c=Pa.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#w(),this.#u=n,!(el||Dt(this.options.enabled,this.#t)===!1||!ir(this.#u)||this.#u===0)&&(this.#o=Pa.setInterval(()=>{(this.options.refetchIntervalInBackground||dr.isFocused())&&this.#f()},this.#u))}#b(){this.#p(),this.#g(this.#x())}#y(){this.#c&&(Pa.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#o&&(Pa.clearInterval(this.#o),this.#o=void 0)}createResult(n,s){const c=this.#t,o=this.options,d=this.#n,m=this.#l,v=this.#i,b=n!==c?n.state:this.#a,{state:x}=n;let y={...x},E=!1,N;if(s._optimisticResults){const P=this.hasListeners(),se=!P&&mo(n,s),ze=P&&vo(n,c,s,o);(se||ze)&&(y={...y,...oo(x.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:_,errorUpdatedAt:A,status:R}=y;N=y.data;let Q=!1;if(s.placeholderData!==void 0&&N===void 0&&R==="pending"){let P;d?.isPlaceholderData&&s.placeholderData===v?.placeholderData?(P=d.data,Q=!0):P=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,P!==void 0&&(R="success",N=cr(d?.data,P,s),E=!0)}if(s.select&&N!==void 0&&!Q)if(d&&N===m?.data&&s.select===this.#v)N=this.#d;else try{this.#v=s.select,N=s.select(N),N=cr(d?.data,N,s),this.#d=N,this.#s=null}catch(P){this.#s=P}this.#s&&(_=this.#s,N=this.#d,A=Date.now(),R="error");const H=y.fetchStatus==="fetching",V=R==="pending",F=R==="error",Z=V&&H,ne=N!==void 0,Y={status:R,fetchStatus:y.fetchStatus,isPending:V,isSuccess:R==="success",isError:F,isInitialLoading:Z,isLoading:Z,data:N,dataUpdatedAt:y.dataUpdatedAt,error:_,errorUpdatedAt:A,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>b.dataUpdateCount||y.errorUpdateCount>b.errorUpdateCount,isFetching:H,isRefetching:H&&!V,isLoadingError:F&&!ne,isPaused:y.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:F&&ne,isStale:pr(n,s),refetch:this.refetch,promise:this.#r,isEnabled:Dt(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const P=Y.data!==void 0,se=Y.status==="error"&&!P,ze=_e=>{se?_e.reject(Y.error):P&&_e.resolve(Y.data)},Re=()=>{const _e=this.#r=Y.promise=hr();ze(_e)},ve=this.#r;switch(ve.status){case"pending":n.queryHash===c.queryHash&&ze(ve);break;case"fulfilled":(se||Y.data!==ve.value)&&Re();break;case"rejected":(!se||Y.error!==ve.reason)&&Re();break}}return Y}updateResult(){const n=this.#n,s=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#i=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Ss(s,n))return;this.#n=s;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!this.#m.size)return!0;const m=new Set(d??this.#m);return this.options.throwOnError&&m.add("error"),Object.keys(this.#n).some(v=>{const g=v;return this.#n[g]!==n[g]&&m.has(g)})};this.#S({listeners:c()})}#j(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const s=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(s?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(n){Je.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Wm(n,s){return Dt(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function mo(n,s){return Wm(n,s)||n.state.data!==void 0&&vr(n,s,s.refetchOnMount)}function vr(n,s,c){if(Dt(s.enabled,n)!==!1&&Sa(s.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&pr(n,s)}return!1}function vo(n,s,c,o){return(n!==s||Dt(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&pr(n,c)}function pr(n,s){return Dt(s.enabled,n)!==!1&&n.isStaleByTime(Sa(s.staleTime,n))}function Im(n,s){return!Ss(n.getCurrentResult(),s)}function po(n){return{onFetch:(s,c)=>{const o=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],v=s.state.data?.pageParams||[];let g={pages:[],pageParams:[]},b=0;const x=async()=>{let y=!1;const E=A=>{Ym(A,()=>s.signal,()=>y=!0)},N=io(s.options,s.fetchOptions),_=async(A,R,Q)=>{if(y)return Promise.reject();if(R==null&&A.pages.length)return Promise.resolve(A);const V=(()=>{const oe={client:s.client,queryKey:s.queryKey,pageParam:R,direction:Q?"backward":"forward",meta:s.options.meta};return E(oe),oe})(),F=await N(V),{maxPages:Z}=s.options,ne=Q?Vm:Qm;return{pages:ne(A.pages,F,Z),pageParams:ne(A.pageParams,R,Z)}};if(d&&m.length){const A=d==="backward",R=A?Pm:xo,Q={pages:m,pageParams:v},H=R(o,Q);g=await _(Q,H,A)}else{const A=n??m.length;do{const R=b===0?v[0]??o.initialPageParam:xo(o,g);if(b>0&&R==null)break;g=await _(g,R),b++}while(b<A)}return g};s.options.persister?s.fetchFn=()=>s.options.persister?.(x,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},c):s.fetchFn=x}}}function xo(n,{pages:s,pageParams:c}){const o=s.length-1;return s.length>0?n.getNextPageParam(s[o],s,c[o],c):void 0}function Pm(n,{pages:s,pageParams:c}){return s.length>0?n.getPreviousPageParam?.(s[0],s,c[0],c):void 0}var ev=class extends co{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||go(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(s=>s!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=uo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(m,v)=>{this.#l({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#l({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",d=!this.#n.canStart();try{if(o)s();else{this.#l({type:"pending",variables:n,isPaused:d}),this.#a.config.onMutate&&await this.#a.config.onMutate(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#l({type:"pending",context:v,variables:n,isPaused:d})}const m=await this.#n.start();return await this.#a.config.onSuccess?.(m,n,this.state.context,this,c),await this.options.onSuccess?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(m,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(m,null,n,this.state.context,c),this.#l({type:"success",data:m}),m}catch(m){try{await this.#a.config.onError?.(m,n,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onError?.(m,n,this.state.context,c)}catch(v){Promise.reject(v)}try{await this.#a.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onSettled?.(void 0,m,n,this.state.context,c)}catch(v){Promise.reject(v)}throw this.#l({type:"error",error:m}),m}finally{this.#a.runNext(this)}}#l(n){const s=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Je.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function go(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tv=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,s,c){const o=new ev({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(s),state:c});return this.add(o),o}add(n){this.#e.add(n);const s=Es(n);if(typeof s=="string"){const c=this.#t.get(s);c?c.push(n):this.#t.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=Es(n);if(typeof s=="string"){const c=this.#t.get(s);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=Es(n);if(typeof s=="string"){const o=this.#t.get(s)?.find(d=>d.state.status==="pending");return!o||o===n}else return!0}runNext(n){const s=Es(n);return typeof s=="string"?this.#t.get(s)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Je.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(c=>ao(s,c))}findAll(n={}){return this.getAll().filter(s=>ao(n,s))}notify(n){Je.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Je.batch(()=>Promise.all(n.map(s=>s.continue().catch(ot))))}};function Es(n){return n.options.scope?.id}var av=class extends El{#e;#t=void 0;#a;#n;constructor(n,s){super(),this.#e=n,this.setOptions(s),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const s=this.options;this.options=this.#e.defaultMutationOptions(n),Ss(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&tl(s.mutationKey)!==tl(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#i()}mutate(n,s){return this.#n=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??go();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Je.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(n?.type==="success"){try{this.#n.onSuccess?.(n.data,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(n.data,null,s,c,o)}catch(d){Promise.reject(d)}}else if(n?.type==="error"){try{this.#n.onError?.(n.error,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(void 0,n.error,s,c,o)}catch(d){Promise.reject(d)}}}this.listeners.forEach(s=>{s(this.#t)})})}},lv=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,c){const o=s.queryKey,d=s.queryHash??rr(o,s);let m=this.get(d);return m||(m=new Jm({client:n,queryKey:o,queryHash:d,options:n.defaultQueryOptions(s),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Je.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(c=>to(s,c))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(c=>to(n,c)):s}notify(n){Je.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},nv=class{#e;#t;#a;#n;#l;#i;#r;#s;constructor(n={}){this.#e=n.queryCache||new lv,this.#t=n.mutationCache||new tv,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=dr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ns.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),c=this.#e.build(this,s),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(Sa(s.staleTime,c))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:c})=>{const o=c.data;return[s,o]})}setQueryData(n,s,c){const o=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(o.queryHash)?.state.data,v=Bm(s,m);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,s,c){return Je.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,s,c)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Je.batch(()=>{s.findAll(n).forEach(c=>{s.remove(c)})})}resetQueries(n,s){const c=this.#e;return Je.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const c={revert:!0,...s},o=Je.batch(()=>this.#e.findAll(n).map(d=>d.cancel(c)));return Promise.all(o).then(ot).catch(ot)}invalidateQueries(n,s={}){return Je.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const c={...s,cancelRefetch:s.cancelRefetch??!0},o=Je.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,c);return c.throwOnError||(m=m.catch(ot)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(ot)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const c=this.#e.build(this,s);return c.isStaleByTime(Sa(s.staleTime,c))?c.fetch(s):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ot).catch(ot)}fetchInfiniteQuery(n){return n.behavior=po(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ot).catch(ot)}ensureInfiniteQueryData(n){return n.behavior=po(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ns.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,s){this.#n.set(tl(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#n.values()],c={};return s.forEach(o=>{xn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,s){this.#l.set(tl(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#l.values()],c={};return s.forEach(o=>{xn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=rr(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===or&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},xr={exports:{}},ae={};var bo;function sv(){if(bo)return ae;bo=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),N=Symbol.iterator;function _(S){return S===null||typeof S!="object"?null:(S=N&&S[N]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,Q={};function H(S,U,G){this.props=S,this.context=U,this.refs=Q,this.updater=G||A}H.prototype.isReactComponent={},H.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,U,"setState")},H.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function V(){}V.prototype=H.prototype;function F(S,U,G){this.props=S,this.context=U,this.refs=Q,this.updater=G||A}var Z=F.prototype=new V;Z.constructor=F,R(Z,H.prototype),Z.isPureReactComponent=!0;var ne=Array.isArray;function oe(){}var Y={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function se(S,U,G){var $=G.ref;return{$$typeof:n,type:S,key:U,ref:$!==void 0?$:null,props:G}}function ze(S,U){return se(S.type,U,S.props)}function Re(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function ve(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return U[G]})}var _e=/\/+/g;function ct(S,U){return typeof S=="object"&&S!==null&&S.key!=null?ve(""+S.key):U.toString(36)}function ue(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(oe,oe):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,G,$,te){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var ge=!1;if(S===null)ge=!0;else switch(re){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(S.$$typeof){case n:case s:ge=!0;break;case y:return ge=S._init,T(ge(S._payload),U,G,$,te)}}if(ge)return te=te(S),ge=$===""?"."+ct(S,0):$,ne(te)?(G="",ge!=null&&(G=ge.replace(_e,"$&/")+"/"),T(te,U,G,"",function(Ca){return Ca})):te!=null&&(Re(te)&&(te=ze(te,G+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(_e,"$&/")+"/")+ge)),U.push(te)),1;ge=0;var Ve=$===""?".":$+":";if(ne(S))for(var je=0;je<S.length;je++)$=S[je],re=Ve+ct($,je),ge+=T($,U,G,re,te);else if(je=_(S),typeof je=="function")for(S=je.call(S),je=0;!($=S.next()).done;)$=$.value,re=Ve+ct($,je++),ge+=T($,U,G,re,te);else if(re==="object"){if(typeof S.then=="function")return T(ue(S),U,G,$,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ge}function q(S,U,G){if(S==null)return S;var $=[],te=0;return T(S,$,"","",function(re){return U.call(G,re,te++)}),$}function X(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var ce=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},xe={map:q,forEach:function(S,U,G){q(S,function(){U.apply(this,arguments)},G)},count:function(S){var U=0;return q(S,function(){U++}),U},toArray:function(S){return q(S,function(U){return U})||[]},only:function(S){if(!Re(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=E,ae.Children=xe,ae.Component=H,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=F,ae.StrictMode=o,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return Y.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,U,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=R({},S.props),te=S.key;if(U!=null)for(re in U.key!==void 0&&(te=""+U.key),U)!P.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||($[re]=U[re]);var re=arguments.length-2;if(re===1)$.children=G;else if(1<re){for(var ge=Array(re),Ve=0;Ve<re;Ve++)ge[Ve]=arguments[Ve+2];$.children=ge}return se(S.type,te,$)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ae.createElement=function(S,U,G){var $,te={},re=null;if(U!=null)for($ in U.key!==void 0&&(re=""+U.key),U)P.call(U,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(te[$]=U[$]);var ge=arguments.length-2;if(ge===1)te.children=G;else if(1<ge){for(var Ve=Array(ge),je=0;je<ge;je++)Ve[je]=arguments[je+2];te.children=Ve}if(S&&S.defaultProps)for($ in ge=S.defaultProps,ge)te[$]===void 0&&(te[$]=ge[$]);return se(S,re,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:g,render:S}},ae.isValidElement=Re,ae.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:X}},ae.memo=function(S,U){return{$$typeof:x,type:S,compare:U===void 0?null:U}},ae.startTransition=function(S){var U=Y.T,G={};Y.T=G;try{var $=S(),te=Y.S;te!==null&&te(G,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(oe,ce)}catch(re){ce(re)}finally{U!==null&&G.types!==null&&(U.types=G.types),Y.T=U}},ae.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ae.use=function(S){return Y.H.use(S)},ae.useActionState=function(S,U,G){return Y.H.useActionState(S,U,G)},ae.useCallback=function(S,U){return Y.H.useCallback(S,U)},ae.useContext=function(S){return Y.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,U){return Y.H.useDeferredValue(S,U)},ae.useEffect=function(S,U){return Y.H.useEffect(S,U)},ae.useEffectEvent=function(S){return Y.H.useEffectEvent(S)},ae.useId=function(){return Y.H.useId()},ae.useImperativeHandle=function(S,U,G){return Y.H.useImperativeHandle(S,U,G)},ae.useInsertionEffect=function(S,U){return Y.H.useInsertionEffect(S,U)},ae.useLayoutEffect=function(S,U){return Y.H.useLayoutEffect(S,U)},ae.useMemo=function(S,U){return Y.H.useMemo(S,U)},ae.useOptimistic=function(S,U){return Y.H.useOptimistic(S,U)},ae.useReducer=function(S,U,G){return Y.H.useReducer(S,U,G)},ae.useRef=function(S){return Y.H.useRef(S)},ae.useState=function(S){return Y.H.useState(S)},ae.useSyncExternalStore=function(S,U,G){return Y.H.useSyncExternalStore(S,U,G)},ae.useTransition=function(){return Y.H.useTransition()},ae.version="19.2.4",ae}var yo;function Cs(){return yo||(yo=1,xr.exports=sv()),xr.exports}var h=Cs();const al=Wc(h),iv=Rm({__proto__:null,default:al},[h]);var wo=h.createContext(void 0),_t=n=>{const s=h.useContext(wo);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},rv=({client:n,children:s})=>(h.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(wo.Provider,{value:n,children:s})),jo=h.createContext(!1),uv=()=>h.useContext(jo);jo.Provider;function cv(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var ov=h.createContext(cv()),fv=()=>h.useContext(ov),dv=(n,s,c)=>{const o=c?.state.error&&typeof n.throwOnError=="function"?fr(n.throwOnError,[c.state.error,c]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(s.isReset()||(n.retryOnMount=!1))},hv=n=>{h.useEffect(()=>{n.clearReset()},[n])},mv=({result:n,errorResetBoundary:s,throwOnError:c,query:o,suspense:d})=>n.isError&&!s.isReset()&&!n.isFetching&&o&&(d&&n.data===void 0||fr(c,[n.error,o])),vv=n=>{if(n.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...d)=>c(o(...d)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},pv=(n,s)=>n.isLoading&&n.isFetching&&!s,xv=(n,s)=>n?.suspense&&s.isPending,So=(n,s,c)=>s.fetchOptimistic(n).catch(()=>{c.clearReset()});function gv(n,s,c){const o=uv(),d=fv(),m=_t(),v=m.defaultQueryOptions(n);m.getDefaultOptions().queries?._experimental_beforeQuery?.(v);const g=m.getQueryCache().get(v.queryHash);v._optimisticResults=o?"isRestoring":"optimistic",vv(v),dv(v,d,g),hv(d);const b=!m.getQueryCache().get(v.queryHash),[x]=h.useState(()=>new s(m,v)),y=x.getOptimisticResult(v),E=!o&&n.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(N=>{const _=E?x.subscribe(Je.batchCalls(N)):ot;return x.updateResult(),_},[x,E]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),h.useEffect(()=>{x.setOptions(v)},[v,x]),xv(v,y))throw So(v,x,d);if(mv({result:y,errorResetBoundary:d,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw y.error;return m.getDefaultOptions().queries?._experimental_afterQuery?.(v,y),v.experimental_prefetchInRender&&!el&&pv(y,o)&&(b?So(v,x,d):g?.promise)?.catch(ot).finally(()=>{x.updateResult()}),v.notifyOnChangeProps?y:x.trackResult(y)}function gn(n,s){return gv(n,Fm)}function ta(n,s){const c=_t(),[o]=h.useState(()=>new av(c,n));h.useEffect(()=>{o.setOptions(n)},[o,n]);const d=h.useSyncExternalStore(h.useCallback(v=>o.subscribe(Je.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=h.useCallback((v,g)=>{o.mutate(v,g).catch(ot)},[o]);if(d.error&&fr(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}var gr={exports:{}},bn={},br={exports:{}},yr={};var No;function bv(){return No||(No=1,(function(n){function s(T,q){var X=T.length;T.push(q);e:for(;0<X;){var ce=X-1>>>1,xe=T[ce];if(0<d(xe,q))T[ce]=q,T[X]=xe,X=ce;else break e}}function c(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var q=T[0],X=T.pop();if(X!==q){T[0]=X;e:for(var ce=0,xe=T.length,S=xe>>>1;ce<S;){var U=2*(ce+1)-1,G=T[U],$=U+1,te=T[$];if(0>d(G,X))$<xe&&0>d(te,G)?(T[ce]=te,T[$]=X,ce=$):(T[ce]=G,T[U]=X,ce=U);else if($<xe&&0>d(te,X))T[ce]=te,T[$]=X,ce=$;else break e}}return q}function d(T,q){var X=T.sortIndex-q.sortIndex;return X!==0?X:T.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var b=[],x=[],y=1,E=null,N=3,_=!1,A=!1,R=!1,Q=!1,H=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function Z(T){for(var q=c(x);q!==null;){if(q.callback===null)o(x);else if(q.startTime<=T)o(x),q.sortIndex=q.expirationTime,s(b,q);else break;q=c(x)}}function ne(T){if(R=!1,Z(T),!A)if(c(b)!==null)A=!0,oe||(oe=!0,ve());else{var q=c(x);q!==null&&ue(ne,q.startTime-T)}}var oe=!1,Y=-1,P=5,se=-1;function ze(){return Q?!0:!(n.unstable_now()-se<P)}function Re(){if(Q=!1,oe){var T=n.unstable_now();se=T;var q=!0;try{e:{A=!1,R&&(R=!1,V(Y),Y=-1),_=!0;var X=N;try{t:{for(Z(T),E=c(b);E!==null&&!(E.expirationTime>T&&ze());){var ce=E.callback;if(typeof ce=="function"){E.callback=null,N=E.priorityLevel;var xe=ce(E.expirationTime<=T);if(T=n.unstable_now(),typeof xe=="function"){E.callback=xe,Z(T),q=!0;break t}E===c(b)&&o(b),Z(T)}else o(b);E=c(b)}if(E!==null)q=!0;else{var S=c(x);S!==null&&ue(ne,S.startTime-T),q=!1}}break e}finally{E=null,N=X,_=!1}q=void 0}}finally{q?ve():oe=!1}}}var ve;if(typeof F=="function")ve=function(){F(Re)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,ct=_e.port2;_e.port1.onmessage=Re,ve=function(){ct.postMessage(null)}}else ve=function(){H(Re,0)};function ue(T,q){Y=H(function(){T(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_next=function(T){switch(N){case 1:case 2:case 3:var q=3;break;default:q=N}var X=N;N=q;try{return T()}finally{N=X}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(T,q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var X=N;N=T;try{return q()}finally{N=X}},n.unstable_scheduleCallback=function(T,q,X){var ce=n.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ce+X:ce):X=ce,T){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=X+xe,T={id:y++,callback:q,priorityLevel:T,startTime:X,expirationTime:xe,sortIndex:-1},X>ce?(T.sortIndex=X,s(x,T),c(b)===null&&T===c(x)&&(R?(V(Y),Y=-1):R=!0,ue(ne,X-ce))):(T.sortIndex=xe,s(b,T),A||_||(A=!0,oe||(oe=!0,ve()))),T},n.unstable_shouldYield=ze,n.unstable_wrapCallback=function(T){var q=N;return function(){var X=N;N=q;try{return T.apply(this,arguments)}finally{N=X}}}})(yr)),yr}var Eo;function yv(){return Eo||(Eo=1,br.exports=bv()),br.exports}var wr={exports:{}},rt={};var Co;function wv(){if(Co)return rt;Co=1;var n=Cs();function s(b){var x="https://react.dev/errors/"+b;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)x+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,x,y){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:E==null?null:""+E,children:b,containerInfo:x,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(b,x){if(b==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,rt.createPortal=function(b,x){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(s(299));return m(b,x,null,y)},rt.flushSync=function(b){var x=v.T,y=o.p;try{if(v.T=null,o.p=2,b)return b()}finally{v.T=x,o.p=y,o.d.f()}},rt.preconnect=function(b,x){typeof b=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(b,x))},rt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},rt.preinit=function(b,x){if(typeof b=="string"&&x&&typeof x.as=="string"){var y=x.as,E=g(y,x.crossOrigin),N=typeof x.integrity=="string"?x.integrity:void 0,_=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;y==="style"?o.d.S(b,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:E,integrity:N,fetchPriority:_}):y==="script"&&o.d.X(b,{crossOrigin:E,integrity:N,fetchPriority:_,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},rt.preinitModule=function(b,x){if(typeof b=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var y=g(x.as,x.crossOrigin);o.d.M(b,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(b)},rt.preload=function(b,x){if(typeof b=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var y=x.as,E=g(y,x.crossOrigin);o.d.L(b,y,{crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},rt.preloadModule=function(b,x){if(typeof b=="string")if(x){var y=g(x.as,x.crossOrigin);o.d.m(b,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(b)},rt.requestFormReset=function(b){o.d.r(b)},rt.unstable_batchedUpdates=function(b,x){return b(x)},rt.useFormState=function(b,x,y){return v.H.useFormState(b,x,y)},rt.useFormStatus=function(){return v.H.useHostTransitionStatus()},rt.version="19.2.4",rt}var Ao;function Oo(){if(Ao)return wr.exports;Ao=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),wr.exports=wv(),wr.exports}var Mo;function jv(){if(Mo)return bn;Mo=1;var n=yv(),s=Cs(),c=Oo();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=u;else{for(var f=!1,p=i.child;p;){if(p===a){f=!0,a=i,l=u;break}if(p===l){f=!0,l=i,a=u;break}p=p.sibling}if(!f){for(p=u.child;p;){if(p===a){f=!0,a=u,l=i;break}if(p===l){f=!0,l=u,a=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,N=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),F=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Symbol.for("react.client.reference");function ct(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case H:return"Profiler";case Q:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case F:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ct(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return ct(e(t))}catch{}}return null}var ue=Array.isArray,T=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ce=[],xe=-1;function S(e){return{current:e}}function U(e){0>xe||(e.current=ce[xe],ce[xe]=null,xe--)}function G(e,t){xe++,ce[xe]=e.current,e.current=t}var $=S(null),te=S(null),re=S(null),ge=S(null);function Ve(e,t){switch(G(re,t),G(te,e),G($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tm(t),e=am(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U($),G($,e)}function je(){U($),U(te),U(re)}function Ca(e){e.memoizedState!==null&&G(ge,e);var t=$.current,a=am(t,e.type);t!==a&&(G(te,e),G($,a))}function jt(e){te.current===e&&(U($),U(te)),ge.current===e&&(U(ge),bs._currentValue=X)}var K,Ne;function De(e){if(K===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);K=t&&t[1]||"",Ne=-1<a.stack.indexOf(`
1
+ (function(){"use strict";function Dm(n,s){for(var c=0;c<s.length;c++){const o=s[c];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(o,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Wc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var sr={exports:{}},xn={};var Ic;function _m(){if(Ic)return xn;Ic=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:n,type:o,key:v,ref:d!==void 0?d:null,props:m}}return xn.Fragment=s,xn.jsx=c,xn.jsxs=c,xn}var Pc;function Lm(){return Pc||(Pc=1,sr.exports=_m()),sr.exports}var r=Lm(),El=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},km={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},Um=class{#e=km;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},el=new Um;function Bm(n){setTimeout(n,0)}var tl=typeof window>"u"||"Deno"in globalThis;function ft(){}function Hm(n,s){return typeof n=="function"?n(s):n}function ir(n){return typeof n=="number"&&n>=0&&n!==1/0}function eo(n,s){return Math.max(n+(s||0)-Date.now(),0)}function Sa(n,s){return typeof n=="function"?n(s):n}function Dt(n,s){return typeof n=="function"?n(s):n}function to(n,s){const{type:c="all",exact:o,fetchStatus:d,predicate:m,queryKey:v,stale:g}=n;if(v){if(o){if(s.queryHash!==rr(v,s.options))return!1}else if(!gn(s.queryKey,v))return!1}if(c!=="all"){const b=s.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||d&&d!==s.state.fetchStatus||m&&!m(s))}function ao(n,s){const{exact:c,status:o,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(c){if(al(s.options.mutationKey)!==al(m))return!1}else if(!gn(s.options.mutationKey,m))return!1}return!(o&&s.state.status!==o||d&&!d(s))}function rr(n,s){return(s?.queryKeyHashFn||al)(n)}function al(n){return JSON.stringify(n,(s,c)=>ur(c)?Object.keys(c).sort().reduce((o,d)=>(o[d]=c[d],o),{}):c)}function gn(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(c=>gn(n[c],s[c])):!1}var qm=Object.prototype.hasOwnProperty;function lo(n,s,c=0){if(n===s)return n;if(c>500)return s;const o=no(n)&&no(s);if(!o&&!(ur(n)&&ur(s)))return s;const m=(o?n:Object.keys(n)).length,v=o?s:Object.keys(s),g=v.length,b=o?new Array(g):{};let x=0;for(let y=0;y<g;y++){const E=o?y:v[y],N=n[E],L=s[E];if(N===L){b[E]=N,(o?y<m:qm.call(n,E))&&x++;continue}if(N===null||L===null||typeof N!="object"||typeof L!="object"){b[E]=L;continue}const A=lo(N,L,c+1);b[E]=A,A===N&&x++}return m===g&&x===m?n:b}function Ss(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const c in n)if(n[c]!==s[c])return!1;return!0}function no(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ur(n){if(!so(n))return!1;const s=n.constructor;if(s===void 0)return!0;const c=s.prototype;return!(!so(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function so(n){return Object.prototype.toString.call(n)==="[object Object]"}function Qm(n){return new Promise(s=>{el.setTimeout(s,n)})}function cr(n,s,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,s):c.structuralSharing!==!1?lo(n,s):s}function Vm(n,s,c=0){const o=[...n,s];return c&&o.length>c?o.slice(1):o}function Ym(n,s,c=0){const o=[s,...n];return c&&o.length>c?o.slice(0,-1):o}var or=Symbol();function io(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===or?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function fr(n,s){return typeof n=="function"?n(...s):!!n}function Gm(n,s,c){let o=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??=s(),o||(o=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),n}var Zm=class extends El{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!tl&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},dr=new Zm;function hr(){let n,s;const c=new Promise((d,m)=>{n=d,s=m});c.status="pending",c.catch(()=>{});function o(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{o({status:"fulfilled",value:d}),n(d)},c.reject=d=>{o({status:"rejected",reason:d}),s(d)},c}var Xm=Bm;function Km(){let n=[],s=0,c=g=>{g()},o=g=>{g()},d=Xm;const m=g=>{s?n.push(g):d(()=>{c(g)})},v=()=>{const g=n;n=[],g.length&&d(()=>{o(()=>{g.forEach(b=>{c(b)})})})};return{batch:g=>{let b;s++;try{b=g()}finally{s--,s||v()}return b},batchCalls:g=>(...b)=>{m(()=>{g(...b)})},schedule:m,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{o=g},setScheduler:g=>{d=g}}}var Je=Km(),$m=class extends El{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!tl&&window.addEventListener){const s=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},Ns=new $m;function Jm(n){return Math.min(1e3*2**n,3e4)}function ro(n){return(n??"online")==="online"?Ns.isOnline():!0}var mr=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function uo(n){let s=!1,c=0,o;const d=hr(),m=()=>d.status!=="pending",v=O=>{if(!m()){const Q=new mr(O);N(Q),n.onCancel?.(Q)}},g=()=>{s=!0},b=()=>{s=!1},x=()=>dr.isFocused()&&(n.networkMode==="always"||Ns.isOnline())&&n.canRun(),y=()=>ro(n.networkMode)&&n.canRun(),E=O=>{m()||(o?.(),d.resolve(O))},N=O=>{m()||(o?.(),d.reject(O))},L=()=>new Promise(O=>{o=Q=>{(m()||x())&&O(Q)},n.onPause?.()}).then(()=>{o=void 0,m()||n.onContinue?.()}),A=()=>{if(m())return;let O;const Q=c===0?n.initialPromise:void 0;try{O=Q??n.fn()}catch(U){O=Promise.reject(U)}Promise.resolve(O).then(E).catch(U=>{if(m())return;const V=n.retry??(tl?0:3),F=n.retryDelay??Jm,K=typeof F=="function"?F(c,U):F,ne=V===!0||typeof V=="number"&&c<V||typeof V=="function"&&V(c,U);if(s||!ne){N(U);return}c++,n.onFail?.(c,U),Qm(K).then(()=>x()?void 0:L()).then(()=>{s?N(U):A()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(o?.(),d),cancelRetry:g,continueRetry:b,canStart:y,start:()=>(y()?A():L().then(A),d)}}var co=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ir(this.gcTime)&&(this.#e=el.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(tl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(el.clearTimeout(this.#e),this.#e=void 0)}},Fm=class extends co{#e;#t;#a;#n;#l;#i;#r;constructor(n){super(),this.#r=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=ho(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=ho(this.options);s.data!==void 0&&(this.setState(fo(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,s){const c=cr(this.state.data,n,this.options);return this.#s({data:c,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),c}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#l?.promise;return this.#l?.cancel(n),s?s.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Dt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===or||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Sa(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!eo(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(this.#l&&(this.#r?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.options)}const c=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},d=()=>{const g=io(this.options,s),x=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#r=!1,this.options.persister?this.options.persister(g,x,this):g(x)},v=(()=>{const g={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:d};return o(g),g})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#s({type:"fetch",meta:v.fetchOptions?.meta}),this.#l=uo({initialPromise:s?.initialPromise,fn:v.fetchFn,onCancel:g=>{g instanceof mr&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(g,b)=>{this.#s({type:"failed",failureCount:g,error:b})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const g=await this.#l.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#a.config.onSuccess?.(g,this),this.#a.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof mr){if(g.silent)return this.#l.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#s({type:"error",error:g}),this.#a.config.onError?.(g,this),this.#a.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#s(n){const s=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...oo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...fo(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const d=n.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=s(this.state),Je.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function oo(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ro(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function fo(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ho(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,c=s!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Wm=class extends El{constructor(n,s){super(),this.options=s,this.#e=n,this.#s=null,this.#r=hr(),this.bindMethods(),this.setOptions(s)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#i;#r;#s;#v;#d;#h;#c;#o;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),mo(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vr(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vr(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#w(),this.#t.removeObserver(this)}setOptions(n){const s=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#t.setOptions(this.options),s._defaulted&&!Ss(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&vo(this.#t,c,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||Sa(this.options.staleTime,this.#t)!==Sa(s.staleTime,this.#t))&&this.#p();const d=this.#x();o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||d!==this.#u)&&this.#g(d)}getOptimisticResult(n){const s=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(s,n);return Pm(this,c)&&(this.#n=c,this.#i=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,s){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,s);return c.fetch().then(()=>this.createResult(c,s))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#j();let s=this.#t.fetch(this.options,n);return n?.throwOnError||(s=s.catch(ft)),s}#p(){this.#y();const n=Sa(this.options.staleTime,this.#t);if(tl||this.#n.isStale||!ir(n))return;const c=eo(this.#n.dataUpdatedAt,n)+1;this.#c=el.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#w(),this.#u=n,!(tl||Dt(this.options.enabled,this.#t)===!1||!ir(this.#u)||this.#u===0)&&(this.#o=el.setInterval(()=>{(this.options.refetchIntervalInBackground||dr.isFocused())&&this.#f()},this.#u))}#b(){this.#p(),this.#g(this.#x())}#y(){this.#c&&(el.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#o&&(el.clearInterval(this.#o),this.#o=void 0)}createResult(n,s){const c=this.#t,o=this.options,d=this.#n,m=this.#l,v=this.#i,b=n!==c?n.state:this.#a,{state:x}=n;let y={...x},E=!1,N;if(s._optimisticResults){const P=this.hasListeners(),se=!P&&mo(n,s),ze=P&&vo(n,c,s,o);(se||ze)&&(y={...y,...oo(x.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:L,errorUpdatedAt:A,status:O}=y;N=y.data;let Q=!1;if(s.placeholderData!==void 0&&N===void 0&&O==="pending"){let P;d?.isPlaceholderData&&s.placeholderData===v?.placeholderData?(P=d.data,Q=!0):P=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,P!==void 0&&(O="success",N=cr(d?.data,P,s),E=!0)}if(s.select&&N!==void 0&&!Q)if(d&&N===m?.data&&s.select===this.#v)N=this.#d;else try{this.#v=s.select,N=s.select(N),N=cr(d?.data,N,s),this.#d=N,this.#s=null}catch(P){this.#s=P}this.#s&&(L=this.#s,N=this.#d,A=Date.now(),O="error");const U=y.fetchStatus==="fetching",V=O==="pending",F=O==="error",K=V&&U,ne=N!==void 0,Y={status:O,fetchStatus:y.fetchStatus,isPending:V,isSuccess:O==="success",isError:F,isInitialLoading:K,isLoading:K,data:N,dataUpdatedAt:y.dataUpdatedAt,error:L,errorUpdatedAt:A,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>b.dataUpdateCount||y.errorUpdateCount>b.errorUpdateCount,isFetching:U,isRefetching:U&&!V,isLoadingError:F&&!ne,isPaused:y.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:F&&ne,isStale:pr(n,s),refetch:this.refetch,promise:this.#r,isEnabled:Dt(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const P=Y.data!==void 0,se=Y.status==="error"&&!P,ze=_e=>{se?_e.reject(Y.error):P&&_e.resolve(Y.data)},Re=()=>{const _e=this.#r=Y.promise=hr();ze(_e)},pe=this.#r;switch(pe.status){case"pending":n.queryHash===c.queryHash&&ze(pe);break;case"fulfilled":(se||Y.data!==pe.value)&&Re();break;case"rejected":(!se||Y.error!==pe.reason)&&Re();break}}return Y}updateResult(){const n=this.#n,s=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#i=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Ss(s,n))return;this.#n=s;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!this.#m.size)return!0;const m=new Set(d??this.#m);return this.options.throwOnError&&m.add("error"),Object.keys(this.#n).some(v=>{const g=v;return this.#n[g]!==n[g]&&m.has(g)})};this.#S({listeners:c()})}#j(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const s=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(s?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(n){Je.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Im(n,s){return Dt(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function mo(n,s){return Im(n,s)||n.state.data!==void 0&&vr(n,s,s.refetchOnMount)}function vr(n,s,c){if(Dt(s.enabled,n)!==!1&&Sa(s.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&pr(n,s)}return!1}function vo(n,s,c,o){return(n!==s||Dt(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&pr(n,c)}function pr(n,s){return Dt(s.enabled,n)!==!1&&n.isStaleByTime(Sa(s.staleTime,n))}function Pm(n,s){return!Ss(n.getCurrentResult(),s)}function po(n){return{onFetch:(s,c)=>{const o=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],v=s.state.data?.pageParams||[];let g={pages:[],pageParams:[]},b=0;const x=async()=>{let y=!1;const E=A=>{Gm(A,()=>s.signal,()=>y=!0)},N=io(s.options,s.fetchOptions),L=async(A,O,Q)=>{if(y)return Promise.reject();if(O==null&&A.pages.length)return Promise.resolve(A);const V=(()=>{const he={client:s.client,queryKey:s.queryKey,pageParam:O,direction:Q?"backward":"forward",meta:s.options.meta};return E(he),he})(),F=await N(V),{maxPages:K}=s.options,ne=Q?Ym:Vm;return{pages:ne(A.pages,F,K),pageParams:ne(A.pageParams,O,K)}};if(d&&m.length){const A=d==="backward",O=A?ev:xo,Q={pages:m,pageParams:v},U=O(o,Q);g=await L(Q,U,A)}else{const A=n??m.length;do{const O=b===0?v[0]??o.initialPageParam:xo(o,g);if(b>0&&O==null)break;g=await L(g,O),b++}while(b<A)}return g};s.options.persister?s.fetchFn=()=>s.options.persister?.(x,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},c):s.fetchFn=x}}}function xo(n,{pages:s,pageParams:c}){const o=s.length-1;return s.length>0?n.getNextPageParam(s[o],s,c[o],c):void 0}function ev(n,{pages:s,pageParams:c}){return s.length>0?n.getPreviousPageParam?.(s[0],s,c[0],c):void 0}var tv=class extends co{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||go(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(s=>s!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=uo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(m,v)=>{this.#l({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#l({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",d=!this.#n.canStart();try{if(o)s();else{this.#l({type:"pending",variables:n,isPaused:d}),this.#a.config.onMutate&&await this.#a.config.onMutate(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#l({type:"pending",context:v,variables:n,isPaused:d})}const m=await this.#n.start();return await this.#a.config.onSuccess?.(m,n,this.state.context,this,c),await this.options.onSuccess?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(m,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(m,null,n,this.state.context,c),this.#l({type:"success",data:m}),m}catch(m){try{await this.#a.config.onError?.(m,n,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onError?.(m,n,this.state.context,c)}catch(v){Promise.reject(v)}try{await this.#a.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onSettled?.(void 0,m,n,this.state.context,c)}catch(v){Promise.reject(v)}throw this.#l({type:"error",error:m}),m}finally{this.#a.runNext(this)}}#l(n){const s=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Je.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function go(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var av=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,s,c){const o=new tv({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(s),state:c});return this.add(o),o}add(n){this.#e.add(n);const s=Es(n);if(typeof s=="string"){const c=this.#t.get(s);c?c.push(n):this.#t.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=Es(n);if(typeof s=="string"){const c=this.#t.get(s);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=Es(n);if(typeof s=="string"){const o=this.#t.get(s)?.find(d=>d.state.status==="pending");return!o||o===n}else return!0}runNext(n){const s=Es(n);return typeof s=="string"?this.#t.get(s)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Je.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(c=>ao(s,c))}findAll(n={}){return this.getAll().filter(s=>ao(n,s))}notify(n){Je.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Je.batch(()=>Promise.all(n.map(s=>s.continue().catch(ft))))}};function Es(n){return n.options.scope?.id}var lv=class extends El{#e;#t=void 0;#a;#n;constructor(n,s){super(),this.#e=n,this.setOptions(s),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const s=this.options;this.options=this.#e.defaultMutationOptions(n),Ss(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&al(s.mutationKey)!==al(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#i()}mutate(n,s){return this.#n=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??go();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Je.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(n?.type==="success"){try{this.#n.onSuccess?.(n.data,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(n.data,null,s,c,o)}catch(d){Promise.reject(d)}}else if(n?.type==="error"){try{this.#n.onError?.(n.error,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(void 0,n.error,s,c,o)}catch(d){Promise.reject(d)}}}this.listeners.forEach(s=>{s(this.#t)})})}},nv=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,c){const o=s.queryKey,d=s.queryHash??rr(o,s);let m=this.get(d);return m||(m=new Fm({client:n,queryKey:o,queryHash:d,options:n.defaultQueryOptions(s),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Je.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(c=>to(s,c))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(c=>to(n,c)):s}notify(n){Je.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},sv=class{#e;#t;#a;#n;#l;#i;#r;#s;constructor(n={}){this.#e=n.queryCache||new nv,this.#t=n.mutationCache||new av,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=dr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ns.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),c=this.#e.build(this,s),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(Sa(s.staleTime,c))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:c})=>{const o=c.data;return[s,o]})}setQueryData(n,s,c){const o=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(o.queryHash)?.state.data,v=Hm(s,m);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,s,c){return Je.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,s,c)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Je.batch(()=>{s.findAll(n).forEach(c=>{s.remove(c)})})}resetQueries(n,s){const c=this.#e;return Je.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const c={revert:!0,...s},o=Je.batch(()=>this.#e.findAll(n).map(d=>d.cancel(c)));return Promise.all(o).then(ft).catch(ft)}invalidateQueries(n,s={}){return Je.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const c={...s,cancelRefetch:s.cancelRefetch??!0},o=Je.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,c);return c.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(ft)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const c=this.#e.build(this,s);return c.isStaleByTime(Sa(s.staleTime,c))?c.fetch(s):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ft).catch(ft)}fetchInfiniteQuery(n){return n.behavior=po(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ft).catch(ft)}ensureInfiniteQueryData(n){return n.behavior=po(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ns.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,s){this.#n.set(al(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#n.values()],c={};return s.forEach(o=>{gn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,s){this.#l.set(al(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#l.values()],c={};return s.forEach(o=>{gn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=rr(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===or&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},xr={exports:{}},ae={};var bo;function iv(){if(bo)return ae;bo=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),N=Symbol.iterator;function L(S){return S===null||typeof S!="object"?null:(S=N&&S[N]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,Q={};function U(S,B,G){this.props=S,this.context=B,this.refs=Q,this.updater=G||A}U.prototype.isReactComponent={},U.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,B,"setState")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function V(){}V.prototype=U.prototype;function F(S,B,G){this.props=S,this.context=B,this.refs=Q,this.updater=G||A}var K=F.prototype=new V;K.constructor=F,O(K,U.prototype),K.isPureReactComponent=!0;var ne=Array.isArray;function he(){}var Y={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function se(S,B,G){var $=G.ref;return{$$typeof:n,type:S,key:B,ref:$!==void 0?$:null,props:G}}function ze(S,B){return se(S.type,B,S.props)}function Re(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function pe(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return B[G]})}var _e=/\/+/g;function ot(S,B){return typeof S=="object"&&S!==null&&S.key!=null?pe(""+S.key):B.toString(36)}function ue(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(he,he):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,B,G,$,te){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(re){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case s:be=!0;break;case y:return be=S._init,R(be(S._payload),B,G,$,te)}}if(be)return te=te(S),be=$===""?"."+ot(S,0):$,ne(te)?(G="",be!=null&&(G=be.replace(_e,"$&/")+"/"),R(te,B,G,"",function(Aa){return Aa})):te!=null&&(Re(te)&&(te=ze(te,G+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(_e,"$&/")+"/")+be)),B.push(te)),1;be=0;var Ve=$===""?".":$+":";if(ne(S))for(var je=0;je<S.length;je++)$=S[je],re=Ve+ot($,je),be+=R($,B,G,re,te);else if(je=L(S),typeof je=="function")for(S=je.call(S),je=0;!($=S.next()).done;)$=$.value,re=Ve+ot($,je++),be+=R($,B,G,re,te);else if(re==="object"){if(typeof S.then=="function")return R(ue(S),B,G,$,te);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return be}function q(S,B,G){if(S==null)return S;var $=[],te=0;return R(S,$,"","",function(re){return B.call(G,re,te++)}),$}function Z(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var ce=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ge={map:q,forEach:function(S,B,G){q(S,function(){B.apply(this,arguments)},G)},count:function(S){var B=0;return q(S,function(){B++}),B},toArray:function(S){return q(S,function(B){return B})||[]},only:function(S){if(!Re(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=E,ae.Children=ge,ae.Component=U,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=F,ae.StrictMode=o,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return Y.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,B,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=O({},S.props),te=S.key;if(B!=null)for(re in B.key!==void 0&&(te=""+B.key),B)!P.call(B,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&B.ref===void 0||($[re]=B[re]);var re=arguments.length-2;if(re===1)$.children=G;else if(1<re){for(var be=Array(re),Ve=0;Ve<re;Ve++)be[Ve]=arguments[Ve+2];$.children=be}return se(S.type,te,$)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ae.createElement=function(S,B,G){var $,te={},re=null;if(B!=null)for($ in B.key!==void 0&&(re=""+B.key),B)P.call(B,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(te[$]=B[$]);var be=arguments.length-2;if(be===1)te.children=G;else if(1<be){for(var Ve=Array(be),je=0;je<be;je++)Ve[je]=arguments[je+2];te.children=Ve}if(S&&S.defaultProps)for($ in be=S.defaultProps,be)te[$]===void 0&&(te[$]=be[$]);return se(S,re,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:g,render:S}},ae.isValidElement=Re,ae.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:Z}},ae.memo=function(S,B){return{$$typeof:x,type:S,compare:B===void 0?null:B}},ae.startTransition=function(S){var B=Y.T,G={};Y.T=G;try{var $=S(),te=Y.S;te!==null&&te(G,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(he,ce)}catch(re){ce(re)}finally{B!==null&&G.types!==null&&(B.types=G.types),Y.T=B}},ae.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ae.use=function(S){return Y.H.use(S)},ae.useActionState=function(S,B,G){return Y.H.useActionState(S,B,G)},ae.useCallback=function(S,B){return Y.H.useCallback(S,B)},ae.useContext=function(S){return Y.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,B){return Y.H.useDeferredValue(S,B)},ae.useEffect=function(S,B){return Y.H.useEffect(S,B)},ae.useEffectEvent=function(S){return Y.H.useEffectEvent(S)},ae.useId=function(){return Y.H.useId()},ae.useImperativeHandle=function(S,B,G){return Y.H.useImperativeHandle(S,B,G)},ae.useInsertionEffect=function(S,B){return Y.H.useInsertionEffect(S,B)},ae.useLayoutEffect=function(S,B){return Y.H.useLayoutEffect(S,B)},ae.useMemo=function(S,B){return Y.H.useMemo(S,B)},ae.useOptimistic=function(S,B){return Y.H.useOptimistic(S,B)},ae.useReducer=function(S,B,G){return Y.H.useReducer(S,B,G)},ae.useRef=function(S){return Y.H.useRef(S)},ae.useState=function(S){return Y.H.useState(S)},ae.useSyncExternalStore=function(S,B,G){return Y.H.useSyncExternalStore(S,B,G)},ae.useTransition=function(){return Y.H.useTransition()},ae.version="19.2.4",ae}var yo;function Cs(){return yo||(yo=1,xr.exports=iv()),xr.exports}var h=Cs();const ll=Wc(h),rv=Dm({__proto__:null,default:ll},[h]);var wo=h.createContext(void 0),_t=n=>{const s=h.useContext(wo);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},uv=({client:n,children:s})=>(h.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(wo.Provider,{value:n,children:s})),jo=h.createContext(!1),cv=()=>h.useContext(jo);jo.Provider;function ov(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var fv=h.createContext(ov()),dv=()=>h.useContext(fv),hv=(n,s,c)=>{const o=c?.state.error&&typeof n.throwOnError=="function"?fr(n.throwOnError,[c.state.error,c]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(s.isReset()||(n.retryOnMount=!1))},mv=n=>{h.useEffect(()=>{n.clearReset()},[n])},vv=({result:n,errorResetBoundary:s,throwOnError:c,query:o,suspense:d})=>n.isError&&!s.isReset()&&!n.isFetching&&o&&(d&&n.data===void 0||fr(c,[n.error,o])),pv=n=>{if(n.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...d)=>c(o(...d)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},xv=(n,s)=>n.isLoading&&n.isFetching&&!s,gv=(n,s)=>n?.suspense&&s.isPending,So=(n,s,c)=>s.fetchOptimistic(n).catch(()=>{c.clearReset()});function bv(n,s,c){const o=cv(),d=dv(),m=_t(),v=m.defaultQueryOptions(n);m.getDefaultOptions().queries?._experimental_beforeQuery?.(v);const g=m.getQueryCache().get(v.queryHash);v._optimisticResults=o?"isRestoring":"optimistic",pv(v),hv(v,d,g),mv(d);const b=!m.getQueryCache().get(v.queryHash),[x]=h.useState(()=>new s(m,v)),y=x.getOptimisticResult(v),E=!o&&n.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(N=>{const L=E?x.subscribe(Je.batchCalls(N)):ft;return x.updateResult(),L},[x,E]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),h.useEffect(()=>{x.setOptions(v)},[v,x]),gv(v,y))throw So(v,x,d);if(vv({result:y,errorResetBoundary:d,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw y.error;return m.getDefaultOptions().queries?._experimental_afterQuery?.(v,y),v.experimental_prefetchInRender&&!tl&&xv(y,o)&&(b?So(v,x,d):g?.promise)?.catch(ft).finally(()=>{x.updateResult()}),v.notifyOnChangeProps?y:x.trackResult(y)}function Cl(n,s){return bv(n,Wm)}function ta(n,s){const c=_t(),[o]=h.useState(()=>new lv(c,n));h.useEffect(()=>{o.setOptions(n)},[o,n]);const d=h.useSyncExternalStore(h.useCallback(v=>o.subscribe(Je.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=h.useCallback((v,g)=>{o.mutate(v,g).catch(ft)},[o]);if(d.error&&fr(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}var gr={exports:{}},bn={},br={exports:{}},yr={};var No;function yv(){return No||(No=1,(function(n){function s(R,q){var Z=R.length;R.push(q);e:for(;0<Z;){var ce=Z-1>>>1,ge=R[ce];if(0<d(ge,q))R[ce]=q,R[Z]=ge,Z=ce;else break e}}function c(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var q=R[0],Z=R.pop();if(Z!==q){R[0]=Z;e:for(var ce=0,ge=R.length,S=ge>>>1;ce<S;){var B=2*(ce+1)-1,G=R[B],$=B+1,te=R[$];if(0>d(G,Z))$<ge&&0>d(te,G)?(R[ce]=te,R[$]=Z,ce=$):(R[ce]=G,R[B]=Z,ce=B);else if($<ge&&0>d(te,Z))R[ce]=te,R[$]=Z,ce=$;else break e}}return q}function d(R,q){var Z=R.sortIndex-q.sortIndex;return Z!==0?Z:R.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var b=[],x=[],y=1,E=null,N=3,L=!1,A=!1,O=!1,Q=!1,U=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function K(R){for(var q=c(x);q!==null;){if(q.callback===null)o(x);else if(q.startTime<=R)o(x),q.sortIndex=q.expirationTime,s(b,q);else break;q=c(x)}}function ne(R){if(O=!1,K(R),!A)if(c(b)!==null)A=!0,he||(he=!0,pe());else{var q=c(x);q!==null&&ue(ne,q.startTime-R)}}var he=!1,Y=-1,P=5,se=-1;function ze(){return Q?!0:!(n.unstable_now()-se<P)}function Re(){if(Q=!1,he){var R=n.unstable_now();se=R;var q=!0;try{e:{A=!1,O&&(O=!1,V(Y),Y=-1),L=!0;var Z=N;try{t:{for(K(R),E=c(b);E!==null&&!(E.expirationTime>R&&ze());){var ce=E.callback;if(typeof ce=="function"){E.callback=null,N=E.priorityLevel;var ge=ce(E.expirationTime<=R);if(R=n.unstable_now(),typeof ge=="function"){E.callback=ge,K(R),q=!0;break t}E===c(b)&&o(b),K(R)}else o(b);E=c(b)}if(E!==null)q=!0;else{var S=c(x);S!==null&&ue(ne,S.startTime-R),q=!1}}break e}finally{E=null,N=Z,L=!1}q=void 0}}finally{q?pe():he=!1}}}var pe;if(typeof F=="function")pe=function(){F(Re)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,ot=_e.port2;_e.port1.onmessage=Re,pe=function(){ot.postMessage(null)}}else pe=function(){U(Re,0)};function ue(R,q){Y=U(function(){R(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_next=function(R){switch(N){case 1:case 2:case 3:var q=3;break;default:q=N}var Z=N;N=q;try{return R()}finally{N=Z}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(R,q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=N;N=R;try{return q()}finally{N=Z}},n.unstable_scheduleCallback=function(R,q,Z){var ce=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ce+Z:ce):Z=ce,R){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=Z+ge,R={id:y++,callback:q,priorityLevel:R,startTime:Z,expirationTime:ge,sortIndex:-1},Z>ce?(R.sortIndex=Z,s(x,R),c(b)===null&&R===c(x)&&(O?(V(Y),Y=-1):O=!0,ue(ne,Z-ce))):(R.sortIndex=ge,s(b,R),A||L||(A=!0,he||(he=!0,pe()))),R},n.unstable_shouldYield=ze,n.unstable_wrapCallback=function(R){var q=N;return function(){var Z=N;N=q;try{return R.apply(this,arguments)}finally{N=Z}}}})(yr)),yr}var Eo;function wv(){return Eo||(Eo=1,br.exports=yv()),br.exports}var wr={exports:{}},rt={};var Co;function jv(){if(Co)return rt;Co=1;var n=Cs();function s(b){var x="https://react.dev/errors/"+b;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)x+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,x,y){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:E==null?null:""+E,children:b,containerInfo:x,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(b,x){if(b==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,rt.createPortal=function(b,x){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(s(299));return m(b,x,null,y)},rt.flushSync=function(b){var x=v.T,y=o.p;try{if(v.T=null,o.p=2,b)return b()}finally{v.T=x,o.p=y,o.d.f()}},rt.preconnect=function(b,x){typeof b=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(b,x))},rt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},rt.preinit=function(b,x){if(typeof b=="string"&&x&&typeof x.as=="string"){var y=x.as,E=g(y,x.crossOrigin),N=typeof x.integrity=="string"?x.integrity:void 0,L=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;y==="style"?o.d.S(b,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:E,integrity:N,fetchPriority:L}):y==="script"&&o.d.X(b,{crossOrigin:E,integrity:N,fetchPriority:L,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},rt.preinitModule=function(b,x){if(typeof b=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var y=g(x.as,x.crossOrigin);o.d.M(b,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(b)},rt.preload=function(b,x){if(typeof b=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var y=x.as,E=g(y,x.crossOrigin);o.d.L(b,y,{crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},rt.preloadModule=function(b,x){if(typeof b=="string")if(x){var y=g(x.as,x.crossOrigin);o.d.m(b,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(b)},rt.requestFormReset=function(b){o.d.r(b)},rt.unstable_batchedUpdates=function(b,x){return b(x)},rt.useFormState=function(b,x,y){return v.H.useFormState(b,x,y)},rt.useFormStatus=function(){return v.H.useHostTransitionStatus()},rt.version="19.2.4",rt}var Ao;function Oo(){if(Ao)return wr.exports;Ao=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),wr.exports=jv(),wr.exports}var Mo;function Sv(){if(Mo)return bn;Mo=1;var n=wv(),s=Cs(),c=Oo();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=u;else{for(var f=!1,p=i.child;p;){if(p===a){f=!0,a=i,l=u;break}if(p===l){f=!0,l=i,a=u;break}p=p.sibling}if(!f){for(p=u.child;p;){if(p===a){f=!0,a=u,l=i;break}if(p===l){f=!0,l=u,a=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,N=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),F=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Symbol.for("react.client.reference");function ot(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case U:return"Profiler";case Q:return"StrictMode";case ne:return"Suspense";case he:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case F:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ot(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return ot(e(t))}catch{}}return null}var ue=Array.isArray,R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ce=[],ge=-1;function S(e){return{current:e}}function B(e){0>ge||(e.current=ce[ge],ce[ge]=null,ge--)}function G(e,t){ge++,ce[ge]=e.current,e.current=t}var $=S(null),te=S(null),re=S(null),be=S(null);function Ve(e,t){switch(G(re,t),G(te,e),G($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B($),G($,e)}function je(){B($),B(te),B(re)}function Aa(e){e.memoizedState!==null&&G(be,e);var t=$.current,a=lm(t,e.type);t!==a&&(G(te,e),G($,a))}function jt(e){te.current===e&&(B($),B(te)),be.current===e&&(B(be),bs._currentValue=Z)}var X,Ne;function De(e){if(X===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);X=t&&t[1]||"",Ne=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+K+e+Ne}var Aa=!1;function Lr(e,t){if(!e||Aa)return"";Aa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(D){var z=D}Reflect.construct(e,[],B)}else{try{B.call()}catch(D){z=D}e.call(B.prototype)}}else{try{throw Error()}catch(D){z=D}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],p=u[1];if(f&&p){var w=f.split(`
4
- `),M=p.split(`
5
- `);for(i=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;if(l===w.length||i===M.length)for(l=w.length-1,i=M.length-1;1<=l&&0<=i&&w[l]!==M[i];)i--;for(;1<=l&&0<=i;l--,i--)if(w[l]!==M[i]){if(l!==1||i!==1)do if(l--,i--,0>i||w[l]!==M[i]){var L=`
6
- `+w[l].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=l&&0<=i);break}}}finally{Aa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?De(a):""}function Kx(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Lr(e.type,!1);case 11:return Lr(e.type.render,!1);case 1:return Lr(e.type,!0);case 31:return De("Activity");default:return""}}function Rf(e){try{var t="",a=null;do t+=Kx(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
3
+ `+X+e+Ne}var Oa=!1;function Lr(e,t){if(!e||Oa)return"";Oa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(D){var z=D}Reflect.construct(e,[],H)}else{try{H.call()}catch(D){z=D}e.call(H.prototype)}}else{try{throw Error()}catch(D){z=D}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],p=u[1];if(f&&p){var w=f.split(`
4
+ `),T=p.split(`
5
+ `);for(i=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;if(l===w.length||i===T.length)for(l=w.length-1,i=T.length-1;1<=l&&0<=i&&w[l]!==T[i];)i--;for(;1<=l&&0<=i;l--,i--)if(w[l]!==T[i]){if(l!==1||i!==1)do if(l--,i--,0>i||w[l]!==T[i]){var _=`
6
+ `+w[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=i);break}}}finally{Oa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?De(a):""}function Fx(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Lr(e.type,!1);case 11:return Lr(e.type.render,!1);case 1:return Lr(e.type,!0);case 31:return De("Activity");default:return""}}function Df(e){try{var t="",a=null;do t+=Fx(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var kr=Object.prototype.hasOwnProperty,Ur=n.unstable_scheduleCallback,Br=n.unstable_cancelCallback,$x=n.unstable_shouldYield,Jx=n.unstable_requestPaint,St=n.unstable_now,Fx=n.unstable_getCurrentPriorityLevel,Df=n.unstable_ImmediatePriority,_f=n.unstable_UserBlockingPriority,Vs=n.unstable_NormalPriority,Wx=n.unstable_LowPriority,Lf=n.unstable_IdlePriority,Ix=n.log,Px=n.unstable_setDisableYieldValue,Tn=null,Nt=null;function Oa(e){if(typeof Ix=="function"&&Px(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Tn,e)}catch{}}var Et=Math.clz32?Math.clz32:ag,eg=Math.log,tg=Math.LN2;function ag(e){return e>>>=0,e===0?32:31-(eg(e)/tg|0)|0}var Ys=256,Gs=262144,Zs=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xs(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?i=rl(l):(f&=p,f!==0?i=rl(f):a||(a=p&~e,a!==0&&(i=rl(a))))):(p=l&~u,p!==0?i=rl(p):f!==0?i=rl(f):a||(a=l&~e,a!==0&&(i=rl(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function Rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kf(){var e=Zs;return Zs<<=1,(Zs&62914560)===0&&(Zs=4194304),e}function Hr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Dn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ng(e,t,a,l,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,w=e.expirationTimes,M=e.hiddenUpdates;for(a=f&~a;0<a;){var L=31-Et(a),B=1<<L;p[L]=0,w[L]=-1;var z=M[L];if(z!==null)for(M[L]=null,L=0;L<z.length;L++){var D=z[L];D!==null&&(D.lane&=-536870913)}a&=~B}l!==0&&Uf(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Uf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Bf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function Hf(e,t){var a=t&-t;return a=(a&42)!==0?1:qr(a),(a&(e.suspendedLanes|t))!==0?0:a}function qr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Qr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qf(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Em(e.type))}function Qf(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var Ma=Math.random().toString(36).slice(2),at="__reactFiber$"+Ma,vt="__reactProps$"+Ma,Tl="__reactContainer$"+Ma,Vr="__reactEvents$"+Ma,sg="__reactListeners$"+Ma,ig="__reactHandles$"+Ma,Vf="__reactResources$"+Ma,_n="__reactMarker$"+Ma;function Yr(e){delete e[at],delete e[vt],delete e[Vr],delete e[sg],delete e[ig]}function Rl(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Tl]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=cm(e);e!==null;){if(a=e[at])return a;e=cm(e)}return t}e=a,a=e.parentNode}return null}function Dl(e){if(e=e[at]||e[Tl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ln(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function _l(e){var t=e[Vf];return t||(t=e[Vf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[_n]=!0}var Yf=new Set,Gf={};function ul(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(Gf[e]=t,e=0;e<t.length;e++)Yf.add(t[e])}var rg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Zf={},Xf={};function ug(e){return kr.call(Xf,e)?!0:kr.call(Zf,e)?!1:rg.test(e)?Xf[e]=!0:(Zf[e]=!0,!1)}function Ks(e,t,a){if(ug(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function $s(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function sa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cg(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gr(e){if(!e._valueTracker){var t=Kf(e)?"checked":"value";e._valueTracker=cg(e,t,""+e[t])}}function $f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Kf(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var og=/[\n"\\]/g;function kt(e){return e.replace(og,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zr(e,t,a,l,i,u,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Xr(e,f,Lt(t)):a!=null?Xr(e,f,Lt(a)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Lt(p):e.removeAttribute("name")}function Jf(e,t,a,l,i,u,f,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Gr(e);return}a=a!=null?""+Lt(a):"",t=t!=null?""+Lt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Gr(e)}function Xr(e,t,a){t==="number"&&Js(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function kl(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Lt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ff(e,t,a){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Lt(a):""}function Wf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(ue(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Lt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Gr(e)}function Ul(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var fg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function If(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||fg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Pf(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&If(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&If(e,u,t[u])}function Kr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fs(e){return hg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var $r=null;function Jr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,Hl=null;function ed(e){var t=Dl(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[vt]||null;if(!i)throw Error(o(90));Zr(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&$f(l)}break e;case"textarea":Ff(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&kl(e,!!a.multiple,t,!1)}}}var Fr=!1;function td(e,t,a){if(Fr)return e(t,a);Fr=!0;try{var l=e(t);return l}finally{if(Fr=!1,(Bl!==null||Hl!==null)&&(Ui(),Bl&&(t=Bl,e=Hl,Hl=Bl=null,ed(t),e)))for(t=0;t<e.length;t++)ed(e[t])}}function kn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[vt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wr=!1;if(ra)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){Wr=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{Wr=!1}var za=null,Ir=null,Ws=null;function ad(){if(Ws)return Ws;var e,t=Ir,a=t.length,l,i="value"in za?za.value:za.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===i[u-l];l++);return Ws=i.slice(e,1<l?1-l:void 0)}function Is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ps(){return!0}function ld(){return!1}function pt(e){function t(a,l,i,u,f){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ps:ld,this.isPropagationStopped=ld,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ps)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ps)},persist:function(){},isPersistent:Ps}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ei=pt(cl),Bn=E({},cl,{view:0,detail:0}),mg=pt(Bn),Pr,eu,Hn,ti=E({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:au,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hn&&(Hn&&e.type==="mousemove"?(Pr=e.screenX-Hn.screenX,eu=e.screenY-Hn.screenY):eu=Pr=0,Hn=e),Pr)},movementY:function(e){return"movementY"in e?e.movementY:eu}}),nd=pt(ti),vg=E({},ti,{dataTransfer:0}),pg=pt(vg),xg=E({},Bn,{relatedTarget:0}),tu=pt(xg),gg=E({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),bg=pt(gg),yg=E({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wg=pt(yg),jg=E({},cl,{data:0}),sd=pt(jg),Sg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ng={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Eg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Eg[e])?!!t[e]:!1}function au(){return Cg}var Ag=E({},Bn,{key:function(e){if(e.key){var t=Sg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ng[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:au,charCode:function(e){return e.type==="keypress"?Is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Og=pt(Ag),Mg=E({},ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),id=pt(Mg),zg=E({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:au}),Tg=pt(zg),Rg=E({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dg=pt(Rg),_g=E({},ti,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lg=pt(_g),kg=E({},cl,{newState:0,oldState:0}),Ug=pt(kg),Bg=[9,13,27,32],lu=ra&&"CompositionEvent"in window,qn=null;ra&&"documentMode"in document&&(qn=document.documentMode);var Hg=ra&&"TextEvent"in window&&!qn,rd=ra&&(!lu||qn&&8<qn&&11>=qn),ud=" ",cd=!1;function od(e,t){switch(e){case"keyup":return Bg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function qg(e,t){switch(e){case"compositionend":return fd(t);case"keypress":return t.which!==32?null:(cd=!0,ud);case"textInput":return e=t.data,e===ud&&cd?null:e;default:return null}}function Qg(e,t){if(ql)return e==="compositionend"||!lu&&od(e,t)?(e=ad(),Ws=Ir=za=null,ql=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rd&&t.locale!=="ko"?null:t.data;default:return null}}var Vg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vg[e.type]:t==="textarea"}function hd(e,t,a,l){Bl?Hl?Hl.push(l):Hl=[l]:Bl=l,t=Gi(t,"onChange"),0<t.length&&(a=new ei("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Qn=null,Vn=null;function Yg(e){Jh(e,0)}function ai(e){var t=Ln(e);if($f(t))return e}function md(e,t){if(e==="change")return t}var vd=!1;if(ra){var nu;if(ra){var su="oninput"in document;if(!su){var pd=document.createElement("div");pd.setAttribute("oninput","return;"),su=typeof pd.oninput=="function"}nu=su}else nu=!1;vd=nu&&(!document.documentMode||9<document.documentMode)}function xd(){Qn&&(Qn.detachEvent("onpropertychange",gd),Vn=Qn=null)}function gd(e){if(e.propertyName==="value"&&ai(Vn)){var t=[];hd(t,Vn,e,Jr(e)),td(Yg,t)}}function Gg(e,t,a){e==="focusin"?(xd(),Qn=t,Vn=a,Qn.attachEvent("onpropertychange",gd)):e==="focusout"&&xd()}function Zg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai(Vn)}function Xg(e,t){if(e==="click")return ai(t)}function Kg(e,t){if(e==="input"||e==="change")return ai(t)}function $g(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:$g;function Yn(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!kr.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function bd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yd(e,t){var a=bd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=bd(a)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Js(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Js(e.document)}return t}function iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Jg=ra&&"documentMode"in document&&11>=document.documentMode,Ql=null,ru=null,Gn=null,uu=!1;function Sd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;uu||Ql==null||Ql!==Js(l)||(l=Ql,"selectionStart"in l&&iu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gn&&Yn(Gn,l)||(Gn=l,l=Gi(ru,"onSelect"),0<l.length&&(t=new ei("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Ql)))}function ol(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Vl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},cu={},Nd={};ra&&(Nd=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function fl(e){if(cu[e])return cu[e];if(!Vl[e])return e;var t=Vl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Nd)return cu[e]=t[a];return e}var Ed=fl("animationend"),Cd=fl("animationiteration"),Ad=fl("animationstart"),Fg=fl("transitionrun"),Wg=fl("transitionstart"),Ig=fl("transitioncancel"),Od=fl("transitionend"),Md=new Map,ou="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ou.push("scrollEnd");function Xt(e,t){Md.set(e,t),ul(t,[e])}var li=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Yl=0,fu=0;function ni(){for(var e=Yl,t=fu=Yl=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var u=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}u!==0&&zd(a,i,u)}}function si(e,t,a,l){Ut[Yl++]=e,Ut[Yl++]=t,Ut[Yl++]=a,Ut[Yl++]=l,fu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function du(e,t,a,l){return si(e,t,a,l),ii(e)}function dl(e,t){return si(e,null,null,t),ii(e)}function zd(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Et(a),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),u):null}function ii(e){if(50<ds)throw ds=0,wc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Gl={};function Pg(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new Pg(e,t,a,l)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Td(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ri(e,t,a,l,i,u){var f=0;if(l=e,typeof e=="function")hu(e)&&(f=1);else if(typeof e=="string")f=n2(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=At(31,a,t,i),e.elementType=se,e.lanes=u,e;case R:return hl(a.children,i,u,t);case Q:f=8,i|=24;break;case H:return e=At(12,a,t,i|2),e.elementType=H,e.lanes=u,e;case ne:return e=At(13,a,t,i),e.elementType=ne,e.lanes=u,e;case oe:return e=At(19,a,t,i),e.elementType=oe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:f=10;break e;case V:f=9;break e;case Z:f=11;break e;case Y:f=14;break e;case P:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=At(f,a,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function hl(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function mu(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function Rd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function vu(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=Dd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Rf(t)},Dd.set(e,t),t)}return{value:e,source:t,stack:Rf(t)}}var Zl=[],Xl=0,ui=null,Zn=0,Ht=[],qt=0,Ta=null,Wt=1,It="";function ca(e,t){Zl[Xl++]=Zn,Zl[Xl++]=ui,ui=e,Zn=t}function _d(e,t,a){Ht[qt++]=Wt,Ht[qt++]=It,Ht[qt++]=Ta,Ta=e;var l=Wt;e=It;var i=32-Et(l)-1;l&=~(1<<i),a+=1;var u=32-Et(t)+i;if(30<u){var f=i-i%5;u=(l&(1<<f)-1).toString(32),l>>=f,i-=f,Wt=1<<32-Et(t)+i|a<<i|l,It=u+e}else Wt=1<<u|a<<i|l,It=e}function pu(e){e.return!==null&&(ca(e,1),_d(e,1,0))}function xu(e){for(;e===ui;)ui=Zl[--Xl],Zl[Xl]=null,Zn=Zl[--Xl],Zl[Xl]=null;for(;e===Ta;)Ta=Ht[--qt],Ht[qt]=null,It=Ht[--qt],Ht[qt]=null,Wt=Ht[--qt],Ht[qt]=null}function Ld(e,t){Ht[qt++]=Wt,Ht[qt++]=It,Ht[qt++]=Ta,Wt=t.id,It=t.overflow,Ta=e}var lt=null,Le=null,pe=!1,Ra=null,Qt=!1,gu=Error(o(519));function Da(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xn(Bt(t,e)),gu}function kd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[at]=e,t[vt]=l,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<ms.length;a++)de(ms[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),Jf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),Wf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Ph(t.textContent,a)?(l.popover!=null&&(de("beforetoggle",t),de("toggle",t)),l.onScroll!=null&&de("scroll",t),l.onScrollEnd!=null&&de("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||Da(e,!0)}function Ud(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:lt=lt.return}}function Kl(e){if(e!==lt)return!1;if(!pe)return Ud(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||kc(e.type,e.memoizedProps)),a=!a),a&&Le&&Da(e),Ud(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=um(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=um(e)}else t===27?(t=Le,Ka(e.type)?(e=Qc,Qc=null,Le=e):Le=t):Le=lt?Yt(e.stateNode.nextSibling):null;return!0}function ml(){Le=lt=null,pe=!1}function bu(){var e=Ra;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Ra=null),e}function Xn(e){Ra===null?Ra=[e]:Ra.push(e)}var yu=S(null),vl=null,oa=null;function _a(e,t,a){G(yu,t._currentValue),t._currentValue=a}function fa(e){e._currentValue=yu.current,U(yu)}function wu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ju(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=i;for(var w=0;w<t.length;w++)if(p.context===t[w]){u.lanes|=a,p=u.alternate,p!==null&&(p.lanes|=a),wu(u.return,a,e),l||(f=null);break e}u=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),wu(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function $l(e,t,a,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;Ct(i.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(i===ge.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(bs):e=[bs])}i=i.return}e!==null&&ju(t,e,a,l),t.flags|=262144}function ci(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){vl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Bd(vl,e)}function oi(e,t){return vl===null&&pl(e),Bd(e,t)}function Bd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(o(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var eb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},tb=n.unstable_scheduleCallback,ab=n.unstable_NormalPriority,Ze={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Su(){return{controller:new eb,data:new Map,refCount:0}}function Kn(e){e.refCount--,e.refCount===0&&tb(ab,function(){e.controller.abort()})}var $n=null,Nu=0,Jl=0,Fl=null;function lb(e,t){if($n===null){var a=$n=[];Nu=0,Jl=Ac(),Fl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Nu++,t.then(Hd,Hd),t}function Hd(){if(--Nu===0&&$n!==null){Fl!==null&&(Fl.status="fulfilled");var e=$n;$n=null,Jl=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nb(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var qd=T.S;T.S=function(e,t){Sh=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lb(e,t),qd!==null&&qd(e,t)};var xl=S(null);function Eu(){var e=xl.current;return e!==null?e:Te.pooledCache}function fi(e,t){t===null?G(xl,xl.current):G(xl,t.pool)}function Qd(){var e=Eu();return e===null?null:{parent:Ze._currentValue,pool:e}}var Wl=Error(o(460)),Cu=Error(o(474)),di=Error(o(542)),hi={then:function(){}};function Vd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ia,ia),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e}throw bl=t,Wl}}function gl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(bl=a,Wl):a}}var bl=null;function Gd(){if(bl===null)throw Error(o(459));var e=bl;return bl=null,e}function Zd(e){if(e===Wl||e===di)throw Error(o(483))}var Il=null,Jn=0;function mi(e){var t=Jn;return Jn+=1,Il===null&&(Il=[]),Yd(Il,e,t)}function Fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xd(e){function t(C,j){if(e){var O=C.deletions;O===null?(C.deletions=[j],C.flags|=16):O.push(j)}}function a(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function l(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function i(C,j){return C=ua(C,j),C.index=0,C.sibling=null,C}function u(C,j,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<j?(C.flags|=67108866,j):O):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,j,O,k){return j===null||j.tag!==6?(j=mu(O,C.mode,k),j.return=C,j):(j=i(j,O),j.return=C,j)}function w(C,j,O,k){var I=O.type;return I===R?L(C,j,O.props.children,k,O.key):j!==null&&(j.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&gl(I)===j.type)?(j=i(j,O.props),Fn(j,O),j.return=C,j):(j=ri(O.type,O.key,O.props,null,C.mode,k),Fn(j,O),j.return=C,j)}function M(C,j,O,k){return j===null||j.tag!==4||j.stateNode.containerInfo!==O.containerInfo||j.stateNode.implementation!==O.implementation?(j=vu(O,C.mode,k),j.return=C,j):(j=i(j,O.children||[]),j.return=C,j)}function L(C,j,O,k,I){return j===null||j.tag!==7?(j=hl(O,C.mode,k,I),j.return=C,j):(j=i(j,O),j.return=C,j)}function B(C,j,O){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=mu(""+j,C.mode,O),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _:return O=ri(j.type,j.key,j.props,null,C.mode,O),Fn(O,j),O.return=C,O;case A:return j=vu(j,C.mode,O),j.return=C,j;case P:return j=gl(j),B(C,j,O)}if(ue(j)||ve(j))return j=hl(j,C.mode,O,null),j.return=C,j;if(typeof j.then=="function")return B(C,mi(j),O);if(j.$$typeof===F)return B(C,oi(C,j),O);vi(C,j)}return null}function z(C,j,O,k){var I=j!==null?j.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return I!==null?null:p(C,j,""+O,k);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return O.key===I?w(C,j,O,k):null;case A:return O.key===I?M(C,j,O,k):null;case P:return O=gl(O),z(C,j,O,k)}if(ue(O)||ve(O))return I!==null?null:L(C,j,O,k,null);if(typeof O.then=="function")return z(C,j,mi(O),k);if(O.$$typeof===F)return z(C,j,oi(C,O),k);vi(C,O)}return null}function D(C,j,O,k,I){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return C=C.get(O)||null,p(j,C,""+k,I);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _:return C=C.get(k.key===null?O:k.key)||null,w(j,C,k,I);case A:return C=C.get(k.key===null?O:k.key)||null,M(j,C,k,I);case P:return k=gl(k),D(C,j,O,k,I)}if(ue(k)||ve(k))return C=C.get(O)||null,L(j,C,k,I,null);if(typeof k.then=="function")return D(C,j,O,mi(k),I);if(k.$$typeof===F)return D(C,j,O,oi(j,k),I);vi(j,k)}return null}function J(C,j,O,k){for(var I=null,be=null,W=j,ie=j=0,me=null;W!==null&&ie<O.length;ie++){W.index>ie?(me=W,W=null):me=W.sibling;var ye=z(C,W,O[ie],k);if(ye===null){W===null&&(W=me);break}e&&W&&ye.alternate===null&&t(C,W),j=u(ye,j,ie),be===null?I=ye:be.sibling=ye,be=ye,W=me}if(ie===O.length)return a(C,W),pe&&ca(C,ie),I;if(W===null){for(;ie<O.length;ie++)W=B(C,O[ie],k),W!==null&&(j=u(W,j,ie),be===null?I=W:be.sibling=W,be=W);return pe&&ca(C,ie),I}for(W=l(W);ie<O.length;ie++)me=D(W,C,ie,O[ie],k),me!==null&&(e&&me.alternate!==null&&W.delete(me.key===null?ie:me.key),j=u(me,j,ie),be===null?I=me:be.sibling=me,be=me);return e&&W.forEach(function(Ia){return t(C,Ia)}),pe&&ca(C,ie),I}function ee(C,j,O,k){if(O==null)throw Error(o(151));for(var I=null,be=null,W=j,ie=j=0,me=null,ye=O.next();W!==null&&!ye.done;ie++,ye=O.next()){W.index>ie?(me=W,W=null):me=W.sibling;var Ia=z(C,W,ye.value,k);if(Ia===null){W===null&&(W=me);break}e&&W&&Ia.alternate===null&&t(C,W),j=u(Ia,j,ie),be===null?I=Ia:be.sibling=Ia,be=Ia,W=me}if(ye.done)return a(C,W),pe&&ca(C,ie),I;if(W===null){for(;!ye.done;ie++,ye=O.next())ye=B(C,ye.value,k),ye!==null&&(j=u(ye,j,ie),be===null?I=ye:be.sibling=ye,be=ye);return pe&&ca(C,ie),I}for(W=l(W);!ye.done;ie++,ye=O.next())ye=D(W,C,ie,ye.value,k),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ie:ye.key),j=u(ye,j,ie),be===null?I=ye:be.sibling=ye,be=ye);return e&&W.forEach(function(v2){return t(C,v2)}),pe&&ca(C,ie),I}function Me(C,j,O,k){if(typeof O=="object"&&O!==null&&O.type===R&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case _:e:{for(var I=O.key;j!==null;){if(j.key===I){if(I=O.type,I===R){if(j.tag===7){a(C,j.sibling),k=i(j,O.props.children),k.return=C,C=k;break e}}else if(j.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&gl(I)===j.type){a(C,j.sibling),k=i(j,O.props),Fn(k,O),k.return=C,C=k;break e}a(C,j);break}else t(C,j);j=j.sibling}O.type===R?(k=hl(O.props.children,C.mode,k,O.key),k.return=C,C=k):(k=ri(O.type,O.key,O.props,null,C.mode,k),Fn(k,O),k.return=C,C=k)}return f(C);case A:e:{for(I=O.key;j!==null;){if(j.key===I)if(j.tag===4&&j.stateNode.containerInfo===O.containerInfo&&j.stateNode.implementation===O.implementation){a(C,j.sibling),k=i(j,O.children||[]),k.return=C,C=k;break e}else{a(C,j);break}else t(C,j);j=j.sibling}k=vu(O,C.mode,k),k.return=C,C=k}return f(C);case P:return O=gl(O),Me(C,j,O,k)}if(ue(O))return J(C,j,O,k);if(ve(O)){if(I=ve(O),typeof I!="function")throw Error(o(150));return O=I.call(O),ee(C,j,O,k)}if(typeof O.then=="function")return Me(C,j,mi(O),k);if(O.$$typeof===F)return Me(C,j,oi(C,O),k);vi(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,j!==null&&j.tag===6?(a(C,j.sibling),k=i(j,O),k.return=C,C=k):(a(C,j),k=mu(O,C.mode,k),k.return=C,C=k),f(C)):a(C,j)}return function(C,j,O,k){try{Jn=0;var I=Me(C,j,O,k);return Il=null,I}catch(W){if(W===Wl||W===di)throw W;var be=At(29,W,null,C.mode);return be.lanes=k,be.return=C,be}}}var yl=Xd(!0),Kd=Xd(!1),La=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ou(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ii(e),zd(e,null,a),t}return si(e,l,t,a),ii(e)}function Wn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Bf(e,a)}}function Mu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var zu=!1;function In(){if(zu){var e=Fl;if(e!==null)throw e}}function Pn(e,t,a,l){zu=!1;var i=e.updateQueue;La=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var w=p,M=w.next;w.next=null,f===null?u=M:f.next=M,f=w;var L=e.alternate;L!==null&&(L=L.updateQueue,p=L.lastBaseUpdate,p!==f&&(p===null?L.firstBaseUpdate=M:p.next=M,L.lastBaseUpdate=w))}if(u!==null){var B=i.baseState;f=0,L=M=w=null,p=u;do{var z=p.lane&-536870913,D=z!==p.lane;if(D?(he&z)===z:(l&z)===z){z!==0&&z===Jl&&(zu=!0),L!==null&&(L=L.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var J=e,ee=p;z=t;var Me=a;switch(ee.tag){case 1:if(J=ee.payload,typeof J=="function"){B=J.call(Me,B,z);break e}B=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,z=typeof J=="function"?J.call(Me,B,z):J,z==null)break e;B=E({},B,z);break e;case 2:La=!0}}z=p.callback,z!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[z]:D.push(z))}else D={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},L===null?(M=L=D,w=B):L=L.next=D,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;D=p,p=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);L===null&&(w=B),i.baseState=w,i.firstBaseUpdate=M,i.lastBaseUpdate=L,u===null&&(i.shared.lanes=0),Va|=f,e.lanes=f,e.memoizedState=B}}function $d(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Jd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)$d(a[e],t)}var Pl=S(null),pi=S(0);function Fd(e,t){e=ya,G(pi,e),G(Pl,t),ya=e|t.baseLanes}function Tu(){G(pi,ya),G(Pl,Pl.current)}function Ru(){ya=pi.current,U(Pl),U(pi)}var Ot=S(null),Vt=null;function Ba(e){var t=e.alternate;G(Ye,Ye.current&1),G(Ot,e),Vt===null&&(t===null||Pl.current!==null||t.memoizedState!==null)&&(Vt=e)}function Du(e){G(Ye,Ye.current),G(Ot,e),Vt===null&&(Vt=e)}function Wd(e){e.tag===22?(G(Ye,Ye.current),G(Ot,e),Vt===null&&(Vt=e)):Ha()}function Ha(){G(Ye,Ye.current),G(Ot,Ot.current)}function Mt(e){U(Ot),Vt===e&&(Vt=null),U(Ye)}var Ye=S(0);function xi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hc(a)||qc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var da=0,le=null,Ae=null,Xe=null,gi=!1,en=!1,wl=!1,bi=0,es=0,tn=null,sb=0;function He(){throw Error(o(321))}function _u(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Lu(e,t,a,l,i,u){return da=u,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?_0:Fu,wl=!1,u=a(l,i),wl=!1,en&&(u=Pd(t,a,l,i)),Id(e),u}function Id(e){T.H=ls;var t=Ae!==null&&Ae.next!==null;if(da=0,Xe=Ae=le=null,gi=!1,es=0,tn=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&ci(e)&&(Ke=!0))}function Pd(e,t,a,l){le=e;var i=0;do{if(en&&(tn=null),es=0,en=!1,25<=i)throw Error(o(301));if(i+=1,Xe=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=L0,u=t(a,l)}while(en);return u}function ib(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?ts(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(le.flags|=1024),t}function ku(){var e=bi!==0;return bi=0,e}function Uu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Bu(e){if(gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gi=!1}da=0,Xe=Ae=le=null,en=!1,es=bi=0,tn=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?le.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ge(){if(Ae===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Xe===null?le.memoizedState:Xe.next;if(t!==null)Xe=t,Ae=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Xe===null?le.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function yi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ts(e){var t=es;return es+=1,tn===null&&(tn=[]),e=Yd(tn,e,t),t=le,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?_0:Fu),e}function wi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ts(e);if(e.$$typeof===F)return nt(e)}throw Error(o(438,String(e)))}function Hu(e){var t=null,a=le.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=le.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=yi(),le.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ze;return t.index++,a}function ha(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=Ge();return qu(t,Ae,e)}function qu(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var p=f=null,w=null,M=t,L=!1;do{var B=M.lane&-536870913;if(B!==M.lane?(he&B)===B:(da&B)===B){var z=M.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),B===Jl&&(L=!0);else if((da&z)===z){M=M.next,z===Jl&&(L=!0);continue}else B={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(p=w=B,f=u):w=w.next=B,le.lanes|=z,Va|=z;B=M.action,wl&&a(u,B),u=M.hasEagerState?M.eagerState:a(u,B)}else z={lane:B,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(p=w=z,f=u):w=w.next=z,le.lanes|=B,Va|=B;M=M.next}while(M!==null&&M!==t);if(w===null?f=u:w.next=p,!Ct(u,e.memoizedState)&&(Ke=!0,L&&(a=Fl,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=w,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Qu(e){var t=Ge(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);Ct(u,t.memoizedState)||(Ke=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function e0(e,t,a){var l=le,i=Ge(),u=pe;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!Ct((Ae||i).memoizedState,a);if(f&&(i.memoizedState=a,Ke=!0),i=i.queue,Gu(l0.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||Xe!==null&&Xe.memoizedState.tag&1){if(l.flags|=2048,an(9,{destroy:void 0},a0.bind(null,l,i,a,t),null),Te===null)throw Error(o(349));u||(da&127)!==0||t0(l,t,a)}return a}function t0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=le.updateQueue,t===null?(t=yi(),le.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function a0(e,t,a,l){t.value=a,t.getSnapshot=l,n0(t)&&s0(e)}function l0(e,t,a){return a(function(){n0(t)&&s0(e)})}function n0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function s0(e){var t=dl(e,2);t!==null&&wt(t,e,2)}function Vu(e){var t=ht();if(typeof e=="function"){var a=e;if(e=a(),wl){Oa(!0);try{a()}finally{Oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function i0(e,t,a,l){return e.baseState=a,qu(e,Ae,typeof l=="function"?l:ha)}function rb(e,t,a,l,i){if(Ei(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};T.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,r0(t,u)):(u.next=a.next,t.pending=a.next=u)}}function r0(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=T.T,f={};T.T=f;try{var p=a(i,l),w=T.S;w!==null&&w(f,p),u0(e,t,p)}catch(M){Yu(e,t,M)}finally{u!==null&&f.types!==null&&(u.types=f.types),T.T=u}}else try{u=a(i,l),u0(e,t,u)}catch(M){Yu(e,t,M)}}function u0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){c0(e,t,l)},function(l){return Yu(e,t,l)}):c0(e,t,a)}function c0(e,t,a){t.status="fulfilled",t.value=a,o0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,r0(e,a)))}function Yu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,o0(t),t=t.next;while(t!==l)}e.action=null}function o0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function f0(e,t){return t}function d0(e,t){if(pe){var a=Te.formState;if(a!==null){e:{var l=le;if(pe){if(Le){t:{for(var i=Le,u=Qt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Yt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Le=Yt(i.nextSibling),l=i.data==="F!";break e}}Da(l)}l=!1}l&&(t=a[0])}}return a=ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f0,lastRenderedState:t},a.queue=l,a=T0.bind(null,le,l),l.dispatch=a,l=Vu(!1),u=Ju.bind(null,le,!1,l.queue),l=ht(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=rb.bind(null,le,i,u,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function h0(e){var t=Ge();return m0(t,Ae,e)}function m0(e,t,a){if(t=qu(e,t,f0)[0],e=ji(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ts(t)}catch(f){throw f===Wl?di:f}else l=t;t=Ge();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(le.flags|=2048,an(9,{destroy:void 0},ub.bind(null,i,a),null)),[l,u,e]}function ub(e,t){e.action=t}function v0(e){var t=Ge(),a=Ae;if(a!==null)return m0(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function an(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=le.updateQueue,t===null&&(t=yi(),le.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function p0(){return Ge().memoizedState}function Si(e,t,a,l){var i=ht();le.flags|=e,i.memoizedState=an(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ni(e,t,a,l){var i=Ge();l=l===void 0?null:l;var u=i.memoizedState.inst;Ae!==null&&l!==null&&_u(l,Ae.memoizedState.deps)?i.memoizedState=an(t,u,a,l):(le.flags|=e,i.memoizedState=an(1|t,u,a,l))}function x0(e,t){Si(8390656,8,e,t)}function Gu(e,t){Ni(2048,8,e,t)}function cb(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=yi(),le.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function g0(e){var t=Ge().memoizedState;return cb({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function b0(e,t){return Ni(4,2,e,t)}function y0(e,t){return Ni(4,4,e,t)}function w0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function j0(e,t,a){a=a!=null?a.concat([e]):null,Ni(4,4,w0.bind(null,t,e),a)}function Zu(){}function S0(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&_u(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function N0(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&_u(t,l[1]))return l[0];if(l=e(),wl){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[l,t],l}function Xu(e,t,a){return a===void 0||(da&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Eh(),le.lanes|=e,Va|=e,a)}function E0(e,t,a,l){return Ct(a,t)?a:Pl.current!==null?(e=Xu(e,a,l),Ct(e,t)||(Ke=!0),e):(da&42)===0||(da&1073741824)!==0&&(he&261930)===0?(Ke=!0,e.memoizedState=a):(e=Eh(),le.lanes|=e,Va|=e,t)}function C0(e,t,a,l,i){var u=q.p;q.p=u!==0&&8>u?u:8;var f=T.T,p={};T.T=p,Ju(e,!1,t,a);try{var w=i(),M=T.S;if(M!==null&&M(p,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var L=nb(w,l);as(e,t,L,Rt(e))}else as(e,t,l,Rt(e))}catch(B){as(e,t,{then:function(){},status:"rejected",reason:B},Rt())}finally{q.p=u,f!==null&&p.types!==null&&(f.types=p.types),T.T=f}}function ob(){}function Ku(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=A0(e).queue;C0(e,i,t,X,a===null?ob:function(){return O0(e),a(l)})}function A0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:X},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function O0(e){var t=A0(e);t.next===null&&(t=e.alternate.memoizedState),as(e,t.next.queue,{},Rt())}function $u(){return nt(bs)}function M0(){return Ge().memoizedState}function z0(){return Ge().memoizedState}function fb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=ka(a);var l=Ua(t,e,a);l!==null&&(wt(l,t,a),Wn(l,t,a)),t={cache:Su()},e.payload=t;return}t=t.return}}function db(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ei(e)?R0(t,a):(a=du(e,t,a,l),a!==null&&(wt(a,e,l),D0(a,t,l)))}function T0(e,t,a){var l=Rt();as(e,t,a,l)}function as(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ei(e))R0(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,p=u(f,a);if(i.hasEagerState=!0,i.eagerState=p,Ct(p,f))return si(e,t,i,0),Te===null&&ni(),!1}catch{}if(a=du(e,t,i,l),a!==null)return wt(a,e,l),D0(a,t,l),!0}return!1}function Ju(e,t,a,l){if(l={lane:2,revertLane:Ac(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ei(e)){if(t)throw Error(o(479))}else t=du(e,a,l,2),t!==null&&wt(t,e,2)}function Ei(e){var t=e.alternate;return e===le||t!==null&&t===le}function R0(e,t){en=gi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function D0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Bf(e,a)}}var ls={readContext:nt,use:wi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ls.useEffectEvent=He;var _0={readContext:nt,use:wi,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:x0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Si(4194308,4,w0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){Si(4,2,e,t)},useMemo:function(e,t){var a=ht();t=t===void 0?null:t;var l=e();if(wl){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ht();if(a!==void 0){var i=a(t);if(wl){Oa(!0);try{a(t)}finally{Oa(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=db.bind(null,le,e),[l.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Vu(e);var t=e.queue,a=T0.bind(null,le,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Zu,useDeferredValue:function(e,t){var a=ht();return Xu(a,e,t)},useTransition:function(){var e=Vu(!1);return e=C0.bind(null,le,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=le,i=ht();if(pe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Te===null)throw Error(o(349));(he&127)!==0||t0(l,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,x0(l0.bind(null,l,u,e),[e]),l.flags|=2048,an(9,{destroy:void 0},a0.bind(null,l,u,a,t),null),a},useId:function(){var e=ht(),t=Te.identifierPrefix;if(pe){var a=It,l=Wt;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=bi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=sb++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$u,useFormState:d0,useActionState:d0,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ju.bind(null,le,!0,a),a.dispatch=t,[e,t]},useMemoCache:Hu,useCacheRefresh:function(){return ht().memoizedState=fb.bind(null,le)},useEffectEvent:function(e){var t=ht(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Fu={readContext:nt,use:wi,useCallback:S0,useContext:nt,useEffect:Gu,useImperativeHandle:j0,useInsertionEffect:b0,useLayoutEffect:y0,useMemo:N0,useReducer:ji,useRef:p0,useState:function(){return ji(ha)},useDebugValue:Zu,useDeferredValue:function(e,t){var a=Ge();return E0(a,Ae.memoizedState,e,t)},useTransition:function(){var e=ji(ha)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ts(e),t]},useSyncExternalStore:e0,useId:M0,useHostTransitionStatus:$u,useFormState:h0,useActionState:h0,useOptimistic:function(e,t){var a=Ge();return i0(a,Ae,e,t)},useMemoCache:Hu,useCacheRefresh:z0};Fu.useEffectEvent=g0;var L0={readContext:nt,use:wi,useCallback:S0,useContext:nt,useEffect:Gu,useImperativeHandle:j0,useInsertionEffect:b0,useLayoutEffect:y0,useMemo:N0,useReducer:Qu,useRef:p0,useState:function(){return Qu(ha)},useDebugValue:Zu,useDeferredValue:function(e,t){var a=Ge();return Ae===null?Xu(a,e,t):E0(a,Ae.memoizedState,e,t)},useTransition:function(){var e=Qu(ha)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ts(e),t]},useSyncExternalStore:e0,useId:M0,useHostTransitionStatus:$u,useFormState:v0,useActionState:v0,useOptimistic:function(e,t){var a=Ge();return Ae!==null?i0(a,Ae,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hu,useCacheRefresh:z0};L0.useEffectEvent=g0;function Wu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:E({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Iu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=ka(l);i.payload=t,a!=null&&(i.callback=a),t=Ua(e,i,l),t!==null&&(wt(t,e,l),Wn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=ka(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ua(e,i,l),t!==null&&(wt(t,e,l),Wn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=ka(a);l.tag=2,t!=null&&(l.callback=t),t=Ua(e,l,a),t!==null&&(wt(t,e,a),Wn(t,e,a))}};function k0(e,t,a,l,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,f):t.prototype&&t.prototype.isPureReactComponent?!Yn(a,l)||!Yn(i,u):!0}function U0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function jl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=E({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function B0(e){li(e)}function H0(e){console.error(e)}function q0(e){li(e)}function Ci(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Q0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Pu(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Ci(e,t)},a}function V0(e){return e=ka(e),e.tag=3,e}function Y0(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){Q0(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Q0(t,a,l),typeof i!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function hb(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&$l(t,a,i,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?Bi():a.alternate===null&&qe===0&&(qe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Nc(e,l,i)),!1;case 22:return a.flags|=65536,l===hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Nc(e,l,i)),!1}throw Error(o(435,a.tag))}return Nc(e,l,i),Bi(),!1}if(pe)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==gu&&(e=Error(o(422),{cause:l}),Xn(Bt(e,a)))):(l!==gu&&(t=Error(o(423),{cause:l}),Xn(Bt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Bt(l,a),i=Pu(e.stateNode,l,i),Mu(e,i),qe!==4&&(qe=2)),!1;var u=Error(o(520),{cause:l});if(u=Bt(u,a),fs===null?fs=[u]:fs.push(u),qe!==4&&(qe=2),t===null)return!0;l=Bt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Pu(a.stateNode,l,e),Mu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ya===null||!Ya.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=V0(i),Y0(i,e,a,l),Mu(a,i),!1}a=a.return}while(a!==null);return!1}var ec=Error(o(461)),Ke=!1;function st(e,t,a,l){t.child=e===null?Kd(t,null,a,l):yl(t,e.child,a,l)}function G0(e,t,a,l,i){a=a.render;var u=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return pl(t),l=Lu(e,t,a,f,u,i),p=ku(),e!==null&&!Ke?(Uu(e,t,i),ma(e,t,i)):(pe&&p&&pu(t),t.flags|=1,st(e,t,l,i),t.child)}function Z0(e,t,a,l,i){if(e===null){var u=a.type;return typeof u=="function"&&!hu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,X0(e,t,u,l,i)):(e=ri(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!uc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:Yn,a(f,l)&&e.ref===t.ref)return ma(e,t,i)}return t.flags|=1,e=ua(u,l),e.ref=t.ref,e.return=t,t.child=e}function X0(e,t,a,l,i){if(e!==null){var u=e.memoizedProps;if(Yn(u,l)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=l=u,uc(e,i))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,ma(e,t,i)}return tc(e,t,a,l,i)}function K0(e,t,a,l){var i=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~u}else l=0,t.child=null;return $0(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fi(t,u!==null?u.cachePool:null),u!==null?Fd(t,u):Tu(),Wd(t);else return l=t.lanes=536870912,$0(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(fi(t,u.cachePool),Fd(t,u),Ha(),t.memoizedState=null):(e!==null&&fi(t,null),Tu(),Ha());return st(e,t,i,a),t.child}function ns(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $0(e,t,a,l,i){var u=Eu();return u=u===null?null:{parent:Ze._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&fi(t,null),Tu(),Wd(t),e!==null&&$l(e,t,l,!0),t.childLanes=i,null}function Ai(e,t){return t=Mi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function J0(e,t,a){return yl(t,e.child,null,a),e=Ai(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function mb(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Ai(t,l),t.lanes=536870912,ns(null,e);if(Du(t),(e=Le)?(e=rm(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Rd(e),a.return=t,t.child=a,lt=t,Le=null)):e=null,e===null)throw Da(t);return t.lanes=536870912,null}return Ai(t,l)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Du(t),i)if(t.flags&256)t.flags&=-257,t=J0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ke||$l(e,t,a,!1),i=(a&e.childLanes)!==0,Ke||i){if(l=Te,l!==null&&(f=Hf(l,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,dl(e,f),wt(l,e,f),ec;Bi(),t=J0(e,t,a)}else e=u.treeContext,Le=Yt(f.nextSibling),lt=t,pe=!0,Ra=null,Qt=!1,e!==null&&Ld(t,e),t=Ai(t,l),t.flags|=4096;return t}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Oi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function tc(e,t,a,l,i){return pl(t),a=Lu(e,t,a,l,void 0,i),l=ku(),e!==null&&!Ke?(Uu(e,t,i),ma(e,t,i)):(pe&&l&&pu(t),t.flags|=1,st(e,t,a,i),t.child)}function F0(e,t,a,l,i,u){return pl(t),t.updateQueue=null,a=Pd(t,l,a,i),Id(e),l=ku(),e!==null&&!Ke?(Uu(e,t,u),ma(e,t,u)):(pe&&l&&pu(t),t.flags|=1,st(e,t,a,u),t.child)}function W0(e,t,a,l,i){if(pl(t),t.stateNode===null){var u=Gl,f=a.contextType;typeof f=="object"&&f!==null&&(u=nt(f)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Iu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Au(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?nt(f):Gl,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Wu(t,a,f,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Iu.enqueueReplaceState(u,u.state,null),Pn(t,l,u,i),In(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,w=jl(a,p);u.props=w;var M=u.context,L=a.contextType;f=Gl,typeof L=="object"&&L!==null&&(f=nt(L));var B=a.getDerivedStateFromProps;L=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,L||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||M!==f)&&U0(t,u,l,f),La=!1;var z=t.memoizedState;u.state=z,Pn(t,l,u,i),In(),M=t.memoizedState,p||z!==M||La?(typeof B=="function"&&(Wu(t,a,B,l),M=t.memoizedState),(w=La||k0(t,a,w,l,z,M,f))?(L||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),u.props=l,u.state=M,u.context=f,l=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Ou(e,t),f=t.memoizedProps,L=jl(a,f),u.props=L,B=t.pendingProps,z=u.context,M=a.contextType,w=Gl,typeof M=="object"&&M!==null&&(w=nt(M)),p=a.getDerivedStateFromProps,(M=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==B||z!==w)&&U0(t,u,l,w),La=!1,z=t.memoizedState,u.state=z,Pn(t,l,u,i),In();var D=t.memoizedState;f!==B||z!==D||La||e!==null&&e.dependencies!==null&&ci(e.dependencies)?(typeof p=="function"&&(Wu(t,a,p,l),D=t.memoizedState),(L=La||k0(t,a,L,l,z,D,w)||e!==null&&e.dependencies!==null&&ci(e.dependencies))?(M||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,D,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,D,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=D),u.props=l,u.state=D,u.context=w,l=L):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Oi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=yl(t,e.child,null,i),t.child=yl(t,null,a,i)):st(e,t,a,i),t.memoizedState=u.state,e=t.child):e=ma(e,t,i),e}function I0(e,t,a,l){return ml(),t.flags|=256,st(e,t,a,l),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(e){return{baseLanes:e,cachePool:Qd()}}function nc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function P0(e,t,a){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(i?Ba(t):Ha(),(e=Le)?(e=rm(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Rd(e),a.return=t,t.child=a,lt=t,Le=null)):e=null,e===null)throw Da(t);return qc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,i?(Ha(),i=t.mode,p=Mi({mode:"hidden",children:p},i),l=hl(l,i,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=lc(a),l.childLanes=nc(e,f,a),t.memoizedState=ac,ns(null,l)):(Ba(t),sc(t,p))}var w=e.memoizedState;if(w!==null&&(p=w.dehydrated,p!==null)){if(u)t.flags&256?(Ba(t),t.flags&=-257,t=ic(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),p=l.fallback,i=t.mode,l=Mi({mode:"visible",children:l.children},i),p=hl(p,i,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,yl(t,e.child,null,a),l=t.child,l.memoizedState=lc(a),l.childLanes=nc(e,f,a),t.memoizedState=ac,t=ns(null,l));else if(Ba(t),qc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var M=f.dgst;f=M,l=Error(o(419)),l.stack="",l.digest=f,Xn({value:l,source:null,stack:null}),t=ic(e,t,a)}else if(Ke||$l(e,t,a,!1),f=(a&e.childLanes)!==0,Ke||f){if(f=Te,f!==null&&(l=Hf(f,a),l!==0&&l!==w.retryLane))throw w.retryLane=l,dl(e,l),wt(f,e,l),ec;Hc(p)||Bi(),t=ic(e,t,a)}else Hc(p)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Le=Yt(p.nextSibling),lt=t,pe=!0,Ra=null,Qt=!1,e!==null&&Ld(t,e),t=sc(t,l.children),t.flags|=4096);return t}return i?(Ha(),p=l.fallback,i=t.mode,w=e.child,M=w.sibling,l=ua(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,M!==null?p=ua(M,p):(p=hl(p,i,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,ns(null,l),l=t.child,p=e.child.memoizedState,p===null?p=lc(a):(i=p.cachePool,i!==null?(w=Ze._currentValue,i=i.parent!==w?{parent:w,pool:w}:i):i=Qd(),p={baseLanes:p.baseLanes|a,cachePool:i}),l.memoizedState=p,l.childLanes=nc(e,f,a),t.memoizedState=ac,ns(e.child,l)):(Ba(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function sc(e,t){return t=Mi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mi(e,t){return e=At(22,e,null,t),e.lanes=0,e}function ic(e,t,a){return yl(t,e.child,null,a),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),wu(e.return,t,a)}function rc(e,t,a,l,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function th(e,t,a){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var f=Ye.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,G(Ye,f),st(e,t,l,a),l=pe?Zn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&eh(e,a,t);else if(e.tag===19)eh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&xi(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),rc(t,!1,i,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xi(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}rc(t,!0,a,null,u,l);break;case"together":rc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,(a&t.childLanes)===0)if(e!==null){if($l(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ci(e)))}function vb(e,t,a){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),_a(t,Ze,e.memoizedState.cache),ml();break;case 27:case 5:Ca(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Du(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?P0(e,t,a):(Ba(t),e=ma(e,t,a),e!==null?e.sibling:null);Ba(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||($l(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return th(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,K0(e,t,a,t.pendingProps);case 24:_a(t,Ze,e.memoizedState.cache)}return ma(e,t,a)}function ah(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!uc(e,a)&&(t.flags&128)===0)return Ke=!1,vb(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,pe&&(t.flags&1048576)!==0&&_d(t,Zn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")hu(e)?(l=jl(e,l),t.tag=1,t=W0(null,t,e,l,a)):(t.tag=0,t=tc(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===Z){t.tag=11,t=G0(null,t,e,l,a);break e}else if(i===Y){t.tag=14,t=Z0(null,t,e,l,a);break e}}throw t=ct(e)||e,Error(o(306,t,""))}}return t;case 0:return tc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=jl(l,t.pendingProps),W0(e,t,l,i,a);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Ou(e,t),Pn(t,l,null,a);var f=t.memoizedState;if(l=f.cache,_a(t,Ze,l),l!==u.cache&&ju(t,[Ze],a,!0),In(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=I0(e,t,l,a);break e}else if(l!==i){i=Bt(Error(o(424)),t),Xn(i),t=I0(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Yt(e.firstChild),lt=t,pe=!0,Ra=null,Qt=!0,a=Kd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ml(),l===i){t=ma(e,t,a);break e}st(e,t,l,a)}t=t.child}return t;case 26:return Oi(e,t),e===null?(a=hm(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=Zi(re.current).createElement(a),l[at]=t,l[vt]=e,it(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=hm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ca(t),e===null&&pe&&(l=t.stateNode=om(t.type,t.pendingProps,re.current),lt=t,Qt=!0,i=Le,Ka(t.type)?(Qc=i,Le=Yt(l.firstChild)):Le=i),st(e,t,t.pendingProps.children,a),Oi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((i=l=Le)&&(l=Zb(l,t.type,t.pendingProps,Qt),l!==null?(t.stateNode=l,lt=t,Le=Yt(l.firstChild),Qt=!1,i=!0):i=!1),i||Da(t)),Ca(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,l=u.children,kc(i,u)?l=null:f!==null&&kc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Lu(e,t,ib,null,null,a),bs._currentValue=i),Oi(e,t),st(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=Le)&&(a=Xb(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,lt=t,Le=null,e=!0):e=!1),e||Da(t)),null;case 13:return P0(e,t,a);case 4:return Ve(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=yl(t,null,l,a):st(e,t,l,a),t.child;case 11:return G0(e,t,t.type,t.pendingProps,a);case 7:return st(e,t,t.pendingProps,a),t.child;case 8:return st(e,t,t.pendingProps.children,a),t.child;case 12:return st(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,_a(t,t.type,l.value),st(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,pl(t),i=nt(i),l=l(i),t.flags|=1,st(e,t,l,a),t.child;case 14:return Z0(e,t,t.type,t.pendingProps,a);case 15:return X0(e,t,t.type,t.pendingProps,a);case 19:return th(e,t,a);case 31:return mb(e,t,a);case 22:return K0(e,t,a,t.pendingProps);case 24:return pl(t),l=nt(Ze),e===null?(i=Eu(),i===null&&(i=Te,u=Su(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:l,cache:i},Au(t),_a(t,Ze,i)):((e.lanes&a)!==0&&(Ou(e,t),Pn(t,null,null,a),In()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_a(t,Ze,l)):(l=u.cache,_a(t,Ze,l),l!==i.cache&&ju(t,[Ze],a,!0))),st(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function va(e){e.flags|=4}function cc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Mh())e.flags|=8192;else throw bl=hi,Cu}else e.flags&=-16777217}function lh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gm(t))if(Mh())e.flags|=8192;else throw bl=hi,Cu}function zi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kf():536870912,e.lanes|=t,rn|=t)}function ss(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function pb(e,t,a){var l=t.pendingProps;switch(xu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa(Ze),je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bu())),ke(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(va(t),u!==null?(ke(t),lh(t,u)):(ke(t),cc(t,i,null,l,a))):u?u!==e.memoizedState?(va(t),ke(t),lh(t,u)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&va(t),ke(t),cc(t,i,e,l,a)),null;case 27:if(jt(t),a=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}e=$.current,Kl(t)?kd(t):(e=om(i,l,a),t.stateNode=e,va(t))}return ke(t),null;case 5:if(jt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}if(u=$.current,Kl(t))kd(t);else{var f=Zi(re.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}u[at]=t,u[vt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(it(u,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&va(t)}}return ke(t),cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,Kl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=lt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Ph(e.nodeValue,a)),e||Da(t,!0)}else e=Zi(e).createTextNode(l),e[at]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Kl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[at]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Kl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[at]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else i=bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zi(t,t.updateQueue),ke(t),null);case 4:return je(),e===null&&Tc(t.stateNode.containerInfo),ke(t),null;case 10:return fa(t.type),ke(t),null;case 19:if(U(Ye),l=t.memoizedState,l===null)return ke(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)ss(l,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=xi(e),u!==null){for(t.flags|=128,ss(l,!1),e=u.updateQueue,t.updateQueue=e,zi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Td(a,e),a=a.sibling;return G(Ye,Ye.current&1|2),pe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Li&&(t.flags|=128,i=!0,ss(l,!1),t.lanes=4194304)}else{if(!i)if(e=xi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zi(t,e),ss(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pe)return ke(t),null}else 2*St()-l.renderingStartTime>Li&&a!==536870912&&(t.flags|=128,i=!0,ss(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,a=Ye.current,G(Ye,i?a&1|2:a&1),pe&&ca(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Mt(t),Ru(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&zi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa(Ze),ke(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function xb(e,t){switch(xu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(Ze),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return jt(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ye),null;case 4:return je(),null;case 10:return fa(t.type),null;case 22:case 23:return Mt(t),Ru(),e!==null&&U(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(Ze),null;case 25:return null;default:return null}}function nh(e,t){switch(xu(t),t.tag){case 3:fa(Ze),je();break;case 26:case 27:case 5:jt(t);break;case 4:je();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:U(Ye);break;case 10:fa(t.type);break;case 22:case 23:Mt(t),Ru(),e!==null&&U(xl);break;case 24:fa(Ze)}}function is(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var u=a.create,f=a.inst;l=u(),f.destroy=l}a=a.next}while(a!==i)}}catch(p){Ce(t,t.return,p)}}function qa(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=t;var w=a,M=p;try{M()}catch(L){Ce(i,w,L)}}}l=l.next}while(l!==u)}}catch(L){Ce(t,t.return,L)}}function sh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Jd(t,a)}catch(l){Ce(e,e.return,l)}}}function ih(e,t,a){a.props=jl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function rs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function Pt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function rh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function oc(e,t,a){try{var l=e.stateNode;Hb(l,e.type,a,t),l[vt]=t}catch(i){Ce(e,e.return,i)}}function uh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ka(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ia));else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(dc(e,t,a),e=e.sibling;e!==null;)dc(e,t,a),e=e.sibling}function Ti(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ti(e,t,a),e=e.sibling;e!==null;)Ti(e,t,a),e=e.sibling}function ch(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);it(t,l,a),t[at]=e,t[vt]=a}catch(u){Ce(e,e.return,u)}}var pa=!1,$e=!1,hc=!1,oh=typeof WeakSet=="function"?WeakSet:Set,et=null;function gb(e,t){if(e=e.containerInfo,_c=Ii,e=jd(e),iu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,p=-1,w=-1,M=0,L=0,B=e,z=null;t:for(;;){for(var D;B!==a||i!==0&&B.nodeType!==3||(p=f+i),B!==u||l!==0&&B.nodeType!==3||(w=f+l),B.nodeType===3&&(f+=B.nodeValue.length),(D=B.firstChild)!==null;)z=B,B=D;for(;;){if(B===e)break t;if(z===a&&++M===i&&(p=f),z===u&&++L===l&&(w=f),(D=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=D}a=p===-1||w===-1?null:{start:p,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Lc={focusedElem:e,selectionRange:a},Ii=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var J=jl(a.type,i);e=l.getSnapshotBeforeUpdate(J,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Ce(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Bc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function fh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ga(e,a),l&4&&is(5,a);break;case 1:if(ga(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(a,a.return,f)}else{var i=jl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(a,a.return,f)}}l&64&&sh(a),l&512&&rs(a,a.return);break;case 3:if(ga(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Jd(e,t)}catch(f){Ce(a,a.return,f)}}break;case 27:t===null&&l&4&&ch(a);case 26:case 5:ga(e,a),t===null&&l&4&&rh(a),l&512&&rs(a,a.return);break;case 12:ga(e,a);break;case 31:ga(e,a),l&4&&mh(e,a);break;case 13:ga(e,a),l&4&&vh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ab.bind(null,a),Kb(e,a))));break;case 22:if(l=a.memoizedState!==null||pa,!l){t=t!==null&&t.memoizedState!==null||$e,i=pa;var u=$e;pa=l,($e=t)&&!u?ba(e,a,(a.subtreeFlags&8772)!==0):ga(e,a),pa=i,$e=u}break;case 30:break;default:ga(e,a)}}function dh(e){var t=e.alternate;t!==null&&(e.alternate=null,dh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,xt=!1;function xa(e,t,a){for(a=a.child;a!==null;)hh(e,t,a),a=a.sibling}function hh(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Tn,a)}catch{}switch(a.tag){case 26:$e||Pt(a,t),xa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Pt(a,t);var l=Ue,i=xt;Ka(a.type)&&(Ue=a.stateNode,xt=!1),xa(e,t,a),ps(a.stateNode),Ue=l,xt=i;break;case 5:$e||Pt(a,t);case 6:if(l=Ue,i=xt,Ue=null,xa(e,t,a),Ue=l,xt=i,Ue!==null)if(xt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(u){Ce(a,t,u)}else try{Ue.removeChild(a.stateNode)}catch(u){Ce(a,t,u)}break;case 18:Ue!==null&&(xt?(e=Ue,sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vn(e)):sm(Ue,a.stateNode));break;case 4:l=Ue,i=xt,Ue=a.stateNode.containerInfo,xt=!0,xa(e,t,a),Ue=l,xt=i;break;case 0:case 11:case 14:case 15:qa(2,a,t),$e||qa(4,a,t),xa(e,t,a);break;case 1:$e||(Pt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&ih(a,t,l)),xa(e,t,a);break;case 21:xa(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,xa(e,t,a),$e=l;break;default:xa(e,t,a)}}function mh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vn(e)}catch(a){Ce(t,t.return,a)}}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vn(e)}catch(a){Ce(t,t.return,a)}}function bb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new oh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new oh),t;default:throw Error(o(435,e.tag))}}function Ri(e,t){var a=bb(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=Ob.bind(null,e,l);l.then(i,i)}})}function gt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],u=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(Ka(p.type)){Ue=p.stateNode,xt=!1;break e}break;case 5:Ue=p.stateNode,xt=!1;break e;case 3:case 4:Ue=p.stateNode.containerInfo,xt=!0;break e}p=p.return}if(Ue===null)throw Error(o(160));hh(u,f,i),Ue=null,xt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ph(t,e),t=t.sibling}var Kt=null;function ph(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),bt(e),l&4&&(qa(3,e,e.return),is(3,e),qa(5,e,e.return));break;case 1:gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),l&64&&pa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Kt;if(gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":u=i.getElementsByTagName("title")[0],(!u||u[_n]||u[at]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),it(u,l,a),u[at]=e,Pe(u),l=u;break e;case"link":var f=pm("link","href",i).get(l+(a.href||""));if(f){for(var p=0;p<f.length;p++)if(u=f[p],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(p,1);break t}}u=i.createElement(l),it(u,l,a),i.head.appendChild(u);break;case"meta":if(f=pm("meta","content",i).get(l+(a.content||""))){for(p=0;p<f.length;p++)if(u=f[p],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(p,1);break t}}u=i.createElement(l),it(u,l,a),i.head.appendChild(u);break;default:throw Error(o(468,l))}u[at]=e,Pe(u),l=u}e.stateNode=l}else xm(i,e.type,e.stateNode);else e.stateNode=vm(i,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?xm(i,e.type,e.stateNode):vm(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&oc(e,e.memoizedProps,a.memoizedProps)}break;case 27:gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),a!==null&&l&4&&oc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),e.flags&32){i=e.stateNode;try{Ul(i,"")}catch(J){Ce(e,e.return,J)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,oc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(hc=!0);break;case 6:if(gt(t,e),bt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Ce(e,e.return,J)}}break;case 3:if($i=null,i=Kt,Kt=Xi(t.containerInfo),gt(t,e),Kt=i,bt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{vn(t.containerInfo)}catch(J){Ce(e,e.return,J)}hc&&(hc=!1,xh(e));break;case 4:l=Kt,Kt=Xi(e.stateNode.containerInfo),gt(t,e),bt(e),Kt=l;break;case 12:gt(t,e),bt(e);break;case 31:gt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ri(e,l)));break;case 13:gt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_i=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ri(e,l)));break;case 22:i=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,M=pa,L=$e;if(pa=M||i,$e=L||w,gt(t,e),$e=L,pa=M,bt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||w||pa||$e||Sl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=w.stateNode;var B=w.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){Ce(w,w.return,J)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=i?"":w.memoizedProps}catch(J){Ce(w,w.return,J)}}}else if(t.tag===18){if(a===null){w=t;try{var D=w.stateNode;i?im(D,!0):im(w.stateNode,!1)}catch(J){Ce(w,w.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ri(e,a))));break;case 19:gt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ri(e,l)));break;case 30:break;case 21:break;default:gt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(uh(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,u=fc(e);Ti(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(Ul(f,""),a.flags&=-33);var p=fc(e);Ti(e,p,f);break;case 3:case 4:var w=a.stateNode.containerInfo,M=fc(e);dc(e,M,w);break;default:throw Error(o(161))}}catch(L){Ce(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fh(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qa(4,t,t.return),Sl(t);break;case 1:Pt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ih(t,t.return,a),Sl(t);break;case 27:ps(t.stateNode);case 26:case 5:Pt(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:ba(i,u,a),is(4,u);break;case 1:if(ba(i,u,a),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Ce(l,l.return,M)}if(l=u,i=l.updateQueue,i!==null){var p=l.stateNode;try{var w=i.shared.hiddenCallbacks;if(w!==null)for(i.shared.hiddenCallbacks=null,i=0;i<w.length;i++)$d(w[i],p)}catch(M){Ce(l,l.return,M)}}a&&f&64&&sh(u),rs(u,u.return);break;case 27:ch(u);case 26:case 5:ba(i,u,a),a&&l===null&&f&4&&rh(u),rs(u,u.return);break;case 12:ba(i,u,a);break;case 31:ba(i,u,a),a&&f&4&&mh(i,u);break;case 13:ba(i,u,a),a&&f&4&&vh(i,u);break;case 22:u.memoizedState===null&&ba(i,u,a),rs(u,u.return);break;case 30:break;default:ba(i,u,a)}t=t.sibling}}function mc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Kn(a))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e))}function $t(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gh(e,t,a,l),t=t.sibling}function gh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,a,l),i&2048&&is(9,t);break;case 1:$t(e,t,a,l);break;case 3:$t(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e)));break;case 12:if(i&2048){$t(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,p=u.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ce(t,t.return,w)}}else $t(e,t,a,l);break;case 31:$t(e,t,a,l);break;case 13:$t(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?$t(e,t,a,l):us(e,t):u._visibility&2?$t(e,t,a,l):(u._visibility|=2,ln(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&mc(f,t);break;case 24:$t(e,t,a,l),i&2048&&vc(t.alternate,t);break;default:$t(e,t,a,l)}}function ln(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,p=a,w=l,M=f.flags;switch(f.tag){case 0:case 11:case 15:ln(u,f,p,w,i),is(8,f);break;case 23:break;case 22:var L=f.stateNode;f.memoizedState!==null?L._visibility&2?ln(u,f,p,w,i):us(u,f):(L._visibility|=2,ln(u,f,p,w,i)),i&&M&2048&&mc(f.alternate,f);break;case 24:ln(u,f,p,w,i),i&&M&2048&&vc(f.alternate,f);break;default:ln(u,f,p,w,i)}t=t.sibling}}function us(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:us(a,l),i&2048&&mc(l.alternate,l);break;case 24:us(a,l),i&2048&&vc(l.alternate,l);break;default:us(a,l)}t=t.sibling}}var cs=8192;function nn(e,t,a){if(e.subtreeFlags&cs)for(e=e.child;e!==null;)bh(e,t,a),e=e.sibling}function bh(e,t,a){switch(e.tag){case 26:nn(e,t,a),e.flags&cs&&e.memoizedState!==null&&s2(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:nn(e,t,a);break;case 3:case 4:var l=Kt;Kt=Xi(e.stateNode.containerInfo),nn(e,t,a),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=cs,cs=16777216,nn(e,t,a),cs=l):nn(e,t,a));break;default:nn(e,t,a)}}function yh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function os(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,jh(l,e)}yh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(e),e=e.sibling}function wh(e){switch(e.tag){case 0:case 11:case 15:os(e),e.flags&2048&&qa(9,e,e.return);break;case 3:os(e);break;case 12:os(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Di(e)):os(e);break;default:os(e)}}function Di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,jh(l,e)}yh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),Di(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Di(t));break;default:Di(t)}e=e.sibling}}function jh(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:qa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Kn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var i=l.sibling,u=l.return;if(dh(l),l===a){et=null;break e}if(i!==null){i.return=u,et=i;break e}et=u}}}var yb={getCacheForType:function(e){var t=nt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Ze).controller.signal}},wb=typeof WeakMap=="function"?WeakMap:Map,Se=0,Te=null,fe=null,he=0,Ee=0,zt=null,Qa=!1,sn=!1,pc=!1,ya=0,qe=0,Va=0,Nl=0,xc=0,Tt=0,rn=0,fs=null,yt=null,gc=!1,_i=0,Sh=0,Li=1/0,ki=null,Ya=null,We=0,Ga=null,un=null,wa=0,bc=0,yc=null,Nh=null,ds=0,wc=null;function Rt(){return(Se&2)!==0&&he!==0?he&-he:T.T!==null?Ac():qf()}function Eh(){if(Tt===0)if((he&536870912)===0||pe){var e=Gs;Gs<<=1,(Gs&3932160)===0&&(Gs=262144),Tt=e}else Tt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Tt}function wt(e,t,a){(e===Te&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(cn(e,0),Za(e,he,Tt,!1)),Dn(e,a),((Se&2)===0||e!==Te)&&(e===Te&&((Se&2)===0&&(Nl|=a),qe===4&&Za(e,he,Tt,!1)),ea(e))}function Ch(e,t,a){if((Se&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Rn(e,t),i=l?Nb(e,t):Sc(e,t,!0),u=l;do{if(i===0){sn&&!l&&Za(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!jb(a)){i=Sc(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;i=fs;var w=p.current.memoizedState.isDehydrated;if(w&&(cn(p,f).flags|=256),f=Sc(p,f,!1),f!==2){if(pc&&!w){p.errorRecoveryDisabledLanes|=u,Nl|=u,i=4;break e}u=yt,yt=i,u!==null&&(yt===null?yt=u:yt.push.apply(yt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){cn(e,0),Za(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Za(l,t,Tt,!Qa);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=_i+300-St(),10<i)){if(Za(l,t,Tt,!Qa),Xs(l,0,!0)!==0)break e;wa=t,l.timeoutHandle=lm(Ah.bind(null,l,a,yt,ki,gc,t,Tt,Nl,rn,Qa,u,"Throttled",-0,0),i);break e}Ah(l,a,yt,ki,gc,t,Tt,Nl,rn,Qa,u,null,-0,0)}}break}while(!0);ea(e)}function Ah(e,t,a,l,i,u,f,p,w,M,L,B,z,D){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},bh(t,u,B);var J=(u&62914560)===u?_i-St():(u&4194048)===u?Sh-St():0;if(J=i2(B,J),J!==null){wa=u,e.cancelPendingCommit=J(Lh.bind(null,e,t,u,a,l,i,f,p,w,L,B,null,z,D)),Za(e,u,f,!M);return}}Lh(e,t,u,a,l,i,f,p,w)}function jb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],u=i.getSnapshot;i=i.value;try{if(!Ct(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Za(e,t,a,l){t&=~xc,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-Et(i),f=1<<u;l[u]=-1,i&=~f}a!==0&&Uf(e,a,t)}function Ui(){return(Se&6)===0?(hs(0),!1):!0}function jc(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,oa=vl=null,Bu(e),Il=null,Jn=0,e=fe;for(;e!==null;)nh(e.alternate,e),e=e.return;fe=null}}function cn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Vb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),wa=0,jc(),Te=e,fe=a=ua(e.current,null),he=t,Ee=0,zt=null,Qa=!1,sn=Rn(e,t),pc=!1,rn=Tt=xc=Nl=Va=qe=0,yt=fs=null,gc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Et(l),u=1<<i;t|=e[i],l&=~u}return ya=t,ni(),a}function Oh(e,t){le=null,T.H=ls,t===Wl||t===di?(t=Gd(),Ee=3):t===Cu?(t=Gd(),Ee=4):Ee=t===ec?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,fe===null&&(qe=1,Ci(e,Bt(t,e.current)))}function Mh(){var e=Ot.current;return e===null?!0:(he&4194048)===he?Vt===null:(he&62914560)===he||(he&536870912)!==0?e===Vt:!1}function zh(){var e=T.H;return T.H=ls,e===null?ls:e}function Th(){var e=T.A;return T.A=yb,e}function Bi(){qe=4,Qa||(he&4194048)!==he&&Ot.current!==null||(sn=!0),(Va&134217727)===0&&(Nl&134217727)===0||Te===null||Za(Te,he,Tt,!1)}function Sc(e,t,a){var l=Se;Se|=2;var i=zh(),u=Th();(Te!==e||he!==t)&&(ki=null,cn(e,t)),t=!1;var f=qe;e:do try{if(Ee!==0&&fe!==null){var p=fe,w=zt;switch(Ee){case 8:jc(),f=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var M=Ee;if(Ee=0,zt=null,on(e,p,w,M),a&&sn){f=0;break e}break;default:M=Ee,Ee=0,zt=null,on(e,p,w,M)}}Sb(),f=qe;break}catch(L){Oh(e,L)}while(!0);return t&&e.shellSuspendCounter++,oa=vl=null,Se=l,T.H=i,T.A=u,fe===null&&(Te=null,he=0,ni()),f}function Sb(){for(;fe!==null;)Rh(fe)}function Nb(e,t){var a=Se;Se|=2;var l=zh(),i=Th();Te!==e||he!==t?(ki=null,Li=St()+500,cn(e,t)):sn=Rn(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var u=zt;t:switch(Ee){case 1:Ee=0,zt=null,on(e,t,u,1);break;case 2:case 9:if(Vd(u)){Ee=0,zt=null,Dh(t);break}t=function(){Ee!==2&&Ee!==9||Te!==e||(Ee=7),ea(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Vd(u)?(Ee=0,zt=null,Dh(t)):(Ee=0,zt=null,on(e,t,u,7));break;case 5:var f=null;switch(fe.tag){case 26:f=fe.memoizedState;case 5:case 27:var p=fe;if(f?gm(f):p.stateNode.complete){Ee=0,zt=null;var w=p.sibling;if(w!==null)fe=w;else{var M=p.return;M!==null?(fe=M,Hi(M)):fe=null}break t}}Ee=0,zt=null,on(e,t,u,5);break;case 6:Ee=0,zt=null,on(e,t,u,6);break;case 8:jc(),qe=6;break e;default:throw Error(o(462))}}Eb();break}catch(L){Oh(e,L)}while(!0);return oa=vl=null,T.H=l,T.A=i,Se=a,fe!==null?0:(Te=null,he=0,ni(),qe)}function Eb(){for(;fe!==null&&!$x();)Rh(fe)}function Rh(e){var t=ah(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Hi(e):fe=t}function Dh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=F0(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=F0(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Bu(t);default:nh(a,t),t=fe=Td(t,ya),t=ah(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?Hi(e):fe=t}function on(e,t,a,l){oa=vl=null,Bu(t),Il=null,Jn=0;var i=t.return;try{if(hb(e,i,t,a,he)){qe=1,Ci(e,Bt(a,e.current)),fe=null;return}}catch(u){if(i!==null)throw fe=i,u;qe=1,Ci(e,Bt(a,e.current)),fe=null;return}t.flags&32768?(pe||l===1?e=!0:sn||(he&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),_h(t,e)):Hi(t)}function Hi(e){var t=e;do{if((t.flags&32768)!==0){_h(t,Qa);return}e=t.return;var a=pb(t.alternate,t,ya);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);qe===0&&(qe=5)}function _h(e,t){do{var a=xb(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);qe=6,fe=null}function Lh(e,t,a,l,i,u,f,p,w){e.cancelPendingCommit=null;do qi();while(We!==0);if((Se&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=fu,ng(e,a,u,f,p,w),e===Te&&(fe=Te=null,he=0),un=t,Ga=e,wa=a,bc=u,yc=i,Nh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Mb(Vs,function(){return qh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,i=q.p,q.p=2,f=Se,Se|=4;try{gb(e,t,a)}finally{Se=f,q.p=i,T.T=l}}We=1,kh(),Uh(),Bh()}}function kh(){if(We===1){We=0;var e=Ga,t=un,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null;var l=q.p;q.p=2;var i=Se;Se|=4;try{ph(t,e);var u=Lc,f=jd(e.containerInfo),p=u.focusedElem,w=u.selectionRange;if(f!==p&&p&&p.ownerDocument&&wd(p.ownerDocument.documentElement,p)){if(w!==null&&iu(p)){var M=w.start,L=w.end;if(L===void 0&&(L=M),"selectionStart"in p)p.selectionStart=M,p.selectionEnd=Math.min(L,p.value.length);else{var B=p.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var D=z.getSelection(),J=p.textContent.length,ee=Math.min(w.start,J),Me=w.end===void 0?ee:Math.min(w.end,J);!D.extend&&ee>Me&&(f=Me,Me=ee,ee=f);var C=yd(p,ee),j=yd(p,Me);if(C&&j&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==j.node||D.focusOffset!==j.offset)){var O=B.createRange();O.setStart(C.node,C.offset),D.removeAllRanges(),ee>Me?(D.addRange(O),D.extend(j.node,j.offset)):(O.setEnd(j.node,j.offset),D.addRange(O))}}}}for(B=[],D=p;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var k=B[p];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Ii=!!_c,Lc=_c=null}finally{Se=i,q.p=l,T.T=a}}e.current=t,We=2}}function Uh(){if(We===2){We=0;var e=Ga,t=un,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=T.T,T.T=null;var l=q.p;q.p=2;var i=Se;Se|=4;try{fh(e,t.alternate,t)}finally{Se=i,q.p=l,T.T=a}}We=3}}function Bh(){if(We===4||We===3){We=0,Jx();var e=Ga,t=un,a=wa,l=Nh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,un=Ga=null,Hh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ya=null),Qr(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Tn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=T.T,i=q.p,q.p=2,T.T=null;try{for(var u=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];u(p.value,{componentStack:p.stack})}}finally{T.T=t,q.p=i}}(wa&3)!==0&&qi(),ea(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===wc?ds++:(ds=0,wc=e):ds=0,hs(0)}}function Hh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kn(t)))}function qi(){return kh(),Uh(),Bh(),qh()}function qh(){if(We!==5)return!1;var e=Ga,t=bc;bc=0;var a=Qr(wa),l=T.T,i=q.p;try{q.p=32>a?32:a,T.T=null,a=yc,yc=null;var u=Ga,f=wa;if(We=0,un=Ga=null,wa=0,(Se&6)!==0)throw Error(o(331));var p=Se;if(Se|=4,wh(u.current),gh(u,u.current,f,a),Se=p,hs(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Tn,u)}catch{}return!0}finally{q.p=i,T.T=l,Hh(e,t)}}function Qh(e,t,a){t=Bt(a,t),t=Pu(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Dn(e,2),ea(e))}function Ce(e,t,a){if(e.tag===3)Qh(e,e,a);else for(;t!==null;){if(t.tag===3){Qh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ya===null||!Ya.has(l))){e=Bt(a,e),a=V0(2),l=Ua(t,a,2),l!==null&&(Y0(a,l,t,e),Dn(l,2),ea(l));break}}t=t.return}}function Nc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new wb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(pc=!0,i.add(a),e=Cb.bind(null,e,t,a),t.then(e,e))}function Cb(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Te===e&&(he&a)===a&&(qe===4||qe===3&&(he&62914560)===he&&300>St()-_i?(Se&2)===0&&cn(e,0):xc|=a,rn===he&&(rn=0)),ea(e)}function Vh(e,t){t===0&&(t=kf()),e=dl(e,t),e!==null&&(Dn(e,t),ea(e))}function Ab(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Vh(e,a)}function Ob(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Vh(e,a)}function Mb(e,t){return Ur(e,t)}var Qi=null,fn=null,Ec=!1,Vi=!1,Cc=!1,Xa=0;function ea(e){e!==fn&&e.next===null&&(fn===null?Qi=fn=e:fn=fn.next=e),Vi=!0,Ec||(Ec=!0,Tb())}function hs(e,t){if(!Cc&&Vi){Cc=!0;do for(var a=!1,l=Qi;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var f=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-Et(42|e)+1)-1,u&=i&~(f&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Xh(l,u))}else u=he,u=Xs(l,l===Te?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Rn(l,u)||(a=!0,Xh(l,u));l=l.next}while(a);Cc=!1}}function zb(){Yh()}function Yh(){Vi=Ec=!1;var e=0;Xa!==0&&Qb()&&(e=Xa);for(var t=St(),a=null,l=Qi;l!==null;){var i=l.next,u=Gh(l,t);u===0?(l.next=null,a===null?Qi=i:a.next=i,i===null&&(fn=a)):(a=l,(e!==0||(u&3)!==0)&&(Vi=!0)),l=i}We!==0&&We!==5||hs(e),Xa!==0&&(Xa=0)}function Gh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Et(u),p=1<<f,w=i[f];w===-1?((p&a)===0||(p&l)!==0)&&(i[f]=lg(p,t)):w<=t&&(e.expiredLanes|=p),u&=~p}if(t=Te,a=he,a=Xs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Br(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Rn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Br(l),Qr(a)){case 2:case 8:a=_f;break;case 32:a=Vs;break;case 268435456:a=Lf;break;default:a=Vs}return l=Zh.bind(null,e),a=Ur(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Br(l),e.callbackPriority=2,e.callbackNode=null,2}function Zh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qi()&&e.callbackNode!==a)return null;var l=he;return l=Xs(e,e===Te?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ch(e,l,t),Gh(e,St()),e.callbackNode!=null&&e.callbackNode===a?Zh.bind(null,e):null)}function Xh(e,t){if(qi())return null;Ch(e,t,!0)}function Tb(){Yb(function(){(Se&6)!==0?Ur(Df,zb):Yh()})}function Ac(){if(Xa===0){var e=Jl;e===0&&(e=Ys,Ys<<=1,(Ys&261888)===0&&(Ys=256)),Xa=e}return Xa}function Kh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fs(""+e)}function $h(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Rb(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var u=Kh((i[vt]||null).action),f=l.submitter;f&&(t=(t=f[vt]||null)?Kh(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var p=new ei("action","action",null,l,i);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xa!==0){var w=f?$h(i,f):new FormData(i);Ku(a,{pending:!0,data:w,method:i.method,action:u},null,w)}}else typeof u=="function"&&(p.preventDefault(),w=f?$h(i,f):new FormData(i),Ku(a,{pending:!0,data:w,method:i.method,action:u},u,w))},currentTarget:i}]})}}for(var Oc=0;Oc<ou.length;Oc++){var Mc=ou[Oc],Db=Mc.toLowerCase(),_b=Mc[0].toUpperCase()+Mc.slice(1);Xt(Db,"on"+_b)}Xt(Ed,"onAnimationEnd"),Xt(Cd,"onAnimationIteration"),Xt(Ad,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Fg,"onTransitionRun"),Xt(Wg,"onTransitionStart"),Xt(Ig,"onTransitionCancel"),Xt(Od,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ms));function Jh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],w=p.instance,M=p.currentTarget;if(p=p.listener,w!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=M;try{u(i)}catch(L){li(L)}i.currentTarget=null,u=w}else for(f=0;f<l.length;f++){if(p=l[f],w=p.instance,M=p.currentTarget,p=p.listener,w!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=M;try{u(i)}catch(L){li(L)}i.currentTarget=null,u=w}}}}function de(e,t){var a=t[Vr];a===void 0&&(a=t[Vr]=new Set);var l=e+"__bubble";a.has(l)||(Fh(t,e,2,!1),a.add(l))}function zc(e,t,a){var l=0;t&&(l|=4),Fh(a,e,l,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function Tc(e){if(!e[Yi]){e[Yi]=!0,Yf.forEach(function(a){a!=="selectionchange"&&(Lb.has(a)||zc(a,!1,e),zc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,zc("selectionchange",!1,t))}}function Fh(e,t,a,l){switch(Em(t)){case 2:var i=c2;break;case 8:i=o2;break;default:i=Xc}a=i.bind(null,t,a,e),i=void 0,!Wr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Rc(e,t,a,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=l.return;f!==null;){var w=f.tag;if((w===3||w===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=Rl(p),f===null)return;if(w=f.tag,w===5||w===6||w===26||w===27){l=u=f;continue e}p=p.parentNode}}l=l.return}td(function(){var M=u,L=Jr(a),B=[];e:{var z=Md.get(e);if(z!==void 0){var D=ei,J=e;switch(e){case"keypress":if(Is(a)===0)break e;case"keydown":case"keyup":D=Og;break;case"focusin":J="focus",D=tu;break;case"focusout":J="blur",D=tu;break;case"beforeblur":case"afterblur":D=tu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=pg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Tg;break;case Ed:case Cd:case Ad:D=bg;break;case Od:D=Dg;break;case"scroll":case"scrollend":D=mg;break;case"wheel":D=Lg;break;case"copy":case"cut":case"paste":D=wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=id;break;case"toggle":case"beforetoggle":D=Ug}var ee=(t&4)!==0,Me=!ee&&(e==="scroll"||e==="scrollend"),C=ee?z!==null?z+"Capture":null:z;ee=[];for(var j=M,O;j!==null;){var k=j;if(O=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||O===null||C===null||(k=kn(j,C),k!=null&&ee.push(vs(j,k,O))),Me)break;j=j.return}0<ee.length&&(z=new D(z,J,null,a,L),B.push({event:z,listeners:ee}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",z&&a!==$r&&(J=a.relatedTarget||a.fromElement)&&(Rl(J)||J[Tl]))break e;if((D||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,D?(J=a.relatedTarget||a.toElement,D=M,J=J?Rl(J):null,J!==null&&(Me=m(J),ee=J.tag,J!==Me||ee!==5&&ee!==27&&ee!==6)&&(J=null)):(D=null,J=M),D!==J)){if(ee=nd,k="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ee=id,k="onPointerLeave",C="onPointerEnter",j="pointer"),Me=D==null?z:Ln(D),O=J==null?z:Ln(J),z=new ee(k,j+"leave",D,a,L),z.target=Me,z.relatedTarget=O,k=null,Rl(L)===M&&(ee=new ee(C,j+"enter",J,a,L),ee.target=O,ee.relatedTarget=Me,k=ee),Me=k,D&&J)t:{for(ee=kb,C=D,j=J,O=0,k=C;k;k=ee(k))O++;k=0;for(var I=j;I;I=ee(I))k++;for(;0<O-k;)C=ee(C),O--;for(;0<k-O;)j=ee(j),k--;for(;O--;){if(C===j||j!==null&&C===j.alternate){ee=C;break t}C=ee(C),j=ee(j)}ee=null}else ee=null;D!==null&&Wh(B,z,D,ee,!1),J!==null&&Me!==null&&Wh(B,Me,J,ee,!0)}}e:{if(z=M?Ln(M):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var be=md;else if(dd(z))if(vd)be=Kg;else{be=Zg;var W=Gg}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&Kr(M.elementType)&&(be=md):be=Xg;if(be&&(be=be(e,M))){hd(B,be,a,L);break e}W&&W(e,z,M),e==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&Xr(z,"number",z.value)}switch(W=M?Ln(M):window,e){case"focusin":(dd(W)||W.contentEditable==="true")&&(Ql=W,ru=M,Gn=null);break;case"focusout":Gn=ru=Ql=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,Sd(B,a,L);break;case"selectionchange":if(Jg)break;case"keydown":case"keyup":Sd(B,a,L)}var ie;if(lu)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else ql?od(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(rd&&a.locale!=="ko"&&(ql||me!=="onCompositionStart"?me==="onCompositionEnd"&&ql&&(ie=ad()):(za=L,Ir="value"in za?za.value:za.textContent,ql=!0)),W=Gi(M,me),0<W.length&&(me=new sd(me,e,null,a,L),B.push({event:me,listeners:W}),ie?me.data=ie:(ie=fd(a),ie!==null&&(me.data=ie)))),(ie=Hg?qg(e,a):Qg(e,a))&&(me=Gi(M,"onBeforeInput"),0<me.length&&(W=new sd("onBeforeInput","beforeinput",null,a,L),B.push({event:W,listeners:me}),W.data=ie)),Rb(B,e,M,a,L)}Jh(B,t)})}function vs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Gi(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=kn(e,a),i!=null&&l.unshift(vs(e,i,u)),i=kn(e,t),i!=null&&l.push(vs(e,i,u))),e.tag===3)return l;e=e.return}return[]}function kb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wh(e,t,a,l,i){for(var u=t._reactName,f=[];a!==null&&a!==l;){var p=a,w=p.alternate,M=p.stateNode;if(p=p.tag,w!==null&&w===l)break;p!==5&&p!==26&&p!==27||M===null||(w=M,i?(M=kn(a,u),M!=null&&f.unshift(vs(a,M,w))):i||(M=kn(a,u),M!=null&&f.push(vs(a,M,w)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Ub=/\r\n?/g,Bb=/\u0000|\uFFFD/g;function Ih(e){return(typeof e=="string"?e:""+e).replace(Ub,`
9
- `).replace(Bb,"")}function Ph(e,t){return t=Ih(t),Ih(e)===t}function Oe(e,t,a,l,i,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ul(e,""+l);break;case"className":$s(e,"class",l);break;case"tabIndex":$s(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":$s(e,a,l);break;case"style":Pf(e,l,u);break;case"data":if(t!=="object"){$s(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Fs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":de("beforetoggle",e),de("toggle",e),Ks(e,"popover",l);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ks(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=dg.get(a)||a,Ks(e,a,l))}}function Dc(e,t,a,l,i,u){switch(a){case"style":Pf(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&Ul(e,""+l);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[vt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ks(e,a,l)}}}function it(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var l=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,u,f,a,null)}}i&&Oe(e,t,"srcSet",a.srcSet,a,null),l&&Oe(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var p=u=f=i=null,w=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var L=a[l];if(L!=null)switch(l){case"name":i=L;break;case"type":f=L;break;case"checked":w=L;break;case"defaultChecked":M=L;break;case"value":u=L;break;case"defaultValue":p=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Oe(e,t,l,L,a,null)}}Jf(e,u,p,w,M,f,i,!1);return;case"select":de("invalid",e),l=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(p=a[i],p!=null))switch(i){case"value":u=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Oe(e,t,i,p,a,null)}t=u,a=f,e.multiple=!!l,t!=null?kl(e,!!l,t,!1):a!=null&&kl(e,!!l,a,!0);return;case"textarea":de("invalid",e),u=i=l=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":i=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Oe(e,t,f,p,a,null)}Wf(e,l,i,u);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Oe(e,t,w,l,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(l=0;l<ms.length;l++)de(ms[l],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,M,l,a,null)}return;default:if(Kr(t)){for(L in a)a.hasOwnProperty(L)&&(l=a[L],l!==void 0&&Dc(e,t,L,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Oe(e,t,p,l,a,null))}function Hb(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,p=null,w=null,M=null,L=null;for(D in a){var B=a[D];if(a.hasOwnProperty(D)&&B!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":w=B;default:l.hasOwnProperty(D)||Oe(e,t,D,null,l,B)}}for(var z in l){var D=l[z];if(B=a[z],l.hasOwnProperty(z)&&(D!=null||B!=null))switch(z){case"type":u=D;break;case"name":i=D;break;case"checked":M=D;break;case"defaultChecked":L=D;break;case"value":f=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:D!==B&&Oe(e,t,z,D,l,B)}}Zr(e,f,p,w,M,L,u,i);return;case"select":D=f=p=z=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":D=w;default:l.hasOwnProperty(u)||Oe(e,t,u,null,l,w)}for(i in l)if(u=l[i],w=a[i],l.hasOwnProperty(i)&&(u!=null||w!=null))switch(i){case"value":z=u;break;case"defaultValue":p=u;break;case"multiple":f=u;default:u!==w&&Oe(e,t,i,u,l,w)}t=p,a=f,l=D,z!=null?kl(e,!!a,z,!1):!!l!=!!a&&(t!=null?kl(e,!!a,t,!0):kl(e,!!a,a?[]:"",!1));return;case"textarea":D=z=null;for(p in a)if(i=a[p],a.hasOwnProperty(p)&&i!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Oe(e,t,p,null,l,i)}for(f in l)if(i=l[f],u=a[f],l.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":z=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Oe(e,t,f,i,l,u)}Ff(e,z,D);return;case"option":for(var J in a)if(z=a[J],a.hasOwnProperty(J)&&z!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Oe(e,t,J,null,l,z)}for(w in l)if(z=l[w],D=a[w],l.hasOwnProperty(w)&&z!==D&&(z!=null||D!=null))switch(w){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Oe(e,t,w,z,l,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ee in a)z=a[ee],a.hasOwnProperty(ee)&&z!=null&&!l.hasOwnProperty(ee)&&Oe(e,t,ee,null,l,z);for(M in l)if(z=l[M],D=a[M],l.hasOwnProperty(M)&&z!==D&&(z!=null||D!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Oe(e,t,M,z,l,D)}return;default:if(Kr(t)){for(var Me in a)z=a[Me],a.hasOwnProperty(Me)&&z!==void 0&&!l.hasOwnProperty(Me)&&Dc(e,t,Me,void 0,l,z);for(L in l)z=l[L],D=a[L],!l.hasOwnProperty(L)||z===D||z===void 0&&D===void 0||Dc(e,t,L,z,l,D);return}}for(var C in a)z=a[C],a.hasOwnProperty(C)&&z!=null&&!l.hasOwnProperty(C)&&Oe(e,t,C,null,l,z);for(B in l)z=l[B],D=a[B],!l.hasOwnProperty(B)||z===D||z==null&&D==null||Oe(e,t,B,z,l,D)}function em(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],u=i.transferSize,f=i.initiatorType,p=i.duration;if(u&&p&&em(f)){for(f=0,p=i.responseEnd,l+=1;l<a.length;l++){var w=a[l],M=w.startTime;if(M>p)break;var L=w.transferSize,B=w.initiatorType;L&&em(B)&&(w=w.responseEnd,f+=L*(w<p?1:(p-M)/(w-M)))}if(--l,t+=8*(u+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,Lc=null;function Zi(e){return e.nodeType===9?e:e.ownerDocument}function tm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function am(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uc=null;function Qb(){var e=window.event;return e&&e.type==="popstate"?e===Uc?!1:(Uc=e,!0):(Uc=null,!1)}var lm=typeof setTimeout=="function"?setTimeout:void 0,Vb=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,Yb=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(Gb)}:lm;function Gb(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function sm(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),vn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ps(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ps(a);for(var u=a.firstChild;u;){var f=u.nextSibling,p=u.nodeName;u[_n]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&ps(e.ownerDocument.body);a=i}while(a);vn(t)}function im(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bc(a),Yr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Zb(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[_n])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function Xb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Hc(e){return e.data==="$?"||e.data==="$~"}function qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Kb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Qc=null;function um(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function cm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function om(e,t,a){switch(t=Zi(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yr(e)}var Gt=new Map,fm=new Set;function Xi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=q.d;q.d={f:$b,r:Jb,D:Fb,C:Wb,L:Ib,m:Pb,X:t2,S:e2,M:a2};function $b(){var e=ja.f(),t=Ui();return e||t}function Jb(e){var t=Dl(e);t!==null&&t.tag===5&&t.type==="form"?O0(t):ja.r(e)}var dn=typeof document>"u"?null:document;function dm(e,t,a){var l=dn;if(l&&typeof t=="string"&&t){var i=kt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),fm.has(i)||(fm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),it(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Fb(e){ja.D(e),dm("dns-prefetch",e,null)}function Wb(e,t){ja.C(e,t),dm("preconnect",e,t)}function Ib(e,t,a){ja.L(e,t,a);var l=dn;if(l&&e&&t){var i='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+kt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+kt(a.imageSizes)+'"]')):i+='[href="'+kt(e)+'"]';var u=i;switch(t){case"style":u=hn(e);break;case"script":u=mn(e)}Gt.has(u)||(e=E({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(xs(u))||t==="script"&&l.querySelector(gs(u))||(t=l.createElement("link"),it(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Pb(e,t){ja.m(e,t);var a=dn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+kt(l)+'"][href="'+kt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=mn(e)}if(!Gt.has(u)&&(e=E({rel:"modulepreload",href:e},t),Gt.set(u,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gs(u)))return}l=a.createElement("link"),it(l,"link",e),Pe(l),a.head.appendChild(l)}}}function e2(e,t,a){ja.S(e,t,a);var l=dn;if(l&&e){var i=_l(l).hoistableStyles,u=hn(e);t=t||"default";var f=i.get(u);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(xs(u)))p.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(u))&&Vc(e,a);var w=f=l.createElement("link");Pe(w),it(w,"link",e),w._p=new Promise(function(M,L){w.onload=M,w.onerror=L}),w.addEventListener("load",function(){p.loading|=1}),w.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Ki(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(u,f)}}}function t2(e,t){ja.X(e,t);var a=dn;if(a&&e){var l=_l(a).hoistableScripts,i=mn(e),u=l.get(i);u||(u=a.querySelector(gs(i)),u||(e=E({src:e,async:!0},t),(t=Gt.get(i))&&Yc(e,t),u=a.createElement("script"),Pe(u),it(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function a2(e,t){ja.M(e,t);var a=dn;if(a&&e){var l=_l(a).hoistableScripts,i=mn(e),u=l.get(i);u||(u=a.querySelector(gs(i)),u||(e=E({src:e,async:!0,type:"module"},t),(t=Gt.get(i))&&Yc(e,t),u=a.createElement("script"),Pe(u),it(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function hm(e,t,a,l){var i=(i=re.current)?Xi(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=hn(a.href),a=_l(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=hn(a.href);var u=_l(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(xs(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Gt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gt.set(e,a),u||l2(i,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=mn(a),a=_l(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function hn(e){return'href="'+kt(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function mm(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function l2(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),Pe(t),e.head.appendChild(t))}function mn(e){return'[src="'+kt(e)+'"]'}function gs(e){return"script[async]"+e}function vm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+kt(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var i=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),it(l,"style",i),Ki(l,a.precedence,e),t.instance=l;case"stylesheet":i=hn(a.href);var u=e.querySelector(xs(i));if(u)return t.state.loading|=4,t.instance=u,Pe(u),u;l=mm(a),(i=Gt.get(i))&&Vc(l,i),u=(e.ownerDocument||e).createElement("link"),Pe(u);var f=u;return f._p=new Promise(function(p,w){f.onload=p,f.onerror=w}),it(u,"link",l),t.state.loading|=4,Ki(u,a.precedence,e),t.instance=u;case"script":return u=mn(a.src),(i=e.querySelector(gs(u)))?(t.instance=i,Pe(i),i):(l=a,(i=Gt.get(u))&&(l=E({},a),Yc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Pe(i),it(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ki(l,a.precedence,e));return t.instance}function Ki(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)u=p;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $i=null;function pm(e,t,a){if($i===null){var l=new Map,i=$i=new Map;i.set(a,l)}else i=$i,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[_n]||u[at]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(u):l.set(f,[u])}}return l}function xm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function n2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function s2(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=hn(l.href),u=t.querySelector(xs(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ji.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Pe(u);return}u=t.ownerDocument||t,l=mm(l),(i=Gt.get(i))&&Vc(l,i),u=u.createElement("link"),Pe(u);var f=u;f._p=new Promise(function(p,w){f.onload=p,f.onerror=w}),it(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ji.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Gc=0;function i2(e,t){return e.stylesheets&&e.count===0&&Wi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Wi(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Gc===0&&(Gc=62500*qb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wi(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Gc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Ji(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fi=null;function Wi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fi=new Map,t.forEach(r2,e),Fi=null,Ji.call(e))}function r2(e,t){if(!(t.state.loading&4)){var a=Fi.get(e);if(a)var l=a.get(null);else{a=new Map,Fi.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||l,u===l&&a.set(null,i),a.set(f,i),this.count++,l=Ji.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var bs={$$typeof:F,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function u2(e,t,a,l,i,u,f,p,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hr(0),this.hiddenUpdates=Hr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function bm(e,t,a,l,i,u,f,p,w,M,L,B){return e=new u2(e,t,a,f,w,M,L,B,p),t=1,u===!0&&(t|=24),u=At(3,null,null,t),e.current=u,u.stateNode=e,t=Su(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Au(u),e}function ym(e){return e?(e=Gl,e):Gl}function wm(e,t,a,l,i,u){i=ym(i),l.context===null?l.context=i:l.pendingContext=i,l=ka(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Ua(e,l,t),a!==null&&(wt(a,e,t),Wn(a,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Zc(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Sm(e){if(e.tag===13||e.tag===31){var t=dl(e,67108864);t!==null&&wt(t,e,67108864),Zc(e,67108864)}}function Nm(e){if(e.tag===13||e.tag===31){var t=Rt();t=qr(t);var a=dl(e,t);a!==null&&wt(a,e,t),Zc(e,t)}}var Ii=!0;function c2(e,t,a,l){var i=T.T;T.T=null;var u=q.p;try{q.p=2,Xc(e,t,a,l)}finally{q.p=u,T.T=i}}function o2(e,t,a,l){var i=T.T;T.T=null;var u=q.p;try{q.p=8,Xc(e,t,a,l)}finally{q.p=u,T.T=i}}function Xc(e,t,a,l){if(Ii){var i=Kc(l);if(i===null)Rc(e,t,l,Pi,a),Cm(e,l);else if(d2(i,e,t,a,l))l.stopPropagation();else if(Cm(e,l),t&4&&-1<f2.indexOf(e)){for(;i!==null;){var u=Dl(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=rl(u.pendingLanes);if(f!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var w=1<<31-Et(f);p.entanglements[1]|=w,f&=~w}ea(u),(Se&6)===0&&(Li=St()+500,hs(0))}}break;case 31:case 13:p=dl(u,2),p!==null&&wt(p,u,2),Ui(),Zc(u,2)}if(u=Kc(l),u===null&&Rc(e,t,l,Pi,a),u===i)break;i=u}i!==null&&l.stopPropagation()}else Rc(e,t,l,null,a)}}function Kc(e){return e=Jr(e),$c(e)}var Pi=null;function $c(e){if(Pi=null,e=Rl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pi=e,null}function Em(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fx()){case Df:return 2;case _f:return 8;case Vs:case Wx:return 32;case Lf:return 268435456;default:return 32}default:return 32}}var Jc=!1,$a=null,Ja=null,Fa=null,ys=new Map,ws=new Map,Wa=[],f2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Cm(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(t.pointerId)}}function js(e,t,a,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Dl(t),t!==null&&Sm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function d2(e,t,a,l,i){switch(t){case"focusin":return $a=js($a,e,t,a,l,i),!0;case"dragenter":return Ja=js(Ja,e,t,a,l,i),!0;case"mouseover":return Fa=js(Fa,e,t,a,l,i),!0;case"pointerover":var u=i.pointerId;return ys.set(u,js(ys.get(u)||null,e,t,a,l,i)),!0;case"gotpointercapture":return u=i.pointerId,ws.set(u,js(ws.get(u)||null,e,t,a,l,i)),!0}return!1}function Am(e){var t=Rl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Qf(e.priority,function(){Nm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Qf(e.priority,function(){Nm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Kc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);$r=l,a.target.dispatchEvent(l),$r=null}else return t=Dl(a),t!==null&&Sm(t),e.blockedOn=a,!1;t.shift()}return!0}function Om(e,t,a){er(e)&&a.delete(t)}function h2(){Jc=!1,$a!==null&&er($a)&&($a=null),Ja!==null&&er(Ja)&&(Ja=null),Fa!==null&&er(Fa)&&(Fa=null),ys.forEach(Om),ws.forEach(Om)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,h2)))}var ar=null;function Mm(e){ar!==e&&(ar=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ar===e&&(ar=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if($c(l||a)===null)continue;break}var u=Dl(a);u!==null&&(e.splice(t,3),t-=3,Ku(u,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function vn(e){function t(w){return tr(w,e)}$a!==null&&tr($a,e),Ja!==null&&tr(Ja,e),Fa!==null&&tr(Fa,e),ys.forEach(t),ws.forEach(t);for(var a=0;a<Wa.length;a++){var l=Wa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Wa.length&&(a=Wa[0],a.blockedOn===null);)Am(a),a.blockedOn===null&&Wa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],u=a[l+1],f=i[vt]||null;if(typeof u=="function")f||Mm(a);else if(f){var p=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[vt]||null)p=f.formAction;else if($c(i)!==null)continue}else p=f.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Mm(a)}}}function zm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Fc(e){this._internalRoot=e}lr.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Rt();wm(a,l,e,t,null,null)},lr.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wm(e.current,2,null,e,null,null),Ui(),t[Tl]=null}};function lr(e){this._internalRoot=e}lr.prototype.unstable_scheduleHydration=function(e){if(e){var t=qf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Wa.length&&t!==0&&t<Wa[a].priority;a++);Wa.splice(a,0,e),a===0&&Am(e)}};var Tm=s.version;if(Tm!=="19.2.4")throw Error(o(527,Tm,"19.2.4"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var m2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nr.isDisabled&&nr.supportsFiber)try{Tn=nr.inject(m2),Nt=nr}catch{}}return bn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var a=!1,l="",i=B0,u=H0,f=q0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=bm(e,1,!1,null,null,a,l,null,i,u,f,zm),e[Tl]=t.current,Tc(e),new Fc(t)},bn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(o(299));var l=!1,i="",u=B0,f=H0,p=q0,w=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=bm(e,1,!0,t,a??null,l,i,w,u,f,p,zm),t.context=ym(null),a=t.current,l=Rt(),l=qr(l),i=ka(l),i.callback=null,Ua(a,i,l),a=l,t.current.lanes=a,Dn(t,a),ea(t),e[Tl]=t.current,Tc(e),new lr(t)},bn.version="19.2.4",bn}var zo;function Sv(){if(zo)return gr.exports;zo=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),gr.exports=jv(),gr.exports}var Nv=Sv();const Ev=Wc(Nv);function Cv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const Av=h.forwardRef(Cv);function Ov({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Mv=h.forwardRef(Ov);function zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Cl=h.forwardRef(zv);function Tv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Rv=h.forwardRef(Tv);function Dv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const _v=h.forwardRef(Dv);function Lv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const To=h.forwardRef(Lv);function kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))}const Uv=h.forwardRef(kv);function Bv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}const Hv=h.forwardRef(Bv);function qv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Qv=h.forwardRef(qv);function Vv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Yv=h.forwardRef(Vv);function Gv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Zv=h.forwardRef(Gv);function Xv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const Kv=h.forwardRef(Xv);function $v({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Jv=h.forwardRef($v);function Fv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const aa=h.forwardRef(Fv);function Wv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const As=h.forwardRef(Wv);function Iv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const yn=h.forwardRef(Iv);function Pv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const e1=h.forwardRef(Pv);function t1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Al=h.forwardRef(t1);function a1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const l1=h.forwardRef(a1);function n1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Os=h.forwardRef(n1);function s1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const i1=h.forwardRef(s1);function r1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const u1=h.forwardRef(r1);function c1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const wn=h.forwardRef(c1);function o1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))}const Ro=h.forwardRef(o1);function f1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const Ms=h.forwardRef(f1);function d1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5h3m-6.75 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-15a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 4.5v15a2.25 2.25 0 0 0 2.25 2.25Z"}))}const jr=h.forwardRef(d1);function h1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))}const m1=h.forwardRef(h1);function v1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const la=h.forwardRef(v1);function p1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const x1=h.forwardRef(p1);function g1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const Do=h.forwardRef(g1);function b1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const y1=h.forwardRef(b1);function w1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const _o=h.forwardRef(w1);function j1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Sr=h.forwardRef(j1);function S1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Lo=h.forwardRef(S1);function N1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const ko=h.forwardRef(N1);function E1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Uo=h.forwardRef(E1);function C1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const A1=h.forwardRef(C1);function O1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const Bo=h.forwardRef(O1);function M1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const z1=h.forwardRef(M1);function T1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Nr=h.forwardRef(T1);function R1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Ho=h.forwardRef(R1);function D1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const _1=h.forwardRef(D1);function L1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const k1=h.forwardRef(L1);function U1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const B1=h.forwardRef(U1);function H1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const q1=h.forwardRef(H1);function Q1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"}))}const V1=h.forwardRef(Q1);function Y1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const jn=h.forwardRef(Y1);function G1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Zt=h.forwardRef(G1);function Z1(n,s){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,d,m,v=[],g="",b=n.split("/");for(b[0]||b.shift();d=b.shift();)c=d[0],c==="*"?(v.push(c),g+=d[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=d.indexOf("?",1),m=d.indexOf(".",1),v.push(d.substring(1,~o?o:~m?m:d.length)),g+=~o&&!~m?"(?:/([^/]+?))?":"/([^/]+?)",~m&&(g+=(~o?"?":"")+"\\"+d.substring(m))):g+="/"+d;return{keys:v,pattern:new RegExp("^"+g+(s?"(?=$|/)":"/?$"),"i")}}var Er={exports:{}},Cr={};var qo;function X1(){if(qo)return Cr;qo=1;var n=Cs();function s(E,N){return E===N&&(E!==0||1/E===1/N)||E!==E&&N!==N}var c=typeof Object.is=="function"?Object.is:s,o=n.useState,d=n.useEffect,m=n.useLayoutEffect,v=n.useDebugValue;function g(E,N){var _=N(),A=o({inst:{value:_,getSnapshot:N}}),R=A[0].inst,Q=A[1];return m(function(){R.value=_,R.getSnapshot=N,b(R)&&Q({inst:R})},[E,_,N]),d(function(){return b(R)&&Q({inst:R}),E(function(){b(R)&&Q({inst:R})})},[E]),v(_),_}function b(E){var N=E.getSnapshot;E=E.value;try{var _=N();return!c(E,_)}catch{return!0}}function x(E,N){return N()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:g;return Cr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Cr}var Qo;function K1(){return Qo||(Qo=1,Er.exports=X1()),Er.exports}var $1=K1();const J1=iv.useInsertionEffect,F1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,W1=J1||F1,Vo=n=>{const s=h.useRef([n,(...c)=>s[0](...c)]).current;return W1(()=>{s[0]=n}),s[1]},I1="popstate",Ar="pushState",Or="replaceState",Yo=[I1,Ar,Or,"hashchange"],P1=n=>{for(const s of Yo)addEventListener(s,n);return()=>{for(const s of Yo)removeEventListener(s,n)}},Go=(n,s)=>$1.useSyncExternalStore(P1,n,s),Zo=()=>location.search,ep=({ssrSearch:n}={})=>Go(Zo,n!=null?()=>n:Zo),Xo=()=>location.pathname,tp=({ssrPath:n}={})=>Go(Xo,n!=null?()=>n:Xo),ap=(n,{replace:s=!1,state:c=null}={})=>history[s?Or:Ar](c,"",n),lp=(n={})=>[tp(n),ap],Ko=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ko]>"u"){for(const n of[Ar,Or]){const s=history[n];history[n]=function(){const c=s.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,Ko,{value:!0})}const np=(n,s)=>s.toLowerCase().indexOf(n.toLowerCase())?"~"+s:s.slice(n.length)||"/",$o=(n="")=>n==="/"?"":n,sp=(n,s)=>n[0]==="~"?n.slice(1):$o(s)+n,ip=(n="",s)=>np(Jo($o(n)),Jo(s)),Jo=n=>{try{return decodeURI(n)}catch{return n}},Fo={hook:lp,searchHook:ep,parser:Z1,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,s,c)=>n(s,c)},Wo=h.createContext(Fo),Ol=()=>h.useContext(Wo),Io={},Po=h.createContext(Io),rp=()=>h.useContext(Po),zs=n=>{const[s,c]=n.hook(n);return[ip(n.base,s),Vo((o,d)=>n.aroundNav(c,sp(o,n.base),d))]},Ts=()=>zs(Ol()),Mr=(n,s,c,o)=>{const{pattern:d,keys:m}=s instanceof RegExp?{keys:!1,pattern:s}:n(s||"*",o),v=d.exec(c)||[],[g,...b]=v;return g!==void 0?[!0,(()=>{const x=m!==!1?Object.fromEntries(m.map((E,N)=>[E,b[N]])):v.groups;let y={...b};return x&&Object.assign(y,x),y})(),...o?[g]:[]]:[!1,null]},up=n=>Mr(Ol().parser,n,Ts()[0]),cp=({children:n,...s})=>{const c=Ol(),o=s.hook?Fo:c;let d=o;const[m,v=s.ssrSearch??""]=s.ssrPath?.split("?")??[];m&&(s.ssrSearch=v,s.ssrPath=m),s.hrefs=s.hrefs??s.hook?.hrefs,s.searchHook=s.searchHook??s.hook?.searchHook;let g=h.useRef({}),b=g.current,x=b;for(let y in o){const E=y==="base"?o[y]+(s[y]??""):s[y]??o[y];b===x&&E!==x[y]&&(g.current=x={...x}),x[y]=E,(E!==o[y]||E!==d[y])&&(d=x)}return h.createElement(Wo.Provider,{value:d,children:n})},ef=({children:n,component:s},c)=>s?h.createElement(s,{params:c}):typeof n=="function"?n(c):n,op=n=>{let s=h.useRef(Io);const c=s.current;return s.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,d])=>d!==c[o])?n:c},Sn=({path:n,nest:s,match:c,...o})=>{const d=Ol(),[m]=zs(d),[v,g,b]=c??Mr(d.parser,n,m,s),x=op({...rp(),...g});if(!v)return null;const y=b?h.createElement(cp,{base:b},ef(o,x)):ef(o,x);return h.createElement(Po.Provider,{value:x,children:y})};h.forwardRef((n,s)=>{const c=Ol(),[o,d]=zs(c),{to:m="",href:v=m,onClick:g,asChild:b,children:x,className:y,replace:E,state:N,transition:_,...A}=n,R=Vo(H=>{H.ctrlKey||H.metaKey||H.altKey||H.shiftKey||H.button!==0||(g?.(H),H.defaultPrevented||(H.preventDefault(),d(v,n)))}),Q=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return b&&h.isValidElement(x)?h.cloneElement(x,{onClick:R,href:Q}):h.createElement("a",{...A,onClick:R,href:Q,className:y?.call?y(o===v):y,children:x,ref:s})});const tf=n=>Array.isArray(n)?n.flatMap(s=>tf(s&&s.type===h.Fragment?s.props.children:s)):[n],af=({children:n,location:s})=>{const c=Ol(),[o]=zs(c);for(const d of tf(n)){let m=0;if(h.isValidElement(d)&&(m=Mr(c.parser,d.props.path,s||o,d.props.nest))[0])return h.cloneElement(d,{match:m})}return null};async function ft(n,s={}){const c=await fetch(n,{...s,headers:{"Content-Type":"application/json",...s.headers}}),o=await c.json();if(!c.ok){const d=new Error(o.error||"Request failed");throw d.status=c.status,d.data=o,d}return o}const ll={async getReportData(){return ft("/api/report-data")},async acceptBaseline(n){return ft("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return ft("/api/baseline/accept-all",{method:"POST"})},async rejectBaseline(n){return ft("/api/baseline/reject",{method:"POST",body:JSON.stringify({id:n})})},async resetBaselines(){return ft("/api/baseline/reset",{method:"POST"})},async deleteComparison(n){return ft("/api/baseline/delete",{method:"POST",body:JSON.stringify({id:n})})},async downloadBaselines(n,s,c){return ft("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:s,projectSlug:c})})}},lf={async get(){return ft("/api/config")},async updateProject(n){return ft("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},zr={async getStatus(){return ft("/api/auth/status")},async initiateLogin(){return ft("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return ft("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return ft("/api/auth/logout",{method:"POST"})}},nf={async list(){return ft("/api/projects")},async getBuilds(n,s,c={}){const o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);const d=o.toString(),m=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(s)}/builds${d?`?${d}`:""}`;return ft(m)}},we={auth:["auth"],authStatus:()=>[...we.auth,"status"],config:["config"],projectConfig:()=>[...we.config,"project"],globalConfig:()=>[...we.config,"global"],tdd:["tdd"],reportData:()=>[...we.tdd,"report"],cloud:["cloud"],projects:()=>[...we.cloud,"projects"],builds:(n,s)=>[...we.cloud,"builds",n,s]};let nl={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected",ERROR:"error"};function fp(n={}){let s=n.enabled??!0;const c=_t(),o=h.useRef(null),d=h.useRef(0),m=h.useRef(null),[v,g]=h.useState(nl.DISCONNECTED),[b,x]=h.useState(null);return h.useEffect(()=>{if(!s){o.current&&(o.current.close(),o.current=null),g(nl.DISCONNECTED);return}const y=()=>{if(o.current&&o.current.readyState!==2)return;g(nl.CONNECTING),x(null);const E=new EventSource("/api/events");o.current=E,E.onopen=()=>{g(nl.CONNECTED),x(null),d.current=0},E.addEventListener("reportData",N=>{try{const _=JSON.parse(N.data);c.setQueryData(we.reportData(),_)}catch{}}),E.addEventListener("heartbeat",()=>{}),E.onerror=()=>{E.close(),o.current=null,g(nl.ERROR),x(new Error("SSE connection failed"));const N=d.current,_=Math.min(1e3*2**N,3e4);d.current=N+1,m.current=window.setTimeout(()=>{y()},_)}};return y(),()=>{m.current&&(clearTimeout(m.current),m.current=null),o.current&&(o.current.close(),o.current=null),g(nl.DISCONNECTED)}},[s,c]),{state:v,error:b}}function Rs(n={}){let{state:s}=fp({enabled:n.polling!==!1}),c=s===nl.CONNECTED;return gn({queryKey:we.reportData(),queryFn:ll.getReportData,refetchInterval:n.polling!==!1&&!c?2e3:!1,...n})}function sf(){const n=_t();return ta({mutationFn:s=>ll.acceptBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:we.reportData()});const c=n.getQueryData(we.reportData());return n.setQueryData(we.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"accepted"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(we.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:we.tdd})}})}function rf(){const n=_t();return ta({mutationFn:()=>ll.acceptAllBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:we.tdd})}})}function dp(){const n=_t();return ta({mutationFn:()=>ll.resetBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:we.tdd})}})}function uf(){const n=_t();return ta({mutationFn:s=>ll.rejectBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:we.reportData()});const c=n.getQueryData(we.reportData());return n.setQueryData(we.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"rejected"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(we.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:we.tdd})}})}function hp(){const n=_t();return ta({mutationFn:s=>ll.deleteComparison(s),onSuccess:()=>{n.invalidateQueries({queryKey:we.tdd})}})}function mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const vp=h.forwardRef(mp);function cf({variant:n="info",title:s,children:c,dismissible:o=!1,onDismiss:d,icon:m,className:v="",...g}){const b={success:{container:"bg-emerald-500/10 border-emerald-500/20",icon:"text-emerald-400",title:"text-emerald-300",text:"text-emerald-200/80",DefaultIcon:aa},warning:{container:"bg-amber-500/10 border-amber-500/20",icon:"text-amber-400",title:"text-amber-300",text:"text-amber-200/80",DefaultIcon:la},danger:{container:"bg-red-500/10 border-red-500/20",icon:"text-red-400",title:"text-red-300",text:"text-red-200/80",DefaultIcon:jn},info:{container:"bg-blue-500/10 border-blue-500/20",icon:"text-blue-400",title:"text-blue-300",text:"text-blue-200/80",DefaultIcon:Sr}},{container:x,icon:y,title:E,text:N,DefaultIcon:_}=b[n],A=m||_;return r.jsxs("div",{className:`flex gap-3 p-4 rounded-lg border ${x} ${v}`,...g,children:[r.jsx("div",{className:`flex-shrink-0 ${y}`,children:r.jsx(A,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[s&&r.jsx("h4",{className:`text-sm font-medium ${E}`,children:s}),c&&r.jsx("div",{className:`text-sm ${N} ${s?"mt-1":""}`,children:c})]}),o&&r.jsx("button",{onClick:d,className:`flex-shrink-0 ${y} hover:opacity-70 transition-opacity`,children:r.jsx(Zt,{className:"w-5 h-5"})})]})}function of({variant:n="approve",isActive:s=!1,onClick:c,disabled:o=!1,loading:d=!1,compact:m=!1,showLabel:v=!0,className:g="",testId:b}){const x={approve:{label:"Approve",icon:As,activeClasses:"bg-emerald-500 text-white shadow-lg shadow-emerald-500/20",inactiveClasses:"text-slate-400 hover:text-emerald-400 hover:bg-emerald-500/10",dotColor:"bg-emerald-500"},reject:{label:"Reject",icon:Zt,activeClasses:"bg-red-500 text-white shadow-lg shadow-red-500/20",inactiveClasses:"text-slate-400 hover:text-red-400 hover:bg-red-500/10",dotColor:"bg-red-500"}}[n],y=x.icon;let E=b||`btn-${n}`;return m?r.jsx("button",{onClick:c,disabled:o||d,className:`
8
+ `+l.stack}}var kr=Object.prototype.hasOwnProperty,Ur=n.unstable_scheduleCallback,Br=n.unstable_cancelCallback,Wx=n.unstable_shouldYield,Ix=n.unstable_requestPaint,St=n.unstable_now,Px=n.unstable_getCurrentPriorityLevel,_f=n.unstable_ImmediatePriority,Lf=n.unstable_UserBlockingPriority,Vs=n.unstable_NormalPriority,eg=n.unstable_LowPriority,kf=n.unstable_IdlePriority,tg=n.log,ag=n.unstable_setDisableYieldValue,zn=null,Nt=null;function Ma(e){if(typeof tg=="function"&&ag(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(zn,e)}catch{}}var Et=Math.clz32?Math.clz32:sg,lg=Math.log,ng=Math.LN2;function sg(e){return e>>>=0,e===0?32:31-(lg(e)/ng|0)|0}var Ys=256,Gs=262144,Zs=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xs(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?i=rl(l):(f&=p,f!==0?i=rl(f):a||(a=p&~e,a!==0&&(i=rl(a))))):(p=l&~u,p!==0?i=rl(p):f!==0?i=rl(f):a||(a=l&~e,a!==0&&(i=rl(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function Rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ig(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uf(){var e=Zs;return Zs<<=1,(Zs&62914560)===0&&(Zs=4194304),e}function Hr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Dn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rg(e,t,a,l,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,w=e.expirationTimes,T=e.hiddenUpdates;for(a=f&~a;0<a;){var _=31-Et(a),H=1<<_;p[_]=0,w[_]=-1;var z=T[_];if(z!==null)for(T[_]=null,_=0;_<z.length;_++){var D=z[_];D!==null&&(D.lane&=-536870913)}a&=~H}l!==0&&Bf(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Bf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Hf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function qf(e,t){var a=t&-t;return a=(a&42)!==0?1:qr(a),(a&(e.suspendedLanes|t))!==0?0:a}function qr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Qr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qf(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Cm(e.type))}function Vf(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var Ta=Math.random().toString(36).slice(2),at="__reactFiber$"+Ta,vt="__reactProps$"+Ta,Rl="__reactContainer$"+Ta,Vr="__reactEvents$"+Ta,ug="__reactListeners$"+Ta,cg="__reactHandles$"+Ta,Yf="__reactResources$"+Ta,_n="__reactMarker$"+Ta;function Yr(e){delete e[at],delete e[vt],delete e[Vr],delete e[ug],delete e[cg]}function Dl(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Rl]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[at])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function _l(e){if(e=e[at]||e[Rl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ln(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ll(e){var t=e[Yf];return t||(t=e[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[_n]=!0}var Gf=new Set,Zf={};function ul(e,t){kl(e,t),kl(e+"Capture",t)}function kl(e,t){for(Zf[e]=t,e=0;e<t.length;e++)Gf.add(t[e])}var og=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xf={},Kf={};function fg(e){return kr.call(Kf,e)?!0:kr.call(Xf,e)?!1:og.test(e)?Kf[e]=!0:(Xf[e]=!0,!1)}function Ks(e,t,a){if(fg(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function $s(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function sa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dg(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gr(e){if(!e._valueTracker){var t=$f(e)?"checked":"value";e._valueTracker=dg(e,t,""+e[t])}}function Jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=$f(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hg=/[\n"\\]/g;function kt(e){return e.replace(hg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zr(e,t,a,l,i,u,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Xr(e,f,Lt(t)):a!=null?Xr(e,f,Lt(a)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Lt(p):e.removeAttribute("name")}function Ff(e,t,a,l,i,u,f,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Gr(e);return}a=a!=null?""+Lt(a):"",t=t!=null?""+Lt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Gr(e)}function Xr(e,t,a){t==="number"&&Js(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ul(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Lt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wf(e,t,a){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Lt(a):""}function If(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(ue(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Lt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Gr(e)}function Bl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var mg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Pf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||mg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ed(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&Pf(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&Pf(e,u,t[u])}function Kr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fs(e){return pg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var $r=null;function Jr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,ql=null;function td(e){var t=_l(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[vt]||null;if(!i)throw Error(o(90));Zr(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Jf(l)}break e;case"textarea":Wf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ul(e,!!a.multiple,t,!1)}}}var Fr=!1;function ad(e,t,a){if(Fr)return e(t,a);Fr=!0;try{var l=e(t);return l}finally{if(Fr=!1,(Hl!==null||ql!==null)&&(Ui(),Hl&&(t=Hl,e=ql,ql=Hl=null,td(t),e)))for(t=0;t<e.length;t++)td(e[t])}}function kn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[vt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wr=!1;if(ra)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){Wr=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{Wr=!1}var za=null,Ir=null,Ws=null;function ld(){if(Ws)return Ws;var e,t=Ir,a=t.length,l,i="value"in za?za.value:za.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===i[u-l];l++);return Ws=i.slice(e,1<l?1-l:void 0)}function Is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ps(){return!0}function nd(){return!1}function pt(e){function t(a,l,i,u,f){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ps:nd,this.isPropagationStopped=nd,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ps)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ps)},persist:function(){},isPersistent:Ps}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ei=pt(cl),Bn=E({},cl,{view:0,detail:0}),xg=pt(Bn),Pr,eu,Hn,ti=E({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:au,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hn&&(Hn&&e.type==="mousemove"?(Pr=e.screenX-Hn.screenX,eu=e.screenY-Hn.screenY):eu=Pr=0,Hn=e),Pr)},movementY:function(e){return"movementY"in e?e.movementY:eu}}),sd=pt(ti),gg=E({},ti,{dataTransfer:0}),bg=pt(gg),yg=E({},Bn,{relatedTarget:0}),tu=pt(yg),wg=E({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),jg=pt(wg),Sg=E({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ng=pt(Sg),Eg=E({},cl,{data:0}),id=pt(Eg),Cg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Og={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Og[e])?!!t[e]:!1}function au(){return Mg}var Tg=E({},Bn,{key:function(e){if(e.key){var t=Cg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:au,charCode:function(e){return e.type==="keypress"?Is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zg=pt(Tg),Rg=E({},ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rd=pt(Rg),Dg=E({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:au}),_g=pt(Dg),Lg=E({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),kg=pt(Lg),Ug=E({},ti,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bg=pt(Ug),Hg=E({},cl,{newState:0,oldState:0}),qg=pt(Hg),Qg=[9,13,27,32],lu=ra&&"CompositionEvent"in window,qn=null;ra&&"documentMode"in document&&(qn=document.documentMode);var Vg=ra&&"TextEvent"in window&&!qn,ud=ra&&(!lu||qn&&8<qn&&11>=qn),cd=" ",od=!1;function fd(e,t){switch(e){case"keyup":return Qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function Yg(e,t){switch(e){case"compositionend":return dd(t);case"keypress":return t.which!==32?null:(od=!0,cd);case"textInput":return e=t.data,e===cd&&od?null:e;default:return null}}function Gg(e,t){if(Ql)return e==="compositionend"||!lu&&fd(e,t)?(e=ld(),Ws=Ir=za=null,Ql=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ud&&t.locale!=="ko"?null:t.data;default:return null}}var Zg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zg[e.type]:t==="textarea"}function md(e,t,a,l){Hl?ql?ql.push(l):ql=[l]:Hl=l,t=Gi(t,"onChange"),0<t.length&&(a=new ei("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Qn=null,Vn=null;function Xg(e){Fh(e,0)}function ai(e){var t=Ln(e);if(Jf(t))return e}function vd(e,t){if(e==="change")return t}var pd=!1;if(ra){var nu;if(ra){var su="oninput"in document;if(!su){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),su=typeof xd.oninput=="function"}nu=su}else nu=!1;pd=nu&&(!document.documentMode||9<document.documentMode)}function gd(){Qn&&(Qn.detachEvent("onpropertychange",bd),Vn=Qn=null)}function bd(e){if(e.propertyName==="value"&&ai(Vn)){var t=[];md(t,Vn,e,Jr(e)),ad(Xg,t)}}function Kg(e,t,a){e==="focusin"?(gd(),Qn=t,Vn=a,Qn.attachEvent("onpropertychange",bd)):e==="focusout"&&gd()}function $g(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai(Vn)}function Jg(e,t){if(e==="click")return ai(t)}function Fg(e,t){if(e==="input"||e==="change")return ai(t)}function Wg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Wg;function Yn(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!kr.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wd(e,t){var a=yd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=yd(a)}}function jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Js(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Js(e.document)}return t}function iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ig=ra&&"documentMode"in document&&11>=document.documentMode,Vl=null,ru=null,Gn=null,uu=!1;function Nd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;uu||Vl==null||Vl!==Js(l)||(l=Vl,"selectionStart"in l&&iu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gn&&Yn(Gn,l)||(Gn=l,l=Gi(ru,"onSelect"),0<l.length&&(t=new ei("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Vl)))}function ol(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Yl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},cu={},Ed={};ra&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete Yl.animationend.animation,delete Yl.animationiteration.animation,delete Yl.animationstart.animation),"TransitionEvent"in window||delete Yl.transitionend.transition);function fl(e){if(cu[e])return cu[e];if(!Yl[e])return e;var t=Yl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ed)return cu[e]=t[a];return e}var Cd=fl("animationend"),Ad=fl("animationiteration"),Od=fl("animationstart"),Pg=fl("transitionrun"),eb=fl("transitionstart"),tb=fl("transitioncancel"),Md=fl("transitionend"),Td=new Map,ou="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ou.push("scrollEnd");function Xt(e,t){Td.set(e,t),ul(t,[e])}var li=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Gl=0,fu=0;function ni(){for(var e=Gl,t=fu=Gl=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var u=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}u!==0&&zd(a,i,u)}}function si(e,t,a,l){Ut[Gl++]=e,Ut[Gl++]=t,Ut[Gl++]=a,Ut[Gl++]=l,fu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function du(e,t,a,l){return si(e,t,a,l),ii(e)}function dl(e,t){return si(e,null,null,t),ii(e)}function zd(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Et(a),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),u):null}function ii(e){if(50<ds)throw ds=0,wc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zl={};function ab(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new ab(e,t,a,l)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Rd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ri(e,t,a,l,i,u){var f=0;if(l=e,typeof e=="function")hu(e)&&(f=1);else if(typeof e=="string")f=r2(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=At(31,a,t,i),e.elementType=se,e.lanes=u,e;case O:return hl(a.children,i,u,t);case Q:f=8,i|=24;break;case U:return e=At(12,a,t,i|2),e.elementType=U,e.lanes=u,e;case ne:return e=At(13,a,t,i),e.elementType=ne,e.lanes=u,e;case he:return e=At(19,a,t,i),e.elementType=he,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:f=10;break e;case V:f=9;break e;case K:f=11;break e;case Y:f=14;break e;case P:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=At(f,a,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function hl(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function mu(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function Dd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function vu(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _d=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=_d.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Df(t)},_d.set(e,t),t)}return{value:e,source:t,stack:Df(t)}}var Xl=[],Kl=0,ui=null,Zn=0,Ht=[],qt=0,Ra=null,Wt=1,It="";function ca(e,t){Xl[Kl++]=Zn,Xl[Kl++]=ui,ui=e,Zn=t}function Ld(e,t,a){Ht[qt++]=Wt,Ht[qt++]=It,Ht[qt++]=Ra,Ra=e;var l=Wt;e=It;var i=32-Et(l)-1;l&=~(1<<i),a+=1;var u=32-Et(t)+i;if(30<u){var f=i-i%5;u=(l&(1<<f)-1).toString(32),l>>=f,i-=f,Wt=1<<32-Et(t)+i|a<<i|l,It=u+e}else Wt=1<<u|a<<i|l,It=e}function pu(e){e.return!==null&&(ca(e,1),Ld(e,1,0))}function xu(e){for(;e===ui;)ui=Xl[--Kl],Xl[Kl]=null,Zn=Xl[--Kl],Xl[Kl]=null;for(;e===Ra;)Ra=Ht[--qt],Ht[qt]=null,It=Ht[--qt],Ht[qt]=null,Wt=Ht[--qt],Ht[qt]=null}function kd(e,t){Ht[qt++]=Wt,Ht[qt++]=It,Ht[qt++]=Ra,Wt=t.id,It=t.overflow,Ra=e}var lt=null,Le=null,xe=!1,Da=null,Qt=!1,gu=Error(o(519));function _a(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xn(Bt(t,e)),gu}function Ud(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[at]=e,t[vt]=l,a){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(a=0;a<ms.length;a++)fe(ms[a],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),Ff(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),If(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||em(t.textContent,a)?(l.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),l.onScroll!=null&&fe("scroll",t),l.onScrollEnd!=null&&fe("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||_a(e,!0)}function Bd(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:lt=lt.return}}function $l(e){if(e!==lt)return!1;if(!xe)return Bd(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||kc(e.type,e.memoizedProps)),a=!a),a&&Le&&_a(e),Bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=cm(e)}else t===27?(t=Le,$a(e.type)?(e=Qc,Qc=null,Le=e):Le=t):Le=lt?Yt(e.stateNode.nextSibling):null;return!0}function ml(){Le=lt=null,xe=!1}function bu(){var e=Da;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Da=null),e}function Xn(e){Da===null?Da=[e]:Da.push(e)}var yu=S(null),vl=null,oa=null;function La(e,t,a){G(yu,t._currentValue),t._currentValue=a}function fa(e){e._currentValue=yu.current,B(yu)}function wu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ju(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=i;for(var w=0;w<t.length;w++)if(p.context===t[w]){u.lanes|=a,p=u.alternate,p!==null&&(p.lanes|=a),wu(u.return,a,e),l||(f=null);break e}u=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),wu(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Jl(e,t,a,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;Ct(i.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(i===be.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(bs):e=[bs])}i=i.return}e!==null&&ju(t,e,a,l),t.flags|=262144}function ci(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){vl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Hd(vl,e)}function oi(e,t){return vl===null&&pl(e),Hd(e,t)}function Hd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(o(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var lb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},nb=n.unstable_scheduleCallback,sb=n.unstable_NormalPriority,Ze={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Su(){return{controller:new lb,data:new Map,refCount:0}}function Kn(e){e.refCount--,e.refCount===0&&nb(sb,function(){e.controller.abort()})}var $n=null,Nu=0,Fl=0,Wl=null;function ib(e,t){if($n===null){var a=$n=[];Nu=0,Fl=Ac(),Wl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Nu++,t.then(qd,qd),t}function qd(){if(--Nu===0&&$n!==null){Wl!==null&&(Wl.status="fulfilled");var e=$n;$n=null,Fl=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rb(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Qd=R.S;R.S=function(e,t){Nh=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ib(e,t),Qd!==null&&Qd(e,t)};var xl=S(null);function Eu(){var e=xl.current;return e!==null?e:Te.pooledCache}function fi(e,t){t===null?G(xl,xl.current):G(xl,t.pool)}function Vd(){var e=Eu();return e===null?null:{parent:Ze._currentValue,pool:e}}var Il=Error(o(460)),Cu=Error(o(474)),di=Error(o(542)),hi={then:function(){}};function Yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ia,ia),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw bl=t,Il}}function gl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(bl=a,Il):a}}var bl=null;function Zd(){if(bl===null)throw Error(o(459));var e=bl;return bl=null,e}function Xd(e){if(e===Il||e===di)throw Error(o(483))}var Pl=null,Jn=0;function mi(e){var t=Jn;return Jn+=1,Pl===null&&(Pl=[]),Gd(Pl,e,t)}function Fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kd(e){function t(C,j){if(e){var M=C.deletions;M===null?(C.deletions=[j],C.flags|=16):M.push(j)}}function a(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function l(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function i(C,j){return C=ua(C,j),C.index=0,C.sibling=null,C}function u(C,j,M){return C.index=M,e?(M=C.alternate,M!==null?(M=M.index,M<j?(C.flags|=67108866,j):M):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,j,M,k){return j===null||j.tag!==6?(j=mu(M,C.mode,k),j.return=C,j):(j=i(j,M),j.return=C,j)}function w(C,j,M,k){var I=M.type;return I===O?_(C,j,M.props.children,k,M.key):j!==null&&(j.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&gl(I)===j.type)?(j=i(j,M.props),Fn(j,M),j.return=C,j):(j=ri(M.type,M.key,M.props,null,C.mode,k),Fn(j,M),j.return=C,j)}function T(C,j,M,k){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=vu(M,C.mode,k),j.return=C,j):(j=i(j,M.children||[]),j.return=C,j)}function _(C,j,M,k,I){return j===null||j.tag!==7?(j=hl(M,C.mode,k,I),j.return=C,j):(j=i(j,M),j.return=C,j)}function H(C,j,M){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=mu(""+j,C.mode,M),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case L:return M=ri(j.type,j.key,j.props,null,C.mode,M),Fn(M,j),M.return=C,M;case A:return j=vu(j,C.mode,M),j.return=C,j;case P:return j=gl(j),H(C,j,M)}if(ue(j)||pe(j))return j=hl(j,C.mode,M,null),j.return=C,j;if(typeof j.then=="function")return H(C,mi(j),M);if(j.$$typeof===F)return H(C,oi(C,j),M);vi(C,j)}return null}function z(C,j,M,k){var I=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return I!==null?null:p(C,j,""+M,k);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case L:return M.key===I?w(C,j,M,k):null;case A:return M.key===I?T(C,j,M,k):null;case P:return M=gl(M),z(C,j,M,k)}if(ue(M)||pe(M))return I!==null?null:_(C,j,M,k,null);if(typeof M.then=="function")return z(C,j,mi(M),k);if(M.$$typeof===F)return z(C,j,oi(C,M),k);vi(C,M)}return null}function D(C,j,M,k,I){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return C=C.get(M)||null,p(j,C,""+k,I);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case L:return C=C.get(k.key===null?M:k.key)||null,w(j,C,k,I);case A:return C=C.get(k.key===null?M:k.key)||null,T(j,C,k,I);case P:return k=gl(k),D(C,j,M,k,I)}if(ue(k)||pe(k))return C=C.get(M)||null,_(j,C,k,I,null);if(typeof k.then=="function")return D(C,j,M,mi(k),I);if(k.$$typeof===F)return D(C,j,M,oi(j,k),I);vi(j,k)}return null}function J(C,j,M,k){for(var I=null,ye=null,W=j,ie=j=0,ve=null;W!==null&&ie<M.length;ie++){W.index>ie?(ve=W,W=null):ve=W.sibling;var we=z(C,W,M[ie],k);if(we===null){W===null&&(W=ve);break}e&&W&&we.alternate===null&&t(C,W),j=u(we,j,ie),ye===null?I=we:ye.sibling=we,ye=we,W=ve}if(ie===M.length)return a(C,W),xe&&ca(C,ie),I;if(W===null){for(;ie<M.length;ie++)W=H(C,M[ie],k),W!==null&&(j=u(W,j,ie),ye===null?I=W:ye.sibling=W,ye=W);return xe&&ca(C,ie),I}for(W=l(W);ie<M.length;ie++)ve=D(W,C,ie,M[ie],k),ve!==null&&(e&&ve.alternate!==null&&W.delete(ve.key===null?ie:ve.key),j=u(ve,j,ie),ye===null?I=ve:ye.sibling=ve,ye=ve);return e&&W.forEach(function(Pa){return t(C,Pa)}),xe&&ca(C,ie),I}function ee(C,j,M,k){if(M==null)throw Error(o(151));for(var I=null,ye=null,W=j,ie=j=0,ve=null,we=M.next();W!==null&&!we.done;ie++,we=M.next()){W.index>ie?(ve=W,W=null):ve=W.sibling;var Pa=z(C,W,we.value,k);if(Pa===null){W===null&&(W=ve);break}e&&W&&Pa.alternate===null&&t(C,W),j=u(Pa,j,ie),ye===null?I=Pa:ye.sibling=Pa,ye=Pa,W=ve}if(we.done)return a(C,W),xe&&ca(C,ie),I;if(W===null){for(;!we.done;ie++,we=M.next())we=H(C,we.value,k),we!==null&&(j=u(we,j,ie),ye===null?I=we:ye.sibling=we,ye=we);return xe&&ca(C,ie),I}for(W=l(W);!we.done;ie++,we=M.next())we=D(W,C,ie,we.value,k),we!==null&&(e&&we.alternate!==null&&W.delete(we.key===null?ie:we.key),j=u(we,j,ie),ye===null?I=we:ye.sibling=we,ye=we);return e&&W.forEach(function(g2){return t(C,g2)}),xe&&ca(C,ie),I}function Me(C,j,M,k){if(typeof M=="object"&&M!==null&&M.type===O&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case L:e:{for(var I=M.key;j!==null;){if(j.key===I){if(I=M.type,I===O){if(j.tag===7){a(C,j.sibling),k=i(j,M.props.children),k.return=C,C=k;break e}}else if(j.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&gl(I)===j.type){a(C,j.sibling),k=i(j,M.props),Fn(k,M),k.return=C,C=k;break e}a(C,j);break}else t(C,j);j=j.sibling}M.type===O?(k=hl(M.props.children,C.mode,k,M.key),k.return=C,C=k):(k=ri(M.type,M.key,M.props,null,C.mode,k),Fn(k,M),k.return=C,C=k)}return f(C);case A:e:{for(I=M.key;j!==null;){if(j.key===I)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){a(C,j.sibling),k=i(j,M.children||[]),k.return=C,C=k;break e}else{a(C,j);break}else t(C,j);j=j.sibling}k=vu(M,C.mode,k),k.return=C,C=k}return f(C);case P:return M=gl(M),Me(C,j,M,k)}if(ue(M))return J(C,j,M,k);if(pe(M)){if(I=pe(M),typeof I!="function")throw Error(o(150));return M=I.call(M),ee(C,j,M,k)}if(typeof M.then=="function")return Me(C,j,mi(M),k);if(M.$$typeof===F)return Me(C,j,oi(C,M),k);vi(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,j!==null&&j.tag===6?(a(C,j.sibling),k=i(j,M),k.return=C,C=k):(a(C,j),k=mu(M,C.mode,k),k.return=C,C=k),f(C)):a(C,j)}return function(C,j,M,k){try{Jn=0;var I=Me(C,j,M,k);return Pl=null,I}catch(W){if(W===Il||W===di)throw W;var ye=At(29,W,null,C.mode);return ye.lanes=k,ye.return=C,ye}}}var yl=Kd(!0),$d=Kd(!1),ka=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ou(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ii(e),zd(e,null,a),t}return si(e,l,t,a),ii(e)}function Wn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Hf(e,a)}}function Mu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Tu=!1;function In(){if(Tu){var e=Wl;if(e!==null)throw e}}function Pn(e,t,a,l){Tu=!1;var i=e.updateQueue;ka=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var w=p,T=w.next;w.next=null,f===null?u=T:f.next=T,f=w;var _=e.alternate;_!==null&&(_=_.updateQueue,p=_.lastBaseUpdate,p!==f&&(p===null?_.firstBaseUpdate=T:p.next=T,_.lastBaseUpdate=w))}if(u!==null){var H=i.baseState;f=0,_=T=w=null,p=u;do{var z=p.lane&-536870913,D=z!==p.lane;if(D?(me&z)===z:(l&z)===z){z!==0&&z===Fl&&(Tu=!0),_!==null&&(_=_.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var J=e,ee=p;z=t;var Me=a;switch(ee.tag){case 1:if(J=ee.payload,typeof J=="function"){H=J.call(Me,H,z);break e}H=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,z=typeof J=="function"?J.call(Me,H,z):J,z==null)break e;H=E({},H,z);break e;case 2:ka=!0}}z=p.callback,z!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[z]:D.push(z))}else D={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},_===null?(T=_=D,w=H):_=_.next=D,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;D=p,p=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);_===null&&(w=H),i.baseState=w,i.firstBaseUpdate=T,i.lastBaseUpdate=_,u===null&&(i.shared.lanes=0),Ya|=f,e.lanes=f,e.memoizedState=H}}function Jd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Fd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jd(a[e],t)}var en=S(null),pi=S(0);function Wd(e,t){e=ya,G(pi,e),G(en,t),ya=e|t.baseLanes}function zu(){G(pi,ya),G(en,en.current)}function Ru(){ya=pi.current,B(en),B(pi)}var Ot=S(null),Vt=null;function Ha(e){var t=e.alternate;G(Ye,Ye.current&1),G(Ot,e),Vt===null&&(t===null||en.current!==null||t.memoizedState!==null)&&(Vt=e)}function Du(e){G(Ye,Ye.current),G(Ot,e),Vt===null&&(Vt=e)}function Id(e){e.tag===22?(G(Ye,Ye.current),G(Ot,e),Vt===null&&(Vt=e)):qa()}function qa(){G(Ye,Ye.current),G(Ot,Ot.current)}function Mt(e){B(Ot),Vt===e&&(Vt=null),B(Ye)}var Ye=S(0);function xi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hc(a)||qc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var da=0,le=null,Ae=null,Xe=null,gi=!1,tn=!1,wl=!1,bi=0,es=0,an=null,ub=0;function He(){throw Error(o(321))}function _u(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Lu(e,t,a,l,i,u){return da=u,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?L0:Fu,wl=!1,u=a(l,i),wl=!1,tn&&(u=e0(t,a,l,i)),Pd(e),u}function Pd(e){R.H=ls;var t=Ae!==null&&Ae.next!==null;if(da=0,Xe=Ae=le=null,gi=!1,es=0,an=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&ci(e)&&(Ke=!0))}function e0(e,t,a,l){le=e;var i=0;do{if(tn&&(an=null),es=0,tn=!1,25<=i)throw Error(o(301));if(i+=1,Xe=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=k0,u=t(a,l)}while(tn);return u}function cb(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?ts(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(le.flags|=1024),t}function ku(){var e=bi!==0;return bi=0,e}function Uu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Bu(e){if(gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gi=!1}da=0,Xe=Ae=le=null,tn=!1,es=bi=0,an=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?le.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ge(){if(Ae===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Xe===null?le.memoizedState:Xe.next;if(t!==null)Xe=t,Ae=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Xe===null?le.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function yi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ts(e){var t=es;return es+=1,an===null&&(an=[]),e=Gd(an,e,t),t=le,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?L0:Fu),e}function wi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ts(e);if(e.$$typeof===F)return nt(e)}throw Error(o(438,String(e)))}function Hu(e){var t=null,a=le.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=le.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=yi(),le.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ze;return t.index++,a}function ha(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=Ge();return qu(t,Ae,e)}function qu(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var p=f=null,w=null,T=t,_=!1;do{var H=T.lane&-536870913;if(H!==T.lane?(me&H)===H:(da&H)===H){var z=T.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),H===Fl&&(_=!0);else if((da&z)===z){T=T.next,z===Fl&&(_=!0);continue}else H={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},w===null?(p=w=H,f=u):w=w.next=H,le.lanes|=z,Ya|=z;H=T.action,wl&&a(u,H),u=T.hasEagerState?T.eagerState:a(u,H)}else z={lane:H,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},w===null?(p=w=z,f=u):w=w.next=z,le.lanes|=H,Ya|=H;T=T.next}while(T!==null&&T!==t);if(w===null?f=u:w.next=p,!Ct(u,e.memoizedState)&&(Ke=!0,_&&(a=Wl,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=w,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Qu(e){var t=Ge(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);Ct(u,t.memoizedState)||(Ke=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function t0(e,t,a){var l=le,i=Ge(),u=xe;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!Ct((Ae||i).memoizedState,a);if(f&&(i.memoizedState=a,Ke=!0),i=i.queue,Gu(n0.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||Xe!==null&&Xe.memoizedState.tag&1){if(l.flags|=2048,ln(9,{destroy:void 0},l0.bind(null,l,i,a,t),null),Te===null)throw Error(o(349));u||(da&127)!==0||a0(l,t,a)}return a}function a0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=le.updateQueue,t===null?(t=yi(),le.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function l0(e,t,a,l){t.value=a,t.getSnapshot=l,s0(t)&&i0(e)}function n0(e,t,a){return a(function(){s0(t)&&i0(e)})}function s0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function i0(e){var t=dl(e,2);t!==null&&wt(t,e,2)}function Vu(e){var t=ht();if(typeof e=="function"){var a=e;if(e=a(),wl){Ma(!0);try{a()}finally{Ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function r0(e,t,a,l){return e.baseState=a,qu(e,Ae,typeof l=="function"?l:ha)}function ob(e,t,a,l,i){if(Ei(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,u0(t,u)):(u.next=a.next,t.pending=a.next=u)}}function u0(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=R.T,f={};R.T=f;try{var p=a(i,l),w=R.S;w!==null&&w(f,p),c0(e,t,p)}catch(T){Yu(e,t,T)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=a(i,l),c0(e,t,u)}catch(T){Yu(e,t,T)}}function c0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){o0(e,t,l)},function(l){return Yu(e,t,l)}):o0(e,t,a)}function o0(e,t,a){t.status="fulfilled",t.value=a,f0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,u0(e,a)))}function Yu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,f0(t),t=t.next;while(t!==l)}e.action=null}function f0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function d0(e,t){return t}function h0(e,t){if(xe){var a=Te.formState;if(a!==null){e:{var l=le;if(xe){if(Le){t:{for(var i=Le,u=Qt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Yt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Le=Yt(i.nextSibling),l=i.data==="F!";break e}}_a(l)}l=!1}l&&(t=a[0])}}return a=ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d0,lastRenderedState:t},a.queue=l,a=R0.bind(null,le,l),l.dispatch=a,l=Vu(!1),u=Ju.bind(null,le,!1,l.queue),l=ht(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=ob.bind(null,le,i,u,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function m0(e){var t=Ge();return v0(t,Ae,e)}function v0(e,t,a){if(t=qu(e,t,d0)[0],e=ji(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ts(t)}catch(f){throw f===Il?di:f}else l=t;t=Ge();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(le.flags|=2048,ln(9,{destroy:void 0},fb.bind(null,i,a),null)),[l,u,e]}function fb(e,t){e.action=t}function p0(e){var t=Ge(),a=Ae;if(a!==null)return v0(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ln(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=le.updateQueue,t===null&&(t=yi(),le.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function x0(){return Ge().memoizedState}function Si(e,t,a,l){var i=ht();le.flags|=e,i.memoizedState=ln(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ni(e,t,a,l){var i=Ge();l=l===void 0?null:l;var u=i.memoizedState.inst;Ae!==null&&l!==null&&_u(l,Ae.memoizedState.deps)?i.memoizedState=ln(t,u,a,l):(le.flags|=e,i.memoizedState=ln(1|t,u,a,l))}function g0(e,t){Si(8390656,8,e,t)}function Gu(e,t){Ni(2048,8,e,t)}function db(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=yi(),le.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function b0(e){var t=Ge().memoizedState;return db({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function y0(e,t){return Ni(4,2,e,t)}function w0(e,t){return Ni(4,4,e,t)}function j0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function S0(e,t,a){a=a!=null?a.concat([e]):null,Ni(4,4,j0.bind(null,t,e),a)}function Zu(){}function N0(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&_u(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function E0(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&_u(t,l[1]))return l[0];if(l=e(),wl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l}function Xu(e,t,a){return a===void 0||(da&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ch(),le.lanes|=e,Ya|=e,a)}function C0(e,t,a,l){return Ct(a,t)?a:en.current!==null?(e=Xu(e,a,l),Ct(e,t)||(Ke=!0),e):(da&42)===0||(da&1073741824)!==0&&(me&261930)===0?(Ke=!0,e.memoizedState=a):(e=Ch(),le.lanes|=e,Ya|=e,t)}function A0(e,t,a,l,i){var u=q.p;q.p=u!==0&&8>u?u:8;var f=R.T,p={};R.T=p,Ju(e,!1,t,a);try{var w=i(),T=R.S;if(T!==null&&T(p,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var _=rb(w,l);as(e,t,_,Rt(e))}else as(e,t,l,Rt(e))}catch(H){as(e,t,{then:function(){},status:"rejected",reason:H},Rt())}finally{q.p=u,f!==null&&p.types!==null&&(f.types=p.types),R.T=f}}function hb(){}function Ku(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=O0(e).queue;A0(e,i,t,Z,a===null?hb:function(){return M0(e),a(l)})}function O0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function M0(e){var t=O0(e);t.next===null&&(t=e.alternate.memoizedState),as(e,t.next.queue,{},Rt())}function $u(){return nt(bs)}function T0(){return Ge().memoizedState}function z0(){return Ge().memoizedState}function mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ua(a);var l=Ba(t,e,a);l!==null&&(wt(l,t,a),Wn(l,t,a)),t={cache:Su()},e.payload=t;return}t=t.return}}function vb(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ei(e)?D0(t,a):(a=du(e,t,a,l),a!==null&&(wt(a,e,l),_0(a,t,l)))}function R0(e,t,a){var l=Rt();as(e,t,a,l)}function as(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ei(e))D0(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,p=u(f,a);if(i.hasEagerState=!0,i.eagerState=p,Ct(p,f))return si(e,t,i,0),Te===null&&ni(),!1}catch{}if(a=du(e,t,i,l),a!==null)return wt(a,e,l),_0(a,t,l),!0}return!1}function Ju(e,t,a,l){if(l={lane:2,revertLane:Ac(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ei(e)){if(t)throw Error(o(479))}else t=du(e,a,l,2),t!==null&&wt(t,e,2)}function Ei(e){var t=e.alternate;return e===le||t!==null&&t===le}function D0(e,t){tn=gi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function _0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Hf(e,a)}}var ls={readContext:nt,use:wi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ls.useEffectEvent=He;var L0={readContext:nt,use:wi,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:g0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Si(4194308,4,j0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){Si(4,2,e,t)},useMemo:function(e,t){var a=ht();t=t===void 0?null:t;var l=e();if(wl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ht();if(a!==void 0){var i=a(t);if(wl){Ma(!0);try{a(t)}finally{Ma(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=vb.bind(null,le,e),[l.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Vu(e);var t=e.queue,a=R0.bind(null,le,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Zu,useDeferredValue:function(e,t){var a=ht();return Xu(a,e,t)},useTransition:function(){var e=Vu(!1);return e=A0.bind(null,le,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=le,i=ht();if(xe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Te===null)throw Error(o(349));(me&127)!==0||a0(l,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,g0(n0.bind(null,l,u,e),[e]),l.flags|=2048,ln(9,{destroy:void 0},l0.bind(null,l,u,a,t),null),a},useId:function(){var e=ht(),t=Te.identifierPrefix;if(xe){var a=It,l=Wt;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=bi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ub++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$u,useFormState:h0,useActionState:h0,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ju.bind(null,le,!0,a),a.dispatch=t,[e,t]},useMemoCache:Hu,useCacheRefresh:function(){return ht().memoizedState=mb.bind(null,le)},useEffectEvent:function(e){var t=ht(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Fu={readContext:nt,use:wi,useCallback:N0,useContext:nt,useEffect:Gu,useImperativeHandle:S0,useInsertionEffect:y0,useLayoutEffect:w0,useMemo:E0,useReducer:ji,useRef:x0,useState:function(){return ji(ha)},useDebugValue:Zu,useDeferredValue:function(e,t){var a=Ge();return C0(a,Ae.memoizedState,e,t)},useTransition:function(){var e=ji(ha)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ts(e),t]},useSyncExternalStore:t0,useId:T0,useHostTransitionStatus:$u,useFormState:m0,useActionState:m0,useOptimistic:function(e,t){var a=Ge();return r0(a,Ae,e,t)},useMemoCache:Hu,useCacheRefresh:z0};Fu.useEffectEvent=b0;var k0={readContext:nt,use:wi,useCallback:N0,useContext:nt,useEffect:Gu,useImperativeHandle:S0,useInsertionEffect:y0,useLayoutEffect:w0,useMemo:E0,useReducer:Qu,useRef:x0,useState:function(){return Qu(ha)},useDebugValue:Zu,useDeferredValue:function(e,t){var a=Ge();return Ae===null?Xu(a,e,t):C0(a,Ae.memoizedState,e,t)},useTransition:function(){var e=Qu(ha)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ts(e),t]},useSyncExternalStore:t0,useId:T0,useHostTransitionStatus:$u,useFormState:p0,useActionState:p0,useOptimistic:function(e,t){var a=Ge();return Ae!==null?r0(a,Ae,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hu,useCacheRefresh:z0};k0.useEffectEvent=b0;function Wu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:E({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Iu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ua(l);i.payload=t,a!=null&&(i.callback=a),t=Ba(e,i,l),t!==null&&(wt(t,e,l),Wn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ua(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ba(e,i,l),t!==null&&(wt(t,e,l),Wn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ua(a);l.tag=2,t!=null&&(l.callback=t),t=Ba(e,l,a),t!==null&&(wt(t,e,a),Wn(t,e,a))}};function U0(e,t,a,l,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,f):t.prototype&&t.prototype.isPureReactComponent?!Yn(a,l)||!Yn(i,u):!0}function B0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function jl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=E({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function H0(e){li(e)}function q0(e){console.error(e)}function Q0(e){li(e)}function Ci(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function V0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Pu(e,t,a){return a=Ua(a),a.tag=3,a.payload={element:null},a.callback=function(){Ci(e,t)},a}function Y0(e){return e=Ua(e),e.tag=3,e}function G0(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){V0(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){V0(t,a,l),typeof i!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function pb(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Jl(t,a,i,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?Bi():a.alternate===null&&qe===0&&(qe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Nc(e,l,i)),!1;case 22:return a.flags|=65536,l===hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Nc(e,l,i)),!1}throw Error(o(435,a.tag))}return Nc(e,l,i),Bi(),!1}if(xe)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==gu&&(e=Error(o(422),{cause:l}),Xn(Bt(e,a)))):(l!==gu&&(t=Error(o(423),{cause:l}),Xn(Bt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Bt(l,a),i=Pu(e.stateNode,l,i),Mu(e,i),qe!==4&&(qe=2)),!1;var u=Error(o(520),{cause:l});if(u=Bt(u,a),fs===null?fs=[u]:fs.push(u),qe!==4&&(qe=2),t===null)return!0;l=Bt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Pu(a.stateNode,l,e),Mu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ga===null||!Ga.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Y0(i),G0(i,e,a,l),Mu(a,i),!1}a=a.return}while(a!==null);return!1}var ec=Error(o(461)),Ke=!1;function st(e,t,a,l){t.child=e===null?$d(t,null,a,l):yl(t,e.child,a,l)}function Z0(e,t,a,l,i){a=a.render;var u=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return pl(t),l=Lu(e,t,a,f,u,i),p=ku(),e!==null&&!Ke?(Uu(e,t,i),ma(e,t,i)):(xe&&p&&pu(t),t.flags|=1,st(e,t,l,i),t.child)}function X0(e,t,a,l,i){if(e===null){var u=a.type;return typeof u=="function"&&!hu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,K0(e,t,u,l,i)):(e=ri(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!uc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:Yn,a(f,l)&&e.ref===t.ref)return ma(e,t,i)}return t.flags|=1,e=ua(u,l),e.ref=t.ref,e.return=t,t.child=e}function K0(e,t,a,l,i){if(e!==null){var u=e.memoizedProps;if(Yn(u,l)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=l=u,uc(e,i))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,ma(e,t,i)}return tc(e,t,a,l,i)}function $0(e,t,a,l){var i=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~u}else l=0,t.child=null;return J0(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fi(t,u!==null?u.cachePool:null),u!==null?Wd(t,u):zu(),Id(t);else return l=t.lanes=536870912,J0(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(fi(t,u.cachePool),Wd(t,u),qa(),t.memoizedState=null):(e!==null&&fi(t,null),zu(),qa());return st(e,t,i,a),t.child}function ns(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function J0(e,t,a,l,i){var u=Eu();return u=u===null?null:{parent:Ze._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&fi(t,null),zu(),Id(t),e!==null&&Jl(e,t,l,!0),t.childLanes=i,null}function Ai(e,t){return t=Mi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function F0(e,t,a){return yl(t,e.child,null,a),e=Ai(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function xb(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(l.mode==="hidden")return e=Ai(t,l),t.lanes=536870912,ns(null,e);if(Du(t),(e=Le)?(e=um(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Dd(e),a.return=t,t.child=a,lt=t,Le=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return Ai(t,l)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Du(t),i)if(t.flags&256)t.flags&=-257,t=F0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ke||Jl(e,t,a,!1),i=(a&e.childLanes)!==0,Ke||i){if(l=Te,l!==null&&(f=qf(l,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,dl(e,f),wt(l,e,f),ec;Bi(),t=F0(e,t,a)}else e=u.treeContext,Le=Yt(f.nextSibling),lt=t,xe=!0,Da=null,Qt=!1,e!==null&&kd(t,e),t=Ai(t,l),t.flags|=4096;return t}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Oi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function tc(e,t,a,l,i){return pl(t),a=Lu(e,t,a,l,void 0,i),l=ku(),e!==null&&!Ke?(Uu(e,t,i),ma(e,t,i)):(xe&&l&&pu(t),t.flags|=1,st(e,t,a,i),t.child)}function W0(e,t,a,l,i,u){return pl(t),t.updateQueue=null,a=e0(t,l,a,i),Pd(e),l=ku(),e!==null&&!Ke?(Uu(e,t,u),ma(e,t,u)):(xe&&l&&pu(t),t.flags|=1,st(e,t,a,u),t.child)}function I0(e,t,a,l,i){if(pl(t),t.stateNode===null){var u=Zl,f=a.contextType;typeof f=="object"&&f!==null&&(u=nt(f)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Iu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Au(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?nt(f):Zl,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Wu(t,a,f,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Iu.enqueueReplaceState(u,u.state,null),Pn(t,l,u,i),In(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,w=jl(a,p);u.props=w;var T=u.context,_=a.contextType;f=Zl,typeof _=="object"&&_!==null&&(f=nt(_));var H=a.getDerivedStateFromProps;_=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||T!==f)&&B0(t,u,l,f),ka=!1;var z=t.memoizedState;u.state=z,Pn(t,l,u,i),In(),T=t.memoizedState,p||z!==T||ka?(typeof H=="function"&&(Wu(t,a,H,l),T=t.memoizedState),(w=ka||U0(t,a,w,l,z,T,f))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=T),u.props=l,u.state=T,u.context=f,l=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Ou(e,t),f=t.memoizedProps,_=jl(a,f),u.props=_,H=t.pendingProps,z=u.context,T=a.contextType,w=Zl,typeof T=="object"&&T!==null&&(w=nt(T)),p=a.getDerivedStateFromProps,(T=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==H||z!==w)&&B0(t,u,l,w),ka=!1,z=t.memoizedState,u.state=z,Pn(t,l,u,i),In();var D=t.memoizedState;f!==H||z!==D||ka||e!==null&&e.dependencies!==null&&ci(e.dependencies)?(typeof p=="function"&&(Wu(t,a,p,l),D=t.memoizedState),(_=ka||U0(t,a,_,l,z,D,w)||e!==null&&e.dependencies!==null&&ci(e.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,D,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,D,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=D),u.props=l,u.state=D,u.context=w,l=_):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Oi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=yl(t,e.child,null,i),t.child=yl(t,null,a,i)):st(e,t,a,i),t.memoizedState=u.state,e=t.child):e=ma(e,t,i),e}function P0(e,t,a,l){return ml(),t.flags|=256,st(e,t,a,l),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(e){return{baseLanes:e,cachePool:Vd()}}function nc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function eh(e,t,a){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(i?Ha(t):qa(),(e=Le)?(e=um(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Dd(e),a.return=t,t.child=a,lt=t,Le=null)):e=null,e===null)throw _a(t);return qc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,i?(qa(),i=t.mode,p=Mi({mode:"hidden",children:p},i),l=hl(l,i,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=lc(a),l.childLanes=nc(e,f,a),t.memoizedState=ac,ns(null,l)):(Ha(t),sc(t,p))}var w=e.memoizedState;if(w!==null&&(p=w.dehydrated,p!==null)){if(u)t.flags&256?(Ha(t),t.flags&=-257,t=ic(e,t,a)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),p=l.fallback,i=t.mode,l=Mi({mode:"visible",children:l.children},i),p=hl(p,i,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,yl(t,e.child,null,a),l=t.child,l.memoizedState=lc(a),l.childLanes=nc(e,f,a),t.memoizedState=ac,t=ns(null,l));else if(Ha(t),qc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var T=f.dgst;f=T,l=Error(o(419)),l.stack="",l.digest=f,Xn({value:l,source:null,stack:null}),t=ic(e,t,a)}else if(Ke||Jl(e,t,a,!1),f=(a&e.childLanes)!==0,Ke||f){if(f=Te,f!==null&&(l=qf(f,a),l!==0&&l!==w.retryLane))throw w.retryLane=l,dl(e,l),wt(f,e,l),ec;Hc(p)||Bi(),t=ic(e,t,a)}else Hc(p)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Le=Yt(p.nextSibling),lt=t,xe=!0,Da=null,Qt=!1,e!==null&&kd(t,e),t=sc(t,l.children),t.flags|=4096);return t}return i?(qa(),p=l.fallback,i=t.mode,w=e.child,T=w.sibling,l=ua(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,T!==null?p=ua(T,p):(p=hl(p,i,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,ns(null,l),l=t.child,p=e.child.memoizedState,p===null?p=lc(a):(i=p.cachePool,i!==null?(w=Ze._currentValue,i=i.parent!==w?{parent:w,pool:w}:i):i=Vd(),p={baseLanes:p.baseLanes|a,cachePool:i}),l.memoizedState=p,l.childLanes=nc(e,f,a),t.memoizedState=ac,ns(e.child,l)):(Ha(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function sc(e,t){return t=Mi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mi(e,t){return e=At(22,e,null,t),e.lanes=0,e}function ic(e,t,a){return yl(t,e.child,null,a),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function th(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),wu(e.return,t,a)}function rc(e,t,a,l,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function ah(e,t,a){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var f=Ye.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,G(Ye,f),st(e,t,l,a),l=xe?Zn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&th(e,a,t);else if(e.tag===19)th(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&xi(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),rc(t,!1,i,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xi(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}rc(t,!0,a,null,u,l);break;case"together":rc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Jl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ci(e)))}function gb(e,t,a){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),La(t,Ze,e.memoizedState.cache),ml();break;case 27:case 5:Aa(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:La(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Du(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ha(t),t.flags|=128,null):(a&t.child.childLanes)!==0?eh(e,t,a):(Ha(t),e=ma(e,t,a),e!==null?e.sibling:null);Ha(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Jl(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return ah(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,$0(e,t,a,t.pendingProps);case 24:La(t,Ze,e.memoizedState.cache)}return ma(e,t,a)}function lh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!uc(e,a)&&(t.flags&128)===0)return Ke=!1,gb(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,xe&&(t.flags&1048576)!==0&&Ld(t,Zn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")hu(e)?(l=jl(e,l),t.tag=1,t=I0(null,t,e,l,a)):(t.tag=0,t=tc(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===K){t.tag=11,t=Z0(null,t,e,l,a);break e}else if(i===Y){t.tag=14,t=X0(null,t,e,l,a);break e}}throw t=ot(e)||e,Error(o(306,t,""))}}return t;case 0:return tc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=jl(l,t.pendingProps),I0(e,t,l,i,a);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Ou(e,t),Pn(t,l,null,a);var f=t.memoizedState;if(l=f.cache,La(t,Ze,l),l!==u.cache&&ju(t,[Ze],a,!0),In(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=P0(e,t,l,a);break e}else if(l!==i){i=Bt(Error(o(424)),t),Xn(i),t=P0(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Yt(e.firstChild),lt=t,xe=!0,Da=null,Qt=!0,a=$d(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ml(),l===i){t=ma(e,t,a);break e}st(e,t,l,a)}t=t.child}return t;case 26:return Oi(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=Zi(re.current).createElement(a),l[at]=t,l[vt]=e,it(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Aa(t),e===null&&xe&&(l=t.stateNode=fm(t.type,t.pendingProps,re.current),lt=t,Qt=!0,i=Le,$a(t.type)?(Qc=i,Le=Yt(l.firstChild)):Le=i),st(e,t,t.pendingProps.children,a),Oi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((i=l=Le)&&(l=$b(l,t.type,t.pendingProps,Qt),l!==null?(t.stateNode=l,lt=t,Le=Yt(l.firstChild),Qt=!1,i=!0):i=!1),i||_a(t)),Aa(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,l=u.children,kc(i,u)?l=null:f!==null&&kc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Lu(e,t,cb,null,null,a),bs._currentValue=i),Oi(e,t),st(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Le)&&(a=Jb(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,lt=t,Le=null,e=!0):e=!1),e||_a(t)),null;case 13:return eh(e,t,a);case 4:return Ve(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=yl(t,null,l,a):st(e,t,l,a),t.child;case 11:return Z0(e,t,t.type,t.pendingProps,a);case 7:return st(e,t,t.pendingProps,a),t.child;case 8:return st(e,t,t.pendingProps.children,a),t.child;case 12:return st(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,La(t,t.type,l.value),st(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,pl(t),i=nt(i),l=l(i),t.flags|=1,st(e,t,l,a),t.child;case 14:return X0(e,t,t.type,t.pendingProps,a);case 15:return K0(e,t,t.type,t.pendingProps,a);case 19:return ah(e,t,a);case 31:return xb(e,t,a);case 22:return $0(e,t,a,t.pendingProps);case 24:return pl(t),l=nt(Ze),e===null?(i=Eu(),i===null&&(i=Te,u=Su(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:l,cache:i},Au(t),La(t,Ze,i)):((e.lanes&a)!==0&&(Ou(e,t),Pn(t,null,null,a),In()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),La(t,Ze,l)):(l=u.cache,La(t,Ze,l),l!==i.cache&&ju(t,[Ze],a,!0))),st(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function va(e){e.flags|=4}function cc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Th())e.flags|=8192;else throw bl=hi,Cu}else e.flags&=-16777217}function nh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(Th())e.flags|=8192;else throw bl=hi,Cu}function Ti(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Uf():536870912,e.lanes|=t,un|=t)}function ss(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function bb(e,t,a){var l=t.pendingProps;switch(xu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa(Ze),je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($l(t)?va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bu())),ke(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(va(t),u!==null?(ke(t),nh(t,u)):(ke(t),cc(t,i,null,l,a))):u?u!==e.memoizedState?(va(t),ke(t),nh(t,u)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&va(t),ke(t),cc(t,i,e,l,a)),null;case 27:if(jt(t),a=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}e=$.current,$l(t)?Ud(t):(e=fm(i,l,a),t.stateNode=e,va(t))}return ke(t),null;case 5:if(jt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}if(u=$.current,$l(t))Ud(t);else{var f=Zi(re.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}u[at]=t,u[vt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(it(u,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&va(t)}}return ke(t),cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,$l(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=lt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||em(e.nodeValue,a)),e||_a(t,!0)}else e=Zi(e).createTextNode(l),e[at]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=$l(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[at]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=$l(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[at]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else i=bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ti(t,t.updateQueue),ke(t),null);case 4:return je(),e===null&&zc(t.stateNode.containerInfo),ke(t),null;case 10:return fa(t.type),ke(t),null;case 19:if(B(Ye),l=t.memoizedState,l===null)return ke(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)ss(l,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=xi(e),u!==null){for(t.flags|=128,ss(l,!1),e=u.updateQueue,t.updateQueue=e,Ti(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Rd(a,e),a=a.sibling;return G(Ye,Ye.current&1|2),xe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Li&&(t.flags|=128,i=!0,ss(l,!1),t.lanes=4194304)}else{if(!i)if(e=xi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ti(t,e),ss(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!xe)return ke(t),null}else 2*St()-l.renderingStartTime>Li&&a!==536870912&&(t.flags|=128,i=!0,ss(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,a=Ye.current,G(Ye,i?a&1|2:a&1),xe&&ca(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Mt(t),Ru(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&Ti(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&B(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa(Ze),ke(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function yb(e,t){switch(xu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(Ze),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return jt(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ye),null;case 4:return je(),null;case 10:return fa(t.type),null;case 22:case 23:return Mt(t),Ru(),e!==null&&B(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(Ze),null;case 25:return null;default:return null}}function sh(e,t){switch(xu(t),t.tag){case 3:fa(Ze),je();break;case 26:case 27:case 5:jt(t);break;case 4:je();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:B(Ye);break;case 10:fa(t.type);break;case 22:case 23:Mt(t),Ru(),e!==null&&B(xl);break;case 24:fa(Ze)}}function is(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var u=a.create,f=a.inst;l=u(),f.destroy=l}a=a.next}while(a!==i)}}catch(p){Ce(t,t.return,p)}}function Qa(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=t;var w=a,T=p;try{T()}catch(_){Ce(i,w,_)}}}l=l.next}while(l!==u)}}catch(_){Ce(t,t.return,_)}}function ih(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Fd(t,a)}catch(l){Ce(e,e.return,l)}}}function rh(e,t,a){a.props=jl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function rs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function Pt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function uh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function oc(e,t,a){try{var l=e.stateNode;Vb(l,e.type,a,t),l[vt]=t}catch(i){Ce(e,e.return,i)}}function ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$a(e.type)||e.tag===4}function fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ch(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$a(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ia));else if(l!==4&&(l===27&&$a(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(dc(e,t,a),e=e.sibling;e!==null;)dc(e,t,a),e=e.sibling}function zi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&$a(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zi(e,t,a),e=e.sibling;e!==null;)zi(e,t,a),e=e.sibling}function oh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);it(t,l,a),t[at]=e,t[vt]=a}catch(u){Ce(e,e.return,u)}}var pa=!1,$e=!1,hc=!1,fh=typeof WeakSet=="function"?WeakSet:Set,et=null;function wb(e,t){if(e=e.containerInfo,_c=Ii,e=Sd(e),iu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,p=-1,w=-1,T=0,_=0,H=e,z=null;t:for(;;){for(var D;H!==a||i!==0&&H.nodeType!==3||(p=f+i),H!==u||l!==0&&H.nodeType!==3||(w=f+l),H.nodeType===3&&(f+=H.nodeValue.length),(D=H.firstChild)!==null;)z=H,H=D;for(;;){if(H===e)break t;if(z===a&&++T===i&&(p=f),z===u&&++_===l&&(w=f),(D=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=D}a=p===-1||w===-1?null:{start:p,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Lc={focusedElem:e,selectionRange:a},Ii=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var J=jl(a.type,i);e=l.getSnapshotBeforeUpdate(J,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Ce(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Bc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function dh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ga(e,a),l&4&&is(5,a);break;case 1:if(ga(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(a,a.return,f)}else{var i=jl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(a,a.return,f)}}l&64&&ih(a),l&512&&rs(a,a.return);break;case 3:if(ga(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Fd(e,t)}catch(f){Ce(a,a.return,f)}}break;case 27:t===null&&l&4&&oh(a);case 26:case 5:ga(e,a),t===null&&l&4&&uh(a),l&512&&rs(a,a.return);break;case 12:ga(e,a);break;case 31:ga(e,a),l&4&&vh(e,a);break;case 13:ga(e,a),l&4&&ph(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Tb.bind(null,a),Fb(e,a))));break;case 22:if(l=a.memoizedState!==null||pa,!l){t=t!==null&&t.memoizedState!==null||$e,i=pa;var u=$e;pa=l,($e=t)&&!u?ba(e,a,(a.subtreeFlags&8772)!==0):ga(e,a),pa=i,$e=u}break;case 30:break;default:ga(e,a)}}function hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,xt=!1;function xa(e,t,a){for(a=a.child;a!==null;)mh(e,t,a),a=a.sibling}function mh(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(zn,a)}catch{}switch(a.tag){case 26:$e||Pt(a,t),xa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Pt(a,t);var l=Ue,i=xt;$a(a.type)&&(Ue=a.stateNode,xt=!1),xa(e,t,a),ps(a.stateNode),Ue=l,xt=i;break;case 5:$e||Pt(a,t);case 6:if(l=Ue,i=xt,Ue=null,xa(e,t,a),Ue=l,xt=i,Ue!==null)if(xt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(u){Ce(a,t,u)}else try{Ue.removeChild(a.stateNode)}catch(u){Ce(a,t,u)}break;case 18:Ue!==null&&(xt?(e=Ue,im(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),pn(e)):im(Ue,a.stateNode));break;case 4:l=Ue,i=xt,Ue=a.stateNode.containerInfo,xt=!0,xa(e,t,a),Ue=l,xt=i;break;case 0:case 11:case 14:case 15:Qa(2,a,t),$e||Qa(4,a,t),xa(e,t,a);break;case 1:$e||(Pt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&rh(a,t,l)),xa(e,t,a);break;case 21:xa(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,xa(e,t,a),$e=l;break;default:xa(e,t,a)}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pn(e)}catch(a){Ce(t,t.return,a)}}}function ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pn(e)}catch(a){Ce(t,t.return,a)}}function jb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fh),t;default:throw Error(o(435,e.tag))}}function Ri(e,t){var a=jb(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=zb.bind(null,e,l);l.then(i,i)}})}function gt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],u=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if($a(p.type)){Ue=p.stateNode,xt=!1;break e}break;case 5:Ue=p.stateNode,xt=!1;break e;case 3:case 4:Ue=p.stateNode.containerInfo,xt=!0;break e}p=p.return}if(Ue===null)throw Error(o(160));mh(u,f,i),Ue=null,xt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xh(t,e),t=t.sibling}var Kt=null;function xh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),bt(e),l&4&&(Qa(3,e,e.return),is(3,e),Qa(5,e,e.return));break;case 1:gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),l&64&&pa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Kt;if(gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":u=i.getElementsByTagName("title")[0],(!u||u[_n]||u[at]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),it(u,l,a),u[at]=e,Pe(u),l=u;break e;case"link":var f=xm("link","href",i).get(l+(a.href||""));if(f){for(var p=0;p<f.length;p++)if(u=f[p],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(p,1);break t}}u=i.createElement(l),it(u,l,a),i.head.appendChild(u);break;case"meta":if(f=xm("meta","content",i).get(l+(a.content||""))){for(p=0;p<f.length;p++)if(u=f[p],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(p,1);break t}}u=i.createElement(l),it(u,l,a),i.head.appendChild(u);break;default:throw Error(o(468,l))}u[at]=e,Pe(u),l=u}e.stateNode=l}else gm(i,e.type,e.stateNode);else e.stateNode=pm(i,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?gm(i,e.type,e.stateNode):pm(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&oc(e,e.memoizedProps,a.memoizedProps)}break;case 27:gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),a!==null&&l&4&&oc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(gt(t,e),bt(e),l&512&&($e||a===null||Pt(a,a.return)),e.flags&32){i=e.stateNode;try{Bl(i,"")}catch(J){Ce(e,e.return,J)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,oc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(hc=!0);break;case 6:if(gt(t,e),bt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Ce(e,e.return,J)}}break;case 3:if($i=null,i=Kt,Kt=Xi(t.containerInfo),gt(t,e),Kt=i,bt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{pn(t.containerInfo)}catch(J){Ce(e,e.return,J)}hc&&(hc=!1,gh(e));break;case 4:l=Kt,Kt=Xi(e.stateNode.containerInfo),gt(t,e),bt(e),Kt=l;break;case 12:gt(t,e),bt(e);break;case 31:gt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ri(e,l)));break;case 13:gt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_i=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ri(e,l)));break;case 22:i=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,T=pa,_=$e;if(pa=T||i,$e=_||w,gt(t,e),$e=_,pa=T,bt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||w||pa||$e||Sl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=w.stateNode;var H=w.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){Ce(w,w.return,J)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=i?"":w.memoizedProps}catch(J){Ce(w,w.return,J)}}}else if(t.tag===18){if(a===null){w=t;try{var D=w.stateNode;i?rm(D,!0):rm(w.stateNode,!1)}catch(J){Ce(w,w.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ri(e,a))));break;case 19:gt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ri(e,l)));break;case 30:break;case 21:break;default:gt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(ch(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,u=fc(e);zi(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(Bl(f,""),a.flags&=-33);var p=fc(e);zi(e,p,f);break;case 3:case 4:var w=a.stateNode.containerInfo,T=fc(e);dc(e,T,w);break;default:throw Error(o(161))}}catch(_){Ce(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dh(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qa(4,t,t.return),Sl(t);break;case 1:Pt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&rh(t,t.return,a),Sl(t);break;case 27:ps(t.stateNode);case 26:case 5:Pt(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:ba(i,u,a),is(4,u);break;case 1:if(ba(i,u,a),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(T){Ce(l,l.return,T)}if(l=u,i=l.updateQueue,i!==null){var p=l.stateNode;try{var w=i.shared.hiddenCallbacks;if(w!==null)for(i.shared.hiddenCallbacks=null,i=0;i<w.length;i++)Jd(w[i],p)}catch(T){Ce(l,l.return,T)}}a&&f&64&&ih(u),rs(u,u.return);break;case 27:oh(u);case 26:case 5:ba(i,u,a),a&&l===null&&f&4&&uh(u),rs(u,u.return);break;case 12:ba(i,u,a);break;case 31:ba(i,u,a),a&&f&4&&vh(i,u);break;case 13:ba(i,u,a),a&&f&4&&ph(i,u);break;case 22:u.memoizedState===null&&ba(i,u,a),rs(u,u.return);break;case 30:break;default:ba(i,u,a)}t=t.sibling}}function mc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Kn(a))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e))}function $t(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bh(e,t,a,l),t=t.sibling}function bh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,a,l),i&2048&&is(9,t);break;case 1:$t(e,t,a,l);break;case 3:$t(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e)));break;case 12:if(i&2048){$t(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,p=u.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ce(t,t.return,w)}}else $t(e,t,a,l);break;case 31:$t(e,t,a,l);break;case 13:$t(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?$t(e,t,a,l):us(e,t):u._visibility&2?$t(e,t,a,l):(u._visibility|=2,nn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&mc(f,t);break;case 24:$t(e,t,a,l),i&2048&&vc(t.alternate,t);break;default:$t(e,t,a,l)}}function nn(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,p=a,w=l,T=f.flags;switch(f.tag){case 0:case 11:case 15:nn(u,f,p,w,i),is(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?nn(u,f,p,w,i):us(u,f):(_._visibility|=2,nn(u,f,p,w,i)),i&&T&2048&&mc(f.alternate,f);break;case 24:nn(u,f,p,w,i),i&&T&2048&&vc(f.alternate,f);break;default:nn(u,f,p,w,i)}t=t.sibling}}function us(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:us(a,l),i&2048&&mc(l.alternate,l);break;case 24:us(a,l),i&2048&&vc(l.alternate,l);break;default:us(a,l)}t=t.sibling}}var cs=8192;function sn(e,t,a){if(e.subtreeFlags&cs)for(e=e.child;e!==null;)yh(e,t,a),e=e.sibling}function yh(e,t,a){switch(e.tag){case 26:sn(e,t,a),e.flags&cs&&e.memoizedState!==null&&u2(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:sn(e,t,a);break;case 3:case 4:var l=Kt;Kt=Xi(e.stateNode.containerInfo),sn(e,t,a),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=cs,cs=16777216,sn(e,t,a),cs=l):sn(e,t,a));break;default:sn(e,t,a)}}function wh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function os(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,Sh(l,e)}wh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jh(e),e=e.sibling}function jh(e){switch(e.tag){case 0:case 11:case 15:os(e),e.flags&2048&&Qa(9,e,e.return);break;case 3:os(e);break;case 12:os(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Di(e)):os(e);break;default:os(e)}}function Di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,Sh(l,e)}wh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qa(8,t,t.return),Di(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Di(t));break;default:Di(t)}e=e.sibling}}function Sh(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:Qa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Kn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var i=l.sibling,u=l.return;if(hh(l),l===a){et=null;break e}if(i!==null){i.return=u,et=i;break e}et=u}}}var Sb={getCacheForType:function(e){var t=nt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Ze).controller.signal}},Nb=typeof WeakMap=="function"?WeakMap:Map,Se=0,Te=null,oe=null,me=0,Ee=0,Tt=null,Va=!1,rn=!1,pc=!1,ya=0,qe=0,Ya=0,Nl=0,xc=0,zt=0,un=0,fs=null,yt=null,gc=!1,_i=0,Nh=0,Li=1/0,ki=null,Ga=null,We=0,Za=null,cn=null,wa=0,bc=0,yc=null,Eh=null,ds=0,wc=null;function Rt(){return(Se&2)!==0&&me!==0?me&-me:R.T!==null?Ac():Qf()}function Ch(){if(zt===0)if((me&536870912)===0||xe){var e=Gs;Gs<<=1,(Gs&3932160)===0&&(Gs=262144),zt=e}else zt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),zt}function wt(e,t,a){(e===Te&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(on(e,0),Xa(e,me,zt,!1)),Dn(e,a),((Se&2)===0||e!==Te)&&(e===Te&&((Se&2)===0&&(Nl|=a),qe===4&&Xa(e,me,zt,!1)),ea(e))}function Ah(e,t,a){if((Se&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Rn(e,t),i=l?Ab(e,t):Sc(e,t,!0),u=l;do{if(i===0){rn&&!l&&Xa(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Eb(a)){i=Sc(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;i=fs;var w=p.current.memoizedState.isDehydrated;if(w&&(on(p,f).flags|=256),f=Sc(p,f,!1),f!==2){if(pc&&!w){p.errorRecoveryDisabledLanes|=u,Nl|=u,i=4;break e}u=yt,yt=i,u!==null&&(yt===null?yt=u:yt.push.apply(yt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){on(e,0),Xa(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Xa(l,t,zt,!Va);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=_i+300-St(),10<i)){if(Xa(l,t,zt,!Va),Xs(l,0,!0)!==0)break e;wa=t,l.timeoutHandle=nm(Oh.bind(null,l,a,yt,ki,gc,t,zt,Nl,un,Va,u,"Throttled",-0,0),i);break e}Oh(l,a,yt,ki,gc,t,zt,Nl,un,Va,u,null,-0,0)}}break}while(!0);ea(e)}function Oh(e,t,a,l,i,u,f,p,w,T,_,H,z,D){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},yh(t,u,H);var J=(u&62914560)===u?_i-St():(u&4194048)===u?Nh-St():0;if(J=c2(H,J),J!==null){wa=u,e.cancelPendingCommit=J(kh.bind(null,e,t,u,a,l,i,f,p,w,_,H,null,z,D)),Xa(e,u,f,!T);return}}kh(e,t,u,a,l,i,f,p,w)}function Eb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],u=i.getSnapshot;i=i.value;try{if(!Ct(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xa(e,t,a,l){t&=~xc,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-Et(i),f=1<<u;l[u]=-1,i&=~f}a!==0&&Bf(e,a,t)}function Ui(){return(Se&6)===0?(hs(0),!1):!0}function jc(){if(oe!==null){if(Ee===0)var e=oe.return;else e=oe,oa=vl=null,Bu(e),Pl=null,Jn=0,e=oe;for(;e!==null;)sh(e.alternate,e),e=e.return;oe=null}}function on(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Zb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),wa=0,jc(),Te=e,oe=a=ua(e.current,null),me=t,Ee=0,Tt=null,Va=!1,rn=Rn(e,t),pc=!1,un=zt=xc=Nl=Ya=qe=0,yt=fs=null,gc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Et(l),u=1<<i;t|=e[i],l&=~u}return ya=t,ni(),a}function Mh(e,t){le=null,R.H=ls,t===Il||t===di?(t=Zd(),Ee=3):t===Cu?(t=Zd(),Ee=4):Ee=t===ec?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,oe===null&&(qe=1,Ci(e,Bt(t,e.current)))}function Th(){var e=Ot.current;return e===null?!0:(me&4194048)===me?Vt===null:(me&62914560)===me||(me&536870912)!==0?e===Vt:!1}function zh(){var e=R.H;return R.H=ls,e===null?ls:e}function Rh(){var e=R.A;return R.A=Sb,e}function Bi(){qe=4,Va||(me&4194048)!==me&&Ot.current!==null||(rn=!0),(Ya&134217727)===0&&(Nl&134217727)===0||Te===null||Xa(Te,me,zt,!1)}function Sc(e,t,a){var l=Se;Se|=2;var i=zh(),u=Rh();(Te!==e||me!==t)&&(ki=null,on(e,t)),t=!1;var f=qe;e:do try{if(Ee!==0&&oe!==null){var p=oe,w=Tt;switch(Ee){case 8:jc(),f=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var T=Ee;if(Ee=0,Tt=null,fn(e,p,w,T),a&&rn){f=0;break e}break;default:T=Ee,Ee=0,Tt=null,fn(e,p,w,T)}}Cb(),f=qe;break}catch(_){Mh(e,_)}while(!0);return t&&e.shellSuspendCounter++,oa=vl=null,Se=l,R.H=i,R.A=u,oe===null&&(Te=null,me=0,ni()),f}function Cb(){for(;oe!==null;)Dh(oe)}function Ab(e,t){var a=Se;Se|=2;var l=zh(),i=Rh();Te!==e||me!==t?(ki=null,Li=St()+500,on(e,t)):rn=Rn(e,t);e:do try{if(Ee!==0&&oe!==null){t=oe;var u=Tt;t:switch(Ee){case 1:Ee=0,Tt=null,fn(e,t,u,1);break;case 2:case 9:if(Yd(u)){Ee=0,Tt=null,_h(t);break}t=function(){Ee!==2&&Ee!==9||Te!==e||(Ee=7),ea(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Yd(u)?(Ee=0,Tt=null,_h(t)):(Ee=0,Tt=null,fn(e,t,u,7));break;case 5:var f=null;switch(oe.tag){case 26:f=oe.memoizedState;case 5:case 27:var p=oe;if(f?bm(f):p.stateNode.complete){Ee=0,Tt=null;var w=p.sibling;if(w!==null)oe=w;else{var T=p.return;T!==null?(oe=T,Hi(T)):oe=null}break t}}Ee=0,Tt=null,fn(e,t,u,5);break;case 6:Ee=0,Tt=null,fn(e,t,u,6);break;case 8:jc(),qe=6;break e;default:throw Error(o(462))}}Ob();break}catch(_){Mh(e,_)}while(!0);return oa=vl=null,R.H=l,R.A=i,Se=a,oe!==null?0:(Te=null,me=0,ni(),qe)}function Ob(){for(;oe!==null&&!Wx();)Dh(oe)}function Dh(e){var t=lh(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Hi(e):oe=t}function _h(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=W0(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=W0(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Bu(t);default:sh(a,t),t=oe=Rd(t,ya),t=lh(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?Hi(e):oe=t}function fn(e,t,a,l){oa=vl=null,Bu(t),Pl=null,Jn=0;var i=t.return;try{if(pb(e,i,t,a,me)){qe=1,Ci(e,Bt(a,e.current)),oe=null;return}}catch(u){if(i!==null)throw oe=i,u;qe=1,Ci(e,Bt(a,e.current)),oe=null;return}t.flags&32768?(xe||l===1?e=!0:rn||(me&536870912)!==0?e=!1:(Va=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lh(t,e)):Hi(t)}function Hi(e){var t=e;do{if((t.flags&32768)!==0){Lh(t,Va);return}e=t.return;var a=bb(t.alternate,t,ya);if(a!==null){oe=a;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);qe===0&&(qe=5)}function Lh(e,t){do{var a=yb(e.alternate,e);if(a!==null){a.flags&=32767,oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=a}while(e!==null);qe=6,oe=null}function kh(e,t,a,l,i,u,f,p,w){e.cancelPendingCommit=null;do qi();while(We!==0);if((Se&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=fu,rg(e,a,u,f,p,w),e===Te&&(oe=Te=null,me=0),cn=t,Za=e,wa=a,bc=u,yc=i,Eh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Rb(Vs,function(){return Qh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,i=q.p,q.p=2,f=Se,Se|=4;try{wb(e,t,a)}finally{Se=f,q.p=i,R.T=l}}We=1,Uh(),Bh(),Hh()}}function Uh(){if(We===1){We=0;var e=Za,t=cn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=q.p;q.p=2;var i=Se;Se|=4;try{xh(t,e);var u=Lc,f=Sd(e.containerInfo),p=u.focusedElem,w=u.selectionRange;if(f!==p&&p&&p.ownerDocument&&jd(p.ownerDocument.documentElement,p)){if(w!==null&&iu(p)){var T=w.start,_=w.end;if(_===void 0&&(_=T),"selectionStart"in p)p.selectionStart=T,p.selectionEnd=Math.min(_,p.value.length);else{var H=p.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var D=z.getSelection(),J=p.textContent.length,ee=Math.min(w.start,J),Me=w.end===void 0?ee:Math.min(w.end,J);!D.extend&&ee>Me&&(f=Me,Me=ee,ee=f);var C=wd(p,ee),j=wd(p,Me);if(C&&j&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==j.node||D.focusOffset!==j.offset)){var M=H.createRange();M.setStart(C.node,C.offset),D.removeAllRanges(),ee>Me?(D.addRange(M),D.extend(j.node,j.offset)):(M.setEnd(j.node,j.offset),D.addRange(M))}}}}for(H=[],D=p;D=D.parentNode;)D.nodeType===1&&H.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<H.length;p++){var k=H[p];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Ii=!!_c,Lc=_c=null}finally{Se=i,q.p=l,R.T=a}}e.current=t,We=2}}function Bh(){if(We===2){We=0;var e=Za,t=cn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=q.p;q.p=2;var i=Se;Se|=4;try{dh(e,t.alternate,t)}finally{Se=i,q.p=l,R.T=a}}We=3}}function Hh(){if(We===4||We===3){We=0,Ix();var e=Za,t=cn,a=wa,l=Eh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,cn=Za=null,qh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ga=null),Qr(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(zn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,i=q.p,q.p=2,R.T=null;try{for(var u=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];u(p.value,{componentStack:p.stack})}}finally{R.T=t,q.p=i}}(wa&3)!==0&&qi(),ea(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===wc?ds++:(ds=0,wc=e):ds=0,hs(0)}}function qh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kn(t)))}function qi(){return Uh(),Bh(),Hh(),Qh()}function Qh(){if(We!==5)return!1;var e=Za,t=bc;bc=0;var a=Qr(wa),l=R.T,i=q.p;try{q.p=32>a?32:a,R.T=null,a=yc,yc=null;var u=Za,f=wa;if(We=0,cn=Za=null,wa=0,(Se&6)!==0)throw Error(o(331));var p=Se;if(Se|=4,jh(u.current),bh(u,u.current,f,a),Se=p,hs(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(zn,u)}catch{}return!0}finally{q.p=i,R.T=l,qh(e,t)}}function Vh(e,t,a){t=Bt(a,t),t=Pu(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(Dn(e,2),ea(e))}function Ce(e,t,a){if(e.tag===3)Vh(e,e,a);else for(;t!==null;){if(t.tag===3){Vh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ga===null||!Ga.has(l))){e=Bt(a,e),a=Y0(2),l=Ba(t,a,2),l!==null&&(G0(a,l,t,e),Dn(l,2),ea(l));break}}t=t.return}}function Nc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Nb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(pc=!0,i.add(a),e=Mb.bind(null,e,t,a),t.then(e,e))}function Mb(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Te===e&&(me&a)===a&&(qe===4||qe===3&&(me&62914560)===me&&300>St()-_i?(Se&2)===0&&on(e,0):xc|=a,un===me&&(un=0)),ea(e)}function Yh(e,t){t===0&&(t=Uf()),e=dl(e,t),e!==null&&(Dn(e,t),ea(e))}function Tb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yh(e,a)}function zb(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Yh(e,a)}function Rb(e,t){return Ur(e,t)}var Qi=null,dn=null,Ec=!1,Vi=!1,Cc=!1,Ka=0;function ea(e){e!==dn&&e.next===null&&(dn===null?Qi=dn=e:dn=dn.next=e),Vi=!0,Ec||(Ec=!0,_b())}function hs(e,t){if(!Cc&&Vi){Cc=!0;do for(var a=!1,l=Qi;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var f=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-Et(42|e)+1)-1,u&=i&~(f&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Kh(l,u))}else u=me,u=Xs(l,l===Te?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Rn(l,u)||(a=!0,Kh(l,u));l=l.next}while(a);Cc=!1}}function Db(){Gh()}function Gh(){Vi=Ec=!1;var e=0;Ka!==0&&Gb()&&(e=Ka);for(var t=St(),a=null,l=Qi;l!==null;){var i=l.next,u=Zh(l,t);u===0?(l.next=null,a===null?Qi=i:a.next=i,i===null&&(dn=a)):(a=l,(e!==0||(u&3)!==0)&&(Vi=!0)),l=i}We!==0&&We!==5||hs(e),Ka!==0&&(Ka=0)}function Zh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Et(u),p=1<<f,w=i[f];w===-1?((p&a)===0||(p&l)!==0)&&(i[f]=ig(p,t)):w<=t&&(e.expiredLanes|=p),u&=~p}if(t=Te,a=me,a=Xs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Br(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Rn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Br(l),Qr(a)){case 2:case 8:a=Lf;break;case 32:a=Vs;break;case 268435456:a=kf;break;default:a=Vs}return l=Xh.bind(null,e),a=Ur(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Br(l),e.callbackPriority=2,e.callbackNode=null,2}function Xh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qi()&&e.callbackNode!==a)return null;var l=me;return l=Xs(e,e===Te?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ah(e,l,t),Zh(e,St()),e.callbackNode!=null&&e.callbackNode===a?Xh.bind(null,e):null)}function Kh(e,t){if(qi())return null;Ah(e,t,!0)}function _b(){Xb(function(){(Se&6)!==0?Ur(_f,Db):Gh()})}function Ac(){if(Ka===0){var e=Fl;e===0&&(e=Ys,Ys<<=1,(Ys&261888)===0&&(Ys=256)),Ka=e}return Ka}function $h(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fs(""+e)}function Jh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Lb(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var u=$h((i[vt]||null).action),f=l.submitter;f&&(t=(t=f[vt]||null)?$h(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var p=new ei("action","action",null,l,i);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ka!==0){var w=f?Jh(i,f):new FormData(i);Ku(a,{pending:!0,data:w,method:i.method,action:u},null,w)}}else typeof u=="function"&&(p.preventDefault(),w=f?Jh(i,f):new FormData(i),Ku(a,{pending:!0,data:w,method:i.method,action:u},u,w))},currentTarget:i}]})}}for(var Oc=0;Oc<ou.length;Oc++){var Mc=ou[Oc],kb=Mc.toLowerCase(),Ub=Mc[0].toUpperCase()+Mc.slice(1);Xt(kb,"on"+Ub)}Xt(Cd,"onAnimationEnd"),Xt(Ad,"onAnimationIteration"),Xt(Od,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Pg,"onTransitionRun"),Xt(eb,"onTransitionStart"),Xt(tb,"onTransitionCancel"),Xt(Md,"onTransitionEnd"),kl("onMouseEnter",["mouseout","mouseover"]),kl("onMouseLeave",["mouseout","mouseover"]),kl("onPointerEnter",["pointerout","pointerover"]),kl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ms));function Fh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],w=p.instance,T=p.currentTarget;if(p=p.listener,w!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=T;try{u(i)}catch(_){li(_)}i.currentTarget=null,u=w}else for(f=0;f<l.length;f++){if(p=l[f],w=p.instance,T=p.currentTarget,p=p.listener,w!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=T;try{u(i)}catch(_){li(_)}i.currentTarget=null,u=w}}}}function fe(e,t){var a=t[Vr];a===void 0&&(a=t[Vr]=new Set);var l=e+"__bubble";a.has(l)||(Wh(t,e,2,!1),a.add(l))}function Tc(e,t,a){var l=0;t&&(l|=4),Wh(a,e,l,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[Yi]){e[Yi]=!0,Gf.forEach(function(a){a!=="selectionchange"&&(Bb.has(a)||Tc(a,!1,e),Tc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,Tc("selectionchange",!1,t))}}function Wh(e,t,a,l){switch(Cm(t)){case 2:var i=d2;break;case 8:i=h2;break;default:i=Xc}a=i.bind(null,t,a,e),i=void 0,!Wr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Rc(e,t,a,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=l.return;f!==null;){var w=f.tag;if((w===3||w===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=Dl(p),f===null)return;if(w=f.tag,w===5||w===6||w===26||w===27){l=u=f;continue e}p=p.parentNode}}l=l.return}ad(function(){var T=u,_=Jr(a),H=[];e:{var z=Td.get(e);if(z!==void 0){var D=ei,J=e;switch(e){case"keypress":if(Is(a)===0)break e;case"keydown":case"keyup":D=zg;break;case"focusin":J="focus",D=tu;break;case"focusout":J="blur",D=tu;break;case"beforeblur":case"afterblur":D=tu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=bg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=_g;break;case Cd:case Ad:case Od:D=jg;break;case Md:D=kg;break;case"scroll":case"scrollend":D=xg;break;case"wheel":D=Bg;break;case"copy":case"cut":case"paste":D=Ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=rd;break;case"toggle":case"beforetoggle":D=qg}var ee=(t&4)!==0,Me=!ee&&(e==="scroll"||e==="scrollend"),C=ee?z!==null?z+"Capture":null:z;ee=[];for(var j=T,M;j!==null;){var k=j;if(M=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||M===null||C===null||(k=kn(j,C),k!=null&&ee.push(vs(j,k,M))),Me)break;j=j.return}0<ee.length&&(z=new D(z,J,null,a,_),H.push({event:z,listeners:ee}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",z&&a!==$r&&(J=a.relatedTarget||a.fromElement)&&(Dl(J)||J[Rl]))break e;if((D||z)&&(z=_.window===_?_:(z=_.ownerDocument)?z.defaultView||z.parentWindow:window,D?(J=a.relatedTarget||a.toElement,D=T,J=J?Dl(J):null,J!==null&&(Me=m(J),ee=J.tag,J!==Me||ee!==5&&ee!==27&&ee!==6)&&(J=null)):(D=null,J=T),D!==J)){if(ee=sd,k="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ee=rd,k="onPointerLeave",C="onPointerEnter",j="pointer"),Me=D==null?z:Ln(D),M=J==null?z:Ln(J),z=new ee(k,j+"leave",D,a,_),z.target=Me,z.relatedTarget=M,k=null,Dl(_)===T&&(ee=new ee(C,j+"enter",J,a,_),ee.target=M,ee.relatedTarget=Me,k=ee),Me=k,D&&J)t:{for(ee=Hb,C=D,j=J,M=0,k=C;k;k=ee(k))M++;k=0;for(var I=j;I;I=ee(I))k++;for(;0<M-k;)C=ee(C),M--;for(;0<k-M;)j=ee(j),k--;for(;M--;){if(C===j||j!==null&&C===j.alternate){ee=C;break t}C=ee(C),j=ee(j)}ee=null}else ee=null;D!==null&&Ih(H,z,D,ee,!1),J!==null&&Me!==null&&Ih(H,Me,J,ee,!0)}}e:{if(z=T?Ln(T):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var ye=vd;else if(hd(z))if(pd)ye=Fg;else{ye=$g;var W=Kg}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?T&&Kr(T.elementType)&&(ye=vd):ye=Jg;if(ye&&(ye=ye(e,T))){md(H,ye,a,_);break e}W&&W(e,z,T),e==="focusout"&&T&&z.type==="number"&&T.memoizedProps.value!=null&&Xr(z,"number",z.value)}switch(W=T?Ln(T):window,e){case"focusin":(hd(W)||W.contentEditable==="true")&&(Vl=W,ru=T,Gn=null);break;case"focusout":Gn=ru=Vl=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,Nd(H,a,_);break;case"selectionchange":if(Ig)break;case"keydown":case"keyup":Nd(H,a,_)}var ie;if(lu)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Ql?fd(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(ud&&a.locale!=="ko"&&(Ql||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ql&&(ie=ld()):(za=_,Ir="value"in za?za.value:za.textContent,Ql=!0)),W=Gi(T,ve),0<W.length&&(ve=new id(ve,e,null,a,_),H.push({event:ve,listeners:W}),ie?ve.data=ie:(ie=dd(a),ie!==null&&(ve.data=ie)))),(ie=Vg?Yg(e,a):Gg(e,a))&&(ve=Gi(T,"onBeforeInput"),0<ve.length&&(W=new id("onBeforeInput","beforeinput",null,a,_),H.push({event:W,listeners:ve}),W.data=ie)),Lb(H,e,T,a,_)}Fh(H,t)})}function vs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Gi(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=kn(e,a),i!=null&&l.unshift(vs(e,i,u)),i=kn(e,t),i!=null&&l.push(vs(e,i,u))),e.tag===3)return l;e=e.return}return[]}function Hb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ih(e,t,a,l,i){for(var u=t._reactName,f=[];a!==null&&a!==l;){var p=a,w=p.alternate,T=p.stateNode;if(p=p.tag,w!==null&&w===l)break;p!==5&&p!==26&&p!==27||T===null||(w=T,i?(T=kn(a,u),T!=null&&f.unshift(vs(a,T,w))):i||(T=kn(a,u),T!=null&&f.push(vs(a,T,w)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var qb=/\r\n?/g,Qb=/\u0000|\uFFFD/g;function Ph(e){return(typeof e=="string"?e:""+e).replace(qb,`
9
+ `).replace(Qb,"")}function em(e,t){return t=Ph(t),Ph(e)===t}function Oe(e,t,a,l,i,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Bl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Bl(e,""+l);break;case"className":$s(e,"class",l);break;case"tabIndex":$s(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":$s(e,a,l);break;case"style":ed(e,l,u);break;case"data":if(t!=="object"){$s(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&fe("scroll",e);break;case"onScrollEnd":l!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Fs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":fe("beforetoggle",e),fe("toggle",e),Ks(e,"popover",l);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ks(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=vg.get(a)||a,Ks(e,a,l))}}function Dc(e,t,a,l,i,u){switch(a){case"style":ed(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Bl(e,l):(typeof l=="number"||typeof l=="bigint")&&Bl(e,""+l);break;case"onScroll":l!=null&&fe("scroll",e);break;case"onScrollEnd":l!=null&&fe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[vt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ks(e,a,l)}}}function it(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var l=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,u,f,a,null)}}i&&Oe(e,t,"srcSet",a.srcSet,a,null),l&&Oe(e,t,"src",a.src,a,null);return;case"input":fe("invalid",e);var p=u=f=i=null,w=null,T=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":i=_;break;case"type":f=_;break;case"checked":w=_;break;case"defaultChecked":T=_;break;case"value":u=_;break;case"defaultValue":p=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:Oe(e,t,l,_,a,null)}}Ff(e,u,p,w,T,f,i,!1);return;case"select":fe("invalid",e),l=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(p=a[i],p!=null))switch(i){case"value":u=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Oe(e,t,i,p,a,null)}t=u,a=f,e.multiple=!!l,t!=null?Ul(e,!!l,t,!1):a!=null&&Ul(e,!!l,a,!0);return;case"textarea":fe("invalid",e),u=i=l=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":i=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Oe(e,t,f,p,a,null)}If(e,l,i,u);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Oe(e,t,w,l,a,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(l=0;l<ms.length;l++)fe(ms[l],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,T,l,a,null)}return;default:if(Kr(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&Dc(e,t,_,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Oe(e,t,p,l,a,null))}function Vb(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,p=null,w=null,T=null,_=null;for(D in a){var H=a[D];if(a.hasOwnProperty(D)&&H!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":w=H;default:l.hasOwnProperty(D)||Oe(e,t,D,null,l,H)}}for(var z in l){var D=l[z];if(H=a[z],l.hasOwnProperty(z)&&(D!=null||H!=null))switch(z){case"type":u=D;break;case"name":i=D;break;case"checked":T=D;break;case"defaultChecked":_=D;break;case"value":f=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:D!==H&&Oe(e,t,z,D,l,H)}}Zr(e,f,p,w,T,_,u,i);return;case"select":D=f=p=z=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":D=w;default:l.hasOwnProperty(u)||Oe(e,t,u,null,l,w)}for(i in l)if(u=l[i],w=a[i],l.hasOwnProperty(i)&&(u!=null||w!=null))switch(i){case"value":z=u;break;case"defaultValue":p=u;break;case"multiple":f=u;default:u!==w&&Oe(e,t,i,u,l,w)}t=p,a=f,l=D,z!=null?Ul(e,!!a,z,!1):!!l!=!!a&&(t!=null?Ul(e,!!a,t,!0):Ul(e,!!a,a?[]:"",!1));return;case"textarea":D=z=null;for(p in a)if(i=a[p],a.hasOwnProperty(p)&&i!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Oe(e,t,p,null,l,i)}for(f in l)if(i=l[f],u=a[f],l.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":z=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Oe(e,t,f,i,l,u)}Wf(e,z,D);return;case"option":for(var J in a)if(z=a[J],a.hasOwnProperty(J)&&z!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Oe(e,t,J,null,l,z)}for(w in l)if(z=l[w],D=a[w],l.hasOwnProperty(w)&&z!==D&&(z!=null||D!=null))switch(w){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Oe(e,t,w,z,l,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ee in a)z=a[ee],a.hasOwnProperty(ee)&&z!=null&&!l.hasOwnProperty(ee)&&Oe(e,t,ee,null,l,z);for(T in l)if(z=l[T],D=a[T],l.hasOwnProperty(T)&&z!==D&&(z!=null||D!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Oe(e,t,T,z,l,D)}return;default:if(Kr(t)){for(var Me in a)z=a[Me],a.hasOwnProperty(Me)&&z!==void 0&&!l.hasOwnProperty(Me)&&Dc(e,t,Me,void 0,l,z);for(_ in l)z=l[_],D=a[_],!l.hasOwnProperty(_)||z===D||z===void 0&&D===void 0||Dc(e,t,_,z,l,D);return}}for(var C in a)z=a[C],a.hasOwnProperty(C)&&z!=null&&!l.hasOwnProperty(C)&&Oe(e,t,C,null,l,z);for(H in l)z=l[H],D=a[H],!l.hasOwnProperty(H)||z===D||z==null&&D==null||Oe(e,t,H,z,l,D)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Yb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],u=i.transferSize,f=i.initiatorType,p=i.duration;if(u&&p&&tm(f)){for(f=0,p=i.responseEnd,l+=1;l<a.length;l++){var w=a[l],T=w.startTime;if(T>p)break;var _=w.transferSize,H=w.initiatorType;_&&tm(H)&&(w=w.responseEnd,f+=_*(w<p?1:(p-T)/(w-T)))}if(--l,t+=8*(u+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,Lc=null;function Zi(e){return e.nodeType===9?e:e.ownerDocument}function am(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uc=null;function Gb(){var e=window.event;return e&&e.type==="popstate"?e===Uc?!1:(Uc=e,!0):(Uc=null,!1)}var nm=typeof setTimeout=="function"?setTimeout:void 0,Zb=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,Xb=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Kb)}:nm;function Kb(e){setTimeout(function(){throw e})}function $a(e){return e==="head"}function im(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),pn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ps(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ps(a);for(var u=a.firstChild;u;){var f=u.nextSibling,p=u.nodeName;u[_n]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&ps(e.ownerDocument.body);a=i}while(a);pn(t)}function rm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bc(a),Yr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $b(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[_n])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function Jb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Hc(e){return e.data==="$?"||e.data==="$~"}function qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Qc=null;function cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=Zi(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yr(e)}var Gt=new Map,dm=new Set;function Xi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=q.d;q.d={f:Wb,r:Ib,D:Pb,C:e2,L:t2,m:a2,X:n2,S:l2,M:s2};function Wb(){var e=ja.f(),t=Ui();return e||t}function Ib(e){var t=_l(e);t!==null&&t.tag===5&&t.type==="form"?M0(t):ja.r(e)}var hn=typeof document>"u"?null:document;function hm(e,t,a){var l=hn;if(l&&typeof t=="string"&&t){var i=kt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),dm.has(i)||(dm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),it(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Pb(e){ja.D(e),hm("dns-prefetch",e,null)}function e2(e,t){ja.C(e,t),hm("preconnect",e,t)}function t2(e,t,a){ja.L(e,t,a);var l=hn;if(l&&e&&t){var i='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+kt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+kt(a.imageSizes)+'"]')):i+='[href="'+kt(e)+'"]';var u=i;switch(t){case"style":u=mn(e);break;case"script":u=vn(e)}Gt.has(u)||(e=E({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(xs(u))||t==="script"&&l.querySelector(gs(u))||(t=l.createElement("link"),it(t,"link",e),Pe(t),l.head.appendChild(t)))}}function a2(e,t){ja.m(e,t);var a=hn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+kt(l)+'"][href="'+kt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=vn(e)}if(!Gt.has(u)&&(e=E({rel:"modulepreload",href:e},t),Gt.set(u,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gs(u)))return}l=a.createElement("link"),it(l,"link",e),Pe(l),a.head.appendChild(l)}}}function l2(e,t,a){ja.S(e,t,a);var l=hn;if(l&&e){var i=Ll(l).hoistableStyles,u=mn(e);t=t||"default";var f=i.get(u);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(xs(u)))p.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(u))&&Vc(e,a);var w=f=l.createElement("link");Pe(w),it(w,"link",e),w._p=new Promise(function(T,_){w.onload=T,w.onerror=_}),w.addEventListener("load",function(){p.loading|=1}),w.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Ki(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(u,f)}}}function n2(e,t){ja.X(e,t);var a=hn;if(a&&e){var l=Ll(a).hoistableScripts,i=vn(e),u=l.get(i);u||(u=a.querySelector(gs(i)),u||(e=E({src:e,async:!0},t),(t=Gt.get(i))&&Yc(e,t),u=a.createElement("script"),Pe(u),it(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function s2(e,t){ja.M(e,t);var a=hn;if(a&&e){var l=Ll(a).hoistableScripts,i=vn(e),u=l.get(i);u||(u=a.querySelector(gs(i)),u||(e=E({src:e,async:!0,type:"module"},t),(t=Gt.get(i))&&Yc(e,t),u=a.createElement("script"),Pe(u),it(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function mm(e,t,a,l){var i=(i=re.current)?Xi(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=mn(a.href),a=Ll(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=mn(a.href);var u=Ll(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(xs(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Gt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gt.set(e,a),u||i2(i,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vn(a),a=Ll(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function mn(e){return'href="'+kt(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function vm(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function i2(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),Pe(t),e.head.appendChild(t))}function vn(e){return'[src="'+kt(e)+'"]'}function gs(e){return"script[async]"+e}function pm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+kt(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var i=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),it(l,"style",i),Ki(l,a.precedence,e),t.instance=l;case"stylesheet":i=mn(a.href);var u=e.querySelector(xs(i));if(u)return t.state.loading|=4,t.instance=u,Pe(u),u;l=vm(a),(i=Gt.get(i))&&Vc(l,i),u=(e.ownerDocument||e).createElement("link"),Pe(u);var f=u;return f._p=new Promise(function(p,w){f.onload=p,f.onerror=w}),it(u,"link",l),t.state.loading|=4,Ki(u,a.precedence,e),t.instance=u;case"script":return u=vn(a.src),(i=e.querySelector(gs(u)))?(t.instance=i,Pe(i),i):(l=a,(i=Gt.get(u))&&(l=E({},a),Yc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Pe(i),it(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ki(l,a.precedence,e));return t.instance}function Ki(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)u=p;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $i=null;function xm(e,t,a){if($i===null){var l=new Map,i=$i=new Map;i.set(a,l)}else i=$i,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[_n]||u[at]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(u):l.set(f,[u])}}return l}function gm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function r2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function u2(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=mn(l.href),u=t.querySelector(xs(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ji.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Pe(u);return}u=t.ownerDocument||t,l=vm(l),(i=Gt.get(i))&&Vc(l,i),u=u.createElement("link"),Pe(u);var f=u;f._p=new Promise(function(p,w){f.onload=p,f.onerror=w}),it(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ji.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Gc=0;function c2(e,t){return e.stylesheets&&e.count===0&&Wi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Wi(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Gc===0&&(Gc=62500*Yb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wi(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Gc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Ji(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fi=null;function Wi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fi=new Map,t.forEach(o2,e),Fi=null,Ji.call(e))}function o2(e,t){if(!(t.state.loading&4)){var a=Fi.get(e);if(a)var l=a.get(null);else{a=new Map,Fi.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||l,u===l&&a.set(null,i),a.set(f,i),this.count++,l=Ji.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var bs={$$typeof:F,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function f2(e,t,a,l,i,u,f,p,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hr(0),this.hiddenUpdates=Hr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function ym(e,t,a,l,i,u,f,p,w,T,_,H){return e=new f2(e,t,a,f,w,T,_,H,p),t=1,u===!0&&(t|=24),u=At(3,null,null,t),e.current=u,u.stateNode=e,t=Su(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Au(u),e}function wm(e){return e?(e=Zl,e):Zl}function jm(e,t,a,l,i,u){i=wm(i),l.context===null?l.context=i:l.pendingContext=i,l=Ua(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Ba(e,l,t),a!==null&&(wt(a,e,t),Wn(a,e,t))}function Sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Zc(e,t){Sm(e,t),(e=e.alternate)&&Sm(e,t)}function Nm(e){if(e.tag===13||e.tag===31){var t=dl(e,67108864);t!==null&&wt(t,e,67108864),Zc(e,67108864)}}function Em(e){if(e.tag===13||e.tag===31){var t=Rt();t=qr(t);var a=dl(e,t);a!==null&&wt(a,e,t),Zc(e,t)}}var Ii=!0;function d2(e,t,a,l){var i=R.T;R.T=null;var u=q.p;try{q.p=2,Xc(e,t,a,l)}finally{q.p=u,R.T=i}}function h2(e,t,a,l){var i=R.T;R.T=null;var u=q.p;try{q.p=8,Xc(e,t,a,l)}finally{q.p=u,R.T=i}}function Xc(e,t,a,l){if(Ii){var i=Kc(l);if(i===null)Rc(e,t,l,Pi,a),Am(e,l);else if(v2(i,e,t,a,l))l.stopPropagation();else if(Am(e,l),t&4&&-1<m2.indexOf(e)){for(;i!==null;){var u=_l(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=rl(u.pendingLanes);if(f!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var w=1<<31-Et(f);p.entanglements[1]|=w,f&=~w}ea(u),(Se&6)===0&&(Li=St()+500,hs(0))}}break;case 31:case 13:p=dl(u,2),p!==null&&wt(p,u,2),Ui(),Zc(u,2)}if(u=Kc(l),u===null&&Rc(e,t,l,Pi,a),u===i)break;i=u}i!==null&&l.stopPropagation()}else Rc(e,t,l,null,a)}}function Kc(e){return e=Jr(e),$c(e)}var Pi=null;function $c(e){if(Pi=null,e=Dl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pi=e,null}function Cm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Px()){case _f:return 2;case Lf:return 8;case Vs:case eg:return 32;case kf:return 268435456;default:return 32}default:return 32}}var Jc=!1,Ja=null,Fa=null,Wa=null,ys=new Map,ws=new Map,Ia=[],m2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Am(e,t){switch(e){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(t.pointerId)}}function js(e,t,a,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=_l(t),t!==null&&Nm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function v2(e,t,a,l,i){switch(t){case"focusin":return Ja=js(Ja,e,t,a,l,i),!0;case"dragenter":return Fa=js(Fa,e,t,a,l,i),!0;case"mouseover":return Wa=js(Wa,e,t,a,l,i),!0;case"pointerover":var u=i.pointerId;return ys.set(u,js(ys.get(u)||null,e,t,a,l,i)),!0;case"gotpointercapture":return u=i.pointerId,ws.set(u,js(ws.get(u)||null,e,t,a,l,i)),!0}return!1}function Om(e){var t=Dl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Vf(e.priority,function(){Em(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Vf(e.priority,function(){Em(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Kc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);$r=l,a.target.dispatchEvent(l),$r=null}else return t=_l(a),t!==null&&Nm(t),e.blockedOn=a,!1;t.shift()}return!0}function Mm(e,t,a){er(e)&&a.delete(t)}function p2(){Jc=!1,Ja!==null&&er(Ja)&&(Ja=null),Fa!==null&&er(Fa)&&(Fa=null),Wa!==null&&er(Wa)&&(Wa=null),ys.forEach(Mm),ws.forEach(Mm)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,p2)))}var ar=null;function Tm(e){ar!==e&&(ar=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ar===e&&(ar=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if($c(l||a)===null)continue;break}var u=_l(a);u!==null&&(e.splice(t,3),t-=3,Ku(u,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function pn(e){function t(w){return tr(w,e)}Ja!==null&&tr(Ja,e),Fa!==null&&tr(Fa,e),Wa!==null&&tr(Wa,e),ys.forEach(t),ws.forEach(t);for(var a=0;a<Ia.length;a++){var l=Ia[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ia.length&&(a=Ia[0],a.blockedOn===null);)Om(a),a.blockedOn===null&&Ia.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],u=a[l+1],f=i[vt]||null;if(typeof u=="function")f||Tm(a);else if(f){var p=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[vt]||null)p=f.formAction;else if($c(i)!==null)continue}else p=f.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Tm(a)}}}function zm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Fc(e){this._internalRoot=e}lr.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Rt();jm(a,l,e,t,null,null)},lr.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jm(e.current,2,null,e,null,null),Ui(),t[Rl]=null}};function lr(e){this._internalRoot=e}lr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ia.length&&t!==0&&t<Ia[a].priority;a++);Ia.splice(a,0,e),a===0&&Om(e)}};var Rm=s.version;if(Rm!=="19.2.4")throw Error(o(527,Rm,"19.2.4"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var x2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nr.isDisabled&&nr.supportsFiber)try{zn=nr.inject(x2),Nt=nr}catch{}}return bn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var a=!1,l="",i=H0,u=q0,f=Q0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=ym(e,1,!1,null,null,a,l,null,i,u,f,zm),e[Rl]=t.current,zc(e),new Fc(t)},bn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(o(299));var l=!1,i="",u=H0,f=q0,p=Q0,w=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=ym(e,1,!0,t,a??null,l,i,w,u,f,p,zm),t.context=wm(null),a=t.current,l=Rt(),l=qr(l),i=Ua(l),i.callback=null,Ba(a,i,l),a=l,t.current.lanes=a,Dn(t,a),ea(t),e[Rl]=t.current,zc(e),new lr(t)},bn.version="19.2.4",bn}var To;function Nv(){if(To)return gr.exports;To=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),gr.exports=Sv(),gr.exports}var Ev=Nv();const Cv=Wc(Ev);function Av({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const Ov=h.forwardRef(Av);function Mv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Tv=h.forwardRef(Mv);function zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Al=h.forwardRef(zv);function Rv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Dv=h.forwardRef(Rv);function _v({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const Lv=h.forwardRef(_v);function kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const zo=h.forwardRef(kv);function Uv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))}const Bv=h.forwardRef(Uv);function Hv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}const qv=h.forwardRef(Hv);function Qv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Vv=h.forwardRef(Qv);function Yv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Gv=h.forwardRef(Yv);function Zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Xv=h.forwardRef(Zv);function Kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const $v=h.forwardRef(Kv);function Jv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Fv=h.forwardRef(Jv);function Wv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const aa=h.forwardRef(Wv);function Iv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const As=h.forwardRef(Iv);function Pv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const yn=h.forwardRef(Pv);function ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const tp=h.forwardRef(ep);function ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Ol=h.forwardRef(ap);function lp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const np=h.forwardRef(lp);function sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Os=h.forwardRef(sp);function ip({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const rp=h.forwardRef(ip);function up({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const cp=h.forwardRef(up);function op({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const wn=h.forwardRef(op);function fp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))}const Ro=h.forwardRef(fp);function dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const Ms=h.forwardRef(dp);function hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5h3m-6.75 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-15a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 4.5v15a2.25 2.25 0 0 0 2.25 2.25Z"}))}const jr=h.forwardRef(hp);function mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))}const vp=h.forwardRef(mp);function pp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const la=h.forwardRef(pp);function xp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const gp=h.forwardRef(xp);function bp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const Do=h.forwardRef(bp);function yp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const wp=h.forwardRef(yp);function jp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const _o=h.forwardRef(jp);function Sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Sr=h.forwardRef(Sp);function Np({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Lo=h.forwardRef(Np);function Ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const ko=h.forwardRef(Ep);function Cp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Uo=h.forwardRef(Cp);function Ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Op=h.forwardRef(Ap);function Mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const Bo=h.forwardRef(Mp);function Tp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const zp=h.forwardRef(Tp);function Rp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Nr=h.forwardRef(Rp);function Dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Ho=h.forwardRef(Dp);function _p({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const Lp=h.forwardRef(_p);function kp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const Up=h.forwardRef(kp);function Bp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const Hp=h.forwardRef(Bp);function qp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const Qp=h.forwardRef(qp);function Vp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"}))}const Yp=h.forwardRef(Vp);function Gp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const jn=h.forwardRef(Gp);function Zp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Zt=h.forwardRef(Zp);function Xp(n,s){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,d,m,v=[],g="",b=n.split("/");for(b[0]||b.shift();d=b.shift();)c=d[0],c==="*"?(v.push(c),g+=d[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=d.indexOf("?",1),m=d.indexOf(".",1),v.push(d.substring(1,~o?o:~m?m:d.length)),g+=~o&&!~m?"(?:/([^/]+?))?":"/([^/]+?)",~m&&(g+=(~o?"?":"")+"\\"+d.substring(m))):g+="/"+d;return{keys:v,pattern:new RegExp("^"+g+(s?"(?=$|/)":"/?$"),"i")}}var Er={exports:{}},Cr={};var qo;function Kp(){if(qo)return Cr;qo=1;var n=Cs();function s(E,N){return E===N&&(E!==0||1/E===1/N)||E!==E&&N!==N}var c=typeof Object.is=="function"?Object.is:s,o=n.useState,d=n.useEffect,m=n.useLayoutEffect,v=n.useDebugValue;function g(E,N){var L=N(),A=o({inst:{value:L,getSnapshot:N}}),O=A[0].inst,Q=A[1];return m(function(){O.value=L,O.getSnapshot=N,b(O)&&Q({inst:O})},[E,L,N]),d(function(){return b(O)&&Q({inst:O}),E(function(){b(O)&&Q({inst:O})})},[E]),v(L),L}function b(E){var N=E.getSnapshot;E=E.value;try{var L=N();return!c(E,L)}catch{return!0}}function x(E,N){return N()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:g;return Cr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Cr}var Qo;function $p(){return Qo||(Qo=1,Er.exports=Kp()),Er.exports}var Jp=$p();const Fp=rv.useInsertionEffect,Wp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,Ip=Fp||Wp,Vo=n=>{const s=h.useRef([n,(...c)=>s[0](...c)]).current;return Ip(()=>{s[0]=n}),s[1]},Pp="popstate",Ar="pushState",Or="replaceState",Yo=[Pp,Ar,Or,"hashchange"],e1=n=>{for(const s of Yo)addEventListener(s,n);return()=>{for(const s of Yo)removeEventListener(s,n)}},Go=(n,s)=>Jp.useSyncExternalStore(e1,n,s),Zo=()=>location.search,t1=({ssrSearch:n}={})=>Go(Zo,n!=null?()=>n:Zo),Xo=()=>location.pathname,a1=({ssrPath:n}={})=>Go(Xo,n!=null?()=>n:Xo),l1=(n,{replace:s=!1,state:c=null}={})=>history[s?Or:Ar](c,"",n),n1=(n={})=>[a1(n),l1],Ko=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ko]>"u"){for(const n of[Ar,Or]){const s=history[n];history[n]=function(){const c=s.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,Ko,{value:!0})}const s1=(n,s)=>s.toLowerCase().indexOf(n.toLowerCase())?"~"+s:s.slice(n.length)||"/",$o=(n="")=>n==="/"?"":n,i1=(n,s)=>n[0]==="~"?n.slice(1):$o(s)+n,r1=(n="",s)=>s1(Jo($o(n)),Jo(s)),Jo=n=>{try{return decodeURI(n)}catch{return n}},Fo={hook:n1,searchHook:t1,parser:Xp,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,s,c)=>n(s,c)},Wo=h.createContext(Fo),Ml=()=>h.useContext(Wo),Io={},Po=h.createContext(Io),u1=()=>h.useContext(Po),Ts=n=>{const[s,c]=n.hook(n);return[r1(n.base,s),Vo((o,d)=>n.aroundNav(c,i1(o,n.base),d))]},zs=()=>Ts(Ml()),Mr=(n,s,c,o)=>{const{pattern:d,keys:m}=s instanceof RegExp?{keys:!1,pattern:s}:n(s||"*",o),v=d.exec(c)||[],[g,...b]=v;return g!==void 0?[!0,(()=>{const x=m!==!1?Object.fromEntries(m.map((E,N)=>[E,b[N]])):v.groups;let y={...b};return x&&Object.assign(y,x),y})(),...o?[g]:[]]:[!1,null]},c1=n=>Mr(Ml().parser,n,zs()[0]),o1=({children:n,...s})=>{const c=Ml(),o=s.hook?Fo:c;let d=o;const[m,v=s.ssrSearch??""]=s.ssrPath?.split("?")??[];m&&(s.ssrSearch=v,s.ssrPath=m),s.hrefs=s.hrefs??s.hook?.hrefs,s.searchHook=s.searchHook??s.hook?.searchHook;let g=h.useRef({}),b=g.current,x=b;for(let y in o){const E=y==="base"?o[y]+(s[y]??""):s[y]??o[y];b===x&&E!==x[y]&&(g.current=x={...x}),x[y]=E,(E!==o[y]||E!==d[y])&&(d=x)}return h.createElement(Wo.Provider,{value:d,children:n})},ef=({children:n,component:s},c)=>s?h.createElement(s,{params:c}):typeof n=="function"?n(c):n,f1=n=>{let s=h.useRef(Io);const c=s.current;return s.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,d])=>d!==c[o])?n:c},Sn=({path:n,nest:s,match:c,...o})=>{const d=Ml(),[m]=Ts(d),[v,g,b]=c??Mr(d.parser,n,m,s),x=f1({...u1(),...g});if(!v)return null;const y=b?h.createElement(o1,{base:b},ef(o,x)):ef(o,x);return h.createElement(Po.Provider,{value:x,children:y})};h.forwardRef((n,s)=>{const c=Ml(),[o,d]=Ts(c),{to:m="",href:v=m,onClick:g,asChild:b,children:x,className:y,replace:E,state:N,transition:L,...A}=n,O=Vo(U=>{U.ctrlKey||U.metaKey||U.altKey||U.shiftKey||U.button!==0||(g?.(U),U.defaultPrevented||(U.preventDefault(),d(v,n)))}),Q=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return b&&h.isValidElement(x)?h.cloneElement(x,{onClick:O,href:Q}):h.createElement("a",{...A,onClick:O,href:Q,className:y?.call?y(o===v):y,children:x,ref:s})});const tf=n=>Array.isArray(n)?n.flatMap(s=>tf(s&&s.type===h.Fragment?s.props.children:s)):[n],af=({children:n,location:s})=>{const c=Ml(),[o]=Ts(c);for(const d of tf(n)){let m=0;if(h.isValidElement(d)&&(m=Mr(c.parser,d.props.path,s||o,d.props.nest))[0])return h.cloneElement(d,{match:m})}return null};async function ut(n,s={}){const c=await fetch(n,{...s,headers:{"Content-Type":"application/json",...s.headers}}),o=await c.json();if(!c.ok){const d=new Error(o.error||"Request failed");throw d.status=c.status,d.data=o,d}return o}const Na={async getReportData(){return ut("/api/report-data")},async getComparison(n){return ut(`/api/comparison/${encodeURIComponent(n)}`)},async acceptBaseline(n){return ut("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return ut("/api/baseline/accept-all",{method:"POST"})},async rejectBaseline(n){return ut("/api/baseline/reject",{method:"POST",body:JSON.stringify({id:n})})},async resetBaselines(){return ut("/api/baseline/reset",{method:"POST"})},async deleteComparison(n){return ut("/api/baseline/delete",{method:"POST",body:JSON.stringify({id:n})})},async downloadBaselines(n,s,c){return ut("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:s,projectSlug:c})})}},lf={async get(){return ut("/api/config")},async updateProject(n){return ut("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},Tr={async getStatus(){return ut("/api/auth/status")},async initiateLogin(){return ut("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return ut("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return ut("/api/auth/logout",{method:"POST"})}},nf={async list(){return ut("/api/projects")},async getBuilds(n,s,c={}){const o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);const d=o.toString(),m=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(s)}/builds${d?`?${d}`:""}`;return ut(m)}},de={auth:["auth"],authStatus:()=>[...de.auth,"status"],config:["config"],projectConfig:()=>[...de.config,"project"],globalConfig:()=>[...de.config,"global"],tdd:["tdd"],reportData:()=>[...de.tdd,"report"],comparison:n=>[...de.tdd,"comparison",n],cloud:["cloud"],projects:()=>[...de.cloud,"projects"],builds:(n,s)=>[...de.cloud,"builds",n,s]};let nl={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected",ERROR:"error"},sf=h.createContext(null);function d1({enabled:n=!0,children:s}){let c=_t(),o=h.useRef(null),d=h.useRef(0),m=h.useRef(null),[v,g]=h.useState(nl.DISCONNECTED),[b,x]=h.useState(null);return h.useEffect(()=>{if(!n){o.current&&(o.current.close(),o.current=null),g(nl.DISCONNECTED);return}let y=()=>{if(o.current&&o.current.readyState!==2)return;g(nl.CONNECTING),x(null);let E=new EventSource("/api/events");o.current=E,E.onopen=()=>{g(nl.CONNECTED),x(null),d.current=0},E.addEventListener("reportData",N=>{try{let L=JSON.parse(N.data);c.setQueryData(de.reportData(),L)}catch{}}),E.addEventListener("comparisonUpdate",N=>{try{let L=JSON.parse(N.data);c.setQueryData(de.reportData(),A=>{if(!A)return A;let O=A.comparisons||[],Q=O.findIndex(U=>U.id===L.id);return Q>=0?O=O.map((U,V)=>V===Q?{...U,...L}:U):O=[...O,L],{...A,comparisons:O}})}catch{}}),E.addEventListener("comparisonRemoved",N=>{try{let{id:L}=JSON.parse(N.data);c.setQueryData(de.reportData(),A=>A?.comparisons?{...A,comparisons:A.comparisons.filter(O=>O.id!==L)}:A)}catch{}}),E.addEventListener("summaryUpdate",N=>{try{let L=JSON.parse(N.data);c.setQueryData(de.reportData(),A=>A&&{...A,...L,comparisons:A.comparisons})}catch{}}),E.addEventListener("heartbeat",()=>{}),E.onerror=()=>{E.close(),o.current=null,g(nl.ERROR),x(new Error("SSE connection failed"));let N=d.current,L=Math.min(1e3*2**N,3e4);d.current=N+1,m.current=window.setTimeout(()=>{y()},L)}};return y(),()=>{m.current&&(clearTimeout(m.current),m.current=null),o.current&&(o.current.close(),o.current=null),g(nl.DISCONNECTED)}},[n,c]),r.jsx(sf.Provider,{value:{state:v,error:b},children:s})}function h1(){let n=h.useContext(sf);if(!n)throw new Error("useSSEState must be used within SSEProvider");return n}function m1(n,s={}){return Cl({queryKey:de.comparison(n),queryFn:()=>Na.getComparison(n),enabled:!!n,staleTime:1e4,...s})}function Rs(n={}){let{state:s}=h1(),c=s===nl.CONNECTED;return Cl({queryKey:de.reportData(),queryFn:Na.getReportData,refetchInterval:n.polling!==!1&&!c?2e3:!1,...n})}function rf(){const n=_t();return ta({mutationFn:s=>Na.acceptBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:de.reportData()});const c=n.getQueryData(de.reportData());return n.setQueryData(de.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"accepted"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(de.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:de.tdd})}})}function uf(){const n=_t();return ta({mutationFn:()=>Na.acceptAllBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:de.tdd})}})}function v1(){const n=_t();return ta({mutationFn:()=>Na.resetBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:de.tdd})}})}function cf(){const n=_t();return ta({mutationFn:s=>Na.rejectBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:de.reportData()});const c=n.getQueryData(de.reportData());return n.setQueryData(de.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"rejected"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(de.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:de.tdd})}})}function p1(){const n=_t();return ta({mutationFn:s=>Na.deleteComparison(s),onSuccess:()=>{n.invalidateQueries({queryKey:de.tdd})}})}function x1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const g1=h.forwardRef(x1);function of({variant:n="info",title:s,children:c,dismissible:o=!1,onDismiss:d,icon:m,className:v="",...g}){const b={success:{container:"bg-emerald-500/10 border-emerald-500/20",icon:"text-emerald-400",title:"text-emerald-300",text:"text-emerald-200/80",DefaultIcon:aa},warning:{container:"bg-amber-500/10 border-amber-500/20",icon:"text-amber-400",title:"text-amber-300",text:"text-amber-200/80",DefaultIcon:la},danger:{container:"bg-red-500/10 border-red-500/20",icon:"text-red-400",title:"text-red-300",text:"text-red-200/80",DefaultIcon:jn},info:{container:"bg-blue-500/10 border-blue-500/20",icon:"text-blue-400",title:"text-blue-300",text:"text-blue-200/80",DefaultIcon:Sr}},{container:x,icon:y,title:E,text:N,DefaultIcon:L}=b[n],A=m||L;return r.jsxs("div",{className:`flex gap-3 p-4 rounded-lg border ${x} ${v}`,...g,children:[r.jsx("div",{className:`flex-shrink-0 ${y}`,children:r.jsx(A,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[s&&r.jsx("h4",{className:`text-sm font-medium ${E}`,children:s}),c&&r.jsx("div",{className:`text-sm ${N} ${s?"mt-1":""}`,children:c})]}),o&&r.jsx("button",{onClick:d,className:`flex-shrink-0 ${y} hover:opacity-70 transition-opacity`,children:r.jsx(Zt,{className:"w-5 h-5"})})]})}function ff({variant:n="approve",isActive:s=!1,onClick:c,disabled:o=!1,loading:d=!1,compact:m=!1,showLabel:v=!0,className:g="",testId:b}){const x={approve:{label:"Approve",icon:As,activeClasses:"bg-emerald-500 text-white shadow-lg shadow-emerald-500/20",inactiveClasses:"text-slate-400 hover:text-emerald-400 hover:bg-emerald-500/10",dotColor:"bg-emerald-500"},reject:{label:"Reject",icon:Zt,activeClasses:"bg-red-500 text-white shadow-lg shadow-red-500/20",inactiveClasses:"text-slate-400 hover:text-red-400 hover:bg-red-500/10",dotColor:"bg-red-500"}}[n],y=x.icon;let E=b||`btn-${n}`;return m?r.jsx("button",{onClick:c,disabled:o||d,className:`
10
10
  flex items-center justify-center
11
11
  p-2 sm:px-3 sm:py-1.5
12
12
  rounded-lg text-sm font-medium
@@ -22,7 +22,7 @@ Error generating stack: `+l.message+`
22
22
  disabled:opacity-50 disabled:cursor-not-allowed
23
23
  ${s?x.activeClasses:x.inactiveClasses}
24
24
  ${g}
25
- `,"aria-pressed":s,"data-testid":E,"data-active":s,children:[d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsx("span",{className:`w-2 h-2 rounded-full ${s?"bg-white":x.dotColor}`}),v&&r.jsx("span",{children:x.label})]})}function pp({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,compact:m=!1,className:v=""}){const g=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`flex items-center gap-1 ${v}`,children:[c&&r.jsx(of,{variant:"reject",isActive:b,onClick:c,disabled:o,loading:d&&b,compact:m}),s&&r.jsx(of,{variant:"approve",isActive:g,onClick:s,disabled:o,loading:d&&g,compact:m})]})}function xp({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,className:m="",testIdPrefix:v="mobile"}){const g=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`
25
+ `,"aria-pressed":s,"data-testid":E,"data-active":s,children:[d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsx("span",{className:`w-2 h-2 rounded-full ${s?"bg-white":x.dotColor}`}),v&&r.jsx("span",{children:x.label})]})}function b1({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,compact:m=!1,className:v=""}){const g=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`flex items-center gap-1 ${v}`,children:[c&&r.jsx(ff,{variant:"reject",isActive:b,onClick:c,disabled:o,loading:d&&b,compact:m}),s&&r.jsx(ff,{variant:"approve",isActive:g,onClick:s,disabled:o,loading:d&&g,compact:m})]})}function y1({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,className:m="",testIdPrefix:v="mobile"}){const g=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`
26
26
  flex items-stretch gap-2
27
27
  px-3 py-2.5
28
28
  ${m}
@@ -42,7 +42,7 @@ Error generating stack: `+l.message+`
42
42
  transition-all duration-150 active:scale-[0.98]
43
43
  disabled:opacity-50 disabled:cursor-not-allowed
44
44
  ${g?"bg-emerald-500 text-white shadow-md shadow-emerald-500/25 ring-1 ring-emerald-400/30":"bg-slate-800/80 text-slate-300 hover:bg-slate-700/80 active:bg-emerald-500/20 active:text-emerald-400"}
45
- `,children:[r.jsx(As,{className:"w-5 h-5"}),r.jsx("span",{children:"Approve"})]})]})}function mt({children:n,variant:s="default",size:c="sm",dot:o=!1,pulseDot:d=!1,className:m="",...v}){const g={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},b={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},x={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},y=["inline-flex items-center gap-1.5 font-medium rounded-full border",g[s],x[c],m].filter(Boolean).join(" ");return r.jsxs("span",{className:y,...v,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[d&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${b[s]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${b[s]}`})]}),n]})}const Fe="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/75.0.1";function gp(n){switch(n){case"chrome":return`${Fe}/chrome/chrome.svg`;case"firefox":return`${Fe}/firefox/firefox.svg`;case"safari":return`${Fe}/safari/safari.svg`;case"safari-ios":case"safari_ios":case"ios":case"mobile safari":return`${Fe}/safari-ios/safari-ios.svg`;case"edge":return`${Fe}/edge/edge.svg`;case"opera":return`${Fe}/opera/opera.svg`;case"brave":return`${Fe}/brave/brave.svg`;case"vivaldi":return`${Fe}/vivaldi/vivaldi.svg`;case"chromium":return`${Fe}/chromium/chromium.svg`;case"webkit":return`${Fe}/webkit/webkit.svg`;case"samsung":case"samsung internet":case"samsung-internet":return`${Fe}/samsung-internet/samsung-internet.svg`;case"chrome-android":case"chrome_android":case"android chrome":return`${Fe}/chrome/chrome.svg`;case"firefox-android":case"firefox_android":case"android firefox":return`${Fe}/firefox/firefox.svg`;case"android":case"android browser":return`${Fe}/android/android.svg`;case"ie":case"internet explorer":return`${Fe}/archive/internet-explorer_9-11/internet-explorer_9-11.svg`;case"tor":return`${Fe}/tor/tor.svg`;case"duckduckgo":return`${Fe}/duckduckgo/duckduckgo.svg`;case"yandex":return`${Fe}/yandex/yandex.svg`;case"uc":case"uc browser":return`${Fe}/uc/uc.svg`;default:return null}}function Nn({browser:n,className:s="w-4 h-4",fallbackClassName:c=""}){if(!n)return null;const o=n.toLowerCase(),d=gp(o);return d?r.jsx("img",{src:d,alt:`${n} browser`,className:s,title:n,onError:m=>{m.target.style.display="none",m.target.nextSibling?.style.removeProperty("display")}}):r.jsxs(r.Fragment,{children:[r.jsx("img",{style:{display:"none"},alt:""}),r.jsx(_o,{className:`${s} ${c}`,title:n||"Unknown browser"})]})}function ut({children:n,variant:s="primary",size:c="md",disabled:o=!1,loading:d=!1,icon:m,iconPosition:v="left",fullWidth:g=!1,className:b="",as:x="button",...y}){const E="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",N={primary:"vz-btn--primary bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"vz-btn--secondary bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"vz-btn--ghost bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"vz-btn--danger bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"vz-btn--warning bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"vz-btn--success bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},_={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},A=[E,N[s],_[c],g?"w-full":"",o||d?"opacity-50 cursor-not-allowed pointer-events-none":"",b].filter(Boolean).join(" "),R=x==="button"?{disabled:o||d,...y}:y;return r.jsxs(x,{className:A,...R,children:[d&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),m&&v==="left"&&!d&&r.jsx(m,{className:"w-4 h-4"}),n,m&&v==="right"&&!d&&r.jsx(m,{className:"w-4 h-4"})]})}function Ie({children:n,variant:s,hover:c=!1,className:o="",...d}){const v=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",s?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[s]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:v,...d,children:n})}function ff({icon:n,title:s,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:d,className:m=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${m}`,children:r.jsxs("div",{className:`flex items-center ${d?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),d&&r.jsx("div",{className:"flex items-center gap-2",children:d})]})})}function tt({children:n,className:s="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${s}`,children:n})}function bp({children:n,className:s=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${s}`,children:n})}var yp=Oo();function En({icon:n=x1,title:s="No data",description:c,action:o,className:d=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-4 text-center ${d}`,children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-4",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),r.jsx("h3",{className:"text-lg font-medium text-white mb-1",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}const df={amber:{active:"bg-amber-500/20 text-amber-300 border-amber-500/40",inactive:"text-amber-400/70 border-transparent hover:border-amber-500/30 hover:bg-amber-500/10"},cyan:{active:"bg-cyan-500/20 text-cyan-300 border-cyan-500/40",inactive:"text-cyan-400/70 border-transparent hover:border-cyan-500/30 hover:bg-cyan-500/10"},blue:{active:"bg-blue-500/20 text-blue-300 border-blue-500/40",inactive:"text-blue-400/70 border-transparent hover:border-blue-500/30 hover:bg-blue-500/10"},green:{active:"bg-green-500/20 text-green-300 border-green-500/40",inactive:"text-green-400/70 border-transparent hover:border-green-500/30 hover:bg-green-500/10"},emerald:{active:"bg-emerald-500/20 text-emerald-300 border-emerald-500/40",inactive:"text-emerald-400/70 border-transparent hover:border-emerald-500/30 hover:bg-emerald-500/10"},red:{active:"bg-red-500/20 text-red-300 border-red-500/40",inactive:"text-red-400/70 border-transparent hover:border-red-500/30 hover:bg-red-500/10"},orange:{active:"bg-orange-500/20 text-orange-300 border-orange-500/40",inactive:"text-orange-400/70 border-transparent hover:border-orange-500/30 hover:bg-orange-500/10"},purple:{active:"bg-purple-500/20 text-purple-300 border-purple-500/40",inactive:"text-purple-400/70 border-transparent hover:border-purple-500/30 hover:bg-purple-500/10"},gray:{active:"bg-gray-500/20 text-gray-300 border-gray-500/40",inactive:"text-gray-400/70 border-transparent hover:border-gray-500/30 hover:bg-gray-500/10"}};function Na({label:n,count:s=0,color:c="gray",active:o=!1,disabled:d=!1,onClick:m,icon:v,className:g="",testId:b}){const x=df[c]||df.gray,y=o?x.active:x.inactive;return r.jsxs("button",{onClick:m,disabled:d||s===0,"data-testid":b,className:`
45
+ `,children:[r.jsx(As,{className:"w-5 h-5"}),r.jsx("span",{children:"Approve"})]})]})}function mt({children:n,variant:s="default",size:c="sm",dot:o=!1,pulseDot:d=!1,className:m="",...v}){const g={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},b={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},x={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},y=["inline-flex items-center gap-1.5 font-medium rounded-full border",g[s],x[c],m].filter(Boolean).join(" ");return r.jsxs("span",{className:y,...v,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[d&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${b[s]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${b[s]}`})]}),n]})}const Fe="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/75.0.1";function w1(n){switch(n){case"chrome":return`${Fe}/chrome/chrome.svg`;case"firefox":return`${Fe}/firefox/firefox.svg`;case"safari":return`${Fe}/safari/safari.svg`;case"safari-ios":case"safari_ios":case"ios":case"mobile safari":return`${Fe}/safari-ios/safari-ios.svg`;case"edge":return`${Fe}/edge/edge.svg`;case"opera":return`${Fe}/opera/opera.svg`;case"brave":return`${Fe}/brave/brave.svg`;case"vivaldi":return`${Fe}/vivaldi/vivaldi.svg`;case"chromium":return`${Fe}/chromium/chromium.svg`;case"webkit":return`${Fe}/webkit/webkit.svg`;case"samsung":case"samsung internet":case"samsung-internet":return`${Fe}/samsung-internet/samsung-internet.svg`;case"chrome-android":case"chrome_android":case"android chrome":return`${Fe}/chrome/chrome.svg`;case"firefox-android":case"firefox_android":case"android firefox":return`${Fe}/firefox/firefox.svg`;case"android":case"android browser":return`${Fe}/android/android.svg`;case"ie":case"internet explorer":return`${Fe}/archive/internet-explorer_9-11/internet-explorer_9-11.svg`;case"tor":return`${Fe}/tor/tor.svg`;case"duckduckgo":return`${Fe}/duckduckgo/duckduckgo.svg`;case"yandex":return`${Fe}/yandex/yandex.svg`;case"uc":case"uc browser":return`${Fe}/uc/uc.svg`;default:return null}}function Nn({browser:n,className:s="w-4 h-4",fallbackClassName:c=""}){if(!n)return null;const o=n.toLowerCase(),d=w1(o);return d?r.jsx("img",{src:d,alt:`${n} browser`,className:s,title:n,onError:m=>{m.target.style.display="none",m.target.nextSibling?.style.removeProperty("display")}}):r.jsxs(r.Fragment,{children:[r.jsx("img",{style:{display:"none"},alt:""}),r.jsx(_o,{className:`${s} ${c}`,title:n||"Unknown browser"})]})}function ct({children:n,variant:s="primary",size:c="md",disabled:o=!1,loading:d=!1,icon:m,iconPosition:v="left",fullWidth:g=!1,className:b="",as:x="button",...y}){const E="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",N={primary:"vz-btn--primary bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"vz-btn--secondary bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"vz-btn--ghost bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"vz-btn--danger bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"vz-btn--warning bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"vz-btn--success bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},L={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},A=[E,N[s],L[c],g?"w-full":"",o||d?"opacity-50 cursor-not-allowed pointer-events-none":"",b].filter(Boolean).join(" "),O=x==="button"?{disabled:o||d,...y}:y;return r.jsxs(x,{className:A,...O,children:[d&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),m&&v==="left"&&!d&&r.jsx(m,{className:"w-4 h-4"}),n,m&&v==="right"&&!d&&r.jsx(m,{className:"w-4 h-4"})]})}function Ie({children:n,variant:s,hover:c=!1,className:o="",...d}){const v=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",s?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[s]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:v,...d,children:n})}function df({icon:n,title:s,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:d,className:m=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${m}`,children:r.jsxs("div",{className:`flex items-center ${d?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),d&&r.jsx("div",{className:"flex items-center gap-2",children:d})]})})}function tt({children:n,className:s="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${s}`,children:n})}function j1({children:n,className:s=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${s}`,children:n})}var S1=Oo();function En({icon:n=gp,title:s="No data",description:c,action:o,className:d=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-4 text-center ${d}`,children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-4",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),r.jsx("h3",{className:"text-lg font-medium text-white mb-1",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}const hf={amber:{active:"bg-amber-500/20 text-amber-300 border-amber-500/40",inactive:"text-amber-400/70 border-transparent hover:border-amber-500/30 hover:bg-amber-500/10"},cyan:{active:"bg-cyan-500/20 text-cyan-300 border-cyan-500/40",inactive:"text-cyan-400/70 border-transparent hover:border-cyan-500/30 hover:bg-cyan-500/10"},blue:{active:"bg-blue-500/20 text-blue-300 border-blue-500/40",inactive:"text-blue-400/70 border-transparent hover:border-blue-500/30 hover:bg-blue-500/10"},green:{active:"bg-green-500/20 text-green-300 border-green-500/40",inactive:"text-green-400/70 border-transparent hover:border-green-500/30 hover:bg-green-500/10"},emerald:{active:"bg-emerald-500/20 text-emerald-300 border-emerald-500/40",inactive:"text-emerald-400/70 border-transparent hover:border-emerald-500/30 hover:bg-emerald-500/10"},red:{active:"bg-red-500/20 text-red-300 border-red-500/40",inactive:"text-red-400/70 border-transparent hover:border-red-500/30 hover:bg-red-500/10"},orange:{active:"bg-orange-500/20 text-orange-300 border-orange-500/40",inactive:"text-orange-400/70 border-transparent hover:border-orange-500/30 hover:bg-orange-500/10"},purple:{active:"bg-purple-500/20 text-purple-300 border-purple-500/40",inactive:"text-purple-400/70 border-transparent hover:border-purple-500/30 hover:bg-purple-500/10"},gray:{active:"bg-gray-500/20 text-gray-300 border-gray-500/40",inactive:"text-gray-400/70 border-transparent hover:border-gray-500/30 hover:bg-gray-500/10"}};function Ea({label:n,count:s=0,color:c="gray",active:o=!1,disabled:d=!1,onClick:m,icon:v,className:g="",testId:b}){const x=hf[c]||hf.gray,y=o?x.active:x.inactive;return r.jsxs("button",{onClick:m,disabled:d||s===0,"data-testid":b,className:`
46
46
  inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-xs font-medium
47
47
  border transition-all duration-150
48
48
  ${y}
@@ -51,7 +51,7 @@ Error generating stack: `+l.message+`
51
51
  `,children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n}),r.jsx("span",{className:`
52
52
  px-1 py-0.5 rounded text-[10px] font-semibold min-w-[18px] text-center
53
53
  ${o?"bg-white/10":"bg-gray-700/50"}
54
- `,children:s})]})}function Ds({label:n,hint:s,error:c,icon:o,size:d="md",className:m="",value:v,...g}){const x=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[d],o?"pl-10":"",g.disabled?"opacity-50 cursor-not-allowed":"",m].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,g.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:x,value:v??"",...g})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function wp({label:n,hint:s,error:c,options:o,placeholder:d,size:m="md",className:v="",children:g,...b}){let y=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[m],b.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" "),E=g!=null;return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,b.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:y,...b,children:[d&&r.jsx("option",{value:"",disabled:!0,children:d}),E?g:o?.map(N=>r.jsx("option",{value:N.value,children:N.label},N.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function jp({label:n,description:s,checked:c,onChange:o,disabled:d=!1,size:m="md",className:v="",...g}){const b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"translate-x-7"}},{track:x,thumb:y,translate:E}=b[m];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${d?"opacity-50 cursor-not-allowed":""} ${v}`,children:[(n||s)&&r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:d,className:"sr-only",...g}),r.jsx("div",{className:`${x} rounded-full transition-colors ${c?"bg-amber-500":"bg-slate-700"}`}),r.jsx("div",{className:`absolute left-1 top-1 ${y} rounded-full bg-white shadow-sm transition-transform ${c?E:""}`})]})]})}function Sp({value:n=0,label:s="",size:c=120,strokeWidth:o=8,animated:d=!0,showValue:m=!0,className:v=""}){const[g,b]=h.useState(d?0:n);h.useEffect(()=>{if(!d){b(n);return}const A=0,R=n,Q=1e3;let H=null;const V=F=>{H||(H=F);const Z=Math.min((F-H)/Q,1),ne=1-(1-Z)**3;b(Math.round(A+(R-A)*ne)),Z<1&&requestAnimationFrame(V)};requestAnimationFrame(V)},[n,d]);const x=(c-o)/2,y=x*2*Math.PI,E=y-g/100*y,_=n>=80?"#10b981":n>=50?"#f59e0b":"#ef4444";return r.jsxs("div",{className:`relative ${v}`,style:{width:c,height:c},children:[r.jsxs("svg",{className:"transform -rotate-90",width:c,height:c,viewBox:`0 0 ${c} ${c}`,children:[r.jsx("defs",{children:r.jsxs("filter",{id:`glow-${c}`,x:"-50%",y:"-50%",width:"200%",height:"200%",children:[r.jsx("feGaussianBlur",{stdDeviation:"3",result:"coloredBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"coloredBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),r.jsx("circle",{cx:c/2,cy:c/2,r:x,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o}),r.jsx("circle",{cx:c/2,cy:c/2,r:x,fill:"none",stroke:_,strokeWidth:o,strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:E,filter:`url(#glow-${c})`,style:{transition:d?"stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1)":"none"}})]}),m&&r.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[r.jsxs("span",{className:"font-mono font-semibold text-white",style:{fontSize:c*.22},children:[g,"%"]}),s&&r.jsx("span",{className:"text-slate-500 uppercase tracking-wider font-medium",style:{fontSize:c*.08},children:s})]})]})}function Np({confirmed:n=[],candidates:s=[],imageWidth:c,imageHeight:o,onRegionClick:d,onConfirmRegion:m,onRejectRegion:v,showConfirmed:g=!0,showCandidates:b=!0,disabled:x=!1}){let[y,E]=h.useState(null),[N,_]=h.useState({x:0,y:0}),A=h.useCallback((V,F)=>{x||(F.stopPropagation(),_({x:F.clientX,y:F.clientY}),E(V),d?.(V))},[x,d]),R=h.useCallback((V,F=null)=>{m?.(V.id,F),E(null)},[m]),Q=h.useCallback(V=>{v?.(V.id),E(null)},[v]),H=h.useCallback(()=>{E(null)},[]);return!c||!o?null:r.jsxs("div",{className:"hot-spot-overlay-container absolute inset-0 pointer-events-none z-20",children:[r.jsxs("svg",{viewBox:`0 0 ${c} ${o}`,className:"absolute inset-0 w-full h-full",preserveAspectRatio:"xMidYMid meet",children:[r.jsx("defs",{children:r.jsx("style",{children:`
54
+ `,children:s})]})}function Ds({label:n,hint:s,error:c,icon:o,size:d="md",className:m="",value:v,...g}){const x=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[d],o?"pl-10":"",g.disabled?"opacity-50 cursor-not-allowed":"",m].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,g.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:x,value:v??"",...g})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function N1({label:n,hint:s,error:c,options:o,placeholder:d,size:m="md",className:v="",children:g,...b}){let y=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[m],b.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" "),E=g!=null;return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,b.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:y,...b,children:[d&&r.jsx("option",{value:"",disabled:!0,children:d}),E?g:o?.map(N=>r.jsx("option",{value:N.value,children:N.label},N.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function E1({label:n,description:s,checked:c,onChange:o,disabled:d=!1,size:m="md",className:v="",...g}){const b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"translate-x-7"}},{track:x,thumb:y,translate:E}=b[m];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${d?"opacity-50 cursor-not-allowed":""} ${v}`,children:[(n||s)&&r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:d,className:"sr-only",...g}),r.jsx("div",{className:`${x} rounded-full transition-colors ${c?"bg-amber-500":"bg-slate-700"}`}),r.jsx("div",{className:`absolute left-1 top-1 ${y} rounded-full bg-white shadow-sm transition-transform ${c?E:""}`})]})]})}function C1({value:n=0,label:s="",size:c=120,strokeWidth:o=8,animated:d=!0,showValue:m=!0,className:v=""}){const[g,b]=h.useState(d?0:n);h.useEffect(()=>{if(!d){b(n);return}const A=0,O=n,Q=1e3;let U=null;const V=F=>{U||(U=F);const K=Math.min((F-U)/Q,1),ne=1-(1-K)**3;b(Math.round(A+(O-A)*ne)),K<1&&requestAnimationFrame(V)};requestAnimationFrame(V)},[n,d]);const x=(c-o)/2,y=x*2*Math.PI,E=y-g/100*y,L=n>=80?"#10b981":n>=50?"#f59e0b":"#ef4444";return r.jsxs("div",{className:`relative ${v}`,style:{width:c,height:c},children:[r.jsxs("svg",{className:"transform -rotate-90",width:c,height:c,viewBox:`0 0 ${c} ${c}`,children:[r.jsx("defs",{children:r.jsxs("filter",{id:`glow-${c}`,x:"-50%",y:"-50%",width:"200%",height:"200%",children:[r.jsx("feGaussianBlur",{stdDeviation:"3",result:"coloredBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"coloredBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),r.jsx("circle",{cx:c/2,cy:c/2,r:x,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o}),r.jsx("circle",{cx:c/2,cy:c/2,r:x,fill:"none",stroke:L,strokeWidth:o,strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:E,filter:`url(#glow-${c})`,style:{transition:d?"stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1)":"none"}})]}),m&&r.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[r.jsxs("span",{className:"font-mono font-semibold text-white",style:{fontSize:c*.22},children:[g,"%"]}),s&&r.jsx("span",{className:"text-slate-500 uppercase tracking-wider font-medium",style:{fontSize:c*.08},children:s})]})]})}function A1({confirmed:n=[],candidates:s=[],imageWidth:c,imageHeight:o,onRegionClick:d,onConfirmRegion:m,onRejectRegion:v,showConfirmed:g=!0,showCandidates:b=!0,disabled:x=!1}){let[y,E]=h.useState(null),[N,L]=h.useState({x:0,y:0}),A=h.useCallback((V,F)=>{x||(F.stopPropagation(),L({x:F.clientX,y:F.clientY}),E(V),d?.(V))},[x,d]),O=h.useCallback((V,F=null)=>{m?.(V.id,F),E(null)},[m]),Q=h.useCallback(V=>{v?.(V.id),E(null)},[v]),U=h.useCallback(()=>{E(null)},[]);return!c||!o?null:r.jsxs("div",{className:"hot-spot-overlay-container absolute inset-0 pointer-events-none z-20",children:[r.jsxs("svg",{viewBox:`0 0 ${c} ${o}`,className:"absolute inset-0 w-full h-full",preserveAspectRatio:"xMidYMid meet",children:[r.jsx("defs",{children:r.jsx("style",{children:`
55
55
  @keyframes pulse-glow {
56
56
  0%, 100% { opacity: 0.6; }
57
57
  50% { opacity: 1; }
@@ -59,26 +59,26 @@ Error generating stack: `+l.message+`
59
59
  .hot-spot-candidate {
60
60
  animation: pulse-glow 2s ease-in-out infinite;
61
61
  }
62
- `})}),g&&n.map(V=>{let F=Math.max(V.x2-V.x1,20),Z=Math.max(V.y2-V.y1,20),ne=(V.x1+V.x2)/2,oe=(V.y1+V.y2)/2,Y=ne-F/2,P=oe-Z/2;return r.jsxs("g",{className:"pointer-events-auto",children:[r.jsx("rect",{x:Y,y:P,width:F,height:Z,fill:"rgba(16, 185, 129, 0.1)",stroke:"rgba(16, 185, 129, 0.8)",strokeWidth:"2",strokeDasharray:"6 3",rx:"2",className:"cursor-pointer hover:fill-emerald-500/20",onClick:se=>A(V,se)}),V.label&&r.jsxs("g",{children:[r.jsx("rect",{x:Y,y:P-18,width:V.label.length*7+12,height:16,fill:"rgba(16, 185, 129, 0.9)",rx:"3"}),r.jsx("text",{x:Y+6,y:P-6,fill:"white",fontSize:"10",fontFamily:"ui-monospace, monospace",children:V.label})]})]},V.id)}),b&&s.map(V=>{let F=Math.max(V.x2-V.x1,20),Z=Math.max(V.y2-V.y1,20),ne=(V.x1+V.x2)/2,oe=(V.y1+V.y2)/2,Y=ne-F/2,P=oe-Z/2;return r.jsxs("g",{className:"pointer-events-auto hot-spot-candidate",children:[r.jsx("rect",{x:Y-5,y:P-5,width:F+10,height:Z+10,fill:"transparent",className:"cursor-pointer",onClick:se=>A(V,se)}),r.jsx("rect",{x:Y,y:P,width:F,height:Z,fill:"rgba(245, 158, 11, 0.1)",stroke:"rgba(245, 158, 11, 0.8)",strokeWidth:"2",strokeDasharray:"6 3",rx:"2",className:"cursor-pointer hover:fill-amber-500/20",onClick:se=>A(V,se)}),r.jsx("circle",{cx:Y+F-4,cy:P+4,r:"6",fill:"rgba(245, 158, 11, 0.9)",stroke:"rgba(15, 23, 42, 0.8)",strokeWidth:"1"})]},V.id)})]}),y&&yp.createPortal(r.jsx(Ep,{region:y,position:N,onConfirm:R,onReject:Q,onClose:H,isCandidate:y.status==="candidate"}),document.body)]})}function Ep({region:n,position:s,onConfirm:c,onReject:o,onClose:d,isCandidate:m}){let[v,g]=h.useState(""),[b,x]=h.useState(!1),y=h.useCallback(()=>{c(n,v||null)},[c,n,v]),E=h.useCallback(()=>{c(n,null)},[c,n]),N=250,_=220,A=s.x-N/2,R=s.y;A<10?A=10:A+N>window.innerWidth-10&&(A=window.innerWidth-N-10),R>_+20?R=R-_-10:R=R+10,R<10&&(R=10),R+_>window.innerHeight-10&&(R=window.innerHeight-_-10);let H={left:`${A}px`,top:`${R}px`};return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-[60] pointer-events-auto",onClick:d}),r.jsxs("div",{className:"fixed z-[70] pointer-events-auto bg-slate-800 border border-slate-700 rounded-lg shadow-xl min-w-[200px] max-w-[280px]",style:H,children:[r.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-slate-700",children:[r.jsx("span",{className:"text-sm font-medium text-white",children:m?"Detected Change":"Dynamic Region"}),r.jsx("button",{type:"button",onClick:d,className:"p-1 text-slate-400 hover:text-white rounded transition-colors",children:r.jsx(Zt,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"px-3 py-2 space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Status"}),r.jsx("span",{className:`font-medium ${m?"text-amber-400":"text-emerald-400"}`,children:m?"Pending Review":"Confirmed Dynamic"})]}),n.occurrence_count>1&&r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Seen"}),r.jsxs("span",{className:"text-slate-200",children:[n.occurrence_count," times"]})]}),n.label&&r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Label"}),r.jsx("span",{className:"text-slate-200 font-mono",children:n.label})]}),m&&b&&r.jsx("div",{className:"pt-1",children:r.jsx("input",{type:"text",value:v,onChange:V=>g(V.target.value),placeholder:"e.g., timestamp, avatar",className:"w-full px-2 py-1.5 text-xs bg-slate-900 border border-slate-600 rounded text-white placeholder-slate-500 focus:outline-none focus:border-amber-500",autoFocus:!0})})]}),m&&r.jsxs("div",{className:"px-3 py-2 border-t border-slate-700 space-y-2",children:[r.jsx("p",{className:"text-xs text-slate-400 leading-relaxed",children:"Is this dynamic content that changes between builds?"}),b?r.jsxs("button",{type:"button",onClick:y,className:"w-full flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-emerald-500/20 text-emerald-300 rounded hover:bg-emerald-500/30 transition-colors",children:[r.jsx(aa,{className:"w-3.5 h-3.5"}),"Confirm as Dynamic"]}):r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{type:"button",onClick:E,className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-emerald-500/20 text-emerald-300 rounded hover:bg-emerald-500/30 transition-colors",title:"Mark as dynamic content - future changes here will be auto-approved",children:[r.jsx(aa,{className:"w-3.5 h-3.5"}),"Yes"]}),r.jsxs("button",{type:"button",onClick:()=>o(n),className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-red-500/20 text-red-300 rounded hover:bg-red-500/30 transition-colors",title:"Not dynamic - this is a real change that needs review",children:[r.jsx(Zt,{className:"w-3.5 h-3.5"}),"No"]})]}),!b&&r.jsx("button",{type:"button",onClick:()=>x(!0),className:"w-full text-xs text-slate-400 hover:text-slate-300 underline underline-offset-2",children:"Add a label (optional)"})]})]})]})}function Cp({children:n,containerClassName:s="",onClick:c,style:o={},...d}){let v=`relative inline-block ${s}`;return r.jsx("div",{className:v,style:o,onClick:c,...d,children:n})}function _s({children:n,containerClassName:s="",interactive:c=!1,onClick:o,style:d={}}){let m=c?"cursor-pointer":"";return r.jsx(Cp,{containerClassName:`${s} ${m}`,onClick:o,style:d,children:n})}function Ap({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,onLoad:v,imageErrors:g,style:b={},loading:x="lazy",...y}){let E={absolute:"absolute block",relative:"block"},N=o==="absolute"&&!d.includes("top-")&&!d.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",_=`${E[o]} ${N} ${d}`.trim();if(g&&g.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:A,zoom:R,...Q}=y;return r.jsx("img",{src:s,alt:c,className:_,style:b,loading:x,decoding:"async",onError:()=>m&&m(n),onLoad:()=>v&&v(n),...Q})}function sl({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,imageErrors:v,showErrorPlaceholder:g=!0,loading:b="lazy",...x}){return v&&v.has(n)&&!g?null:r.jsx(Ap,{imageKey:n,url:s,alt:c,position:o,className:d,onError:m,imageErrors:v,loading:b,...x})}function Op({baselineImageUrl:n,currentImageUrl:s,sliderPosition:c=50,onSliderChange:o,screenshot:d,onImageError:m,onImageLoad:v}){return r.jsxs(_s,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(sl,{imageKey:`baseline-${d?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:new Set,screenshot:d}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(sl,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:m,onLoad:v,imageErrors:new Set,screenshot:d})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"},children:r.jsx("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-4 h-4 bg-amber-500 rounded-full shadow-lg border-2 border-white"})}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:g=>o(parseInt(g.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function Mp({baselineImageUrl:n,currentImageUrl:s,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:d,onImageError:m,onImageLoad:v,imageErrors:g,onDiffToggle:b}){let x=()=>{c&&b&&b()};return n?r.jsxs(_s,{interactive:!0,onClick:x,children:[r.jsx(sl,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:g,screenshot:d}),o&&c&&r.jsx(sl,{imageKey:`diff-${d?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:m,onLoad:v,imageErrors:g,showErrorPlaceholder:!1,screenshot:d}),o&&c&&g?.has(`diff-${d?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})})]}):r.jsx(_s,{interactive:!0,onClick:x,children:r.jsx(sl,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:g,screenshot:d})})}function zp({baselineImageUrl:n,currentImageUrl:s,screenshot:c,onImageError:o,onImageLoad:d,imageErrors:m=new Set}){let[v,g]=h.useState(!0),b=()=>{g(x=>!x)};return r.jsxs(_s,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:v?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(sl,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`${v?"":"top-0 left-0"} ${v?"":"hidden"}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c}),r.jsx(sl,{imageKey:`current-${c?.id||"unknown"}`,url:s,alt:"Current",position:v?"absolute":"relative",className:`${v?"top-0 left-0":""} ${v?"hidden":""}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c})]})]})}const hf=[{value:"fit",label:"Fit",icon:To},{value:.25,label:"25%"},{value:.5,label:"50%"},{value:.75,label:"75%"},{value:1,label:"100%"},{value:1.5,label:"150%"},{value:2,label:"200%"}];function Tp(n="fit"){const[s,c]=h.useState(n),o=h.useCallback(d=>{c(d)},[]);return{zoom:s,setZoom:o,isActualSize:s===1,isFitToScreen:s==="fit",zoomPercent:s==="fit"?null:Math.round(s*100)}}function Rp({zoom:n,onZoomChange:s,minZoom:c=.1,maxZoom:o=3,variant:d="default",enableKeyboardShortcuts:m=!0,className:v=""}){const[g,b]=h.useState(!1),x=h.useCallback(()=>{if(n==="fit")s(.75);else{const A=Math.min(o,n+.25);s(A)}},[n,o,s]),y=h.useCallback(()=>{if(n==="fit")s(.5);else{const A=Math.max(c,n-.25);s(A)}},[n,c,s]),E=h.useCallback(()=>{s("fit"),b(!1)},[s]),N=h.useCallback(()=>{s(1),b(!1)},[s]);h.useEffect(()=>{if(!m)return;const A=R=>{R.target.tagName==="INPUT"||R.target.tagName==="TEXTAREA"||(R.key==="="||R.key==="+"?(R.preventDefault(),x()):R.key==="-"?(R.preventDefault(),y()):R.key==="0"?(R.preventDefault(),N()):R.key==="9"&&(R.preventDefault(),E()))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[m,x,y,N,E]);const _=n==="fit"?"Fit":`${Math.round(n*100)}%`;return d==="mobile"?r.jsxs("div",{className:`flex flex-col gap-2 ${v}`,children:[r.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1",children:hf.map(A=>r.jsxs("button",{onClick:()=>s(A.value),className:`shrink-0 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${n===A.value?"bg-blue-600 text-white":"bg-slate-800/60 text-slate-400 border border-slate-700/50"}`,children:[A.icon&&r.jsx(A.icon,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:A.label})]},A.value))}),r.jsxs("div",{className:"flex items-center gap-2 bg-slate-800/60 rounded-lg p-1 border border-slate-700/50",children:[r.jsxs("button",{onClick:y,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(ko,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom Out"})]}),r.jsx("div",{className:"px-3 py-2 min-w-[60px] text-center text-sm font-medium text-slate-200 bg-slate-900/50 rounded-lg",children:_}),r.jsxs("button",{onClick:x,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Uo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom In"})]})]})]}):r.jsxs("div",{className:`relative flex items-center gap-1.5 ${v}`,children:[r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:y,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom out (−)",children:r.jsx(ko,{className:"w-4 h-4"})}),r.jsx("button",{onClick:()=>b(!g),className:"px-2 py-2 min-w-[44px] text-xs font-medium text-slate-300 hover:text-white hover:bg-slate-700/50 rounded-md transition-all tabular-nums",title:"Click for zoom presets",children:_}),r.jsx("button",{onClick:x,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom in (+)",children:r.jsx(Uo,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:E,className:`p-2 rounded-md transition-all ${n==="fit"?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Fit to screen (9)",children:r.jsx(To,{className:"w-4 h-4"})}),r.jsx("button",{onClick:N,className:`px-2 py-2 rounded-md transition-all text-xs font-medium ${n===1?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Actual size (0)",children:"1:1"})]}),g&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsx("div",{className:"absolute top-full left-0 mt-1.5 z-50 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden min-w-[100px]",children:hf.map(A=>r.jsxs("button",{onClick:()=>{s(A.value),b(!1)},className:`w-full px-3 py-2 text-left text-sm flex items-center gap-2 transition-all ${n===A.value?"bg-blue-600 text-white font-medium":"text-slate-300 hover:bg-slate-700/50 hover:text-white"}`,children:[A.icon&&r.jsx(A.icon,{className:"w-4 h-4"}),r.jsx("span",{children:A.label})]},A.value))})]})]})}const Cn=new Set;function Dp(n){return Cn.size===0&&document.addEventListener("keydown",mf),Cn.add(n),()=>{Cn.delete(n),Cn.size===0&&document.removeEventListener("keydown",mf)}}function mf(n){if(n.key==="Escape"){const s=Array.from(Cn),c=s[s.length-1];c?.()}}const vf={"w-64":{mobile:"w-64",desktop:"sm:w-64"},"w-72":{mobile:"w-72",desktop:"sm:w-72"},"w-80":{mobile:"w-80",desktop:"sm:w-80"},"w-96":{mobile:"w-96",desktop:"sm:w-96"}},pf={bottom:"inset-x-0 bottom-0 rounded-t-xl",left:"inset-y-0 left-0 w-[85vw] max-w-xs",right:"inset-y-0 right-0 w-[85vw] max-w-xs"},xf={bottom:"border-t",left:"border-r",right:"border-l"},gf={bottom:"animate-in slide-in-from-bottom duration-200",left:"animate-in slide-in-from-left duration-200",right:"animate-in slide-in-from-right duration-200"};function Tr({isOpen:n,onClose:s,position:c="left",desktopPosition:o="left",width:d="w-72",mobileHeight:m="70vh",expandedHeight:v="90vh",showBackdrop:g=!0,alwaysVisibleOnDesktop:b=!0,children:x,className:y="",testId:E}){const N=h.useRef(null),_=vf[d]||vf["w-72"],[A,R]=h.useState(!1);h.useEffect(()=>{n||R(!1)},[n]);const Q=h.useCallback(()=>{R(Z=>!Z)},[]),H=A?v:m;h.useEffect(()=>{if(!(!n||!s))return Dp(s)},[n,s]);const V=h.useCallback(Z=>{Z.target===Z.currentTarget&&s?.()},[s]),F=o==="left"?"sm:border-r":"sm:border-l";return o==="none"?n?r.jsxs(r.Fragment,{children:[g&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 animate-in fade-in duration-150",onClick:V,"aria-hidden":"true"}),r.jsx("aside",{ref:N,"data-testid":E,"data-expanded":A,className:`
62
+ `})}),g&&n.map(V=>{let F=Math.max(V.x2-V.x1,20),K=Math.max(V.y2-V.y1,20),ne=(V.x1+V.x2)/2,he=(V.y1+V.y2)/2,Y=ne-F/2,P=he-K/2;return r.jsxs("g",{className:"pointer-events-auto",children:[r.jsx("rect",{x:Y,y:P,width:F,height:K,fill:"rgba(16, 185, 129, 0.1)",stroke:"rgba(16, 185, 129, 0.8)",strokeWidth:"2",strokeDasharray:"6 3",rx:"2",className:"cursor-pointer hover:fill-emerald-500/20",onClick:se=>A(V,se)}),V.label&&r.jsxs("g",{children:[r.jsx("rect",{x:Y,y:P-18,width:V.label.length*7+12,height:16,fill:"rgba(16, 185, 129, 0.9)",rx:"3"}),r.jsx("text",{x:Y+6,y:P-6,fill:"white",fontSize:"10",fontFamily:"ui-monospace, monospace",children:V.label})]})]},V.id)}),b&&s.map(V=>{let F=Math.max(V.x2-V.x1,20),K=Math.max(V.y2-V.y1,20),ne=(V.x1+V.x2)/2,he=(V.y1+V.y2)/2,Y=ne-F/2,P=he-K/2;return r.jsxs("g",{className:"pointer-events-auto hot-spot-candidate",children:[r.jsx("rect",{x:Y-5,y:P-5,width:F+10,height:K+10,fill:"transparent",className:"cursor-pointer",onClick:se=>A(V,se)}),r.jsx("rect",{x:Y,y:P,width:F,height:K,fill:"rgba(245, 158, 11, 0.1)",stroke:"rgba(245, 158, 11, 0.8)",strokeWidth:"2",strokeDasharray:"6 3",rx:"2",className:"cursor-pointer hover:fill-amber-500/20",onClick:se=>A(V,se)}),r.jsx("circle",{cx:Y+F-4,cy:P+4,r:"6",fill:"rgba(245, 158, 11, 0.9)",stroke:"rgba(15, 23, 42, 0.8)",strokeWidth:"1"})]},V.id)})]}),y&&S1.createPortal(r.jsx(O1,{region:y,position:N,onConfirm:O,onReject:Q,onClose:U,isCandidate:y.status==="candidate"}),document.body)]})}function O1({region:n,position:s,onConfirm:c,onReject:o,onClose:d,isCandidate:m}){let[v,g]=h.useState(""),[b,x]=h.useState(!1),y=h.useCallback(()=>{c(n,v||null)},[c,n,v]),E=h.useCallback(()=>{c(n,null)},[c,n]),N=250,L=220,A=s.x-N/2,O=s.y;A<10?A=10:A+N>window.innerWidth-10&&(A=window.innerWidth-N-10),O>L+20?O=O-L-10:O=O+10,O<10&&(O=10),O+L>window.innerHeight-10&&(O=window.innerHeight-L-10);let U={left:`${A}px`,top:`${O}px`};return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-[60] pointer-events-auto",onClick:d}),r.jsxs("div",{className:"fixed z-[70] pointer-events-auto bg-slate-800 border border-slate-700 rounded-lg shadow-xl min-w-[200px] max-w-[280px]",style:U,children:[r.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-slate-700",children:[r.jsx("span",{className:"text-sm font-medium text-white",children:m?"Detected Change":"Dynamic Region"}),r.jsx("button",{type:"button",onClick:d,className:"p-1 text-slate-400 hover:text-white rounded transition-colors",children:r.jsx(Zt,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"px-3 py-2 space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Status"}),r.jsx("span",{className:`font-medium ${m?"text-amber-400":"text-emerald-400"}`,children:m?"Pending Review":"Confirmed Dynamic"})]}),n.occurrence_count>1&&r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Seen"}),r.jsxs("span",{className:"text-slate-200",children:[n.occurrence_count," times"]})]}),n.label&&r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Label"}),r.jsx("span",{className:"text-slate-200 font-mono",children:n.label})]}),m&&b&&r.jsx("div",{className:"pt-1",children:r.jsx("input",{type:"text",value:v,onChange:V=>g(V.target.value),placeholder:"e.g., timestamp, avatar",className:"w-full px-2 py-1.5 text-xs bg-slate-900 border border-slate-600 rounded text-white placeholder-slate-500 focus:outline-none focus:border-amber-500",autoFocus:!0})})]}),m&&r.jsxs("div",{className:"px-3 py-2 border-t border-slate-700 space-y-2",children:[r.jsx("p",{className:"text-xs text-slate-400 leading-relaxed",children:"Is this dynamic content that changes between builds?"}),b?r.jsxs("button",{type:"button",onClick:y,className:"w-full flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-emerald-500/20 text-emerald-300 rounded hover:bg-emerald-500/30 transition-colors",children:[r.jsx(aa,{className:"w-3.5 h-3.5"}),"Confirm as Dynamic"]}):r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{type:"button",onClick:E,className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-emerald-500/20 text-emerald-300 rounded hover:bg-emerald-500/30 transition-colors",title:"Mark as dynamic content - future changes here will be auto-approved",children:[r.jsx(aa,{className:"w-3.5 h-3.5"}),"Yes"]}),r.jsxs("button",{type:"button",onClick:()=>o(n),className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-red-500/20 text-red-300 rounded hover:bg-red-500/30 transition-colors",title:"Not dynamic - this is a real change that needs review",children:[r.jsx(Zt,{className:"w-3.5 h-3.5"}),"No"]})]}),!b&&r.jsx("button",{type:"button",onClick:()=>x(!0),className:"w-full text-xs text-slate-400 hover:text-slate-300 underline underline-offset-2",children:"Add a label (optional)"})]})]})]})}function M1({children:n,containerClassName:s="",onClick:c,style:o={},...d}){let v=`relative inline-block ${s}`;return r.jsx("div",{className:v,style:o,onClick:c,...d,children:n})}function _s({children:n,containerClassName:s="",interactive:c=!1,onClick:o,style:d={}}){let m=c?"cursor-pointer":"";return r.jsx(M1,{containerClassName:`${s} ${m}`,onClick:o,style:d,children:n})}function T1({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,onLoad:v,imageErrors:g,style:b={},loading:x="lazy",...y}){let E={absolute:"absolute block",relative:"block"},N=o==="absolute"&&!d.includes("top-")&&!d.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",L=`${E[o]} ${N} ${d}`.trim();if(g&&g.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:A,zoom:O,...Q}=y;return r.jsx("img",{src:s,alt:c,className:L,style:b,loading:x,decoding:"async",onError:()=>m&&m(n),onLoad:()=>v&&v(n),...Q})}function sl({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,imageErrors:v,showErrorPlaceholder:g=!0,loading:b="lazy",...x}){return v&&v.has(n)&&!g?null:r.jsx(T1,{imageKey:n,url:s,alt:c,position:o,className:d,onError:m,imageErrors:v,loading:b,...x})}function z1({baselineImageUrl:n,currentImageUrl:s,sliderPosition:c=50,onSliderChange:o,screenshot:d,onImageError:m,onImageLoad:v}){return r.jsxs(_s,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(sl,{imageKey:`baseline-${d?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:new Set,screenshot:d}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(sl,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:m,onLoad:v,imageErrors:new Set,screenshot:d})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"},children:r.jsx("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-4 h-4 bg-amber-500 rounded-full shadow-lg border-2 border-white"})}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:g=>o(parseInt(g.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function R1({baselineImageUrl:n,currentImageUrl:s,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:d,onImageError:m,onImageLoad:v,imageErrors:g,onDiffToggle:b}){let x=()=>{c&&b&&b()};return n?r.jsxs(_s,{interactive:!0,onClick:x,children:[r.jsx(sl,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:g,screenshot:d}),o&&c&&r.jsx(sl,{imageKey:`diff-${d?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:m,onLoad:v,imageErrors:g,showErrorPlaceholder:!1,screenshot:d}),o&&c&&g?.has(`diff-${d?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})})]}):r.jsx(_s,{interactive:!0,onClick:x,children:r.jsx(sl,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:g,screenshot:d})})}function D1({baselineImageUrl:n,currentImageUrl:s,screenshot:c,onImageError:o,onImageLoad:d,imageErrors:m=new Set}){let[v,g]=h.useState(!0),b=()=>{g(x=>!x)};return r.jsxs(_s,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:v?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(sl,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`${v?"":"top-0 left-0"} ${v?"":"hidden"}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c}),r.jsx(sl,{imageKey:`current-${c?.id||"unknown"}`,url:s,alt:"Current",position:v?"absolute":"relative",className:`${v?"top-0 left-0":""} ${v?"hidden":""}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c})]})]})}const mf=[{value:"fit",label:"Fit",icon:zo},{value:.25,label:"25%"},{value:.5,label:"50%"},{value:.75,label:"75%"},{value:1,label:"100%"},{value:1.5,label:"150%"},{value:2,label:"200%"}];function _1(n="fit"){const[s,c]=h.useState(n),o=h.useCallback(d=>{c(d)},[]);return{zoom:s,setZoom:o,isActualSize:s===1,isFitToScreen:s==="fit",zoomPercent:s==="fit"?null:Math.round(s*100)}}function L1({zoom:n,onZoomChange:s,minZoom:c=.1,maxZoom:o=3,variant:d="default",enableKeyboardShortcuts:m=!0,className:v=""}){const[g,b]=h.useState(!1),x=h.useCallback(()=>{if(n==="fit")s(.75);else{const A=Math.min(o,n+.25);s(A)}},[n,o,s]),y=h.useCallback(()=>{if(n==="fit")s(.5);else{const A=Math.max(c,n-.25);s(A)}},[n,c,s]),E=h.useCallback(()=>{s("fit"),b(!1)},[s]),N=h.useCallback(()=>{s(1),b(!1)},[s]);h.useEffect(()=>{if(!m)return;const A=O=>{O.target.tagName==="INPUT"||O.target.tagName==="TEXTAREA"||(O.key==="="||O.key==="+"?(O.preventDefault(),x()):O.key==="-"?(O.preventDefault(),y()):O.key==="0"?(O.preventDefault(),N()):O.key==="9"&&(O.preventDefault(),E()))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[m,x,y,N,E]);const L=n==="fit"?"Fit":`${Math.round(n*100)}%`;return d==="mobile"?r.jsxs("div",{className:`flex flex-col gap-2 ${v}`,children:[r.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1",children:mf.map(A=>r.jsxs("button",{onClick:()=>s(A.value),className:`shrink-0 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${n===A.value?"bg-blue-600 text-white":"bg-slate-800/60 text-slate-400 border border-slate-700/50"}`,children:[A.icon&&r.jsx(A.icon,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:A.label})]},A.value))}),r.jsxs("div",{className:"flex items-center gap-2 bg-slate-800/60 rounded-lg p-1 border border-slate-700/50",children:[r.jsxs("button",{onClick:y,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(ko,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom Out"})]}),r.jsx("div",{className:"px-3 py-2 min-w-[60px] text-center text-sm font-medium text-slate-200 bg-slate-900/50 rounded-lg",children:L}),r.jsxs("button",{onClick:x,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Uo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom In"})]})]})]}):r.jsxs("div",{className:`relative flex items-center gap-1.5 ${v}`,children:[r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:y,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom out (−)",children:r.jsx(ko,{className:"w-4 h-4"})}),r.jsx("button",{onClick:()=>b(!g),className:"px-2 py-2 min-w-[44px] text-xs font-medium text-slate-300 hover:text-white hover:bg-slate-700/50 rounded-md transition-all tabular-nums",title:"Click for zoom presets",children:L}),r.jsx("button",{onClick:x,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom in (+)",children:r.jsx(Uo,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:E,className:`p-2 rounded-md transition-all ${n==="fit"?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Fit to screen (9)",children:r.jsx(zo,{className:"w-4 h-4"})}),r.jsx("button",{onClick:N,className:`px-2 py-2 rounded-md transition-all text-xs font-medium ${n===1?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Actual size (0)",children:"1:1"})]}),g&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsx("div",{className:"absolute top-full left-0 mt-1.5 z-50 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden min-w-[100px]",children:mf.map(A=>r.jsxs("button",{onClick:()=>{s(A.value),b(!1)},className:`w-full px-3 py-2 text-left text-sm flex items-center gap-2 transition-all ${n===A.value?"bg-blue-600 text-white font-medium":"text-slate-300 hover:bg-slate-700/50 hover:text-white"}`,children:[A.icon&&r.jsx(A.icon,{className:"w-4 h-4"}),r.jsx("span",{children:A.label})]},A.value))})]})]})}const Cn=new Set;function k1(n){return Cn.size===0&&document.addEventListener("keydown",vf),Cn.add(n),()=>{Cn.delete(n),Cn.size===0&&document.removeEventListener("keydown",vf)}}function vf(n){if(n.key==="Escape"){const s=Array.from(Cn),c=s[s.length-1];c?.()}}const pf={"w-64":{mobile:"w-64",desktop:"sm:w-64"},"w-72":{mobile:"w-72",desktop:"sm:w-72"},"w-80":{mobile:"w-80",desktop:"sm:w-80"},"w-96":{mobile:"w-96",desktop:"sm:w-96"}},xf={bottom:"inset-x-0 bottom-0 rounded-t-xl",left:"inset-y-0 left-0 w-[85vw] max-w-xs",right:"inset-y-0 right-0 w-[85vw] max-w-xs"},gf={bottom:"border-t",left:"border-r",right:"border-l"},bf={bottom:"animate-in slide-in-from-bottom duration-200",left:"animate-in slide-in-from-left duration-200",right:"animate-in slide-in-from-right duration-200"};function zr({isOpen:n,onClose:s,position:c="left",desktopPosition:o="left",width:d="w-72",mobileHeight:m="70vh",expandedHeight:v="90vh",showBackdrop:g=!0,alwaysVisibleOnDesktop:b=!0,children:x,className:y="",testId:E}){const N=h.useRef(null),L=pf[d]||pf["w-72"],[A,O]=h.useState(!1);h.useEffect(()=>{n||O(!1)},[n]);const Q=h.useCallback(()=>{O(K=>!K)},[]),U=A?v:m;h.useEffect(()=>{if(!(!n||!s))return k1(s)},[n,s]);const V=h.useCallback(K=>{K.target===K.currentTarget&&s?.()},[s]),F=o==="left"?"sm:border-r":"sm:border-l";return o==="none"?n?r.jsxs(r.Fragment,{children:[g&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 animate-in fade-in duration-150",onClick:V,"aria-hidden":"true"}),r.jsx("aside",{ref:N,"data-testid":E,"data-expanded":A,className:`
63
63
  fixed z-50
64
- ${pf[c]}
64
+ ${xf[c]}
65
65
  ${c==="bottom"?"mobile-drawer-height":"h-full"}
66
- bg-slate-900 ${xf[c]} border-slate-800/60
66
+ bg-slate-900 ${gf[c]} border-slate-800/60
67
67
  flex flex-col overflow-hidden
68
68
  shadow-2xl shadow-black/50
69
- ${gf[c]}
69
+ ${bf[c]}
70
70
  transition-[height] duration-200 ease-out
71
71
  ${y}
72
- `,style:c==="bottom"?{"--mobile-height":H}:void 0,role:"dialog","aria-modal":"true",children:al.Children.map(x,Z=>al.isValidElement(Z)?al.cloneElement(Z,{isExpanded:A,onToggleExpand:Q}):Z)})]}):null:r.jsxs(r.Fragment,{children:[g&&n&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 sm:hidden animate-in fade-in duration-150",onClick:V,"aria-hidden":"true"}),r.jsx("aside",{ref:N,"data-testid":E,"data-expanded":A,"data-open":n,className:`
72
+ `,style:c==="bottom"?{"--mobile-height":U}:void 0,role:"dialog","aria-modal":"true",children:ll.Children.map(x,K=>ll.isValidElement(K)?ll.cloneElement(K,{isExpanded:A,onToggleExpand:Q}):K)})]}):null:r.jsxs(r.Fragment,{children:[g&&n&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 sm:hidden animate-in fade-in duration-150",onClick:V,"aria-hidden":"true"}),r.jsx("aside",{ref:N,"data-testid":E,"data-expanded":A,"data-open":n,className:`
73
73
  ${n?"flex":"hidden"} ${b?"sm:flex":""}
74
74
 
75
75
  fixed z-50 sm:relative sm:z-auto
76
- ${pf[c]} sm:inset-auto
76
+ ${xf[c]} sm:inset-auto
77
77
  ${c==="bottom"?"mobile-drawer-height":"h-full"}
78
- ${c==="bottom"?_.desktop:d}
78
+ ${c==="bottom"?L.desktop:d}
79
79
 
80
80
  bg-slate-900
81
- ${xf[c]} sm:border-t-0 sm:border-b-0 ${F}
81
+ ${gf[c]} sm:border-t-0 sm:border-b-0 ${F}
82
82
  border-slate-800/60 sm:border-slate-800/50
83
83
  sm:rounded-none
84
84
 
@@ -86,44 +86,44 @@ Error generating stack: `+l.message+`
86
86
  shadow-2xl shadow-black/50 sm:shadow-none
87
87
  transition-[height] duration-200 ease-out
88
88
 
89
- ${n?gf[c]:""} sm:animate-none
89
+ ${n?bf[c]:""} sm:animate-none
90
90
  ${y}
91
- `,style:c==="bottom"?{"--mobile-height":H}:void 0,role:n?"dialog":void 0,"aria-modal":n?"true":void 0,children:al.Children.map(x,Z=>al.isValidElement(Z)?al.cloneElement(Z,{isExpanded:A,onToggleExpand:Q}):Z)})]})}function Rr({title:n,subtitle:s,onClose:c,children:o,className:d="",isExpanded:m,onToggleExpand:v}){return r.jsxs("div",{className:`flex-shrink-0 px-4 py-3 border-b border-slate-800/50 ${d}`,children:[v&&r.jsx("button",{type:"button",onClick:v,className:"sm:hidden w-full flex justify-center py-1 mb-1 -mt-1 active:scale-95 transition-transform","aria-label":m?"Collapse drawer":"Expand drawer",children:r.jsx("div",{className:"w-10 h-1 rounded-full bg-slate-600 hover:bg-slate-500 transition-colors"})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[n&&r.jsx("h2",{className:"text-sm font-semibold text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),c&&r.jsx("button",{type:"button",onClick:c,className:"p-1.5 text-slate-500 hover:text-white rounded-lg hover:bg-slate-800 transition-colors",title:"Close","aria-label":"Close",children:r.jsx(Zt,{className:"w-4 h-4"})})]}),o]})}function Dr({children:n,className:s=""}){return r.jsx("div",{className:`
91
+ `,style:c==="bottom"?{"--mobile-height":U}:void 0,role:n?"dialog":void 0,"aria-modal":n?"true":void 0,children:ll.Children.map(x,K=>ll.isValidElement(K)?ll.cloneElement(K,{isExpanded:A,onToggleExpand:Q}):K)})]})}function Rr({title:n,subtitle:s,onClose:c,children:o,className:d="",isExpanded:m,onToggleExpand:v}){return r.jsxs("div",{className:`flex-shrink-0 px-4 py-3 border-b border-slate-800/50 ${d}`,children:[v&&r.jsx("button",{type:"button",onClick:v,className:"sm:hidden w-full flex justify-center py-1 mb-1 -mt-1 active:scale-95 transition-transform","aria-label":m?"Collapse drawer":"Expand drawer",children:r.jsx("div",{className:"w-10 h-1 rounded-full bg-slate-600 hover:bg-slate-500 transition-colors"})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[n&&r.jsx("h2",{className:"text-sm font-semibold text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),c&&r.jsx("button",{type:"button",onClick:c,className:"p-1.5 text-slate-500 hover:text-white rounded-lg hover:bg-slate-800 transition-colors",title:"Close","aria-label":"Close",children:r.jsx(Zt,{className:"w-4 h-4"})})]}),o]})}function Dr({children:n,className:s=""}){return r.jsx("div",{className:`
92
92
  flex-1 overflow-y-auto
93
93
  scrollbar-thin scrollbar-thumb-slate-700 scrollbar-track-transparent
94
94
  ${s}
95
- `,children:n})}function _p({children:n,className:s=""}){return r.jsx("div",{className:`
95
+ `,children:n})}function U1({children:n,className:s=""}){return r.jsx("div",{className:`
96
96
  flex-shrink-0
97
97
  px-4 py-2
98
98
  border-t border-slate-800/50
99
99
  safe-area-pb
100
100
  ${s}
101
- `,children:n})}function Lp({children:n,className:s=""}){return r.jsx("div",{className:`
101
+ `,children:n})}function B1({children:n,className:s=""}){return r.jsx("div",{className:`
102
102
  flex-shrink-0
103
103
  px-3 py-2
104
104
  border-b border-slate-800/30
105
105
  flex items-center gap-1
106
106
  ${s}
107
- `,children:n})}function kp({isActive:n,onClick:s,children:c,className:o=""}){return r.jsx("button",{type:"button",onClick:s,className:`
107
+ `,children:n})}function H1({isActive:n,onClick:s,children:c,className:o=""}){return r.jsx("button",{type:"button",onClick:s,className:`
108
108
  px-2.5 py-1.5 rounded-md text-xs font-medium whitespace-nowrap
109
109
  transition-all active:scale-[0.98]
110
110
  ${n?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/60 active:bg-slate-800/80"}
111
111
  ${o}
112
- `,children:c})}function Up({onClick:n,className:s=""}){return r.jsx("button",{type:"button",onClick:n,className:`
112
+ `,children:c})}function q1({onClick:n,className:s=""}){return r.jsx("button",{type:"button",onClick:n,className:`
113
113
  p-2 text-slate-400 hover:text-white
114
114
  hover:bg-slate-800 rounded-lg
115
115
  transition-colors
116
116
  ${s}
117
- `,title:"Close (Esc)","aria-label":"Close",children:r.jsx(Zt,{className:"w-5 h-5"})})}function Bp({title:n,icon:s,children:c,defaultExpanded:o=!0,badge:d}){const[m,v]=h.useState(o);return r.jsxs("div",{className:"border-b border-slate-800/50 last:border-b-0",children:[r.jsxs("button",{onClick:()=>v(!m),className:"w-full px-4 py-3 flex items-center gap-2 text-left hover:bg-slate-800/30 transition-colors",children:[m?r.jsx(yn,{className:"w-3.5 h-3.5 text-slate-500"}):r.jsx(Al,{className:"w-3.5 h-3.5 text-slate-500"}),s&&r.jsx(s,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider flex-1",children:n}),d&&r.jsx("span",{className:"text-[10px] font-medium text-slate-500 bg-slate-800 px-1.5 py-0.5 rounded",children:d})]}),r.jsx("div",{className:`
117
+ `,title:"Close (Esc)","aria-label":"Close",children:r.jsx(Zt,{className:"w-5 h-5"})})}function Q1({title:n,icon:s,children:c,defaultExpanded:o=!0,badge:d}){const[m,v]=h.useState(o);return r.jsxs("div",{className:"border-b border-slate-800/50 last:border-b-0",children:[r.jsxs("button",{onClick:()=>v(!m),className:"w-full px-4 py-3 flex items-center gap-2 text-left hover:bg-slate-800/30 transition-colors",children:[m?r.jsx(yn,{className:"w-3.5 h-3.5 text-slate-500"}):r.jsx(Ol,{className:"w-3.5 h-3.5 text-slate-500"}),s&&r.jsx(s,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider flex-1",children:n}),d&&r.jsx("span",{className:"text-[10px] font-medium text-slate-500 bg-slate-800 px-1.5 py-0.5 rounded",children:d})]}),r.jsx("div",{className:`
118
118
  overflow-hidden transition-all duration-200
119
119
  ${m?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"}
120
- `,children:r.jsx("div",{className:"px-4 pb-3 space-y-2",children:c})})]})}function Hp({label:n,value:s,mono:c=!1,copyable:o=!1,href:d,badge:m,icon:v}){const[g,b]=h.useState(!1),x=h.useCallback(async N=>{N.preventDefault(),N.stopPropagation(),await navigator.clipboard.writeText(String(s)),b(!0)},[s]),y=h.useCallback(()=>{g&&b(!1)},[g]);if(s==null||s==="")return null;let E=r.jsx("span",{className:`
120
+ `,children:r.jsx("div",{className:"px-4 pb-3 space-y-2",children:c})})]})}function V1({label:n,value:s,mono:c=!1,copyable:o=!1,href:d,badge:m,icon:v}){const[g,b]=h.useState(!1),x=h.useCallback(async N=>{N.preventDefault(),N.stopPropagation(),await navigator.clipboard.writeText(String(s)),b(!0)},[s]),y=h.useCallback(()=>{g&&b(!1)},[g]);if(s==null||s==="")return null;let E=r.jsx("span",{className:`
121
121
  text-slate-200 truncate
122
122
  ${c?"font-mono text-xs":"text-sm"}
123
123
  `,children:s});return d&&(E=r.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:`
124
124
  text-blue-400 hover:text-blue-300 truncate inline-flex items-center gap-1
125
125
  ${c?"font-mono text-xs":"text-sm"}
126
- `,children:[s,r.jsx(_v,{className:"w-3 h-3 flex-shrink-0"})]})),r.jsxs("div",{className:"flex items-center justify-between gap-3 py-1 group",onMouseLeave:y,children:[r.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-xs flex-shrink-0",children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n})]}),r.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m&&r.jsx("span",{className:`
126
+ `,children:[s,r.jsx(Lv,{className:"w-3 h-3 flex-shrink-0"})]})),r.jsxs("div",{className:"flex items-center justify-between gap-3 py-1 group",onMouseLeave:y,children:[r.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-xs flex-shrink-0",children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n})]}),r.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m&&r.jsx("span",{className:`
127
127
  text-[10px] font-medium px-1.5 py-0.5 rounded-full border
128
128
  ${m.variant==="success"?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":""}
129
129
  ${m.variant==="warning"?"bg-amber-500/10 text-amber-400 border-amber-500/20":""}
@@ -133,63 +133,63 @@ Error generating stack: `+l.message+`
133
133
  `,children:m.label}),E,o&&r.jsx("button",{onClick:x,className:`
134
134
  p-1 rounded transition-colors flex-shrink-0
135
135
  ${g?"text-emerald-400 bg-emerald-500/10":"text-slate-600 hover:text-slate-400 opacity-0 group-hover:opacity-100"}
136
- `,title:g?"Copied!":`Copy ${n}`,children:g?r.jsx(vp,{className:"w-3 h-3"}):r.jsx(l1,{className:"w-3 h-3"})})]})]})}function qp({label:n,icon:s,onClick:c,href:o,variant:d="default"}){const m={default:"text-slate-400 hover:text-white hover:bg-slate-800/50",primary:"text-blue-400 hover:text-blue-300 hover:bg-blue-500/10",danger:"text-red-400 hover:text-red-300 hover:bg-red-500/10"},v=o?"a":"button",g=o?{href:o,target:"_blank",rel:"noopener noreferrer"}:{onClick:c};return r.jsxs(v,{...g,className:`
136
+ `,title:g?"Copied!":`Copy ${n}`,children:g?r.jsx(g1,{className:"w-3 h-3"}):r.jsx(np,{className:"w-3 h-3"})})]})]})}function Y1({label:n,icon:s,onClick:c,href:o,variant:d="default"}){const m={default:"text-slate-400 hover:text-white hover:bg-slate-800/50",primary:"text-blue-400 hover:text-blue-300 hover:bg-blue-500/10",danger:"text-red-400 hover:text-red-300 hover:bg-red-500/10"},v=o?"a":"button",g=o?{href:o,target:"_blank",rel:"noopener noreferrer"}:{onClick:c};return r.jsxs(v,{...g,className:`
137
137
  flex items-center gap-2 w-full px-3 py-2 rounded-lg text-sm
138
138
  transition-colors ${m[d]}
139
- `,children:[s&&r.jsx(s,{className:"w-4 h-4 flex-shrink-0"}),r.jsx("span",{children:n})]})}function dt({isOpen:n,onClose:s,title:c="Inspector",subtitle:o,children:d,className:m="",showHeader:v=!0,testId:g="inspector-panel"}){return r.jsxs(Tr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"right",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,className:m,testId:g,children:[v&&r.jsx(Rr,{title:c,subtitle:o,onClose:s}),r.jsx(Dr,{children:d})]})}dt.Section=Bp,dt.Row=Hp,dt.Action=qp;function Qp(n){const s=n.analysis_metadata||{},c=s.cluster_analysis||{},o=n.diffClusters||[],d=n.diff_percentage??n.diffPercentage,m=d!=null?`${Number(d).toFixed(1)}%`:null,v=c.clusterCount??(o.length||null),g=n.approval_status==="auto_approved",b=s.auto_approval_reason;if(g&&b)return{label:"Auto-approved",detail:m,color:"text-purple-400/80"};const x=c.classification;if(x){const y=v?`${v} regions`:m;switch(x){case"dynamic_content":return{label:"Dynamic content",detail:y,color:"text-purple-400/80"};case"major_structural":return{label:"Major structural",detail:y,color:"text-red-400/80"};case"major":return{label:"Major changes",detail:y,color:"text-orange-400/80"};case"moderate":return{label:"Moderate changes",detail:y,color:"text-amber-400/80"};case"minor":return{label:"Minor changes",detail:y,color:"text-amber-400/80"}}}if(v>0)return{label:v===1?"1 region":`${v} regions`,detail:m,color:"text-amber-400/80"};if(d!=null){const y=Number(d);let E,N;return y<1?(E="Tiny change",N="text-slate-400/80"):y<5?(E="Small change",N="text-amber-400/80"):y<15?(E="Moderate change",N="text-amber-400/80"):y<30?(E="Significant change",N="text-orange-400/80"):(E="Large change",N="text-red-400/80"),{label:E,detail:m,color:N}}return null}function Vp({item:n,isActive:s,thumbnailUrl:c,onClick:o}){const[d,m]=h.useState(!1),v=n.result==="changed"||n.status==="failed",g=n.result==="new"||n.status==="new"||n.status==="baseline-created",b=n.approval_status==="approved"||n.approval_status==="auto_approved",x=n.approval_status==="rejected",y=n.is_flaky,E=(v||g)&&!b&&!x,N=v?Qp(n):null,_=()=>s?x?"bg-red-500/15 ring-1 ring-red-500/40":b?"bg-emerald-500/15 ring-1 ring-emerald-500/40":y?"bg-purple-500/15 ring-1 ring-purple-500/40":"bg-amber-500/15 ring-1 ring-amber-500/40":"hover:bg-slate-800/60 active:bg-slate-800/80",A=()=>x?"bg-red-500":b?"bg-emerald-500":y?"bg-purple-500":"bg-amber-500",R=()=>s?x?"text-red-300 font-medium":b?"text-emerald-300 font-medium":y?"text-purple-300 font-medium":"text-amber-300 font-medium":"text-slate-300";return r.jsxs("button",{type:"button",onClick:o,className:`
139
+ `,children:[s&&r.jsx(s,{className:"w-4 h-4 flex-shrink-0"}),r.jsx("span",{children:n})]})}function dt({isOpen:n,onClose:s,title:c="Inspector",subtitle:o,children:d,className:m="",showHeader:v=!0,testId:g="inspector-panel"}){return r.jsxs(zr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"right",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,className:m,testId:g,children:[v&&r.jsx(Rr,{title:c,subtitle:o,onClose:s}),r.jsx(Dr,{children:d})]})}dt.Section=Q1,dt.Row=V1,dt.Action=Y1;function G1(n){const s=n.analysis_metadata||{},c=s.cluster_analysis||{},o=n.diffClusters||[],d=n.diff_percentage??n.diffPercentage,m=d!=null?`${Number(d).toFixed(1)}%`:null,v=c.clusterCount??(o.length||null),g=n.approval_status==="auto_approved",b=s.auto_approval_reason;if(g&&b)return{label:"Auto-approved",detail:m,color:"text-purple-400/80"};const x=c.classification;if(x){const y=v?`${v} regions`:m;switch(x){case"dynamic_content":return{label:"Dynamic content",detail:y,color:"text-purple-400/80"};case"major_structural":return{label:"Major structural",detail:y,color:"text-red-400/80"};case"major":return{label:"Major changes",detail:y,color:"text-orange-400/80"};case"moderate":return{label:"Moderate changes",detail:y,color:"text-amber-400/80"};case"minor":return{label:"Minor changes",detail:y,color:"text-amber-400/80"}}}if(v>0)return{label:v===1?"1 region":`${v} regions`,detail:m,color:"text-amber-400/80"};if(d!=null){const y=Number(d);let E,N;return y<1?(E="Tiny change",N="text-slate-400/80"):y<5?(E="Small change",N="text-amber-400/80"):y<15?(E="Moderate change",N="text-amber-400/80"):y<30?(E="Significant change",N="text-orange-400/80"):(E="Large change",N="text-red-400/80"),{label:E,detail:m,color:N}}return null}function Z1({item:n,isActive:s,thumbnailUrl:c,onClick:o}){const[d,m]=h.useState(!1),v=n.result==="changed"||n.status==="failed",g=n.result==="new"||n.status==="new"||n.status==="baseline-created",b=n.approval_status==="approved"||n.approval_status==="auto_approved",x=n.approval_status==="rejected",y=n.is_flaky,E=(v||g)&&!b&&!x,N=v?G1(n):null,L=()=>s?x?"bg-red-500/15 ring-1 ring-red-500/40":b?"bg-emerald-500/15 ring-1 ring-emerald-500/40":y?"bg-purple-500/15 ring-1 ring-purple-500/40":"bg-amber-500/15 ring-1 ring-amber-500/40":"hover:bg-slate-800/60 active:bg-slate-800/80",A=()=>x?"bg-red-500":b?"bg-emerald-500":y?"bg-purple-500":"bg-amber-500",O=()=>s?x?"text-red-300 font-medium":b?"text-emerald-300 font-medium":y?"text-purple-300 font-medium":"text-amber-300 font-medium":"text-slate-300";return r.jsxs("button",{type:"button",onClick:o,className:`
140
140
  group relative w-full flex items-center gap-3 px-3 py-2.5 rounded-lg
141
141
  text-left transition-all active:scale-[0.99]
142
- ${_()}
142
+ ${L()}
143
143
  ${E?"opacity-100":"opacity-60 hover:opacity-100"}
144
- `,children:[r.jsxs("div",{className:"relative w-10 h-14 flex-shrink-0 rounded-md overflow-hidden bg-slate-800/80",children:[c&&r.jsx("img",{src:c,alt:n.name,className:`w-full h-full object-cover object-top transition-opacity ${d?"opacity-100":"opacity-0"}`,loading:"lazy",onLoad:()=>m(!0)}),!d&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-slate-600 text-sm font-medium",children:(n.name||"?").charAt(0).toUpperCase()}),v&&r.jsx("div",{className:"absolute top-0.5 right-0.5",children:r.jsx("span",{className:`w-2 h-2 rounded-full block ${b?"bg-emerald-500":x?"bg-red-500":"bg-amber-500 animate-pulse"}`})}),g&&!v&&r.jsx("div",{className:"absolute bottom-0.5 left-0.5 px-1 py-0.5 bg-blue-500 rounded text-[8px] font-bold text-white",children:"NEW"})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:`text-sm truncate ${R()}`,children:n.name||"Unnamed"}),N&&r.jsxs("p",{className:`text-[10px] mt-0.5 ${N.color}`,children:[N.label,N.detail&&r.jsxs("span",{className:"text-slate-500 ml-1",children:["· ",N.detail]})]})]}),s&&r.jsx("div",{className:`absolute left-0 top-3 bottom-3 w-0.5 rounded-full ${A()}`})]})}const bf=h.createContext(null);function Yp({children:n,defaultActive:s=!1}){const[c,o]=h.useState(s),d=h.useCallback(()=>o(!0),[]),m=h.useCallback(()=>o(!1),[]),v=h.useCallback(()=>o(b=>!b),[]);h.useEffect(()=>{const b=x=>{x.target.tagName==="INPUT"||x.target.tagName==="TEXTAREA"||x.key===" "&&(x.preventDefault(),v())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[v]);const g={isActive:c,enter:d,exit:m,toggle:v};return r.jsx(bf.Provider,{value:g,children:n})}function yf(){const n=h.useContext(bf);if(!n)throw new Error("useReviewMode must be used within a ReviewModeProvider");return n}function Gp(n,s={}){const{isActive:c}=yf(),{enabled:o=!0}=s;h.useEffect(()=>{if(!c||!o)return;const d=m=>{if(m.target.tagName==="INPUT"||m.target.tagName==="TEXTAREA"||m.metaKey||m.ctrlKey||m.altKey)return;const v=m.key.toLowerCase(),g=n[v];g&&(m.preventDefault(),g(m))};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c,o,n])}function Ml(n){if(!n||typeof n!="object")return{};const s={browser:null,device:null,viewport:null,viewportWidth:null,viewportHeight:null};if(s.browser=n.browser||n.metadata?.browser||n.metadata?.properties?.browser||null,s.device=n.metadata?.device||n.device||null,n.viewport_width&&n.viewport_height)s.viewportWidth=n.viewport_width,s.viewportHeight=n.viewport_height,s.viewport=`${n.viewport_width}x${n.viewport_height}`;else if(n.width&&n.height)s.viewportWidth=n.width,s.viewportHeight=n.height,s.viewport=`${n.width}x${n.height}`;else if(n.metadata?.viewport){s.viewport=n.metadata.viewport;const c=n.metadata.viewport.split("x");if(c.length===2){const[o,d]=c.map(Number);!isNaN(o)&&!isNaN(d)&&(s.viewportWidth=o,s.viewportHeight=d)}}return n.metadata&&typeof n.metadata=="object"&&(Object.entries(n.metadata).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight","properties"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)}),n.metadata.properties&&typeof n.metadata.properties=="object"&&Object.entries(n.metadata.properties).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)})),s}function Zp({value:n,onChange:s,placeholder:c="Search...",className:o="",autoFocus:d=!1}){return r.jsxs("div",{className:`relative flex-1 ${o}`,children:[r.jsx(A1,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),r.jsx("input",{type:"text",value:n,onChange:m=>s(m.target.value),placeholder:c,autoFocus:d,className:"w-full pl-9 pr-8 py-2 bg-gray-900/50 border border-gray-700/50 rounded-lg text-sm text-white placeholder-gray-500 focus:outline-none focus:border-gray-600 focus:ring-1 focus:ring-gray-600/50 transition-colors"}),n&&r.jsx("button",{onClick:()=>s(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:r.jsx(Zt,{className:"w-4 h-4"})})]})}function Qe({variant:n="text",width:s,height:c,className:o="",count:d=1}){const m="animate-pulse bg-gradient-to-r from-slate-800 via-slate-700 to-slate-800 bg-[length:200%_100%] rounded",v={text:"h-4 rounded",heading:"h-8 rounded",avatar:"rounded-full",card:"rounded-xl",button:"h-10 rounded-lg",badge:"h-6 w-16 rounded-full"},b={text:{width:"100%",height:"16px"},heading:{width:"60%",height:"32px"},avatar:{width:"40px",height:"40px"},card:{width:"100%",height:"200px"},button:{width:"100px",height:"40px"},badge:{width:"64px",height:"24px"}}[n],x=Array.from({length:d},(y,E)=>r.jsx("div",{className:`${m} ${v[n]} ${o}`,style:{width:s||b.width,height:c||b.height,animation:"shimmer 1.5s infinite"}},E));return d===1?x[0]:r.jsx("div",{className:"space-y-2",children:x})}function wf({className:n=""}){return r.jsxs("div",{className:`bg-white/[0.03] border border-slate-700/50 rounded-xl p-6 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(Qe,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(Qe,{variant:"text",width:"40%"}),r.jsx(Qe,{variant:"text",width:"60%",height:"12px"})]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(Qe,{variant:"text"}),r.jsx(Qe,{variant:"text"}),r.jsx(Qe,{variant:"text",width:"80%"})]})]})}function An({size:n="md",className:s=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${s}`,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}const Xp=["viewport","browser"],Ea={viewport:{label:"Size",getValue:n=>{const s=n.viewport_width||n.width,c=n.viewport_height||n.height;return s&&c?`${s}x${c}`:null},formatValue:n=>n?.replace("x","×"),sortValues:(n,s)=>{const[c]=(n||"0x0").split("x").map(Number),[o]=(s||"0x0").split("x").map(Number);return o-c},renderIcon:(n,s="w-3.5 h-3.5")=>{const c=parseInt(n?.split("x")[0],10)||0;return c<=480?r.jsx(Ms,{className:s}):c<=1024?r.jsx(jr,{className:s}):r.jsx(wn,{className:s})},isMono:!0},browser:{label:"Browser",getValue:n=>Ml(n).browser||n.browser||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Nn,{browser:n,className:s})},theme:{label:"Theme",getValue:n=>Ml(n).theme||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>n==="light"?-1:s==="light"?1:(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>n?.toLowerCase()==="dark"?r.jsx(z1,{className:s}):r.jsx(k1,{className:s})},locale:{label:"Locale",getValue:n=>Ml(n).locale||null,formatValue:n=>n?.toUpperCase(),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(_o,{className:s})},device:{label:"Device",getValue:n=>Ml(n).device||null,formatValue:n=>n,sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Ms,{className:s})}};function Jt(n,s){const c=Ea[s];return c?c.getValue(n):Ml(n)[s]||n[s]||null}function Ls(n,s,c=!1,o=14){const d=Ea[n];let m;return d?.formatValue?m=d.formatValue(s):s==null?m="none":typeof s=="boolean"||typeof s=="number"?m=String(s):typeof s=="object"?m=JSON.stringify(s):m=s,m&&m.length>o&&(m=m.slice(0,o-1)+"…"),c&&!d?`${ks(n).toLowerCase()}: ${m}`:m}function jf(n,s){const c=Ea[n];return c?.sortValues?[...s].sort(c.sortValues):s}function ks(n){return Ea[n]?.label||n.charAt(0).toUpperCase()+n.slice(1)}function On(n,s,c="w-4 h-4"){const o=Ea[n];return o?.renderIcon?o.renderIcon(s,c):r.jsx(B1,{className:c})}function Kp(n,s=[]){const c=h.useMemo(()=>{const d=[...Xp];s.forEach(g=>{d.includes(g)||d.push(g)}),Object.keys(Ea).forEach(g=>{if(d.includes(g))return;n.some(x=>Jt(x,g)!=null)&&d.push(g)});const v=["browser","viewport","viewportWidth","viewportHeight","device","url","selector","width","height"];return n.forEach(g=>{const b=Ml(g);Object.keys(b).forEach(x=>{!d.includes(x)&&!v.includes(x)&&b[x]!=null&&typeof b[x]!="object"&&d.push(x)})}),d},[s,n]),o=h.useMemo(()=>{if(!n||n.length===0)return{};const d={};return c.forEach(m=>{const v=new Set;n.forEach(g=>{const b=Jt(g,m);b!=null&&v.add(b)}),v.size>=1&&(d[m]={values:Array.from(v),hasMultiple:v.size>1})}),d},[n,c]);return{effectiveDimensions:c,dimensionAnalysis:o}}function Sf(n,s,c,o,d){let m=null,v=-1;return n.forEach(g=>{if(Jt(g,s)!==c)return;let b=0;d.forEach(x=>{if(x===s)return;const y=o?Jt(o,x):null,E=Jt(g,x);y===E&&b++}),b>v&&(v=b,m=g)}),m||(m=n.find(g=>Jt(g,s)===c)),m}function $p({dimension:n,currentValue:s,allValues:c,onSelect:o,isLast:d}){const[m,v]=h.useState(!1),g=h.useRef(null),b=h.useRef(null),x=Ea[n],y=c.length>1,E=Ls(n,s,!0);h.useEffect(()=>{if(!m)return;function _(A){g.current&&!g.current.contains(A.target)&&b.current&&!b.current.contains(A.target)&&v(!1)}return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[m]),h.useEffect(()=>{if(!m)return;function _(A){A.key==="Escape"&&v(!1)}return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[m]);const N=h.useCallback(_=>{o(n,_),v(!1)},[n,o]);return r.jsxs("div",{className:"relative flex items-center flex-shrink-0",ref:g,children:[r.jsxs("button",{onClick:()=>y&&v(!m),disabled:!y,className:`
144
+ `,children:[r.jsxs("div",{className:"relative w-10 h-14 flex-shrink-0 rounded-md overflow-hidden bg-slate-800/80",children:[c&&r.jsx("img",{src:c,alt:n.name,className:`w-full h-full object-cover object-top transition-opacity ${d?"opacity-100":"opacity-0"}`,loading:"lazy",onLoad:()=>m(!0)}),!d&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-slate-600 text-sm font-medium",children:(n.name||"?").charAt(0).toUpperCase()}),v&&r.jsx("div",{className:"absolute top-0.5 right-0.5",children:r.jsx("span",{className:`w-2 h-2 rounded-full block ${b?"bg-emerald-500":x?"bg-red-500":"bg-amber-500 animate-pulse"}`})}),g&&!v&&r.jsx("div",{className:"absolute bottom-0.5 left-0.5 px-1 py-0.5 bg-blue-500 rounded text-[8px] font-bold text-white",children:"NEW"})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:`text-sm truncate ${O()}`,children:n.name||"Unnamed"}),N&&r.jsxs("p",{className:`text-[10px] mt-0.5 ${N.color}`,children:[N.label,N.detail&&r.jsxs("span",{className:"text-slate-500 ml-1",children:["· ",N.detail]})]})]}),s&&r.jsx("div",{className:`absolute left-0 top-3 bottom-3 w-0.5 rounded-full ${A()}`})]})}const yf=h.createContext(null);function X1({children:n,defaultActive:s=!1}){const[c,o]=h.useState(s),d=h.useCallback(()=>o(!0),[]),m=h.useCallback(()=>o(!1),[]),v=h.useCallback(()=>o(b=>!b),[]);h.useEffect(()=>{const b=x=>{x.target.tagName==="INPUT"||x.target.tagName==="TEXTAREA"||x.key===" "&&(x.preventDefault(),v())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[v]);const g={isActive:c,enter:d,exit:m,toggle:v};return r.jsx(yf.Provider,{value:g,children:n})}function wf(){const n=h.useContext(yf);if(!n)throw new Error("useReviewMode must be used within a ReviewModeProvider");return n}function K1(n,s={}){const{isActive:c}=wf(),{enabled:o=!0}=s;h.useEffect(()=>{if(!c||!o)return;const d=m=>{if(m.target.tagName==="INPUT"||m.target.tagName==="TEXTAREA"||m.metaKey||m.ctrlKey||m.altKey)return;const v=m.key.toLowerCase(),g=n[v];g&&(m.preventDefault(),g(m))};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c,o,n])}function Tl(n){if(!n||typeof n!="object")return{};const s={browser:null,device:null,viewport:null,viewportWidth:null,viewportHeight:null};if(s.browser=n.browser||n.metadata?.browser||n.metadata?.properties?.browser||null,s.device=n.metadata?.device||n.device||null,n.viewport_width&&n.viewport_height)s.viewportWidth=n.viewport_width,s.viewportHeight=n.viewport_height,s.viewport=`${n.viewport_width}x${n.viewport_height}`;else if(n.width&&n.height)s.viewportWidth=n.width,s.viewportHeight=n.height,s.viewport=`${n.width}x${n.height}`;else if(n.metadata?.viewport){s.viewport=n.metadata.viewport;const c=n.metadata.viewport.split("x");if(c.length===2){const[o,d]=c.map(Number);!isNaN(o)&&!isNaN(d)&&(s.viewportWidth=o,s.viewportHeight=d)}}return n.metadata&&typeof n.metadata=="object"&&(Object.entries(n.metadata).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight","properties"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)}),n.metadata.properties&&typeof n.metadata.properties=="object"&&Object.entries(n.metadata.properties).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)})),s}function $1({value:n,onChange:s,placeholder:c="Search...",className:o="",autoFocus:d=!1}){return r.jsxs("div",{className:`relative flex-1 ${o}`,children:[r.jsx(Op,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),r.jsx("input",{type:"text",value:n,onChange:m=>s(m.target.value),placeholder:c,autoFocus:d,className:"w-full pl-9 pr-8 py-2 bg-gray-900/50 border border-gray-700/50 rounded-lg text-sm text-white placeholder-gray-500 focus:outline-none focus:border-gray-600 focus:ring-1 focus:ring-gray-600/50 transition-colors"}),n&&r.jsx("button",{onClick:()=>s(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:r.jsx(Zt,{className:"w-4 h-4"})})]})}function Qe({variant:n="text",width:s,height:c,className:o="",count:d=1}){const m="animate-pulse bg-gradient-to-r from-slate-800 via-slate-700 to-slate-800 bg-[length:200%_100%] rounded",v={text:"h-4 rounded",heading:"h-8 rounded",avatar:"rounded-full",card:"rounded-xl",button:"h-10 rounded-lg",badge:"h-6 w-16 rounded-full"},b={text:{width:"100%",height:"16px"},heading:{width:"60%",height:"32px"},avatar:{width:"40px",height:"40px"},card:{width:"100%",height:"200px"},button:{width:"100px",height:"40px"},badge:{width:"64px",height:"24px"}}[n],x=Array.from({length:d},(y,E)=>r.jsx("div",{className:`${m} ${v[n]} ${o}`,style:{width:s||b.width,height:c||b.height,animation:"shimmer 1.5s infinite"}},E));return d===1?x[0]:r.jsx("div",{className:"space-y-2",children:x})}function jf({className:n=""}){return r.jsxs("div",{className:`bg-white/[0.03] border border-slate-700/50 rounded-xl p-6 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(Qe,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(Qe,{variant:"text",width:"40%"}),r.jsx(Qe,{variant:"text",width:"60%",height:"12px"})]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(Qe,{variant:"text"}),r.jsx(Qe,{variant:"text"}),r.jsx(Qe,{variant:"text",width:"80%"})]})]})}function An({size:n="md",className:s=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${s}`,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}const J1=["viewport","browser"],Ca={viewport:{label:"Size",getValue:n=>{const s=n.viewport_width||n.width,c=n.viewport_height||n.height;return s&&c?`${s}x${c}`:null},formatValue:n=>n?.replace("x","×"),sortValues:(n,s)=>{const[c]=(n||"0x0").split("x").map(Number),[o]=(s||"0x0").split("x").map(Number);return o-c},renderIcon:(n,s="w-3.5 h-3.5")=>{const c=parseInt(n?.split("x")[0],10)||0;return c<=480?r.jsx(Ms,{className:s}):c<=1024?r.jsx(jr,{className:s}):r.jsx(wn,{className:s})},isMono:!0},browser:{label:"Browser",getValue:n=>Tl(n).browser||n.browser||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Nn,{browser:n,className:s})},theme:{label:"Theme",getValue:n=>Tl(n).theme||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>n==="light"?-1:s==="light"?1:(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>n?.toLowerCase()==="dark"?r.jsx(zp,{className:s}):r.jsx(Up,{className:s})},locale:{label:"Locale",getValue:n=>Tl(n).locale||null,formatValue:n=>n?.toUpperCase(),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(_o,{className:s})},device:{label:"Device",getValue:n=>Tl(n).device||null,formatValue:n=>n,sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Ms,{className:s})}};function Jt(n,s){const c=Ca[s];return c?c.getValue(n):Tl(n)[s]||n[s]||null}function Ls(n,s,c=!1,o=14){const d=Ca[n];let m;return d?.formatValue?m=d.formatValue(s):s==null?m="none":typeof s=="boolean"||typeof s=="number"?m=String(s):typeof s=="object"?m=JSON.stringify(s):m=s,m&&m.length>o&&(m=m.slice(0,o-1)+"…"),c&&!d?`${ks(n).toLowerCase()}: ${m}`:m}function Sf(n,s){const c=Ca[n];return c?.sortValues?[...s].sort(c.sortValues):s}function ks(n){return Ca[n]?.label||n.charAt(0).toUpperCase()+n.slice(1)}function On(n,s,c="w-4 h-4"){const o=Ca[n];return o?.renderIcon?o.renderIcon(s,c):r.jsx(Hp,{className:c})}function F1(n,s=[]){const c=h.useMemo(()=>{const d=[...J1];s.forEach(g=>{d.includes(g)||d.push(g)}),Object.keys(Ca).forEach(g=>{if(d.includes(g))return;n.some(x=>Jt(x,g)!=null)&&d.push(g)});const v=["browser","viewport","viewportWidth","viewportHeight","device","url","selector","width","height"];return n.forEach(g=>{const b=Tl(g);Object.keys(b).forEach(x=>{!d.includes(x)&&!v.includes(x)&&b[x]!=null&&typeof b[x]!="object"&&d.push(x)})}),d},[s,n]),o=h.useMemo(()=>{if(!n||n.length===0)return{};const d={};return c.forEach(m=>{const v=new Set;n.forEach(g=>{const b=Jt(g,m);b!=null&&v.add(b)}),v.size>=1&&(d[m]={values:Array.from(v),hasMultiple:v.size>1})}),d},[n,c]);return{effectiveDimensions:c,dimensionAnalysis:o}}function Nf(n,s,c,o,d){let m=null,v=-1;return n.forEach(g=>{if(Jt(g,s)!==c)return;let b=0;d.forEach(x=>{if(x===s)return;const y=o?Jt(o,x):null,E=Jt(g,x);y===E&&b++}),b>v&&(v=b,m=g)}),m||(m=n.find(g=>Jt(g,s)===c)),m}function W1({dimension:n,currentValue:s,allValues:c,onSelect:o,isLast:d}){const[m,v]=h.useState(!1),g=h.useRef(null),b=h.useRef(null),x=Ca[n],y=c.length>1,E=Ls(n,s,!0);h.useEffect(()=>{if(!m)return;function L(A){g.current&&!g.current.contains(A.target)&&b.current&&!b.current.contains(A.target)&&v(!1)}return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[m]),h.useEffect(()=>{if(!m)return;function L(A){A.key==="Escape"&&v(!1)}return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[m]);const N=h.useCallback(L=>{o(n,L),v(!1)},[n,o]);return r.jsxs("div",{className:"relative flex items-center flex-shrink-0",ref:g,children:[r.jsxs("button",{onClick:()=>y&&v(!m),disabled:!y,className:`
145
145
  group flex items-center gap-1.5 px-2 py-1 rounded-md
146
146
  text-sm transition-all duration-150 whitespace-nowrap
147
147
  ${y?"hover:bg-slate-700/60 cursor-pointer":"cursor-default opacity-75"}
148
148
  ${m?"bg-slate-700/60 ring-1 ring-slate-600/50":""}
149
- `,"aria-expanded":m,"aria-haspopup":y?"listbox":void 0,children:[r.jsx("span",{className:`transition-colors ${m?"text-amber-400":"text-slate-400 group-hover:text-slate-300"}`,children:On(n,s,"w-4 h-4")}),r.jsx("span",{className:`transition-colors ${m?"text-white":"text-slate-200 group-hover:text-white"} ${x?.isMono?"font-mono text-xs":"text-sm"}`,children:E||"Unknown"}),y&&r.jsx(yn,{className:`w-3 h-3 transition-all duration-150 ${m?"text-amber-400 rotate-180":"text-slate-500 group-hover:text-slate-400"}`})]}),!d&&r.jsx("span",{className:"mx-0.5 text-slate-600 select-none opacity-40",children:"/"}),m&&y&&r.jsxs("div",{ref:b,className:"absolute top-full left-0 mt-1.5 z-50 min-w-[160px] max-h-[280px] overflow-y-auto bg-slate-800/95 backdrop-blur-sm border border-slate-700/60 rounded-lg shadow-xl shadow-black/40 py-1 animate-in fade-in slide-in-from-top-2 duration-150",role:"listbox","aria-label":`Select ${ks(n)}`,children:[r.jsx("div",{className:"px-3 py-2 border-b border-slate-700/40",children:r.jsx("span",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wider",children:ks(n)})}),jf(n,c).map(_=>{const A=_===s,R=Ls(n,_);return r.jsxs("button",{onClick:()=>N(_),className:`w-full flex items-center gap-2.5 px-3 py-2 text-left transition-all duration-100 ${A?"bg-amber-500/15 text-amber-400":"text-slate-300 hover:bg-slate-700/60 hover:text-white"}`,role:"option","aria-selected":A,children:[r.jsx("span",{className:A?"text-amber-400":"text-slate-500",children:On(n,_,"w-4 h-4")}),r.jsx("span",{className:`flex-1 ${x?.isMono?"font-mono text-xs":"text-sm"}`,children:R}),A&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 shadow-sm shadow-amber-500/50"})]},_)})]})]})}function Jp({isOpen:n,onClose:s,variants:c,currentVariant:o,dimensionAnalysis:d,effectiveDimensions:m,onVariantSelect:v}){const g=h.useCallback((N,_)=>{const A=Sf(c,N,_,o,m);A&&v&&(v(A),s())},[c,o,m,v,s]),b=Object.keys(d),x=b.filter(N=>d[N].hasMultiple),y=b.filter(N=>!d[N].hasMultiple),E=[...x,...y];return r.jsxs(Tr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"none",mobileHeight:"30vh",expandedHeight:"80vh",children:[r.jsx(Rr,{title:"Select Variant",onClose:s}),r.jsx(Dr,{className:"px-3 py-3",children:r.jsx("div",{className:"space-y-5",children:E.map(N=>{const{values:_,hasMultiple:A}=d[N],R=o?Jt(o,N):_[0],Q=ks(N);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wider",children:Q}),!A&&r.jsx("span",{className:"text-[10px] text-slate-600",children:"(fixed)"})]}),r.jsx("div",{className:"flex flex-wrap gap-2",children:jf(N,_).map(H=>{const V=R===H;return r.jsxs("button",{type:"button",disabled:!A,onClick:()=>A&&g(N,H),className:`
149
+ `,"aria-expanded":m,"aria-haspopup":y?"listbox":void 0,children:[r.jsx("span",{className:`transition-colors ${m?"text-amber-400":"text-slate-400 group-hover:text-slate-300"}`,children:On(n,s,"w-4 h-4")}),r.jsx("span",{className:`transition-colors ${m?"text-white":"text-slate-200 group-hover:text-white"} ${x?.isMono?"font-mono text-xs":"text-sm"}`,children:E||"Unknown"}),y&&r.jsx(yn,{className:`w-3 h-3 transition-all duration-150 ${m?"text-amber-400 rotate-180":"text-slate-500 group-hover:text-slate-400"}`})]}),!d&&r.jsx("span",{className:"mx-0.5 text-slate-600 select-none opacity-40",children:"/"}),m&&y&&r.jsxs("div",{ref:b,className:"absolute top-full left-0 mt-1.5 z-50 min-w-[160px] max-h-[280px] overflow-y-auto bg-slate-800/95 backdrop-blur-sm border border-slate-700/60 rounded-lg shadow-xl shadow-black/40 py-1 animate-in fade-in slide-in-from-top-2 duration-150",role:"listbox","aria-label":`Select ${ks(n)}`,children:[r.jsx("div",{className:"px-3 py-2 border-b border-slate-700/40",children:r.jsx("span",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wider",children:ks(n)})}),Sf(n,c).map(L=>{const A=L===s,O=Ls(n,L);return r.jsxs("button",{onClick:()=>N(L),className:`w-full flex items-center gap-2.5 px-3 py-2 text-left transition-all duration-100 ${A?"bg-amber-500/15 text-amber-400":"text-slate-300 hover:bg-slate-700/60 hover:text-white"}`,role:"option","aria-selected":A,children:[r.jsx("span",{className:A?"text-amber-400":"text-slate-500",children:On(n,L,"w-4 h-4")}),r.jsx("span",{className:`flex-1 ${x?.isMono?"font-mono text-xs":"text-sm"}`,children:O}),A&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 shadow-sm shadow-amber-500/50"})]},L)})]})]})}function I1({isOpen:n,onClose:s,variants:c,currentVariant:o,dimensionAnalysis:d,effectiveDimensions:m,onVariantSelect:v}){const g=h.useCallback((N,L)=>{const A=Nf(c,N,L,o,m);A&&v&&(v(A),s())},[c,o,m,v,s]),b=Object.keys(d),x=b.filter(N=>d[N].hasMultiple),y=b.filter(N=>!d[N].hasMultiple),E=[...x,...y];return r.jsxs(zr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"none",mobileHeight:"30vh",expandedHeight:"80vh",children:[r.jsx(Rr,{title:"Select Variant",onClose:s}),r.jsx(Dr,{className:"px-3 py-3",children:r.jsx("div",{className:"space-y-5",children:E.map(N=>{const{values:L,hasMultiple:A}=d[N],O=o?Jt(o,N):L[0],Q=ks(N);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wider",children:Q}),!A&&r.jsx("span",{className:"text-[10px] text-slate-600",children:"(fixed)"})]}),r.jsx("div",{className:"flex flex-wrap gap-2",children:Sf(N,L).map(U=>{const V=O===U;return r.jsxs("button",{type:"button",disabled:!A,onClick:()=>A&&g(N,U),className:`
150
150
  flex items-center gap-2 px-3 py-2.5 rounded-lg text-sm transition-all
151
151
  ${A?"active:scale-[0.98]":"opacity-60 cursor-default"}
152
152
  ${V?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40":A?"bg-slate-800/60 text-slate-300 hover:bg-slate-700/60 active:bg-slate-700/80":"bg-slate-800/40 text-slate-400"}
153
- `,children:[On(N,H,"w-4 h-4"),r.jsx("span",{className:Ea[N]?.isMono?"font-mono text-xs":"",children:Ls(N,H)})]},H)})})]},N)})})})]})}function Fp({variants:n=[],currentVariantId:s,onVariantSelect:c,baselineSignatureProperties:o=[],className:d=""}){const[m,v]=h.useState(!1),{effectiveDimensions:g,dimensionAnalysis:b}=Kp(n,o),x=h.useMemo(()=>n.find(H=>H.id===s),[n,s]),y=h.useCallback((H,V)=>{const F=Sf(n,H,V,x,g);F&&c&&c(F)},[n,x,g,c]),E=Object.keys(b);if(n.length===0||E.length===0)return null;const N=E.filter(H=>b[H].hasMultiple),_=E.filter(H=>!b[H].hasMultiple),A=[...N,..._],R=x?Jt(x,"viewport"):null,Q=x?Jt(x,"browser"):null;return r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:()=>v(!0),className:`
153
+ `,children:[On(N,U,"w-4 h-4"),r.jsx("span",{className:Ca[N]?.isMono?"font-mono text-xs":"",children:Ls(N,U)})]},U)})})]},N)})})})]})}function P1({variants:n=[],currentVariantId:s,onVariantSelect:c,baselineSignatureProperties:o=[],className:d=""}){const[m,v]=h.useState(!1),{effectiveDimensions:g,dimensionAnalysis:b}=F1(n,o),x=h.useMemo(()=>n.find(U=>U.id===s),[n,s]),y=h.useCallback((U,V)=>{const F=Nf(n,U,V,x,g);F&&c&&c(F)},[n,x,g,c]),E=Object.keys(b);if(n.length===0||E.length===0)return null;const N=E.filter(U=>b[U].hasMultiple),L=E.filter(U=>!b[U].hasMultiple),A=[...N,...L],O=x?Jt(x,"viewport"):null,Q=x?Jt(x,"browser"):null;return r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:()=>v(!0),className:`
154
154
  sm:hidden flex items-center gap-2 px-3 py-1.5
155
155
  bg-slate-800/50 rounded-lg border border-slate-700/40
156
156
  text-sm text-slate-200 hover:bg-slate-700/50 active:bg-slate-700/70 transition-colors
157
157
  ${d}
158
- `,children:[On("viewport",R,"w-4 h-4 text-slate-400"),r.jsx("span",{className:"font-mono text-xs truncate max-w-[100px]",children:Ls("viewport",R)}),Q&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-slate-600",children:"/"}),On("browser",Q,"w-4 h-4 text-slate-400")]}),r.jsx(Al,{className:"w-3 h-3 text-slate-500 ml-auto"})]}),r.jsx("div",{className:`
158
+ `,children:[On("viewport",O,"w-4 h-4 text-slate-400"),r.jsx("span",{className:"font-mono text-xs truncate max-w-[100px]",children:Ls("viewport",O)}),Q&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-slate-600",children:"/"}),On("browser",Q,"w-4 h-4 text-slate-400")]}),r.jsx(Ol,{className:"w-3 h-3 text-slate-500 ml-auto"})]}),r.jsx("div",{className:`
159
159
  hidden sm:flex items-center flex-wrap gap-1
160
160
  bg-slate-800/50 rounded-lg px-1.5 py-1
161
161
  border border-slate-700/40
162
162
  ${d}
163
- `,children:A.map((H,V)=>{const{values:F}=b[H],Z=x?Jt(x,H):F[0];return r.jsx($p,{dimension:H,currentValue:Z,allValues:F,onSelect:y,isLast:V===A.length-1},H)})}),r.jsx(Jp,{isOpen:m,onClose:()=>v(!1),variants:n,currentVariant:x,dimensionAnalysis:b,effectiveDimensions:g,onVariantSelect:c})]})}const Wp=[{value:"overlay",label:"Overlay",shortLabel:"Over",icon:_1,description:"Show diff overlay on image"},{value:"toggle",label:"Toggle",shortLabel:"Toggle",icon:Uv,description:"Toggle between baseline and current"},{value:"onion-skin",label:"Slide",shortLabel:"Slide",icon:V1,description:"Slide to compare baseline and current"}];function Ip({value:n="overlay",onChange:s,disabled:c=!1,compact:o=!1,showLabels:d=!0,className:m=""}){return r.jsx("div",{className:`
163
+ `,children:A.map((U,V)=>{const{values:F}=b[U],K=x?Jt(x,U):F[0];return r.jsx(W1,{dimension:U,currentValue:K,allValues:F,onSelect:y,isLast:V===A.length-1},U)})}),r.jsx(I1,{isOpen:m,onClose:()=>v(!1),variants:n,currentVariant:x,dimensionAnalysis:b,effectiveDimensions:g,onVariantSelect:c})]})}const ex=[{value:"overlay",label:"Overlay",shortLabel:"Over",icon:Lp,description:"Show diff overlay on image"},{value:"toggle",label:"Toggle",shortLabel:"Toggle",icon:Bv,description:"Toggle between baseline and current"},{value:"onion-skin",label:"Slide",shortLabel:"Slide",icon:Yp,description:"Slide to compare baseline and current"}];function tx({value:n="overlay",onChange:s,disabled:c=!1,compact:o=!1,showLabels:d=!0,className:m=""}){return r.jsx("div",{className:`
164
164
  inline-flex items-center
165
165
  bg-slate-800/60 rounded-lg p-0.5
166
166
  ${m}
167
- `,role:"radiogroup","aria-label":"View mode",children:Wp.map(v=>{const g=n===v.value,b=v.icon;return r.jsx("button",{onClick:()=>s?.(v.value),disabled:c,className:`
167
+ `,role:"radiogroup","aria-label":"View mode",children:ex.map(v=>{const g=n===v.value,b=v.icon;return r.jsx("button",{onClick:()=>s?.(v.value),disabled:c,className:`
168
168
  flex items-center justify-center gap-1.5
169
169
  ${o?"p-2":"px-2 sm:px-3 py-1.5"}
170
170
  rounded-md text-xs font-medium
171
171
  transition-all duration-150
172
172
  disabled:opacity-50 disabled:cursor-not-allowed
173
173
  ${g?"bg-amber-500 text-slate-900 shadow-sm":"text-slate-400 hover:text-white hover:bg-slate-700/50"}
174
- `,role:"radio","aria-checked":g,title:v.description,children:o?r.jsx(b,{className:"w-4 h-4"}):r.jsxs(r.Fragment,{children:[r.jsx(b,{className:"w-4 h-4 hidden sm:block"}),r.jsx("span",{className:d?"":"sr-only",children:o?v.shortLabel:v.label})]})},v.value)})})}const Nf=[{key:"comparisons",label:"Comparisons",icon:Nr},{key:"stats",label:"Stats",icon:Jv},{key:"builds",label:"Builds",icon:i1},{key:"settings",label:"Settings",icon:u1}];function Pp({currentView:n,onNavigate:s,loading:c}){const[o,d]=h.useState(!1),m=v=>{s?.(v),d(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{type:"button",onClick:()=>m("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),s&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Nf.map(v=>{const g=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${g?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-4 h-4"}),v.label]},v.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(An,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),s&&r.jsx("button",{type:"button",onClick:()=>d(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(Zt,{className:"w-6 h-6"}):r.jsx(Qv,{className:"w-6 h-6"})})]})]}),s&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Nf.map(v=>{const g=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${g?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-5 h-5"}),v.label]},v.key)})})})]})})}function Mn({children:n,currentView:s,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(Pp,{currentView:s,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}function ex(){return gn({queryKey:we.authStatus(),queryFn:zr.getStatus,staleTime:30*1e3})}function tx(){return ta({mutationFn:zr.initiateLogin})}function ax(){const n=_t();return ta({mutationFn:s=>zr.pollAuthorization(s),onSuccess:s=>{s.status==="complete"&&(n.invalidateQueries({queryKey:we.auth}),n.invalidateQueries({queryKey:we.cloud}))}})}function lx(n={}){return gn({queryKey:we.projects(),queryFn:nf.list,staleTime:60*1e3,...n})}function nx(n,s,c={}){return gn({queryKey:we.builds(n,s),queryFn:()=>nf.getBuilds(n,s,{limit:20}),enabled:!!(n&&s),staleTime:30*1e3,...c})}function sx(){const n=_t();return ta({mutationFn:({buildId:s,organizationSlug:c,projectSlug:o})=>ll.downloadBaselines(s,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:we.tdd})}})}const Ef=h.createContext(null);function ix({children:n}){const[s,c]=h.useState([]),o=h.useCallback((v,g="success",b={})=>{const x=Date.now();c(E=>[...E,{id:x,message:v,type:g,...b}]);const y=b.duration!==void 0?b.duration:b.actions?null:5e3;return y&&setTimeout(()=>{c(E=>E.filter(N=>N.id!==x))},y),x},[]),d=h.useCallback(v=>{c(g=>g.filter(b=>b.id!==v))},[]),m=h.useCallback((v,g)=>new Promise(b=>{const x=Date.now();c(y=>[...y,{id:x,message:v,title:g,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(E=>E.filter(N=>N.id!==x)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(E=>E.filter(N=>N.id!==x)),b(!0)}}]}])}),[]);return r.jsxs(Ef.Provider,{value:{addToast:o,removeToast:d,confirm:m},children:[n,r.jsx(rx,{toasts:s,onRemove:d})]})}function zl(){const n=h.useContext(Ef);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function rx({toasts:n,onRemove:s}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(ux,{toast:c,onRemove:s},c.id))})}function ux({toast:n,onRemove:s}){const c=n.type==="success"?aa:n.type==="confirm"?la:jn,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",d=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400",m=n.type==="confirm";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,"data-testid":m?"confirm-dialog":void 0,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${d} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map(v=>r.jsx("button",{type:"button",onClick:v.onClick,"data-testid":m?`confirm-${v.label.toLowerCase()}`:void 0,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},v.label))})]}),!n.actions&&r.jsx("button",{type:"button",onClick:()=>s(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(Zt,{className:"w-5 h-5"})})]})})}function cx({status:n}){const s={passed:{variant:"success",icon:aa},completed:{variant:"success",icon:aa},failed:{variant:"danger",icon:jn},pending:{variant:"warning",icon:Os},processing:{variant:"info",icon:Cl}},c=s[n]||s.pending;return r.jsx(mt,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function ox(n){const s=Math.floor((Date.now()-n)/1e3);return s<60?"just now":s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:s<604800?`${Math.floor(s/86400)}d ago`:n.toLocaleDateString()}function fx({build:n,project:s,onDownload:c,downloading:o}){const d=new Date(n.createdAt||n.created_at),m=ox(d);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(cx,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:m}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(ut,{variant:"ghost",size:"sm",onClick:()=>c(n,s),loading:o,icon:Mv,title:"Download baselines from this build"})]})}function dx({project:n,onExpand:s,expanded:c,onDownload:o,downloadingBuildId:d}){const{data:m,isLoading:v}=nx(c?n.organizationSlug:null,c?n.slug:null),g=m?.builds||[];return r.jsxs(Ie,{hover:!1,children:[r.jsxs("button",{type:"button",onClick:()=>s(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(Do,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[v&&r.jsx(An,{size:"sm",className:"text-amber-400"}),c?r.jsx(yn,{className:"w-5 h-5 text-slate-400"}):r.jsx(Al,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(tt,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:v?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(An,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):g&&g.length>0?r.jsx("div",{className:"space-y-3",children:g.map((b,x)=>r.jsx(fx,{build:b,project:n,onDownload:o,downloading:d===b.id},b.id||x))}):r.jsx(En,{icon:Os,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function hx({org:n,expandedProjects:s,onExpand:c,onDownload:o,downloadingBuildId:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Zv,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(mt,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(m=>{const v=`${m.organizationSlug}/${m.slug}`;return r.jsx(dx,{project:m,expanded:s[v],onExpand:c,onDownload:o,downloadingBuildId:d},v)})})]})}function mx({onComplete:n}){const[s,c]=h.useState(null),[o,d]=h.useState(null),m=tx(),v=ax(),{addToast:g}=zl();h.useEffect(()=>{async function x(){try{const y=await m.mutateAsync();c(y)}catch(y){d(y.message),g(`Failed to start login: ${y.message}`,"error")}}x()},[g,m.mutateAsync]);async function b(){if(s?.deviceCode){d(null);try{const x=await v.mutateAsync(s.deviceCode);x.status==="complete"?(g("Login successful!","success"),n?.()):x.status==="pending"?g("Still waiting for authorization...","info"):d("Unexpected response from server")}catch(x){d(x.message),g(`Check failed: ${x.message}`,"error")}}}return o?r.jsx(cf,{variant:"danger",title:"Login Error",children:o}):s?r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:s.verificationUriComplete||s.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:s.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(ut,{variant:"secondary",onClick:b,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(An,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function vx(){const[n,s]=h.useState(!1),c=_t(),{addToast:o}=zl(),d=h.useCallback(()=>{s(!1),c.invalidateQueries({queryKey:we.auth}),c.invalidateQueries({queryKey:we.projects()}),o("Login successful!","success")},[c,o]);return n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(ut,{variant:"ghost",size:"sm",onClick:()=>s(!1),children:"← Back"}),r.jsx(mx,{onComplete:d})]}):r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(q1,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(ut,{variant:"primary",onClick:()=>s(!0),icon:Rv,children:"Sign In"})]})})}function px(){const[n,s]=h.useState({}),[c,o]=h.useState(null),{addToast:d}=zl(),{data:m,isLoading:v}=ex(),{data:g,isLoading:b,refetch:x}=lx(),y=sx(),E=m?.authenticated,N=h.useMemo(()=>{const R=g?.projects||[],Q={};for(const H of R){const V=H.organizationSlug||"unknown";Q[V]||(Q[V]={slug:V,name:H.organizationName||V,projects:[]}),Q[V].projects.push(H)}return Object.values(Q)},[g?.projects]),_=h.useCallback((R,Q)=>{const H=`${R}/${Q}`;s(V=>({...V,[H]:!V[H]}))},[]),A=h.useCallback((R,Q)=>{o(R.id),y.mutate({buildId:R.id,organizationSlug:Q?.organizationSlug,projectSlug:Q?.slug},{onSuccess:()=>{d(`Baselines downloaded from "${R.name||R.id}"`,"success"),o(null)},onError:H=>{d(`Failed to download baselines: ${H.message}`,"error"),o(null)}})},[y,d]);return b||v?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Qe,{variant:"heading",className:"w-40 mb-2"}),r.jsx(Qe,{variant:"text",className:"w-72"})]}),r.jsx(Qe,{variant:"button"})]}),r.jsx(wf,{}),r.jsx(wf,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(ut,{variant:"secondary",onClick:()=>x(),icon:Cl,children:"Refresh"})]}),E?N.length===0?r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsx(En,{icon:Do,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(ut,{variant:"secondary",icon:Al,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:N.map(R=>r.jsx(hx,{org:R,expandedProjects:n,onExpand:_,onDownload:A,downloadingBuildId:c},R.slug))}):r.jsx(vx,{})]})}const na={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},Be={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},zn={PRIORITY:"priority",NAME:"name",TIME:"time"},il={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function xx({comparison:n,viewMode:s="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:d,onDiffToggle:m,disableLoadingOverlay:v=!1,zoom:g="fit",className:b="",showRegions:x=!1}){const[y,E]=h.useState(new Set),[N,_]=h.useState(new Map),[A,R]=h.useState(1),[Q,H]=h.useState({width:0,height:0}),V=h.useRef(null),F=h.useRef(null);h.useEffect(()=>{const se=()=>{const ve=V.current,_e=ve?.querySelector("img");if(!ve||!_e||!_e.naturalWidth)return;H({width:_e.naturalWidth,height:_e.naturalHeight});const ct=ve.getBoundingClientRect(),ue=40,T=ct.width-ue,q=ct.height-ue,X=T/_e.naturalWidth,ce=q/_e.naturalHeight,xe=Math.min(X,ce,1);R(xe)};se();const ze=new window.ResizeObserver(se);V.current&&ze.observe(V.current);const Re=V.current?.querySelectorAll("img")||[];for(let ve of Re)ve.addEventListener("load",se);return()=>{ze.disconnect();for(let ve of Re)ve.removeEventListener("load",se)}},[]);const Z=h.useMemo(()=>{const se=g==="fit",ze=se?A:typeof g=="number"?g:1,Re=!se&&ze>A;return{isFit:se,scale:ze,allowsOverflow:Re,containerClass:Re?"overflow-auto":"overflow-hidden"}},[g,A]),ne=h.useCallback(se=>{E(ze=>new Set([...ze,se]))},[]),oe=h.useCallback(se=>{_(ze=>new Map(ze).set(se,"loaded"))},[]),Y=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},P=h.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:V,className:`bg-gray-800 relative h-full ${Z.containerClass}`,style:{backgroundImage:`
174
+ `,role:"radio","aria-checked":g,title:v.description,children:o?r.jsx(b,{className:"w-4 h-4"}):r.jsxs(r.Fragment,{children:[r.jsx(b,{className:"w-4 h-4 hidden sm:block"}),r.jsx("span",{className:d?"":"sr-only",children:o?v.shortLabel:v.label})]})},v.value)})})}const Ef=[{key:"comparisons",label:"Comparisons",icon:Nr},{key:"stats",label:"Stats",icon:Fv},{key:"builds",label:"Builds",icon:rp},{key:"settings",label:"Settings",icon:cp}];function ax({currentView:n,onNavigate:s,loading:c}){const[o,d]=h.useState(!1),m=v=>{s?.(v),d(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{type:"button",onClick:()=>m("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),s&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Ef.map(v=>{const g=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${g?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-4 h-4"}),v.label]},v.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(An,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),s&&r.jsx("button",{type:"button",onClick:()=>d(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(Zt,{className:"w-6 h-6"}):r.jsx(Vv,{className:"w-6 h-6"})})]})]}),s&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Ef.map(v=>{const g=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${g?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-5 h-5"}),v.label]},v.key)})})})]})})}function Mn({children:n,currentView:s,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(ax,{currentView:s,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}function lx(){return Cl({queryKey:de.authStatus(),queryFn:Tr.getStatus,staleTime:30*1e3})}function nx(){return ta({mutationFn:Tr.initiateLogin})}function sx(){const n=_t();return ta({mutationFn:s=>Tr.pollAuthorization(s),onSuccess:s=>{s.status==="complete"&&(n.invalidateQueries({queryKey:de.auth}),n.invalidateQueries({queryKey:de.cloud}))}})}function ix(n={}){return Cl({queryKey:de.projects(),queryFn:nf.list,staleTime:60*1e3,...n})}function rx(n,s,c={}){return Cl({queryKey:de.builds(n,s),queryFn:()=>nf.getBuilds(n,s,{limit:20}),enabled:!!(n&&s),staleTime:30*1e3,...c})}function ux(){const n=_t();return ta({mutationFn:({buildId:s,organizationSlug:c,projectSlug:o})=>Na.downloadBaselines(s,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:de.tdd})}})}const Cf=h.createContext(null);function cx({children:n}){const[s,c]=h.useState([]),o=h.useCallback((v,g="success",b={})=>{const x=Date.now();c(E=>[...E,{id:x,message:v,type:g,...b}]);const y=b.duration!==void 0?b.duration:b.actions?null:5e3;return y&&setTimeout(()=>{c(E=>E.filter(N=>N.id!==x))},y),x},[]),d=h.useCallback(v=>{c(g=>g.filter(b=>b.id!==v))},[]),m=h.useCallback((v,g)=>new Promise(b=>{const x=Date.now();c(y=>[...y,{id:x,message:v,title:g,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(E=>E.filter(N=>N.id!==x)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(E=>E.filter(N=>N.id!==x)),b(!0)}}]}])}),[]);return r.jsxs(Cf.Provider,{value:{addToast:o,removeToast:d,confirm:m},children:[n,r.jsx(ox,{toasts:s,onRemove:d})]})}function zl(){const n=h.useContext(Cf);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function ox({toasts:n,onRemove:s}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(fx,{toast:c,onRemove:s},c.id))})}function fx({toast:n,onRemove:s}){const c=n.type==="success"?aa:n.type==="confirm"?la:jn,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",d=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400",m=n.type==="confirm";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,"data-testid":m?"confirm-dialog":void 0,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${d} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map(v=>r.jsx("button",{type:"button",onClick:v.onClick,"data-testid":m?`confirm-${v.label.toLowerCase()}`:void 0,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},v.label))})]}),!n.actions&&r.jsx("button",{type:"button",onClick:()=>s(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(Zt,{className:"w-5 h-5"})})]})})}function dx({status:n}){const s={passed:{variant:"success",icon:aa},completed:{variant:"success",icon:aa},failed:{variant:"danger",icon:jn},pending:{variant:"warning",icon:Os},processing:{variant:"info",icon:Al}},c=s[n]||s.pending;return r.jsx(mt,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function hx(n){const s=Math.floor((Date.now()-n)/1e3);return s<60?"just now":s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:s<604800?`${Math.floor(s/86400)}d ago`:n.toLocaleDateString()}function mx({build:n,project:s,onDownload:c,downloading:o}){const d=new Date(n.createdAt||n.created_at),m=hx(d);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(dx,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:m}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(ct,{variant:"ghost",size:"sm",onClick:()=>c(n,s),loading:o,icon:Tv,title:"Download baselines from this build"})]})}function vx({project:n,onExpand:s,expanded:c,onDownload:o,downloadingBuildId:d}){const{data:m,isLoading:v}=rx(c?n.organizationSlug:null,c?n.slug:null),g=m?.builds||[];return r.jsxs(Ie,{hover:!1,children:[r.jsxs("button",{type:"button",onClick:()=>s(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(Do,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[v&&r.jsx(An,{size:"sm",className:"text-amber-400"}),c?r.jsx(yn,{className:"w-5 h-5 text-slate-400"}):r.jsx(Ol,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(tt,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:v?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(An,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):g&&g.length>0?r.jsx("div",{className:"space-y-3",children:g.map((b,x)=>r.jsx(mx,{build:b,project:n,onDownload:o,downloading:d===b.id},b.id||x))}):r.jsx(En,{icon:Os,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function px({org:n,expandedProjects:s,onExpand:c,onDownload:o,downloadingBuildId:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Xv,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(mt,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(m=>{const v=`${m.organizationSlug}/${m.slug}`;return r.jsx(vx,{project:m,expanded:s[v],onExpand:c,onDownload:o,downloadingBuildId:d},v)})})]})}function xx({onComplete:n}){const[s,c]=h.useState(null),[o,d]=h.useState(null),m=nx(),v=sx(),{addToast:g}=zl();h.useEffect(()=>{async function x(){try{const y=await m.mutateAsync();c(y)}catch(y){d(y.message),g(`Failed to start login: ${y.message}`,"error")}}x()},[g,m]);async function b(){if(s?.deviceCode){d(null);try{const x=await v.mutateAsync(s.deviceCode);x.status==="complete"?(g("Login successful!","success"),n?.()):x.status==="pending"?g("Still waiting for authorization...","info"):d("Unexpected response from server")}catch(x){d(x.message),g(`Check failed: ${x.message}`,"error")}}}return o?r.jsx(of,{variant:"danger",title:"Login Error",children:o}):s?r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:s.verificationUriComplete||s.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:s.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(ct,{variant:"secondary",onClick:b,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(An,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function gx(){const[n,s]=h.useState(!1),c=_t(),{addToast:o}=zl(),d=h.useCallback(()=>{s(!1),c.invalidateQueries({queryKey:de.auth}),c.invalidateQueries({queryKey:de.projects()}),o("Login successful!","success")},[c,o]);return n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(ct,{variant:"ghost",size:"sm",onClick:()=>s(!1),children:"← Back"}),r.jsx(xx,{onComplete:d})]}):r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(Qp,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(ct,{variant:"primary",onClick:()=>s(!0),icon:Dv,children:"Sign In"})]})})}function bx(){const[n,s]=h.useState({}),[c,o]=h.useState(null),{addToast:d}=zl(),{data:m,isLoading:v}=lx(),{data:g,isLoading:b,refetch:x}=ix(),y=ux(),E=m?.authenticated,N=h.useMemo(()=>{const O=g?.projects||[],Q={};for(const U of O){const V=U.organizationSlug||"unknown";Q[V]||(Q[V]={slug:V,name:U.organizationName||V,projects:[]}),Q[V].projects.push(U)}return Object.values(Q)},[g?.projects]),L=h.useCallback((O,Q)=>{const U=`${O}/${Q}`;s(V=>({...V,[U]:!V[U]}))},[]),A=h.useCallback((O,Q)=>{o(O.id),y.mutate({buildId:O.id,organizationSlug:Q?.organizationSlug,projectSlug:Q?.slug},{onSuccess:()=>{d(`Baselines downloaded from "${O.name||O.id}"`,"success"),o(null)},onError:U=>{d(`Failed to download baselines: ${U.message}`,"error"),o(null)}})},[y,d]);return b||v?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Qe,{variant:"heading",className:"w-40 mb-2"}),r.jsx(Qe,{variant:"text",className:"w-72"})]}),r.jsx(Qe,{variant:"button"})]}),r.jsx(jf,{}),r.jsx(jf,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(ct,{variant:"secondary",onClick:()=>x(),icon:Al,children:"Refresh"})]}),E?N.length===0?r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsx(En,{icon:Do,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(ct,{variant:"secondary",icon:Ol,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:N.map(O=>r.jsx(px,{org:O,expandedProjects:n,onExpand:L,onDownload:A,downloadingBuildId:c},O.slug))}):r.jsx(gx,{})]})}const na={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},Be={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},Tn={PRIORITY:"priority",NAME:"name",TIME:"time"},il={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function yx({comparison:n,viewMode:s="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:d,onDiffToggle:m,disableLoadingOverlay:v=!1,zoom:g="fit",className:b="",showRegions:x=!1}){const[y,E]=h.useState(new Set),[N,L]=h.useState(new Map),[A,O]=h.useState(1),[Q,U]=h.useState({width:0,height:0}),V=h.useRef(null),F=h.useRef(null);h.useEffect(()=>{const se=()=>{const pe=V.current,_e=pe?.querySelector("img");if(!pe||!_e||!_e.naturalWidth)return;U({width:_e.naturalWidth,height:_e.naturalHeight});const ot=pe.getBoundingClientRect(),ue=40,R=ot.width-ue,q=ot.height-ue,Z=R/_e.naturalWidth,ce=q/_e.naturalHeight,ge=Math.min(Z,ce,1);O(ge)};se();const ze=new window.ResizeObserver(se);V.current&&ze.observe(V.current);const Re=V.current?.querySelectorAll("img")||[];for(let pe of Re)pe.addEventListener("load",se);return()=>{ze.disconnect();for(let pe of Re)pe.removeEventListener("load",se)}},[]);const K=h.useMemo(()=>{const se=g==="fit",ze=se?A:typeof g=="number"?g:1,Re=!se&&ze>A;return{isFit:se,scale:ze,allowsOverflow:Re,containerClass:Re?"overflow-auto":"overflow-hidden"}},[g,A]),ne=h.useCallback(se=>{E(ze=>new Set([...ze,se]))},[]),he=h.useCallback(se=>{L(ze=>new Map(ze).set(se,"loaded"))},[]),Y=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},P=h.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:V,className:`bg-gray-800 relative h-full ${K.containerClass}`,style:{backgroundImage:`
175
175
  linear-gradient(45deg, #1f2937 25%, transparent 25%),
176
176
  linear-gradient(-45deg, #1f2937 25%, transparent 25%),
177
177
  linear-gradient(45deg, transparent 75%, #1f2937 75%),
178
178
  linear-gradient(-45deg, transparent 75%, #1f2937 75%)
179
- `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${Z.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...Z.allowsOverflow?{minWidth:Q.width*Z.scale+40,minHeight:Q.height*Z.scale+40,padding:"20px"}:{zoom:Z.scale,padding:"20px"}},children:r.jsx("div",{ref:F,className:"relative inline-block",style:Z.allowsOverflow?{transform:`scale(${Z.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>oe(`current-${P?.id}`),onError:()=>ne(`current-${P?.id}`)})})}),!v&&n&&!N.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&y.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:V,className:`bg-gray-800 relative unified-screenshot-container h-full ${Z.containerClass}`,style:{backgroundImage:`
179
+ `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${K.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...K.allowsOverflow?{minWidth:Q.width*K.scale+40,minHeight:Q.height*K.scale+40,padding:"20px"}:{zoom:K.scale,padding:"20px"}},children:r.jsx("div",{ref:F,className:"relative inline-block",style:K.allowsOverflow?{transform:`scale(${K.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>he(`current-${P?.id}`),onError:()=>ne(`current-${P?.id}`)})})}),!v&&n&&!N.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&y.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:V,className:`bg-gray-800 relative unified-screenshot-container h-full ${K.containerClass}`,style:{backgroundImage:`
180
180
  linear-gradient(45deg, #1f2937 25%, transparent 25%),
181
181
  linear-gradient(-45deg, #1f2937 25%, transparent 25%),
182
182
  linear-gradient(45deg, transparent 75%, #1f2937 75%),
183
183
  linear-gradient(-45deg, transparent 75%, #1f2937 75%)
184
- `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${Z.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...Z.allowsOverflow?{minWidth:Q.width*Z.scale+40,minHeight:Q.height*Z.scale+40,padding:"20px"}:{zoom:Z.scale,padding:"20px"}},children:r.jsxs("div",{ref:F,className:"relative inline-block",style:Z.allowsOverflow?{transform:`scale(${Z.scale})`,transformOrigin:"top center"}:{},children:[s==="toggle"&&Y.baseline?r.jsx(zp,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,screenshot:P,onImageError:ne,onImageLoad:oe,imageErrors:y}):s==="onion-skin"&&Y.baseline?r.jsx(Op,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,sliderPosition:o,onSliderChange:d,screenshot:P,onImageError:ne,onImageLoad:oe,imageErrors:y}):r.jsx(Mp,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,diffImageUrl:Y.diff,showDiffOverlay:c,screenshot:P,onImageError:ne,onImageLoad:oe,imageErrors:y,onDiffToggle:m}),x&&n?.confirmedRegions?.length>0&&r.jsx(Np,{confirmed:n.confirmedRegions,candidates:[],imageWidth:Q.width,imageHeight:Q.height,showConfirmed:!0,showCandidates:!1,disabled:!0})]})}),!v&&!N.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),y.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function Ft(n){return n?.id||n?.signature||n?.name}function Cf(n){switch(n){case"failed":return"changed";case"new":case"baseline-created":return"new";case"passed":return"unchanged";default:return n}}function gx(n){return r.jsx(Yp,{children:r.jsx(bx,{...n})})}function bx({comparison:n,comparisons:s=[],onClose:c,onAccept:o,onReject:d,onDelete:m,onNavigate:v}){let[g,b]=h.useState(na.OVERLAY),[x,y]=h.useState(!0),[E,N]=h.useState(50),[_,A]=h.useState(!0),[R,Q]=h.useState(!1),[H,V]=h.useState("needs-review"),[F,Z]=h.useState(!0),[ne,oe]=h.useState(!1),{zoom:Y,setZoom:P}=Tp("fit"),{isActive:se}=yf(),ze=h.useRef(null),Re=h.useCallback(()=>{Q(K=>!K)},[Q]),ve=h.useMemo(()=>s.map(K=>({...K,name:K.name||K.originalName||"Unknown",result:Cf(K.status),status:K.status,approval_status:K.userAction==="accepted"?"approved":K.userAction==="rejected"?"rejected":K.status==="passed"?"approved":"pending",diff_percentage:K.diffPercentage??K.diff_percentage,diffClusters:K.diffClusters||[],viewport_width:K.properties?.viewport_width??K.viewport_width,viewport_height:K.properties?.viewport_height??K.viewport_height,browser:K.properties?.browser??K.browser})),[s]),_e=h.useMemo(()=>{if(!n)return null;let K=n.name||n.originalName,Ne=ve.filter(De=>(De.name||De.originalName)===K);return{name:K,comparisons:Ne}},[n,ve]),ct=h.useCallback(K=>{K&&v&&v(K)},[v]),ue=h.useMemo(()=>{let K={all:()=>!0,"needs-review":De=>(De.result==="changed"||De.result==="new")&&De.approval_status!=="approved"&&De.approval_status!=="rejected",changes:De=>De.result==="changed",new:De=>De.result==="new"},Ne=K[H]||K.all;return ve.filter(Ne)},[ve,H]),T=h.useMemo(()=>{if(!n)return-1;let K=Ft(n);return ue.findIndex(Ne=>Ft(Ne)===K)},[ue,n]),q=h.useMemo(()=>({prev:T>0,next:T<ue.length-1&&T!==-1}),[T,ue.length]),X=h.useCallback(()=>{if(q.prev){let K=ue[T-1];v(K)}},[q.prev,ue,T,v]),ce=h.useCallback(()=>{if(q.next){let K=ue[T+1];v(K)}},[q.next,ue,T,v]),xe=h.useCallback(()=>T<ue.length-1?ue[T+1]:T>0?ue[T-1]:null,[T,ue]),S=h.useCallback(()=>{if(!o||!n)return;let K=H==="needs-review"?xe():null;o(Ft(n)),K?v(K):H==="needs-review"&&ue.length<=1&&c()},[o,n,H,xe,ue.length,v,c]),U=h.useCallback(()=>{if(!d||!n)return;let K=H==="needs-review"?xe():null;d(Ft(n)),K?v(K):H==="needs-review"&&ue.length<=1&&c()},[d,n,H,xe,ue.length,v,c]),G=h.useCallback(()=>{!m||!n||m(Ft(n))},[m,n]),$=h.useCallback(()=>{b(K=>K===na.OVERLAY?na.TOGGLE:na.OVERLAY)},[b]),te=h.useCallback(()=>{g===na.TOGGLE?Z(K=>!K):y(K=>!K)},[g,Z,y]),re=h.useMemo(()=>({a:o?S:void 0,r:d?U:void 0,d:te,t:$,1:()=>b(na.OVERLAY),2:()=>b(na.TOGGLE),3:()=>b(na.ONION)}),[S,U,o,d,$,te,b]);if(Gp(re),h.useEffect(()=>{let K=Ne=>{if(!(Ne.target.tagName==="INPUT"||Ne.target.tagName==="TEXTAREA"))switch(Ne.key){case"ArrowUp":case"ArrowLeft":Ne.preventDefault(),q.prev&&X();break;case"ArrowDown":case"ArrowRight":Ne.preventDefault(),q.next&&ce();break;case"Escape":Ne.preventDefault(),c();break;case"i":!Ne.metaKey&&!Ne.ctrlKey&&(Ne.preventDefault(),Re());break;case"g":!Ne.metaKey&&!Ne.ctrlKey&&(Ne.preventDefault(),oe(De=>!De));break}};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[q,X,ce,c,Re,oe]),h.useEffect(()=>{let K=ze.current;if(!K)return;let Ne=K.closest(".overflow-y-auto");if(!Ne)return;let De=K.getBoundingClientRect(),Aa=Ne.getBoundingClientRect();De.top<Aa.top?Ne.scrollBy({top:De.top-Aa.top-8,behavior:"smooth"}):De.bottom>Aa.bottom&&Ne.scrollBy({top:De.bottom-Aa.bottom+8,behavior:"smooth"})},[ze.current]),!n)return r.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-slate-400",children:[r.jsx("div",{className:"text-lg mb-2",children:"Comparison not found"}),r.jsx("button",{type:"button",onClick:c,className:"text-blue-400 hover:text-blue-300",children:"Return to list"})]})});let ge=Cf(n.status),Ve=n.userAction==="accepted"?"approved":n.userAction==="rejected"?"rejected":n.status==="passed"?"approved":"pending",je={new:{variant:"info",label:"New"},changed:{variant:"warning",label:"Changed"},unchanged:{variant:"default",label:"Unchanged"}}[ge],Ca=n.status==="new"||n.status==="baseline-created",jt=n.properties||{};return r.jsxs("div",{className:"h-screen bg-slate-950 flex flex-col overflow-hidden","data-testid":"fullscreen-viewer",children:[r.jsxs("header",{className:"flex-shrink-0 bg-slate-900 border-b border-slate-800/60 z-30",children:[r.jsxs("div",{className:"px-2 sm:px-4 py-2 flex items-center gap-1 sm:gap-3",children:[r.jsx(Up,{onClick:c}),r.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[r.jsx("h1",{className:"text-sm font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),je&&r.jsx(mt,{variant:je.variant,size:"sm",className:"hidden xs:flex",children:je.label}),se&&r.jsx(mt,{variant:"warning",size:"sm",dot:!0,pulseDot:!0,className:"hidden sm:flex",children:"Review Mode"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("button",{type:"button",onClick:X,disabled:!q.prev,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Previous",children:r.jsx(e1,{className:"w-5 h-5"})}),r.jsxs("span",{className:"hidden sm:block text-xs text-slate-500 font-medium tabular-nums px-1 min-w-[3rem] text-center",children:[T+1,"/",ue.length]}),r.jsx("button",{type:"button",onClick:ce,disabled:!q.next,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Next",children:r.jsx(Al,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"hidden sm:block h-5 w-px bg-slate-700/60"}),r.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[Ca&&m?r.jsx("button",{type:"button",onClick:G,className:"px-3 py-1.5 text-xs font-medium text-red-400 hover:text-red-300 hover:bg-red-600/20 rounded-md transition-colors","data-testid":"btn-delete",children:"Delete"}):null,r.jsx(pp,{status:Ve,onApprove:o?S:null,onReject:d?U:null,compact:!0})]}),r.jsxs("div",{className:"hidden sm:flex items-center",children:[r.jsx("button",{type:"button",onClick:()=>A(!_),className:`flex items-center justify-center p-2 rounded-md transition-colors ${_?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Queue","aria-label":"Toggle queue","data-testid":"toggle-queue-btn",children:r.jsx(Lo,{className:"w-5 h-5 pointer-events-none"})}),n?.confirmedRegions?.length>0&&r.jsx("button",{type:"button",onClick:()=>oe(!ne),className:`p-2 rounded-md transition-colors ${ne?"bg-emerald-500/15 text-emerald-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Show Regions (G)","aria-label":"Toggle regions","data-testid":"toggle-regions-btn",children:r.jsx(Bo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:Re,className:`p-2 rounded-md transition-colors ${R?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Details (I)","aria-label":"Screenshot details","data-testid":"toggle-inspector-btn",children:r.jsx(Sr,{className:"w-5 h-5 pointer-events-none"})})]})]}),r.jsxs("div",{className:"px-2 sm:px-4 py-1.5 sm:py-2 border-t border-slate-800/40 flex items-center gap-2 sm:gap-3",children:[_e&&_e.comparisons.length>0&&r.jsx(Fp,{variants:_e.comparisons,currentVariantId:Ft(n),onVariantSelect:ct}),r.jsx("div",{className:"flex-1"}),n.diff&&r.jsx(Ip,{value:g,onChange:b,compact:!0,className:"hidden sm:flex"}),r.jsx(Rp,{zoom:Y,onZoomChange:P})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[r.jsxs(Tr,{isOpen:_,onClose:()=>A(!1),position:"bottom",desktopPosition:"left",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,testId:"queue-drawer",children:[r.jsx(Rr,{title:"Queue",subtitle:`${ue.length} of ${ve.length} items`,onClose:()=>A(!1)}),r.jsx(Lp,{children:[{id:"needs-review",label:"To Review"},{id:"changes",label:"Changes"},{id:"new",label:"New"},{id:"all",label:"All"}].map(K=>r.jsx(kp,{isActive:H===K.id,onClick:()=>V(K.id),children:K.label},K.id))}),r.jsxs(Dr,{className:"px-2 py-2 space-y-1",children:[ue.map(K=>{let Ne=Ft(K)===Ft(n);return r.jsx("div",{ref:Ne?ze:null,children:r.jsx(Vp,{item:K,isActive:Ne,thumbnailUrl:K.current||K.baseline,onClick:()=>v(K)})},Ft(K))}),ue.length===0&&r.jsx("div",{className:"text-center py-8 text-slate-600 text-xs",children:H==="needs-review"?"All screenshots reviewed!":"No items match this filter"})]}),r.jsxs(_p,{className:"hidden sm:flex flex-col items-center gap-1.5",children:[r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-slate-400",children:"↑↓"})," navigate"," · ",r.jsx("span",{className:"text-slate-400",children:"Space"})," ",se?"exit":"review mode"]}),se&&r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-emerald-500 font-medium",children:"A"})," approve"," · ",r.jsx("span",{className:"text-red-500 font-medium",children:"R"})," reject"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"D"})," diff"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"T"})," view"]})]})]}),r.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:r.jsx(xx,{comparison:n,viewMode:g===na.ONION?"onion-skin":g,showDiffOverlay:x,onDiffToggle:()=>y(K=>!K),onionSkinPosition:E,onOnionSkinChange:N,zoom:Y,disableLoadingOverlay:!0,showRegions:ne,className:"w-full h-full"},Ft(n))}),r.jsxs(dt,{isOpen:R,onClose:()=>Q(!1),title:"Screenshot Details",subtitle:n.name||n.originalName,className:"order-last",children:[r.jsx(dt.Section,{title:"Status",icon:Ro,children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[je&&r.jsx(mt,{variant:je.variant,size:"sm",children:je.label}),r.jsx(mt,{variant:Ve==="approved"?"success":Ve==="rejected"?"danger":"default",size:"sm",children:Ve})]})}),r.jsxs(dt.Section,{title:"Screenshot",icon:wn,children:[jt.browser&&r.jsx(dt.Row,{label:"Browser",value:jt.browser,icon:()=>r.jsx(Nn,{browser:jt.browser,className:"w-3.5 h-3.5"})}),r.jsx(dt.Row,{label:"Viewport",value:jt.viewport_width&&jt.viewport_height?`${jt.viewport_width} × ${jt.viewport_height}`:null,mono:!0}),r.jsx(dt.Row,{label:"Device",value:jt.device})]}),ge==="changed"&&n.diffPercentage!=null&&r.jsxs(dt.Section,{title:"Diff Analysis",icon:m1,children:[r.jsx(dt.Row,{label:"Changed",value:`${Number(n.diffPercentage).toFixed(3)}%`,mono:!0}),n.diffPixels!=null&&r.jsx(dt.Row,{label:"Pixels",value:n.diffPixels.toLocaleString(),mono:!0}),n.threshold!=null&&r.jsx(dt.Row,{label:"Threshold",value:Number(n.threshold).toFixed(2),mono:!0})]}),r.jsx(dt.Section,{title:"Identifier",icon:Ro,children:r.jsx(dt.Row,{label:"Signature",value:n.signature||n.id,mono:!0,copyable:!0})})]})]}),r.jsxs("div",{className:"sm:hidden flex-shrink-0 bg-slate-900/98 backdrop-blur-sm border-t border-slate-700/50 safe-area-pb",children:[r.jsx(xp,{status:Ve,onApprove:o?S:null,onReject:d?U:null}),r.jsxs("div",{className:"px-3 py-2 flex items-center gap-1 border-t border-slate-800/40",children:[r.jsx("button",{type:"button",onClick:()=>A(!_),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${_?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Queue","data-testid":"mobile-toggle-queue-btn",children:r.jsx(Lo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:Re,className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${R?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Screenshot details","data-testid":"mobile-toggle-inspector-btn",children:r.jsx(Sr,{className:"w-5 h-5 pointer-events-none"})}),n?.confirmedRegions?.length>0&&r.jsx("button",{type:"button",onClick:()=>oe(!ne),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${ne?"bg-emerald-500/15 text-emerald-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Toggle regions","data-testid":"mobile-toggle-regions-btn",children:r.jsx(Bo,{className:"w-5 h-5 pointer-events-none"})}),Ca&&m&&r.jsx("button",{type:"button",onClick:G,className:"flex items-center justify-center p-2.5 rounded-lg text-red-400 hover:text-red-300 hover:bg-red-600/20 active:bg-red-600/30 transition-colors","aria-label":"Delete","data-testid":"mobile-delete-btn",children:r.jsx("span",{className:"text-xs font-medium",children:"Delete"})}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"text-xs text-slate-500 tabular-nums",children:[T+1," / ",ue.length]}),je&&r.jsx(mt,{variant:je.variant,size:"sm",children:je.label})]})]})]})]})}function yx(){let[,n]=Ts(),[,s]=up("/comparison/:id"),{data:c}=Rs(),o=sf(),d=uf(),m=hp();const v=h.useMemo(()=>c?.comparisons||[],[c?.comparisons]),g=h.useMemo(()=>{const _=s?.id?decodeURIComponent(s.id):null;return!_||v.length===0?null:v.find(A=>A.id===_||A.signature===_||A.name===_)},[s,v]),b=h.useCallback(_=>{const A=_.id||_.signature||_.name;A&&n(`/comparison/${encodeURIComponent(A)}`)},[n]),x=h.useCallback(()=>{n("/")},[n]),y=h.useCallback(_=>{o.mutate(_)},[o]),E=h.useCallback(_=>{d.mutate(_)},[d]),N=h.useCallback(_=>{m.mutate(_,{onSuccess:()=>{n("/")}})},[m,n]);return g?r.jsx(gx,{comparison:g,comparisons:v,onClose:x,onAccept:y,onReject:E,onDelete:N,onNavigate:b}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",s?.id||"none"]}),r.jsx("button",{type:"button",onClick:x,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function wx(n,s){return[...n].sort((c,o)=>{if(s==="priority"){const d={[il.FAILED]:3,[il.NEW]:2,[il.PASSED]:1},m=c.initialStatus||c.status,v=o.initialStatus||o.status,g=d[m]||0,b=d[v]||0;return g!==b?b-g:(o.diffPercentage||0)-(c.diffPercentage||0)}return s==="name"?(c.name||"").localeCompare(o.name||""):s==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function jx(n,s){return s==="failed"?n.filter(c=>c.status===il.FAILED):s==="passed"?n.filter(c=>c.status===il.PASSED):s==="new"?n.filter(c=>c.status===il.NEW||c.status===il.BASELINE_CREATED):n}const Sx=()=>{const n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||Be.ALL,sortBy:n.get("sort")||zn.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function Nx(n=[]){const s=Sx(),[c,o]=h.useState(s.filter),[d,m]=h.useState(s.sortBy),[v,g]=h.useState(s.searchQuery),[b,x]=h.useState(s.selectedBrowser),[y,E]=h.useState(s.selectedViewport);h.useEffect(()=>{const A=new URLSearchParams;c!==Be.ALL&&A.set("filter",c),d!==zn.PRIORITY&&A.set("sort",d),v&&A.set("search",v),b!=="all"&&A.set("browser",b),y!=="all"&&A.set("viewport",y);const R=A.toString()?`?${A.toString()}`:window.location.pathname;window.history.replaceState({},"",R)},[c,d,v,b,y]);const N=h.useMemo(()=>{const A=new Set,R=new Set;return n.forEach(Q=>{if(Q.properties?.browser&&A.add(Q.properties.browser),Q.properties?.viewport_width&&Q.properties?.viewport_height){const H=`${Q.properties.viewport_width}x${Q.properties.viewport_height}`;R.add(H)}else if(Q.properties?.viewport){const H=`${Q.properties.viewport.width}x${Q.properties.viewport.height}`;R.add(H)}}),{browsers:Array.from(A).sort(),viewports:Array.from(R).sort()}},[n]);return{filteredComparisons:h.useMemo(()=>{let A=jx(n,c);if(v.trim()){const R=v.toLowerCase();A=A.filter(Q=>Q.name.toLowerCase().includes(R)||Q.originalName?.toLowerCase().includes(R))}return b!=="all"&&(A=A.filter(R=>R.properties?.browser===b)),y!=="all"&&(A=A.filter(R=>{let Q=null;return R.properties?.viewport_width&&R.properties?.viewport_height?Q=`${R.properties.viewport_width}x${R.properties.viewport_height}`:R.properties?.viewport&&(Q=`${R.properties.viewport.width}x${R.properties.viewport.height}`),Q===y})),wx(A,d)},[n,c,d,v,b,y]),filter:c,setFilter:o,sortBy:d,setSortBy:m,searchQuery:v,setSearchQuery:g,selectedBrowser:b,setSelectedBrowser:x,selectedViewport:y,setSelectedViewport:E,availableFilters:N,counts:{all:n.length,failed:n.filter(A=>A.status==="failed").length,passed:n.filter(A=>A.status==="passed").length,new:n.filter(A=>A.status==="new").length,rejected:n.filter(A=>A.status==="rejected").length}}}function Ex(n){const[s,c]=h.useState("loading");return h.useEffect(()=>{if(!n){c("missing");return}c("loading");const o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),s}function Cx({src:n,alt:s,className:c,style:o,onClick:d}){const m=Ex(n);if(m==="missing")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Nr,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",s.toLowerCase()," available"]})]})});if(m==="loading")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Cl,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",s.toLowerCase(),"..."]})]})});if(m==="error")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(la,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",s.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})});let v=null;return d&&(v=g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d(g))}),r.jsx("img",{src:n,alt:s,className:c,style:o,onClick:d,onKeyDown:v,role:d?"button":void 0,tabIndex:d?0:void 0})}function Ax(n){let s=new Map;for(let c of n){let o=c.name||c.originalName||"Unknown";s.has(o)||s.set(o,{name:o,comparisons:[],browsers:new Set,viewports:[],hasChanges:!1,hasNew:!1,allPassed:!0,maxDiff:0,failedCount:0,newCount:0,passedCount:0,acceptedCount:0,rejectedCount:0});let d=s.get(o);d.comparisons.push(c),c.properties?.browser&&d.browsers.add(c.properties.browser),c.properties?.viewport_width&&c.properties?.viewport_height&&d.viewports.push({width:c.properties.viewport_width,height:c.properties.viewport_height,id:c.id,status:c.status}),c.status==="failed"?(d.hasChanges=!0,d.allPassed=!1,d.failedCount++,d.maxDiff=Math.max(d.maxDiff,c.diffPercentage||0)):c.status==="new"||c.status==="baseline-created"?(d.hasNew=!0,d.allPassed=!1,d.newCount++):c.status==="passed"&&d.passedCount++,c.userAction==="accepted"?d.acceptedCount++:c.userAction==="rejected"&&d.rejectedCount++}return Array.from(s.values()).map(c=>({...c,browsers:Array.from(c.browsers),viewports:c.viewports.sort((o,d)=>d.width*d.height-o.width*o.height),primary:c.comparisons[0]})).sort((c,o)=>c.hasChanges&&!o.hasChanges?-1:!c.hasChanges&&o.hasChanges?1:c.hasNew&&!o.hasNew?-1:!c.hasNew&&o.hasNew?1:c.maxDiff!==o.maxDiff?o.maxDiff-c.maxDiff:c.name.localeCompare(o.name))}function Af({width:n,className:s="w-3.5 h-3.5"}){return n<=480?r.jsx(Ms,{className:s}):n<=1024?r.jsx(jr,{className:s}):r.jsx(wn,{className:s})}function Ox({group:n}){return n.acceptedCount===n.comparisons.length?r.jsxs(mt,{variant:"success",size:"sm",children:[r.jsx(aa,{className:"w-3 h-3 mr-1"}),"Accepted"]}):n.rejectedCount>0?r.jsxs(mt,{variant:"warning",size:"sm",children:[r.jsx(jn,{className:"w-3 h-3 mr-1"}),"Rejected"]}):n.hasChanges?r.jsxs(mt,{variant:"danger",size:"sm",children:[n.failedCount," changed"]}):n.hasNew?r.jsxs(mt,{variant:"info",size:"sm",children:[n.newCount," new"]}):r.jsx(mt,{variant:"success",size:"sm",children:"Passed"})}function Mx({group:n,maxVisible:s=4}){let c=n.comparisons.length;if(c<=1){let m=n.viewports[0],v=n.browsers[0];return r.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[m&&r.jsxs("span",{className:"inline-flex items-center gap-1",children:[r.jsx(Af,{width:m.width,className:"w-3 h-3"}),m.width,"×",m.height]}),v&&r.jsx("span",{children:v})]})}let o=n.viewports.slice(0,s),d=c-s;return r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.map((m,v)=>r.jsxs("span",{className:`
184
+ `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${K.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...K.allowsOverflow?{minWidth:Q.width*K.scale+40,minHeight:Q.height*K.scale+40,padding:"20px"}:{zoom:K.scale,padding:"20px"}},children:r.jsxs("div",{ref:F,className:"relative inline-block",style:K.allowsOverflow?{transform:`scale(${K.scale})`,transformOrigin:"top center"}:{},children:[s==="toggle"&&Y.baseline?r.jsx(D1,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,screenshot:P,onImageError:ne,onImageLoad:he,imageErrors:y}):s==="onion-skin"&&Y.baseline?r.jsx(z1,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,sliderPosition:o,onSliderChange:d,screenshot:P,onImageError:ne,onImageLoad:he,imageErrors:y}):r.jsx(R1,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,diffImageUrl:Y.diff,showDiffOverlay:c,screenshot:P,onImageError:ne,onImageLoad:he,imageErrors:y,onDiffToggle:m}),x&&n?.confirmedRegions?.length>0&&r.jsx(A1,{confirmed:n.confirmedRegions,candidates:[],imageWidth:Q.width,imageHeight:Q.height,showConfirmed:!0,showCandidates:!1,disabled:!0})]})}),!v&&!N.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),y.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function Ft(n){return n?.id||n?.signature||n?.name}function Af(n){switch(n){case"failed":return"changed";case"new":case"baseline-created":return"new";case"passed":return"unchanged";default:return n}}function wx(n){return r.jsx(X1,{children:r.jsx(jx,{...n})})}function jx({comparison:n,comparisons:s=[],onClose:c,onAccept:o,onReject:d,onDelete:m,onNavigate:v}){let[g,b]=h.useState(na.OVERLAY),[x,y]=h.useState(!0),[E,N]=h.useState(50),[L,A]=h.useState(!0),[O,Q]=h.useState(!1),[U,V]=h.useState("needs-review"),[F,K]=h.useState(!0),[ne,he]=h.useState(!1),{zoom:Y,setZoom:P}=_1("fit"),{isActive:se}=wf(),ze=h.useRef(null),Re=h.useCallback(()=>{Q(X=>!X)},[]),pe=h.useMemo(()=>s.map(X=>({...X,name:X.name||X.originalName||"Unknown",result:Af(X.status),status:X.status,approval_status:X.userAction==="accepted"?"approved":X.userAction==="rejected"?"rejected":X.status==="passed"?"approved":"pending",diff_percentage:X.diffPercentage??X.diff_percentage,diffClusters:X.diffClusters||[],viewport_width:X.properties?.viewport_width??X.viewport_width,viewport_height:X.properties?.viewport_height??X.viewport_height,browser:X.properties?.browser??X.browser})),[s]),_e=h.useMemo(()=>{if(!n)return null;let X=n.name||n.originalName,Ne=pe.filter(De=>(De.name||De.originalName)===X);return{name:X,comparisons:Ne}},[n,pe]),ot=h.useCallback(X=>{X&&v&&v(X)},[v]),ue=h.useMemo(()=>{let X={all:()=>!0,"needs-review":De=>(De.result==="changed"||De.result==="new")&&De.approval_status!=="approved"&&De.approval_status!=="rejected",changes:De=>De.result==="changed",new:De=>De.result==="new"},Ne=X[U]||X.all;return pe.filter(Ne)},[pe,U]),R=h.useMemo(()=>{if(!n)return-1;let X=Ft(n);return ue.findIndex(Ne=>Ft(Ne)===X)},[ue,n]),q=h.useMemo(()=>({prev:R>0,next:R<ue.length-1&&R!==-1}),[R,ue.length]),Z=h.useCallback(()=>{if(q.prev){let X=ue[R-1];v(X)}},[q.prev,ue,R,v]),ce=h.useCallback(()=>{if(q.next){let X=ue[R+1];v(X)}},[q.next,ue,R,v]),ge=h.useCallback(()=>R<ue.length-1?ue[R+1]:R>0?ue[R-1]:null,[R,ue]),S=h.useCallback(()=>{if(!o||!n)return;let X=U==="needs-review"?ge():null;o(Ft(n)),X?v(X):U==="needs-review"&&ue.length<=1&&c()},[o,n,U,ge,ue.length,v,c]),B=h.useCallback(()=>{if(!d||!n)return;let X=U==="needs-review"?ge():null;d(Ft(n)),X?v(X):U==="needs-review"&&ue.length<=1&&c()},[d,n,U,ge,ue.length,v,c]),G=h.useCallback(()=>{!m||!n||m(Ft(n))},[m,n]),$=h.useCallback(()=>{b(X=>X===na.OVERLAY?na.TOGGLE:na.OVERLAY)},[]),te=h.useCallback(()=>{g===na.TOGGLE?K(X=>!X):y(X=>!X)},[g]),re=h.useMemo(()=>({a:o?S:void 0,r:d?B:void 0,d:te,t:$,1:()=>b(na.OVERLAY),2:()=>b(na.TOGGLE),3:()=>b(na.ONION)}),[S,B,o,d,$,te]);if(K1(re),h.useEffect(()=>{let X=Ne=>{if(!(Ne.target.tagName==="INPUT"||Ne.target.tagName==="TEXTAREA"))switch(Ne.key){case"ArrowUp":case"ArrowLeft":Ne.preventDefault(),q.prev&&Z();break;case"ArrowDown":case"ArrowRight":Ne.preventDefault(),q.next&&ce();break;case"Escape":Ne.preventDefault(),c();break;case"i":!Ne.metaKey&&!Ne.ctrlKey&&(Ne.preventDefault(),Re());break;case"g":!Ne.metaKey&&!Ne.ctrlKey&&(Ne.preventDefault(),he(De=>!De));break}};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[q,Z,ce,c,Re]),h.useEffect(()=>{let X=ze.current;if(!X)return;let Ne=X.closest(".overflow-y-auto");if(!Ne)return;let De=X.getBoundingClientRect(),Oa=Ne.getBoundingClientRect();De.top<Oa.top?Ne.scrollBy({top:De.top-Oa.top-8,behavior:"smooth"}):De.bottom>Oa.bottom&&Ne.scrollBy({top:De.bottom-Oa.bottom+8,behavior:"smooth"})},[]),!n)return r.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-slate-400",children:[r.jsx("div",{className:"text-lg mb-2",children:"Comparison not found"}),r.jsx("button",{type:"button",onClick:c,className:"text-blue-400 hover:text-blue-300",children:"Return to list"})]})});let be=Af(n.status),Ve=n.userAction==="accepted"?"approved":n.userAction==="rejected"?"rejected":n.status==="passed"?"approved":"pending",je={new:{variant:"info",label:"New"},changed:{variant:"warning",label:"Changed"},unchanged:{variant:"default",label:"Unchanged"}}[be],Aa=n.status==="new"||n.status==="baseline-created",jt=n.properties||{};return r.jsxs("div",{className:"h-screen bg-slate-950 flex flex-col overflow-hidden","data-testid":"fullscreen-viewer",children:[r.jsxs("header",{className:"flex-shrink-0 bg-slate-900 border-b border-slate-800/60 z-30",children:[r.jsxs("div",{className:"px-2 sm:px-4 py-2 flex items-center gap-1 sm:gap-3",children:[r.jsx(q1,{onClick:c}),r.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[r.jsx("h1",{className:"text-sm font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),je&&r.jsx(mt,{variant:je.variant,size:"sm",className:"hidden xs:flex",children:je.label}),se&&r.jsx(mt,{variant:"warning",size:"sm",dot:!0,pulseDot:!0,className:"hidden sm:flex",children:"Review Mode"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("button",{type:"button",onClick:Z,disabled:!q.prev,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Previous",children:r.jsx(tp,{className:"w-5 h-5"})}),r.jsxs("span",{className:"hidden sm:block text-xs text-slate-500 font-medium tabular-nums px-1 min-w-[3rem] text-center",children:[R+1,"/",ue.length]}),r.jsx("button",{type:"button",onClick:ce,disabled:!q.next,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Next",children:r.jsx(Ol,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"hidden sm:block h-5 w-px bg-slate-700/60"}),r.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[Aa&&m?r.jsx("button",{type:"button",onClick:G,className:"px-3 py-1.5 text-xs font-medium text-red-400 hover:text-red-300 hover:bg-red-600/20 rounded-md transition-colors","data-testid":"btn-delete",children:"Delete"}):null,r.jsx(b1,{status:Ve,onApprove:o?S:null,onReject:d?B:null,compact:!0})]}),r.jsxs("div",{className:"hidden sm:flex items-center",children:[r.jsx("button",{type:"button",onClick:()=>A(!L),className:`flex items-center justify-center p-2 rounded-md transition-colors ${L?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Queue","aria-label":"Toggle queue","data-testid":"toggle-queue-btn",children:r.jsx(Lo,{className:"w-5 h-5 pointer-events-none"})}),(n?.confirmedRegions?.length>0||n?.hasConfirmedRegions)&&r.jsx("button",{type:"button",onClick:()=>he(!ne),className:`p-2 rounded-md transition-colors ${ne?"bg-emerald-500/15 text-emerald-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Show Regions (G)","aria-label":"Toggle regions","data-testid":"toggle-regions-btn",children:r.jsx(Bo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:Re,className:`p-2 rounded-md transition-colors ${O?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Details (I)","aria-label":"Screenshot details","data-testid":"toggle-inspector-btn",children:r.jsx(Sr,{className:"w-5 h-5 pointer-events-none"})})]})]}),r.jsxs("div",{className:"px-2 sm:px-4 py-1.5 sm:py-2 border-t border-slate-800/40 flex items-center gap-2 sm:gap-3",children:[_e&&_e.comparisons.length>0&&r.jsx(P1,{variants:_e.comparisons,currentVariantId:Ft(n),onVariantSelect:ot}),r.jsx("div",{className:"flex-1"}),n.diff&&r.jsx(tx,{value:g,onChange:b,compact:!0,className:"hidden sm:flex"}),r.jsx(L1,{zoom:Y,onZoomChange:P})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[r.jsxs(zr,{isOpen:L,onClose:()=>A(!1),position:"bottom",desktopPosition:"left",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,testId:"queue-drawer",children:[r.jsx(Rr,{title:"Queue",subtitle:`${ue.length} of ${pe.length} items`,onClose:()=>A(!1)}),r.jsx(B1,{children:[{id:"needs-review",label:"To Review"},{id:"changes",label:"Changes"},{id:"new",label:"New"},{id:"all",label:"All"}].map(X=>r.jsx(H1,{isActive:U===X.id,onClick:()=>V(X.id),children:X.label},X.id))}),r.jsxs(Dr,{className:"px-2 py-2 space-y-1",children:[ue.map(X=>{let Ne=Ft(X)===Ft(n);return r.jsx("div",{ref:Ne?ze:null,children:r.jsx(Z1,{item:X,isActive:Ne,thumbnailUrl:X.current||X.baseline,onClick:()=>v(X)})},Ft(X))}),ue.length===0&&r.jsx("div",{className:"text-center py-8 text-slate-600 text-xs",children:U==="needs-review"?"All screenshots reviewed!":"No items match this filter"})]}),r.jsxs(U1,{className:"hidden sm:flex flex-col items-center gap-1.5",children:[r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-slate-400",children:"↑↓"})," navigate"," · ",r.jsx("span",{className:"text-slate-400",children:"Space"})," ",se?"exit":"review mode"]}),se&&r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-emerald-500 font-medium",children:"A"})," approve"," · ",r.jsx("span",{className:"text-red-500 font-medium",children:"R"})," reject"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"D"})," diff"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"T"})," view"]})]})]}),r.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:r.jsx(yx,{comparison:n,viewMode:g===na.ONION?"onion-skin":g,showDiffOverlay:x,onDiffToggle:()=>y(X=>!X),onionSkinPosition:E,onOnionSkinChange:N,zoom:Y,disableLoadingOverlay:!0,showRegions:ne,className:"w-full h-full"},Ft(n))}),r.jsxs(dt,{isOpen:O,onClose:()=>Q(!1),title:"Screenshot Details",subtitle:n.name||n.originalName,className:"order-last",children:[r.jsx(dt.Section,{title:"Status",icon:Ro,children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[je&&r.jsx(mt,{variant:je.variant,size:"sm",children:je.label}),r.jsx(mt,{variant:Ve==="approved"?"success":Ve==="rejected"?"danger":"default",size:"sm",children:Ve})]})}),r.jsxs(dt.Section,{title:"Screenshot",icon:wn,children:[jt.browser&&r.jsx(dt.Row,{label:"Browser",value:jt.browser,icon:()=>r.jsx(Nn,{browser:jt.browser,className:"w-3.5 h-3.5"})}),r.jsx(dt.Row,{label:"Viewport",value:jt.viewport_width&&jt.viewport_height?`${jt.viewport_width} × ${jt.viewport_height}`:null,mono:!0}),r.jsx(dt.Row,{label:"Device",value:jt.device})]}),be==="changed"&&n.diffPercentage!=null&&r.jsxs(dt.Section,{title:"Diff Analysis",icon:vp,children:[r.jsx(dt.Row,{label:"Changed",value:`${Number(n.diffPercentage).toFixed(3)}%`,mono:!0}),n.diffPixels!=null&&r.jsx(dt.Row,{label:"Pixels",value:n.diffPixels.toLocaleString(),mono:!0}),n.threshold!=null&&r.jsx(dt.Row,{label:"Threshold",value:Number(n.threshold).toFixed(2),mono:!0})]}),r.jsx(dt.Section,{title:"Identifier",icon:Ro,children:r.jsx(dt.Row,{label:"Signature",value:n.signature||n.id,mono:!0,copyable:!0})})]})]}),r.jsxs("div",{className:"sm:hidden flex-shrink-0 bg-slate-900/98 backdrop-blur-sm border-t border-slate-700/50 safe-area-pb",children:[r.jsx(y1,{status:Ve,onApprove:o?S:null,onReject:d?B:null}),r.jsxs("div",{className:"px-3 py-2 flex items-center gap-1 border-t border-slate-800/40",children:[r.jsx("button",{type:"button",onClick:()=>A(!L),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${L?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Queue","data-testid":"mobile-toggle-queue-btn",children:r.jsx(Lo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:Re,className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${O?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Screenshot details","data-testid":"mobile-toggle-inspector-btn",children:r.jsx(Sr,{className:"w-5 h-5 pointer-events-none"})}),(n?.confirmedRegions?.length>0||n?.hasConfirmedRegions)&&r.jsx("button",{type:"button",onClick:()=>he(!ne),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${ne?"bg-emerald-500/15 text-emerald-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Toggle regions","data-testid":"mobile-toggle-regions-btn",children:r.jsx(Bo,{className:"w-5 h-5 pointer-events-none"})}),Aa&&m&&r.jsx("button",{type:"button",onClick:G,className:"flex items-center justify-center p-2.5 rounded-lg text-red-400 hover:text-red-300 hover:bg-red-600/20 active:bg-red-600/30 transition-colors","aria-label":"Delete","data-testid":"mobile-delete-btn",children:r.jsx("span",{className:"text-xs font-medium",children:"Delete"})}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"text-xs text-slate-500 tabular-nums",children:[R+1," / ",ue.length]}),je&&r.jsx(mt,{variant:je.variant,size:"sm",children:je.label})]})]})]})]})}function Sx(){let[,n]=zs(),[,s]=c1("/comparison/:id"),{data:c}=Rs(),o=rf(),d=cf(),m=p1();const v=h.useMemo(()=>c?.comparisons||[],[c?.comparisons]);let g=h.useMemo(()=>{let O=s?.id?decodeURIComponent(s.id):null;return!O||v.length===0?null:v.find(Q=>Q.id===O||Q.signature===O||Q.name===O)},[s,v]),{data:b}=m1(g?.id),x=h.useMemo(()=>g?b?{...g,diffClusters:b.diffClusters,confirmedRegions:b.confirmedRegions,intensityStats:b.intensityStats,boundingBox:b.boundingBox,regionAnalysis:b.regionAnalysis,hotspotAnalysis:b.hotspotAnalysis}:g:null,[g,b]);const y=h.useCallback(O=>{const Q=O.id||O.signature||O.name;Q&&n(`/comparison/${encodeURIComponent(Q)}`)},[n]),E=h.useCallback(()=>{n("/")},[n]),N=h.useCallback(O=>{o.mutate(O)},[o]),L=h.useCallback(O=>{d.mutate(O)},[d]),A=h.useCallback(O=>{m.mutate(O,{onSuccess:()=>{n("/")}})},[m,n]);return x?r.jsx(wx,{comparison:x,comparisons:v,onClose:E,onAccept:N,onReject:L,onDelete:A,onNavigate:y}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",s?.id||"none"]}),r.jsx("button",{type:"button",onClick:E,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Nx(n,s){return[...n].sort((c,o)=>{if(s==="priority"){const d={[il.FAILED]:3,[il.NEW]:2,[il.PASSED]:1},m=c.initialStatus||c.status,v=o.initialStatus||o.status,g=d[m]||0,b=d[v]||0;return g!==b?b-g:(o.diffPercentage||0)-(c.diffPercentage||0)}return s==="name"?(c.name||"").localeCompare(o.name||""):s==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function Ex(n,s){return s==="failed"?n.filter(c=>c.status===il.FAILED):s==="passed"?n.filter(c=>c.status===il.PASSED):s==="new"?n.filter(c=>c.status===il.NEW||c.status===il.BASELINE_CREATED):n}const Cx=()=>{const n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||Be.ALL,sortBy:n.get("sort")||Tn.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function Ax(n=[]){const s=Cx(),[c,o]=h.useState(s.filter),[d,m]=h.useState(s.sortBy),[v,g]=h.useState(s.searchQuery),[b,x]=h.useState(s.selectedBrowser),[y,E]=h.useState(s.selectedViewport);h.useEffect(()=>{const A=new URLSearchParams;c!==Be.ALL&&A.set("filter",c),d!==Tn.PRIORITY&&A.set("sort",d),v&&A.set("search",v),b!=="all"&&A.set("browser",b),y!=="all"&&A.set("viewport",y);const O=A.toString()?`?${A.toString()}`:window.location.pathname;window.history.replaceState({},"",O)},[c,d,v,b,y]);const N=h.useMemo(()=>{const A=new Set,O=new Set;return n.forEach(Q=>{if(Q.properties?.browser&&A.add(Q.properties.browser),Q.properties?.viewport_width&&Q.properties?.viewport_height){const U=`${Q.properties.viewport_width}x${Q.properties.viewport_height}`;O.add(U)}else if(Q.properties?.viewport){const U=`${Q.properties.viewport.width}x${Q.properties.viewport.height}`;O.add(U)}}),{browsers:Array.from(A).sort(),viewports:Array.from(O).sort()}},[n]);return{filteredComparisons:h.useMemo(()=>{let A=Ex(n,c);if(v.trim()){const O=v.toLowerCase();A=A.filter(Q=>Q.name.toLowerCase().includes(O)||Q.originalName?.toLowerCase().includes(O))}return b!=="all"&&(A=A.filter(O=>O.properties?.browser===b)),y!=="all"&&(A=A.filter(O=>{let Q=null;return O.properties?.viewport_width&&O.properties?.viewport_height?Q=`${O.properties.viewport_width}x${O.properties.viewport_height}`:O.properties?.viewport&&(Q=`${O.properties.viewport.width}x${O.properties.viewport.height}`),Q===y})),Nx(A,d)},[n,c,d,v,b,y]),filter:c,setFilter:o,sortBy:d,setSortBy:m,searchQuery:v,setSearchQuery:g,selectedBrowser:b,setSelectedBrowser:x,selectedViewport:y,setSelectedViewport:E,availableFilters:N,counts:{all:n.length,failed:n.filter(A=>A.status==="failed").length,passed:n.filter(A=>A.status==="passed").length,new:n.filter(A=>A.status==="new").length,rejected:n.filter(A=>A.status==="rejected").length}}}function Ox(n){const[s,c]=h.useState("loading");return h.useEffect(()=>{if(!n){c("missing");return}c("loading");const o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),s}function Mx({src:n,alt:s,className:c,style:o,onClick:d}){const m=Ox(n);if(m==="missing")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Nr,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",s.toLowerCase()," available"]})]})});if(m==="loading")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Al,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",s.toLowerCase(),"..."]})]})});if(m==="error")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(la,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",s.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})});let v=null;return d&&(v=g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d(g))}),r.jsx("img",{src:n,alt:s,className:c,style:o,onClick:d,onKeyDown:v,role:d?"button":void 0,tabIndex:d?0:void 0})}function Tx(n){let s=new Map;for(let c of n){let o=c.name||c.originalName||"Unknown";s.has(o)||s.set(o,{name:o,comparisons:[],browsers:new Set,viewports:[],hasChanges:!1,hasNew:!1,allPassed:!0,maxDiff:0,failedCount:0,newCount:0,passedCount:0,acceptedCount:0,rejectedCount:0});let d=s.get(o);d.comparisons.push(c),c.properties?.browser&&d.browsers.add(c.properties.browser),c.properties?.viewport_width&&c.properties?.viewport_height&&d.viewports.push({width:c.properties.viewport_width,height:c.properties.viewport_height,id:c.id,status:c.status}),c.status==="failed"?(d.hasChanges=!0,d.allPassed=!1,d.failedCount++,d.maxDiff=Math.max(d.maxDiff,c.diffPercentage||0)):c.status==="new"||c.status==="baseline-created"?(d.hasNew=!0,d.allPassed=!1,d.newCount++):c.status==="passed"&&d.passedCount++,c.userAction==="accepted"?d.acceptedCount++:c.userAction==="rejected"&&d.rejectedCount++}return Array.from(s.values()).map(c=>({...c,browsers:Array.from(c.browsers),viewports:c.viewports.sort((o,d)=>d.width*d.height-o.width*o.height),primary:c.comparisons[0]})).sort((c,o)=>c.hasChanges&&!o.hasChanges?-1:!c.hasChanges&&o.hasChanges?1:c.hasNew&&!o.hasNew?-1:!c.hasNew&&o.hasNew?1:c.maxDiff!==o.maxDiff?o.maxDiff-c.maxDiff:c.name.localeCompare(o.name))}function Of({width:n,className:s="w-3.5 h-3.5"}){return n<=480?r.jsx(Ms,{className:s}):n<=1024?r.jsx(jr,{className:s}):r.jsx(wn,{className:s})}function zx({group:n}){return n.acceptedCount===n.comparisons.length?r.jsxs(mt,{variant:"success",size:"sm",children:[r.jsx(aa,{className:"w-3 h-3 mr-1"}),"Accepted"]}):n.rejectedCount>0?r.jsxs(mt,{variant:"warning",size:"sm",children:[r.jsx(jn,{className:"w-3 h-3 mr-1"}),"Rejected"]}):n.hasChanges?r.jsxs(mt,{variant:"danger",size:"sm",children:[n.failedCount," changed"]}):n.hasNew?r.jsxs(mt,{variant:"info",size:"sm",children:[n.newCount," new"]}):r.jsx(mt,{variant:"success",size:"sm",children:"Passed"})}function Rx({group:n,maxVisible:s=4}){let c=n.comparisons.length;if(c<=1){let m=n.viewports[0],v=n.browsers[0];return r.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[m&&r.jsxs("span",{className:"inline-flex items-center gap-1",children:[r.jsx(Of,{width:m.width,className:"w-3 h-3"}),m.width,"×",m.height]}),v&&r.jsx("span",{children:v})]})}let o=n.viewports.slice(0,s),d=c-s;return r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.map((m,v)=>r.jsxs("span",{className:`
185
185
  inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium
186
186
  ${m.status==="failed"?"bg-red-500/20 text-red-400 border border-red-500/30":m.status==="new"||m.status==="baseline-created"?"bg-blue-500/20 text-blue-400 border border-blue-500/30":"bg-slate-700/50 text-slate-400 border border-slate-600/30"}
187
- `,children:[r.jsx(Af,{width:m.width,className:"w-2.5 h-2.5"}),m.width]},v)),d>0&&r.jsxs("span",{className:"text-[10px] text-slate-500",children:["+",d," more"]}),n.browsers.length>0&&r.jsxs("span",{className:"text-[10px] text-slate-500 ml-1",children:["· ",n.browsers.join(", ")]})]})}function zx({group:n,onSelect:s,onAcceptGroup:c,onRejectGroup:o,isAccepting:d}){let{primary:m,hasChanges:v,hasNew:g,maxDiff:b}=n,x=v||g,y=m.current||m.baseline,E=`screenshot-group-${(m.id||m.signature||n.name).replace(/[^a-zA-Z0-9-]/g,"-")}`,N=v?"border-red-500/40 hover:border-red-500/60":g?"border-blue-500/40 hover:border-blue-500/60":"border-slate-700/50 hover:border-slate-600";return r.jsxs("div",{"data-testid":E,className:`
187
+ `,children:[r.jsx(Of,{width:m.width,className:"w-2.5 h-2.5"}),m.width]},v)),d>0&&r.jsxs("span",{className:"text-[10px] text-slate-500",children:["+",d," more"]}),n.browsers.length>0&&r.jsxs("span",{className:"text-[10px] text-slate-500 ml-1",children:["· ",n.browsers.join(", ")]})]})}function Dx({group:n,onSelect:s,onAcceptGroup:c,onRejectGroup:o,isAccepting:d}){let{primary:m,hasChanges:v,hasNew:g,maxDiff:b}=n,x=v||g,y=m.current||m.baseline,E=`screenshot-group-${(m.id||m.signature||n.name).replace(/[^a-zA-Z0-9-]/g,"-")}`,N=v?"border-red-500/40 hover:border-red-500/60":g?"border-blue-500/40 hover:border-blue-500/60":"border-slate-700/50 hover:border-slate-600";return r.jsxs("div",{"data-testid":E,className:`
188
188
  group flex items-center gap-3 p-3
189
189
  bg-slate-800/30 hover:bg-slate-800/50
190
190
  border rounded-lg transition-all
191
191
  ${N}
192
- `,children:[r.jsxs("button",{type:"button",onClick:()=>s(m),className:"relative w-16 h-11 rounded-md overflow-hidden flex-shrink-0 bg-slate-900 hover:ring-2 hover:ring-amber-500/50 transition-all",children:[y?r.jsx(Cx,{src:y,alt:n.name,className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx(wn,{className:"w-5 h-5"})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse"})}),!v&&g&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/10"}),n.comparisons.length>1&&r.jsx("div",{className:"absolute bottom-0.5 right-0.5 px-1 py-0.5 text-[9px] font-bold bg-slate-900/90 text-slate-300 rounded",children:n.comparisons.length})]}),r.jsxs("button",{type:"button",onClick:()=>s(m),className:"flex-1 min-w-0 text-left",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-sm font-medium text-white truncate",children:n.name}),b>0&&r.jsxs("span",{className:"text-xs font-mono text-red-400",children:[b.toFixed(1),"%"]})]}),r.jsx("div",{className:"mt-1",children:r.jsx(Mx,{group:n})})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsx(Ox,{group:n}),x&&r.jsxs("div",{className:`flex items-center gap-1 ${n.acceptedCount===0?"opacity-100":"opacity-0 group-hover:opacity-100"} transition-opacity`,children:[r.jsx(ut,{variant:"ghost",size:"sm",onClick:_=>{_.stopPropagation(),c(n)},disabled:d,className:"!p-1.5 text-emerald-400 hover:bg-emerald-500/20",title:`Accept ${n.comparisons.length>1?`all ${n.comparisons.length} variants`:""}`,children:r.jsx(aa,{className:"w-4 h-4"})}),r.jsx(ut,{variant:"ghost",size:"sm",onClick:_=>{_.stopPropagation(),o(n)},disabled:d,className:"!p-1.5 text-red-400 hover:bg-red-500/20",title:"Reject",children:r.jsx(jn,{className:"w-4 h-4"})})]}),r.jsx(Al,{className:"w-4 h-4 text-slate-500 group-hover:text-slate-300 transition-colors"})]})]})}function Tx({comparisons:n,onSelectComparison:s,onAcceptComparison:c,onRejectComparison:o,loadingStates:d={}}){let m=h.useMemo(()=>!n||n.length===0?[]:Ax(n),[n]);if(m.length===0)return r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"});let v=x=>{if(c)for(let y of x.comparisons)c(y.id||y.signature||y.name)},g=x=>{if(o)for(let y of x.comparisons)o(y.id||y.signature||y.name)},b=Object.values(d).some(x=>x==="accepting");return r.jsx("div",{className:"space-y-2",children:m.map(x=>r.jsx(zx,{group:x,onSelect:s,onAcceptGroup:v,onRejectGroup:g,isAccepting:b},x.name))})}function _r(n){return n<=480?Ms:n<=1024?jr:wn}function Us({value:n,onChange:s,options:c,placeholder:o,renderOption:d,renderValue:m,testId:v}){let[g,b]=h.useState(!1),x=h.useRef(null),y=h.useCallback(N=>{s(N),b(!1)},[s,b]),E=h.useCallback(N=>{x.current?.contains(N.relatedTarget)||b(!1)},[x.current?.contains,b]);return r.jsxs("div",{className:"relative",ref:x,onBlur:E,children:[r.jsxs("button",{type:"button",onClick:()=>b(!g),"data-testid":v,className:`
192
+ `,children:[r.jsxs("button",{type:"button",onClick:()=>s(m),className:"relative w-16 h-11 rounded-md overflow-hidden flex-shrink-0 bg-slate-900 hover:ring-2 hover:ring-amber-500/50 transition-all",children:[y?r.jsx(Mx,{src:y,alt:n.name,className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx(wn,{className:"w-5 h-5"})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse"})}),!v&&g&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/10"}),n.comparisons.length>1&&r.jsx("div",{className:"absolute bottom-0.5 right-0.5 px-1 py-0.5 text-[9px] font-bold bg-slate-900/90 text-slate-300 rounded",children:n.comparisons.length})]}),r.jsxs("button",{type:"button",onClick:()=>s(m),className:"flex-1 min-w-0 text-left",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-sm font-medium text-white truncate",children:n.name}),b>0&&r.jsxs("span",{className:"text-xs font-mono text-red-400",children:[b.toFixed(1),"%"]})]}),r.jsx("div",{className:"mt-1",children:r.jsx(Rx,{group:n})})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsx(zx,{group:n}),x&&r.jsxs("div",{className:`flex items-center gap-1 ${n.acceptedCount===0?"opacity-100":"opacity-0 group-hover:opacity-100"} transition-opacity`,children:[r.jsx(ct,{variant:"ghost",size:"sm",onClick:L=>{L.stopPropagation(),c(n)},disabled:d,className:"!p-1.5 text-emerald-400 hover:bg-emerald-500/20",title:`Accept ${n.comparisons.length>1?`all ${n.comparisons.length} variants`:""}`,children:r.jsx(aa,{className:"w-4 h-4"})}),r.jsx(ct,{variant:"ghost",size:"sm",onClick:L=>{L.stopPropagation(),o(n)},disabled:d,className:"!p-1.5 text-red-400 hover:bg-red-500/20",title:"Reject",children:r.jsx(jn,{className:"w-4 h-4"})})]}),r.jsx(Ol,{className:"w-4 h-4 text-slate-500 group-hover:text-slate-300 transition-colors"})]})]})}function _x({comparisons:n,onSelectComparison:s,onAcceptComparison:c,onRejectComparison:o,loadingStates:d={}}){let m=h.useMemo(()=>!n||n.length===0?[]:Tx(n),[n]);if(m.length===0)return r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"});let v=x=>{if(c)for(let y of x.comparisons)c(y.id||y.signature||y.name)},g=x=>{if(o)for(let y of x.comparisons)o(y.id||y.signature||y.name)},b=Object.values(d).some(x=>x==="accepting");return r.jsx("div",{className:"space-y-2",children:m.map(x=>r.jsx(Dx,{group:x,onSelect:s,onAcceptGroup:v,onRejectGroup:g,isAccepting:b},x.name))})}function _r(n){return n<=480?Ms:n<=1024?jr:wn}function Us({value:n,onChange:s,options:c,placeholder:o,renderOption:d,renderValue:m,testId:v}){let[g,b]=h.useState(!1),x=h.useRef(null),y=h.useCallback(N=>{s(N),b(!1)},[s]),E=h.useCallback(N=>{x.current?.contains(N.relatedTarget)||b(!1)},[]);return r.jsxs("div",{className:"relative",ref:x,onBlur:E,children:[r.jsxs("button",{type:"button",onClick:()=>b(!g),"data-testid":v,className:`
193
193
  inline-flex items-center gap-2 px-2.5 h-8 rounded-md text-xs font-medium
194
194
  bg-transparent border transition-all
195
195
  ${g?"border-amber-500/50 ring-1 ring-amber-500/20":"border-slate-700/50 hover:border-slate-600"}
@@ -199,26 +199,26 @@ Error generating stack: `+l.message+`
199
199
  `,children:[r.jsx("span",{className:"w-4 h-4"}),r.jsx("span",{children:o})]}),c.map(N=>r.jsx("button",{type:"button",onClick:()=>y(N),className:`
200
200
  w-full flex items-center gap-2 px-3 py-2 text-sm text-left transition-colors
201
201
  ${n===N?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:bg-slate-700/50"}
202
- `,children:d(N)},N))]})})]})}function Of({value:n,onChange:s}){let[c,o]=h.useState(!1),d=h.useRef(null),m=[{value:zn.PRIORITY,label:"Priority",description:"Failed first"},{value:zn.NAME,label:"Name",description:"A to Z"},{value:zn.TIME,label:"Time",description:"Recent first"}],v=m.find(g=>g.value===n)||m[0];return r.jsxs("div",{className:"relative",ref:d,children:[r.jsxs("button",{type:"button",onClick:()=>o(!c),className:`
202
+ `,children:d(N)},N))]})})]})}function Mf({value:n,onChange:s}){let[c,o]=h.useState(!1),d=h.useRef(null),m=[{value:Tn.PRIORITY,label:"Priority",description:"Failed first"},{value:Tn.NAME,label:"Name",description:"A to Z"},{value:Tn.TIME,label:"Time",description:"Recent first"}],v=m.find(g=>g.value===n)||m[0];return r.jsxs("div",{className:"relative",ref:d,children:[r.jsxs("button",{type:"button",onClick:()=>o(!c),className:`
203
203
  inline-flex items-center gap-2 px-2.5 h-8 rounded-md text-xs font-medium
204
204
  bg-transparent border transition-all
205
205
  ${c?"border-amber-500/50 ring-1 ring-amber-500/20":"border-slate-700/50 hover:border-slate-600"}
206
- `,children:[r.jsx(Hv,{className:"w-3.5 h-3.5 text-slate-500"}),r.jsx("span",{className:"text-slate-300",children:v.label}),r.jsx(yn,{className:`w-3 h-3 text-slate-500 transition-transform ${c?"rotate-180":""}`})]}),c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),r.jsx("div",{className:"absolute top-full right-0 mt-1 z-50 w-48 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden",children:r.jsx("div",{className:"py-1",children:m.map(g=>r.jsxs("button",{type:"button",onClick:()=>{s(g.value),o(!1)},className:`
206
+ `,children:[r.jsx(qv,{className:"w-3.5 h-3.5 text-slate-500"}),r.jsx("span",{className:"text-slate-300",children:v.label}),r.jsx(yn,{className:`w-3 h-3 text-slate-500 transition-transform ${c?"rotate-180":""}`})]}),c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),r.jsx("div",{className:"absolute top-full right-0 mt-1 z-50 w-48 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden",children:r.jsx("div",{className:"py-1",children:m.map(g=>r.jsxs("button",{type:"button",onClick:()=>{s(g.value),o(!1)},className:`
207
207
  w-full flex flex-col items-start px-3 py-2 text-left transition-colors
208
208
  ${n===g.value?"bg-amber-500/10":"hover:bg-slate-700/50"}
209
- `,children:[r.jsx("span",{className:n===g.value?"text-amber-400 font-medium":"text-slate-300",children:g.label}),r.jsx("span",{className:"text-xs text-slate-500",children:g.description})]},g.value))})})]})]})}function Bs({label:n,icon:s,onRemove:c}){return r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-1 bg-amber-500/10 border border-amber-500/20 rounded-md text-xs text-amber-400",children:[s&&r.jsx(s,{className:"w-3 h-3"}),r.jsx("span",{children:n}),r.jsx("button",{type:"button",onClick:c,className:"ml-0.5 hover:text-amber-200 transition-colors",children:r.jsx(Zt,{className:"w-3 h-3"})})]})}function Rx({filter:n,setFilter:s,sortBy:c,setSortBy:o,searchQuery:d,setSearchQuery:m,selectedBrowser:v,setSelectedBrowser:g,selectedViewport:b,setSelectedViewport:x,availableFilters:y,counts:E,onRefresh:N,loading:_}){let[A,R]=h.useState(!1),Q=y.browsers.length>1||y.viewports.length>1,H=h.useMemo(()=>{let Y=0;return n!==Be.ALL&&Y++,v!=="all"&&Y++,b!=="all"&&Y++,d.trim()&&Y++,Y},[n,v,b,d]),V=h.useCallback(()=>{s(Be.ALL),g("all"),x("all"),m("")},[s,g,x,m]),F=h.useCallback(Y=>r.jsxs(r.Fragment,{children:[r.jsx(Nn,{browser:Y,className:"w-4 h-4"}),r.jsx("span",{className:"capitalize",children:Y})]}),[]),Z=h.useCallback(Y=>Y==="all"?r.jsx("span",{className:"text-slate-400",children:"All browsers"}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(Nn,{browser:Y,className:"w-4 h-4"}),r.jsx("span",{className:"text-slate-300 capitalize",children:Y})]}),[]),ne=h.useCallback(Y=>{let P=_r(parseInt(Y.split("×")[0],10));return r.jsxs(r.Fragment,{children:[r.jsx(P,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"font-mono text-xs",children:Y})]})},[]),oe=h.useCallback(Y=>{if(Y==="all")return r.jsx("span",{className:"text-slate-400",children:"All viewports"});let P=_r(parseInt(Y.split("×")[0],10));return r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(P,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-slate-300 font-mono text-xs",children:Y})]})},[]);return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-col gap-3 p-3 bg-slate-800/30 border border-slate-700/40 rounded-xl",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"flex-1",children:r.jsx(Zp,{value:d,onChange:m,placeholder:"Search screenshots...",className:"w-full"})}),Q&&r.jsxs("button",{type:"button",onClick:()=>R(!A),className:`
209
+ `,children:[r.jsx("span",{className:n===g.value?"text-amber-400 font-medium":"text-slate-300",children:g.label}),r.jsx("span",{className:"text-xs text-slate-500",children:g.description})]},g.value))})})]})]})}function Bs({label:n,icon:s,onRemove:c}){return r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-1 bg-amber-500/10 border border-amber-500/20 rounded-md text-xs text-amber-400",children:[s&&r.jsx(s,{className:"w-3 h-3"}),r.jsx("span",{children:n}),r.jsx("button",{type:"button",onClick:c,className:"ml-0.5 hover:text-amber-200 transition-colors",children:r.jsx(Zt,{className:"w-3 h-3"})})]})}function Lx({filter:n,setFilter:s,sortBy:c,setSortBy:o,searchQuery:d,setSearchQuery:m,selectedBrowser:v,setSelectedBrowser:g,selectedViewport:b,setSelectedViewport:x,availableFilters:y,counts:E,onRefresh:N,loading:L}){let[A,O]=h.useState(!1),Q=y.browsers.length>1||y.viewports.length>1,U=h.useMemo(()=>{let Y=0;return n!==Be.ALL&&Y++,v!=="all"&&Y++,b!=="all"&&Y++,d.trim()&&Y++,Y},[n,v,b,d]),V=h.useCallback(()=>{s(Be.ALL),g("all"),x("all"),m("")},[s,g,x,m]),F=h.useCallback(Y=>r.jsxs(r.Fragment,{children:[r.jsx(Nn,{browser:Y,className:"w-4 h-4"}),r.jsx("span",{className:"capitalize",children:Y})]}),[]),K=h.useCallback(Y=>Y==="all"?r.jsx("span",{className:"text-slate-400",children:"All browsers"}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(Nn,{browser:Y,className:"w-4 h-4"}),r.jsx("span",{className:"text-slate-300 capitalize",children:Y})]}),[]),ne=h.useCallback(Y=>{let P=_r(parseInt(Y.split("×")[0],10));return r.jsxs(r.Fragment,{children:[r.jsx(P,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"font-mono text-xs",children:Y})]})},[]),he=h.useCallback(Y=>{if(Y==="all")return r.jsx("span",{className:"text-slate-400",children:"All viewports"});let P=_r(parseInt(Y.split("×")[0],10));return r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(P,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-slate-300 font-mono text-xs",children:Y})]})},[]);return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-col gap-3 p-3 bg-slate-800/30 border border-slate-700/40 rounded-xl",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"flex-1",children:r.jsx($1,{value:d,onChange:m,placeholder:"Search screenshots...",className:"w-full"})}),Q&&r.jsxs("button",{type:"button",onClick:()=>O(!A),className:`
210
210
  relative md:hidden inline-flex items-center justify-center w-8 h-8 rounded-md transition-all
211
- ${A||H>0?"bg-amber-500/20 text-amber-400 border border-amber-500/30":"text-slate-400 border border-slate-700/50 hover:border-slate-600"}
212
- `,children:[r.jsx(Av,{className:"w-4 h-4"}),H>0&&r.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-amber-500 text-slate-900 text-[10px] font-bold rounded-full flex items-center justify-center",children:H})]}),r.jsx("div",{className:"hidden md:block",children:r.jsx(Of,{value:c,onChange:o})}),r.jsx("button",{type:"button",onClick:N,disabled:_,className:"inline-flex items-center justify-center w-8 h-8 rounded-md border border-slate-700/50 text-slate-400 hover:text-white hover:border-slate-600 transition-all disabled:opacity-50",title:"Refresh",children:r.jsx(Cl,{className:`w-4 h-4 ${_?"animate-spin":""}`})})]}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Na,{label:"All",count:E.all,color:"gray",active:n===Be.ALL,onClick:()=>s(Be.ALL),testId:"filter-status-all"}),r.jsx(Na,{label:"Failed",count:E.failed,color:"red",active:n===Be.FAILED,onClick:()=>s(Be.FAILED),testId:"filter-status-failed"}),r.jsx(Na,{label:"New",count:E.new,color:"blue",active:n===Be.NEW,onClick:()=>s(Be.NEW),testId:"filter-status-new"}),r.jsx(Na,{label:"Passed",count:E.passed,color:"emerald",active:n===Be.PASSED,onClick:()=>s(Be.PASSED),testId:"filter-status-passed"})]}),Q&&r.jsx("div",{className:"w-px h-6 bg-slate-700/50"}),y.browsers.length>1&&r.jsx(Us,{value:v,onChange:g,options:y.browsers,placeholder:"All browsers",renderOption:F,renderValue:Z,testId:"filter-browser"}),y.viewports.length>1&&r.jsx(Us,{value:b,onChange:x,options:y.viewports,placeholder:"All viewports",renderOption:ne,renderValue:oe,testId:"filter-viewport"})]}),r.jsxs("div",{className:"md:hidden flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1 scrollbar-hide",children:[r.jsx(Na,{label:"All",count:E.all,color:"gray",active:n===Be.ALL,onClick:()=>s(Be.ALL),testId:"mobile-filter-status-all"}),r.jsx(Na,{label:"Failed",count:E.failed,color:"red",active:n===Be.FAILED,onClick:()=>s(Be.FAILED),testId:"mobile-filter-status-failed"}),r.jsx(Na,{label:"New",count:E.new,color:"blue",active:n===Be.NEW,onClick:()=>s(Be.NEW),testId:"mobile-filter-status-new"}),r.jsx(Na,{label:"Passed",count:E.passed,color:"emerald",active:n===Be.PASSED,onClick:()=>s(Be.PASSED),testId:"mobile-filter-status-passed"})]}),A&&Q&&r.jsxs("div",{className:"md:hidden space-y-3 pt-2 border-t border-slate-700/30",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by"}),r.jsx(Of,{value:c,onChange:o})]}),y.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser"}),r.jsx(Us,{value:v,onChange:g,options:y.browsers,placeholder:"All browsers",renderOption:F,renderValue:Z,testId:"filter-browser-mobile"})]}),y.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport"}),r.jsx(Us,{value:b,onChange:x,options:y.viewports,placeholder:"All viewports",renderOption:ne,renderValue:oe,testId:"filter-viewport-mobile"})]})]})]}),H>0&&r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{className:"text-xs text-slate-500",children:"Filters:"}),n!==Be.ALL&&r.jsx(Bs,{label:n.charAt(0).toUpperCase()+n.slice(1),onRemove:()=>s(Be.ALL)}),v!=="all"&&r.jsx(Bs,{label:v,icon:()=>r.jsx(Nn,{browser:v,className:"w-3 h-3"}),onRemove:()=>g("all")}),b!=="all"&&r.jsx(Bs,{label:b,icon:_r(parseInt(b.split("×")[0],10)),onRemove:()=>x("all")}),d.trim()&&r.jsx(Bs,{label:`"${d}"`,onRemove:()=>m("")}),r.jsx("button",{type:"button",onClick:V,className:"text-xs text-slate-500 hover:text-slate-300 transition-colors ml-2",children:"Clear all"})]})]})}function Dx({failedCount:n,newCount:s,onAcceptAll:c,isLoading:o}){let d=n+s,m=n>0;return r.jsxs("div",{className:`
211
+ ${A||U>0?"bg-amber-500/20 text-amber-400 border border-amber-500/30":"text-slate-400 border border-slate-700/50 hover:border-slate-600"}
212
+ `,children:[r.jsx(Ov,{className:"w-4 h-4"}),U>0&&r.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-amber-500 text-slate-900 text-[10px] font-bold rounded-full flex items-center justify-center",children:U})]}),r.jsx("div",{className:"hidden md:block",children:r.jsx(Mf,{value:c,onChange:o})}),r.jsx("button",{type:"button",onClick:N,disabled:L,className:"inline-flex items-center justify-center w-8 h-8 rounded-md border border-slate-700/50 text-slate-400 hover:text-white hover:border-slate-600 transition-all disabled:opacity-50",title:"Refresh",children:r.jsx(Al,{className:`w-4 h-4 ${L?"animate-spin":""}`})})]}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Ea,{label:"All",count:E.all,color:"gray",active:n===Be.ALL,onClick:()=>s(Be.ALL),testId:"filter-status-all"}),r.jsx(Ea,{label:"Failed",count:E.failed,color:"red",active:n===Be.FAILED,onClick:()=>s(Be.FAILED),testId:"filter-status-failed"}),r.jsx(Ea,{label:"New",count:E.new,color:"blue",active:n===Be.NEW,onClick:()=>s(Be.NEW),testId:"filter-status-new"}),r.jsx(Ea,{label:"Passed",count:E.passed,color:"emerald",active:n===Be.PASSED,onClick:()=>s(Be.PASSED),testId:"filter-status-passed"})]}),Q&&r.jsx("div",{className:"w-px h-6 bg-slate-700/50"}),y.browsers.length>1&&r.jsx(Us,{value:v,onChange:g,options:y.browsers,placeholder:"All browsers",renderOption:F,renderValue:K,testId:"filter-browser"}),y.viewports.length>1&&r.jsx(Us,{value:b,onChange:x,options:y.viewports,placeholder:"All viewports",renderOption:ne,renderValue:he,testId:"filter-viewport"})]}),r.jsxs("div",{className:"md:hidden flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1 scrollbar-hide",children:[r.jsx(Ea,{label:"All",count:E.all,color:"gray",active:n===Be.ALL,onClick:()=>s(Be.ALL),testId:"mobile-filter-status-all"}),r.jsx(Ea,{label:"Failed",count:E.failed,color:"red",active:n===Be.FAILED,onClick:()=>s(Be.FAILED),testId:"mobile-filter-status-failed"}),r.jsx(Ea,{label:"New",count:E.new,color:"blue",active:n===Be.NEW,onClick:()=>s(Be.NEW),testId:"mobile-filter-status-new"}),r.jsx(Ea,{label:"Passed",count:E.passed,color:"emerald",active:n===Be.PASSED,onClick:()=>s(Be.PASSED),testId:"mobile-filter-status-passed"})]}),A&&Q&&r.jsxs("div",{className:"md:hidden space-y-3 pt-2 border-t border-slate-700/30",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by"}),r.jsx(Mf,{value:c,onChange:o})]}),y.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser"}),r.jsx(Us,{value:v,onChange:g,options:y.browsers,placeholder:"All browsers",renderOption:F,renderValue:K,testId:"filter-browser-mobile"})]}),y.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport"}),r.jsx(Us,{value:b,onChange:x,options:y.viewports,placeholder:"All viewports",renderOption:ne,renderValue:he,testId:"filter-viewport-mobile"})]})]})]}),U>0&&r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{className:"text-xs text-slate-500",children:"Filters:"}),n!==Be.ALL&&r.jsx(Bs,{label:n.charAt(0).toUpperCase()+n.slice(1),onRemove:()=>s(Be.ALL)}),v!=="all"&&r.jsx(Bs,{label:v,icon:()=>r.jsx(Nn,{browser:v,className:"w-3 h-3"}),onRemove:()=>g("all")}),b!=="all"&&r.jsx(Bs,{label:b,icon:_r(parseInt(b.split("×")[0],10)),onRemove:()=>x("all")}),d.trim()&&r.jsx(Bs,{label:`"${d}"`,onRemove:()=>m("")}),r.jsx("button",{type:"button",onClick:V,className:"text-xs text-slate-500 hover:text-slate-300 transition-colors ml-2",children:"Clear all"})]})]})}function kx({failedCount:n,newCount:s,onAcceptAll:c,isLoading:o}){let d=n+s,m=n>0;return r.jsxs("div",{className:`
213
213
  relative overflow-hidden rounded-xl border
214
214
  ${m?"bg-gradient-to-r from-red-500/10 via-red-500/5 to-transparent border-red-500/20":"bg-gradient-to-r from-emerald-500/10 via-emerald-500/5 to-transparent border-emerald-500/20"}
215
215
  `,children:[r.jsx("div",{className:"absolute inset-0 opacity-5",children:r.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0)",backgroundSize:"24px 24px"}})}),r.jsxs("div",{className:"relative flex items-center gap-4 p-4",children:[r.jsx("div",{className:`
216
216
  flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center
217
217
  ${m?"bg-red-500/20 text-red-400":"bg-emerald-500/20 text-emerald-400"}
218
- `,children:m?r.jsx(la,{className:"w-5 h-5"}):r.jsx(Ho,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-red-500/20 text-red-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-400"}),n," changed"]}),s>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-blue-500/20 text-blue-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),s," new"]})]}),r.jsx("p",{className:"text-sm text-slate-400 mt-1",children:m?"Review visual differences and accept to update baselines":"New screenshots ready to be saved as baselines"})]}),r.jsxs(ut,{variant:"success",onClick:c,loading:o,icon:aa,className:"flex-shrink-0","data-testid":"btn-accept-all",children:["Accept All (",d,")"]})]})]})}function _x(){let[,n]=Ts(),{addToast:s,confirm:c}=zl(),[o,d]=h.useState({}),{data:m,isLoading:v,refetch:g}=Rs(),b=rf(),x=sf(),y=uf(),{filteredComparisons:E,filter:N,setFilter:_,sortBy:A,setSortBy:R,searchQuery:Q,setSearchQuery:H,selectedBrowser:V,setSelectedBrowser:F,selectedViewport:Z,setSelectedViewport:ne,availableFilters:oe,counts:Y}=Nx(m?.comparisons),P=h.useCallback(q=>{let X=q.id||q.signature||q.name;X&&n(`/comparison/${encodeURIComponent(X)}`)},[n]),se=h.useCallback(q=>{d(X=>({...X,[q]:"accepting"})),x.mutate(q,{onSuccess:()=>{d(X=>({...X,[q]:"accepted"}))},onError:X=>{d(ce=>({...ce,[q]:void 0})),s(`Failed to accept: ${X.message}`,"error")}})},[x,s,d]),ze=h.useCallback(q=>{d(X=>({...X,[q]:"rejecting"})),y.mutate(q,{onSuccess:()=>{d(X=>({...X,[q]:"rejected"}))},onError:X=>{d(ce=>({...ce,[q]:void 0})),s(`Failed to reject: ${X.message}`,"error")}})},[y,s,d]),Re=h.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&b.mutate(void 0,{onSuccess:()=>{s("All baselines accepted successfully","success")},onError:X=>{console.error("Failed to accept all baselines:",X),s("Failed to accept all baselines. Please try again.","error")}})},[b,s,c]),ve=!m?.comparisons||m.comparisons.length===0,_e=N!=="all"||Q.trim()||V!=="all"||Z!=="all",ct=m?.comparisons?.some(q=>q.status==="failed"||q.status==="new"),ue=m?.comparisons?.filter(q=>q.status==="failed").length||0,T=m?.comparisons?.filter(q=>q.status==="new").length||0;return ve?r.jsx(En,{icon:Kv,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Rx,{filter:N,setFilter:_,sortBy:A,setSortBy:R,searchQuery:Q,setSearchQuery:H,selectedBrowser:V,setSelectedBrowser:F,selectedViewport:Z,setSelectedViewport:ne,availableFilters:oe,counts:Y,onRefresh:g,loading:v}),ct&&r.jsx(Dx,{failedCount:ue,newCount:T,onAcceptAll:Re,isLoading:b.isPending}),E.length===0?r.jsx(Ie,{hover:!1,children:r.jsx(tt,{className:"py-12",children:r.jsx(En,{icon:y1,title:"No matches",description:"No comparisons match your current filters.",action:_e&&r.jsx(ut,{variant:"ghost",size:"sm",onClick:()=>{_("all"),H(""),F("all"),ne("all")},children:"Clear all filters"})})})}):r.jsx(Tx,{comparisons:E,onSelectComparison:P,onAcceptComparison:se,onRejectComparison:ze,loadingStates:o})]})}function Lx(n={}){return gn({queryKey:we.config,queryFn:lf.get,...n})}function kx(){const n=_t();return ta({mutationFn:lf.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:we.config})}})}function Mf(n){return{threshold:n?.comparison?.threshold??2,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function Ux({source:n}){let s={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(mt,{variant:s[n]||"default",size:"sm",children:c[n]||n})}function Hs({title:n,source:s,description:c,children:o,noSource:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wide",children:n}),!d&&r.jsx(Ux,{source:s||"default"})]}),c&&r.jsx("p",{className:"text-sm text-slate-400",children:c}),r.jsx("div",{className:"space-y-4",children:o})]})}function Bx({config:n,sources:s,onSave:c,isSaving:o}){let d=Mf(n),[m,v]=h.useState(d),[g,b]=h.useState(!1),x=h.useCallback((N,_)=>{v(A=>({...A,[N]:_})),b(!0)},[v,b]),y=h.useCallback(()=>{v(Mf(n)),b(!1)},[n,v,b]),E=h.useCallback(()=>{let N={comparison:{threshold:m.threshold},server:{port:m.port,timeout:m.timeout},build:{name:m.buildName,environment:m.environment},tdd:{openReport:m.openReport}};c(N,()=>b(!1))},[m,c,b]);return r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsx(Hs,{title:"Comparison",source:s?.comparison,description:"Configure how screenshots are compared",children:r.jsx(Ds,{label:"Threshold",type:"number",value:m.threshold,onChange:N=>x("threshold",parseFloat(N.target.value)),hint:"CIEDE2000 Delta E. 0 = exact, 2 = recommended",step:"0.1",min:"0"})})})}),r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsxs(Hs,{title:"Server",source:s?.server,description:"Local screenshot server configuration",children:[r.jsx(Ds,{label:"Port",type:"number",value:m.port,onChange:N=>x("port",parseInt(N.target.value,10)),hint:"Default: 47392"}),r.jsx(Ds,{label:"Timeout",type:"number",value:m.timeout,onChange:N=>x("timeout",parseInt(N.target.value,10)),hint:"Request timeout in milliseconds"})]})})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsxs(Hs,{title:"Build",source:s?.build,description:"Build naming and environment",children:[r.jsx(Ds,{label:"Name Template",type:"text",value:m.buildName,onChange:N=>x("buildName",N.target.value),hint:"Use {timestamp} for current time"}),r.jsx(wp,{label:"Environment",value:m.environment,onChange:N=>x("environment",N.target.value),options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]})]})})}),r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsx(Hs,{title:"TDD Mode",source:s?.tdd,description:"Development workflow preferences",children:r.jsx(jp,{label:"Auto-open Report",description:"Open dashboard in browser when starting TDD mode",checked:m.openReport,onChange:N=>x("openReport",N.target.checked)})})})})]}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm text-slate-400",children:g?r.jsx("span",{className:"text-amber-400",children:"You have unsaved changes"}):r.jsx("span",{children:"Settings saved to project config"})}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ut,{variant:"ghost",onClick:y,disabled:!g||o,children:"Reset"}),r.jsx(ut,{variant:"primary",onClick:E,loading:o,disabled:!g,children:"Save Changes"})]})]})})})]})}function Hx(){let{data:n,isLoading:s,error:c,refetch:o}=Lx(),d=kx(),{addToast:m}=zl(),v=h.useCallback((g,b)=>{d.mutate(g,{onSuccess:()=>{b(),m("Settings saved successfully!","success")},onError:x=>{m(`Failed to save settings: ${x.message}`,"error")}})},[d,m]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Qe,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Qe,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-24"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})}),r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-20"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-16"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})}),r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-24"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})})]})]})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(cf,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(ut,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(Bx,{config:n?.config,sources:n?.sources,onSave:v,isSaving:d.isPending},JSON.stringify(n?.config))]})}function qs({icon:n,label:s,value:c,subvalue:o,variant:d,iconColor:m}){return r.jsx(Ie,{variant:d,hover:!1,children:r.jsx(tt,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:s}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${m}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function qx(){const{addToast:n,confirm:s}=zl(),{data:c,isLoading:o,refetch:d}=Rs(),m=rf(),v=dp(),g=c?.comparisons,b=c?.baseline,x=g?.length||0,y=g?.filter(H=>H.status==="passed").length||0,E=g?.filter(H=>H.status==="failed").length||0,N=g?.filter(H=>H.status==="new").length||0,_=x>0?Math.round(y/x*100):0,A=g?.some(H=>H.status==="failed"||H.status==="new"),R=h.useCallback(async()=>{await s("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&m.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:V=>{console.error("Failed to accept all baselines:",V),n("Failed to accept all baselines. Please try again.","error")}})},[m,n,s]),Q=h.useCallback(async()=>{await s("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:V=>{console.error("Failed to reset baselines:",V),n("Failed to reset baselines. Please try again.","error")}})},[v,n,s]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(Sp,{value:_,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[y," of ",x," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(qs,{icon:Nr,label:"Total Screenshots",value:x,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(qs,{icon:As,label:"Passed",value:y,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(qs,{icon:la,label:"Failed",value:E,variant:E>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(qs,{icon:Ho,label:"New",value:N,variant:N>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(Ie,{hover:!1,children:[r.jsx(ff,{icon:Os,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:N>0&&r.jsxs(mt,{variant:"warning",dot:!0,children:[N," new without baseline"]})}),r.jsx(tt,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(Ie,{hover:!1,children:[r.jsx(ff,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(bp,{className:"flex flex-wrap gap-3",children:[r.jsx(ut,{variant:"success",onClick:R,loading:m.isPending,disabled:!A||o,icon:As,children:A?"Accept All Changes":"No Changes to Accept"}),r.jsx(ut,{variant:"secondary",onClick:Q,loading:v.isPending,disabled:o,icon:Cl,children:"Reset Baselines"}),r.jsx(ut,{variant:"ghost",onClick:()=>d(),loading:o,icon:Cl,className:"ml-auto",children:"Refresh"})]})]})]})}function Qx(n,s){const c=[];if(s==="shell")return n.split(`
218
+ `,children:m?r.jsx(la,{className:"w-5 h-5"}):r.jsx(Ho,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-red-500/20 text-red-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-400"}),n," changed"]}),s>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-blue-500/20 text-blue-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),s," new"]})]}),r.jsx("p",{className:"text-sm text-slate-400 mt-1",children:m?"Review visual differences and accept to update baselines":"New screenshots ready to be saved as baselines"})]}),r.jsxs(ct,{variant:"success",onClick:c,loading:o,icon:aa,className:"flex-shrink-0","data-testid":"btn-accept-all",children:["Accept All (",d,")"]})]})]})}function Ux(){let[,n]=zs(),{addToast:s,confirm:c}=zl(),[o,d]=h.useState({}),{data:m,isLoading:v,refetch:g}=Rs(),b=uf(),x=rf(),y=cf(),{filteredComparisons:E,filter:N,setFilter:L,sortBy:A,setSortBy:O,searchQuery:Q,setSearchQuery:U,selectedBrowser:V,setSelectedBrowser:F,selectedViewport:K,setSelectedViewport:ne,availableFilters:he,counts:Y}=Ax(m?.comparisons),P=h.useCallback(q=>{let Z=q.id||q.signature||q.name;Z&&n(`/comparison/${encodeURIComponent(Z)}`)},[n]),se=h.useCallback(q=>{d(Z=>({...Z,[q]:"accepting"})),x.mutate(q,{onSuccess:()=>{d(Z=>({...Z,[q]:"accepted"}))},onError:Z=>{d(ce=>({...ce,[q]:void 0})),s(`Failed to accept: ${Z.message}`,"error")}})},[x,s]),ze=h.useCallback(q=>{d(Z=>({...Z,[q]:"rejecting"})),y.mutate(q,{onSuccess:()=>{d(Z=>({...Z,[q]:"rejected"}))},onError:Z=>{d(ce=>({...ce,[q]:void 0})),s(`Failed to reject: ${Z.message}`,"error")}})},[y,s]),Re=h.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&b.mutate(void 0,{onSuccess:()=>{s("All baselines accepted successfully","success")},onError:Z=>{console.error("Failed to accept all baselines:",Z),s("Failed to accept all baselines. Please try again.","error")}})},[b,s,c]),pe=!m?.comparisons||m.comparisons.length===0,_e=N!=="all"||Q.trim()||V!=="all"||K!=="all",ot=m?.comparisons?.some(q=>q.status==="failed"||q.status==="new"),ue=m?.comparisons?.filter(q=>q.status==="failed").length||0,R=m?.comparisons?.filter(q=>q.status==="new").length||0;return pe?r.jsx(En,{icon:$v,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Lx,{filter:N,setFilter:L,sortBy:A,setSortBy:O,searchQuery:Q,setSearchQuery:U,selectedBrowser:V,setSelectedBrowser:F,selectedViewport:K,setSelectedViewport:ne,availableFilters:he,counts:Y,onRefresh:g,loading:v}),ot&&r.jsx(kx,{failedCount:ue,newCount:R,onAcceptAll:Re,isLoading:b.isPending}),E.length===0?r.jsx(Ie,{hover:!1,children:r.jsx(tt,{className:"py-12",children:r.jsx(En,{icon:wp,title:"No matches",description:"No comparisons match your current filters.",action:_e&&r.jsx(ct,{variant:"ghost",size:"sm",onClick:()=>{L("all"),U(""),F("all"),ne("all")},children:"Clear all filters"})})})}):r.jsx(_x,{comparisons:E,onSelectComparison:P,onAcceptComparison:se,onRejectComparison:ze,loadingStates:o})]})}function Bx(n={}){return Cl({queryKey:de.config,queryFn:lf.get,...n})}function Hx(){const n=_t();return ta({mutationFn:lf.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:de.config})}})}function Tf(n){return{threshold:n?.comparison?.threshold??2,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function qx({source:n}){let s={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(mt,{variant:s[n]||"default",size:"sm",children:c[n]||n})}function Hs({title:n,source:s,description:c,children:o,noSource:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wide",children:n}),!d&&r.jsx(qx,{source:s||"default"})]}),c&&r.jsx("p",{className:"text-sm text-slate-400",children:c}),r.jsx("div",{className:"space-y-4",children:o})]})}function Qx({config:n,sources:s,onSave:c,isSaving:o}){let d=Tf(n),[m,v]=h.useState(d),[g,b]=h.useState(!1),x=h.useCallback((N,L)=>{v(A=>({...A,[N]:L})),b(!0)},[]),y=h.useCallback(()=>{v(Tf(n)),b(!1)},[n]),E=h.useCallback(()=>{let N={comparison:{threshold:m.threshold},server:{port:m.port,timeout:m.timeout},build:{name:m.buildName,environment:m.environment},tdd:{openReport:m.openReport}};c(N,()=>b(!1))},[m,c]);return r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsx(Hs,{title:"Comparison",source:s?.comparison,description:"Configure how screenshots are compared",children:r.jsx(Ds,{label:"Threshold",type:"number",value:m.threshold,onChange:N=>x("threshold",parseFloat(N.target.value)),hint:"CIEDE2000 Delta E. 0 = exact, 2 = recommended",step:"0.1",min:"0"})})})}),r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsxs(Hs,{title:"Server",source:s?.server,description:"Local screenshot server configuration",children:[r.jsx(Ds,{label:"Port",type:"number",value:m.port,onChange:N=>x("port",parseInt(N.target.value,10)),hint:"Default: 47392"}),r.jsx(Ds,{label:"Timeout",type:"number",value:m.timeout,onChange:N=>x("timeout",parseInt(N.target.value,10)),hint:"Request timeout in milliseconds"})]})})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsxs(Hs,{title:"Build",source:s?.build,description:"Build naming and environment",children:[r.jsx(Ds,{label:"Name Template",type:"text",value:m.buildName,onChange:N=>x("buildName",N.target.value),hint:"Use {timestamp} for current time"}),r.jsx(N1,{label:"Environment",value:m.environment,onChange:N=>x("environment",N.target.value),options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]})]})})}),r.jsx(Ie,{hover:!1,children:r.jsx(tt,{children:r.jsx(Hs,{title:"TDD Mode",source:s?.tdd,description:"Development workflow preferences",children:r.jsx(E1,{label:"Auto-open Report",description:"Open dashboard in browser when starting TDD mode",checked:m.openReport,onChange:N=>x("openReport",N.target.checked)})})})})]}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm text-slate-400",children:g?r.jsx("span",{className:"text-amber-400",children:"You have unsaved changes"}):r.jsx("span",{children:"Settings saved to project config"})}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ct,{variant:"ghost",onClick:y,disabled:!g||o,children:"Reset"}),r.jsx(ct,{variant:"primary",onClick:E,loading:o,disabled:!g,children:"Save Changes"})]})]})})})]})}function Vx(){let{data:n,isLoading:s,error:c,refetch:o}=Bx(),d=Hx(),{addToast:m}=zl(),v=h.useCallback((g,b)=>{d.mutate(g,{onSuccess:()=>{b(),m("Settings saved successfully!","success")},onError:x=>{m(`Failed to save settings: ${x.message}`,"error")}})},[d,m]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Qe,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Qe,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-24"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})}),r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-20"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-16"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})}),r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"space-y-4",children:[r.jsx(Qe,{variant:"text",className:"w-24"}),r.jsx(Qe,{variant:"text",className:"w-full h-10"})]})})]})]})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(of,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(ct,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(Qx,{config:n?.config,sources:n?.sources,onSave:v,isSaving:d.isPending},JSON.stringify(n?.config))]})}function qs({icon:n,label:s,value:c,subvalue:o,variant:d,iconColor:m}){return r.jsx(Ie,{variant:d,hover:!1,children:r.jsx(tt,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:s}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${m}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function Yx(){const{addToast:n,confirm:s}=zl(),{data:c,isLoading:o,refetch:d}=Rs(),m=uf(),v=v1(),g=c?.comparisons,b=c?.baseline,x=g?.length||0,y=g?.filter(U=>U.status==="passed").length||0,E=g?.filter(U=>U.status==="failed").length||0,N=g?.filter(U=>U.status==="new").length||0,L=x>0?Math.round(y/x*100):0,A=g?.some(U=>U.status==="failed"||U.status==="new"),O=h.useCallback(async()=>{await s("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&m.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:V=>{console.error("Failed to accept all baselines:",V),n("Failed to accept all baselines. Please try again.","error")}})},[m,n,s]),Q=h.useCallback(async()=>{await s("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:V=>{console.error("Failed to reset baselines:",V),n("Failed to reset baselines. Please try again.","error")}})},[v,n,s]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(Ie,{hover:!1,children:r.jsxs(tt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(C1,{value:L,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[y," of ",x," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(qs,{icon:Nr,label:"Total Screenshots",value:x,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(qs,{icon:As,label:"Passed",value:y,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(qs,{icon:la,label:"Failed",value:E,variant:E>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(qs,{icon:Ho,label:"New",value:N,variant:N>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(Ie,{hover:!1,children:[r.jsx(df,{icon:Os,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:N>0&&r.jsxs(mt,{variant:"warning",dot:!0,children:[N," new without baseline"]})}),r.jsx(tt,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(Ie,{hover:!1,children:[r.jsx(df,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(j1,{className:"flex flex-wrap gap-3",children:[r.jsx(ct,{variant:"success",onClick:O,loading:m.isPending,disabled:!A||o,icon:As,children:A?"Accept All Changes":"No Changes to Accept"}),r.jsx(ct,{variant:"secondary",onClick:Q,loading:v.isPending,disabled:o,icon:Al,children:"Reset Baselines"}),r.jsx(ct,{variant:"ghost",onClick:()=>d(),loading:o,icon:Al,className:"ml-auto",children:"Refresh"})]})]})]})}function Gx(n,s){const c=[];if(s==="shell")return n.split(`
219
219
  `).forEach((v,g)=>{const b=n.split(`
220
220
  `).slice(0,g).join(`
221
- `).length+(g>0?1:0);v.trim().startsWith("#")?c.push({type:"comment",start:b,end:b+v.length}):(v.trim().startsWith("npm")||v.trim().startsWith("npx"))&&c.push({type:"command",start:b,end:b+v.length})}),c;const o=[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}];for(let{type:v,regex:g}of o){let b=g.exec(n);for(;b!==null;)c.push({type:v,start:b.index,end:b.index+b[0].length}),b=g.exec(n)}c.sort((v,g)=>v.start-g.start);const d=[];let m=0;return c.forEach(v=>{v.start>=m&&(d.push(v),m=v.end)}),d}function Vx({code:n,language:s="javascript"}){const c=h.useRef(null),o=s==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return h.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;const d=c.current.firstChild;if(!d||d.nodeType!==window.Node.TEXT_NODE)return;const v=Qx(n,o?"shell":s).map(x=>{const y=new window.Range;return y.setStart(d,x.start),y.setEnd(d,x.end),{type:x.type,range:y}}),g=new Map;v.forEach(({type:x,range:y})=>{g.has(x)||g.set(x,[]),g.get(x).push(y)});const b=new Map;for(const[x,y]of g){const E=new window.Highlight(...y);b.set(x,E),window.CSS.highlights.set(`code-${x}`,E)}return()=>{for(const[x]of b)window.CSS.highlights.delete(`code-${x}`)}},[n,s,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}const zf=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
221
+ `).length+(g>0?1:0);v.trim().startsWith("#")?c.push({type:"comment",start:b,end:b+v.length}):(v.trim().startsWith("npm")||v.trim().startsWith("npx"))&&c.push({type:"command",start:b,end:b+v.length})}),c;const o=[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}];for(let{type:v,regex:g}of o){let b=g.exec(n);for(;b!==null;)c.push({type:v,start:b.index,end:b.index+b[0].length}),b=g.exec(n)}c.sort((v,g)=>v.start-g.start);const d=[];let m=0;return c.forEach(v=>{v.start>=m&&(d.push(v),m=v.end)}),d}function Zx({code:n,language:s="javascript"}){const c=h.useRef(null),o=s==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return h.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;const d=c.current.firstChild;if(!d||d.nodeType!==window.Node.TEXT_NODE)return;const v=Gx(n,o?"shell":s).map(x=>{const y=new window.Range;return y.setStart(d,x.start),y.setEnd(d,x.end),{type:x.type,range:y}}),g=new Map;v.forEach(({type:x,range:y})=>{g.has(x)||g.set(x,[]),g.get(x).push(y)});const b=new Map;for(const[x,y]of g){const E=new window.Highlight(...y);b.set(x,E),window.CSS.highlights.set(`code-${x}`,E)}return()=>{for(const[x]of b)window.CSS.highlights.delete(`code-${x}`)}},[n,s,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}const zf=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
222
222
 
223
223
  test('homepage', async ({ page }) => {
224
224
  await page.goto('/');
@@ -267,4 +267,4 @@ class VisualTests: XCTestCase {
267
267
  # Just run the CLI against your Storybook build:
268
268
 
269
269
  npm run build-storybook
270
- npx vizzly storybook ./storybook-static`}];function Qs(){const[n,s]=h.useState("playwright"),c=zf.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(Os,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:zf.map(o=>r.jsx("button",{type:"button",onClick:()=>s(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(Vx,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Yv,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function Yx(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(An,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function Gx({error:n,onRetry:s}){return r.jsx(En,{icon:la,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function Zx(){const[n,s]=Ts(),{data:c,isLoading:o,error:d,refetch:m}=Rs(),v=n.startsWith("/comparison/"),g=n==="/stats"?"stats":n==="/settings"?"settings":n==="/builds"?"builds":"comparisons",b=y=>{s(y==="stats"?"/stats":y==="settings"?"/settings":y==="builds"?"/builds":"/")},x=n==="/settings"||n==="/builds";return o&&!c&&!x?r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Yx,{})}):d&&!c&&!x?r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Gx,{error:d.message,onRetry:m})}):!c&&!x?r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Qs,{})}):v?c?r.jsx(af,{children:r.jsx(Sn,{path:"/comparison/:id",children:r.jsx(yx,{})})}):r.jsx(Mn,{currentView:"comparisons",onNavigate:b,loading:o,children:r.jsx(Qs,{})}):r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsxs(af,{children:[r.jsx(Sn,{path:"/stats",children:c?r.jsx(qx,{}):r.jsx(Qs,{})}),r.jsx(Sn,{path:"/settings",children:r.jsx(Hx,{})}),r.jsx(Sn,{path:"/builds",children:r.jsx(px,{})}),r.jsx(Sn,{path:"/",children:c?r.jsx(_x,{}):r.jsx(Qs,{})})]})})}const Xx=new nv({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});let Tf=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n)),Ev.createRoot(n).render(r.jsx(h.StrictMode,{children:r.jsx(rv,{client:Xx,children:r.jsx(ix,{children:r.jsx(Zx,{})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Tf):Tf()})();
270
+ npx vizzly storybook ./storybook-static`}];function Qs(){const[n,s]=h.useState("playwright"),c=zf.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(Os,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:zf.map(o=>r.jsx("button",{type:"button",onClick:()=>s(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(Zx,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Gv,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function Xx(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(An,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function Kx({error:n,onRetry:s}){return r.jsx(En,{icon:la,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function $x(){const[n,s]=zs(),{data:c,isLoading:o,error:d,refetch:m}=Rs(),v=n.startsWith("/comparison/"),g=n==="/stats"?"stats":n==="/settings"?"settings":n==="/builds"?"builds":"comparisons",b=y=>{s(y==="stats"?"/stats":y==="settings"?"/settings":y==="builds"?"/builds":"/")},x=n==="/settings"||n==="/builds";return o&&!c&&!x?r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Xx,{})}):d&&!c&&!x?r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Kx,{error:d.message,onRetry:m})}):!c&&!x?r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Qs,{})}):v?c?r.jsx(af,{children:r.jsx(Sn,{path:"/comparison/:id",children:r.jsx(Sx,{})})}):r.jsx(Mn,{currentView:"comparisons",onNavigate:b,loading:o,children:r.jsx(Qs,{})}):r.jsx(Mn,{currentView:g,onNavigate:b,loading:o,children:r.jsxs(af,{children:[r.jsx(Sn,{path:"/stats",children:c?r.jsx(Yx,{}):r.jsx(Qs,{})}),r.jsx(Sn,{path:"/settings",children:r.jsx(Vx,{})}),r.jsx(Sn,{path:"/builds",children:r.jsx(bx,{})}),r.jsx(Sn,{path:"/",children:c?r.jsx(Ux,{}):r.jsx(Qs,{})})]})})}const Jx=new sv({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});let Rf=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n)),Cv.createRoot(n).render(r.jsx(h.StrictMode,{children:r.jsx(uv,{client:Jx,children:r.jsx(d1,{children:r.jsx(cx,{children:r.jsx($x,{})})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Rf):Rf()})();