@vizzly-testing/cli 0.14.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +70 -68
- package/dist/commands/doctor.js +30 -34
- package/dist/commands/finalize.js +24 -23
- package/dist/commands/init.js +30 -28
- package/dist/commands/login.js +49 -55
- package/dist/commands/logout.js +14 -19
- package/dist/commands/project.js +83 -103
- package/dist/commands/run.js +77 -89
- package/dist/commands/status.js +48 -49
- package/dist/commands/tdd-daemon.js +90 -86
- package/dist/commands/tdd.js +59 -88
- package/dist/commands/upload.js +57 -57
- package/dist/commands/whoami.js +40 -45
- package/dist/index.js +2 -5
- package/dist/plugin-loader.js +15 -17
- package/dist/reporter/reporter-bundle.css +1 -1
- package/dist/reporter/reporter-bundle.iife.js +74 -41
- package/dist/sdk/index.js +36 -45
- package/dist/server/handlers/api-handler.js +14 -15
- package/dist/server/handlers/tdd-handler.js +34 -37
- package/dist/server/http-server.js +75 -869
- package/dist/server/middleware/cors.js +22 -0
- package/dist/server/middleware/json-parser.js +35 -0
- package/dist/server/middleware/response.js +79 -0
- package/dist/server/routers/assets.js +91 -0
- package/dist/server/routers/auth.js +144 -0
- package/dist/server/routers/baseline.js +163 -0
- package/dist/server/routers/cloud-proxy.js +146 -0
- package/dist/server/routers/config.js +126 -0
- package/dist/server/routers/dashboard.js +130 -0
- package/dist/server/routers/health.js +61 -0
- package/dist/server/routers/projects.js +168 -0
- package/dist/server/routers/screenshot.js +86 -0
- package/dist/services/auth-service.js +1 -1
- package/dist/services/build-manager.js +13 -40
- package/dist/services/config-service.js +2 -4
- package/dist/services/html-report-generator.js +6 -5
- package/dist/services/index.js +64 -0
- package/dist/services/project-service.js +121 -40
- package/dist/services/screenshot-server.js +9 -9
- package/dist/services/server-manager.js +11 -18
- package/dist/services/static-report-generator.js +3 -4
- package/dist/services/tdd-service.js +246 -103
- package/dist/services/test-runner.js +24 -25
- package/dist/services/uploader.js +5 -4
- package/dist/types/commands/init.d.ts +1 -2
- package/dist/types/index.d.ts +2 -3
- package/dist/types/plugin-loader.d.ts +1 -2
- package/dist/types/reporter/src/api/client.d.ts +178 -0
- package/dist/types/reporter/src/components/app-router.d.ts +1 -3
- package/dist/types/reporter/src/components/code-block.d.ts +4 -0
- package/dist/types/reporter/src/components/comparison/comparison-modes/onion-skin-mode.d.ts +10 -0
- package/dist/types/reporter/src/components/comparison/comparison-modes/overlay-mode.d.ts +11 -0
- package/dist/types/reporter/src/components/comparison/comparison-modes/shared/base-comparison-mode.d.ts +14 -0
- package/dist/types/reporter/src/components/comparison/comparison-modes/shared/image-renderer.d.ts +30 -0
- package/dist/types/reporter/src/components/comparison/comparison-modes/toggle-view.d.ts +8 -0
- package/dist/types/reporter/src/components/comparison/comparison-viewer.d.ts +4 -0
- package/dist/types/reporter/src/components/comparison/screenshot-display.d.ts +16 -0
- package/dist/types/reporter/src/components/design-system/alert.d.ts +9 -0
- package/dist/types/reporter/src/components/design-system/badge.d.ts +17 -0
- package/dist/types/reporter/src/components/design-system/button.d.ts +19 -0
- package/dist/types/reporter/src/components/design-system/card.d.ts +31 -0
- package/dist/types/reporter/src/components/design-system/empty-state.d.ts +13 -0
- package/dist/types/reporter/src/components/design-system/form-controls.d.ts +44 -0
- package/dist/types/reporter/src/components/design-system/health-ring.d.ts +7 -0
- package/dist/types/reporter/src/components/design-system/index.d.ts +11 -0
- package/dist/types/reporter/src/components/design-system/modal.d.ts +10 -0
- package/dist/types/reporter/src/components/design-system/skeleton.d.ts +19 -0
- package/dist/types/reporter/src/components/design-system/spinner.d.ts +10 -0
- package/dist/types/reporter/src/components/design-system/tabs.d.ts +13 -0
- package/dist/types/reporter/src/components/layout/header.d.ts +5 -0
- package/dist/types/reporter/src/components/layout/index.d.ts +2 -0
- package/dist/types/reporter/src/components/layout/layout.d.ts +6 -0
- package/dist/types/reporter/src/components/views/builds-view.d.ts +1 -0
- package/dist/types/reporter/src/components/views/comparison-detail-view.d.ts +1 -4
- package/dist/types/reporter/src/components/views/comparisons-view.d.ts +1 -6
- package/dist/types/reporter/src/components/views/stats-view.d.ts +1 -6
- package/dist/types/reporter/src/components/waiting-for-screenshots.d.ts +1 -0
- package/dist/types/reporter/src/hooks/queries/use-auth-queries.d.ts +15 -0
- package/dist/types/reporter/src/hooks/queries/use-cloud-queries.d.ts +6 -0
- package/dist/types/reporter/src/hooks/queries/use-config-queries.d.ts +6 -0
- package/dist/types/reporter/src/hooks/queries/use-tdd-queries.d.ts +9 -0
- package/dist/types/reporter/src/lib/query-client.d.ts +2 -0
- package/dist/types/reporter/src/lib/query-keys.d.ts +13 -0
- package/dist/types/sdk/index.d.ts +2 -4
- package/dist/types/server/handlers/tdd-handler.d.ts +2 -0
- package/dist/types/server/http-server.d.ts +1 -1
- package/dist/types/server/middleware/cors.d.ts +11 -0
- package/dist/types/server/middleware/json-parser.d.ts +10 -0
- package/dist/types/server/middleware/response.d.ts +50 -0
- package/dist/types/server/routers/assets.d.ts +6 -0
- package/dist/types/server/routers/auth.d.ts +9 -0
- package/dist/types/server/routers/baseline.d.ts +13 -0
- package/dist/types/server/routers/cloud-proxy.d.ts +11 -0
- package/dist/types/server/routers/config.d.ts +9 -0
- package/dist/types/server/routers/dashboard.d.ts +6 -0
- package/dist/types/server/routers/health.d.ts +11 -0
- package/dist/types/server/routers/projects.d.ts +9 -0
- package/dist/types/server/routers/screenshot.d.ts +11 -0
- package/dist/types/services/build-manager.d.ts +4 -3
- package/dist/types/services/config-service.d.ts +2 -3
- package/dist/types/services/index.d.ts +7 -0
- package/dist/types/services/project-service.d.ts +6 -4
- package/dist/types/services/screenshot-server.d.ts +5 -5
- package/dist/types/services/server-manager.d.ts +5 -3
- package/dist/types/services/tdd-service.d.ts +12 -1
- package/dist/types/services/test-runner.d.ts +3 -3
- package/dist/types/utils/output.d.ts +84 -0
- package/dist/utils/config-loader.js +24 -48
- package/dist/utils/global-config.js +2 -17
- package/dist/utils/output.js +445 -0
- package/dist/utils/security.js +3 -4
- package/docs/api-reference.md +0 -1
- package/docs/plugins.md +33 -34
- package/package.json +3 -2
- package/dist/container/index.js +0 -215
- package/dist/services/base-service.js +0 -154
- package/dist/types/container/index.d.ts +0 -59
- package/dist/types/reporter/src/components/comparison/viewer-modes/onion-viewer.d.ts +0 -3
- package/dist/types/reporter/src/components/comparison/viewer-modes/overlay-viewer.d.ts +0 -3
- package/dist/types/reporter/src/components/comparison/viewer-modes/side-by-side-viewer.d.ts +0 -3
- package/dist/types/reporter/src/components/comparison/viewer-modes/toggle-viewer.d.ts +0 -3
- package/dist/types/reporter/src/components/dashboard/dashboard-header.d.ts +0 -5
- package/dist/types/reporter/src/components/dashboard/dashboard-stats.d.ts +0 -4
- package/dist/types/reporter/src/components/dashboard/empty-state.d.ts +0 -8
- package/dist/types/reporter/src/components/ui/form-field.d.ts +0 -16
- package/dist/types/reporter/src/components/ui/status-badge.d.ts +0 -5
- package/dist/types/reporter/src/hooks/use-auth.d.ts +0 -10
- package/dist/types/reporter/src/hooks/use-baseline-actions.d.ts +0 -5
- package/dist/types/reporter/src/hooks/use-config.d.ts +0 -9
- package/dist/types/reporter/src/hooks/use-projects.d.ts +0 -10
- package/dist/types/reporter/src/hooks/use-report-data.d.ts +0 -7
- package/dist/types/reporter/src/hooks/use-vizzly-api.d.ts +0 -9
- package/dist/types/services/base-service.d.ts +0 -71
- package/dist/types/utils/console-ui.d.ts +0 -61
- package/dist/types/utils/logger-factory.d.ts +0 -26
- package/dist/types/utils/logger.d.ts +0 -79
- package/dist/utils/console-ui.js +0 -241
- package/dist/utils/logger-factory.js +0 -76
- package/dist/utils/logger.js +0 -231
|
@@ -1,47 +1,80 @@
|
|
|
1
|
-
(function(){"use strict";function j0(s,o){for(var d=0;d<o.length;d++){const f=o[d];if(typeof f!="string"&&!Array.isArray(f)){for(const T in f)if(T!=="default"&&!(T in s)){const w=Object.getOwnPropertyDescriptor(f,T);w&&Object.defineProperty(s,T,w.get?w:{enumerable:!0,get:()=>f[T]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}function Hs(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ni={exports:{}},Ua={};var Ls;function S0(){if(Ls)return Ua;Ls=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(f,T,w){var E=null;if(w!==void 0&&(E=""+w),T.key!==void 0&&(E=""+T.key),"key"in T){w={};for(var C in T)C!=="key"&&(w[C]=T[C])}else w=T;return T=w.ref,{$$typeof:s,type:f,key:E,ref:T!==void 0?T:null,props:w}}return Ua.Fragment=o,Ua.jsx=d,Ua.jsxs=d,Ua}var Ys;function N0(){return Ys||(Ys=1,ni.exports=S0()),ni.exports}var i=N0(),ui={exports:{}},W={};var qs;function E0(){if(qs)return W;qs=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),O=Symbol.iterator;function Z(v){return v===null||typeof v!="object"?null:(v=O&&v[O]||v["@@iterator"],typeof v=="function"?v:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,q={};function L(v,U,G){this.props=v,this.context=U,this.refs=q,this.updater=G||B}L.prototype.isReactComponent={},L.prototype.setState=function(v,U){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,U,"setState")},L.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ee(){}ee.prototype=L.prototype;function oe(v,U,G){this.props=v,this.context=U,this.refs=q,this.updater=G||B}var Re=oe.prototype=new ee;Re.constructor=oe,H(Re,L.prototype),Re.isPureReactComponent=!0;var Ce=Array.isArray;function je(){}var X={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function Ge(v,U,G){var V=G.ref;return{$$typeof:s,type:v,key:U,ref:V!==void 0?V:null,props:G}}function nt(v,U){return Ge(v.type,U,v.props)}function Je(v){return typeof v=="object"&&v!==null&&v.$$typeof===s}function Ae(v){var U={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(G){return U[G]})}var ut=/\/+/g;function At(v,U){return typeof v=="object"&&v!==null&&v.key!=null?Ae(""+v.key):U.toString(36)}function we(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(je,je):(v.status="pending",v.then(function(U){v.status==="pending"&&(v.status="fulfilled",v.value=U)},function(U){v.status==="pending"&&(v.status="rejected",v.reason=U)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function z(v,U,G,V,F){var te=typeof v;(te==="undefined"||te==="boolean")&&(v=null);var de=!1;if(v===null)de=!0;else switch(te){case"bigint":case"string":case"number":de=!0;break;case"object":switch(v.$$typeof){case s:case o:de=!0;break;case D:return de=v._init,z(de(v._payload),U,G,V,F)}}if(de)return F=F(v),de=V===""?"."+At(v,0):V,Ce(F)?(G="",de!=null&&(G=de.replace(ut,"$&/")+"/"),z(F,U,G,"",function(qa){return qa})):F!=null&&(Je(F)&&(F=nt(F,G+(F.key==null||v&&v.key===F.key?"":(""+F.key).replace(ut,"$&/")+"/")+de)),U.push(F)),1;de=0;var $e=V===""?".":V+":";if(Ce(v))for(var Oe=0;Oe<v.length;Oe++)V=v[Oe],te=$e+At(V,Oe),de+=z(V,U,G,te,F);else if(Oe=Z(v),typeof Oe=="function")for(v=Oe.call(v),Oe=0;!(V=v.next()).done;)V=V.value,te=$e+At(V,Oe++),de+=z(V,U,G,te,F);else if(te==="object"){if(typeof v.then=="function")return z(we(v),U,G,V,F);throw U=String(v),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return de}function Y(v,U,G){if(v==null)return v;var V=[],F=0;return z(v,V,"","",function(te){return U.call(G,te,F++)}),V}function $(v){if(v._status===-1){var U=v._result;U=U(),U.then(function(G){(v._status===0||v._status===-1)&&(v._status=1,v._result=G)},function(G){(v._status===0||v._status===-1)&&(v._status=2,v._result=G)}),v._status===-1&&(v._status=0,v._result=U)}if(v._status===1)return v._result.default;throw v._result}var ge=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},be={map:Y,forEach:function(v,U,G){Y(v,function(){U.apply(this,arguments)},G)},count:function(v){var U=0;return Y(v,function(){U++}),U},toArray:function(v){return Y(v,function(U){return U})||[]},only:function(v){if(!Je(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return W.Activity=b,W.Children=be,W.Component=L,W.Fragment=d,W.Profiler=T,W.PureComponent=oe,W.StrictMode=f,W.Suspense=S,W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,W.__COMPILER_RUNTIME={__proto__:null,c:function(v){return X.H.useMemoCache(v)}},W.cache=function(v){return function(){return v.apply(null,arguments)}},W.cacheSignal=function(){return null},W.cloneElement=function(v,U,G){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var V=H({},v.props),F=v.key;if(U!=null)for(te in U.key!==void 0&&(F=""+U.key),U)!ce.call(U,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&U.ref===void 0||(V[te]=U[te]);var te=arguments.length-2;if(te===1)V.children=G;else if(1<te){for(var de=Array(te),$e=0;$e<te;$e++)de[$e]=arguments[$e+2];V.children=de}return Ge(v.type,F,V)},W.createContext=function(v){return v={$$typeof:E,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:w,_context:v},v},W.createElement=function(v,U,G){var V,F={},te=null;if(U!=null)for(V in U.key!==void 0&&(te=""+U.key),U)ce.call(U,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(F[V]=U[V]);var de=arguments.length-2;if(de===1)F.children=G;else if(1<de){for(var $e=Array(de),Oe=0;Oe<de;Oe++)$e[Oe]=arguments[Oe+2];F.children=$e}if(v&&v.defaultProps)for(V in de=v.defaultProps,de)F[V]===void 0&&(F[V]=de[V]);return Ge(v,te,F)},W.createRef=function(){return{current:null}},W.forwardRef=function(v){return{$$typeof:C,render:v}},W.isValidElement=Je,W.lazy=function(v){return{$$typeof:D,_payload:{_status:-1,_result:v},_init:$}},W.memo=function(v,U){return{$$typeof:x,type:v,compare:U===void 0?null:U}},W.startTransition=function(v){var U=X.T,G={};X.T=G;try{var V=v(),F=X.S;F!==null&&F(G,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(je,ge)}catch(te){ge(te)}finally{U!==null&&G.types!==null&&(U.types=G.types),X.T=U}},W.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},W.use=function(v){return X.H.use(v)},W.useActionState=function(v,U,G){return X.H.useActionState(v,U,G)},W.useCallback=function(v,U){return X.H.useCallback(v,U)},W.useContext=function(v){return X.H.useContext(v)},W.useDebugValue=function(){},W.useDeferredValue=function(v,U){return X.H.useDeferredValue(v,U)},W.useEffect=function(v,U){return X.H.useEffect(v,U)},W.useEffectEvent=function(v){return X.H.useEffectEvent(v)},W.useId=function(){return X.H.useId()},W.useImperativeHandle=function(v,U,G){return X.H.useImperativeHandle(v,U,G)},W.useInsertionEffect=function(v,U){return X.H.useInsertionEffect(v,U)},W.useLayoutEffect=function(v,U){return X.H.useLayoutEffect(v,U)},W.useMemo=function(v,U){return X.H.useMemo(v,U)},W.useOptimistic=function(v,U){return X.H.useOptimistic(v,U)},W.useReducer=function(v,U,G){return X.H.useReducer(v,U,G)},W.useRef=function(v){return X.H.useRef(v)},W.useState=function(v){return X.H.useState(v)},W.useSyncExternalStore=function(v,U,G){return X.H.useSyncExternalStore(v,U,G)},W.useTransition=function(){return X.H.useTransition()},W.version="19.2.0",W}var Gs;function Dn(){return Gs||(Gs=1,ui.exports=E0()),ui.exports}var h=Dn();const w0=j0({__proto__:null,default:Hs(h)},[h]);var ii={exports:{}},Ba={},ci={exports:{}},si={};var Zs;function A0(){return Zs||(Zs=1,function(s){function o(z,Y){var $=z.length;z.push(Y);e:for(;0<$;){var ge=$-1>>>1,be=z[ge];if(0<T(be,Y))z[ge]=Y,z[$]=be,$=ge;else break e}}function d(z){return z.length===0?null:z[0]}function f(z){if(z.length===0)return null;var Y=z[0],$=z.pop();if($!==Y){z[0]=$;e:for(var ge=0,be=z.length,v=be>>>1;ge<v;){var U=2*(ge+1)-1,G=z[U],V=U+1,F=z[V];if(0>T(G,$))V<be&&0>T(F,G)?(z[ge]=F,z[V]=$,ge=V):(z[ge]=G,z[U]=$,ge=U);else if(V<be&&0>T(F,$))z[ge]=F,z[V]=$,ge=V;else break e}}return Y}function T(z,Y){var $=z.sortIndex-Y.sortIndex;return $!==0?$:z.id-Y.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;s.unstable_now=function(){return w.now()}}else{var E=Date,C=E.now();s.unstable_now=function(){return E.now()-C}}var S=[],x=[],D=1,b=null,O=3,Z=!1,B=!1,H=!1,q=!1,L=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function Re(z){for(var Y=d(x);Y!==null;){if(Y.callback===null)f(x);else if(Y.startTime<=z)f(x),Y.sortIndex=Y.expirationTime,o(S,Y);else break;Y=d(x)}}function Ce(z){if(H=!1,Re(z),!B)if(d(S)!==null)B=!0,je||(je=!0,Ae());else{var Y=d(x);Y!==null&&we(Ce,Y.startTime-z)}}var je=!1,X=-1,ce=5,Ge=-1;function nt(){return q?!0:!(s.unstable_now()-Ge<ce)}function Je(){if(q=!1,je){var z=s.unstable_now();Ge=z;var Y=!0;try{e:{B=!1,H&&(H=!1,ee(X),X=-1),Z=!0;var $=O;try{t:{for(Re(z),b=d(S);b!==null&&!(b.expirationTime>z&&nt());){var ge=b.callback;if(typeof ge=="function"){b.callback=null,O=b.priorityLevel;var be=ge(b.expirationTime<=z);if(z=s.unstable_now(),typeof be=="function"){b.callback=be,Re(z),Y=!0;break t}b===d(S)&&f(S),Re(z)}else f(S);b=d(S)}if(b!==null)Y=!0;else{var v=d(x);v!==null&&we(Ce,v.startTime-z),Y=!1}}break e}finally{b=null,O=$,Z=!1}Y=void 0}}finally{Y?Ae():je=!1}}}var Ae;if(typeof oe=="function")Ae=function(){oe(Je)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,At=ut.port2;ut.port1.onmessage=Je,Ae=function(){At.postMessage(null)}}else Ae=function(){L(Je,0)};function we(z,Y){X=L(function(){z(s.unstable_now())},Y)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(z){z.callback=null},s.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<z?Math.floor(1e3/z):5},s.unstable_getCurrentPriorityLevel=function(){return O},s.unstable_next=function(z){switch(O){case 1:case 2:case 3:var Y=3;break;default:Y=O}var $=O;O=Y;try{return z()}finally{O=$}},s.unstable_requestPaint=function(){q=!0},s.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=O;O=z;try{return Y()}finally{O=$}},s.unstable_scheduleCallback=function(z,Y,$){var ge=s.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ge+$:ge):$=ge,z){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=$+be,z={id:D++,callback:Y,priorityLevel:z,startTime:$,expirationTime:be,sortIndex:-1},$>ge?(z.sortIndex=$,o(x,z),d(S)===null&&z===d(x)&&(H?(ee(X),X=-1):H=!0,we(Ce,$-ge))):(z.sortIndex=be,o(S,z),B||Z||(B=!0,je||(je=!0,Ae()))),z},s.unstable_shouldYield=nt,s.unstable_wrapCallback=function(z){var Y=O;return function(){var $=O;O=Y;try{return z.apply(this,arguments)}finally{O=$}}}}(si)),si}var Xs;function T0(){return Xs||(Xs=1,ci.exports=A0()),ci.exports}var ri={exports:{}},Ke={};var Qs;function z0(){if(Qs)return Ke;Qs=1;var s=Dn();function o(S){var x="https://react.dev/errors/"+S;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)x+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+S+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var f={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},T=Symbol.for("react.portal");function w(S,x,D){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:b==null?null:""+b,children:S,containerInfo:x,implementation:D}}var E=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function C(S,x){if(S==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ke.createPortal=function(S,x){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return w(S,x,null,D)},Ke.flushSync=function(S){var x=E.T,D=f.p;try{if(E.T=null,f.p=2,S)return S()}finally{E.T=x,f.p=D,f.d.f()}},Ke.preconnect=function(S,x){typeof S=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,f.d.C(S,x))},Ke.prefetchDNS=function(S){typeof S=="string"&&f.d.D(S)},Ke.preinit=function(S,x){if(typeof S=="string"&&x&&typeof x.as=="string"){var D=x.as,b=C(D,x.crossOrigin),O=typeof x.integrity=="string"?x.integrity:void 0,Z=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;D==="style"?f.d.S(S,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:b,integrity:O,fetchPriority:Z}):D==="script"&&f.d.X(S,{crossOrigin:b,integrity:O,fetchPriority:Z,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Ke.preinitModule=function(S,x){if(typeof S=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var D=C(x.as,x.crossOrigin);f.d.M(S,{crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&f.d.M(S)},Ke.preload=function(S,x){if(typeof S=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var D=x.as,b=C(D,x.crossOrigin);f.d.L(S,D,{crossOrigin:b,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})}},Ke.preloadModule=function(S,x){if(typeof S=="string")if(x){var D=C(x.as,x.crossOrigin);f.d.m(S,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else f.d.m(S)},Ke.requestFormReset=function(S){f.d.r(S)},Ke.unstable_batchedUpdates=function(S,x){return S(x)},Ke.useFormState=function(S,x,D){return E.H.useFormState(S,x,D)},Ke.useFormStatus=function(){return E.H.useHostTransitionStatus()},Ke.version="19.2.0",Ke}var Vs;function C0(){if(Vs)return ri.exports;Vs=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),ri.exports=z0(),ri.exports}var ks;function O0(){if(ks)return Ba;ks=1;var s=T0(),o=Dn(),d=C0();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 T(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function w(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function E(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 C(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 S(e){if(w(e)!==e)throw Error(f(188))}function x(e){var t=e.alternate;if(!t){if(t=w(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(f(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,r=n.child;r;){if(r===l){c=!0,l=n,a=u;break}if(r===a){c=!0,a=n,l=u;break}r=r.sibling}if(!c){for(r=u.child;r;){if(r===l){c=!0,l=u,a=n;break}if(r===a){c=!0,a=u,l=n;break}r=r.sibling}if(!c)throw Error(f(189))}}if(l.alternate!==a)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?e:t}function D(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=D(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,O=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),nt=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var ut=Symbol.for("react.client.reference");function At(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ut?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case L:return"Profiler";case q:return"StrictMode";case Ce:return"Suspense";case je:return"SuspenseList";case Ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case oe:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case Re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:At(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return At(e(t))}catch{}}return null}var we=Array.isArray,z=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ge=[],be=-1;function v(e){return{current:e}}function U(e){0>be||(e.current=ge[be],ge[be]=null,be--)}function G(e,t){be++,ge[be]=e.current,e.current=t}var V=v(null),F=v(null),te=v(null),de=v(null);function $e(e,t){switch(G(te,t),G(F,e),G(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=Vd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(V),G(V,e)}function Oe(){U(V),U(F),U(te)}function qa(e){e.memoizedState!==null&&G(de,e);var t=V.current,l=Vd(t,e.type);t!==l&&(G(F,e),G(V,l))}function qn(e){F.current===e&&(U(V),U(F)),de.current===e&&(U(de),On._currentValue=$)}var bi,yr;function Cl(e){if(bi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);bi=t&&t[1]||"",yr=-1<l.stack.indexOf(`
|
|
1
|
+
(function(){"use strict";function V0(n,u){for(var c=0;c<u.length;c++){const o=u[c];if(typeof o!="string"&&!Array.isArray(o)){for(const h in o)if(h!=="default"&&!(h in n)){const g=Object.getOwnPropertyDescriptor(o,h);g&&Object.defineProperty(n,h,g.get?g:{enumerable:!0,get:()=>o[h]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Dc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qs={exports:{}},an={};var _c;function Z0(){if(_c)return an;_c=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(o,h,g){var v=null;if(g!==void 0&&(v=""+g),h.key!==void 0&&(v=""+h.key),"key"in h){g={};for(var y in h)y!=="key"&&(g[y]=h[y])}else g=h;return h=g.ref,{$$typeof:n,type:o,key:v,ref:h!==void 0?h:null,props:g}}return an.Fragment=u,an.jsx=c,an.jsxs=c,an}var Uc;function X0(){return Uc||(Uc=1,Qs.exports=Z0()),Qs.exports}var r=X0(),ks={exports:{}},P={};var Lc;function K0(){if(Lc)return P;Lc=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),B=Symbol.iterator;function V(S){return S===null||typeof S!="object"?null:(S=B&&S[B]||S["@@iterator"],typeof S=="function"?S:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function L(S,U,Y){this.props=S,this.context=U,this.refs=q,this.updater=Y||H}L.prototype.isReactComponent={},L.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")},L.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function $(){}$.prototype=L.prototype;function k(S,U,Y){this.props=S,this.context=U,this.refs=q,this.updater=Y||H}var ne=k.prototype=new $;ne.constructor=k,M(ne,L.prototype),ne.isPureReactComponent=!0;var xe=Array.isArray;function de(){}var K={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ve(S,U,Y){var Z=Y.ref;return{$$typeof:n,type:S,key:U,ref:Z!==void 0?Z:null,props:Y}}function Me(S,U){return ve(S.type,U,S.props)}function he(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function J(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return U[Y]})}var oe=/\/+/g;function De(S,U){return typeof S=="object"&&S!==null&&S.key!=null?J(""+S.key):U.toString(36)}function He(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(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,Y,Z,te){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(ie){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case u:be=!0;break;case N:return be=S._init,T(be(S._payload),U,Y,Z,te)}}if(be)return te=te(S),be=Z===""?"."+De(S,0):Z,xe(te)?(Y="",be!=null&&(Y=be.replace(oe,"$&/")+"/"),T(te,U,Y,"",function(mn){return mn})):te!=null&&(he(te)&&(te=Me(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(oe,"$&/")+"/")+be)),U.push(te)),1;be=0;var it=Z===""?".":Z+":";if(xe(S))for(var Le=0;Le<S.length;Le++)Z=S[Le],ie=it+De(Z,Le),be+=T(Z,U,Y,ie,te);else if(Le=V(S),typeof Le=="function")for(S=Le.call(S),Le=0;!(Z=S.next()).done;)Z=Z.value,ie=it+De(Z,Le++),be+=T(Z,U,Y,ie,te);else if(ie==="object"){if(typeof S.then=="function")return T(He(S),U,Y,Z,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 be}function Q(S,U,Y){if(S==null)return S;var Z=[],te=0;return T(S,Z,"","",function(ie){return U.call(Y,ie,te++)}),Z}function I(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var pe=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)},Ce={map:Q,forEach:function(S,U,Y){Q(S,function(){U.apply(this,arguments)},Y)},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(!he(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return P.Activity=A,P.Children=Ce,P.Component=L,P.Fragment=c,P.Profiler=h,P.PureComponent=k,P.StrictMode=o,P.Suspense=x,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,P.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},P.cache=function(S){return function(){return S.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(S,U,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=M({},S.props),te=S.key;if(U!=null)for(ie in U.key!==void 0&&(te=""+U.key),U)!ee.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(Z[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)Z.children=Y;else if(1<ie){for(var be=Array(ie),it=0;it<ie;it++)be[it]=arguments[it+2];Z.children=be}return ve(S.type,te,Z)},P.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:g,_context:S},S},P.createElement=function(S,U,Y){var Z,te={},ie=null;if(U!=null)for(Z in U.key!==void 0&&(ie=""+U.key),U)ee.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=U[Z]);var be=arguments.length-2;if(be===1)te.children=Y;else if(1<be){for(var it=Array(be),Le=0;Le<be;Le++)it[Le]=arguments[Le+2];te.children=it}if(S&&S.defaultProps)for(Z in be=S.defaultProps,be)te[Z]===void 0&&(te[Z]=be[Z]);return ve(S,ie,te)},P.createRef=function(){return{current:null}},P.forwardRef=function(S){return{$$typeof:y,render:S}},P.isValidElement=he,P.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:I}},P.memo=function(S,U){return{$$typeof:p,type:S,compare:U===void 0?null:U}},P.startTransition=function(S){var U=K.T,Y={};K.T=Y;try{var Z=S(),te=K.S;te!==null&&te(Y,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(de,pe)}catch(ie){pe(ie)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),K.T=U}},P.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},P.use=function(S){return K.H.use(S)},P.useActionState=function(S,U,Y){return K.H.useActionState(S,U,Y)},P.useCallback=function(S,U){return K.H.useCallback(S,U)},P.useContext=function(S){return K.H.useContext(S)},P.useDebugValue=function(){},P.useDeferredValue=function(S,U){return K.H.useDeferredValue(S,U)},P.useEffect=function(S,U){return K.H.useEffect(S,U)},P.useEffectEvent=function(S){return K.H.useEffectEvent(S)},P.useId=function(){return K.H.useId()},P.useImperativeHandle=function(S,U,Y){return K.H.useImperativeHandle(S,U,Y)},P.useInsertionEffect=function(S,U){return K.H.useInsertionEffect(S,U)},P.useLayoutEffect=function(S,U){return K.H.useLayoutEffect(S,U)},P.useMemo=function(S,U){return K.H.useMemo(S,U)},P.useOptimistic=function(S,U){return K.H.useOptimistic(S,U)},P.useReducer=function(S,U,Y){return K.H.useReducer(S,U,Y)},P.useRef=function(S){return K.H.useRef(S)},P.useState=function(S){return K.H.useState(S)},P.useSyncExternalStore=function(S,U,Y){return K.H.useSyncExternalStore(S,U,Y)},P.useTransition=function(){return K.H.useTransition()},P.version="19.2.0",P}var Bc;function ui(){return Bc||(Bc=1,ks.exports=K0()),ks.exports}var m=ui();const J0=V0({__proto__:null,default:Dc(m)},[m]);var Ys={exports:{}},nn={},Gs={exports:{}},Vs={};var qc;function $0(){return qc||(qc=1,function(n){function u(T,Q){var I=T.length;T.push(Q);e:for(;0<I;){var pe=I-1>>>1,Ce=T[pe];if(0<h(Ce,Q))T[pe]=Q,T[I]=Ce,I=pe;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],I=T.pop();if(I!==Q){T[0]=I;e:for(var pe=0,Ce=T.length,S=Ce>>>1;pe<S;){var U=2*(pe+1)-1,Y=T[U],Z=U+1,te=T[Z];if(0>h(Y,I))Z<Ce&&0>h(te,Y)?(T[pe]=te,T[Z]=I,pe=Z):(T[pe]=Y,T[U]=I,pe=U);else if(Z<Ce&&0>h(te,I))T[pe]=te,T[Z]=I,pe=Z;else break e}}return Q}function h(T,Q){var I=T.sortIndex-Q.sortIndex;return I!==0?I:T.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var v=Date,y=v.now();n.unstable_now=function(){return v.now()-y}}var x=[],p=[],N=1,A=null,B=3,V=!1,H=!1,M=!1,q=!1,L=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var Q=c(p);Q!==null;){if(Q.callback===null)o(p);else if(Q.startTime<=T)o(p),Q.sortIndex=Q.expirationTime,u(x,Q);else break;Q=c(p)}}function xe(T){if(M=!1,ne(T),!H)if(c(x)!==null)H=!0,de||(de=!0,J());else{var Q=c(p);Q!==null&&He(xe,Q.startTime-T)}}var de=!1,K=-1,ee=5,ve=-1;function Me(){return q?!0:!(n.unstable_now()-ve<ee)}function he(){if(q=!1,de){var T=n.unstable_now();ve=T;var Q=!0;try{e:{H=!1,M&&(M=!1,$(K),K=-1),V=!0;var I=B;try{t:{for(ne(T),A=c(x);A!==null&&!(A.expirationTime>T&&Me());){var pe=A.callback;if(typeof pe=="function"){A.callback=null,B=A.priorityLevel;var Ce=pe(A.expirationTime<=T);if(T=n.unstable_now(),typeof Ce=="function"){A.callback=Ce,ne(T),Q=!0;break t}A===c(x)&&o(x),ne(T)}else o(x);A=c(x)}if(A!==null)Q=!0;else{var S=c(p);S!==null&&He(xe,S.startTime-T),Q=!1}}break e}finally{A=null,B=I,V=!1}Q=void 0}}finally{Q?J():de=!1}}}var J;if(typeof k=="function")J=function(){k(he)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,De=oe.port2;oe.port1.onmessage=he,J=function(){De.postMessage(null)}}else J=function(){L(he,0)};function He(T,Q){K=L(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"):ee=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return B},n.unstable_next=function(T){switch(B){case 1:case 2:case 3:var Q=3;break;default:Q=B}var I=B;B=Q;try{return T()}finally{B=I}},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 I=B;B=T;try{return Q()}finally{B=I}},n.unstable_scheduleCallback=function(T,Q,I){var pe=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?pe+I:pe):I=pe,T){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=I+Ce,T={id:N++,callback:Q,priorityLevel:T,startTime:I,expirationTime:Ce,sortIndex:-1},I>pe?(T.sortIndex=I,u(p,T),c(x)===null&&T===c(p)&&(M?($(K),K=-1):M=!0,He(xe,I-pe))):(T.sortIndex=Ce,u(x,T),H||V||(H=!0,de||(de=!0,J()))),T},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(T){var Q=B;return function(){var I=B;B=Q;try{return T.apply(this,arguments)}finally{B=I}}}}(Vs)),Vs}var Hc;function F0(){return Hc||(Hc=1,Gs.exports=$0()),Gs.exports}var Zs={exports:{}},tt={};var Qc;function W0(){if(Qc)return tt;Qc=1;var n=ui();function u(x){var p="https://react.dev/errors/"+x;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)p+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+x+"; visit "+p+" 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(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function g(x,p,N){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:A==null?null:""+A,children:x,containerInfo:p,implementation:N}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(x,p){if(x==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(x,p){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return g(x,p,null,N)},tt.flushSync=function(x){var p=v.T,N=o.p;try{if(v.T=null,o.p=2,x)return x()}finally{v.T=p,o.p=N,o.d.f()}},tt.preconnect=function(x,p){typeof x=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(x,p))},tt.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},tt.preinit=function(x,p){if(typeof x=="string"&&p&&typeof p.as=="string"){var N=p.as,A=y(N,p.crossOrigin),B=typeof p.integrity=="string"?p.integrity:void 0,V=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;N==="style"?o.d.S(x,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:A,integrity:B,fetchPriority:V}):N==="script"&&o.d.X(x,{crossOrigin:A,integrity:B,fetchPriority:V,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(x,p){if(typeof x=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var N=y(p.as,p.crossOrigin);o.d.M(x,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(x)},tt.preload=function(x,p){if(typeof x=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var N=p.as,A=y(N,p.crossOrigin);o.d.L(x,N,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(x,p){if(typeof x=="string")if(p){var N=y(p.as,p.crossOrigin);o.d.m(x,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(x)},tt.requestFormReset=function(x){o.d.r(x)},tt.unstable_batchedUpdates=function(x,p){return x(p)},tt.useFormState=function(x,p,N){return v.H.useFormState(x,p,N)},tt.useFormStatus=function(){return v.H.useHostTransitionStatus()},tt.version="19.2.0",tt}var kc;function Yc(){if(kc)return Zs.exports;kc=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(u){console.error(u)}}return n(),Zs.exports=W0(),Zs.exports}var Gc;function I0(){if(Gc)return nn;Gc=1;var n=F0(),u=ui(),c=Yc();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l: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 y(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 x(e){if(g(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===l)return x(i),e;if(s===a)return x(i),t;s=s.sibling}throw Error(o(188))}if(l.return!==a.return)l=i,a=s;else{for(var f=!1,d=i.child;d;){if(d===l){f=!0,l=i,a=s;break}if(d===a){f=!0,a=i,l=s;break}d=d.sibling}if(!f){for(d=s.child;d;){if(d===l){f=!0,l=s,a=i;break}if(d===a){f=!0,a=s,l=i;break}d=d.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,B=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),k=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case L:return"Profiler";case q:return"StrictMode";case xe:return"Suspense";case de:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case k:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var He=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},pe=[],Ce=-1;function S(e){return{current:e}}function U(e){0>Ce||(e.current=pe[Ce],pe[Ce]=null,Ce--)}function Y(e,t){Ce++,pe[Ce]=e.current,e.current=t}var Z=S(null),te=S(null),ie=S(null),be=S(null);function it(e,t){switch(Y(ie,t),Y(te,e),Y(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?h0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=h0(t),e=m0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),Y(Z,e)}function Le(){U(Z),U(te),U(ie)}function mn(e){e.memoizedState!==null&&Y(be,e);var t=Z.current,l=m0(t,e.type);t!==l&&(Y(te,e),Y(Z,l))}function Si(e){te.current===e&&(U(Z),U(te)),be.current===e&&(U(be),ai._currentValue=I)}var gu,Yo;function Jl(e){if(gu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gu=t&&t[1]||"",Yo=-1<l.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(
|
|
6
|
-
`+
|
|
3
|
+
`+gu+e+Yo}var vu=!1;function yu(e,t){if(!e||vu)return"";vu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){var z=O}Reflect.construct(e,[],_)}else{try{_.call()}catch(O){z=O}e.call(_.prototype)}}else{try{throw Error()}catch(O){z=O}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),f=s[0],d=s[1];if(f&&d){var b=f.split(`
|
|
4
|
+
`),C=d.split(`
|
|
5
|
+
`);for(i=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===b.length||i===C.length)for(a=b.length-1,i=C.length-1;1<=a&&0<=i&&b[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(b[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||b[a]!==C[i]){var R=`
|
|
6
|
+
`+b[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=a&&0<=i);break}}}finally{vu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jl(l):""}function b1(e,t){switch(e.tag){case 26:case 27:case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return e.child!==t&&t!==null?Jl("Suspense Fallback"):Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return yu(e.type,!1);case 11:return yu(e.type.render,!1);case 1:return yu(e.type,!0);case 31:return Jl("Activity");default:return""}}function Go(e){try{var t="",l=null;do t+=b1(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
7
|
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Si=Object.prototype.hasOwnProperty,Ni=s.unstable_scheduleCallback,Ei=s.unstable_cancelCallback,Oh=s.unstable_shouldYield,Mh=s.unstable_requestPaint,it=s.unstable_now,_h=s.unstable_getCurrentPriorityLevel,pr=s.unstable_ImmediatePriority,jr=s.unstable_UserBlockingPriority,Gn=s.unstable_NormalPriority,Rh=s.unstable_LowPriority,Sr=s.unstable_IdlePriority,Dh=s.log,Uh=s.unstable_setDisableYieldValue,Ga=null,ct=null;function ll(e){if(typeof Dh=="function"&&Uh(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Ga,e)}catch{}}var st=Math.clz32?Math.clz32:Lh,Bh=Math.log,Hh=Math.LN2;function Lh(e){return e>>>=0,e===0?32:31-(Bh(e)/Hh|0)|0}var Zn=256,Xn=262144,Qn=4194304;function Ol(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 Vn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=a&134217727;return r!==0?(a=r&~u,a!==0?n=Ol(a):(c&=r,c!==0?n=Ol(c):l||(l=r&~e,l!==0&&(n=Ol(l))))):(r=a&~u,r!==0?n=Ol(r):c!==0?n=Ol(c):l||(l=a&~e,l!==0&&(n=Ol(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yh(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 Nr(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function wi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qh(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var r=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=c&~l;0<l;){var M=31-st(l),R=1<<M;r[M]=0,m[M]=-1;var N=j[M];if(N!==null)for(j[M]=null,M=0;M<N.length;M++){var A=N[M];A!==null&&(A.lane&=-536870913)}l&=~R}a!==0&&Er(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Er(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-st(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function wr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-st(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ar(e,t){var l=t&-t;return l=(l&42)!==0?1:Ai(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ai(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 Ti(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tr(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:h0(e.type))}function zr(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var al=Math.random().toString(36).slice(2),Ze="__reactFiber$"+al,Fe="__reactProps$"+al,Fl="__reactContainer$"+al,zi="__reactEvents$"+al,Gh="__reactListeners$"+al,Zh="__reactHandles$"+al,Cr="__reactResources$"+al,Qa="__reactMarker$"+al;function Ci(e){delete e[Ze],delete e[Fe],delete e[zi],delete e[Gh],delete e[Zh]}function Il(e){var t=e[Ze];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Fl]||l[Ze]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Id(e);e!==null;){if(l=e[Ze])return l;e=Id(e)}return t}e=l,l=e.parentNode}return null}function Pl(e){if(e=e[Ze]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function ea(e){var t=e[Cr];return t||(t=e[Cr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Qa]=!0}var Or=new Set,Mr={};function Ml(e,t){ta(e,t),ta(e+"Capture",t)}function ta(e,t){for(Mr[e]=t,e=0;e<t.length;e++)Or.add(t[e])}var Xh=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]*$"),_r={},Rr={};function Qh(e){return Si.call(Rr,e)?!0:Si.call(_r,e)?!1:Xh.test(e)?Rr[e]=!0:(_r[e]=!0,!1)}function kn(e,t,l){if(Qh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Bt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vh(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){if(!e._valueTracker){var t=Dr(e)?"checked":"value";e._valueTracker=Vh(e,t,""+e[t])}}function Ur(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Dr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(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 kh=/[\n"\\]/g;function xt(e){return e.replace(kh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mi(e,t,l,a,n,u,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?_i(e,c,vt(t)):l!=null?_i(e,c,vt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+vt(r):e.removeAttribute("name")}function Br(e,t,l,a,n,u,c,r){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Oi(e);return}l=l!=null?""+vt(l):"",t=t!=null?""+vt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=r?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Oi(e)}function _i(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function la(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+vt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Hr(e,t,l){if(t!=null&&(t=""+vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+vt(l):""}function Lr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(f(92));if(we(a)){if(1<a.length)throw Error(f(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=vt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Oi(e)}function aa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Kh=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 Yr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Kh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qr(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Yr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Yr(e,u,t[u])}function Ri(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 Jh=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"]]),$h=/^[\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 $n(e){return $h.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ht(){}var Di=null;function Ui(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,ua=null;function Gr(e){var t=Pl(e);if(t&&(e=t.stateNode)){var l=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Fe]||null;if(!n)throw Error(f(90));Mi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Ur(a)}break e;case"textarea":Hr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&la(e,!!l.multiple,t,!1)}}}var Bi=!1;function Zr(e,t,l){if(Bi)return e(t,l);Bi=!0;try{var a=e(t);return a}finally{if(Bi=!1,(na!==null||ua!==null)&&(Bu(),na&&(t=na,e=ua,ua=na=null,Gr(t),e)))for(t=0;t<e.length;t++)Gr(e[t])}}function ka(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Fe]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(f(231,t,typeof l));return l}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(Lt)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{Hi=!1}var nl=null,Li=null,Wn=null;function Xr(){if(Wn)return Wn;var e,t=Li,l=t.length,a,n="value"in nl?nl.value:nl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return Wn=n.slice(e,1<a?1-a:void 0)}function Fn(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 In(){return!0}function Qr(){return!1}function Ie(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Qr,this.isPropagationStopped=Qr,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Ie(_l),Ja=b({},_l,{view:0,detail:0}),Wh=Ie(Ja),Yi,qi,$a,eu=b({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zi,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!==$a&&($a&&e.type==="mousemove"?(Yi=e.screenX-$a.screenX,qi=e.screenY-$a.screenY):qi=Yi=0,$a=e),Yi)},movementY:function(e){return"movementY"in e?e.movementY:qi}}),Vr=Ie(eu),Fh=b({},eu,{dataTransfer:0}),Ih=Ie(Fh),Ph=b({},Ja,{relatedTarget:0}),Gi=Ie(Ph),eg=b({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),tg=Ie(eg),lg=b({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ag=Ie(lg),ng=b({},_l,{data:0}),kr=Ie(ng),ug={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ig={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"},cg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cg[e])?!!t[e]:!1}function Zi(){return sg}var rg=b({},Ja,{key:function(e){if(e.key){var t=ug[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ig[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zi,charCode:function(e){return e.type==="keypress"?Fn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fg=Ie(rg),og=b({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kr=Ie(og),dg=b({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zi}),mg=Ie(dg),hg=b({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),gg=Ie(hg),vg=b({},eu,{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}),xg=Ie(vg),yg=b({},_l,{newState:0,oldState:0}),bg=Ie(yg),pg=[9,13,27,32],Xi=Lt&&"CompositionEvent"in window,Wa=null;Lt&&"documentMode"in document&&(Wa=document.documentMode);var jg=Lt&&"TextEvent"in window&&!Wa,Jr=Lt&&(!Xi||Wa&&8<Wa&&11>=Wa),$r=" ",Wr=!1;function Fr(e,t){switch(e){case"keyup":return pg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ir(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function Sg(e,t){switch(e){case"compositionend":return Ir(t);case"keypress":return t.which!==32?null:(Wr=!0,$r);case"textInput":return e=t.data,e===$r&&Wr?null:e;default:return null}}function Ng(e,t){if(ia)return e==="compositionend"||!Xi&&Fr(e,t)?(e=Xr(),Wn=Li=nl=null,ia=!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 Jr&&t.locale!=="ko"?null:t.data;default:return null}}var Eg={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 Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eg[e.type]:t==="textarea"}function ef(e,t,l,a){na?ua?ua.push(a):ua=[a]:na=a,t=Xu(t,"onChange"),0<t.length&&(l=new Pn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Fa=null,Ia=null;function wg(e){Ld(e,0)}function tu(e){var t=Va(e);if(Ur(t))return e}function tf(e,t){if(e==="change")return t}var lf=!1;if(Lt){var Qi;if(Lt){var Vi="oninput"in document;if(!Vi){var af=document.createElement("div");af.setAttribute("oninput","return;"),Vi=typeof af.oninput=="function"}Qi=Vi}else Qi=!1;lf=Qi&&(!document.documentMode||9<document.documentMode)}function nf(){Fa&&(Fa.detachEvent("onpropertychange",uf),Ia=Fa=null)}function uf(e){if(e.propertyName==="value"&&tu(Ia)){var t=[];ef(t,Ia,e,Ui(e)),Zr(wg,t)}}function Ag(e,t,l){e==="focusin"?(nf(),Fa=t,Ia=l,Fa.attachEvent("onpropertychange",uf)):e==="focusout"&&nf()}function Tg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Ia)}function zg(e,t){if(e==="click")return tu(t)}function Cg(e,t){if(e==="input"||e==="change")return tu(t)}function Og(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Og;function Pa(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Si.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sf(e,t){var l=cf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=cf(l)}}function rf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ff(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function ki(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 Mg=Lt&&"documentMode"in document&&11>=document.documentMode,ca=null,Ki=null,en=null,Ji=!1;function of(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ji||ca==null||ca!==Jn(a)||(a=ca,"selectionStart"in a&&ki(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),en&&Pa(en,a)||(en=a,a=Xu(Ki,"onSelect"),0<a.length&&(t=new Pn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ca)))}function Rl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var sa={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},$i={},df={};Lt&&(df=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function Dl(e){if($i[e])return $i[e];if(!sa[e])return e;var t=sa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in df)return $i[e]=t[l];return e}var mf=Dl("animationend"),hf=Dl("animationiteration"),gf=Dl("animationstart"),_g=Dl("transitionrun"),Rg=Dl("transitionstart"),Dg=Dl("transitioncancel"),vf=Dl("transitionend"),xf=new Map,Wi="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(" ");Wi.push("scrollEnd");function Tt(e,t){xf.set(e,t),Ml(t,[e])}var lu=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)},yt=[],ra=0,Fi=0;function au(){for(var e=ra,t=Fi=ra=0;t<e;){var l=yt[t];yt[t++]=null;var a=yt[t];yt[t++]=null;var n=yt[t];yt[t++]=null;var u=yt[t];if(yt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&yf(l,n,u)}}function nu(e,t,l,a){yt[ra++]=e,yt[ra++]=t,yt[ra++]=l,yt[ra++]=a,Fi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ii(e,t,l,a){return nu(e,t,l,a),uu(e)}function Ul(e,t){return nu(e,null,null,t),uu(e)}function yf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-st(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function uu(e){if(50<Nn)throw Nn=0,cs=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function Ug(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,l,a){return new Ug(e,t,l,a)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yt(e,t){var l=e.alternate;return l===null?(l=ft(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function bf(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Pi(e)&&(c=1);else if(typeof e=="string")c=qv(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ge:return e=ft(31,l,t,n),e.elementType=Ge,e.lanes=u,e;case H:return Bl(l.children,n,u,t);case q:c=8,n|=24;break;case L:return e=ft(12,l,t,n|2),e.elementType=L,e.lanes=u,e;case Ce:return e=ft(13,l,t,n),e.elementType=Ce,e.lanes=u,e;case je:return e=ft(19,l,t,n),e.elementType=je,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:c=10;break e;case ee:c=9;break e;case Re:c=11;break e;case X:c=14;break e;case ce:c=16,a=null;break e}c=29,l=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=ft(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Bl(e,t,l,a){return e=ft(7,e,a,t),e.lanes=l,e}function ec(e,t,l){return e=ft(6,e,null,t),e.lanes=l,e}function pf(e){var t=ft(18,null,null,0);return t.stateNode=e,t}function tc(e,t,l){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jf=new WeakMap;function bt(e,t){if(typeof e=="object"&&e!==null){var l=jf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:br(t)},jf.set(e,t),t)}return{value:e,source:t,stack:br(t)}}var oa=[],da=0,cu=null,tn=0,pt=[],jt=0,ul=null,_t=1,Rt="";function qt(e,t){oa[da++]=tn,oa[da++]=cu,cu=e,tn=t}function Sf(e,t,l){pt[jt++]=_t,pt[jt++]=Rt,pt[jt++]=ul,ul=e;var a=_t;e=Rt;var n=32-st(a)-1;a&=~(1<<n),l+=1;var u=32-st(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,_t=1<<32-st(t)+n|l<<n|a,Rt=u+e}else _t=1<<u|l<<n|a,Rt=e}function lc(e){e.return!==null&&(qt(e,1),Sf(e,1,0))}function ac(e){for(;e===cu;)cu=oa[--da],oa[da]=null,tn=oa[--da],oa[da]=null;for(;e===ul;)ul=pt[--jt],pt[jt]=null,Rt=pt[--jt],pt[jt]=null,_t=pt[--jt],pt[jt]=null}function Nf(e,t){pt[jt++]=_t,pt[jt++]=Rt,pt[jt++]=ul,_t=t.id,Rt=t.overflow,ul=e}var Xe=null,Se=null,ie=!1,il=null,St=!1,nc=Error(f(519));function cl(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ln(bt(t,e)),nc}function Ef(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ze]=e,t[Fe]=a,l){case"dialog":ae("cancel",t),ae("close",t);break;case"iframe":case"object":case"embed":ae("load",t);break;case"video":case"audio":for(l=0;l<wn.length;l++)ae(wn[l],t);break;case"source":ae("error",t);break;case"img":case"image":case"link":ae("error",t),ae("load",t);break;case"details":ae("toggle",t);break;case"input":ae("invalid",t),Br(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ae("invalid",t);break;case"textarea":ae("invalid",t),Lr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Zd(t.textContent,l)?(a.popover!=null&&(ae("beforetoggle",t),ae("toggle",t)),a.onScroll!=null&&ae("scroll",t),a.onScrollEnd!=null&&ae("scrollend",t),a.onClick!=null&&(t.onclick=Ht),t=!0):t=!1,t||cl(e,!0)}function wf(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:St=!1;return;case 27:case 3:St=!0;return;default:Xe=Xe.return}}function ma(e){if(e!==Xe)return!1;if(!ie)return wf(e),ie=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ss(e.type,e.memoizedProps)),l=!l),l&&Se&&cl(e),wf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Se=Fd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Se=Fd(e)}else t===27?(t=Se,jl(e.type)?(e=Ts,Ts=null,Se=e):Se=t):Se=Xe?Et(e.stateNode.nextSibling):null;return!0}function Hl(){Se=Xe=null,ie=!1}function uc(){var e=il;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),il=null),e}function ln(e){il===null?il=[e]:il.push(e)}var ic=v(null),Ll=null,Gt=null;function sl(e,t,l){G(ic,t._currentValue),t._currentValue=l}function Zt(e){e._currentValue=ic.current,U(ic)}function cc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function sc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var r=u;u=n;for(var m=0;m<t.length;m++)if(r.context===t[m]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),cc(u.return,l,e),a||(c=null);break e}u=r.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(f(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),cc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ha(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=n.type;rt(n.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(n===de.current){if(c=n.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(On):e=[On])}n=n.return}e!==null&&sc(t,e,l,a),t.flags|=262144}function su(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Ll=e,Gt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return Af(Ll,e)}function ru(e,t){return Ll===null&&Yl(e),Af(e,t)}function Af(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Gt===null){if(e===null)throw Error(f(308));Gt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gt=Gt.next=t;return l}var Bg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Hg=s.unstable_scheduleCallback,Lg=s.unstable_NormalPriority,De={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rc(){return{controller:new Bg,data:new Map,refCount:0}}function an(e){e.refCount--,e.refCount===0&&Hg(Lg,function(){e.controller.abort()})}var nn=null,fc=0,ga=0,va=null;function Yg(e,t){if(nn===null){var l=nn=[];fc=0,ga=ms(),va={status:"pending",value:void 0,then:function(a){l.push(a)}}}return fc++,t.then(Tf,Tf),t}function Tf(){if(--fc===0&&nn!==null){va!==null&&(va.status="fulfilled");var e=nn;nn=null,ga=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qg(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var zf=z.S;z.S=function(e,t){dd=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Yg(e,t),zf!==null&&zf(e,t)};var ql=v(null);function oc(){var e=ql.current;return e!==null?e:pe.pooledCache}function fu(e,t){t===null?G(ql,ql.current):G(ql,t.pool)}function Cf(){var e=oc();return e===null?null:{parent:De._currentValue,pool:e}}var xa=Error(f(460)),dc=Error(f(474)),ou=Error(f(542)),du={then:function(){}};function Of(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Ht,Ht),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rf(e),e;default:if(typeof t.status=="string")t.then(Ht,Ht);else{if(e=pe,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rf(e),e}throw Zl=t,xa}}function Gl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Zl=l,xa):l}}var Zl=null;function _f(){if(Zl===null)throw Error(f(459));var e=Zl;return Zl=null,e}function Rf(e){if(e===xa||e===ou)throw Error(f(483))}var ya=null,un=0;function mu(e){var t=un;return un+=1,ya===null&&(ya=[]),Mf(ya,e,t)}function cn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===O?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Df(e){function t(y,g){if(e){var p=y.deletions;p===null?(y.deletions=[g],y.flags|=16):p.push(g)}}function l(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function a(y){for(var g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function n(y,g){return y=Yt(y,g),y.index=0,y.sibling=null,y}function u(y,g,p){return y.index=p,e?(p=y.alternate,p!==null?(p=p.index,p<g?(y.flags|=67108866,g):p):(y.flags|=67108866,g)):(y.flags|=1048576,g)}function c(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function r(y,g,p,_){return g===null||g.tag!==6?(g=ec(p,y.mode,_),g.return=y,g):(g=n(g,p),g.return=y,g)}function m(y,g,p,_){var K=p.type;return K===H?M(y,g,p.props.children,_,p.key):g!==null&&(g.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ce&&Gl(K)===g.type)?(g=n(g,p.props),cn(g,p),g.return=y,g):(g=iu(p.type,p.key,p.props,null,y.mode,_),cn(g,p),g.return=y,g)}function j(y,g,p,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==p.containerInfo||g.stateNode.implementation!==p.implementation?(g=tc(p,y.mode,_),g.return=y,g):(g=n(g,p.children||[]),g.return=y,g)}function M(y,g,p,_,K){return g===null||g.tag!==7?(g=Bl(p,y.mode,_,K),g.return=y,g):(g=n(g,p),g.return=y,g)}function R(y,g,p){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=ec(""+g,y.mode,p),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Z:return p=iu(g.type,g.key,g.props,null,y.mode,p),cn(p,g),p.return=y,p;case B:return g=tc(g,y.mode,p),g.return=y,g;case ce:return g=Gl(g),R(y,g,p)}if(we(g)||Ae(g))return g=Bl(g,y.mode,p,null),g.return=y,g;if(typeof g.then=="function")return R(y,mu(g),p);if(g.$$typeof===oe)return R(y,ru(y,g),p);hu(y,g)}return null}function N(y,g,p,_){var K=g!==null?g.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return K!==null?null:r(y,g,""+p,_);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Z:return p.key===K?m(y,g,p,_):null;case B:return p.key===K?j(y,g,p,_):null;case ce:return p=Gl(p),N(y,g,p,_)}if(we(p)||Ae(p))return K!==null?null:M(y,g,p,_,null);if(typeof p.then=="function")return N(y,g,mu(p),_);if(p.$$typeof===oe)return N(y,g,ru(y,p),_);hu(y,p)}return null}function A(y,g,p,_,K){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return y=y.get(p)||null,r(g,y,""+_,K);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Z:return y=y.get(_.key===null?p:_.key)||null,m(g,y,_,K);case B:return y=y.get(_.key===null?p:_.key)||null,j(g,y,_,K);case ce:return _=Gl(_),A(y,g,p,_,K)}if(we(_)||Ae(_))return y=y.get(p)||null,M(g,y,_,K,null);if(typeof _.then=="function")return A(y,g,p,mu(_),K);if(_.$$typeof===oe)return A(y,g,p,ru(g,_),K);hu(g,_)}return null}function Q(y,g,p,_){for(var K=null,se=null,k=g,P=g=0,ue=null;k!==null&&P<p.length;P++){k.index>P?(ue=k,k=null):ue=k.sibling;var re=N(y,k,p[P],_);if(re===null){k===null&&(k=ue);break}e&&k&&re.alternate===null&&t(y,k),g=u(re,g,P),se===null?K=re:se.sibling=re,se=re,k=ue}if(P===p.length)return l(y,k),ie&&qt(y,P),K;if(k===null){for(;P<p.length;P++)k=R(y,p[P],_),k!==null&&(g=u(k,g,P),se===null?K=k:se.sibling=k,se=k);return ie&&qt(y,P),K}for(k=a(k);P<p.length;P++)ue=A(k,y,P,p[P],_),ue!==null&&(e&&ue.alternate!==null&&k.delete(ue.key===null?P:ue.key),g=u(ue,g,P),se===null?K=ue:se.sibling=ue,se=ue);return e&&k.forEach(function(Al){return t(y,Al)}),ie&&qt(y,P),K}function J(y,g,p,_){if(p==null)throw Error(f(151));for(var K=null,se=null,k=g,P=g=0,ue=null,re=p.next();k!==null&&!re.done;P++,re=p.next()){k.index>P?(ue=k,k=null):ue=k.sibling;var Al=N(y,k,re.value,_);if(Al===null){k===null&&(k=ue);break}e&&k&&Al.alternate===null&&t(y,k),g=u(Al,g,P),se===null?K=Al:se.sibling=Al,se=Al,k=ue}if(re.done)return l(y,k),ie&&qt(y,P),K;if(k===null){for(;!re.done;P++,re=p.next())re=R(y,re.value,_),re!==null&&(g=u(re,g,P),se===null?K=re:se.sibling=re,se=re);return ie&&qt(y,P),K}for(k=a(k);!re.done;P++,re=p.next())re=A(k,y,P,re.value,_),re!==null&&(e&&re.alternate!==null&&k.delete(re.key===null?P:re.key),g=u(re,g,P),se===null?K=re:se.sibling=re,se=re);return e&&k.forEach(function(Fv){return t(y,Fv)}),ie&&qt(y,P),K}function ye(y,g,p,_){if(typeof p=="object"&&p!==null&&p.type===H&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Z:e:{for(var K=p.key;g!==null;){if(g.key===K){if(K=p.type,K===H){if(g.tag===7){l(y,g.sibling),_=n(g,p.props.children),_.return=y,y=_;break e}}else if(g.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ce&&Gl(K)===g.type){l(y,g.sibling),_=n(g,p.props),cn(_,p),_.return=y,y=_;break e}l(y,g);break}else t(y,g);g=g.sibling}p.type===H?(_=Bl(p.props.children,y.mode,_,p.key),_.return=y,y=_):(_=iu(p.type,p.key,p.props,null,y.mode,_),cn(_,p),_.return=y,y=_)}return c(y);case B:e:{for(K=p.key;g!==null;){if(g.key===K)if(g.tag===4&&g.stateNode.containerInfo===p.containerInfo&&g.stateNode.implementation===p.implementation){l(y,g.sibling),_=n(g,p.children||[]),_.return=y,y=_;break e}else{l(y,g);break}else t(y,g);g=g.sibling}_=tc(p,y.mode,_),_.return=y,y=_}return c(y);case ce:return p=Gl(p),ye(y,g,p,_)}if(we(p))return Q(y,g,p,_);if(Ae(p)){if(K=Ae(p),typeof K!="function")throw Error(f(150));return p=K.call(p),J(y,g,p,_)}if(typeof p.then=="function")return ye(y,g,mu(p),_);if(p.$$typeof===oe)return ye(y,g,ru(y,p),_);hu(y,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,g!==null&&g.tag===6?(l(y,g.sibling),_=n(g,p),_.return=y,y=_):(l(y,g),_=ec(p,y.mode,_),_.return=y,y=_),c(y)):l(y,g)}return function(y,g,p,_){try{un=0;var K=ye(y,g,p,_);return ya=null,K}catch(k){if(k===xa||k===ou)throw k;var se=ft(29,k,null,y.mode);return se.lanes=_,se.return=y,se}finally{}}}var Xl=Df(!0),Uf=Df(!1),rl=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(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 fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ol(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(fe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=uu(e),yf(e,null,l),t}return nu(e,a,t,l),uu(e)}function sn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,wr(e,l)}}function gc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function rn(){if(vc){var e=va;if(e!==null)throw e}}function fn(e,t,l,a){vc=!1;var n=e.updateQueue;rl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var m=r,j=m.next;m.next=null,c===null?u=j:c.next=j,c=m;var M=e.alternate;M!==null&&(M=M.updateQueue,r=M.lastBaseUpdate,r!==c&&(r===null?M.firstBaseUpdate=j:r.next=j,M.lastBaseUpdate=m))}if(u!==null){var R=n.baseState;c=0,M=j=m=null,r=u;do{var N=r.lane&-536870913,A=N!==r.lane;if(A?(ne&N)===N:(a&N)===N){N!==0&&N===ga&&(vc=!0),M!==null&&(M=M.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var Q=e,J=r;N=t;var ye=l;switch(J.tag){case 1:if(Q=J.payload,typeof Q=="function"){R=Q.call(ye,R,N);break e}R=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=J.payload,N=typeof Q=="function"?Q.call(ye,R,N):Q,N==null)break e;R=b({},R,N);break e;case 2:rl=!0}}N=r.callback,N!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[N]:A.push(N))}else A={lane:N,tag:r.tag,payload:r.payload,callback:r.callback,next:null},M===null?(j=M=A,m=R):M=M.next=A,c|=N;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;A=r,r=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);M===null&&(m=R),n.baseState=m,n.firstBaseUpdate=j,n.lastBaseUpdate=M,u===null&&(n.shared.lanes=0),vl|=c,e.lanes=c,e.memoizedState=R}}function Bf(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Hf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Bf(l[e],t)}var ba=v(null),gu=v(0);function Lf(e,t){e=Ft,G(gu,e),G(ba,t),Ft=e|t.baseLanes}function xc(){G(gu,Ft),G(ba,ba.current)}function yc(){Ft=gu.current,U(ba),U(gu)}var ot=v(null),Nt=null;function dl(e){var t=e.alternate;G(Me,Me.current&1),G(ot,e),Nt===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(Nt=e)}function bc(e){G(Me,Me.current),G(ot,e),Nt===null&&(Nt=e)}function Yf(e){e.tag===22?(G(Me,Me.current),G(ot,e),Nt===null&&(Nt=e)):ml()}function ml(){G(Me,Me.current),G(ot,ot.current)}function dt(e){U(ot),Nt===e&&(Nt=null),U(Me)}var Me=v(0);function vu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ws(l)||As(l)))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 Xt=0,I=null,ve=null,Ue=null,xu=!1,pa=!1,Ql=!1,yu=0,on=0,ja=null,Gg=0;function Te(){throw Error(f(321))}function pc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rt(e[l],t[l]))return!1;return!0}function jc(e,t,l,a,n,u){return Xt=u,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?No:Bc,Ql=!1,u=l(a,n),Ql=!1,pa&&(u=Gf(t,l,a,n)),qf(e),u}function qf(e){z.H=hn;var t=ve!==null&&ve.next!==null;if(Xt=0,Ue=ve=I=null,xu=!1,on=0,ja=null,t)throw Error(f(300));e===null||Be||(e=e.dependencies,e!==null&&su(e)&&(Be=!0))}function Gf(e,t,l,a){I=e;var n=0;do{if(pa&&(ja=null),on=0,pa=!1,25<=n)throw Error(f(301));if(n+=1,Ue=ve=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=Eo,u=t(l,a)}while(pa);return u}function Zg(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?dn(t):t,e=e.useState()[0],(ve!==null?ve.memoizedState:null)!==e&&(I.flags|=1024),t}function Sc(){var e=yu!==0;return yu=0,e}function Nc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ec(e){if(xu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xu=!1}Xt=0,Ue=ve=I=null,pa=!1,on=yu=0,ja=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?I.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function _e(){if(ve===null){var e=I.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=Ue===null?I.memoizedState:Ue.next;if(t!==null)Ue=t,ve=e;else{if(e===null)throw I.alternate===null?Error(f(467)):Error(f(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},Ue===null?I.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dn(e){var t=on;return on+=1,ja===null&&(ja=[]),e=Mf(ja,e,t),t=I,(Ue===null?t.memoizedState:Ue.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?No:Bc),e}function pu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dn(e);if(e.$$typeof===oe)return Qe(e)}throw Error(f(438,String(e)))}function wc(e){var t=null,l=I.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=I.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bu(),I.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=nt;return t.index++,l}function Qt(e,t){return typeof t=="function"?t(e):t}function ju(e){var t=_e();return Ac(t,ve,e)}function Ac(e,t,l){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var r=c=null,m=null,j=t,M=!1;do{var R=j.lane&-536870913;if(R!==j.lane?(ne&R)===R:(Xt&R)===R){var N=j.revertLane;if(N===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),R===ga&&(M=!0);else if((Xt&N)===N){j=j.next,N===ga&&(M=!0);continue}else R={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(r=m=R,c=u):m=m.next=R,I.lanes|=N,vl|=N;R=j.action,Ql&&l(u,R),u=j.hasEagerState?j.eagerState:l(u,R)}else N={lane:R,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(r=m=N,c=u):m=m.next=N,I.lanes|=R,vl|=R;j=j.next}while(j!==null&&j!==t);if(m===null?c=u:m.next=r,!rt(u,e.memoizedState)&&(Be=!0,M&&(l=va,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tc(e){var t=_e(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);rt(u,t.memoizedState)||(Be=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Zf(e,t,l){var a=I,n=_e(),u=ie;if(u){if(l===void 0)throw Error(f(407));l=l()}else l=t();var c=!rt((ve||n).memoizedState,l);if(c&&(n.memoizedState=l,Be=!0),n=n.queue,Oc(Vf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ue!==null&&Ue.memoizedState.tag&1){if(a.flags|=2048,Sa(9,{destroy:void 0},Qf.bind(null,a,n,l,t),null),pe===null)throw Error(f(349));u||(Xt&127)!==0||Xf(a,t,l)}return l}function Xf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=I.updateQueue,t===null?(t=bu(),I.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Qf(e,t,l,a){t.value=l,t.getSnapshot=a,kf(t)&&Kf(e)}function Vf(e,t,l){return l(function(){kf(t)&&Kf(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rt(e,l)}catch{return!0}}function Kf(e){var t=Ul(e,2);t!==null&&at(t,e,2)}function zc(e){var t=We();if(typeof e=="function"){var l=e;if(e=l(),Ql){ll(!0);try{l()}finally{ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:e},t}function Jf(e,t,l,a){return e.baseState=l,Ac(e,ve,typeof a=="function"?a:Qt)}function Xg(e,t,l,a,n){if(Eu(e))throw Error(f(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};z.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,$f(t,u)):(u.next=l.next,t.pending=l.next=u)}}function $f(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=z.T,c={};z.T=c;try{var r=l(n,a),m=z.S;m!==null&&m(c,r),Wf(e,t,r)}catch(j){Cc(e,t,j)}finally{u!==null&&c.types!==null&&(u.types=c.types),z.T=u}}else try{u=l(n,a),Wf(e,t,u)}catch(j){Cc(e,t,j)}}function Wf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ff(e,t,a)},function(a){return Cc(e,t,a)}):Ff(e,t,l)}function Ff(e,t,l){t.status="fulfilled",t.value=l,If(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,$f(e,l)))}function Cc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,If(t),t=t.next;while(t!==a)}e.action=null}function If(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pf(e,t){return t}function eo(e,t){if(ie){var l=pe.formState;if(l!==null){e:{var a=I;if(ie){if(Se){t:{for(var n=Se,u=St;n.nodeType!==8;){if(!u){n=null;break t}if(n=Et(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Se=Et(n.nextSibling),a=n.data==="F!";break e}}cl(a)}a=!1}a&&(t=l[0])}}return l=We(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pf,lastRenderedState:t},l.queue=a,l=po.bind(null,I,a),a.dispatch=l,a=zc(!1),u=Uc.bind(null,I,!1,a.queue),a=We(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Xg.bind(null,I,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function to(e){var t=_e();return lo(t,ve,e)}function lo(e,t,l){if(t=Ac(e,t,Pf)[0],e=ju(Qt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=dn(t)}catch(c){throw c===xa?ou:c}else a=t;t=_e();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(I.flags|=2048,Sa(9,{destroy:void 0},Qg.bind(null,n,l),null)),[a,u,e]}function Qg(e,t){e.action=t}function ao(e){var t=_e(),l=ve;if(l!==null)return lo(t,l,e);_e(),t=t.memoizedState,l=_e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Sa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=I.updateQueue,t===null&&(t=bu(),I.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function no(){return _e().memoizedState}function Su(e,t,l,a){var n=We();I.flags|=e,n.memoizedState=Sa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Nu(e,t,l,a){var n=_e();a=a===void 0?null:a;var u=n.memoizedState.inst;ve!==null&&a!==null&&pc(a,ve.memoizedState.deps)?n.memoizedState=Sa(t,u,l,a):(I.flags|=e,n.memoizedState=Sa(1|t,u,l,a))}function uo(e,t){Su(8390656,8,e,t)}function Oc(e,t){Nu(2048,8,e,t)}function Vg(e){I.flags|=4;var t=I.updateQueue;if(t===null)t=bu(),I.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function io(e){var t=_e().memoizedState;return Vg({ref:t,nextImpl:e}),function(){if((fe&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function co(e,t){return Nu(4,2,e,t)}function so(e,t){return Nu(4,4,e,t)}function ro(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fo(e,t,l){l=l!=null?l.concat([e]):null,Nu(4,4,ro.bind(null,t,e),l)}function Mc(){}function oo(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&pc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function mo(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&pc(t,a[1]))return a[0];if(a=e(),Ql){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a}function _c(e,t,l){return l===void 0||(Xt&1073741824)!==0&&(ne&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=hd(),I.lanes|=e,vl|=e,l)}function ho(e,t,l,a){return rt(l,t)?l:ba.current!==null?(e=_c(e,l,a),rt(e,t)||(Be=!0),e):(Xt&42)===0||(Xt&1073741824)!==0&&(ne&261930)===0?(Be=!0,e.memoizedState=l):(e=hd(),I.lanes|=e,vl|=e,t)}function go(e,t,l,a,n){var u=Y.p;Y.p=u!==0&&8>u?u:8;var c=z.T,r={};z.T=r,Uc(e,!1,t,l);try{var m=n(),j=z.S;if(j!==null&&j(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var M=qg(m,a);mn(e,t,M,gt(e))}else mn(e,t,a,gt(e))}catch(R){mn(e,t,{then:function(){},status:"rejected",reason:R},gt())}finally{Y.p=u,c!==null&&r.types!==null&&(c.types=r.types),z.T=c}}function kg(){}function Rc(e,t,l,a){if(e.tag!==5)throw Error(f(476));var n=vo(e).queue;go(e,n,t,$,l===null?kg:function(){return xo(e),l(a)})}function vo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xo(e){var t=vo(e);t.next===null&&(t=e.alternate.memoizedState),mn(e,t.next.queue,{},gt())}function Dc(){return Qe(On)}function yo(){return _e().memoizedState}function bo(){return _e().memoizedState}function Kg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=gt();e=fl(l);var a=ol(t,e,l);a!==null&&(at(a,t,l),sn(a,t,l)),t={cache:rc()},e.payload=t;return}t=t.return}}function Jg(e,t,l){var a=gt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Eu(e)?jo(t,l):(l=Ii(e,t,l,a),l!==null&&(at(l,e,a),So(l,t,a)))}function po(e,t,l){var a=gt();mn(e,t,l,a)}function mn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Eu(e))jo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,r=u(c,l);if(n.hasEagerState=!0,n.eagerState=r,rt(r,c))return nu(e,t,n,0),pe===null&&au(),!1}catch{}finally{}if(l=Ii(e,t,n,a),l!==null)return at(l,e,a),So(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:ms(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Eu(e)){if(t)throw Error(f(479))}else t=Ii(e,l,a,2),t!==null&&at(t,e,2)}function Eu(e){var t=e.alternate;return e===I||t!==null&&t===I}function jo(e,t){pa=xu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function So(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,wr(e,l)}}var hn={readContext:Qe,use:pu,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useLayoutEffect:Te,useInsertionEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useSyncExternalStore:Te,useId:Te,useHostTransitionStatus:Te,useFormState:Te,useActionState:Te,useOptimistic:Te,useMemoCache:Te,useCacheRefresh:Te};hn.useEffectEvent=Te;var No={readContext:Qe,use:pu,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:uo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Su(4194308,4,ro.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Su(4194308,4,e,t)},useInsertionEffect:function(e,t){Su(4,2,e,t)},useMemo:function(e,t){var l=We();t=t===void 0?null:t;var a=e();if(Ql){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=We();if(l!==void 0){var n=l(t);if(Ql){ll(!0);try{l(t)}finally{ll(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Jg.bind(null,I,e),[a.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=po.bind(null,I,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=We();return _c(l,e,t)},useTransition:function(){var e=zc(!1);return e=go.bind(null,I,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=I,n=We();if(ie){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),pe===null)throw Error(f(349));(ne&127)!==0||Xf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,uo(Vf.bind(null,a,u,e),[e]),a.flags|=2048,Sa(9,{destroy:void 0},Qf.bind(null,a,u,l,t),null),l},useId:function(){var e=We(),t=pe.identifierPrefix;if(ie){var l=Rt,a=_t;l=(a&~(1<<32-st(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=yu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Gg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dc,useFormState:eo,useActionState:eo,useOptimistic:function(e){var t=We();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Uc.bind(null,I,!0,l),l.dispatch=t,[e,t]},useMemoCache:wc,useCacheRefresh:function(){return We().memoizedState=Kg.bind(null,I)},useEffectEvent:function(e){var t=We(),l={impl:e};return t.memoizedState=l,function(){if((fe&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},Bc={readContext:Qe,use:pu,useCallback:oo,useContext:Qe,useEffect:Oc,useImperativeHandle:fo,useInsertionEffect:co,useLayoutEffect:so,useMemo:mo,useReducer:ju,useRef:no,useState:function(){return ju(Qt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=_e();return ho(l,ve.memoizedState,e,t)},useTransition:function(){var e=ju(Qt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:Zf,useId:yo,useHostTransitionStatus:Dc,useFormState:to,useActionState:to,useOptimistic:function(e,t){var l=_e();return Jf(l,ve,e,t)},useMemoCache:wc,useCacheRefresh:bo};Bc.useEffectEvent=io;var Eo={readContext:Qe,use:pu,useCallback:oo,useContext:Qe,useEffect:Oc,useImperativeHandle:fo,useInsertionEffect:co,useLayoutEffect:so,useMemo:mo,useReducer:Tc,useRef:no,useState:function(){return Tc(Qt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=_e();return ve===null?_c(l,e,t):ho(l,ve.memoizedState,e,t)},useTransition:function(){var e=Tc(Qt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:Zf,useId:yo,useHostTransitionStatus:Dc,useFormState:ao,useActionState:ao,useOptimistic:function(e,t){var l=_e();return ve!==null?Jf(l,ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:wc,useCacheRefresh:bo};Eo.useEffectEvent=io;function Hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Lc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=gt(),n=fl(a);n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(at(t,e,a),sn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=gt(),n=fl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(at(t,e,a),sn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=gt(),a=fl(l);a.tag=2,t!=null&&(a.callback=t),t=ol(e,a,l),t!==null&&(at(t,e,l),sn(t,e,l))}};function wo(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Pa(l,a)||!Pa(n,u):!0}function Ao(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Lc.enqueueReplaceState(t,t.state,null)}function Vl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function To(e){lu(e)}function zo(e){console.error(e)}function Co(e){lu(e)}function wu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Oo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Yc(e,t,l){return l=fl(l),l.tag=3,l.payload={element:null},l.callback=function(){wu(e,t)},l}function Mo(e){return e=fl(e),e.tag=3,e}function _o(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Oo(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Oo(t,l,a),typeof n!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function $g(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ha(t,l,n,!0),l=ot.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?Hu():l.alternate===null&&ze===0&&(ze=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===du?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),fs(e,a,n)),!1;case 22:return l.flags|=65536,a===du?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),fs(e,a,n)),!1}throw Error(f(435,l.tag))}return fs(e,a,n),Hu(),!1}if(ie)return t=ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==nc&&(e=Error(f(422),{cause:a}),ln(bt(e,l)))):(a!==nc&&(t=Error(f(423),{cause:a}),ln(bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=bt(a,l),n=Yc(e.stateNode,a,n),gc(e,n),ze!==4&&(ze=2)),!1;var u=Error(f(520),{cause:a});if(u=bt(u,l),Sn===null?Sn=[u]:Sn.push(u),ze!==4&&(ze=2),t===null)return!0;a=bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Yc(l.stateNode,a,e),gc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(xl===null||!xl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mo(n),_o(n,e,l,a),gc(l,n),!1}l=l.return}while(l!==null);return!1}var qc=Error(f(461)),Be=!1;function Ve(e,t,l,a){t.child=e===null?Uf(t,null,l,a):Xl(t,e.child,l,a)}function Ro(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var r in a)r!=="ref"&&(c[r]=a[r])}else c=a;return Yl(t),a=jc(e,t,l,c,u,n),r=Sc(),e!==null&&!Be?(Nc(e,t,n),Vt(e,t,n)):(ie&&r&&lc(t),t.flags|=1,Ve(e,t,a,n),t.child)}function Do(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Pi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Uo(e,t,u,a,n)):(e=iu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Jc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Pa,l(c,a)&&e.ref===t.ref)return Vt(e,t,n)}return t.flags|=1,e=Yt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Uo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Pa(u,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=u,Jc(e,n))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Vt(e,t,n)}return Gc(e,t,l,a,n)}function Bo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Ho(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,u!==null?u.cachePool:null),u!==null?Lf(t,u):xc(),Yf(t);else return a=t.lanes=536870912,Ho(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(fu(t,u.cachePool),Lf(t,u),ml(),t.memoizedState=null):(e!==null&&fu(t,null),xc(),ml());return Ve(e,t,n,l),t.child}function gn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ho(e,t,l,a,n){var u=oc();return u=u===null?null:{parent:De._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&fu(t,null),xc(),Yf(t),e!==null&&ha(e,t,a,!0),t.childLanes=n,null}function Au(e,t){return t=zu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lo(e,t,l){return Xl(t,e.child,null,l),e=Au(t,t.pendingProps),e.flags|=2,dt(t),t.memoizedState=null,e}function Wg(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ie){if(a.mode==="hidden")return e=Au(t,a),t.lanes=536870912,gn(null,e);if(bc(t),(e=Se)?(e=Wd(e,St),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:_t,overflow:Rt}:null,retryLane:536870912,hydrationErrors:null},l=pf(e),l.return=t,t.child=l,Xe=t,Se=null)):e=null,e===null)throw cl(t);return t.lanes=536870912,null}return Au(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(bc(t),n)if(t.flags&256)t.flags&=-257,t=Lo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Be||ha(e,t,l,!1),n=(l&e.childLanes)!==0,Be||n){if(a=pe,a!==null&&(c=Ar(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Ul(e,c),at(a,e,c),qc;Hu(),t=Lo(e,t,l)}else e=u.treeContext,Se=Et(c.nextSibling),Xe=t,ie=!0,il=null,St=!1,e!==null&&Nf(t,e),t=Au(t,a),t.flags|=4096;return t}return e=Yt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Gc(e,t,l,a,n){return Yl(t),l=jc(e,t,l,a,void 0,n),a=Sc(),e!==null&&!Be?(Nc(e,t,n),Vt(e,t,n)):(ie&&a&&lc(t),t.flags|=1,Ve(e,t,l,n),t.child)}function Yo(e,t,l,a,n,u){return Yl(t),t.updateQueue=null,l=Gf(t,a,l,n),qf(e),a=Sc(),e!==null&&!Be?(Nc(e,t,u),Vt(e,t,u)):(ie&&a&&lc(t),t.flags|=1,Ve(e,t,l,u),t.child)}function qo(e,t,l,a,n){if(Yl(t),t.stateNode===null){var u=fa,c=l.contextType;typeof c=="object"&&c!==null&&(u=Qe(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Lc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},mc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Qe(c):fa,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Hc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Lc.enqueueReplaceState(u,u.state,null),fn(t,a,u,n),rn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var r=t.memoizedProps,m=Vl(l,r);u.props=m;var j=u.context,M=l.contextType;c=fa,typeof M=="object"&&M!==null&&(c=Qe(M));var R=l.getDerivedStateFromProps;M=typeof R=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||j!==c)&&Ao(t,u,a,c),rl=!1;var N=t.memoizedState;u.state=N,fn(t,a,u,n),rn(),j=t.memoizedState,r||N!==j||rl?(typeof R=="function"&&(Hc(t,l,R,a),j=t.memoizedState),(m=rl||wo(t,l,m,a,N,j,c))?(M||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=a,t.memoizedState=j),u.props=a,u.state=j,u.context=c,a=m):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,hc(e,t),c=t.memoizedProps,M=Vl(l,c),u.props=M,R=t.pendingProps,N=u.context,j=l.contextType,m=fa,typeof j=="object"&&j!==null&&(m=Qe(j)),r=l.getDerivedStateFromProps,(j=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==R||N!==m)&&Ao(t,u,a,m),rl=!1,N=t.memoizedState,u.state=N,fn(t,a,u,n),rn();var A=t.memoizedState;c!==R||N!==A||rl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof r=="function"&&(Hc(t,l,r,a),A=t.memoizedState),(M=rl||wo(t,l,M,a,N,A,m)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(j||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,m)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=m,a=M):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Tu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Xl(t,e.child,null,n),t.child=Xl(t,null,l,n)):Ve(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Vt(e,t,n),e}function Go(e,t,l,a){return Hl(),t.flags|=256,Ve(e,t,l,a),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Cf()}}function Qc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=ht),e}function Zo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Me.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ie){if(n?dl(t):ml(),(e=Se)?(e=Wd(e,St),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:_t,overflow:Rt}:null,retryLane:536870912,hydrationErrors:null},l=pf(e),l.return=t,t.child=l,Xe=t,Se=null)):e=null,e===null)throw cl(t);return As(e)?t.lanes=32:t.lanes=536870912,null}var r=a.children;return a=a.fallback,n?(ml(),n=t.mode,r=zu({mode:"hidden",children:r},n),a=Bl(a,n,l,null),r.return=t,a.return=t,r.sibling=a,t.child=r,a=t.child,a.memoizedState=Xc(l),a.childLanes=Qc(e,c,l),t.memoizedState=Zc,gn(null,a)):(dl(t),Vc(t,r))}var m=e.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(u)t.flags&256?(dl(t),t.flags&=-257,t=kc(e,t,l)):t.memoizedState!==null?(ml(),t.child=e.child,t.flags|=128,t=null):(ml(),r=a.fallback,n=t.mode,a=zu({mode:"visible",children:a.children},n),r=Bl(r,n,l,null),r.flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,Xl(t,e.child,null,l),a=t.child,a.memoizedState=Xc(l),a.childLanes=Qc(e,c,l),t.memoizedState=Zc,t=gn(null,a));else if(dl(t),As(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var j=c.dgst;c=j,a=Error(f(419)),a.stack="",a.digest=c,ln({value:a,source:null,stack:null}),t=kc(e,t,l)}else if(Be||ha(e,t,l,!1),c=(l&e.childLanes)!==0,Be||c){if(c=pe,c!==null&&(a=Ar(c,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,Ul(e,a),at(c,e,a),qc;ws(r)||Hu(),t=kc(e,t,l)}else ws(r)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Se=Et(r.nextSibling),Xe=t,ie=!0,il=null,St=!1,e!==null&&Nf(t,e),t=Vc(t,a.children),t.flags|=4096);return t}return n?(ml(),r=a.fallback,n=t.mode,m=e.child,j=m.sibling,a=Yt(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,j!==null?r=Yt(j,r):(r=Bl(r,n,l,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,gn(null,a),a=t.child,r=e.child.memoizedState,r===null?r=Xc(l):(n=r.cachePool,n!==null?(m=De._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Cf(),r={baseLanes:r.baseLanes|l,cachePool:n}),a.memoizedState=r,a.childLanes=Qc(e,c,l),t.memoizedState=Zc,gn(e.child,a)):(dl(t),l=e.child,e=l.sibling,l=Yt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Vc(e,t){return t=zu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zu(e,t){return e=ft(22,e,null,t),e.lanes=0,e}function kc(e,t,l){return Xl(t,e.child,null,l),e=Vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cc(e.return,t,l)}function Kc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Qo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Me.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,G(Me,c),Ve(e,t,a,l),a=ie?tn:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xo(e,l,t);else if(e.tag===19)Xo(e,l,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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&vu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Kc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&vu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Kc(t,!0,l,null,u,a);break;case"together":Kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Vt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ha(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=Yt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Yt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function Fg(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),sl(t,De,e.memoizedState.cache),Hl();break;case 27:case 5:qa(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(dl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Zo(e,t,l):(dl(t),e=Vt(e,t,l),e!==null?e.sibling:null);dl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ha(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Qo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Me,Me.current),a)break;return null;case 22:return t.lanes=0,Bo(e,t,l,t.pendingProps);case 24:sl(t,De,e.memoizedState.cache)}return Vt(e,t,l)}function Vo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!Jc(e,l)&&(t.flags&128)===0)return Be=!1,Fg(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,ie&&(t.flags&1048576)!==0&&Sf(t,tn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Gl(t.elementType),t.type=e,typeof e=="function")Pi(e)?(a=Vl(e,a),t.tag=1,t=qo(null,t,e,a,l)):(t.tag=0,t=Gc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Re){t.tag=11,t=Ro(null,t,e,a,l);break e}else if(n===X){t.tag=14,t=Do(null,t,e,a,l);break e}}throw t=At(e)||e,Error(f(306,t,""))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Vl(a,t.pendingProps),qo(e,t,a,n,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(f(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,hc(e,t),fn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,sl(t,De,a),a!==u.cache&&sc(t,[De],l,!0),rn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Go(e,t,a,l);break e}else if(a!==n){n=bt(Error(f(424)),t),ln(n),t=Go(e,t,a,l);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(Se=Et(e.firstChild),Xe=t,ie=!0,il=null,St=!0,l=Uf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Hl(),a===n){t=Vt(e,t,l);break e}Ve(e,t,a,l)}t=t.child}return t;case 26:return Tu(e,t),e===null?(l=l0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ie||(l=t.type,e=t.pendingProps,a=Qu(te.current).createElement(l),a[Ze]=t,a[Fe]=e,ke(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=l0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qa(t),e===null&&ie&&(a=t.stateNode=Pd(t.type,t.pendingProps,te.current),Xe=t,St=!0,n=Se,jl(t.type)?(Ts=n,Se=Et(a.firstChild)):Se=n),Ve(e,t,t.pendingProps.children,l),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ie&&((n=a=Se)&&(a=Tv(a,t.type,t.pendingProps,St),a!==null?(t.stateNode=a,Xe=t,Se=Et(a.firstChild),St=!1,n=!0):n=!1),n||cl(t)),qa(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Ss(n,u)?a=null:c!==null&&Ss(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=jc(e,t,Zg,null,null,l),On._currentValue=n),Tu(e,t),Ve(e,t,a,l),t.child;case 6:return e===null&&ie&&((e=l=Se)&&(l=zv(l,t.pendingProps,St),l!==null?(t.stateNode=l,Xe=t,Se=null,e=!0):e=!1),e||cl(t)),null;case 13:return Zo(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Xl(t,null,a,l):Ve(e,t,a,l),t.child;case 11:return Ro(e,t,t.type,t.pendingProps,l);case 7:return Ve(e,t,t.pendingProps,l),t.child;case 8:return Ve(e,t,t.pendingProps.children,l),t.child;case 12:return Ve(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,sl(t,t.type,a.value),Ve(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Yl(t),n=Qe(n),a=a(n),t.flags|=1,Ve(e,t,a,l),t.child;case 14:return Do(e,t,t.type,t.pendingProps,l);case 15:return Uo(e,t,t.type,t.pendingProps,l);case 19:return Qo(e,t,l);case 31:return Wg(e,t,l);case 22:return Bo(e,t,l,t.pendingProps);case 24:return Yl(t),a=Qe(De),e===null?(n=oc(),n===null&&(n=pe,u=rc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},mc(t),sl(t,De,n)):((e.lanes&l)!==0&&(hc(e,t),fn(t,null,null,l),rn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),sl(t,De,a)):(a=u.cache,sl(t,De,a),a!==n.cache&&sc(t,[De],l,!0))),Ve(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function kt(e){e.flags|=4}function $c(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(yd())e.flags|=8192;else throw Zl=du,dc}else e.flags&=-16777217}function ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!c0(t))if(yd())e.flags|=8192;else throw Zl=du,dc}function Cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nr():536870912,e.lanes|=t,Aa|=t)}function vn(e,t){if(!ie)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ig(e,t,l){var a=t.pendingProps;switch(ac(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zt(De),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ma(t)?kt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uc())),Ne(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(kt(t),u!==null?(Ne(t),ko(t,u)):(Ne(t),$c(t,n,null,a,l))):u?u!==e.memoizedState?(kt(t),Ne(t),ko(t,u)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&kt(t),Ne(t),$c(t,n,e,a,l)),null;case 27:if(qn(t),l=te.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&kt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Ne(t),null}e=V.current,ma(t)?Ef(t):(e=Pd(n,a,l),t.stateNode=e,kt(t))}return Ne(t),null;case 5:if(qn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&kt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Ne(t),null}if(u=V.current,ma(t))Ef(t);else{var c=Qu(te.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Ze]=t,u[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(ke(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&kt(t)}}return Ne(t),$c(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&kt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(f(166));if(e=te.current,ma(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Xe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Zd(e.nodeValue,l)),e||cl(t,!0)}else e=Qu(e).createTextNode(a),e[Ze]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ma(t),l!==null){if(e===null){if(!a)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[Ze]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(dt(t),t):(dt(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ma(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[Ze]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(dt(t),t):(dt(t),null)}return dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Cu(t,t.updateQueue),Ne(t),null);case 4:return Oe(),e===null&&xs(t.stateNode.containerInfo),Ne(t),null;case 10:return Zt(t.type),Ne(t),null;case 19:if(U(Me),a=t.memoizedState,a===null)return Ne(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=vu(e),u!==null){for(t.flags|=128,vn(a,!1),e=u.updateQueue,t.updateQueue=e,Cu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)bf(l,e),l=l.sibling;return G(Me,Me.current&1|2),ie&&qt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&it()>Du&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=vu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Cu(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ie)return Ne(t),null}else 2*it()-a.renderingStartTime>Du&&l!==536870912&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=it(),e.sibling=null,l=Me.current,G(Me,n?l&1|2:l&1),ie&&qt(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return dt(t),yc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),l=t.updateQueue,l!==null&&Cu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zt(De),Ne(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function Pg(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zt(De),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qn(t),null;case 31:if(t.memoizedState!==null){if(dt(t),t.alternate===null)throw Error(f(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Me),null;case 4:return Oe(),null;case 10:return Zt(t.type),null;case 22:case 23:return dt(t),yc(),e!==null&&U(ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zt(De),null;case 25:return null;default:return null}}function Ko(e,t){switch(ac(t),t.tag){case 3:Zt(De),Oe();break;case 26:case 27:case 5:qn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&dt(t);break;case 13:dt(t);break;case 19:U(Me);break;case 10:Zt(t.type);break;case 22:case 23:dt(t),yc(),e!==null&&U(ql);break;case 24:Zt(De)}}function xn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(r){he(t,t.return,r)}}function hl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,n=t;var m=l,j=r;try{j()}catch(M){he(n,m,M)}}}a=a.next}while(a!==u)}}catch(M){he(t,t.return,M)}}function Jo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Hf(t,l)}catch(a){he(e,e.return,a)}}}function $o(e,t,l){l.props=Vl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){he(e,t,a)}}function yn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){he(e,t,n)}}function Dt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){he(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){he(e,t,n)}else l.current=null}function Wo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){he(e,e.return,n)}}function Wc(e,t,l){try{var a=e.stateNode;jv(a,e.type,l,t),a[Fe]=t}catch(n){he(e,e.return,n)}}function Fo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&jl(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fo(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&&jl(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 Ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ht));else if(a!==4&&(a===27&&jl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Ou(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&jl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ou(e,t,l),e=e.sibling;e!==null;)Ou(e,t,l),e=e.sibling}function Io(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ke(t,a,l),t[Ze]=e,t[Fe]=l}catch(u){he(e,e.return,u)}}var Kt=!1,He=!1,Pc=!1,Po=typeof WeakSet=="function"?WeakSet:Set,qe=null;function ev(e,t){if(e=e.containerInfo,ps=Fu,e=ff(e),ki(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,r=-1,m=-1,j=0,M=0,R=e,N=null;t:for(;;){for(var A;R!==l||n!==0&&R.nodeType!==3||(r=c+n),R!==u||a!==0&&R.nodeType!==3||(m=c+a),R.nodeType===3&&(c+=R.nodeValue.length),(A=R.firstChild)!==null;)N=R,R=A;for(;;){if(R===e)break t;if(N===l&&++j===n&&(r=c),N===u&&++M===a&&(m=c),(A=R.nextSibling)!==null)break;R=N,N=R.parentNode}R=A}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(js={focusedElem:e,selectionRange:l},Fu=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){switch(t=qe,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(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Q=Vl(l.type,n);e=a.getSnapshotBeforeUpdate(Q,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(J){he(l,l.return,J)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Es(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Es(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(f(163))}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}}function ed(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:$t(e,l),a&4&&xn(5,l);break;case 1:if($t(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){he(l,l.return,c)}else{var n=Vl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){he(l,l.return,c)}}a&64&&Jo(l),a&512&&yn(l,l.return);break;case 3:if($t(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Hf(e,t)}catch(c){he(l,l.return,c)}}break;case 27:t===null&&a&4&&Io(l);case 26:case 5:$t(e,l),t===null&&a&4&&Wo(l),a&512&&yn(l,l.return);break;case 12:$t(e,l);break;case 31:$t(e,l),a&4&&ad(e,l);break;case 13:$t(e,l),a&4&&nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=rv.bind(null,l),Cv(e,l))));break;case 22:if(a=l.memoizedState!==null||Kt,!a){t=t!==null&&t.memoizedState!==null||He,n=Kt;var u=He;Kt=a,(He=t)&&!u?Wt(e,l,(l.subtreeFlags&8772)!==0):$t(e,l),Kt=n,He=u}break;case 30:break;default:$t(e,l)}}function td(e){var t=e.alternate;t!==null&&(e.alternate=null,td(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ci(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 Ee=null,Pe=!1;function Jt(e,t,l){for(l=l.child;l!==null;)ld(e,t,l),l=l.sibling}function ld(e,t,l){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ga,l)}catch{}switch(l.tag){case 26:He||Dt(l,t),Jt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:He||Dt(l,t);var a=Ee,n=Pe;jl(l.type)&&(Ee=l.stateNode,Pe=!1),Jt(e,t,l),Tn(l.stateNode),Ee=a,Pe=n;break;case 5:He||Dt(l,t);case 6:if(a=Ee,n=Pe,Ee=null,Jt(e,t,l),Ee=a,Pe=n,Ee!==null)if(Pe)try{(Ee.nodeType===9?Ee.body:Ee.nodeName==="HTML"?Ee.ownerDocument.body:Ee).removeChild(l.stateNode)}catch(u){he(l,t,u)}else try{Ee.removeChild(l.stateNode)}catch(u){he(l,t,u)}break;case 18:Ee!==null&&(Pe?(e=Ee,Jd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Da(e)):Jd(Ee,l.stateNode));break;case 4:a=Ee,n=Pe,Ee=l.stateNode.containerInfo,Pe=!0,Jt(e,t,l),Ee=a,Pe=n;break;case 0:case 11:case 14:case 15:hl(2,l,t),He||hl(4,l,t),Jt(e,t,l);break;case 1:He||(Dt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&$o(l,t,a)),Jt(e,t,l);break;case 21:Jt(e,t,l);break;case 22:He=(a=He)||l.memoizedState!==null,Jt(e,t,l),He=a;break;default:Jt(e,t,l)}}function ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Da(e)}catch(l){he(t,t.return,l)}}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Da(e)}catch(l){he(t,t.return,l)}}function tv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Po),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Po),t;default:throw Error(f(435,e.tag))}}function Mu(e,t){var l=tv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=fv.bind(null,e,a);a.then(n,n)}})}function et(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(jl(r.type)){Ee=r.stateNode,Pe=!1;break e}break;case 5:Ee=r.stateNode,Pe=!1;break e;case 3:case 4:Ee=r.stateNode.containerInfo,Pe=!0;break e}r=r.return}if(Ee===null)throw Error(f(160));ld(u,c,n),Ee=null,Pe=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ud(t,e),t=t.sibling}var zt=null;function ud(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:et(t,e),tt(e),a&4&&(hl(3,e,e.return),xn(3,e),hl(5,e,e.return));break;case 1:et(t,e),tt(e),a&512&&(He||l===null||Dt(l,l.return)),a&64&&Kt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=zt;if(et(t,e),tt(e),a&512&&(He||l===null||Dt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Qa]||u[Ze]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ke(u,a,l),u[Ze]=e,Ye(u),a=u;break e;case"link":var c=u0("link","href",n).get(a+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(u=c[r],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(r,1);break t}}u=n.createElement(a),ke(u,a,l),n.head.appendChild(u);break;case"meta":if(c=u0("meta","content",n).get(a+(l.content||""))){for(r=0;r<c.length;r++)if(u=c[r],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(r,1);break t}}u=n.createElement(a),ke(u,a,l),n.head.appendChild(u);break;default:throw Error(f(468,a))}u[Ze]=e,Ye(u),a=u}e.stateNode=a}else i0(n,e.type,e.stateNode);else e.stateNode=n0(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?i0(n,e.type,e.stateNode):n0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,l.memoizedProps)}break;case 27:et(t,e),tt(e),a&512&&(He||l===null||Dt(l,l.return)),l!==null&&a&4&&Wc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(et(t,e),tt(e),a&512&&(He||l===null||Dt(l,l.return)),e.flags&32){n=e.stateNode;try{aa(n,"")}catch(Q){he(e,e.return,Q)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Wc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Pc=!0);break;case 6:if(et(t,e),tt(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Q){he(e,e.return,Q)}}break;case 3:if(Ku=null,n=zt,zt=Vu(t.containerInfo),et(t,e),zt=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Da(t.containerInfo)}catch(Q){he(e,e.return,Q)}Pc&&(Pc=!1,id(e));break;case 4:a=zt,zt=Vu(e.stateNode.containerInfo),et(t,e),tt(e),zt=a;break;case 12:et(t,e),tt(e);break;case 31:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mu(e,a)));break;case 13:et(t,e),tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ru=it()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mu(e,a)));break;case 22:n=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=Kt,M=He;if(Kt=j||n,He=M||m,et(t,e),He=M,Kt=j,tt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||m||Kt||He||kl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(u=m.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=m.stateNode;var R=m.memoizedProps.style,N=R!=null&&R.hasOwnProperty("display")?R.display:null;r.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(Q){he(m,m.return,Q)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(Q){he(m,m.return,Q)}}}else if(t.tag===18){if(l===null){m=t;try{var A=m.stateNode;n?$d(A,!0):$d(m.stateNode,!1)}catch(Q){he(m,m.return,Q)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Mu(e,l))));break;case 19:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mu(e,a)));break;case 30:break;case 21:break;default:et(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Fo(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var n=l.stateNode,u=Fc(e);Ou(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(aa(c,""),l.flags&=-33);var r=Fc(e);Ou(e,r,c);break;case 3:case 4:var m=l.stateNode.containerInfo,j=Fc(e);Ic(e,j,m);break;default:throw Error(f(161))}}catch(M){he(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function id(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;id(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $t(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ed(e,t.alternate,t),t=t.sibling}function kl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:hl(4,t,t.return),kl(t);break;case 1:Dt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&$o(t,t.return,l),kl(t);break;case 27:Tn(t.stateNode);case 26:case 5:Dt(t,t.return),kl(t);break;case 22:t.memoizedState===null&&kl(t);break;case 30:kl(t);break;default:kl(t)}e=e.sibling}}function Wt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:Wt(n,u,l),xn(4,u);break;case 1:if(Wt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(j){he(a,a.return,j)}if(a=u,n=a.updateQueue,n!==null){var r=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Bf(m[n],r)}catch(j){he(a,a.return,j)}}l&&c&64&&Jo(u),yn(u,u.return);break;case 27:Io(u);case 26:case 5:Wt(n,u,l),l&&a===null&&c&4&&Wo(u),yn(u,u.return);break;case 12:Wt(n,u,l);break;case 31:Wt(n,u,l),l&&c&4&&ad(n,u);break;case 13:Wt(n,u,l),l&&c&4&&nd(n,u);break;case 22:u.memoizedState===null&&Wt(n,u,l),yn(u,u.return);break;case 30:break;default:Wt(n,u,l)}t=t.sibling}}function es(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&an(l))}function ts(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e))}function Ct(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cd(e,t,l,a),t=t.sibling}function cd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ct(e,t,l,a),n&2048&&xn(9,t);break;case 1:Ct(e,t,l,a);break;case 3:Ct(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e)));break;case 12:if(n&2048){Ct(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,r=u.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){he(t,t.return,m)}}else Ct(e,t,l,a);break;case 31:Ct(e,t,l,a);break;case 13:Ct(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Ct(e,t,l,a):bn(e,t):u._visibility&2?Ct(e,t,l,a):(u._visibility|=2,Na(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&es(c,t);break;case 24:Ct(e,t,l,a),n&2048&&ts(t.alternate,t);break;default:Ct(e,t,l,a)}}function Na(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,r=l,m=a,j=c.flags;switch(c.tag){case 0:case 11:case 15:Na(u,c,r,m,n),xn(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?Na(u,c,r,m,n):bn(u,c):(M._visibility|=2,Na(u,c,r,m,n)),n&&j&2048&&es(c.alternate,c);break;case 24:Na(u,c,r,m,n),n&&j&2048&&ts(c.alternate,c);break;default:Na(u,c,r,m,n)}t=t.sibling}}function bn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:bn(l,a),n&2048&&es(a.alternate,a);break;case 24:bn(l,a),n&2048&&ts(a.alternate,a);break;default:bn(l,a)}t=t.sibling}}var pn=8192;function Ea(e,t,l){if(e.subtreeFlags&pn)for(e=e.child;e!==null;)sd(e,t,l),e=e.sibling}function sd(e,t,l){switch(e.tag){case 26:Ea(e,t,l),e.flags&pn&&e.memoizedState!==null&&Gv(l,zt,e.memoizedState,e.memoizedProps);break;case 5:Ea(e,t,l);break;case 3:case 4:var a=zt;zt=Vu(e.stateNode.containerInfo),Ea(e,t,l),zt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=pn,pn=16777216,Ea(e,t,l),pn=a):Ea(e,t,l));break;default:Ea(e,t,l)}}function rd(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 jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];qe=a,od(a,e)}rd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fd(e),e=e.sibling}function fd(e){switch(e.tag){case 0:case 11:case 15:jn(e),e.flags&2048&&hl(9,e,e.return);break;case 3:jn(e);break;case 12:jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_u(e)):jn(e);break;default:jn(e)}}function _u(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];qe=a,od(a,e)}rd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),_u(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,_u(t));break;default:_u(t)}e=e.sibling}}function od(e,t){for(;qe!==null;){var l=qe;switch(l.tag){case 0:case 11:case 15:hl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:an(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,qe=a;else e:for(l=e;qe!==null;){a=qe;var n=a.sibling,u=a.return;if(td(a),a===l){qe=null;break e}if(n!==null){n.return=u,qe=n;break e}qe=u}}}var lv={getCacheForType:function(e){var t=Qe(De),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Qe(De).controller.signal}},av=typeof WeakMap=="function"?WeakMap:Map,fe=0,pe=null,le=null,ne=0,me=0,mt=null,gl=!1,wa=!1,ls=!1,Ft=0,ze=0,vl=0,Kl=0,as=0,ht=0,Aa=0,Sn=null,lt=null,ns=!1,Ru=0,dd=0,Du=1/0,Uu=null,xl=null,Le=0,yl=null,Ta=null,It=0,us=0,is=null,md=null,Nn=0,cs=null;function gt(){return(fe&2)!==0&&ne!==0?ne&-ne:z.T!==null?ms():Tr()}function hd(){if(ht===0)if((ne&536870912)===0||ie){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),ht=e}else ht=536870912;return e=ot.current,e!==null&&(e.flags|=32),ht}function at(e,t,l){(e===pe&&(me===2||me===9)||e.cancelPendingCommit!==null)&&(za(e,0),bl(e,ne,ht,!1)),Xa(e,l),((fe&2)===0||e!==pe)&&(e===pe&&((fe&2)===0&&(Kl|=l),ze===4&&bl(e,ne,ht,!1)),Ut(e))}function gd(e,t,l){if((fe&6)!==0)throw Error(f(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Za(e,t),n=a?iv(e,t):rs(e,t,!0),u=a;do{if(n===0){wa&&!a&&bl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!nv(l)){n=rs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;n=Sn;var m=r.current.memoizedState.isDehydrated;if(m&&(za(r,c).flags|=256),c=rs(r,c,!1),c!==2){if(ls&&!m){r.errorRecoveryDisabledLanes|=u,Kl|=u,n=4;break e}u=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){za(e,0),bl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:bl(a,t,ht,!gl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(n=Ru+300-it(),10<n)){if(bl(a,t,ht,!gl),Vn(a,0,!0)!==0)break e;It=t,a.timeoutHandle=kd(vd.bind(null,a,l,lt,Uu,ns,t,ht,Kl,Aa,gl,u,"Throttled",-0,0),n);break e}vd(a,l,lt,Uu,ns,t,ht,Kl,Aa,gl,u,null,-0,0)}}break}while(!0);Ut(e)}function vd(e,t,l,a,n,u,c,r,m,j,M,R,N,A){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ht},sd(t,u,R);var Q=(u&62914560)===u?Ru-it():(u&4194048)===u?dd-it():0;if(Q=Zv(R,Q),Q!==null){It=u,e.cancelPendingCommit=Q(Ed.bind(null,e,t,u,l,a,n,c,r,m,M,R,null,N,A)),bl(e,u,c,!j);return}}Ed(e,t,u,l,a,n,c,r,m)}function nv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!rt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 bl(e,t,l,a){t&=~as,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-st(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&Er(e,l,t)}function Bu(){return(fe&6)===0?(En(0),!1):!0}function ss(){if(le!==null){if(me===0)var e=le.return;else e=le,Gt=Ll=null,Ec(e),ya=null,un=0,e=le;for(;e!==null;)Ko(e.alternate,e),e=e.return;le=null}}function za(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Ev(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),It=0,ss(),pe=e,le=l=Yt(e.current,null),ne=t,me=0,mt=null,gl=!1,wa=Za(e,t),ls=!1,Aa=ht=as=Kl=vl=ze=0,lt=Sn=null,ns=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-st(a),u=1<<n;t|=e[n],a&=~u}return Ft=t,au(),l}function xd(e,t){I=null,z.H=hn,t===xa||t===ou?(t=_f(),me=3):t===dc?(t=_f(),me=4):me=t===qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mt=t,le===null&&(ze=1,wu(e,bt(t,e.current)))}function yd(){var e=ot.current;return e===null?!0:(ne&4194048)===ne?Nt===null:(ne&62914560)===ne||(ne&536870912)!==0?e===Nt:!1}function bd(){var e=z.H;return z.H=hn,e===null?hn:e}function pd(){var e=z.A;return z.A=lv,e}function Hu(){ze=4,gl||(ne&4194048)!==ne&&ot.current!==null||(wa=!0),(vl&134217727)===0&&(Kl&134217727)===0||pe===null||bl(pe,ne,ht,!1)}function rs(e,t,l){var a=fe;fe|=2;var n=bd(),u=pd();(pe!==e||ne!==t)&&(Uu=null,za(e,t)),t=!1;var c=ze;e:do try{if(me!==0&&le!==null){var r=le,m=mt;switch(me){case 8:ss(),c=6;break e;case 3:case 2:case 9:case 6:ot.current===null&&(t=!0);var j=me;if(me=0,mt=null,Ca(e,r,m,j),l&&wa){c=0;break e}break;default:j=me,me=0,mt=null,Ca(e,r,m,j)}}uv(),c=ze;break}catch(M){xd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Gt=Ll=null,fe=a,z.H=n,z.A=u,le===null&&(pe=null,ne=0,au()),c}function uv(){for(;le!==null;)jd(le)}function iv(e,t){var l=fe;fe|=2;var a=bd(),n=pd();pe!==e||ne!==t?(Uu=null,Du=it()+500,za(e,t)):wa=Za(e,t);e:do try{if(me!==0&&le!==null){t=le;var u=mt;t:switch(me){case 1:me=0,mt=null,Ca(e,t,u,1);break;case 2:case 9:if(Of(u)){me=0,mt=null,Sd(t);break}t=function(){me!==2&&me!==9||pe!==e||(me=7),Ut(e)},u.then(t,t);break e;case 3:me=7;break e;case 4:me=5;break e;case 7:Of(u)?(me=0,mt=null,Sd(t)):(me=0,mt=null,Ca(e,t,u,7));break;case 5:var c=null;switch(le.tag){case 26:c=le.memoizedState;case 5:case 27:var r=le;if(c?c0(c):r.stateNode.complete){me=0,mt=null;var m=r.sibling;if(m!==null)le=m;else{var j=r.return;j!==null?(le=j,Lu(j)):le=null}break t}}me=0,mt=null,Ca(e,t,u,5);break;case 6:me=0,mt=null,Ca(e,t,u,6);break;case 8:ss(),ze=6;break e;default:throw Error(f(462))}}cv();break}catch(M){xd(e,M)}while(!0);return Gt=Ll=null,z.H=a,z.A=n,fe=l,le!==null?0:(pe=null,ne=0,au(),ze)}function cv(){for(;le!==null&&!Oh();)jd(le)}function jd(e){var t=Vo(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Lu(e):le=t}function Sd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Yo(l,t,t.pendingProps,t.type,void 0,ne);break;case 11:t=Yo(l,t,t.pendingProps,t.type.render,t.ref,ne);break;case 5:Ec(t);default:Ko(l,t),t=le=bf(t,Ft),t=Vo(l,t,Ft)}e.memoizedProps=e.pendingProps,t===null?Lu(e):le=t}function Ca(e,t,l,a){Gt=Ll=null,Ec(t),ya=null,un=0;var n=t.return;try{if($g(e,n,t,l,ne)){ze=1,wu(e,bt(l,e.current)),le=null;return}}catch(u){if(n!==null)throw le=n,u;ze=1,wu(e,bt(l,e.current)),le=null;return}t.flags&32768?(ie||a===1?e=!0:wa||(ne&536870912)!==0?e=!1:(gl=e=!0,(a===2||a===9||a===3||a===6)&&(a=ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Nd(t,e)):Lu(t)}function Lu(e){var t=e;do{if((t.flags&32768)!==0){Nd(t,gl);return}e=t.return;var l=Ig(t.alternate,t,Ft);if(l!==null){le=l;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ze===0&&(ze=5)}function Nd(e,t){do{var l=Pg(e.alternate,e);if(l!==null){l.flags&=32767,le=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){le=e;return}le=e=l}while(e!==null);ze=6,le=null}function Ed(e,t,l,a,n,u,c,r,m){e.cancelPendingCommit=null;do Yu();while(Le!==0);if((fe&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(u=t.lanes|t.childLanes,u|=Fi,qh(e,l,u,c,r,m),e===pe&&(le=pe=null,ne=0),Ta=t,yl=e,It=l,us=u,is=n,md=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ov(Gn,function(){return Cd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=Y.p,Y.p=2,c=fe,fe|=4;try{ev(e,t,l)}finally{fe=c,Y.p=n,z.T=a}}Le=1,wd(),Ad(),Td()}}function wd(){if(Le===1){Le=0;var e=yl,t=Ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=Y.p;Y.p=2;var n=fe;fe|=4;try{ud(t,e);var u=js,c=ff(e.containerInfo),r=u.focusedElem,m=u.selectionRange;if(c!==r&&r&&r.ownerDocument&&rf(r.ownerDocument.documentElement,r)){if(m!==null&&ki(r)){var j=m.start,M=m.end;if(M===void 0&&(M=j),"selectionStart"in r)r.selectionStart=j,r.selectionEnd=Math.min(M,r.value.length);else{var R=r.ownerDocument||document,N=R&&R.defaultView||window;if(N.getSelection){var A=N.getSelection(),Q=r.textContent.length,J=Math.min(m.start,Q),ye=m.end===void 0?J:Math.min(m.end,Q);!A.extend&&J>ye&&(c=ye,ye=J,J=c);var y=sf(r,J),g=sf(r,ye);if(y&&g&&(A.rangeCount!==1||A.anchorNode!==y.node||A.anchorOffset!==y.offset||A.focusNode!==g.node||A.focusOffset!==g.offset)){var p=R.createRange();p.setStart(y.node,y.offset),A.removeAllRanges(),J>ye?(A.addRange(p),A.extend(g.node,g.offset)):(p.setEnd(g.node,g.offset),A.addRange(p))}}}}for(R=[],A=r;A=A.parentNode;)A.nodeType===1&&R.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<R.length;r++){var _=R[r];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Fu=!!ps,js=ps=null}finally{fe=n,Y.p=a,z.T=l}}e.current=t,Le=2}}function Ad(){if(Le===2){Le=0;var e=yl,t=Ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=Y.p;Y.p=2;var n=fe;fe|=4;try{ed(e,t.alternate,t)}finally{fe=n,Y.p=a,z.T=l}}Le=3}}function Td(){if(Le===4||Le===3){Le=0,Mh();var e=yl,t=Ta,l=It,a=md;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Le=5:(Le=0,Ta=yl=null,zd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(xl=null),Ti(l),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ga,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,n=Y.p,Y.p=2,z.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var r=a[c];u(r.value,{componentStack:r.stack})}}finally{z.T=t,Y.p=n}}(It&3)!==0&&Yu(),Ut(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===cs?Nn++:(Nn=0,cs=e):Nn=0,En(0)}}function zd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,an(t)))}function Yu(){return wd(),Ad(),Td(),Cd()}function Cd(){if(Le!==5)return!1;var e=yl,t=us;us=0;var l=Ti(It),a=z.T,n=Y.p;try{Y.p=32>l?32:l,z.T=null,l=is,is=null;var u=yl,c=It;if(Le=0,Ta=yl=null,It=0,(fe&6)!==0)throw Error(f(331));var r=fe;if(fe|=4,fd(u.current),cd(u,u.current,c,l),fe=r,En(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ga,u)}catch{}return!0}finally{Y.p=n,z.T=a,zd(e,t)}}function Od(e,t,l){t=bt(l,t),t=Yc(e.stateNode,t,2),e=ol(e,t,2),e!==null&&(Xa(e,2),Ut(e))}function he(e,t,l){if(e.tag===3)Od(e,e,l);else for(;t!==null;){if(t.tag===3){Od(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(xl===null||!xl.has(a))){e=bt(l,e),l=Mo(2),a=ol(t,l,2),a!==null&&(_o(l,a,t,e),Xa(a,2),Ut(a));break}}t=t.return}}function fs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new av;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(ls=!0,n.add(l),e=sv.bind(null,e,t,l),t.then(e,e))}function sv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,pe===e&&(ne&l)===l&&(ze===4||ze===3&&(ne&62914560)===ne&&300>it()-Ru?(fe&2)===0&&za(e,0):as|=l,Aa===ne&&(Aa=0)),Ut(e)}function Md(e,t){t===0&&(t=Nr()),e=Ul(e,t),e!==null&&(Xa(e,t),Ut(e))}function rv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function fv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(t),Md(e,l)}function ov(e,t){return Ni(e,t)}var qu=null,Oa=null,os=!1,Gu=!1,ds=!1,pl=0;function Ut(e){e!==Oa&&e.next===null&&(Oa===null?qu=Oa=e:Oa=Oa.next=e),Gu=!0,os||(os=!0,mv())}function En(e,t){if(!ds&&Gu){ds=!0;do for(var l=!1,a=qu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,r=a.pingedLanes;u=(1<<31-st(42|e)+1)-1,u&=n&~(c&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ud(a,u))}else u=ne,u=Vn(a,a===pe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Za(a,u)||(l=!0,Ud(a,u));a=a.next}while(l);ds=!1}}function dv(){_d()}function _d(){Gu=os=!1;var e=0;pl!==0&&Nv()&&(e=pl);for(var t=it(),l=null,a=qu;a!==null;){var n=a.next,u=Rd(a,t);u===0?(a.next=null,l===null?qu=n:l.next=n,n===null&&(Oa=l)):(l=a,(e!==0||(u&3)!==0)&&(Gu=!0)),a=n}Le!==0&&Le!==5||En(e),pl!==0&&(pl=0)}function Rd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-st(u),r=1<<c,m=n[c];m===-1?((r&l)===0||(r&a)!==0)&&(n[c]=Yh(r,t)):m<=t&&(e.expiredLanes|=r),u&=~r}if(t=pe,l=ne,l=Vn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(me===2||me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ei(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Za(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ei(a),Ti(l)){case 2:case 8:l=jr;break;case 32:l=Gn;break;case 268435456:l=Sr;break;default:l=Gn}return a=Dd.bind(null,e),l=Ni(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ei(a),e.callbackPriority=2,e.callbackNode=null,2}function Dd(e,t){if(Le!==0&&Le!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Yu()&&e.callbackNode!==l)return null;var a=ne;return a=Vn(e,e===pe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(gd(e,a,t),Rd(e,it()),e.callbackNode!=null&&e.callbackNode===l?Dd.bind(null,e):null)}function Ud(e,t){if(Yu())return null;gd(e,t,!0)}function mv(){wv(function(){(fe&6)!==0?Ni(pr,dv):_d()})}function ms(){if(pl===0){var e=ga;e===0&&(e=Zn,Zn<<=1,(Zn&261888)===0&&(Zn=256)),pl=e}return pl}function Bd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$n(""+e)}function Hd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function hv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Bd((n[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?Bd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var r=new Pn("action","action",null,a,n);e.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(pl!==0){var m=c?Hd(n,c):new FormData(n);Rc(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(r.preventDefault(),m=c?Hd(n,c):new FormData(n),Rc(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var hs=0;hs<Wi.length;hs++){var gs=Wi[hs],gv=gs.toLowerCase(),vv=gs[0].toUpperCase()+gs.slice(1);Tt(gv,"on"+vv)}Tt(mf,"onAnimationEnd"),Tt(hf,"onAnimationIteration"),Tt(gf,"onAnimationStart"),Tt("dblclick","onDoubleClick"),Tt("focusin","onFocus"),Tt("focusout","onBlur"),Tt(_g,"onTransitionRun"),Tt(Rg,"onTransitionStart"),Tt(Dg,"onTransitionCancel"),Tt(vf,"onTransitionEnd"),ta("onMouseEnter",["mouseout","mouseover"]),ta("onMouseLeave",["mouseout","mouseover"]),ta("onPointerEnter",["pointerout","pointerover"]),ta("onPointerLeave",["pointerout","pointerover"]),Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wn="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(" "),xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wn));function Ld(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var r=a[c],m=r.instance,j=r.currentTarget;if(r=r.listener,m!==u&&n.isPropagationStopped())break e;u=r,n.currentTarget=j;try{u(n)}catch(M){lu(M)}n.currentTarget=null,u=m}else for(c=0;c<a.length;c++){if(r=a[c],m=r.instance,j=r.currentTarget,r=r.listener,m!==u&&n.isPropagationStopped())break e;u=r,n.currentTarget=j;try{u(n)}catch(M){lu(M)}n.currentTarget=null,u=m}}}}function ae(e,t){var l=t[zi];l===void 0&&(l=t[zi]=new Set);var a=e+"__bubble";l.has(a)||(Yd(t,e,2,!1),l.add(a))}function vs(e,t,l){var a=0;t&&(a|=4),Yd(l,e,a,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function xs(e){if(!e[Zu]){e[Zu]=!0,Or.forEach(function(l){l!=="selectionchange"&&(xv.has(l)||vs(l,!1,e),vs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,vs("selectionchange",!1,t))}}function Yd(e,t,l,a){switch(h0(t)){case 2:var n=Vv;break;case 8:n=kv;break;default:n=_s}l=n.bind(null,t,l,e),n=void 0,!Hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function ys(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var r=a.stateNode.containerInfo;if(r===n)break;if(c===4)for(c=a.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;r!==null;){if(c=Il(r),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){a=u=c;continue e}r=r.parentNode}}a=a.return}Zr(function(){var j=u,M=Ui(l),R=[];e:{var N=xf.get(e);if(N!==void 0){var A=Pn,Q=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":A=fg;break;case"focusin":Q="focus",A=Gi;break;case"focusout":Q="blur",A=Gi;break;case"beforeblur":case"afterblur":A=Gi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Ih;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=mg;break;case mf:case hf:case gf:A=tg;break;case vf:A=gg;break;case"scroll":case"scrollend":A=Wh;break;case"wheel":A=xg;break;case"copy":case"cut":case"paste":A=ag;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Kr;break;case"toggle":case"beforetoggle":A=bg}var J=(t&4)!==0,ye=!J&&(e==="scroll"||e==="scrollend"),y=J?N!==null?N+"Capture":null:N;J=[];for(var g=j,p;g!==null;){var _=g;if(p=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||p===null||y===null||(_=ka(g,y),_!=null&&J.push(An(g,_,p))),ye)break;g=g.return}0<J.length&&(N=new A(N,Q,null,l,M),R.push({event:N,listeners:J}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",N&&l!==Di&&(Q=l.relatedTarget||l.fromElement)&&(Il(Q)||Q[Fl]))break e;if((A||N)&&(N=M.window===M?M:(N=M.ownerDocument)?N.defaultView||N.parentWindow:window,A?(Q=l.relatedTarget||l.toElement,A=j,Q=Q?Il(Q):null,Q!==null&&(ye=w(Q),J=Q.tag,Q!==ye||J!==5&&J!==27&&J!==6)&&(Q=null)):(A=null,Q=j),A!==Q)){if(J=Vr,_="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(J=Kr,_="onPointerLeave",y="onPointerEnter",g="pointer"),ye=A==null?N:Va(A),p=Q==null?N:Va(Q),N=new J(_,g+"leave",A,l,M),N.target=ye,N.relatedTarget=p,_=null,Il(M)===j&&(J=new J(y,g+"enter",Q,l,M),J.target=p,J.relatedTarget=ye,_=J),ye=_,A&&Q)t:{for(J=yv,y=A,g=Q,p=0,_=y;_;_=J(_))p++;_=0;for(var K=g;K;K=J(K))_++;for(;0<p-_;)y=J(y),p--;for(;0<_-p;)g=J(g),_--;for(;p--;){if(y===g||g!==null&&y===g.alternate){J=y;break t}y=J(y),g=J(g)}J=null}else J=null;A!==null&&qd(R,N,A,J,!1),Q!==null&&ye!==null&&qd(R,ye,Q,J,!0)}}e:{if(N=j?Va(j):window,A=N.nodeName&&N.nodeName.toLowerCase(),A==="select"||A==="input"&&N.type==="file")var se=tf;else if(Pr(N))if(lf)se=Cg;else{se=Tg;var k=Ag}else A=N.nodeName,!A||A.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Ri(j.elementType)&&(se=tf):se=zg;if(se&&(se=se(e,j))){ef(R,se,l,M);break e}k&&k(e,N,j),e==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&_i(N,"number",N.value)}switch(k=j?Va(j):window,e){case"focusin":(Pr(k)||k.contentEditable==="true")&&(ca=k,Ki=j,en=null);break;case"focusout":en=Ki=ca=null;break;case"mousedown":Ji=!0;break;case"contextmenu":case"mouseup":case"dragend":Ji=!1,of(R,l,M);break;case"selectionchange":if(Mg)break;case"keydown":case"keyup":of(R,l,M)}var P;if(Xi)e:{switch(e){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else ia?Fr(e,l)&&(ue="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ue="onCompositionStart");ue&&(Jr&&l.locale!=="ko"&&(ia||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&ia&&(P=Xr()):(nl=M,Li="value"in nl?nl.value:nl.textContent,ia=!0)),k=Xu(j,ue),0<k.length&&(ue=new kr(ue,e,null,l,M),R.push({event:ue,listeners:k}),P?ue.data=P:(P=Ir(l),P!==null&&(ue.data=P)))),(P=jg?Sg(e,l):Ng(e,l))&&(ue=Xu(j,"onBeforeInput"),0<ue.length&&(k=new kr("onBeforeInput","beforeinput",null,l,M),R.push({event:k,listeners:ue}),k.data=P)),hv(R,e,j,l,M)}Ld(R,t)})}function An(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=ka(e,l),n!=null&&a.unshift(An(e,n,u)),n=ka(e,t),n!=null&&a.push(An(e,n,u))),e.tag===3)return a;e=e.return}return[]}function yv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var r=l,m=r.alternate,j=r.stateNode;if(r=r.tag,m!==null&&m===a)break;r!==5&&r!==26&&r!==27||j===null||(m=j,n?(j=ka(l,u),j!=null&&c.unshift(An(l,j,m))):n||(j=ka(l,u),j!=null&&c.push(An(l,j,m)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var bv=/\r\n?/g,pv=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(bv,`
|
|
9
|
-
`).replace(pv,"")}function Zd(e,t){return t=Gd(t),Gd(e)===t}function xe(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||aa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&aa(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":qr(e,a,u);break;case"data":if(t!=="object"){Kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(t!=="input"&&xe(e,t,"name",n.name,n,null),xe(e,t,"formEncType",n.formEncType,n,null),xe(e,t,"formMethod",n.formMethod,n,null),xe(e,t,"formTarget",n.formTarget,n,null)):(xe(e,t,"encType",n.encType,n,null),xe(e,t,"method",n.method,n,null),xe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Ht);break;case"onScroll":a!=null&&ae("scroll",e);break;case"onScrollEnd":a!=null&&ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=$n(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ae("beforetoggle",e),ae("toggle",e),kn(e,"popover",a);break;case"xlinkActuate":Bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":kn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Jh.get(l)||l,kn(e,l,a))}}function bs(e,t,l,a,n,u){switch(l){case"style":qr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"children":typeof a=="string"?aa(e,a):(typeof a=="number"||typeof a=="bigint")&&aa(e,""+a);break;case"onScroll":a!=null&&ae("scroll",e);break;case"onScrollEnd":a!=null&&ae("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ht);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Fe]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):kn(e,l,a)}}}function ke(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ae("error",e),ae("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:xe(e,t,u,c,l,null)}}n&&xe(e,t,"srcSet",l.srcSet,l,null),a&&xe(e,t,"src",l.src,l,null);return;case"input":ae("invalid",e);var r=u=c=n=null,m=null,j=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":c=M;break;case"checked":m=M;break;case"defaultChecked":j=M;break;case"value":u=M;break;case"defaultValue":r=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(f(137,t));break;default:xe(e,t,a,M,l,null)}}Br(e,u,r,m,j,c,n,!1);return;case"select":ae("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":u=r;break;case"defaultValue":c=r;break;case"multiple":a=r;default:xe(e,t,n,r,l,null)}t=u,l=c,e.multiple=!!a,t!=null?la(e,!!a,t,!1):l!=null&&la(e,!!a,l,!0);return;case"textarea":ae("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":a=r;break;case"defaultValue":n=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:xe(e,t,c,r,l,null)}Lr(e,a,n,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:xe(e,t,m,a,l,null)}return;case"dialog":ae("beforetoggle",e),ae("toggle",e),ae("cancel",e),ae("close",e);break;case"iframe":case"object":ae("load",e);break;case"video":case"audio":for(a=0;a<wn.length;a++)ae(wn[a],e);break;case"image":ae("error",e),ae("load",e);break;case"details":ae("toggle",e);break;case"embed":case"source":case"link":ae("error",e),ae("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(j in l)if(l.hasOwnProperty(j)&&(a=l[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:xe(e,t,j,a,l,null)}return;default:if(Ri(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&bs(e,t,M,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&xe(e,t,r,a,l,null))}function jv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,r=null,m=null,j=null,M=null;for(A in l){var R=l[A];if(l.hasOwnProperty(A)&&R!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":m=R;default:a.hasOwnProperty(A)||xe(e,t,A,null,a,R)}}for(var N in a){var A=a[N];if(R=l[N],a.hasOwnProperty(N)&&(A!=null||R!=null))switch(N){case"type":u=A;break;case"name":n=A;break;case"checked":j=A;break;case"defaultChecked":M=A;break;case"value":c=A;break;case"defaultValue":r=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(f(137,t));break;default:A!==R&&xe(e,t,N,A,a,R)}}Mi(e,c,r,m,j,M,u,n);return;case"select":A=c=r=N=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":A=m;default:a.hasOwnProperty(u)||xe(e,t,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":N=u;break;case"defaultValue":r=u;break;case"multiple":c=u;default:u!==m&&xe(e,t,n,u,a,m)}t=r,l=c,a=A,N!=null?la(e,!!l,N,!1):!!a!=!!l&&(t!=null?la(e,!!l,t,!0):la(e,!!l,l?[]:"",!1));return;case"textarea":A=N=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:xe(e,t,r,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":N=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==u&&xe(e,t,c,n,a,u)}Hr(e,N,A);return;case"option":for(var Q in l)if(N=l[Q],l.hasOwnProperty(Q)&&N!=null&&!a.hasOwnProperty(Q))switch(Q){case"selected":e.selected=!1;break;default:xe(e,t,Q,null,a,N)}for(m in a)if(N=a[m],A=l[m],a.hasOwnProperty(m)&&N!==A&&(N!=null||A!=null))switch(m){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:xe(e,t,m,N,a,A)}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 J in l)N=l[J],l.hasOwnProperty(J)&&N!=null&&!a.hasOwnProperty(J)&&xe(e,t,J,null,a,N);for(j in a)if(N=a[j],A=l[j],a.hasOwnProperty(j)&&N!==A&&(N!=null||A!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(f(137,t));break;default:xe(e,t,j,N,a,A)}return;default:if(Ri(t)){for(var ye in l)N=l[ye],l.hasOwnProperty(ye)&&N!==void 0&&!a.hasOwnProperty(ye)&&bs(e,t,ye,void 0,a,N);for(M in a)N=a[M],A=l[M],!a.hasOwnProperty(M)||N===A||N===void 0&&A===void 0||bs(e,t,M,N,a,A);return}}for(var y in l)N=l[y],l.hasOwnProperty(y)&&N!=null&&!a.hasOwnProperty(y)&&xe(e,t,y,null,a,N);for(R in a)N=a[R],A=l[R],!a.hasOwnProperty(R)||N===A||N==null&&A==null||xe(e,t,R,N,a,A)}function Xd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,r=n.duration;if(u&&r&&Xd(c)){for(c=0,r=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],j=m.startTime;if(j>r)break;var M=m.transferSize,R=m.initiatorType;M&&Xd(R)&&(m=m.responseEnd,c+=M*(m<r?1:(r-j)/(m-j)))}if(--a,t+=8*(u+c)/(n.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 ps=null,js=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Qd(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 Vd(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 Ss(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 Ns=null;function Nv(){var e=window.event;return e&&e.type==="popstate"?e===Ns?!1:(Ns=e,!0):(Ns=null,!1)}var kd=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,wv=typeof queueMicrotask=="function"?queueMicrotask:typeof Kd<"u"?function(e){return Kd.resolve(null).then(e).catch(Av)}:kd;function Av(e){setTimeout(function(){throw e})}function jl(e){return e==="head"}function Jd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Da(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Tn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Tn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,r=u.nodeName;u[Qa]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Tn(e.ownerDocument.body);l=n}while(l);Da(t)}function $d(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Es(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Es(l),Ci(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Tv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Qa])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!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Et(e.nextSibling),e===null)break}return null}function zv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Et(e.nextSibling),e===null))return null;return e}function Wd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Et(e.nextSibling),e===null))return null;return e}function ws(e){return e.data==="$?"||e.data==="$~"}function As(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Cv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Et(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 Ts=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Et(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Id(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Pd(e,t,l){switch(t=Qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Tn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ci(e)}var wt=new Map,e0=new Set;function Vu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pt=Y.d;Y.d={f:Ov,r:Mv,D:_v,C:Rv,L:Dv,m:Uv,X:Hv,S:Bv,M:Lv};function Ov(){var e=Pt.f(),t=Bu();return e||t}function Mv(e){var t=Pl(e);t!==null&&t.tag===5&&t.type==="form"?xo(t):Pt.r(e)}var Ma=typeof document>"u"?null:document;function t0(e,t,l){var a=Ma;if(a&&typeof t=="string"&&t){var n=xt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),e0.has(n)||(e0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function _v(e){Pt.D(e),t0("dns-prefetch",e,null)}function Rv(e,t){Pt.C(e,t),t0("preconnect",e,t)}function Dv(e,t,l){Pt.L(e,t,l);var a=Ma;if(a&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var u=n;switch(t){case"style":u=_a(e);break;case"script":u=Ra(e)}wt.has(u)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),wt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(zn(u))||t==="script"&&a.querySelector(Cn(u))||(t=a.createElement("link"),ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Uv(e,t){Pt.m(e,t);var l=Ma;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ra(e)}if(!wt.has(u)&&(e=b({rel:"modulepreload",href:e},t),wt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cn(u)))return}a=l.createElement("link"),ke(a,"link",e),Ye(a),l.head.appendChild(a)}}}function Bv(e,t,l){Pt.S(e,t,l);var a=Ma;if(a&&e){var n=ea(a).hoistableStyles,u=_a(e);t=t||"default";var c=n.get(u);if(!c){var r={loading:0,preload:null};if(c=a.querySelector(zn(u)))r.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=wt.get(u))&&zs(e,l);var m=c=a.createElement("link");Ye(m),ke(m,"link",e),m._p=new Promise(function(j,M){m.onload=j,m.onerror=M}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,ku(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:r},n.set(u,c)}}}function Hv(e,t){Pt.X(e,t);var l=Ma;if(l&&e){var a=ea(l).hoistableScripts,n=Ra(e),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(e=b({src:e,async:!0},t),(t=wt.get(n))&&Cs(e,t),u=l.createElement("script"),Ye(u),ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Lv(e,t){Pt.M(e,t);var l=Ma;if(l&&e){var a=ea(l).hoistableScripts,n=Ra(e),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(e=b({src:e,async:!0,type:"module"},t),(t=wt.get(n))&&Cs(e,t),u=l.createElement("script"),Ye(u),ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function l0(e,t,l,a){var n=(n=te.current)?Vu(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=_a(l.href),l=ea(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=_a(l.href);var u=ea(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(zn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},wt.set(e,l),u||Yv(n,e,l,c.state))),t&&a===null)throw Error(f(528,""));return c}if(t&&a!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ra(l),l=ea(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function _a(e){return'href="'+xt(e)+'"'}function zn(e){return'link[rel="stylesheet"]['+e+"]"}function a0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Yv(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ke(t,"link",l),Ye(t),e.head.appendChild(t))}function Ra(e){return'[src="'+xt(e)+'"]'}function Cn(e){return"script[async]"+e}function n0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),ke(a,"style",n),ku(a,l.precedence,e),t.instance=a;case"stylesheet":n=_a(l.href);var u=e.querySelector(zn(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=a0(l),(n=wt.get(n))&&zs(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var c=u;return c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),ke(u,"link",a),t.state.loading|=4,ku(u,l.precedence,e),t.instance=u;case"script":return u=Ra(l.src),(n=e.querySelector(Cn(u)))?(t.instance=n,Ye(n),n):(a=l,(n=wt.get(u))&&(a=b({},l),Cs(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),ke(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ku(a,l.precedence,e));return t.instance}function ku(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var r=a[c];if(r.dataset.precedence===t)u=r;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function u0(e,t,l){if(Ku===null){var a=new Map,n=Ku=new Map;n.set(l,a)}else n=Ku,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Qa]||u[Ze]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var r=a.get(c);r?r.push(u):a.set(c,[u])}}return a}function i0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function qv(e,t,l){if(l===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 c0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=_a(a.href),u=t.querySelector(zn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=a0(a),(n=wt.get(n))&&zs(a,n),u=u.createElement("link"),Ye(u);var c=u;c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),ke(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Os=0;function Zv(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Os===0&&(Os=62500*Sv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Os?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $u=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(Xv,e),$u=null,Ju.call(e))}function Xv(e,t){if(!(t.state.loading&4)){var l=$u.get(e);if(l)var a=l.get(null);else{l=new Map,$u.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Ju.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var On={$$typeof:oe,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Qv(e,t,l,a,n,u,c,r,m){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=wi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wi(0),this.hiddenUpdates=wi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function s0(e,t,l,a,n,u,c,r,m,j,M,R){return e=new Qv(e,t,l,c,m,j,M,R,r),t=1,u===!0&&(t|=24),u=ft(3,null,null,t),e.current=u,u.stateNode=e,t=rc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},mc(u),e}function r0(e){return e?(e=fa,e):fa}function f0(e,t,l,a,n,u){n=r0(n),a.context===null?a.context=n:a.pendingContext=n,a=fl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=ol(e,a,t),l!==null&&(at(l,e,t),sn(l,e,t))}function o0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ms(e,t){o0(e,t),(e=e.alternate)&&o0(e,t)}function d0(e){if(e.tag===13||e.tag===31){var t=Ul(e,67108864);t!==null&&at(t,e,67108864),Ms(e,67108864)}}function m0(e){if(e.tag===13||e.tag===31){var t=gt();t=Ai(t);var l=Ul(e,t);l!==null&&at(l,e,t),Ms(e,t)}}var Fu=!0;function Vv(e,t,l,a){var n=z.T;z.T=null;var u=Y.p;try{Y.p=2,_s(e,t,l,a)}finally{Y.p=u,z.T=n}}function kv(e,t,l,a){var n=z.T;z.T=null;var u=Y.p;try{Y.p=8,_s(e,t,l,a)}finally{Y.p=u,z.T=n}}function _s(e,t,l,a){if(Fu){var n=Rs(a);if(n===null)ys(e,t,a,Iu,l),g0(e,a);else if(Jv(n,e,t,l,a))a.stopPropagation();else if(g0(e,a),t&4&&-1<Kv.indexOf(e)){for(;n!==null;){var u=Pl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ol(u.pendingLanes);if(c!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var m=1<<31-st(c);r.entanglements[1]|=m,c&=~m}Ut(u),(fe&6)===0&&(Du=it()+500,En(0))}}break;case 31:case 13:r=Ul(u,2),r!==null&&at(r,u,2),Bu(),Ms(u,2)}if(u=Rs(a),u===null&&ys(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ys(e,t,a,null,l)}}function Rs(e){return e=Ui(e),Ds(e)}var Iu=null;function Ds(e){if(Iu=null,e=Il(e),e!==null){var t=w(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=E(t),e!==null)return e;e=null}else if(l===31){if(e=C(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Iu=e,null}function h0(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(_h()){case pr:return 2;case jr:return 8;case Gn:case Rh:return 32;case Sr:return 268435456;default:return 32}default:return 32}}var Us=!1,Sl=null,Nl=null,El=null,Mn=new Map,_n=new Map,wl=[],Kv="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 g0(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":El=null;break;case"pointerover":case"pointerout":Mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_n.delete(t.pointerId)}}function Rn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Pl(t),t!==null&&d0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Jv(e,t,l,a,n){switch(t){case"focusin":return Sl=Rn(Sl,e,t,l,a,n),!0;case"dragenter":return Nl=Rn(Nl,e,t,l,a,n),!0;case"mouseover":return El=Rn(El,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Mn.set(u,Rn(Mn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,_n.set(u,Rn(_n.get(u)||null,e,t,l,a,n)),!0}return!1}function v0(e){var t=Il(e.target);if(t!==null){var l=w(t);if(l!==null){if(t=l.tag,t===13){if(t=E(l),t!==null){e.blockedOn=t,zr(e.priority,function(){m0(l)});return}}else if(t===31){if(t=C(l),t!==null){e.blockedOn=t,zr(e.priority,function(){m0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Rs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Di=a,l.target.dispatchEvent(a),Di=null}else return t=Pl(l),t!==null&&d0(t),e.blockedOn=l,!1;t.shift()}return!0}function x0(e,t,l){Pu(e)&&l.delete(t)}function $v(){Us=!1,Sl!==null&&Pu(Sl)&&(Sl=null),Nl!==null&&Pu(Nl)&&(Nl=null),El!==null&&Pu(El)&&(El=null),Mn.forEach(x0),_n.forEach(x0)}function ei(e,t){e.blockedOn===t&&(e.blockedOn=null,Us||(Us=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,$v)))}var ti=null;function y0(e){ti!==e&&(ti=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){ti===e&&(ti=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ds(a||l)===null)continue;break}var u=Pl(l);u!==null&&(e.splice(t,3),t-=3,Rc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Da(e){function t(m){return ei(m,e)}Sl!==null&&ei(Sl,e),Nl!==null&&ei(Nl,e),El!==null&&ei(El,e),Mn.forEach(t),_n.forEach(t);for(var l=0;l<wl.length;l++){var a=wl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(l=wl[0],l.blockedOn===null);)v0(l),l.blockedOn===null&&wl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Fe]||null;if(typeof u=="function")c||y0(l);else if(c){var r=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Fe]||null)r=c.formAction;else if(Ds(n)!==null)continue}else r=c.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),y0(l)}}}function b0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Bs(e){this._internalRoot=e}li.prototype.render=Bs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,a=gt();f0(l,a,e,t,null,null)},li.prototype.unmount=Bs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;f0(e.current,2,null,e,null,null),Bu(),t[Fl]=null}};function li(e){this._internalRoot=e}li.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<wl.length&&t!==0&&t<wl[l].priority;l++);wl.splice(l,0,e),l===0&&v0(e)}};var p0=o.version;if(p0!=="19.2.0")throw Error(f(527,p0,"19.2.0"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=x(t),e=e!==null?D(e):null,e=e===null?null:e.stateNode,e};var Wv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ai.isDisabled&&ai.supportsFiber)try{Ga=ai.inject(Wv),ct=ai}catch{}}return Ba.createRoot=function(e,t){if(!T(e))throw Error(f(299));var l=!1,a="",n=To,u=zo,c=Co;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=s0(e,1,!1,null,null,l,a,null,n,u,c,b0),e[Fl]=t.current,xs(e),new Bs(t)},Ba.hydrateRoot=function(e,t,l){if(!T(e))throw Error(f(299));var a=!1,n="",u=To,c=zo,r=Co,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=s0(e,1,!0,t,l??null,a,n,m,u,c,r,b0),t.context=r0(null),l=t.current,a=gt(),a=Ai(a),n=fl(a),n.callback=null,ol(l,n,a),l=a,t.current.lanes=l,Xa(t,l),Ut(t),e[Fl]=t.current,xs(e),new li(t)},Ba.version="19.2.0",Ba}var Ks;function M0(){if(Ks)return ii.exports;Ks=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),ii.exports=O0(),ii.exports}var _0=M0();const R0=Hs(_0);function D0(s,o){if(s instanceof RegExp)return{keys:!1,pattern:s};var d,f,T,w,E=[],C="",S=s.split("/");for(S[0]||S.shift();T=S.shift();)d=T[0],d==="*"?(E.push(d),C+=T[1]==="?"?"(?:/(.*))?":"/(.*)"):d===":"?(f=T.indexOf("?",1),w=T.indexOf(".",1),E.push(T.substring(1,~f?f:~w?w:T.length)),C+=~f&&!~w?"(?:/([^/]+?))?":"/([^/]+?)",~w&&(C+=(~f?"?":"")+"\\"+T.substring(w))):C+="/"+T;return{keys:E,pattern:new RegExp("^"+C+(o?"(?=$|/)":"/?$"),"i")}}var fi={exports:{}},oi={};var Js;function U0(){if(Js)return oi;Js=1;var s=Dn();function o(b,O){return b===O&&(b!==0||1/b===1/O)||b!==b&&O!==O}var d=typeof Object.is=="function"?Object.is:o,f=s.useState,T=s.useEffect,w=s.useLayoutEffect,E=s.useDebugValue;function C(b,O){var Z=O(),B=f({inst:{value:Z,getSnapshot:O}}),H=B[0].inst,q=B[1];return w(function(){H.value=Z,H.getSnapshot=O,S(H)&&q({inst:H})},[b,Z,O]),T(function(){return S(H)&&q({inst:H}),b(function(){S(H)&&q({inst:H})})},[b]),E(Z),Z}function S(b){var O=b.getSnapshot;b=b.value;try{var Z=O();return!d(b,Z)}catch{return!0}}function x(b,O){return O()}var D=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:C;return oi.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:D,oi}var $s;function B0(){return $s||($s=1,fi.exports=U0()),fi.exports}var H0=B0();const L0=w0.useInsertionEffect,Y0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,q0=L0||Y0,Ws=s=>{const o=h.useRef([s,(...d)=>o[0](...d)]).current;return q0(()=>{o[0]=s}),o[1]},G0="popstate",di="pushState",mi="replaceState",Fs=[G0,di,mi,"hashchange"],Z0=s=>{for(const o of Fs)addEventListener(o,s);return()=>{for(const o of Fs)removeEventListener(o,s)}},Is=(s,o)=>H0.useSyncExternalStore(Z0,s,o),X0=()=>location.search,Q0=({ssrSearch:s=""}={})=>Is(X0,()=>s),Ps=()=>location.pathname,V0=({ssrPath:s}={})=>Is(Ps,s?()=>s:Ps),k0=(s,{replace:o=!1,state:d=null}={})=>history[o?mi:di](d,"",s),K0=(s={})=>[V0(s),k0],er=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[er]>"u"){for(const s of[di,mi]){const o=history[s];history[s]=function(){const d=o.apply(this,arguments),f=new Event(s);return f.arguments=arguments,dispatchEvent(f),d}}Object.defineProperty(window,er,{value:!0})}const J0=(s,o)=>o.toLowerCase().indexOf(s.toLowerCase())?"~"+o:o.slice(s.length)||"/",tr=(s="")=>s==="/"?"":s,$0=(s,o)=>s[0]==="~"?s.slice(1):tr(o)+s,W0=(s="",o)=>J0(lr(tr(s)),lr(o)),lr=s=>{try{return decodeURI(s)}catch{return s}},ar={hook:K0,searchHook:Q0,parser:D0,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:s=>s},nr=h.createContext(ar),Jl=()=>h.useContext(nr),ur={},ir=h.createContext(ur),F0=()=>h.useContext(ir),Un=s=>{const[o,d]=s.hook(s);return[W0(s.base,o),Ws((f,T)=>d($0(f,s.base),T))]},Bn=()=>Un(Jl()),hi=(s,o,d,f)=>{const{pattern:T,keys:w}=o instanceof RegExp?{keys:!1,pattern:o}:s(o||"*",f),E=T.exec(d)||[],[C,...S]=E;return C!==void 0?[!0,(()=>{const x=w!==!1?Object.fromEntries(w.map((b,O)=>[b,S[O]])):E.groups;let D={...S};return x&&Object.assign(D,x),D})(),...f?[C]:[]]:[!1,null]},I0=s=>hi(Jl().parser,s,Bn()[0]),P0=({children:s,...o})=>{const d=Jl(),f=o.hook?ar:d;let T=f;const[w,E]=o.ssrPath?.split("?")??[];E&&(o.ssrSearch=E,o.ssrPath=w),o.hrefs=o.hrefs??o.hook?.hrefs;let C=h.useRef({}),S=C.current,x=S;for(let D in f){const b=D==="base"?f[D]+(o[D]||""):o[D]||f[D];S===x&&b!==x[D]&&(C.current=x={...x}),x[D]=b,(b!==f[D]||b!==T[D])&&(T=x)}return h.createElement(nr.Provider,{value:T,children:s})},cr=({children:s,component:o},d)=>o?h.createElement(o,{params:d}):typeof s=="function"?s(d):s,em=s=>{let o=h.useRef(ur);const d=o.current;return o.current=Object.keys(s).length!==Object.keys(d).length||Object.entries(s).some(([f,T])=>T!==d[f])?s:d},Ha=({path:s,nest:o,match:d,...f})=>{const T=Jl(),[w]=Un(T),[E,C,S]=d??hi(T.parser,s,w,o),x=em({...F0(),...C});if(!E)return null;const D=S?h.createElement(P0,{base:S},cr(f,x)):cr(f,x);return h.createElement(ir.Provider,{value:x,children:D})};h.forwardRef((s,o)=>{const d=Jl(),[f,T]=Un(d),{to:w="",href:E=w,onClick:C,asChild:S,children:x,className:D,replace:b,state:O,...Z}=s,B=Ws(q=>{q.ctrlKey||q.metaKey||q.altKey||q.shiftKey||q.button!==0||(C?.(q),q.defaultPrevented||(q.preventDefault(),T(E,s)))}),H=d.hrefs(E[0]==="~"?E.slice(1):d.base+E,d);return S&&h.isValidElement(x)?h.cloneElement(x,{onClick:B,href:H}):h.createElement("a",{...Z,onClick:B,href:H,className:D?.call?D(f===E):D,children:x,ref:o})});const sr=s=>Array.isArray(s)?s.flatMap(o=>sr(o&&o.type===h.Fragment?o.props.children:o)):[s],tm=({children:s,location:o})=>{const d=Jl(),[f]=Un(d);for(const T of sr(s)){let w=0;if(h.isValidElement(T)&&(w=hi(d.parser,T.props.path,o||f,T.props.nest))[0])return h.cloneElement(T,{match:w})}return null};function $l(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}async function lm(){if($l()&&window.VIZZLY_REPORTER_DATA)return window.VIZZLY_REPORTER_DATA;let s=await fetch("/api/report-data");if(!s.ok)throw new Error("Failed to fetch report data");return await s.json()}async function am(s){if($l())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");let o=await fetch("/api/baseline/accept",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s})});if(!o.ok)throw new Error("Failed to accept baseline");return o.json()}async function rr(){if($l())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");let s=await fetch("/api/baseline/accept-all",{method:"POST",headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error("Failed to accept all baselines");return s.json()}async function nm(){if($l())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");let s=await fetch("/api/baseline/reset",{method:"POST",headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error("Failed to reset baselines");return s.json()}function um(s){let[o,d]=h.useState(s),[f,T]=h.useState(!s),[w,E]=h.useState(null),C=h.useRef(null),S=h.useCallback(async(x=!1)=>{if(!$l())try{x||T(!0);let D=await lm();JSON.stringify(D)!==JSON.stringify(o)&&d(D),E(null)}catch(D){E(D.message)}finally{x||T(!1)}},[o]);return h.useEffect(()=>{s||S()},[s,S]),h.useEffect(()=>{if(!(!o||$l()))return C.current=setInterval(()=>{S(!0)},2e3),()=>{C.current&&clearInterval(C.current)}},[o,S]),{reportData:o,setReportData:d,loading:f,error:w,refetch:S}}function im({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 cm=h.forwardRef(im);function sm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const rm=h.forwardRef(sm);function fm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Hn=h.forwardRef(fm);function om({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 dm=h.forwardRef(om);function mm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const hm=h.forwardRef(mm);function gm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 vm=h.forwardRef(gm);function xm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 ym=h.forwardRef(xm);function bm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 La=h.forwardRef(bm);function pm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const fr=h.forwardRef(pm);function jm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const or=h.forwardRef(jm);function Sm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Nm=h.forwardRef(Sm);function Em({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const wm=h.forwardRef(Em);function Am({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Tm=h.forwardRef(Am);function zm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const dr=h.forwardRef(zm);function Cm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 gi=h.forwardRef(Cm);function Om({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Mm=h.forwardRef(Om);function _m({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Rm=h.forwardRef(_m);function Dm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Um=h.forwardRef(Dm);function Bm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Hm=h.forwardRef(Bm);function Lm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Ym=h.forwardRef(Lm);function qm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Gm=h.forwardRef(qm);function Zm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 mr=h.forwardRef(Zm);function Xm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):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 Ln=h.forwardRef(Xm);function Qm({title:s,titleId:o,...d},f){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:f,"aria-labelledby":o},d),s?h.createElement("title",{id:o},s):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const vi=h.forwardRef(Qm);function xi({loading:s,onNavigate:o,currentView:d}){let[f,T]=h.useState(!1),w=[{key:"comparisons",label:"Comparisons"},{key:"stats",label:"Stats"},{key:"projects",label:"Projects"},{key:"settings",label:"Settings"}],E=C=>{o?.(C),T(!1)};return i.jsx("nav",{className:"bg-black/20 backdrop-blur-sm border-b border-gray-700",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[i.jsxs("div",{className:"flex items-center justify-between h-14 md:h-16",children:[i.jsx("button",{onClick:()=>E("comparisons"),className:"text-xl md:text-2xl font-bold text-amber-500 hover:text-amber-400 transition-colors touch-manipulation",children:"Vizzly TDD"}),o&&i.jsx("div",{className:"hidden md:flex items-center space-x-1",children:w.map(C=>i.jsx("button",{onClick:()=>E(C.key),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${d===C.key?"bg-amber-500/20 text-amber-400":"text-gray-400 hover:text-white hover:bg-slate-700/50"}`,children:C.label},C.key))}),i.jsxs("div",{className:"flex items-center gap-3",children:[s&&i.jsxs("div",{className:"flex items-center space-x-2 text-amber-400",children:[i.jsx("div",{className:"w-4 h-4 border-2 border-amber-400/30 border-t-amber-400 rounded-full animate-spin"}),i.jsx("span",{className:"hidden sm:inline text-sm",children:"Refreshing..."})]}),o&&i.jsx("button",{onClick:()=>T(!f),className:"md:hidden p-2 text-gray-400 hover:text-white rounded-lg hover:bg-slate-700/50 transition-colors touch-manipulation","aria-label":"Toggle menu",children:f?i.jsx(vi,{className:"w-6 h-6"}):i.jsx(hm,{className:"w-6 h-6"})})]})]}),o&&f&&i.jsx("div",{className:"md:hidden border-t border-gray-700/50 py-2 animate-slide-down",children:i.jsx("div",{className:"flex flex-col space-y-1",children:w.map(C=>i.jsx("button",{onClick:()=>E(C.key),className:`w-full text-left px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${d===C.key?"bg-amber-500/20 text-amber-400":"text-gray-300 hover:text-white hover:bg-slate-700/50"}`,children:C.label},C.key))})})]})})}const el={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion",SIDE_BY_SIDE:"side-by-side"},Ot={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},tl={PRIORITY:"priority",NAME:"name",TIME:"time"},Tl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function Vm(s){return!s||s.total===0?0:Math.round(s.passed/s.total*100)}function km(s,o){return[...s].sort((d,f)=>{if(o==="priority"){const T={[Tl.FAILED]:3,[Tl.NEW]:2,[Tl.PASSED]:1},w=T[d.status]||0,E=T[f.status]||0;return w!==E?E-w:(f.diffPercentage||0)-(d.diffPercentage||0)}return o==="name"?(d.name||"").localeCompare(f.name||""):o==="time"?(f.timestamp||0)-(d.timestamp||0):0})}function Km(s,o){return o==="failed"?s.filter(d=>d.status===Tl.FAILED):o==="passed"?s.filter(d=>d.status===Tl.PASSED):o==="new"?s.filter(d=>d.status===Tl.NEW||d.status===Tl.BASELINE_CREATED):s}function Jm({summary:s,baseline:o}){if(!s)return null;let d=Vm(s);return i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 mb-8",children:[i.jsxs("h1",{className:"text-3xl font-bold text-white mb-8 flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-amber-500/20 rounded-xl flex items-center justify-center mr-4",children:i.jsx(ym,{className:"w-6 h-6 text-amber-400"})}),"Visual Comparison Report"]}),i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:s.total}),i.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Total Screenshots"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-3xl font-bold text-green-400 mb-2",children:s.passed}),i.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Passed"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-3xl font-bold text-amber-400 mb-2",children:s.failed}),i.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Failed"})]}),i.jsxs("div",{className:"text-center",children:[i.jsxs("div",{className:"text-3xl font-bold text-gray-300 mb-2",children:[d,"%"]}),i.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Pass Rate"})]})]}),o&&i.jsx("div",{className:"mt-6 pt-6 border-t border-gray-700",children:i.jsxs("div",{className:"text-sm text-gray-400",children:[i.jsx("span",{className:"font-medium",children:"Baseline:"})," ",o]})})]})}let hr=h.createContext(null);function $m({children:s}){let[o,d]=h.useState([]),f=h.useCallback((E,C="success",S={})=>{let x=Date.now();d(b=>[...b,{id:x,message:E,type:C,...S}]);let D=S.duration!==void 0?S.duration:S.actions?null:5e3;return D&&setTimeout(()=>{d(b=>b.filter(O=>O.id!==x))},D),x},[]),T=h.useCallback(E=>{d(C=>C.filter(S=>S.id!==E))},[]),w=h.useCallback((E,C)=>new Promise(S=>{let x=Date.now();d(D=>[...D,{id:x,message:E,title:C,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{d(b=>b.filter(O=>O.id!==x)),S(!1)}},{label:"OK",variant:"primary",onClick:()=>{d(b=>b.filter(O=>O.id!==x)),S(!0)}}]}])}),[]);return i.jsxs(hr.Provider,{value:{addToast:f,removeToast:T,confirm:w},children:[s,i.jsx(Wm,{toasts:o,onRemove:T})]})}function zl(){let s=h.useContext(hr);if(!s)throw new Error("useToast must be used within ToastProvider");return s}function Wm({toasts:s,onRemove:o}){return s.length===0?null:i.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:s.map(d=>i.jsx(Fm,{toast:d,onRemove:o},d.id))})}function Fm({toast:s,onRemove:o}){let d=s.type==="success"?La:s.type==="confirm"?gi:Ln,f=s.type==="success"?"bg-green-500/10 border-green-500/30":s.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",T=s.type==="success"?"text-green-400":s.type==="confirm"?"text-amber-400":"text-red-400";return i.jsx("div",{className:`${f} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(d,{className:`w-5 h-5 ${T} flex-shrink-0 mt-0.5`}),i.jsxs("div",{className:"flex-1",children:[s.title&&i.jsx("p",{className:"text-white font-medium text-sm mb-1",children:s.title}),i.jsx("p",{className:"text-gray-300 text-sm",children:s.message}),s.actions&&s.actions.length>0&&i.jsx("div",{className:"flex gap-2 mt-3",children:s.actions.map((w,E)=>i.jsx("button",{onClick:w.onClick,className:w.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:w.label},E))})]}),!s.actions&&i.jsx("button",{onClick:()=>o(s.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:i.jsx(vi,{className:"w-5 h-5"})})]})})}function Im({reportData:s,setReportData:o,onRefresh:d,loading:f}){let{summary:T,comparisons:w,baseline:E}=s,[C,S]=h.useState(!1),[x,D]=h.useState(!1),{addToast:b,confirm:O}=zl(),Z=w?.some(L=>L.status==="failed"||L.status==="new"),B=w?.filter(L=>L.status==="new").length||0,H=h.useCallback(async()=>{if(await O("This will update all failed and new screenshots.","Accept all changes as new baselines?")){S(!0);try{await rr(),o(ee=>({...ee,comparisons:ee.comparisons.map(oe=>oe.status==="failed"||oe.status==="new"?{...oe,status:"passed",diffPercentage:0,diff:null}:oe)})),d?.()}catch(ee){console.error("Failed to accept all baselines:",ee),b("Failed to accept all baselines. Please try again.","error")}finally{S(!1)}}},[o,d,b,O]),q=h.useCallback(async()=>{if(await O("This will delete all baseline images and clear comparison history.","Reset all baselines?")){D(!0);try{await nm(),o({timestamp:Date.now(),comparisons:[],summary:{total:0,passed:0,failed:0,errors:0}}),d?.()}catch(ee){console.error("Failed to reset baselines:",ee),b("Failed to reset baselines. Please try again.","error")}finally{D(!1)}}},[o,d,b,O]);return i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[i.jsxs("div",{className:"mb-6",children:[i.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Statistics Overview"}),i.jsx("p",{className:"text-gray-400",children:"Visual regression testing statistics"})]}),i.jsx(Jm,{summary:T,baseline:E?.buildName}),E&&i.jsxs("div",{className:"mb-6 bg-slate-800/50 rounded-lg border border-slate-700 p-4",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-gray-400 mb-1",children:"Current Baseline"}),i.jsx("div",{className:"text-white font-medium",children:E.buildName||"default"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-gray-400 mb-1",children:"Created"}),i.jsx("div",{className:"text-white font-medium",children:E.createdAt?new Date(E.createdAt).toLocaleString():"Unknown"})]})]}),B>0&&i.jsx("div",{className:"mt-3 pt-3 border-t border-slate-600",children:i.jsxs("div",{className:"text-sm text-amber-400",children:[B," new screenshot",B!==1?"s":""," without baseline"]})})]}),i.jsxs("div",{className:"mt-8 bg-slate-800/50 rounded-lg border border-slate-700 p-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-white mb-4",children:"Baseline Management"}),i.jsx("p",{className:"text-gray-400 mb-6",children:"Manage your visual regression baselines. Accept changes to update baselines or reset to restore previous state."}),i.jsxs("div",{className:"flex gap-4",children:[i.jsxs("button",{onClick:H,disabled:!Z||C||f,className:"inline-flex items-center gap-2 bg-green-600 hover:bg-green-700 disabled:bg-gray-600 text-white text-sm font-medium px-6 py-3 rounded-lg transition-colors disabled:cursor-not-allowed disabled:opacity-50",children:[i.jsx(fr,{className:"w-5 h-5"}),i.jsx("span",{children:C?"Accepting...":Z?"Accept All Changes":"No Changes to Accept"})]}),i.jsxs("button",{onClick:q,disabled:x||f,className:"inline-flex items-center gap-2 bg-slate-700 hover:bg-slate-600 disabled:bg-gray-600 text-white text-sm font-medium px-6 py-3 rounded-lg transition-colors disabled:cursor-not-allowed disabled:opacity-50",children:[i.jsx(Hn,{className:"w-5 h-5"}),i.jsx("span",{children:x?"Resetting...":"Reset Baselines"})]}),i.jsxs("button",{onClick:d,disabled:f,className:"ml-auto inline-flex items-center gap-2 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium px-6 py-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[i.jsxs("svg",{className:`w-5 h-5 ${f?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),i.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"})]}),i.jsx("span",{children:"Refresh"})]})]})]})]})}let Pm=()=>{let s=new URLSearchParams(window.location.search);return{filter:s.get("filter")||Ot.ALL,sortBy:s.get("sort")||tl.PRIORITY,searchQuery:s.get("search")||"",selectedBrowser:s.get("browser")||"all",selectedViewport:s.get("viewport")||"all"}};function eh(s=[]){let o=Pm(),[d,f]=h.useState(o.filter),[T,w]=h.useState(o.sortBy),[E,C]=h.useState(o.searchQuery),[S,x]=h.useState(o.selectedBrowser),[D,b]=h.useState(o.selectedViewport);h.useEffect(()=>{let B=new URLSearchParams;d!==Ot.ALL&&B.set("filter",d),T!==tl.PRIORITY&&B.set("sort",T),E&&B.set("search",E),S!=="all"&&B.set("browser",S),D!=="all"&&B.set("viewport",D);let H=B.toString()?`?${B.toString()}`:window.location.pathname;window.history.replaceState({},"",H)},[d,T,E,S,D]);let O=h.useMemo(()=>{let B=new Set,H=new Set;return s.forEach(q=>{if(q.properties?.browser&&B.add(q.properties.browser),q.properties?.viewport_width&&q.properties?.viewport_height){let L=`${q.properties.viewport_width}x${q.properties.viewport_height}`;H.add(L)}else if(q.properties?.viewport){let L=`${q.properties.viewport.width}x${q.properties.viewport.height}`;H.add(L)}}),{browsers:Array.from(B).sort(),viewports:Array.from(H).sort()}},[s]);return{filteredComparisons:h.useMemo(()=>{let B=Km(s,d);if(E.trim()){let H=E.toLowerCase();B=B.filter(q=>q.name.toLowerCase().includes(H)||q.originalName?.toLowerCase().includes(H))}return S!=="all"&&(B=B.filter(H=>H.properties?.browser===S)),D!=="all"&&(B=B.filter(H=>{let q=null;return H.properties?.viewport_width&&H.properties?.viewport_height?q=`${H.properties.viewport_width}x${H.properties.viewport_height}`:H.properties?.viewport&&(q=`${H.properties.viewport.width}x${H.properties.viewport.height}`),q===D})),km(B,T)},[s,d,T,E,S,D]),filter:d,setFilter:f,sortBy:T,setSortBy:w,searchQuery:E,setSearchQuery:C,selectedBrowser:S,setSelectedBrowser:x,selectedViewport:D,setSelectedViewport:b,availableFilters:O,counts:{all:s.length,failed:s.filter(B=>B.status==="failed").length,passed:s.filter(B=>B.status==="passed").length,new:s.filter(B=>B.status==="new").length}}}function gr(s){let[o,d]=h.useState({}),{addToast:f}=zl(),T=h.useCallback(async E=>{d(C=>({...C,[E]:"accepting"}));try{await am(E),s&&s(C=>({...C,comparisons:C.comparisons.map(S=>S.id===E?{...S,status:"passed",diffPercentage:0,diff:null}:S)})),d(C=>{let S={...C};return delete S[E],S})}catch(C){console.error("Failed to accept baseline:",C),f("Failed to accept baseline. Please try again.","error"),d(S=>{let x={...S};return delete x[E],x})}},[s,f]),w=h.useCallback(E=>{d(C=>({...C,[E]:"rejected"})),s&&s(C=>({...C,comparisons:C.comparisons.map(S=>S.id===E?{...S,userAction:"rejected"}:S)}))},[s]);return{accept:T,reject:w,loadingStates:o}}function th({filter:s,setFilter:o,sortBy:d,setSortBy:f,searchQuery:T,setSearchQuery:w,selectedBrowser:E,setSelectedBrowser:C,selectedViewport:S,setSelectedViewport:x,availableFilters:D,counts:b,onRefresh:O,loading:Z}){let[B,H]=h.useState(!1),q=D.browsers.length>1||D.viewports.length>1;return i.jsxs("div",{className:"space-y-3 md:space-y-4",children:[i.jsxs("div",{className:"flex gap-2",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(Hm,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),i.jsx("input",{type:"text",placeholder:"Search screenshots...",value:T,onChange:L=>w(L.target.value),className:"w-full bg-slate-800 border border-gray-700 rounded-lg pl-10 pr-4 py-3 md:py-2.5 text-white placeholder-gray-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors text-base md:text-sm"})]}),q&&i.jsx("button",{onClick:()=>H(!B),className:`md:hidden inline-flex items-center justify-center bg-slate-800 border border-gray-700 p-3 rounded-lg transition-colors touch-manipulation ${B?"text-amber-400 border-amber-500":"text-gray-300 hover:text-white"}`,title:"Filters",children:i.jsx(cm,{className:"w-5 h-5"})}),i.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[i.jsxs("select",{value:d,onChange:L=>f(L.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[i.jsx("option",{value:tl.PRIORITY,children:"Priority"}),i.jsx("option",{value:tl.NAME,children:"Name"}),i.jsx("option",{value:tl.TIME,children:"Time"})]}),i.jsx("button",{onClick:O,disabled:Z,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-gray-700 text-gray-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:i.jsx(Hn,{className:`w-5 h-5 ${Z?"animate-spin":""}`})})]}),i.jsx("button",{onClick:O,disabled:Z,className:"md:hidden inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-gray-700 text-gray-300 hover:text-white p-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed touch-manipulation",title:"Refresh",children:i.jsx(Hn,{className:`w-5 h-5 ${Z?"animate-spin":""}`})})]}),i.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1 scroll-snap-x md:flex-wrap md:overflow-visible",children:[i.jsx("span",{className:"hidden md:inline text-sm text-gray-400 mr-1 flex-shrink-0",children:"Status:"}),i.jsxs("button",{onClick:()=>o(Ot.ALL),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${s===Ot.ALL?"bg-amber-500 text-white shadow-lg shadow-amber-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-gray-700"}`,children:["All ",i.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",b.all,")"]})]}),i.jsxs("button",{onClick:()=>o(Ot.FAILED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${s===Ot.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-gray-700"}`,children:["Failed"," ",i.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",b.failed,")"]})]}),i.jsxs("button",{onClick:()=>o(Ot.NEW),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${s===Ot.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-gray-700"}`,children:["New ",i.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",b.new,")"]})]}),i.jsxs("button",{onClick:()=>o(Ot.PASSED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${s===Ot.PASSED?"bg-green-500 text-white shadow-lg shadow-green-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-gray-700"}`,children:["Passed"," ",i.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",b.passed,")"]})]}),D.browsers.length>1&&i.jsxs("div",{className:"hidden md:flex items-center",children:[i.jsx("span",{className:"text-sm text-gray-400 ml-4 mr-1",children:"Browser:"}),i.jsxs("select",{value:E,onChange:L=>C(L.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[i.jsx("option",{value:"all",children:"All"}),D.browsers.map(L=>i.jsx("option",{value:L,children:L},L))]})]}),D.viewports.length>1&&i.jsxs("div",{className:"hidden md:flex items-center",children:[i.jsx("span",{className:"text-sm text-gray-400 ml-4 mr-1",children:"Viewport:"}),i.jsxs("select",{value:S,onChange:L=>x(L.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[i.jsx("option",{value:"all",children:"All"}),D.viewports.map(L=>i.jsx("option",{value:L,children:L},L))]})]})]}),B&&q&&i.jsxs("div",{className:"md:hidden bg-slate-800/50 border border-gray-700 rounded-lg p-3 space-y-3 animate-slide-down",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-gray-400",children:"Sort by:"}),i.jsxs("select",{value:d,onChange:L=>f(L.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[i.jsx("option",{value:tl.PRIORITY,children:"Priority"}),i.jsx("option",{value:tl.NAME,children:"Name"}),i.jsx("option",{value:tl.TIME,children:"Time"})]})]}),D.browsers.length>1&&i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-gray-400",children:"Browser:"}),i.jsxs("select",{value:E,onChange:L=>C(L.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[i.jsx("option",{value:"all",children:"All"}),D.browsers.map(L=>i.jsx("option",{value:L,children:L},L))]})]}),D.viewports.length>1&&i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-gray-400",children:"Viewport:"}),i.jsxs("select",{value:S,onChange:L=>x(L.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[i.jsx("option",{value:"all",children:"All"}),D.viewports.map(L=>i.jsx("option",{value:L,children:L},L))]})]})]})]})}function lh(s){let[o,d]=h.useState("loading");return h.useEffect(()=>{if(!s){d("missing");return}d("loading");let f=new Image;return f.onload=()=>d("loaded"),f.onerror=()=>d("error"),f.src=s,()=>{f.onload=null,f.onerror=null}},[s]),o}function Mt({src:s,alt:o,className:d,style:f,onClick:T}){let w=lh(s);return w==="missing"?i.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:f,children:i.jsxs("div",{className:"text-gray-400 text-center",children:[i.jsx(Ym,{className:"w-12 h-12 mx-auto mb-3"}),i.jsxs("div",{className:"text-sm",children:["No ",o.toLowerCase()," available"]})]})}):w==="loading"?i.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:f,children:i.jsxs("div",{className:"text-gray-400 text-center",children:[i.jsx(Hn,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),i.jsxs("div",{className:"text-sm",children:["Loading ",o.toLowerCase(),"..."]})]})}):w==="error"?i.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:f,children:i.jsxs("div",{className:"text-red-400 text-center",children:[i.jsx(gi,{className:"w-12 h-12 mx-auto mb-3"}),i.jsxs("div",{className:"text-sm",children:["Failed to load ",o.toLowerCase()]}),i.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:s})]})}):i.jsx("img",{src:s,alt:o,className:d,style:f,onClick:T})}function ah(s,o){return s.id||s.signature||`comparison-${o}`}function nh({status:s}){let o={failed:"bg-red-500",passed:"bg-green-500",new:"bg-blue-500","baseline-created":"bg-blue-500"};return i.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${o[s]||"bg-gray-500"}`})}function uh({userAction:s}){return s==="accepted"?i.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/20 text-green-400",children:[i.jsx(La,{className:"w-3 h-3"}),"Accepted"]}):s==="rejected"?i.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-yellow-500/20 text-yellow-400",children:[i.jsx(dr,{className:"w-3 h-3"}),"Rejected"]}):null}function ih(s){return s.properties?.viewport_width&&s.properties?.viewport_height?`${s.properties.viewport_width}×${s.properties.viewport_height}`:s.properties?.viewport?`${s.properties.viewport.width}×${s.properties.viewport.height}`:null}function ch({comparison:s,onClick:o,userAction:d}){let f=ih(s),T=s.properties?.browser,w=s.status==="failed",E=s.status==="new"||s.status==="baseline-created",C=s.current||s.baseline;return i.jsxs("button",{onClick:()=>o(s),className:`
|
|
8
|
+
`+a.stack}}var pu=Object.prototype.hasOwnProperty,bu=n.unstable_scheduleCallback,xu=n.unstable_cancelCallback,x1=n.unstable_shouldYield,j1=n.unstable_requestPaint,gt=n.unstable_now,S1=n.unstable_getCurrentPriorityLevel,Vo=n.unstable_ImmediatePriority,Zo=n.unstable_UserBlockingPriority,wi=n.unstable_NormalPriority,w1=n.unstable_LowPriority,Xo=n.unstable_IdlePriority,N1=n.log,E1=n.unstable_setDisableYieldValue,gn=null,vt=null;function ml(e){if(typeof N1=="function"&&E1(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(gn,e)}catch{}}var yt=Math.clz32?Math.clz32:A1,C1=Math.log,z1=Math.LN2;function A1(e){return e>>>=0,e===0?32:31-(C1(e)/z1|0)|0}var Ni=256,Ei=262144,Ci=4194304;function $l(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 zi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?i=$l(a):(f&=d,f!==0?i=$l(f):l||(l=d&~e,l!==0&&(i=$l(l))))):(d=a&~s,d!==0?i=$l(d):f!==0?i=$l(f):l||(l=a&~e,l!==0&&(i=$l(l)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:i}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function O1(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 Ko(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function T1(e,t,l,a,i,s){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,C=e.hiddenUpdates;for(l=f&~l;0<l;){var R=31-yt(l),_=1<<R;d[R]=0,b[R]=-1;var z=C[R];if(z!==null)for(C[R]=null,R=0;R<z.length;R++){var O=z[R];O!==null&&(O.lane&=-536870913)}l&=~_}a!==0&&Jo(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Jo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function $o(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Fo(e,t){var l=t&-t;return l=(l&42)!==0?1:Su(l),(l&(e.suspendedLanes|t))!==0?0:l}function Su(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 wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wo(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:B0(e.type))}function Io(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var gl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+gl,rt="__reactProps$"+gl,ba="__reactContainer$"+gl,Nu="__reactEvents$"+gl,M1="__reactListeners$"+gl,R1="__reactHandles$"+gl,Po="__reactResources$"+gl,pn="__reactMarker$"+gl;function Eu(e){delete e[Fe],delete e[rt],delete e[Nu],delete e[M1],delete e[R1]}function xa(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ba]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=j0(e);e!==null;){if(l=e[Fe])return l;e=j0(e)}return t}e=l,l=e.parentNode}return null}function ja(e){if(e=e[Fe]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sa(e){var t=e[Po];return t||(t=e[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[pn]=!0}var ef=new Set,tf={};function Fl(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(tf[e]=t,e=0;e<t.length;e++)ef.add(t[e])}var D1=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]*$"),lf={},af={};function _1(e){return pu.call(af,e)?!0:pu.call(lf,e)?!1:D1.test(e)?af[e]=!0:(lf[e]=!0,!1)}function Ai(e,t,l){if(_1(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Oi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Xt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U1(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){if(!e._valueTracker){var t=nf(e)?"checked":"value";e._valueTracker=U1(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=nf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ti(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 L1=/[\n"\\]/g;function zt(e){return e.replace(L1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,a,i,s,f,d){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=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Au(e,f,Ct(t)):l!=null?Au(e,f,Ct(l)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function uf(e,t,l,a,i,s,f,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Cu(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Cu(e)}function Au(e,t,l){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Na(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rf(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function cf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(He(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Cu(e)}function Ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var B1=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 of(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||B1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ff(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&of(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&of(e,s,t[s])}function Ou(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 q1=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"]]),H1=/^[\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 Mi(e){return H1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var Tu=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,za=null;function df(e){var t=ja(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(zu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[rt]||null;if(!i)throw Error(o(90));zu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&sf(a)}break e;case"textarea":rf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Na(e,!!l.multiple,t,!1)}}}var Ru=!1;function hf(e,t,l){if(Ru)return e(t,l);Ru=!0;try{var a=e(t);return a}finally{if(Ru=!1,(Ca!==null||za!==null)&&(ps(),Ca&&(t=Ca,e=za,za=Ca=null,df(t),e)))for(t=0;t<e.length;t++)df(e[t])}}function xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(Jt)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Du=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Du=!1}var vl=null,_u=null,Ri=null;function mf(){if(Ri)return Ri;var e,t=_u,l=t.length,a,i="value"in vl?vl.value:vl.textContent,s=i.length;for(e=0;e<l&&t[e]===i[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===i[s-a];a++);return Ri=i.slice(e,1<a?1-a:void 0)}function Di(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 _i(){return!0}function gf(){return!1}function ct(e){function t(l,a,i,s,f){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_i:gf,this.isPropagationStopped=gf,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=ct(Wl),Sn=A({},Wl,{view:0,detail:0}),Q1=ct(Sn),Uu,Lu,wn,Li=A({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qu,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!==wn&&(wn&&e.type==="mousemove"?(Uu=e.screenX-wn.screenX,Lu=e.screenY-wn.screenY):Lu=Uu=0,wn=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),vf=ct(Li),k1=A({},Li,{dataTransfer:0}),Y1=ct(k1),G1=A({},Sn,{relatedTarget:0}),Bu=ct(G1),V1=A({},Wl,{animationName:0,elapsedTime:0,pseudoElement:0}),Z1=ct(V1),X1=A({},Wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K1=ct(X1),J1=A({},Wl,{data:0}),yf=ct(J1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F1={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"},W1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W1[e])?!!t[e]:!1}function qu(){return I1}var P1=A({},Sn,{key:function(e){if(e.key){var t=$1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qu,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ey=ct(P1),ty=A({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=ct(ty),ly=A({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),ay=ct(ly),ny=A({},Wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),iy=ct(ny),sy=A({},Li,{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}),uy=ct(sy),ry=A({},Wl,{newState:0,oldState:0}),cy=ct(ry),oy=[9,13,27,32],Hu=Jt&&"CompositionEvent"in window,Nn=null;Jt&&"documentMode"in document&&(Nn=document.documentMode);var fy=Jt&&"TextEvent"in window&&!Nn,bf=Jt&&(!Hu||Nn&&8<Nn&&11>=Nn),xf=" ",jf=!1;function Sf(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Aa=!1;function dy(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(jf=!0,xf);case"textInput":return e=t.data,e===xf&&jf?null:e;default:return null}}function hy(e,t){if(Aa)return e==="compositionend"||!Hu&&Sf(e,t)?(e=mf(),Ri=_u=vl=null,Aa=!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 bf&&t.locale!=="ko"?null:t.data;default:return null}}var my={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!my[e.type]:t==="textarea"}function Ef(e,t,l,a){Ca?za?za.push(a):za=[a]:Ca=a,t=Es(t,"onChange"),0<t.length&&(l=new Ui("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var En=null,Cn=null;function gy(e){u0(e,0)}function Bi(e){var t=bn(e);if(sf(t))return e}function Cf(e,t){if(e==="change")return t}var zf=!1;if(Jt){var Qu;if(Jt){var ku="oninput"in document;if(!ku){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),ku=typeof Af.oninput=="function"}Qu=ku}else Qu=!1;zf=Qu&&(!document.documentMode||9<document.documentMode)}function Of(){En&&(En.detachEvent("onpropertychange",Tf),Cn=En=null)}function Tf(e){if(e.propertyName==="value"&&Bi(Cn)){var t=[];Ef(t,Cn,e,Mu(e)),hf(gy,t)}}function vy(e,t,l){e==="focusin"?(Of(),En=t,Cn=l,En.attachEvent("onpropertychange",Tf)):e==="focusout"&&Of()}function yy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Cn)}function py(e,t){if(e==="click")return Bi(t)}function by(e,t){if(e==="input"||e==="change")return Bi(t)}function xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:xy;function zn(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!pu.call(t,i)||!pt(e[i],t[i]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rf(e,t){var l=Mf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Mf(l)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Yu(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 jy=Jt&&"documentMode"in document&&11>=document.documentMode,Oa=null,Gu=null,An=null,Vu=!1;function Uf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vu||Oa==null||Oa!==Ti(a)||(a=Oa,"selectionStart"in a&&Yu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),An&&zn(An,a)||(An=a,a=Es(Gu,"onSelect"),0<a.length&&(t=new Ui("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Oa)))}function Il(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ta={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Zu={},Lf={};Jt&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Pl(e){if(Zu[e])return Zu[e];if(!Ta[e])return e;var t=Ta[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Lf)return Zu[e]=t[l];return e}var Bf=Pl("animationend"),qf=Pl("animationiteration"),Hf=Pl("animationstart"),Sy=Pl("transitionrun"),wy=Pl("transitionstart"),Ny=Pl("transitioncancel"),Qf=Pl("transitionend"),kf=new Map,Xu="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(" ");Xu.push("scrollEnd");function Bt(e,t){kf.set(e,t),Fl(t,[e])}var qi=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)},At=[],Ma=0,Ku=0;function Hi(){for(var e=Ma,t=Ku=Ma=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var i=At[t];At[t++]=null;var s=At[t];if(At[t++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}s!==0&&Yf(l,i,s)}}function Qi(e,t,l,a){At[Ma++]=e,At[Ma++]=t,At[Ma++]=l,At[Ma++]=a,Ku|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ju(e,t,l,a){return Qi(e,t,l,a),ki(e)}function ea(e,t){return Qi(e,null,null,t),ki(e)}function Yf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-yt(l),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),s):null}function ki(e){if(50<Fn)throw Fn=0,ac=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ra={};function Ey(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,a){return new Ey(e,t,l,a)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Gf(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yi(e,t,l,a,i,s){var f=0;if(a=e,typeof e=="function")$u(e)&&(f=1);else if(typeof e=="string")f=Tp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=bt(31,l,t,i),e.elementType=ve,e.lanes=s,e;case M:return ta(l.children,i,s,t);case q:f=8,i|=24;break;case L:return e=bt(12,l,t,i|2),e.elementType=L,e.lanes=s,e;case xe:return e=bt(13,l,t,i),e.elementType=xe,e.lanes=s,e;case de:return e=bt(19,l,t,i),e.elementType=de,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:f=10;break e;case $:f=9;break e;case ne:f=11;break e;case K:f=14;break e;case ee:f=16,a=null;break e}f=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=bt(f,l,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function ta(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Fu(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Vf(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Wu(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=Zf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Go(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:Go(t)}}var Da=[],_a=0,Gi=null,On=0,Tt=[],Mt=0,yl=null,Yt=1,Gt="";function Ft(e,t){Da[_a++]=On,Da[_a++]=Gi,Gi=e,On=t}function Xf(e,t,l){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,yl=e;var a=Yt;e=Gt;var i=32-yt(a)-1;a&=~(1<<i),l+=1;var s=32-yt(t)+i;if(30<s){var f=i-i%5;s=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Yt=1<<32-yt(t)+i|l<<i|a,Gt=s+e}else Yt=1<<s|l<<i|a,Gt=e}function Iu(e){e.return!==null&&(Ft(e,1),Xf(e,1,0))}function Pu(e){for(;e===Gi;)Gi=Da[--_a],Da[_a]=null,On=Da[--_a],Da[_a]=null;for(;e===yl;)yl=Tt[--Mt],Tt[Mt]=null,Gt=Tt[--Mt],Tt[Mt]=null,Yt=Tt[--Mt],Tt[Mt]=null}function Kf(e,t){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,Yt=t.id,Gt=t.overflow,yl=e}var We=null,Ae=null,fe=!1,pl=null,Rt=!1,er=Error(o(519));function bl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tn(Ot(t,e)),er}function Jf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[rt]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<In.length;l++)ue(In[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),cf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||f0(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||bl(e,!0)}function $f(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:We=We.return}}function Ua(e){if(e!==We)return!1;if(!fe)return $f(e),fe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||pc(e.type,e.memoizedProps)),l=!l),l&&Ae&&bl(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=x0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=x0(e)}else t===27?(t=Ae,Dl(e.type)?(e=wc,wc=null,Ae=e):Ae=t):Ae=We?_t(e.stateNode.nextSibling):null;return!0}function la(){Ae=We=null,fe=!1}function tr(){var e=pl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),pl=null),e}function Tn(e){pl===null?pl=[e]:pl.push(e)}var lr=S(null),aa=null,Wt=null;function xl(e,t,l){Y(lr,t._currentValue),t._currentValue=l}function It(e){e._currentValue=lr.current,U(lr)}function ar(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function nr(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var b=0;b<t.length;b++)if(d.context===t[b]){s.lanes|=l,d=s.alternate,d!==null&&(d.lanes|=l),ar(s.return,l,e),a||(f=null);break e}s=d.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),ar(f,l,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 La(e,t,l,a){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!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 d=i.type;pt(i.pendingProps.value,f.value)||(e!==null?e.push(d):e=[d])}}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(ai):e=[ai])}i=i.return}e!==null&&nr(t,e,l,a),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){aa=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Ff(aa,e)}function Zi(e,t){return aa===null&&na(e),Ff(e,t)}function Ff(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var Cy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},zy=n.unstable_scheduleCallback,Ay=n.unstable_NormalPriority,Qe={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ir(){return{controller:new Cy,data:new Map,refCount:0}}function Mn(e){e.refCount--,e.refCount===0&&zy(Ay,function(){e.controller.abort()})}var Rn=null,sr=0,Ba=0,qa=null;function Oy(e,t){if(Rn===null){var l=Rn=[];sr=0,Ba=cc(),qa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return sr++,t.then(Wf,Wf),t}function Wf(){if(--sr===0&&Rn!==null){qa!==null&&(qa.status="fulfilled");var e=Rn;Rn=null,Ba=0,qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ty(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var If=T.S;T.S=function(e,t){Uh=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Oy(e,t),If!==null&&If(e,t)};var ia=S(null);function ur(){var e=ia.current;return e!==null?e:ze.pooledCache}function Xi(e,t){t===null?Y(ia,ia.current):Y(ia,t.pool)}function Pf(){var e=ur();return e===null?null:{parent:Qe._currentValue,pool:e}}var Ha=Error(o(460)),rr=Error(o(474)),Ki=Error(o(542)),Ji={then:function(){}};function ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function td(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Kt,Kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e}throw ua=t,Ha}}function sa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,Ha):l}}var ua=null;function ld(){if(ua===null)throw Error(o(459));var e=ua;return ua=null,e}function ad(e){if(e===Ha||e===Ki)throw Error(o(483))}var Qa=null,Dn=0;function $i(e){var t=Dn;return Dn+=1,Qa===null&&(Qa=[]),td(Qa,e,t)}function _n(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===B?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){function t(w,j){if(e){var E=w.deletions;E===null?(w.deletions=[j],w.flags|=16):E.push(j)}}function l(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function a(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=$t(w,j),w.index=0,w.sibling=null,w}function s(w,j,E){return w.index=E,e?(E=w.alternate,E!==null?(E=E.index,E<j?(w.flags|=67108866,j):E):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function f(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,j,E,D){return j===null||j.tag!==6?(j=Fu(E,w.mode,D),j.return=w,j):(j=i(j,E),j.return=w,j)}function b(w,j,E,D){var F=E.type;return F===M?R(w,j,E.props.children,D,E.key):j!==null&&(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type)?(j=i(j,E.props),_n(j,E),j.return=w,j):(j=Yi(E.type,E.key,E.props,null,w.mode,D),_n(j,E),j.return=w,j)}function C(w,j,E,D){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Wu(E,w.mode,D),j.return=w,j):(j=i(j,E.children||[]),j.return=w,j)}function R(w,j,E,D,F){return j===null||j.tag!==7?(j=ta(E,w.mode,D,F),j.return=w,j):(j=i(j,E),j.return=w,j)}function _(w,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Fu(""+j,w.mode,E),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case V:return E=Yi(j.type,j.key,j.props,null,w.mode,E),_n(E,j),E.return=w,E;case H:return j=Wu(j,w.mode,E),j.return=w,j;case ee:return j=sa(j),_(w,j,E)}if(He(j)||J(j))return j=ta(j,w.mode,E,null),j.return=w,j;if(typeof j.then=="function")return _(w,$i(j),E);if(j.$$typeof===k)return _(w,Zi(w,j),E);Fi(w,j)}return null}function z(w,j,E,D){var F=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return F!==null?null:d(w,j,""+E,D);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case V:return E.key===F?b(w,j,E,D):null;case H:return E.key===F?C(w,j,E,D):null;case ee:return E=sa(E),z(w,j,E,D)}if(He(E)||J(E))return F!==null?null:R(w,j,E,D,null);if(typeof E.then=="function")return z(w,j,$i(E),D);if(E.$$typeof===k)return z(w,j,Zi(w,E),D);Fi(w,E)}return null}function O(w,j,E,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return w=w.get(E)||null,d(j,w,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return w=w.get(D.key===null?E:D.key)||null,b(j,w,D,F);case H:return w=w.get(D.key===null?E:D.key)||null,C(j,w,D,F);case ee:return D=sa(D),O(w,j,E,D,F)}if(He(D)||J(D))return w=w.get(E)||null,R(j,w,D,F,null);if(typeof D.then=="function")return O(w,j,E,$i(D),F);if(D.$$typeof===k)return O(w,j,E,Zi(j,D),F);Fi(j,D)}return null}function G(w,j,E,D){for(var F=null,me=null,X=j,ae=j=0,ce=null;X!==null&&ae<E.length;ae++){X.index>ae?(ce=X,X=null):ce=X.sibling;var ge=z(w,X,E[ae],D);if(ge===null){X===null&&(X=ce);break}e&&X&&ge.alternate===null&&t(w,X),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge,X=ce}if(ae===E.length)return l(w,X),fe&&Ft(w,ae),F;if(X===null){for(;ae<E.length;ae++)X=_(w,E[ae],D),X!==null&&(j=s(X,j,ae),me===null?F=X:me.sibling=X,me=X);return fe&&Ft(w,ae),F}for(X=a(X);ae<E.length;ae++)ce=O(X,w,ae,E[ae],D),ce!==null&&(e&&ce.alternate!==null&&X.delete(ce.key===null?ae:ce.key),j=s(ce,j,ae),me===null?F=ce:me.sibling=ce,me=ce);return e&&X.forEach(function(ql){return t(w,ql)}),fe&&Ft(w,ae),F}function W(w,j,E,D){if(E==null)throw Error(o(151));for(var F=null,me=null,X=j,ae=j=0,ce=null,ge=E.next();X!==null&&!ge.done;ae++,ge=E.next()){X.index>ae?(ce=X,X=null):ce=X.sibling;var ql=z(w,X,ge.value,D);if(ql===null){X===null&&(X=ce);break}e&&X&&ql.alternate===null&&t(w,X),j=s(ql,j,ae),me===null?F=ql:me.sibling=ql,me=ql,X=ce}if(ge.done)return l(w,X),fe&&Ft(w,ae),F;if(X===null){for(;!ge.done;ae++,ge=E.next())ge=_(w,ge.value,D),ge!==null&&(j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return fe&&Ft(w,ae),F}for(X=a(X);!ge.done;ae++,ge=E.next())ge=O(X,w,ae,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&X.delete(ge.key===null?ae:ge.key),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return e&&X.forEach(function(kp){return t(w,kp)}),fe&&Ft(w,ae),F}function Ee(w,j,E,D){if(typeof E=="object"&&E!==null&&E.type===M&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case V:e:{for(var F=E.key;j!==null;){if(j.key===F){if(F=E.type,F===M){if(j.tag===7){l(w,j.sibling),D=i(j,E.props.children),D.return=w,w=D;break e}}else if(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type){l(w,j.sibling),D=i(j,E.props),_n(D,E),D.return=w,w=D;break e}l(w,j);break}else t(w,j);j=j.sibling}E.type===M?(D=ta(E.props.children,w.mode,D,E.key),D.return=w,w=D):(D=Yi(E.type,E.key,E.props,null,w.mode,D),_n(D,E),D.return=w,w=D)}return f(w);case H:e:{for(F=E.key;j!==null;){if(j.key===F)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){l(w,j.sibling),D=i(j,E.children||[]),D.return=w,w=D;break e}else{l(w,j);break}else t(w,j);j=j.sibling}D=Wu(E,w.mode,D),D.return=w,w=D}return f(w);case ee:return E=sa(E),Ee(w,j,E,D)}if(He(E))return G(w,j,E,D);if(J(E)){if(F=J(E),typeof F!="function")throw Error(o(150));return E=F.call(E),W(w,j,E,D)}if(typeof E.then=="function")return Ee(w,j,$i(E),D);if(E.$$typeof===k)return Ee(w,j,Zi(w,E),D);Fi(w,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(l(w,j.sibling),D=i(j,E),D.return=w,w=D):(l(w,j),D=Fu(E,w.mode,D),D.return=w,w=D),f(w)):l(w,j)}return function(w,j,E,D){try{Dn=0;var F=Ee(w,j,E,D);return Qa=null,F}catch(X){if(X===Ha||X===Ki)throw X;var me=bt(29,X,null,w.mode);return me.lanes=D,me.return=w,me}finally{}}}var ra=nd(!0),id=nd(!1),jl=!1;function cr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function or(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 Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ki(e),Yf(e,null,l),t}return Qi(e,a,t,l),ki(e)}function Un(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,$o(e,l)}}function fr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?i=s=t:s=s.next=t}else i=s=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var dr=!1;function Ln(){if(dr){var e=qa;if(e!==null)throw e}}function Bn(e,t,l,a){dr=!1;var i=e.updateQueue;jl=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var b=d,C=b.next;b.next=null,f===null?s=C:f.next=C,f=b;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==f&&(d===null?R.firstBaseUpdate=C:d.next=C,R.lastBaseUpdate=b))}if(s!==null){var _=i.baseState;f=0,R=C=b=null,d=s;do{var z=d.lane&-536870913,O=z!==d.lane;if(O?(re&z)===z:(a&z)===z){z!==0&&z===Ba&&(dr=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var G=e,W=d;z=t;var Ee=l;switch(W.tag){case 1:if(G=W.payload,typeof G=="function"){_=G.call(Ee,_,z);break e}_=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=W.payload,z=typeof G=="function"?G.call(Ee,_,z):G,z==null)break e;_=A({},_,z);break e;case 2:jl=!0}}z=d.callback,z!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[z]:O.push(z))}else O={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(C=R=O,b=_):R=R.next=O,f|=z;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;O=d,d=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);R===null&&(b=_),i.baseState=b,i.firstBaseUpdate=C,i.lastBaseUpdate=R,s===null&&(i.shared.lanes=0),Al|=f,e.lanes=f,e.memoizedState=_}}function sd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ud(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)sd(l[e],t)}var ka=S(null),Wi=S(0);function rd(e,t){e=ul,Y(Wi,e),Y(ka,t),ul=e|t.baseLanes}function hr(){Y(Wi,ul),Y(ka,ka.current)}function mr(){ul=Wi.current,U(ka),U(Wi)}var xt=S(null),Dt=null;function Nl(e){var t=e.alternate;Y(Be,Be.current&1),Y(xt,e),Dt===null&&(t===null||ka.current!==null||t.memoizedState!==null)&&(Dt=e)}function gr(e){Y(Be,Be.current),Y(xt,e),Dt===null&&(Dt=e)}function cd(e){e.tag===22?(Y(Be,Be.current),Y(xt,e),Dt===null&&(Dt=e)):El()}function El(){Y(Be,Be.current),Y(xt,xt.current)}function jt(e){U(xt),Dt===e&&(Dt=null),U(Be)}var Be=S(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jc(l)||Sc(l)))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 Pt=0,le=null,we=null,ke=null,Pi=!1,Ya=!1,ca=!1,es=0,qn=0,Ga=null,My=0;function _e(){throw Error(o(321))}function vr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function yr(e,t,l,a,i,s){return Pt=s,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Xd:Rr,ca=!1,s=l(a,i),ca=!1,Ya&&(s=fd(t,l,a,i)),od(e),s}function od(e){T.H=kn;var t=we!==null&&we.next!==null;if(Pt=0,ke=we=le=null,Pi=!1,qn=0,Ga=null,t)throw Error(o(300));e===null||Ye||(e=e.dependencies,e!==null&&Vi(e)&&(Ye=!0))}function fd(e,t,l,a){le=e;var i=0;do{if(Ya&&(Ga=null),qn=0,Ya=!1,25<=i)throw Error(o(301));if(i+=1,ke=we=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}T.H=Kd,s=t(l,a)}while(Ya);return s}function Ry(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?Hn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(le.flags|=1024),t}function pr(){var e=es!==0;return es=0,e}function br(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xr(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}Pt=0,ke=we=le=null,Ya=!1,qn=es=0,Ga=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?le.memoizedState=ke=e:ke=ke.next=e,ke}function qe(){if(we===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=ke===null?le.memoizedState:ke.next;if(t!==null)ke=t,we=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},ke===null?le.memoizedState=ke=e:ke=ke.next=e}return ke}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hn(e){var t=qn;return qn+=1,Ga===null&&(Ga=[]),e=td(Ga,e,t),t=le,(ke===null?t.memoizedState:ke.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Xd:Rr),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hn(e);if(e.$$typeof===k)return Ie(e)}throw Error(o(438,String(e)))}function jr(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ts(),le.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Me;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function as(e){var t=qe();return Sr(t,we,e)}function Sr(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=f=null,b=null,C=t,R=!1;do{var _=C.lane&-536870913;if(_!==C.lane?(re&_)===_:(Pt&_)===_){var z=C.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_===Ba&&(R=!0);else if((Pt&z)===z){C=C.next,z===Ba&&(R=!0);continue}else _={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(d=b=_,f=s):b=b.next=_,le.lanes|=z,Al|=z;_=C.action,ca&&l(s,_),s=C.hasEagerState?C.eagerState:l(s,_)}else z={lane:_,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(d=b=z,f=s):b=b.next=z,le.lanes|=_,Al|=_;C=C.next}while(C!==null&&C!==t);if(b===null?f=s:b.next=d,!pt(s,e.memoizedState)&&(Ye=!0,R&&(l=qa,l!==null)))throw l;e.memoizedState=s,e.baseState=f,e.baseQueue=b,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wr(e){var t=qe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,s=t.memoizedState;if(i!==null){l.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);pt(s,t.memoizedState)||(Ye=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function dd(e,t,l){var a=le,i=qe(),s=fe;if(s){if(l===void 0)throw Error(o(407));l=l()}else l=t();var f=!pt((we||i).memoizedState,l);if(f&&(i.memoizedState=l,Ye=!0),i=i.queue,Cr(gd.bind(null,a,i,e),[e]),i.getSnapshot!==t||f||ke!==null&&ke.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,i,l,t),null),ze===null)throw Error(o(349));s||(Pt&127)!==0||hd(a,t,l)}return l}function hd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=ts(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function md(e,t,l,a){t.value=l,t.getSnapshot=a,vd(t)&&yd(e)}function gd(e,t,l){return l(function(){vd(t)&&yd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function yd(e){var t=ea(e,2);t!==null&&mt(t,e,2)}function Nr(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ca){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function pd(e,t,l,a){return e.baseState=l,Sr(e,we,typeof a=="function"?a:el)}function Dy(e,t,l,a,i){if(ss(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};T.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,bd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function bd(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=T.T,f={};T.T=f;try{var d=l(i,a),b=T.S;b!==null&&b(f,d),xd(e,t,d)}catch(C){Er(e,t,C)}finally{s!==null&&f.types!==null&&(s.types=f.types),T.T=s}}else try{s=l(i,a),xd(e,t,s)}catch(C){Er(e,t,C)}}function xd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){jd(e,t,a)},function(a){return Er(e,t,a)}):jd(e,t,l)}function jd(e,t,l){t.status="fulfilled",t.value=l,Sd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,bd(e,l)))}function Er(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Nd(e,t){if(fe){var l=ze.formState;if(l!==null){e:{var a=le;if(fe){if(Ae){t:{for(var i=Ae,s=Rt;i.nodeType!==8;){if(!s){i=null;break t}if(i=_t(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Ae=_t(i.nextSibling),a=i.data==="F!";break e}}bl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},l.queue=a,l=Gd.bind(null,le,a),a.dispatch=l,a=Nr(!1),s=Mr.bind(null,le,!1,a.queue),a=st(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Dy.bind(null,le,i,s,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ed(e){var t=qe();return Cd(t,we,e)}function Cd(e,t,l){if(t=Sr(e,t,wd)[0],e=as(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Hn(t)}catch(f){throw f===Ha?Ki:f}else a=t;t=qe();var i=t.queue,s=i.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Va(9,{destroy:void 0},_y.bind(null,i,l),null)),[a,s,e]}function _y(e,t){e.action=t}function zd(e){var t=qe(),l=we;if(l!==null)return Cd(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=ts(),le.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Ad(){return qe().memoizedState}function ns(e,t,l,a){var i=st();le.flags|=e,i.memoizedState=Va(1|t,{destroy:void 0},l,a===void 0?null:a)}function is(e,t,l,a){var i=qe();a=a===void 0?null:a;var s=i.memoizedState.inst;we!==null&&a!==null&&vr(a,we.memoizedState.deps)?i.memoizedState=Va(t,s,l,a):(le.flags|=e,i.memoizedState=Va(1|t,s,l,a))}function Od(e,t){ns(8390656,8,e,t)}function Cr(e,t){is(2048,8,e,t)}function Uy(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=ts(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Td(e){var t=qe().memoizedState;return Uy({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Md(e,t){return is(4,2,e,t)}function Rd(e,t){return is(4,4,e,t)}function Dd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _d(e,t,l){l=l!=null?l.concat([e]):null,is(4,4,Dd.bind(null,t,e),l)}function zr(){}function Ud(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&vr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ld(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&vr(t,a[1]))return a[0];if(a=e(),ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a}function Ar(e,t,l){return l===void 0||(Pt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Bh(),le.lanes|=e,Al|=e,l)}function Bd(e,t,l,a){return pt(l,t)?l:ka.current!==null?(e=Ar(e,l,a),pt(e,t)||(Ye=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(re&261930)===0?(Ye=!0,e.memoizedState=l):(e=Bh(),le.lanes|=e,Al|=e,t)}function qd(e,t,l,a,i){var s=Q.p;Q.p=s!==0&&8>s?s:8;var f=T.T,d={};T.T=d,Mr(e,!1,t,l);try{var b=i(),C=T.S;if(C!==null&&C(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Ty(b,a);Qn(e,t,R,Nt(e))}else Qn(e,t,a,Nt(e))}catch(_){Qn(e,t,{then:function(){},status:"rejected",reason:_},Nt())}finally{Q.p=s,f!==null&&d.types!==null&&(f.types=d.types),T.T=f}}function Ly(){}function Or(e,t,l,a){if(e.tag!==5)throw Error(o(476));var i=Hd(e).queue;qd(e,i,t,I,l===null?Ly:function(){return Qd(e),l(a)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),Qn(e,t.next.queue,{},Nt())}function Tr(){return Ie(ai)}function kd(){return qe().memoizedState}function Yd(){return qe().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=Sl(l);var a=wl(t,e,l);a!==null&&(mt(a,t,l),Un(a,t,l)),t={cache:ir()},e.payload=t;return}t=t.return}}function qy(e,t,l){var a=Nt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ss(e)?Vd(t,l):(l=Ju(e,t,l,a),l!==null&&(mt(l,e,a),Zd(l,t,a)))}function Gd(e,t,l){var a=Nt();Qn(e,t,l,a)}function Qn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ss(e))Vd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,d=s(f,l);if(i.hasEagerState=!0,i.eagerState=d,pt(d,f))return Qi(e,t,i,0),ze===null&&Hi(),!1}catch{}finally{}if(l=Ju(e,t,i,a),l!==null)return mt(l,e,a),Zd(l,t,a),!0}return!1}function Mr(e,t,l,a){if(a={lane:2,revertLane:cc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ss(e)){if(t)throw Error(o(479))}else t=Ju(e,l,a,2),t!==null&&mt(t,e,2)}function ss(e){var t=e.alternate;return e===le||t!==null&&t===le}function Vd(e,t){Ya=Pi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Zd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,$o(e,l)}}var kn={readContext:Ie,use:ls,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useInsertionEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useSyncExternalStore:_e,useId:_e,useHostTransitionStatus:_e,useFormState:_e,useActionState:_e,useOptimistic:_e,useMemoCache:_e,useCacheRefresh:_e};kn.useEffectEvent=_e;var Xd={readContext:Ie,use:ls,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Od,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ns(4194308,4,Dd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var i=l(t);if(ca){ml(!0);try{l(t)}finally{ml(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=qy.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Nr(e);var t=e.queue,l=Gd.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zr,useDeferredValue:function(e,t){var l=st();return Ar(l,e,t)},useTransition:function(){var e=Nr(!1);return e=qd.bind(null,le,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,i=st();if(fe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),ze===null)throw Error(o(349));(re&127)!==0||hd(a,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,Od(gd.bind(null,a,s,e),[e]),a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,s,l,t),null),l},useId:function(){var e=st(),t=ze.identifierPrefix;if(fe){var l=Gt,a=Yt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=es++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=My++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tr,useFormState:Nd,useActionState:Nd,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Mr.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:jr,useCacheRefresh:function(){return st().memoizedState=By.bind(null,le)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Rr={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:as,useRef:Ad,useState:function(){return as(el)},useDebugValue:zr,useDeferredValue:function(e,t){var l=qe();return Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=as(el)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:Ed,useActionState:Ed,useOptimistic:function(e,t){var l=qe();return pd(l,we,e,t)},useMemoCache:jr,useCacheRefresh:Yd};Rr.useEffectEvent=Td;var Kd={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:wr,useRef:Ad,useState:function(){return wr(el)},useDebugValue:zr,useDeferredValue:function(e,t){var l=qe();return we===null?Ar(l,e,t):Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=wr(el)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:zd,useActionState:zd,useOptimistic:function(e,t){var l=qe();return we!==null?pd(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jr,useCacheRefresh:Yd};Kd.useEffectEvent=Td;function Dr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _r={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=wl(e,a,l),t!==null&&(mt(t,e,l),Un(t,e,l))}};function Jd(e,t,l,a,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,f):t.prototype&&t.prototype.isPureReactComponent?!zn(l,a)||!zn(i,s):!0}function $d(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&_r.enqueueReplaceState(t,t.state,null)}function oa(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Fd(e){qi(e)}function Wd(e){console.error(e)}function Id(e){qi(e)}function us(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Pd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ur(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){us(e,t)},l}function eh(e){return e=Sl(e),e.tag=3,e}function th(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Pd(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Pd(t,l,a),typeof i!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Hy(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&La(t,l,i,!0),l=xt.current,l!==null){switch(l.tag){case 31:case 13:return Dt===null?bs():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Ji?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),sc(e,a,i)),!1;case 22:return l.flags|=65536,a===Ji?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),sc(e,a,i)),!1}throw Error(o(435,l.tag))}return sc(e,a,i),bs(),!1}if(fe)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==er&&(e=Error(o(422),{cause:a}),Tn(Ot(e,l)))):(a!==er&&(t=Error(o(423),{cause:a}),Tn(Ot(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Ot(a,l),i=Ur(e.stateNode,a,i),fr(e,i),Ue!==4&&(Ue=2)),!1;var s=Error(o(520),{cause:a});if(s=Ot(s,l),$n===null?$n=[s]:$n.push(s),Ue!==4&&(Ue=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Ur(l.stateNode,a,e),fr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ol===null||!Ol.has(s))))return l.flags|=65536,i&=-i,l.lanes|=i,i=eh(i),th(i,e,l,a),fr(l,i),!1}l=l.return}while(l!==null);return!1}var Lr=Error(o(461)),Ye=!1;function Pe(e,t,l,a){t.child=e===null?id(t,null,l,a):ra(t,e.child,l,a)}function lh(e,t,l,a,i){l=l.render;var s=t.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return na(t),a=yr(e,t,l,f,s,i),d=pr(),e!==null&&!Ye?(br(e,t,i),tl(e,t,i)):(fe&&d&&Iu(t),t.flags|=1,Pe(e,t,a,i),t.child)}function ah(e,t,l,a,i){if(e===null){var s=l.type;return typeof s=="function"&&!$u(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,nh(e,t,s,a,i)):(e=Yi(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vr(e,i)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:zn,l(f,a)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,e=$t(s,a),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,l,a,i){if(e!==null){var s=e.memoizedProps;if(zn(s,a)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=a=s,Vr(e,i))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,tl(e,t,i)}return Br(e,t,l,a,i)}function ih(e,t,l,a){var i=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return sh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,s!==null?s.cachePool:null),s!==null?rd(t,s):hr(),cd(t);else return a=t.lanes=536870912,sh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Xi(t,s.cachePool),rd(t,s),El(),t.memoizedState=null):(e!==null&&Xi(t,null),hr(),El());return Pe(e,t,i,l),t.child}function Yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,l,a,i){var s=ur();return s=s===null?null:{parent:Qe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Xi(t,null),hr(),cd(t),e!==null&&La(e,t,a,!0),t.childLanes=i,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uh(e,t,l){return ra(t,e.child,null,l),e=rs(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Qy(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(a.mode==="hidden")return e=rs(t,a),t.lanes=536870912,Yn(null,e);if(gr(t),(e=Ae)?(e=b0(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,Ae=null)):e=null,e===null)throw bl(t);return t.lanes=536870912,null}return rs(t,a)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(gr(t),i)if(t.flags&256)t.flags&=-257,t=uh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ye||La(e,t,l,!1),i=(l&e.childLanes)!==0,Ye||i){if(a=ze,a!==null&&(f=Fo(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,ea(e,f),mt(a,e,f),Lr;bs(),t=uh(e,t,l)}else e=s.treeContext,Ae=_t(f.nextSibling),We=t,fe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=rs(t,a),t.flags|=4096;return t}return e=$t(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cs(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Br(e,t,l,a,i){return na(t),l=yr(e,t,l,a,void 0,i),a=pr(),e!==null&&!Ye?(br(e,t,i),tl(e,t,i)):(fe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,i),t.child)}function rh(e,t,l,a,i,s){return na(t),t.updateQueue=null,l=fd(t,a,l,i),od(e),a=pr(),e!==null&&!Ye?(br(e,t,s),tl(e,t,s)):(fe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,s),t.child)}function ch(e,t,l,a,i){if(na(t),t.stateNode===null){var s=Ra,f=l.contextType;typeof f=="object"&&f!==null&&(s=Ie(f)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_r,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},cr(t),f=l.contextType,s.context=typeof f=="object"&&f!==null?Ie(f):Ra,s.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Dr(t,l,f,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&_r.enqueueReplaceState(s,s.state,null),Bn(t,a,s,i),Ln(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,b=oa(l,d);s.props=b;var C=s.context,R=l.contextType;f=Ra,typeof R=="object"&&R!==null&&(f=Ie(R));var _=l.getDerivedStateFromProps;R=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||C!==f)&&$d(t,s,a,f),jl=!1;var z=t.memoizedState;s.state=z,Bn(t,a,s,i),Ln(),C=t.memoizedState,d||z!==C||jl?(typeof _=="function"&&(Dr(t,l,_,a),C=t.memoizedState),(b=jl||Jd(t,l,b,a,z,C,f))?(R||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),s.props=a,s.state=C,s.context=f,a=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,or(e,t),f=t.memoizedProps,R=oa(l,f),s.props=R,_=t.pendingProps,z=s.context,C=l.contextType,b=Ra,typeof C=="object"&&C!==null&&(b=Ie(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==_||z!==b)&&$d(t,s,a,b),jl=!1,z=t.memoizedState,s.state=z,Bn(t,a,s,i),Ln();var O=t.memoizedState;f!==_||z!==O||jl||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof d=="function"&&(Dr(t,l,d,a),O=t.memoizedState),(R=jl||Jd(t,l,R,a,z,O,b)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,O,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,O,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),s.props=a,s.state=O,s.context=b,a=R):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,cs(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=ra(t,e.child,null,i),t.child=ra(t,null,l,i)):Pe(e,t,l,i),t.memoizedState=s.state,e=t.child):e=tl(e,t,i),e}function oh(e,t,l,a){return la(),t.flags|=256,Pe(e,t,l,a),t.child}var qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hr(e){return{baseLanes:e,cachePool:Pf()}}function Qr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=wt),e}function fh(e,t,l){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(i?Nl(t):El(),(e=Ae)?(e=b0(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,Ae=null)):e=null,e===null)throw bl(t);return Sc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,i?(El(),i=t.mode,d=os({mode:"hidden",children:d},i),a=ta(a,i,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(null,a)):(Nl(t),kr(t,d))}var b=e.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(s)t.flags&256?(Nl(t),t.flags&=-257,t=Yr(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,i=t.mode,a=os({mode:"visible",children:a.children},i),d=ta(d,i,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ra(t,e.child,null,l),a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,t=Yn(null,a));else if(Nl(t),Sc(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Tn({value:a,source:null,stack:null}),t=Yr(e,t,l)}else if(Ye||La(e,t,l,!1),f=(l&e.childLanes)!==0,Ye||f){if(f=ze,f!==null&&(a=Fo(f,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,ea(e,a),mt(f,e,a),Lr;jc(d)||bs(),t=Yr(e,t,l)}else jc(d)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ae=_t(d.nextSibling),We=t,fe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=kr(t,a.children),t.flags|=4096);return t}return i?(El(),d=a.fallback,i=t.mode,b=e.child,C=b.sibling,a=$t(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,C!==null?d=$t(C,d):(d=ta(d,i,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Yn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Hr(l):(i=d.cachePool,i!==null?(b=Qe._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=Pf(),d={baseLanes:d.baseLanes|l,cachePool:i}),a.memoizedState=d,a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(e.child,a)):(Nl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function kr(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,l){return ra(t,e.child,null,l),e=kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ar(e.return,t,l)}function Gr(e,t,l,a,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=i,f.treeForkCount=s)}function hh(e,t,l){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var f=Be.current,d=(f&2)!==0;if(d?(f=f&1|2,t.flags|=128):f&=1,Y(Be,f),Pe(e,t,a,l),a=fe?On:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dh(e,l,t);else if(e.tag===19)dh(e,l,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(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&Ii(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Gr(t,!1,i,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ii(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Gr(t,!0,l,null,s,a);break;case"together":Gr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(La(e,t,l,!1),(l&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,l=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vi(e)))}function ky(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),xl(t,Qe,e.memoizedState.cache),la();break;case 27:case 5:mn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Nl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?fh(e,t,l):(Nl(t),e=tl(e,t,l),e!==null?e.sibling:null);Nl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(La(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return hh(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Be,Be.current),a)break;return null;case 22:return t.lanes=0,ih(e,t,l,t.pendingProps);case 24:xl(t,Qe,e.memoizedState.cache)}return tl(e,t,l)}function mh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!Vr(e,l)&&(t.flags&128)===0)return Ye=!1,ky(e,t,l);Ye=(e.flags&131072)!==0}else Ye=!1,fe&&(t.flags&1048576)!==0&&Xf(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=sa(t.elementType),t.type=e,typeof e=="function")$u(e)?(a=oa(e,a),t.tag=1,t=ch(null,t,e,a,l)):(t.tag=0,t=Br(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===ne){t.tag=11,t=lh(null,t,e,a,l);break e}else if(i===K){t.tag=14,t=ah(null,t,e,a,l);break e}}throw t=De(e)||e,Error(o(306,t,""))}}return t;case 0:return Br(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=oa(a,t.pendingProps),ch(e,t,a,i,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,or(e,t),Bn(t,a,null,l);var f=t.memoizedState;if(a=f.cache,xl(t,Qe,a),a!==s.cache&&nr(t,[Qe],l,!0),Ln(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=oh(e,t,a,l);break e}else if(a!==i){i=Ot(Error(o(424)),t),Tn(i),t=oh(e,t,a,l);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(Ae=_t(e.firstChild),We=t,fe=!0,pl=null,Rt=!0,l=id(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(la(),a===i){t=tl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return cs(e,t),e===null?(l=E0(t.type,null,t.pendingProps,null))?t.memoizedState=l:fe||(l=t.type,e=t.pendingProps,a=Cs(ie.current).createElement(l),a[Fe]=t,a[rt]=e,et(a,l,e),Je(a),t.stateNode=a):t.memoizedState=E0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mn(t),e===null&&fe&&(a=t.stateNode=S0(t.type,t.pendingProps,ie.current),We=t,Rt=!0,i=Ae,Dl(t.type)?(wc=i,Ae=_t(a.firstChild)):Ae=i),Pe(e,t,t.pendingProps.children,l),cs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((i=a=Ae)&&(a=yp(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,We=t,Ae=_t(a.firstChild),Rt=!1,i=!0):i=!1),i||bl(t)),mn(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,a=s.children,pc(i,s)?a=null:f!==null&&pc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=yr(e,t,Ry,null,null,l),ai._currentValue=i),cs(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=Ae)&&(l=pp(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,We=t,Ae=null,e=!0):e=!1),e||bl(t)),null;case 13:return fh(e,t,l);case 4:return it(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ra(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return lh(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,xl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,na(t),i=Ie(i),a=a(i),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return ah(e,t,t.type,t.pendingProps,l);case 15:return nh(e,t,t.type,t.pendingProps,l);case 19:return hh(e,t,l);case 31:return Qy(e,t,l);case 22:return ih(e,t,l,t.pendingProps);case 24:return na(t),a=Ie(Qe),e===null?(i=ur(),i===null&&(i=ze,s=ir(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=l),i=s),t.memoizedState={parent:a,cache:i},cr(t),xl(t,Qe,i)):((e.lanes&l)!==0&&(or(e,t),Bn(t,null,null,l),Ln()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xl(t,Qe,a)):(a=s.cache,xl(t,Qe,a),a!==i.cache&&nr(t,[Qe],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ll(e){e.flags|=4}function Zr(e,t,l,a,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(kh())e.flags|=8192;else throw ua=Ji,rr}else e.flags&=-16777217}function gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(kh())e.flags|=8192;else throw ua=Ji,rr}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ko():536870912,e.lanes|=t,Ja|=t)}function Gn(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Yy(e,t,l){var a=t.pendingProps;switch(Pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Qe),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ua(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tr())),Oe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(ll(t),s!==null?(Oe(t),gh(t,s)):(Oe(t),Zr(t,i,null,a,l))):s?s!==e.memoizedState?(ll(t),Oe(t),gh(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),Oe(t),Zr(t,i,e,a,l)),null;case 27:if(Si(t),l=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=Z.current,Ua(t)?Jf(t):(e=S0(i,a,l),t.stateNode=e,ll(t))}return Oe(t),null;case 5:if(Si(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(s=Z.current,Ua(t))Jf(t);else{var f=Cs(ie.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}s[Fe]=t,s[rt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.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=s;e:switch(et(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return Oe(t),Zr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Ua(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=We,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||f0(e.nodeValue,l)),e||bl(t,!0)}else e=Cs(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ua(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ua(t),a!==null&&a.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[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),i=!1}else i=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),fs(t,t.updateQueue),Oe(t),null);case 4:return Le(),e===null&&hc(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(U(Be),a=t.memoizedState,a===null)return Oe(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)Gn(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ii(e),s!==null){for(t.flags|=128,Gn(a,!1),e=s.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Gf(l,e),l=l.sibling;return Y(Be,Be.current&1|2),fe&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>vs&&(t.flags|=128,i=!0,Gn(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ii(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!fe)return Oe(t),null}else 2*gt()-a.renderingStartTime>vs&&l!==536870912&&(t.flags|=128,i=!0,Gn(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,l=Be.current,Y(Be,i?l&1|2:l&1),fe&&Ft(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return jt(t),mr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&fs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(ia),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gy(e,t){switch(Pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Qe),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Si(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Be),null;case 4:return Le(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),mr(),e!==null&&U(ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Qe),null;case 25:return null;default:return null}}function vh(e,t){switch(Pu(t),t.tag){case 3:It(Qe),Le();break;case 26:case 27:case 5:Si(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:U(Be);break;case 10:It(t.type);break;case 22:case 23:jt(t),mr(),e!==null&&U(ia);break;case 24:It(Qe)}}function Vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==i)}}catch(d){Se(t,t.return,d)}}function Cl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,i=t;var b=l,C=d;try{C()}catch(R){Se(i,b,R)}}}a=a.next}while(a!==s)}}catch(R){Se(t,t.return,R)}}function yh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ud(t,l)}catch(a){Se(e,e.return,a)}}}function ph(e,t,l){l.props=oa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function Zn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Se(e,t,i)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Se(e,t,i)}else l.current=null}function bh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Se(e,e.return,i)}}function Xr(e,t,l){try{var a=e.stateNode;fp(a,e.type,l,t),a[rt]=t}catch(i){Se(e,e.return,i)}}function xh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Kr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(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&&Dl(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 Jr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Kt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Jr(e,t,l),e=e.sibling;e!==null;)Jr(e,t,l),e=e.sibling}function ds(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ds(e,t,l),e=e.sibling;e!==null;)ds(e,t,l),e=e.sibling}function jh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);et(t,a,l),t[Fe]=e,t[rt]=l}catch(s){Se(e,e.return,s)}}var al=!1,Ge=!1,$r=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Vy(e,t){if(e=e.containerInfo,vc=Ds,e=_f(e),Yu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var f=0,d=-1,b=-1,C=0,R=0,_=e,z=null;t:for(;;){for(var O;_!==l||i!==0&&_.nodeType!==3||(d=f+i),_!==s||a!==0&&_.nodeType!==3||(b=f+a),_.nodeType===3&&(f+=_.nodeValue.length),(O=_.firstChild)!==null;)z=_,_=O;for(;;){if(_===e)break t;if(z===l&&++C===i&&(d=f),z===s&&++R===a&&(b=f),(O=_.nextSibling)!==null)break;_=z,z=_.parentNode}_=O}l=d===-1||b===-1?null:{start:d,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(yc={focusedElem:e,selectionRange:l},Ds=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,s=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(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,i=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var G=oa(l.type,i);e=a.getSnapshotBeforeUpdate(G,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){Se(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xc(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,$e=e;break}$e=t.return}}function wh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:il(e,l),a&4&&Vn(5,l);break;case 1:if(il(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Se(l,l.return,f)}else{var i=oa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Se(l,l.return,f)}}a&64&&yh(l),a&512&&Zn(l,l.return);break;case 3:if(il(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ud(e,t)}catch(f){Se(l,l.return,f)}}break;case 27:t===null&&a&4&&jh(l);case 26:case 5:il(e,l),t===null&&a&4&&bh(l),a&512&&Zn(l,l.return);break;case 12:il(e,l);break;case 31:il(e,l),a&4&&Ch(e,l);break;case 13:il(e,l),a&4&&zh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Py.bind(null,l),bp(e,l))));break;case 22:if(a=l.memoizedState!==null||al,!a){t=t!==null&&t.memoizedState!==null||Ge,i=al;var s=Ge;al=a,(Ge=t)&&!s?sl(e,l,(l.subtreeFlags&8772)!==0):il(e,l),al=i,Ge=s}break;case 30:break;default:il(e,l)}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eu(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 Re=null,ot=!1;function nl(e,t,l){for(l=l.child;l!==null;)Eh(e,t,l),l=l.sibling}function Eh(e,t,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:Ge||Vt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||Vt(l,t);var a=Re,i=ot;Dl(l.type)&&(Re=l.stateNode,ot=!1),nl(e,t,l),ei(l.stateNode),Re=a,ot=i;break;case 5:Ge||Vt(l,t);case 6:if(a=Re,i=ot,Re=null,nl(e,t,l),Re=a,ot=i,Re!==null)if(ot)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(s){Se(l,t,s)}else try{Re.removeChild(l.stateNode)}catch(s){Se(l,t,s)}break;case 18:Re!==null&&(ot?(e=Re,y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ln(e)):y0(Re,l.stateNode));break;case 4:a=Re,i=ot,Re=l.stateNode.containerInfo,ot=!0,nl(e,t,l),Re=a,ot=i;break;case 0:case 11:case 14:case 15:Cl(2,l,t),Ge||Cl(4,l,t),nl(e,t,l);break;case 1:Ge||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ph(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,nl(e,t,l),Ge=a;break;default:nl(e,t,l)}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ln(e)}catch(l){Se(t,t.return,l)}}}function zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ln(e)}catch(l){Se(t,t.return,l)}}function Zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sh),t;default:throw Error(o(435,e.tag))}}function hs(e,t){var l=Zy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=ep.bind(null,e,a);a.then(i,i)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],s=e,f=t,d=f;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Re=d.stateNode,ot=!1;break e}break;case 5:Re=d.stateNode,ot=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(Re===null)throw Error(o(160));Eh(s,f,i),Re=null,ot=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ah(t,e),t=t.sibling}var qt=null;function Ah(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(Cl(3,e,e.return),Vn(3,e),Cl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),a&64&&al&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var i=qt;if(ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[pn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),et(s,a,l),s[Fe]=e,Je(s),a=s;break e;case"link":var f=A0("link","href",i).get(a+(l.href||""));if(f){for(var d=0;d<f.length;d++)if(s=f[d],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;case"meta":if(f=A0("meta","content",i).get(a+(l.content||""))){for(d=0;d<f.length;d++)if(s=f[d],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;default:throw Error(o(468,a))}s[Fe]=e,Je(s),a=s}e.stateNode=a}else O0(i,e.type,e.stateNode);else e.stateNode=z0(i,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?O0(i,e.type,e.stateNode):z0(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xr(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),l!==null&&a&4&&Xr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),e.flags&32){i=e.stateNode;try{Ea(i,"")}catch(G){Se(e,e.return,G)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Xr(e,i,l!==null?l.memoizedProps:i)),a&1024&&($r=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(G){Se(e,e.return,G)}}break;case 3:if(Os=null,i=qt,qt=zs(t.containerInfo),ft(t,e),qt=i,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ln(t.containerInfo)}catch(G){Se(e,e.return,G)}$r&&($r=!1,Oh(e));break;case 4:a=qt,qt=zs(e.stateNode.containerInfo),ft(t,e),dt(e),qt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gs=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 22:i=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,C=al,R=Ge;if(al=C||i,Ge=R||b,ft(t,e),Ge=R,al=C,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||b||al||Ge||fa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(s=b.stateNode,i)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=b.stateNode;var _=b.memoizedProps.style,z=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(G){Se(b,b.return,G)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(G){Se(b,b.return,G)}}}else if(t.tag===18){if(l===null){b=t;try{var O=b.stateNode;i?p0(O,!0):p0(b.stateNode,!1)}catch(G){Se(b,b.return,G)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,hs(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(xh(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var i=l.stateNode,s=Kr(e);ds(e,s,i);break;case 5:var f=l.stateNode;l.flags&32&&(Ea(f,""),l.flags&=-33);var d=Kr(e);ds(e,d,f);break;case 3:case 4:var b=l.stateNode.containerInfo,C=Kr(e);Jr(e,C,b);break;default:throw Error(o(161))}}catch(R){Se(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Oh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Oh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cl(4,t,t.return),fa(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ph(t,t.return,l),fa(t);break;case 27:ei(t.stateNode);case 26:case 5:Vt(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:sl(i,s,l),Vn(4,s);break;case 1:if(sl(i,s,l),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Se(a,a.return,C)}if(a=s,i=a.updateQueue,i!==null){var d=a.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)sd(b[i],d)}catch(C){Se(a,a.return,C)}}l&&f&64&&yh(s),Zn(s,s.return);break;case 27:jh(s);case 26:case 5:sl(i,s,l),l&&a===null&&f&4&&bh(s),Zn(s,s.return);break;case 12:sl(i,s,l);break;case 31:sl(i,s,l),l&&f&4&&Ch(i,s);break;case 13:sl(i,s,l),l&&f&4&&zh(i,s);break;case 22:s.memoizedState===null&&sl(i,s,l),Zn(s,s.return);break;case 30:break;default:sl(i,s,l)}t=t.sibling}}function Fr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Mn(l))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(e,t,l,a),t=t.sibling}function Th(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),i&2048&&Vn(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e)));break;case 12:if(i&2048){Ht(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,d=s.onPostCommit;typeof d=="function"&&d(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Se(t,t.return,b)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,l,a):Xn(e,t):s._visibility&2?Ht(e,t,l,a):(s._visibility|=2,Za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Fr(f,t);break;case 24:Ht(e,t,l,a),i&2048&&Wr(t.alternate,t);break;default:Ht(e,t,l,a)}}function Za(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,d=l,b=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:Za(s,f,d,b,i),Vn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Za(s,f,d,b,i):Xn(s,f):(R._visibility|=2,Za(s,f,d,b,i)),i&&C&2048&&Fr(f.alternate,f);break;case 24:Za(s,f,d,b,i),i&&C&2048&&Wr(f.alternate,f);break;default:Za(s,f,d,b,i)}t=t.sibling}}function Xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:Xn(l,a),i&2048&&Fr(a.alternate,a);break;case 24:Xn(l,a),i&2048&&Wr(a.alternate,a);break;default:Xn(l,a)}t=t.sibling}}var Kn=8192;function Xa(e,t,l){if(e.subtreeFlags&Kn)for(e=e.child;e!==null;)Mh(e,t,l),e=e.sibling}function Mh(e,t,l){switch(e.tag){case 26:Xa(e,t,l),e.flags&Kn&&e.memoizedState!==null&&Mp(l,qt,e.memoizedState,e.memoizedProps);break;case 5:Xa(e,t,l);break;case 3:case 4:var a=qt;qt=zs(e.stateNode.containerInfo),Xa(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Kn,Kn=16777216,Xa(e,t,l),Kn=a):Xa(e,t,l));break;default:Xa(e,t,l)}}function Rh(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 Jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];$e=a,_h(a,e)}Rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dh(e),e=e.sibling}function Dh(e){switch(e.tag){case 0:case 11:case 15:Jn(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Jn(e);break;case 12:Jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ms(e)):Jn(e);break;default:Jn(e)}}function ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];$e=a,_h(a,e)}Rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),ms(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ms(t));break;default:ms(t)}e=e.sibling}}function _h(e,t){for(;$e!==null;){var l=$e;switch(l.tag){case 0:case 11:case 15:Cl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$e=a;else e:for(l=e;$e!==null;){a=$e;var i=a.sibling,s=a.return;if(Nh(a),a===l){$e=null;break e}if(i!==null){i.return=s,$e=i;break e}$e=s}}}var Xy={getCacheForType:function(e){var t=Ie(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(Qe).controller.signal}},Ky=typeof WeakMap=="function"?WeakMap:Map,ye=0,ze=null,se=null,re=0,je=0,St=null,zl=!1,Ka=!1,Ir=!1,ul=0,Ue=0,Al=0,da=0,Pr=0,wt=0,Ja=0,$n=null,ht=null,ec=!1,gs=0,Uh=0,vs=1/0,ys=null,Ol=null,Ze=0,Tl=null,$a=null,rl=0,tc=0,lc=null,Lh=null,Fn=0,ac=null;function Nt(){return(ye&2)!==0&&re!==0?re&-re:T.T!==null?cc():Wo()}function Bh(){if(wt===0)if((re&536870912)===0||fe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),wt=e}else wt=536870912;return e=xt.current,e!==null&&(e.flags|=32),wt}function mt(e,t,l){(e===ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Ml(e,re,wt,!1)),yn(e,l),((ye&2)===0||e!==ze)&&(e===ze&&((ye&2)===0&&(da|=l),Ue===4&&Ml(e,re,wt,!1)),Zt(e))}function qh(e,t,l){if((ye&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t),i=a?Fy(e,t):ic(e,t,!0),s=a;do{if(i===0){Ka&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Jy(l)){i=ic(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var d=e;i=$n;var b=d.current.memoizedState.isDehydrated;if(b&&(Fa(d,f).flags|=256),f=ic(d,f,!1),f!==2){if(Ir&&!b){d.errorRecoveryDisabledLanes|=s,da|=s,i=4;break e}s=ht,ht=i,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){Fa(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,wt,!zl);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=gs+300-gt(),10<i)){if(Ml(a,t,wt,!zl),zi(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=g0(Hh.bind(null,a,l,ht,ys,ec,t,wt,da,Ja,zl,s,"Throttled",-0,0),i);break e}Hh(a,l,ht,ys,ec,t,wt,da,Ja,zl,s,null,-0,0)}}break}while(!0);Zt(e)}function Hh(e,t,l,a,i,s,f,d,b,C,R,_,z,O){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Mh(t,s,_);var G=(s&62914560)===s?gs-gt():(s&4194048)===s?Uh-gt():0;if(G=Rp(_,G),G!==null){rl=s,e.cancelPendingCommit=G(Kh.bind(null,e,t,s,l,a,i,f,d,b,R,_,null,z,O)),Ml(e,s,f,!C);return}}Kh(e,t,s,l,a,i,f,d,b)}function Jy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],s=i.getSnapshot;i=i.value;try{if(!pt(s(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Ml(e,t,l,a){t&=~Pr,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-yt(i),f=1<<s;a[s]=-1,i&=~f}l!==0&&Jo(e,l,t)}function ps(){return(ye&6)===0?(Wn(0),!1):!0}function nc(){if(se!==null){if(je===0)var e=se.return;else e=se,Wt=aa=null,xr(e),Qa=null,Dn=0,e=se;for(;e!==null;)vh(e.alternate,e),e=e.return;se=null}}function Fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,mp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,nc(),ze=e,se=l=$t(e.current,null),re=t,je=0,St=null,zl=!1,Ka=vn(e,t),Ir=!1,Ja=wt=Pr=da=Al=Ue=0,ht=$n=null,ec=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-yt(a),s=1<<i;t|=e[i],a&=~s}return ul=t,Hi(),l}function Qh(e,t){le=null,T.H=kn,t===Ha||t===Ki?(t=ld(),je=3):t===rr?(t=ld(),je=4):je=t===Lr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,se===null&&(Ue=1,us(e,Ot(t,e.current)))}function kh(){var e=xt.current;return e===null?!0:(re&4194048)===re?Dt===null:(re&62914560)===re||(re&536870912)!==0?e===Dt:!1}function Yh(){var e=T.H;return T.H=kn,e===null?kn:e}function Gh(){var e=T.A;return T.A=Xy,e}function bs(){Ue=4,zl||(re&4194048)!==re&&xt.current!==null||(Ka=!0),(Al&134217727)===0&&(da&134217727)===0||ze===null||Ml(ze,re,wt,!1)}function ic(e,t,l){var a=ye;ye|=2;var i=Yh(),s=Gh();(ze!==e||re!==t)&&(ys=null,Fa(e,t)),t=!1;var f=Ue;e:do try{if(je!==0&&se!==null){var d=se,b=St;switch(je){case 8:nc(),f=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var C=je;if(je=0,St=null,Wa(e,d,b,C),l&&Ka){f=0;break e}break;default:C=je,je=0,St=null,Wa(e,d,b,C)}}$y(),f=Ue;break}catch(R){Qh(e,R)}while(!0);return t&&e.shellSuspendCounter++,Wt=aa=null,ye=a,T.H=i,T.A=s,se===null&&(ze=null,re=0,Hi()),f}function $y(){for(;se!==null;)Vh(se)}function Fy(e,t){var l=ye;ye|=2;var a=Yh(),i=Gh();ze!==e||re!==t?(ys=null,vs=gt()+500,Fa(e,t)):Ka=vn(e,t);e:do try{if(je!==0&&se!==null){t=se;var s=St;t:switch(je){case 1:je=0,St=null,Wa(e,t,s,1);break;case 2:case 9:if(ed(s)){je=0,St=null,Zh(t);break}t=function(){je!==2&&je!==9||ze!==e||(je=7),Zt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:ed(s)?(je=0,St=null,Zh(t)):(je=0,St=null,Wa(e,t,s,7));break;case 5:var f=null;switch(se.tag){case 26:f=se.memoizedState;case 5:case 27:var d=se;if(f?T0(f):d.stateNode.complete){je=0,St=null;var b=d.sibling;if(b!==null)se=b;else{var C=d.return;C!==null?(se=C,xs(C)):se=null}break t}}je=0,St=null,Wa(e,t,s,5);break;case 6:je=0,St=null,Wa(e,t,s,6);break;case 8:nc(),Ue=6;break e;default:throw Error(o(462))}}Wy();break}catch(R){Qh(e,R)}while(!0);return Wt=aa=null,T.H=a,T.A=i,ye=l,se!==null?0:(ze=null,re=0,Hi(),Ue)}function Wy(){for(;se!==null&&!x1();)Vh(se)}function Vh(e){var t=mh(e.alternate,e,ul);e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Zh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=rh(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=rh(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:xr(t);default:vh(l,t),t=se=Gf(t,ul),t=mh(l,t,ul)}e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Wa(e,t,l,a){Wt=aa=null,xr(t),Qa=null,Dn=0;var i=t.return;try{if(Hy(e,i,t,l,re)){Ue=1,us(e,Ot(l,e.current)),se=null;return}}catch(s){if(i!==null)throw se=i,s;Ue=1,us(e,Ot(l,e.current)),se=null;return}t.flags&32768?(fe||a===1?e=!0:Ka||(re&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Xh(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){Xh(t,zl);return}e=t.return;var l=Yy(t.alternate,t,ul);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Ue===0&&(Ue=5)}function Xh(e,t){do{var l=Gy(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);Ue=6,se=null}function Kh(e,t,l,a,i,s,f,d,b){e.cancelPendingCommit=null;do js();while(Ze!==0);if((ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Ku,T1(e,l,s,f,d,b),e===ze&&(se=ze=null,re=0),$a=t,Tl=e,rl=l,tc=s,lc=i,Lh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tp(wi,function(){return Ih(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,i=Q.p,Q.p=2,f=ye,ye|=4;try{Vy(e,t,l)}finally{ye=f,Q.p=i,T.T=a}}Ze=1,Jh(),$h(),Fh()}}function Jh(){if(Ze===1){Ze=0;var e=Tl,t=$a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{Ah(t,e);var s=yc,f=_f(e.containerInfo),d=s.focusedElem,b=s.selectionRange;if(f!==d&&d&&d.ownerDocument&&Df(d.ownerDocument.documentElement,d)){if(b!==null&&Yu(d)){var C=b.start,R=b.end;if(R===void 0&&(R=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(R,d.value.length);else{var _=d.ownerDocument||document,z=_&&_.defaultView||window;if(z.getSelection){var O=z.getSelection(),G=d.textContent.length,W=Math.min(b.start,G),Ee=b.end===void 0?W:Math.min(b.end,G);!O.extend&&W>Ee&&(f=Ee,Ee=W,W=f);var w=Rf(d,W),j=Rf(d,Ee);if(w&&j&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==j.node||O.focusOffset!==j.offset)){var E=_.createRange();E.setStart(w.node,w.offset),O.removeAllRanges(),W>Ee?(O.addRange(E),O.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),O.addRange(E))}}}}for(_=[],O=d;O=O.parentNode;)O.nodeType===1&&_.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var D=_[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ds=!!vc,yc=vc=null}finally{ye=i,Q.p=a,T.T=l}}e.current=t,Ze=2}}function $h(){if(Ze===2){Ze=0;var e=Tl,t=$a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{wh(e,t.alternate,t)}finally{ye=i,Q.p=a,T.T=l}}Ze=3}}function Fh(){if(Ze===4||Ze===3){Ze=0,j1();var e=Tl,t=$a,l=rl,a=Lh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,$a=Tl=null,Wh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ol=null),wu(l),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,i=Q.p,Q.p=2,T.T=null;try{for(var s=e.onRecoverableError,f=0;f<a.length;f++){var d=a[f];s(d.value,{componentStack:d.stack})}}finally{T.T=t,Q.p=i}}(rl&3)!==0&&js(),Zt(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===ac?Fn++:(Fn=0,ac=e):Fn=0,Wn(0)}}function Wh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mn(t)))}function js(){return Jh(),$h(),Fh(),Ih()}function Ih(){if(Ze!==5)return!1;var e=Tl,t=tc;tc=0;var l=wu(rl),a=T.T,i=Q.p;try{Q.p=32>l?32:l,T.T=null,l=lc,lc=null;var s=Tl,f=rl;if(Ze=0,$a=Tl=null,rl=0,(ye&6)!==0)throw Error(o(331));var d=ye;if(ye|=4,Dh(s.current),Th(s,s.current,f,l),ye=d,Wn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(gn,s)}catch{}return!0}finally{Q.p=i,T.T=a,Wh(e,t)}}function Ph(e,t,l){t=Ot(l,t),t=Ur(e.stateNode,t,2),e=wl(e,t,2),e!==null&&(yn(e,2),Zt(e))}function Se(e,t,l){if(e.tag===3)Ph(e,e,l);else for(;t!==null;){if(t.tag===3){Ph(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){e=Ot(l,e),l=eh(2),a=wl(t,l,2),a!==null&&(th(l,a,t,e),yn(a,2),Zt(a));break}}t=t.return}}function sc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ky;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(Ir=!0,i.add(l),e=Iy.bind(null,e,t,l),t.then(e,e))}function Iy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(re&l)===l&&(Ue===4||Ue===3&&(re&62914560)===re&&300>gt()-gs?(ye&2)===0&&Fa(e,0):Pr|=l,Ja===re&&(Ja=0)),Zt(e)}function e0(e,t){t===0&&(t=Ko()),e=ea(e,t),e!==null&&(yn(e,t),Zt(e))}function Py(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),e0(e,l)}function ep(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),e0(e,l)}function tp(e,t){return bu(e,t)}var Ss=null,Ia=null,uc=!1,ws=!1,rc=!1,Rl=0;function Zt(e){e!==Ia&&e.next===null&&(Ia===null?Ss=Ia=e:Ia=Ia.next=e),ws=!0,uc||(uc=!0,ap())}function Wn(e,t){if(!rc&&ws){rc=!0;do for(var l=!1,a=Ss;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var f=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=i&~(f&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,n0(a,s))}else s=re,s=zi(a,a===ze?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||vn(a,s)||(l=!0,n0(a,s));a=a.next}while(l);rc=!1}}function lp(){t0()}function t0(){ws=uc=!1;var e=0;Rl!==0&&hp()&&(e=Rl);for(var t=gt(),l=null,a=Ss;a!==null;){var i=a.next,s=l0(a,t);s===0?(a.next=null,l===null?Ss=i:l.next=i,i===null&&(Ia=l)):(l=a,(e!==0||(s&3)!==0)&&(ws=!0)),a=i}Ze!==0&&Ze!==5||Wn(e),Rl!==0&&(Rl=0)}function l0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-yt(s),d=1<<f,b=i[f];b===-1?((d&l)===0||(d&a)!==0)&&(i[f]=O1(d,t)):b<=t&&(e.expiredLanes|=d),s&=~d}if(t=ze,l=re,l=zi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&xu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||vn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xu(a),wu(l)){case 2:case 8:l=Zo;break;case 32:l=wi;break;case 268435456:l=Xo;break;default:l=wi}return a=a0.bind(null,e),l=bu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xu(a),e.callbackPriority=2,e.callbackNode=null,2}function a0(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(js()&&e.callbackNode!==l)return null;var a=re;return a=zi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qh(e,a,t),l0(e,gt()),e.callbackNode!=null&&e.callbackNode===l?a0.bind(null,e):null)}function n0(e,t){if(js())return null;qh(e,t,!0)}function ap(){gp(function(){(ye&6)!==0?bu(Vo,lp):t0()})}function cc(){if(Rl===0){var e=Ba;e===0&&(e=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),Rl=e}return Rl}function i0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mi(""+e)}function s0(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function np(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var s=i0((i[rt]||null).action),f=a.submitter;f&&(t=(t=f[rt]||null)?i0(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var d=new Ui("action","action",null,a,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Rl!==0){var b=f?s0(i,f):new FormData(i);Or(l,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(d.preventDefault(),b=f?s0(i,f):new FormData(i),Or(l,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var oc=0;oc<Xu.length;oc++){var fc=Xu[oc],ip=fc.toLowerCase(),sp=fc[0].toUpperCase()+fc.slice(1);Bt(ip,"on"+sp)}Bt(Bf,"onAnimationEnd"),Bt(qf,"onAnimationIteration"),Bt(Hf,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Sy,"onTransitionRun"),Bt(wy,"onTransitionStart"),Bt(Ny,"onTransitionCancel"),Bt(Qf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function u0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var f=a.length-1;0<=f;f--){var d=a[f],b=d.instance,C=d.currentTarget;if(d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=b}else for(f=0;f<a.length;f++){if(d=a[f],b=d.instance,C=d.currentTarget,d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=b}}}}function ue(e,t){var l=t[Nu];l===void 0&&(l=t[Nu]=new Set);var a=e+"__bubble";l.has(a)||(r0(t,e,2,!1),l.add(a))}function dc(e,t,l){var a=0;t&&(a|=4),r0(l,e,a,t)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Ns]){e[Ns]=!0,ef.forEach(function(l){l!=="selectionchange"&&(up.has(l)||dc(l,!1,e),dc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ns]||(t[Ns]=!0,dc("selectionchange",!1,t))}}function r0(e,t,l,a){switch(B0(t)){case 2:var i=Up;break;case 8:i=Lp;break;default:i=Ac}l=i.bind(null,t,l,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function mc(e,t,l,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===i)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;d!==null;){if(f=xa(d),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=s=f;continue e}d=d.parentNode}}a=a.return}hf(function(){var C=s,R=Mu(l),_=[];e:{var z=kf.get(e);if(z!==void 0){var O=Ui,G=e;switch(e){case"keypress":if(Di(l)===0)break e;case"keydown":case"keyup":O=ey;break;case"focusin":G="focus",O=Bu;break;case"focusout":G="blur",O=Bu;break;case"beforeblur":case"afterblur":O=Bu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ay;break;case Bf:case qf:case Hf:O=Z1;break;case Qf:O=iy;break;case"scroll":case"scrollend":O=Q1;break;case"wheel":O=uy;break;case"copy":case"cut":case"paste":O=K1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=pf;break;case"toggle":case"beforetoggle":O=cy}var W=(t&4)!==0,Ee=!W&&(e==="scroll"||e==="scrollend"),w=W?z!==null?z+"Capture":null:z;W=[];for(var j=C,E;j!==null;){var D=j;if(E=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||E===null||w===null||(D=xn(j,w),D!=null&&W.push(Pn(j,D,E))),Ee)break;j=j.return}0<W.length&&(z=new O(z,G,null,l,R),_.push({event:z,listeners:W}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",z&&l!==Tu&&(G=l.relatedTarget||l.fromElement)&&(xa(G)||G[ba]))break e;if((O||z)&&(z=R.window===R?R:(z=R.ownerDocument)?z.defaultView||z.parentWindow:window,O?(G=l.relatedTarget||l.toElement,O=C,G=G?xa(G):null,G!==null&&(Ee=g(G),W=G.tag,G!==Ee||W!==5&&W!==27&&W!==6)&&(G=null)):(O=null,G=C),O!==G)){if(W=vf,D="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(W=pf,D="onPointerLeave",w="onPointerEnter",j="pointer"),Ee=O==null?z:bn(O),E=G==null?z:bn(G),z=new W(D,j+"leave",O,l,R),z.target=Ee,z.relatedTarget=E,D=null,xa(R)===C&&(W=new W(w,j+"enter",G,l,R),W.target=E,W.relatedTarget=Ee,D=W),Ee=D,O&&G)t:{for(W=rp,w=O,j=G,E=0,D=w;D;D=W(D))E++;D=0;for(var F=j;F;F=W(F))D++;for(;0<E-D;)w=W(w),E--;for(;0<D-E;)j=W(j),D--;for(;E--;){if(w===j||j!==null&&w===j.alternate){W=w;break t}w=W(w),j=W(j)}W=null}else W=null;O!==null&&c0(_,z,O,W,!1),G!==null&&Ee!==null&&c0(_,Ee,G,W,!0)}}e:{if(z=C?bn(C):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var me=Cf;else if(Nf(z))if(zf)me=by;else{me=yy;var X=vy}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Ou(C.elementType)&&(me=Cf):me=py;if(me&&(me=me(e,C))){Ef(_,me,l,R);break e}X&&X(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Au(z,"number",z.value)}switch(X=C?bn(C):window,e){case"focusin":(Nf(X)||X.contentEditable==="true")&&(Oa=X,Gu=C,An=null);break;case"focusout":An=Gu=Oa=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Uf(_,l,R);break;case"selectionchange":if(jy)break;case"keydown":case"keyup":Uf(_,l,R)}var ae;if(Hu)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Aa?Sf(e,l)&&(ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ce="onCompositionStart");ce&&(bf&&l.locale!=="ko"&&(Aa||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Aa&&(ae=mf()):(vl=R,_u="value"in vl?vl.value:vl.textContent,Aa=!0)),X=Es(C,ce),0<X.length&&(ce=new yf(ce,e,null,l,R),_.push({event:ce,listeners:X}),ae?ce.data=ae:(ae=wf(l),ae!==null&&(ce.data=ae)))),(ae=fy?dy(e,l):hy(e,l))&&(ce=Es(C,"onBeforeInput"),0<ce.length&&(X=new yf("onBeforeInput","beforeinput",null,l,R),_.push({event:X,listeners:ce}),X.data=ae)),np(_,e,C,l,R)}u0(_,t)})}function Pn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Es(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=xn(e,l),i!=null&&a.unshift(Pn(e,i,s)),i=xn(e,t),i!=null&&a.push(Pn(e,i,s))),e.tag===3)return a;e=e.return}return[]}function rp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function c0(e,t,l,a,i){for(var s=t._reactName,f=[];l!==null&&l!==a;){var d=l,b=d.alternate,C=d.stateNode;if(d=d.tag,b!==null&&b===a)break;d!==5&&d!==26&&d!==27||C===null||(b=C,i?(C=xn(l,s),C!=null&&f.unshift(Pn(l,C,b))):i||(C=xn(l,s),C!=null&&f.push(Pn(l,C,b)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var cp=/\r\n?/g,op=/\u0000|\uFFFD/g;function o0(e){return(typeof e=="string"?e:""+e).replace(cp,`
|
|
9
|
+
`).replace(op,"")}function f0(e,t){return t=o0(t),o0(e)===t}function Ne(e,t,l,a,i,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ea(e,""+a);break;case"className":Oi(e,"class",a);break;case"tabIndex":Oi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,l,a);break;case"style":ff(e,a,s);break;case"data":if(t!=="object"){Oi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 s=="function"&&(l==="formAction"?(t!=="input"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Mi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ue("beforetoggle",e),ue("toggle",e),Ai(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ai(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=q1.get(l)||l,Ai(e,l,a))}}function gc(e,t,l,a,i,s){switch(l){case"style":ff(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&Ea(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),s=e[rt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Ai(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,i=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,s,f,l,null)}}i&&Ne(e,t,"srcSet",l.srcSet,l,null),a&&Ne(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var d=s=f=i=null,b=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":i=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":C=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Ne(e,t,a,R,l,null)}}uf(e,s,d,b,C,f,i,!1);return;case"select":ue("invalid",e),a=f=s=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:Ne(e,t,i,d,l,null)}t=s,l=f,e.multiple=!!a,t!=null?Na(e,!!a,t,!1):l!=null&&Na(e,!!a,l,!0);return;case"textarea":ue("invalid",e),s=i=a=null;for(f in l)if(l.hasOwnProperty(f)&&(d=l[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Ne(e,t,f,d,l,null)}cf(e,a,i,s);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ne(e,t,b,a,l,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<In.length;a++)ue(In[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("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(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,C,a,l,null)}return;default:if(Ou(t)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&gc(e,t,R,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Ne(e,t,d,a,l,null))}function fp(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,f=null,d=null,b=null,C=null,R=null;for(O in l){var _=l[O];if(l.hasOwnProperty(O)&&_!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":b=_;default:a.hasOwnProperty(O)||Ne(e,t,O,null,a,_)}}for(var z in a){var O=a[z];if(_=l[z],a.hasOwnProperty(z)&&(O!=null||_!=null))switch(z){case"type":s=O;break;case"name":i=O;break;case"checked":C=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:O!==_&&Ne(e,t,z,O,a,_)}}zu(e,f,d,b,C,R,s,i);return;case"select":O=f=d=z=null;for(s in l)if(b=l[s],l.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":O=b;default:a.hasOwnProperty(s)||Ne(e,t,s,null,a,b)}for(i in a)if(s=a[i],b=l[i],a.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":z=s;break;case"defaultValue":d=s;break;case"multiple":f=s;default:s!==b&&Ne(e,t,i,s,a,b)}t=d,l=f,a=O,z!=null?Na(e,!!l,z,!1):!!a!=!!l&&(t!=null?Na(e,!!l,t,!0):Na(e,!!l,l?[]:"",!1));return;case"textarea":O=z=null;for(d in l)if(i=l[d],l.hasOwnProperty(d)&&i!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ne(e,t,d,null,a,i)}for(f in a)if(i=a[f],s=l[f],a.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":z=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&Ne(e,t,f,i,a,s)}rf(e,z,O);return;case"option":for(var G in l)if(z=l[G],l.hasOwnProperty(G)&&z!=null&&!a.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:Ne(e,t,G,null,a,z)}for(b in a)if(z=a[b],O=l[b],a.hasOwnProperty(b)&&z!==O&&(z!=null||O!=null))switch(b){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ne(e,t,b,z,a,O)}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 W in l)z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W)&&Ne(e,t,W,null,a,z);for(C in a)if(z=a[C],O=l[C],a.hasOwnProperty(C)&&z!==O&&(z!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Ne(e,t,C,z,a,O)}return;default:if(Ou(t)){for(var Ee in l)z=l[Ee],l.hasOwnProperty(Ee)&&z!==void 0&&!a.hasOwnProperty(Ee)&&gc(e,t,Ee,void 0,a,z);for(R in a)z=a[R],O=l[R],!a.hasOwnProperty(R)||z===O||z===void 0&&O===void 0||gc(e,t,R,z,a,O);return}}for(var w in l)z=l[w],l.hasOwnProperty(w)&&z!=null&&!a.hasOwnProperty(w)&&Ne(e,t,w,null,a,z);for(_ in a)z=a[_],O=l[_],!a.hasOwnProperty(_)||z===O||z==null&&O==null||Ne(e,t,_,z,a,O)}function d0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],s=i.transferSize,f=i.initiatorType,d=i.duration;if(s&&d&&d0(f)){for(f=0,d=i.responseEnd,a+=1;a<l.length;a++){var b=l[a],C=b.startTime;if(C>d)break;var R=b.transferSize,_=b.initiatorType;R&&d0(_)&&(b=b.responseEnd,f+=R*(b<d?1:(d-C)/(b-C)))}if(--a,t+=8*(s+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 vc=null,yc=null;function Cs(e){return e.nodeType===9?e:e.ownerDocument}function h0(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 m0(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 pc(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 bc=null;function hp(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var g0=typeof setTimeout=="function"?setTimeout:void 0,mp=typeof clearTimeout=="function"?clearTimeout:void 0,v0=typeof Promise=="function"?Promise:void 0,gp=typeof queueMicrotask=="function"?queueMicrotask:typeof v0<"u"?function(e){return v0.resolve(null).then(e).catch(vp)}:g0;function vp(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function y0(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),ln(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ei(l);for(var s=l.firstChild;s;){var f=s.nextSibling,d=s.nodeName;s[pn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&ei(e.ownerDocument.body);l=i}while(l);ln(t)}function p0(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function xc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":xc(l),Eu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yp(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[pn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function pp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function b0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function jc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bp(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function _t(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 wc=null;function x0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function j0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function S0(e,t,l){switch(t=Cs(l),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 ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eu(e)}var Ut=new Map,w0=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Q.d;Q.d={f:xp,r:jp,D:Sp,C:wp,L:Np,m:Ep,X:zp,S:Cp,M:Ap};function xp(){var e=cl.f(),t=ps();return e||t}function jp(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?Qd(t):cl.r(e)}var Pa=typeof document>"u"?null:document;function N0(e,t,l){var a=Pa;if(a&&typeof t=="string"&&t){var i=zt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),w0.has(i)||(w0.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Sp(e){cl.D(e),N0("dns-prefetch",e,null)}function wp(e,t){cl.C(e,t),N0("preconnect",e,t)}function Np(e,t,l){cl.L(e,t,l);var a=Pa;if(a&&e&&t){var i='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+zt(l.imageSizes)+'"]')):i+='[href="'+zt(e)+'"]';var s=i;switch(t){case"style":s=en(e);break;case"script":s=tn(e)}Ut.has(s)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ti(s))||t==="script"&&a.querySelector(li(s))||(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Ep(e,t){cl.m(e,t);var l=Pa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+zt(a)+'"][href="'+zt(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=tn(e)}if(!Ut.has(s)&&(e=A({rel:"modulepreload",href:e},t),Ut.set(s,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(li(s)))return}a=l.createElement("link"),et(a,"link",e),Je(a),l.head.appendChild(a)}}}function Cp(e,t,l){cl.S(e,t,l);var a=Pa;if(a&&e){var i=Sa(a).hoistableStyles,s=en(e);t=t||"default";var f=i.get(s);if(!f){var d={loading:0,preload:null};if(f=a.querySelector(ti(s)))d.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(s))&&Nc(e,l);var b=f=a.createElement("link");Je(b),et(b,"link",e),b._p=new Promise(function(C,R){b.onload=C,b.onerror=R}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,As(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:d},i.set(s,f)}}}function zp(e,t){cl.X(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=A({src:e,async:!0},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function Ap(e,t){cl.M(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=A({src:e,async:!0,type:"module"},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function E0(e,t,l,a){var i=(i=ie.current)?zs(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=en(l.href),l=Sa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=en(l.href);var s=Sa(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(ti(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Ut.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ut.set(e,l),s||Op(i,e,l,f.state))),t&&a===null)throw Error(o(528,""));return f}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(l),l=Sa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function en(e){return'href="'+zt(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Op(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),et(t,"link",l),Je(t),e.head.appendChild(t))}function tn(e){return'[src="'+zt(e)+'"]'}function li(e){return"script[async]"+e}function z0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),et(a,"style",i),As(a,l.precedence,e),t.instance=a;case"stylesheet":i=en(l.href);var s=e.querySelector(ti(i));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;a=C0(l),(i=Ut.get(i))&&Nc(a,i),s=(e.ownerDocument||e).createElement("link"),Je(s);var f=s;return f._p=new Promise(function(d,b){f.onload=d,f.onerror=b}),et(s,"link",a),t.state.loading|=4,As(s,l.precedence,e),t.instance=s;case"script":return s=tn(l.src),(i=e.querySelector(li(s)))?(t.instance=i,Je(i),i):(a=l,(i=Ut.get(s))&&(a=A({},l),Ec(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),et(i,"link",a),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&&(a=t.instance,t.state.loading|=4,As(a,l.precedence,e));return t.instance}function As(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function A0(e,t,l){if(Os===null){var a=new Map,i=Os=new Map;i.set(l,a)}else i=Os,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var s=l[i];if(!(s[pn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var d=a.get(f);d?d.push(s):a.set(f,[s])}}return a}function O0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Tp(e,t,l){if(l===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 T0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mp(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=en(a.href),s=t.querySelector(ti(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Je(s);return}s=t.ownerDocument||t,a=C0(a),(i=Ut.get(i))&&Nc(a,i),s=s.createElement("link"),Je(s);var f=s;f._p=new Promise(function(d,b){f.onload=d,f.onerror=b}),et(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ts.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Cc=0;function Rp(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ms=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ms=new Map,t.forEach(Dp,e),Ms=null,Ts.call(e))}function Dp(e,t){if(!(t.state.loading&4)){var l=Ms.get(e);if(l)var a=l.get(null);else{l=new Map,Ms.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}i=t.instance,f=i.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,i),l.set(f,i),this.count++,a=Ts.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:k,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function _p(e,t,l,a,i,s,f,d,b){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=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function M0(e,t,l,a,i,s,f,d,b,C,R,_){return e=new _p(e,t,l,f,b,C,R,_,d),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=ir(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},cr(s),e}function R0(e){return e?(e=Ra,e):Ra}function D0(e,t,l,a,i,s){i=R0(i),a.context===null?a.context=i:a.pendingContext=i,a=Sl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=wl(e,a,t),l!==null&&(mt(l,e,t),Un(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function zc(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function U0(e){if(e.tag===13||e.tag===31){var t=ea(e,67108864);t!==null&&mt(t,e,67108864),zc(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=Nt();t=Su(t);var l=ea(e,t);l!==null&&mt(l,e,t),zc(e,t)}}var Ds=!0;function Up(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=2,Ac(e,t,l,a)}finally{Q.p=s,T.T=i}}function Lp(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=8,Ac(e,t,l,a)}finally{Q.p=s,T.T=i}}function Ac(e,t,l,a){if(Ds){var i=Oc(a);if(i===null)mc(e,t,a,_s,l),q0(e,a);else if(qp(i,e,t,l,a))a.stopPropagation();else if(q0(e,a),t&4&&-1<Bp.indexOf(e)){for(;i!==null;){var s=ja(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=$l(s.pendingLanes);if(f!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var b=1<<31-yt(f);d.entanglements[1]|=b,f&=~b}Zt(s),(ye&6)===0&&(vs=gt()+500,Wn(0))}}break;case 31:case 13:d=ea(s,2),d!==null&&mt(d,s,2),ps(),zc(s,2)}if(s=Oc(a),s===null&&mc(e,t,a,_s,l),s===i)break;i=s}i!==null&&a.stopPropagation()}else mc(e,t,a,null,l)}}function Oc(e){return e=Mu(e),Tc(e)}var _s=null;function Tc(e){if(_s=null,e=xa(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=y(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _s=e,null}function B0(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(S1()){case Vo:return 2;case Zo:return 8;case wi:case w1:return 32;case Xo:return 268435456;default:return 32}default:return 32}}var Mc=!1,_l=null,Ul=null,Ll=null,ni=new Map,ii=new Map,Bl=[],Bp="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 q0(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,l,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ja(t),t!==null&&U0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qp(e,t,l,a,i){switch(t){case"focusin":return _l=si(_l,e,t,l,a,i),!0;case"dragenter":return Ul=si(Ul,e,t,l,a,i),!0;case"mouseover":return Ll=si(Ll,e,t,l,a,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,si(ni.get(s)||null,e,t,l,a,i)),!0;case"gotpointercapture":return s=i.pointerId,ii.set(s,si(ii.get(s)||null,e,t,l,a,i)),!0}return!1}function H0(e){var t=xa(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Oc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Tu=a,l.target.dispatchEvent(a),Tu=null}else return t=ja(l),t!==null&&U0(t),e.blockedOn=l,!1;t.shift()}return!0}function Q0(e,t,l){Us(e)&&l.delete(t)}function Hp(){Mc=!1,_l!==null&&Us(_l)&&(_l=null),Ul!==null&&Us(Ul)&&(Ul=null),Ll!==null&&Us(Ll)&&(Ll=null),ni.forEach(Q0),ii.forEach(Q0)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Hp)))}var Bs=null;function k0(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Tc(a||l)===null)continue;break}var s=ja(l);s!==null&&(e.splice(t,3),t-=3,Or(s,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function ln(e){function t(b){return Ls(b,e)}_l!==null&&Ls(_l,e),Ul!==null&&Ls(Ul,e),Ll!==null&&Ls(Ll,e),ni.forEach(t),ii.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)H0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],s=l[a+1],f=i[rt]||null;if(typeof s=="function")f||k0(l);else if(f){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[rt]||null)d=f.formAction;else if(Tc(i)!==null)continue}else d=f.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),k0(l)}}}function Y0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Rc(e){this._internalRoot=e}qs.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Nt();D0(l,a,e,t,null,null)},qs.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;D0(e.current,2,null,e,null,null),ps(),t[ba]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wo();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&H0(e)}};var G0=u.version;if(G0!=="19.2.0")throw Error(o(527,G0,"19.2.0"));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=p(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{gn=Hs.inject(Qp),vt=Hs}catch{}}return nn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",i=Fd,s=Wd,f=Id;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=M0(e,1,!1,null,null,l,a,null,i,s,f,Y0),e[ba]=t.current,hc(e),new Rc(t)},nn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,i="",s=Fd,f=Wd,d=Id,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=M0(e,1,!0,t,l??null,a,i,b,s,f,d,Y0),t.context=R0(null),l=t.current,a=Nt(),a=Su(a),i=Sl(a),i.callback=null,wl(l,i,a),l=a,t.current.lanes=l,yn(t,l),Zt(t),e[ba]=t.current,hc(e),new qs(t)},nn.version="19.2.0",nn}var Vc;function P0(){if(Vc)return Ys.exports;Vc=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(u){console.error(u)}}return n(),Ys.exports=I0(),Ys.exports}var em=P0();const tm=Dc(em);var ha=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,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},am=class{#e=lm;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},Hl=new am;function nm(n){setTimeout(n,0)}var Ql=typeof window>"u"||"Deno"in globalThis;function at(){}function im(n,u){return typeof n=="function"?n(u):n}function Xs(n){return typeof n=="number"&&n>=0&&n!==1/0}function Zc(n,u){return Math.max(n+(u||0)-Date.now(),0)}function ol(n,u){return typeof n=="function"?n(u):n}function Et(n,u){return typeof n=="function"?n(u):n}function Xc(n,u){const{type:c="all",exact:o,fetchStatus:h,predicate:g,queryKey:v,stale:y}=n;if(v){if(o){if(u.queryHash!==Ks(v,u.options))return!1}else if(!sn(u.queryKey,v))return!1}if(c!=="all"){const x=u.isActive();if(c==="active"&&!x||c==="inactive"&&x)return!1}return!(typeof y=="boolean"&&u.isStale()!==y||h&&h!==u.state.fetchStatus||g&&!g(u))}function Kc(n,u){const{exact:c,status:o,predicate:h,mutationKey:g}=n;if(g){if(!u.options.mutationKey)return!1;if(c){if(kl(u.options.mutationKey)!==kl(g))return!1}else if(!sn(u.options.mutationKey,g))return!1}return!(o&&u.state.status!==o||h&&!h(u))}function Ks(n,u){return(u?.queryKeyHashFn||kl)(n)}function kl(n){return JSON.stringify(n,(u,c)=>Js(c)?Object.keys(c).sort().reduce((o,h)=>(o[h]=c[h],o),{}):c)}function sn(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>sn(n[c],u[c])):!1}var sm=Object.prototype.hasOwnProperty;function Jc(n,u){if(n===u)return n;const c=$c(n)&&$c(u);if(!c&&!(Js(n)&&Js(u)))return u;const h=(c?n:Object.keys(n)).length,g=c?u:Object.keys(u),v=g.length,y=c?new Array(v):{};let x=0;for(let p=0;p<v;p++){const N=c?p:g[p],A=n[N],B=u[N];if(A===B){y[N]=A,(c?p<h:sm.call(n,N))&&x++;continue}if(A===null||B===null||typeof A!="object"||typeof B!="object"){y[N]=B;continue}const V=Jc(A,B);y[N]=V,V===A&&x++}return h===v&&x===h?n:y}function ri(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const c in n)if(n[c]!==u[c])return!1;return!0}function $c(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Js(n){if(!Fc(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!Fc(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Fc(n){return Object.prototype.toString.call(n)==="[object Object]"}function um(n){return new Promise(u=>{Hl.setTimeout(u,n)})}function $s(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?Jc(n,u):u}function rm(n,u,c=0){const o=[...n,u];return c&&o.length>c?o.slice(1):o}function cm(n,u,c=0){const o=[u,...n];return c&&o.length>c?o.slice(0,-1):o}var Fs=Symbol();function Wc(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Fs?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ic(n,u){return typeof n=="function"?n(...u):!!n}var om=class extends ha{#e;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ws=new om;function Is(){let n,u;const c=new Promise((h,g)=>{n=h,u=g});c.status="pending",c.catch(()=>{});function o(h){Object.assign(c,h),delete c.resolve,delete c.reject}return c.resolve=h=>{o({status:"fulfilled",value:h}),n(h)},c.reject=h=>{o({status:"rejected",reason:h}),u(h)},c}var fm=nm;function dm(){let n=[],u=0,c=y=>{y()},o=y=>{y()},h=fm;const g=y=>{u?n.push(y):h(()=>{c(y)})},v=()=>{const y=n;n=[],y.length&&h(()=>{o(()=>{y.forEach(x=>{c(x)})})})};return{batch:y=>{let x;u++;try{x=y()}finally{u--,u||v()}return x},batchCalls:y=>(...x)=>{g(()=>{y(...x)})},schedule:g,setNotifyFunction:y=>{c=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{h=y}}}var Ve=dm(),hm=class extends ha{#e=!0;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=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}},ci=new hm;function mm(n){return Math.min(1e3*2**n,3e4)}function Pc(n){return(n??"online")==="online"?ci.isOnline():!0}var Ps=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function eo(n){let u=!1,c=0,o;const h=Is(),g=()=>h.status!=="pending",v=M=>{if(!g()){const q=new Ps(M);B(q),n.onCancel?.(q)}},y=()=>{u=!0},x=()=>{u=!1},p=()=>Ws.isFocused()&&(n.networkMode==="always"||ci.isOnline())&&n.canRun(),N=()=>Pc(n.networkMode)&&n.canRun(),A=M=>{g()||(o?.(),h.resolve(M))},B=M=>{g()||(o?.(),h.reject(M))},V=()=>new Promise(M=>{o=q=>{(g()||p())&&M(q)},n.onPause?.()}).then(()=>{o=void 0,g()||n.onContinue?.()}),H=()=>{if(g())return;let M;const q=c===0?n.initialPromise:void 0;try{M=q??n.fn()}catch(L){M=Promise.reject(L)}Promise.resolve(M).then(A).catch(L=>{if(g())return;const $=n.retry??(Ql?0:3),k=n.retryDelay??mm,ne=typeof k=="function"?k(c,L):k,xe=$===!0||typeof $=="number"&&c<$||typeof $=="function"&&$(c,L);if(u||!xe){B(L);return}c++,n.onFail?.(c,L),um(ne).then(()=>p()?void 0:V()).then(()=>{u?B(L):H()})})};return{promise:h,status:()=>h.status,cancel:v,continue:()=>(o?.(),h),cancelRetry:y,continueRetry:x,canStart:N,start:()=>(N()?H():V().then(H),h)}}var to=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xs(this.gcTime)&&(this.#e=Hl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ql?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Hl.clearTimeout(this.#e),this.#e=void 0)}},gm=class extends to{#e;#t;#l;#n;#a;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#l=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=no(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=no(this.options);u.data!==void 0&&(this.setState(ao(u.data,u.dataUpdatedAt)),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(n,u){const c=$s(this.state.data,n,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),c}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#a?.promise;return this.#a?.cancel(n),u?u.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Et(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fs||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ol(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:!Zc(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,u){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(x=>x.options.queryFn);y&&this.setOptions(y.options)}const c=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,c.signal)})},h=()=>{const y=Wc(this.options,u),p=(()=>{const N={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(N),N})();return this.#u=!1,this.options.persister?this.options.persister(y,p,this):y(p)},v=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:h};return o(y),y})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#i({type:"fetch",meta:v.fetchOptions?.meta}),this.#a=eo({initialPromise:u?.initialPromise,fn:v.fetchFn,onCancel:y=>{y instanceof Ps&&y.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(y,x)=>{this.#i({type:"failed",failureCount:y,error:x})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#l.config.onSuccess?.(y,this),this.#l.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Ps){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#l.config.onError?.(y,this),this.#l.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(n){const u=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,...lo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...ao(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 h=n.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=u(this.state),Ve.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:n})})}};function lo(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pc(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ao(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function no(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,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 vm=class extends ha{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=Is(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#l=void 0;#n=void 0;#a;#s;#u;#i;#g;#d;#h;#c;#o;#r;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),io(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const u=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 Et(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),u._defaulted&&!ri(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&so(this.#t,c,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||ol(this.options.staleTime,this.#t)!==ol(u.staleTime,this.#t))&&this.#v();const h=this.#y();o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||h!==this.#r)&&this.#p(h)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(u,n);return pm(this,c)&&(this.#n=c,this.#s=this.options,this.#a=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,u){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.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 u=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,u);return c.fetch().then(()=>this.createResult(c,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#S();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(at)),u}#v(){this.#x();const n=ol(this.options.staleTime,this.#t);if(Ql||this.#n.isStale||!Xs(n))return;const c=Zc(this.#n.dataUpdatedAt,n)+1;this.#c=Hl.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#p(n){this.#j(),this.#r=n,!(Ql||Et(this.options.enabled,this.#t)===!1||!Xs(this.#r)||this.#r===0)&&(this.#o=Hl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ws.isFocused())&&this.#f()},this.#r))}#b(){this.#v(),this.#p(this.#y())}#x(){this.#c&&(Hl.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Hl.clearInterval(this.#o),this.#o=void 0)}createResult(n,u){const c=this.#t,o=this.options,h=this.#n,g=this.#a,v=this.#s,x=n!==c?n.state:this.#l,{state:p}=n;let N={...p},A=!1,B;if(u._optimisticResults){const ee=this.hasListeners(),ve=!ee&&io(n,u),Me=ee&&so(n,c,u,o);(ve||Me)&&(N={...N,...lo(p.data,n.options)}),u._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:V,errorUpdatedAt:H,status:M}=N;B=N.data;let q=!1;if(u.placeholderData!==void 0&&B===void 0&&M==="pending"){let ee;h?.isPlaceholderData&&u.placeholderData===v?.placeholderData?(ee=h.data,q=!0):ee=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,ee!==void 0&&(M="success",B=$s(h?.data,ee,u),A=!0)}if(u.select&&B!==void 0&&!q)if(h&&B===g?.data&&u.select===this.#g)B=this.#d;else try{this.#g=u.select,B=u.select(B),B=$s(h?.data,B,u),this.#d=B,this.#i=null}catch(ee){this.#i=ee}this.#i&&(V=this.#i,B=this.#d,H=Date.now(),M="error");const L=N.fetchStatus==="fetching",$=M==="pending",k=M==="error",ne=$&&L,xe=B!==void 0,K={status:M,fetchStatus:N.fetchStatus,isPending:$,isSuccess:M==="success",isError:k,isInitialLoading:ne,isLoading:ne,data:B,dataUpdatedAt:N.dataUpdatedAt,error:V,errorUpdatedAt:H,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>x.dataUpdateCount||N.errorUpdateCount>x.errorUpdateCount,isFetching:L,isRefetching:L&&!$,isLoadingError:k&&!xe,isPaused:N.fetchStatus==="paused",isPlaceholderData:A,isRefetchError:k&&xe,isStale:tu(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Et(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=he=>{K.status==="error"?he.reject(K.error):K.data!==void 0&&he.resolve(K.data)},ve=()=>{const he=this.#u=K.promise=Is();ee(he)},Me=this.#u;switch(Me.status){case"pending":n.queryHash===c.queryHash&&ee(Me);break;case"fulfilled":(K.status==="error"||K.data!==Me.value)&&ve();break;case"rejected":(K.status!=="error"||K.error!==Me.reason)&&ve();break}}return K}updateResult(){const n=this.#n,u=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ri(u,n))return;this.#n=u;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!this.#m.size)return!0;const g=new Set(h??this.#m);return this.options.throwOnError&&g.add("error"),Object.keys(this.#n).some(v=>{const y=v;return this.#n[y]!==n[y]&&g.has(y)})};this.#w({listeners:c()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#l=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ve.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ym(n,u){return Et(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function io(n,u){return ym(n,u)||n.state.data!==void 0&&eu(n,u,u.refetchOnMount)}function eu(n,u,c){if(Et(u.enabled,n)!==!1&&ol(u.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&tu(n,u)}return!1}function so(n,u,c,o){return(n!==u||Et(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&tu(n,c)}function tu(n,u){return Et(u.enabled,n)!==!1&&n.isStaleByTime(ol(u.staleTime,n))}function pm(n,u){return!ri(n.getCurrentResult(),u)}function uo(n){return{onFetch:(u,c)=>{const o=u.options,h=u.fetchOptions?.meta?.fetchMore?.direction,g=u.state.data?.pages||[],v=u.state.data?.pageParams||[];let y={pages:[],pageParams:[]},x=0;const p=async()=>{let N=!1;const A=H=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>(u.signal.aborted?N=!0:u.signal.addEventListener("abort",()=>{N=!0}),u.signal)})},B=Wc(u.options,u.fetchOptions),V=async(H,M,q)=>{if(N)return Promise.reject();if(M==null&&H.pages.length)return Promise.resolve(H);const $=(()=>{const de={client:u.client,queryKey:u.queryKey,pageParam:M,direction:q?"backward":"forward",meta:u.options.meta};return A(de),de})(),k=await B($),{maxPages:ne}=u.options,xe=q?cm:rm;return{pages:xe(H.pages,k,ne),pageParams:xe(H.pageParams,M,ne)}};if(h&&g.length){const H=h==="backward",M=H?bm:ro,q={pages:g,pageParams:v},L=M(o,q);y=await V(q,L,H)}else{const H=n??g.length;do{const M=x===0?v[0]??o.initialPageParam:ro(o,y);if(x>0&&M==null)break;y=await V(y,M),x++}while(x<H)}return y};u.options.persister?u.fetchFn=()=>u.options.persister?.(p,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c):u.fetchFn=p}}}function ro(n,{pages:u,pageParams:c}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,c[o],c):void 0}function bm(n,{pages:u,pageParams:c}){return u.length>0?n.getPreviousPageParam?.(u[0],u,c[0],c):void 0}var xm=class extends to{#e;#t;#l;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#l=n.mutationCache,this.#t=[],this.state=n.state||co(),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.#l.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#l.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#a({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=eo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(g,v)=>{this.#a({type:"failed",failureCount:g,error:v})},onPause:()=>{this.#a({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)});const o=this.state.status==="pending",h=!this.#n.canStart();try{if(o)u();else{this.#a({type:"pending",variables:n,isPaused:h}),await this.#l.config.onMutate?.(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#a({type:"pending",context:v,variables:n,isPaused:h})}const g=await this.#n.start();return await this.#l.config.onSuccess?.(g,n,this.state.context,this,c),await this.options.onSuccess?.(g,n,this.state.context,c),await this.#l.config.onSettled?.(g,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(g,null,n,this.state.context,c),this.#a({type:"success",data:g}),g}catch(g){try{throw await this.#l.config.onError?.(g,n,this.state.context,this,c),await this.options.onError?.(g,n,this.state.context,c),await this.#l.config.onSettled?.(void 0,g,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(void 0,g,n,this.state.context,c),g}finally{this.#a({type:"error",error:g})}}finally{this.#l.runNext(this)}}#a(n){const u=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=u(this.state),Ve.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#l.notify({mutation:this,type:"updated",action:n})})}};function co(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(n,u,c){const o=new xm({client:n,mutationCache:this,mutationId:++this.#l,options:n.defaultMutationOptions(u),state:c});return this.add(o),o}add(n){this.#e.add(n);const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);c?c.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=oi(n);if(typeof u=="string"){const o=this.#t.get(u)?.find(h=>h.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=oi(n);return typeof u=="string"?this.#t.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ve.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 u={exact:!0,...n};return this.getAll().find(c=>Kc(u,c))}findAll(n={}){return this.getAll().filter(u=>Kc(n,u))}notify(n){Ve.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Ve.batch(()=>Promise.all(n.map(u=>u.continue().catch(at))))}};function oi(n){return n.options.scope?.id}var Sm=class extends ha{#e;#t=void 0;#l;#n;constructor(n,u){super(),this.#e=n,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const u=this.options;this.options=this.#e.defaultMutationOptions(n),ri(this.options,u)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),u?.mutationKey&&this.options.mutationKey&&kl(u.mutationKey)!==kl(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#a(),this.#s()}mutate(n,u){return this.#n=u,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(n)}#a(){const n=this.#l?.state??co();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}}#s(n){Ve.batch(()=>{if(this.#n&&this.hasListeners()){const u=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#n.onSuccess?.(n.data,u,c,o),this.#n.onSettled?.(n.data,null,u,c,o)):n?.type==="error"&&(this.#n.onError?.(n.error,u,c,o),this.#n.onSettled?.(void 0,n.error,u,c,o))}this.listeners.forEach(u=>{u(this.#t)})})}},wm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,c){const o=u.queryKey,h=u.queryHash??Ks(o,u);let g=this.get(h);return g||(g=new gm({client:n,queryKey:o,queryHash:h,options:n.defaultQueryOptions(u),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(g)),g}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ve.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Xc(u,c))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(c=>Xc(n,c)):u}notify(n){Ve.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Nm=class{#e;#t;#l;#n;#a;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new wm,this.#t=n.mutationCache||new jm,this.#l=n.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Ws.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ci.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=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 u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=this.#e.build(this,u),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ol(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:c})=>{const o=c.data;return[u,o]})}setQueryData(n,u,c){const o=this.defaultQueryOptions({queryKey:n}),g=this.#e.get(o.queryHash)?.state.data,v=im(u,g);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,u,c){return Ve.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,c)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;Ve.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=this.#e;return Ve.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},o=Ve.batch(()=>this.#e.findAll(n).map(h=>h.cancel(c)));return Promise.all(o).then(at).catch(at)}invalidateQueries(n,u={}){return Ve.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},o=Ve.batch(()=>this.#e.findAll(n).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let g=h.fetch(void 0,c);return c.throwOnError||(g=g.catch(at)),h.state.fetchStatus==="paused"?Promise.resolve():g}));return Promise.all(o).then(at)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=this.#e.build(this,u);return c.isStaleByTime(ol(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(at).catch(at)}fetchInfiniteQuery(n){return n.behavior=uo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(at).catch(at)}ensureInfiniteQueryData(n){return n.behavior=uo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ci.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(n){this.#l=n}setQueryDefaults(n,u){this.#n.set(kl(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#n.values()],c={};return u.forEach(o=>{sn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,u){this.#a.set(kl(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#a.values()],c={};return u.forEach(o=>{sn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#l.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Ks(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Fs&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#l.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},oo=m.createContext(void 0),Lt=n=>{const u=m.useContext(oo);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},Em=({client:n,children:u})=>(m.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(oo.Provider,{value:n,children:u})),fo=m.createContext(!1),Cm=()=>m.useContext(fo);fo.Provider;function zm(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Am=m.createContext(zm()),Om=()=>m.useContext(Am),Tm=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},Mm=n=>{m.useEffect(()=>{n.clearReset()},[n])},Rm=({result:n,errorResetBoundary:u,throwOnError:c,query:o,suspense:h})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(h&&n.data===void 0||Ic(c,[n.error,o])),Dm=n=>{if(n.suspense){const c=h=>h==="static"?h:Math.max(h??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...h)=>c(o(...h)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},_m=(n,u)=>n.isLoading&&n.isFetching&&!u,Um=(n,u)=>n?.suspense&&u.isPending,ho=(n,u,c)=>u.fetchOptimistic(n).catch(()=>{c.clearReset()});function Lm(n,u,c){const o=Cm(),h=Om(),g=Lt(),v=g.defaultQueryOptions(n);g.getDefaultOptions().queries?._experimental_beforeQuery?.(v),v._optimisticResults=o?"isRestoring":"optimistic",Dm(v),Tm(v,h),Mm(h);const y=!g.getQueryCache().get(v.queryHash),[x]=m.useState(()=>new u(g,v)),p=x.getOptimisticResult(v),N=!o&&n.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(A=>{const B=N?x.subscribe(Ve.batchCalls(A)):at;return x.updateResult(),B},[x,N]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),m.useEffect(()=>{x.setOptions(v)},[v,x]),Um(v,p))throw ho(v,x,h);if(Rm({result:p,errorResetBoundary:h,throwOnError:v.throwOnError,query:g.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw p.error;return g.getDefaultOptions().queries?._experimental_afterQuery?.(v,p),v.experimental_prefetchInRender&&!Ql&&_m(p,o)&&(y?ho(v,x,h):g.getQueryCache().get(v.queryHash)?.promise)?.catch(at).finally(()=>{x.updateResult()}),v.notifyOnChangeProps?p:x.trackResult(p)}function ma(n,u){return Lm(n,vm)}function Qt(n,u){const c=Lt(),[o]=m.useState(()=>new Sm(c,n));m.useEffect(()=>{o.setOptions(n)},[o,n]);const h=m.useSyncExternalStore(m.useCallback(v=>o.subscribe(Ve.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),g=m.useCallback((v,y)=>{o.mutate(v,y).catch(at)},[o]);if(h.error&&Ic(o.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:g,mutateAsync:h.mutate}}let Bm=new Nm({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});function qm(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,h,g,v=[],y="",x=n.split("/");for(x[0]||x.shift();h=x.shift();)c=h[0],c==="*"?(v.push(c),y+=h[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=h.indexOf("?",1),g=h.indexOf(".",1),v.push(h.substring(1,~o?o:~g?g:h.length)),y+=~o&&!~g?"(?:/([^/]+?))?":"/([^/]+?)",~g&&(y+=(~o?"?":"")+"\\"+h.substring(g))):y+="/"+h;return{keys:v,pattern:new RegExp("^"+y+(u?"(?=$|/)":"/?$"),"i")}}var lu={exports:{}},au={};var mo;function Hm(){if(mo)return au;mo=1;var n=ui();function u(A,B){return A===B&&(A!==0||1/A===1/B)||A!==A&&B!==B}var c=typeof Object.is=="function"?Object.is:u,o=n.useState,h=n.useEffect,g=n.useLayoutEffect,v=n.useDebugValue;function y(A,B){var V=B(),H=o({inst:{value:V,getSnapshot:B}}),M=H[0].inst,q=H[1];return g(function(){M.value=V,M.getSnapshot=B,x(M)&&q({inst:M})},[A,V,B]),h(function(){return x(M)&&q({inst:M}),A(function(){x(M)&&q({inst:M})})},[A]),v(V),V}function x(A){var B=A.getSnapshot;A=A.value;try{var V=B();return!c(A,V)}catch{return!0}}function p(A,B){return B()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:y;return au.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:N,au}var go;function Qm(){return go||(go=1,lu.exports=Hm()),lu.exports}var km=Qm();const Ym=J0.useInsertionEffect,Gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,Vm=Ym||Gm,vo=n=>{const u=m.useRef([n,(...c)=>u[0](...c)]).current;return Vm(()=>{u[0]=n}),u[1]},Zm="popstate",nu="pushState",iu="replaceState",yo=[Zm,nu,iu,"hashchange"],Xm=n=>{for(const u of yo)addEventListener(u,n);return()=>{for(const u of yo)removeEventListener(u,n)}},po=(n,u)=>km.useSyncExternalStore(Xm,n,u),Km=()=>location.search,Jm=({ssrSearch:n=""}={})=>po(Km,()=>n),bo=()=>location.pathname,$m=({ssrPath:n}={})=>po(bo,n?()=>n:bo),Fm=(n,{replace:u=!1,state:c=null}={})=>history[u?iu:nu](c,"",n),Wm=(n={})=>[$m(n),Fm],xo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[xo]>"u"){for(const n of[nu,iu]){const u=history[n];history[n]=function(){const c=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,xo,{value:!0})}const Im=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",jo=(n="")=>n==="/"?"":n,Pm=(n,u)=>n[0]==="~"?n.slice(1):jo(u)+n,eg=(n="",u)=>Im(So(jo(n)),So(u)),So=n=>{try{return decodeURI(n)}catch{return n}},wo={hook:Wm,searchHook:Jm,parser:qm,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},No=m.createContext(wo),ga=()=>m.useContext(No),Eo={},Co=m.createContext(Eo),tg=()=>m.useContext(Co),fi=n=>{const[u,c]=n.hook(n);return[eg(n.base,u),vo((o,h)=>c(Pm(o,n.base),h))]},di=()=>fi(ga()),su=(n,u,c,o)=>{const{pattern:h,keys:g}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),v=h.exec(c)||[],[y,...x]=v;return y!==void 0?[!0,(()=>{const p=g!==!1?Object.fromEntries(g.map((A,B)=>[A,x[B]])):v.groups;let N={...x};return p&&Object.assign(N,p),N})(),...o?[y]:[]]:[!1,null]},lg=n=>su(ga().parser,n,di()[0]),ag=({children:n,...u})=>{const c=ga(),o=u.hook?wo:c;let h=o;const[g,v]=u.ssrPath?.split("?")??[];v&&(u.ssrSearch=v,u.ssrPath=g),u.hrefs=u.hrefs??u.hook?.hrefs;let y=m.useRef({}),x=y.current,p=x;for(let N in o){const A=N==="base"?o[N]+(u[N]||""):u[N]||o[N];x===p&&A!==p[N]&&(y.current=p={...p}),p[N]=A,(A!==o[N]||A!==h[N])&&(h=p)}return m.createElement(No.Provider,{value:h,children:n})},zo=({children:n,component:u},c)=>u?m.createElement(u,{params:c}):typeof n=="function"?n(c):n,ng=n=>{let u=m.useRef(Eo);const c=u.current;return u.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,h])=>h!==c[o])?n:c},va=({path:n,nest:u,match:c,...o})=>{const h=ga(),[g]=fi(h),[v,y,x]=c??su(h.parser,n,g,u),p=ng({...tg(),...y});if(!v)return null;const N=x?m.createElement(ag,{base:x},zo(o,p)):zo(o,p);return m.createElement(Co.Provider,{value:p,children:N})};m.forwardRef((n,u)=>{const c=ga(),[o,h]=fi(c),{to:g="",href:v=g,onClick:y,asChild:x,children:p,className:N,replace:A,state:B,...V}=n,H=vo(q=>{q.ctrlKey||q.metaKey||q.altKey||q.shiftKey||q.button!==0||(y?.(q),q.defaultPrevented||(q.preventDefault(),h(v,n)))}),M=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return x&&m.isValidElement(p)?m.cloneElement(p,{onClick:H,href:M}):m.createElement("a",{...V,onClick:H,href:M,className:N?.call?N(o===v):N,children:p,ref:u})});const Ao=n=>Array.isArray(n)?n.flatMap(u=>Ao(u&&u.type===m.Fragment?u.props.children:u)):[n],Oo=({children:n,location:u})=>{const c=ga(),[o]=fi(c);for(const h of Ao(n)){let g=0;if(m.isValidElement(h)&&(g=su(c.parser,h.props.path,u||o,h.props.nest))[0])return m.cloneElement(h,{match:g})}return null};async function Xe(n,u={}){let c=await fetch(n,{...u,headers:{"Content-Type":"application/json",...u.headers}}),o=await c.json();if(!c.ok){let h=new Error(o.error||"Request failed");throw h.status=c.status,h.data=o,h}return o}let un={async getReportData(){return Xe("/api/report-data")},async getStatus(){return Xe("/api/status")},async acceptBaseline(n){return Xe("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Xe("/api/baseline/accept-all",{method:"POST"})},async resetBaselines(){return Xe("/api/baseline/reset",{method:"POST"})},async downloadBaselines(n,u,c){return Xe("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:u,projectSlug:c})})}},To={async get(){return Xe("/api/config")},async updateProject(n){return Xe("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},hi={async getStatus(){return Xe("/api/auth/status")},async initiateLogin(){return Xe("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Xe("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Xe("/api/auth/logout",{method:"POST"})}},mi={async list(){return Xe("/api/projects")},async listMappings(){return Xe("/api/projects/mappings")},async createMapping(n){return Xe("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Xe(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){let u=new URLSearchParams;n.limit&&u.append("limit",String(n.limit)),n.branch&&u.append("branch",n.branch);let c=u.toString();return Xe(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,u,c={}){let o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);let h=o.toString(),g=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(u)}/builds${h?`?${h}`:""}`;return Xe(g)}},Te={auth:["auth"],authStatus:()=>[...Te.auth,"status"],config:["config"],projectConfig:()=>[...Te.config,"project"],globalConfig:()=>[...Te.config,"global"],tdd:["tdd"],reportData:()=>[...Te.tdd,"report"],status:()=>[...Te.tdd,"status"],cloud:["cloud"],projects:()=>[...Te.cloud,"projects"],builds:(n,u)=>[...Te.cloud,"builds",n,u]};function rn(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}function ig(){return typeof window<"u"&&window.VIZZLY_REPORTER_DATA?window.VIZZLY_REPORTER_DATA:null}function gi(n={}){let u=ig(),c=rn();return ma({queryKey:Te.reportData(),queryFn:async()=>c&&u?u:un.getReportData(),initialData:u||void 0,refetchInterval:c?!1:n.polling!==!1?2e3:!1,refetchOnWindowFocus:!c,...n})}function sg(){let n=Lt();return Qt({mutationFn:u=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptBaseline(u)},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function Mo(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptAllBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function ug(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");return un.resetBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function rg(){return Qt({mutationFn:async n=>{if(rn())throw new Error("Cannot reject baselines in static report mode. Use the live dev server.");return{success:!0,id:n}}})}function cg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 og=m.forwardRef(cg);function fg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 dg=m.forwardRef(fg);function hg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const mg=m.forwardRef(hg);function gg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 fl=m.forwardRef(gg);function vg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Ro=m.forwardRef(vg);function yg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 pg=m.forwardRef(yg);function bg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const xg=m.forwardRef(bg);function jg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Sg=m.forwardRef(jg);function wg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Ng=m.forwardRef(wg);function Eg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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"}),m.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 Cg=m.forwardRef(Eg);function zg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Ag=m.forwardRef(zg);function Og({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Yl=m.forwardRef(Og);function Tg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Do=m.forwardRef(Tg);function Mg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const uu=m.forwardRef(Mg);function Rg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Dg=m.forwardRef(Rg);function _g({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const ru=m.forwardRef(_g);function Ug({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 vi=m.forwardRef(Ug);function Lg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Bg=m.forwardRef(Lg);function qg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const cu=m.forwardRef(qg);function Hg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const Qg=m.forwardRef(Hg);function kg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 dl=m.forwardRef(kg);function Yg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 cn=m.forwardRef(Yg);function Gg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Vg=m.forwardRef(Gg);function Zg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Xg=m.forwardRef(Zg);function Kg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Jg=m.forwardRef(Kg);function $g({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Fg=m.forwardRef($g);function Wg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 Ig=m.forwardRef(Wg);function Pg({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 ou=m.forwardRef(Pg);function ev({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"}))}const _o=m.forwardRef(ev);function tv({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 lv=m.forwardRef(tv);function av({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const nv=m.forwardRef(av);function iv({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 fu=m.forwardRef(iv);function sv({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))}const Uo=m.forwardRef(sv);function uv({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.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 du=m.forwardRef(uv);function rv({title:n,titleId:u,...c},o){return m.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":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const yi=m.forwardRef(rv);function Ke({children:n,variant:u="primary",size:c="md",disabled:o=!1,loading:h=!1,icon:g,iconPosition:v="left",fullWidth:y=!1,className:x="",...p}){let N="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",A={primary:"bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},B={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"},V=[N,A[u],B[c],y?"w-full":"",o||h?"opacity-50 cursor-not-allowed pointer-events-none":"",x].filter(Boolean).join(" ");return r.jsxs("button",{className:V,disabled:o||h,...p,children:[h&&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"})]}),g&&v==="left"&&!h&&r.jsx(g,{className:"w-4 h-4"}),n,g&&v==="right"&&!h&&r.jsx(g,{className:"w-4 h-4"})]})}function on({children:n,variant:u="default",size:c="sm",dot:o=!1,pulseDot:h=!1,className:g="",...v}){let y={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"},x={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},p={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},N=["inline-flex items-center gap-1.5 font-medium rounded-full border",y[u],p[c],g].filter(Boolean).join(" ");return r.jsxs("span",{className:N,...v,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[h&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${x[u]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${x[u]}`})]}),n]})}function pi({label:n,hint:u,error:c,icon:o,size:h="md",className:g="",...v}){let 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"}[h],o?"pl-10":"",v.disabled?"opacity-50 cursor-not-allowed":"",g].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,v.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,...v})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function cv({label:n,hint:u,error:c,options:o=[],placeholder:h="Select an option",size:g="md",className:v="",...y}){let p=["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"}[g],y.disabled?"opacity-50 cursor-not-allowed":"",v].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,y.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:p,...y,children:[h&&r.jsx("option",{value:"",disabled:!0,children:h}),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"})})})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function ov({label:n,description:u,checked:c,onChange:o,disabled:h=!1,size:g="md",className:v="",...y}){let x={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"peer-checked:translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"peer-checked:translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"peer-checked:translate-x-7"}},{track:p,thumb:N,translate:A}=x[g];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${h?"opacity-50 cursor-not-allowed":""} ${v}`,children:[r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),u&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:h,className:"sr-only peer",...y}),r.jsx("div",{className:`${p} rounded-full bg-slate-700 transition-colors peer-checked:bg-amber-500 peer-focus-visible:ring-2 peer-focus-visible:ring-amber-500/50 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-slate-900`}),r.jsx("div",{className:`absolute left-1 top-1 ${N} rounded-full bg-white shadow-sm transition-transform ${A}`})]})]})}function lt({children:n,variant:u,hover:c=!0,className:o="",...h}){let v=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",u?{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"}[u]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:v,...h,children:n})}function Gl({icon:n,title:u,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:h,className:g=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${g}`,children:r.jsxs("div",{className:`flex items-center ${h?"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:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),h&&r.jsx("div",{className:"flex items-center gap-2",children:h})]})})}function nt({children:n,className:u="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${u}`,children:n})}function fv({children:n,className:u=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${u}`,children:n})}let dv={success:{icon:Yl,bg:"bg-emerald-500/10",border:"border-emerald-500/20",iconColor:"text-emerald-400",textColor:"text-emerald-300"},warning:{icon:dl,bg:"bg-amber-500/10",border:"border-amber-500/20",iconColor:"text-amber-400",textColor:"text-amber-300"},danger:{icon:du,bg:"bg-red-500/10",border:"border-red-500/20",iconColor:"text-red-400",textColor:"text-red-300"},info:{icon:Xg,bg:"bg-blue-500/10",border:"border-blue-500/20",iconColor:"text-blue-400",textColor:"text-blue-300"}};function hu({variant:n="info",title:u,children:c,icon:o,dismissible:h=!1,onDismiss:g,className:v=""}){let y=dv[n],x=o||y.icon;return r.jsx("div",{className:`rounded-xl border ${y.bg} ${y.border} p-4 ${v}`,role:"alert",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx("div",{className:`flex-shrink-0 ${y.iconColor}`,children:r.jsx(x,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[u&&r.jsx("h3",{className:`text-sm font-medium ${y.textColor}`,children:u}),c&&r.jsx("div",{className:`text-sm ${u?"mt-1":""} text-slate-400`,children:c})]}),h&&g&&r.jsx("button",{onClick:g,className:"flex-shrink-0 text-slate-500 hover:text-slate-300 transition-colors",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function hv({value:n=0,label:u,size:c=120,strokeWidth:o=8,className:h=""}){let[g,v]=m.useState(0);m.useEffect(()=>{if(typeof window>"u")return;let A=g,B=Math.min(100,Math.max(0,n)),V=1e3,H=window.performance.now();function M(q){let L=q-H,$=Math.min(L/V,1),k=1-Math.pow(1-$,3),ne=A+(B-A)*k;v(Math.round(ne)),$<1&&window.requestAnimationFrame(M)}window.requestAnimationFrame(M)},[n,g]);let y=(c-o)/2,x=y*2*Math.PI,p=x-g/100*x,N=g>=80?"health-ring__progress--success":g>=50?"health-ring__progress--warning":"health-ring__progress--danger";return r.jsxs("div",{className:`health-ring ${h}`,style:{width:c,height:c,"--ring-size":`${c}px`,"--ring-stroke":`${o}px`},children:[r.jsxs("svg",{className:"health-ring__svg",viewBox:`0 0 ${c} ${c}`,children:[r.jsx("circle",{className:"health-ring__track",cx:c/2,cy:c/2,r:y}),r.jsx("circle",{className:`health-ring__progress ${N}`,cx:c/2,cy:c/2,r:y,strokeDasharray:x,strokeDashoffset:p})]}),r.jsxs("div",{className:"health-ring__value",children:[r.jsxs("span",{className:"health-ring__percentage",children:[g,"%"]}),u&&r.jsx("span",{className:"health-ring__label",children:u})]})]})}function mv({tabs:n=[],activeTab:u,onChange:c,variant:o="default",className:h=""}){let v={default:{container:"border-b border-slate-700/50",tab:"px-4 py-3 text-sm font-medium transition-colors relative",active:"text-amber-400",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"},pills:{container:"bg-slate-800/50 p-1 rounded-lg inline-flex gap-1",tab:"px-4 py-2 text-sm font-medium rounded-md transition-all",active:"bg-amber-500 text-slate-900",inactive:"text-slate-400 hover:text-white hover:bg-white/5",indicator:""},underline:{container:"flex gap-6",tab:"pb-3 text-sm font-medium transition-colors relative",active:"text-white",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"}}[o];return r.jsx("div",{className:`${v.container} ${h}`,children:n.map(y=>{let x=u===y.key;return r.jsxs("button",{onClick:()=>c?.(y.key),className:`${v.tab} ${x?v.active:v.inactive}`,children:[r.jsxs("span",{className:"flex items-center gap-2",children:[y.icon&&r.jsx(y.icon,{className:"w-4 h-4"}),y.label,y.count!==void 0&&r.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded-full ${x?o==="pills"?"bg-slate-900/20 text-slate-900":"bg-amber-500/20 text-amber-400":"bg-slate-700 text-slate-400"}`,children:y.count})]}),x&&v.indicator&&r.jsx("div",{className:v.indicator})]},y.key)})})}function ut({variant:n="text",className:u="",count:c=1}){let o={text:"h-4 w-full",heading:"h-6 w-3/5",avatar:"w-10 h-10 rounded-full",button:"h-9 w-24 rounded-lg",badge:"h-5 w-16 rounded-full",card:"h-32 w-full rounded-xl"},h=Array.from({length:c},(g,v)=>v);return r.jsx(r.Fragment,{children:h.map(g=>r.jsx("div",{className:`skeleton ${o[n]} ${u}`},g))})}function Vl({className:n=""}){return r.jsxs("div",{className:`vz-card vz-card--no-hover p-6 space-y-4 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ut,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(ut,{variant:"heading"}),r.jsx(ut,{variant:"text",className:"w-2/3"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text",className:"w-4/5"})]})]})}function ya({icon:n,title:u,description:c,action:o,className:h=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-6 text-center ${h}`,children:[n&&r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-6",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),u&&r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}Yc();function fn({size:n="md",className:u=""}){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]} ${u}`,viewBox:"0 0 24 24",fill:"none",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"})]})}let Lo=[{key:"comparisons",label:"Comparisons",icon:ou},{key:"stats",label:"Stats",icon:Ag},{key:"builds",label:"Builds",icon:Bg},{key:"projects",label:"Projects",icon:cn},{key:"settings",label:"Settings",icon:cu}];function gv({currentView:n,onNavigate:u,loading:c}){let[o,h]=m.useState(!1),g=v=>{u?.(v),h(!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",{onClick:()=>g("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",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"})]}),u&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Lo.map(v=>{let y=n===v.key;return r.jsxs("button",{onClick:()=>g(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${y?"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(fn,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),u&&r.jsx("button",{onClick:()=>h(!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(yi,{className:"w-6 h-6"}):r.jsx(xg,{className:"w-6 h-6"})})]})]}),u&&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:Lo.map(v=>{let y=n===v.key;return r.jsxs("button",{onClick:()=>g(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${y?"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 dn({children:n,currentView:u,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(gv,{currentView:u,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})})]})}let Bo=m.createContext(null);function vv({children:n}){let[u,c]=m.useState([]),o=m.useCallback((v,y="success",x={})=>{let p=Date.now();c(A=>[...A,{id:p,message:v,type:y,...x}]);let N=x.duration!==void 0?x.duration:x.actions?null:5e3;return N&&setTimeout(()=>{c(A=>A.filter(B=>B.id!==p))},N),p},[]),h=m.useCallback(v=>{c(y=>y.filter(x=>x.id!==v))},[]),g=m.useCallback((v,y)=>new Promise(x=>{let p=Date.now();c(N=>[...N,{id:p,message:v,title:y,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(A=>A.filter(B=>B.id!==p)),x(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(A=>A.filter(B=>B.id!==p)),x(!0)}}]}])}),[]);return r.jsxs(Bo.Provider,{value:{addToast:o,removeToast:h,confirm:g},children:[n,r.jsx(yv,{toasts:u,onRemove:h})]})}function Zl(){let n=m.useContext(Bo);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function yv({toasts:n,onRemove:u}){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(pv,{toast:c,onRemove:u},c.id))})}function pv({toast:n,onRemove:u}){let c=n.type==="success"?Yl:n.type==="confirm"?dl:du,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",h=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${h} 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((g,v)=>r.jsx("button",{onClick:g.onClick,className:g.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:g.label},v))})]}),!n.actions&&r.jsx("button",{onClick:()=>u(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function bi({icon:n,label:u,value:c,subvalue:o,variant:h,iconColor:g}){return r.jsx(lt,{variant:h,hover:!1,children:r.jsx(nt,{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:u}),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 ${g}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function bv(){let{addToast:n,confirm:u}=Zl(),{data:c,isLoading:o,refetch:h}=gi(),g=Mo(),v=ug(),y=c?.comparisons,x=c?.baseline,p=y?.length||0,N=y?.filter(L=>L.status==="passed").length||0,A=y?.filter(L=>L.status==="failed").length||0,B=y?.filter(L=>L.status==="new").length||0,V=p>0?Math.round(N/p*100):0,H=y?.some(L=>L.status==="failed"||L.status==="new"),M=m.useCallback(async()=>{await u("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&g.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:$=>{console.error("Failed to accept all baselines:",$),n("Failed to accept all baselines. Please try again.","error")}})},[g,n,u]),q=m.useCallback(async()=>{await u("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:$=>{console.error("Failed to reset baselines:",$),n("Failed to reset baselines. Please try again.","error")}})},[v,n,u]);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(lt,{hover:!1,children:r.jsxs(nt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(hv,{value:V,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[N," of ",p," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(bi,{icon:ou,label:"Total Screenshots",value:p,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(bi,{icon:Do,label:"Passed",value:N,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(bi,{icon:dl,label:"Failed",value:A,variant:A>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(bi,{icon:lv,label:"New",value:B,variant:B>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),x&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:vi,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:B>0&&r.jsxs(on,{variant:"warning",dot:!0,children:[B," new without baseline"]})}),r.jsx(nt,{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:x.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:x.createdAt?new Date(x.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(fv,{className:"flex flex-wrap gap-3",children:[r.jsx(Ke,{variant:"success",onClick:M,loading:g.isPending,disabled:!H||o,icon:Do,children:H?"Accept All Changes":"No Changes to Accept"}),r.jsx(Ke,{variant:"secondary",onClick:q,loading:v.isPending,disabled:o,icon:fl,children:"Reset Baselines"}),r.jsx(Ke,{variant:"ghost",onClick:()=>h(),loading:o,icon:fl,className:"ml-auto",children:"Refresh"})]})]})]})}const hn={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},kt={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},hl={PRIORITY:"priority",NAME:"name",TIME:"time"},Xl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function xv(n,u){return[...n].sort((c,o)=>{if(u==="priority"){const h={[Xl.FAILED]:3,[Xl.NEW]:2,[Xl.PASSED]:1},g=h[c.status]||0,v=h[o.status]||0;return g!==v?v-g:(o.diffPercentage||0)-(c.diffPercentage||0)}return u==="name"?(c.name||"").localeCompare(o.name||""):u==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function jv(n,u){return u==="failed"?n.filter(c=>c.status===Xl.FAILED):u==="passed"?n.filter(c=>c.status===Xl.PASSED):u==="new"?n.filter(c=>c.status===Xl.NEW||c.status===Xl.BASELINE_CREATED):n}let Sv=()=>{let n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||kt.ALL,sortBy:n.get("sort")||hl.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function wv(n=[]){let u=Sv(),[c,o]=m.useState(u.filter),[h,g]=m.useState(u.sortBy),[v,y]=m.useState(u.searchQuery),[x,p]=m.useState(u.selectedBrowser),[N,A]=m.useState(u.selectedViewport);m.useEffect(()=>{let H=new URLSearchParams;c!==kt.ALL&&H.set("filter",c),h!==hl.PRIORITY&&H.set("sort",h),v&&H.set("search",v),x!=="all"&&H.set("browser",x),N!=="all"&&H.set("viewport",N);let M=H.toString()?`?${H.toString()}`:window.location.pathname;window.history.replaceState({},"",M)},[c,h,v,x,N]);let B=m.useMemo(()=>{let H=new Set,M=new Set;return n.forEach(q=>{if(q.properties?.browser&&H.add(q.properties.browser),q.properties?.viewport_width&&q.properties?.viewport_height){let L=`${q.properties.viewport_width}x${q.properties.viewport_height}`;M.add(L)}else if(q.properties?.viewport){let L=`${q.properties.viewport.width}x${q.properties.viewport.height}`;M.add(L)}}),{browsers:Array.from(H).sort(),viewports:Array.from(M).sort()}},[n]);return{filteredComparisons:m.useMemo(()=>{let H=jv(n,c);if(v.trim()){let M=v.toLowerCase();H=H.filter(q=>q.name.toLowerCase().includes(M)||q.originalName?.toLowerCase().includes(M))}return x!=="all"&&(H=H.filter(M=>M.properties?.browser===x)),N!=="all"&&(H=H.filter(M=>{let q=null;return M.properties?.viewport_width&&M.properties?.viewport_height?q=`${M.properties.viewport_width}x${M.properties.viewport_height}`:M.properties?.viewport&&(q=`${M.properties.viewport.width}x${M.properties.viewport.height}`),q===N})),xv(H,h)},[n,c,h,v,x,N]),filter:c,setFilter:o,sortBy:h,setSortBy:g,searchQuery:v,setSearchQuery:y,selectedBrowser:x,setSelectedBrowser:p,selectedViewport:N,setSelectedViewport:A,availableFilters:B,counts:{all:n.length,failed:n.filter(H=>H.status==="failed").length,passed:n.filter(H=>H.status==="passed").length,new:n.filter(H=>H.status==="new").length}}}function Nv({filter:n,setFilter:u,sortBy:c,setSortBy:o,searchQuery:h,setSearchQuery:g,selectedBrowser:v,setSelectedBrowser:y,selectedViewport:x,setSelectedViewport:p,availableFilters:N,counts:A,onRefresh:B,loading:V}){let[H,M]=m.useState(!1),q=N.browsers.length>1||N.viewports.length>1;return r.jsxs("div",{className:"space-y-3 md:space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx(Ig,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),r.jsx("input",{type:"text",placeholder:"Search screenshots...",value:h,onChange:L=>g(L.target.value),className:"w-full bg-slate-800 border border-slate-700 rounded-lg pl-10 pr-4 py-3 md:py-2.5 text-white placeholder-slate-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors text-base md:text-sm"})]}),q&&r.jsx("button",{onClick:()=>M(!H),className:`md:hidden inline-flex items-center justify-center bg-slate-800 border border-slate-700 p-3 rounded-lg transition-colors touch-manipulation ${H?"text-amber-400 border-amber-500":"text-slate-300 hover:text-white"}`,title:"Filters",children:r.jsx(og,{className:"w-5 h-5"})}),r.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[r.jsxs("select",{value:c,onChange:L=>o(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]}),r.jsx("button",{onClick:B,disabled:V,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsx("button",{onClick:B,disabled:V,className:"md:hidden inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed touch-manipulation",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1 scroll-snap-x md:flex-wrap md:overflow-visible",children:[r.jsx("span",{className:"hidden md:inline text-sm text-slate-400 mr-1 flex-shrink-0",children:"Status:"}),r.jsxs("button",{onClick:()=>u(kt.ALL),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.ALL?"bg-amber-500 text-slate-900 shadow-lg shadow-amber-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["All ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.all,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.FAILED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Failed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.failed,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.NEW),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["New ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.new,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.PASSED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.PASSED?"bg-emerald-500 text-white shadow-lg shadow-emerald-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Passed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.passed,")"]})]}),N.browsers.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Browser:"}),r.jsxs("select",{value:v,onChange:L=>y(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(L=>r.jsx("option",{value:L,children:L},L))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Viewport:"}),r.jsxs("select",{value:x,onChange:L=>p(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(L=>r.jsx("option",{value:L,children:L},L))]})]})]}),H&&q&&r.jsxs("div",{className:"md:hidden bg-slate-800/50 border border-slate-700 rounded-lg p-3 space-y-3 animate-slide-down",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by:"}),r.jsxs("select",{value:c,onChange:L=>o(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]})]}),N.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.jsxs("select",{value:v,onChange:L=>y(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(L=>r.jsx("option",{value:L,children:L},L))]})]}),N.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.jsxs("select",{value:x,onChange:L=>p(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(L=>r.jsx("option",{value:L,children:L},L))]})]})]})]})}function Ev(n){let[u,c]=m.useState("loading");return m.useEffect(()=>{if(!n){c("missing");return}c("loading");let o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),u}function Cv({src:n,alt:u,className:c,style:o,onClick:h}){let g=Ev(n);return g==="missing"?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(ou,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",u.toLowerCase()," available"]})]})}):g==="loading"?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(fl,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",u.toLowerCase(),"..."]})]})}):g==="error"?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(dl,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",u.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})}):r.jsx("img",{src:n,alt:u,className:c,style:o,onClick:h})}function zv(n,u){return n.id||n.signature||`comparison-${u}`}function Av({status:n}){let u={failed:"bg-red-500",passed:"bg-emerald-500",new:"bg-blue-500","baseline-created":"bg-blue-500"};return r.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${u[n]||"bg-slate-500"}`})}function Ov({userAction:n}){return n==="accepted"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/20 text-emerald-400",children:[r.jsx(Yl,{className:"w-3 h-3"}),"Accepted"]}):n==="rejected"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/20 text-amber-400",children:[r.jsx(Qg,{className:"w-3 h-3"}),"Rejected"]}):null}function Tv(n){return n.properties?.viewport_width&&n.properties?.viewport_height?`${n.properties.viewport_width}×${n.properties.viewport_height}`:n.properties?.viewport?`${n.properties.viewport.width}×${n.properties.viewport.height}`:null}function Mv({comparison:n,onClick:u,userAction:c}){let o=Tv(n),h=n.properties?.browser,g=n.status==="failed",v=n.status==="new"||n.status==="baseline-created",y=n.current||n.baseline;return r.jsxs("button",{onClick:()=>u(n),className:`
|
|
10
10
|
w-full flex items-center gap-3 md:gap-4 p-3 md:p-4
|
|
11
11
|
bg-white/5 hover:bg-white/10 active:bg-white/15
|
|
12
12
|
border rounded-lg transition-all duration-150
|
|
13
13
|
touch-manipulation text-left
|
|
14
|
-
${
|
|
15
|
-
`,children:[
|
|
16
|
-
relative w-16 h-12 md:w-20 md:h-14 rounded-md overflow-hidden flex-shrink-0 bg-
|
|
17
|
-
${
|
|
18
|
-
`,children:[C?i.jsx(Mt,{src:C,alt:s.name||"Screenshot",className:"w-full h-full object-cover object-top"}):i.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-600",children:i.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),w&&i.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:i.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full"})}),E&&i.jsx("div",{className:"absolute inset-0 bg-blue-500/20 flex items-center justify-center",children:i.jsx("span",{className:"text-[10px] font-bold text-blue-400 bg-blue-900/80 px-1.5 py-0.5 rounded",children:"NEW"})})]}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("h3",{className:"text-base md:text-lg font-medium text-white truncate",children:s.name||s.originalName||"Unknown"}),i.jsx(nh,{status:s.status})]}),i.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-gray-400",children:[T&&i.jsx("span",{className:"bg-gray-700/50 px-2 py-0.5 rounded",children:T}),f&&i.jsx("span",{className:"bg-gray-700/50 px-2 py-0.5 rounded",children:f}),s.diffPercentage>0&&i.jsxs("span",{className:"text-red-400",children:[s.diffPercentage.toFixed(2),"% diff"]})]})]}),i.jsx("div",{className:"flex-shrink-0",children:i.jsx(uh,{userAction:d})}),i.jsx("div",{className:"flex-shrink-0 text-gray-500",children:i.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})}function sh({comparisons:s,onSelectComparison:o,loadingStates:d={}}){return!s||s.length===0?i.jsx("div",{className:"text-center py-12 text-gray-400",children:"No screenshots to display"}):i.jsx("div",{className:"space-y-2",children:s.map((f,T)=>{let w=ah(f,T);return i.jsx(ch,{comparison:{...f,id:w},onClick:o,userAction:d[w]},w)})})}function rh({reportData:s,setReportData:o,onRefresh:d,loading:f}){let[,T]=Bn(),[w,E]=h.useState(!1),{addToast:C,confirm:S}=zl(),{filteredComparisons:x,filter:D,setFilter:b,sortBy:O,setSortBy:Z,searchQuery:B,setSearchQuery:H,selectedBrowser:q,setSelectedBrowser:L,selectedViewport:ee,setSelectedViewport:oe,availableFilters:Re,counts:Ce}=eh(s?.comparisons),{loadingStates:je}=gr(o),X=h.useCallback(we=>{let z=x.findIndex($=>$===we),Y=we.id||we.signature||(z>=0?`comparison-${z}`:null);Y&&T(`/comparison/${Y}`)},[x,T]),ce=h.useCallback(async()=>{if(await S("This will update all failed and new screenshots.","Accept all changes as new baselines?")){E(!0);try{await rr(),o(z=>({...z,comparisons:z.comparisons.map(Y=>Y.status==="failed"||Y.status==="new"?{...Y,status:"passed",diffPercentage:0,diff:null}:Y)})),d?.()}catch(z){console.error("Failed to accept all baselines:",z),C("Failed to accept all baselines. Please try again.","error")}finally{E(!1)}}},[o,d,C,S]),Ge=!s.comparisons||s.comparisons.length===0,nt=D!=="all"||B.trim()||q!=="all"||ee!=="all",Je=s.comparisons?.some(we=>we.status==="failed"||we.status==="new"),Ae=s.comparisons?.filter(we=>we.status==="failed").length||0,ut=s.comparisons?.filter(we=>we.status==="new").length||0,At=Ae+ut;return i.jsx("div",{className:"max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-4 md:py-8",children:Ge?i.jsxs("div",{className:"text-center py-16",children:[i.jsx("div",{className:"w-16 h-16 bg-gray-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:i.jsxs("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})]})}),i.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"No Screenshots Yet"}),i.jsx("p",{className:"text-gray-400 max-w-md mx-auto",children:"Run your tests to start capturing visual comparisons."})]}):i.jsxs("div",{className:"space-y-6",children:[i.jsx(th,{filter:D,setFilter:b,sortBy:O,setSortBy:Z,searchQuery:B,setSearchQuery:H,selectedBrowser:q,setSelectedBrowser:L,selectedViewport:ee,setSelectedViewport:oe,availableFilters:Re,counts:Ce,onRefresh:d,loading:f}),Je&&i.jsx("div",{className:"bg-gradient-to-r from-green-500/10 to-emerald-500/10 border border-green-500/30 rounded-lg p-3 md:p-4",children:i.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-3 md:justify-between",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"text-white font-semibold text-sm md:text-base mb-0.5 md:mb-1",children:Ae>0&&ut>0?`${Ae} Failed • ${ut} New`:Ae>0?`${Ae} Visual Difference${Ae!==1?"s":""}`:`${ut} New Baseline${ut!==1?"s":""}`}),i.jsx("p",{className:"text-xs md:text-sm text-gray-400 hidden md:block",children:Ae>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"})]}),i.jsxs("button",{onClick:ce,disabled:w,className:"w-full md:w-auto flex items-center justify-center gap-2 bg-green-500 hover:bg-green-600 active:bg-green-700 disabled:bg-green-500/50 text-white font-medium px-4 md:px-6 py-3 rounded-lg transition-colors flex-shrink-0 touch-manipulation",children:[i.jsx(La,{className:"w-5 h-5"}),i.jsx("span",{children:w?"Accepting...":`Accept All (${At})`})]})]})}),x.length===0?i.jsxs("div",{className:"bg-slate-800/50 border border-slate-700 rounded-lg p-8 text-center",children:[i.jsx("div",{className:"text-gray-400 mb-2",children:"No comparisons match your filters"}),nt&&i.jsx("button",{onClick:()=>{b("all"),H(""),L("all"),oe("all")},className:"text-amber-400 hover:text-amber-300 text-sm underline",children:"Clear all filters"})]}):i.jsx(sh,{comparisons:x,onSelectComparison:X,loadingStates:je})]})})}function fh({comparison:s}){let[o,d]=h.useState(!0);return i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"overlay-container cursor-pointer touch-manipulation",onClick:()=>d(!o),title:"Click to toggle diff overlay",children:[i.jsx(Mt,{className:"current-image",src:s.current,alt:"Current"}),i.jsx(Mt,{className:"baseline-image",src:s.baseline,alt:"Baseline"}),s.diff&&i.jsx(Mt,{className:"diff-image",src:s.diff,alt:"Diff",style:{opacity:o?1:0}})]}),s.diff&&i.jsx("button",{onClick:()=>d(!o),className:"absolute bottom-3 left-1/2 -translate-x-1/2 bg-gray-900/80 backdrop-blur-sm border border-gray-600 text-white px-4 py-2 rounded-full text-sm font-medium touch-manipulation hover:bg-gray-800 active:bg-gray-700 transition-colors",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`w-2 h-2 rounded-full ${o?"bg-red-400":"bg-gray-400"}`}),"Diff ",o?"On":"Off",i.jsx("span",{className:"text-gray-400 text-xs hidden sm:inline",children:"(tap to toggle)"})]})})]})}function oh({comparison:s}){let[o,d]=h.useState(!0);return i.jsx("div",{className:"toggle-container",children:i.jsxs("div",{className:"relative",children:[i.jsx(Mt,{className:"toggle-image",src:o?s.baseline:s.current,alt:o?"Baseline":"Current",onClick:()=>d(!o),style:{cursor:"pointer"}}),i.jsx("button",{onClick:()=>d(!o),className:"absolute bottom-3 left-1/2 -translate-x-1/2 bg-gray-900/80 backdrop-blur-sm border border-gray-600 text-white px-4 py-2 rounded-full text-sm font-medium touch-manipulation hover:bg-gray-800 active:bg-gray-700 transition-colors",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`w-2 h-2 rounded-full ${o?"bg-blue-400":"bg-green-400"}`}),o?"Baseline":"Current",i.jsx("span",{className:"text-gray-400 text-xs",children:"(tap to toggle)"})]})})]})})}function dh({comparison:s}){let[o,d]=h.useState(50),[f,T]=h.useState(!1),w=h.useRef(null),E=b=>{if(!w.current)return;let O=w.current.getBoundingClientRect(),Z=Math.max(0,Math.min(100,(b-O.left)/O.width*100));d(Z)},C=b=>{b.preventDefault(),T(!0),E(b.clientX)},S=()=>{T(!1)},x=b=>{b.preventDefault(),T(!0),E(b.touches[0].clientX)},D=b=>{f&&(b.preventDefault(),E(b.touches[0].clientX))};return h.useEffect(()=>{if(f){let b=Z=>{E(Z.clientX)},O=()=>{T(!1)};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",O),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",O)}}},[f]),i.jsxs("div",{ref:w,className:"onion-container",onMouseDown:C,onTouchStart:x,onTouchMove:D,onTouchEnd:S,style:{cursor:f?"ew-resize":"col-resize"},children:[i.jsx(Mt,{className:"onion-baseline",src:s.baseline,alt:"Baseline"}),i.jsx(Mt,{className:"onion-current",src:s.current,alt:"Current",style:{clipPath:`inset(0 ${100-o}% 0 0)`}}),i.jsx("div",{className:"onion-divider",style:{left:`${o}%`}})]})}function mh({comparison:s}){return i.jsxs("div",{className:"flex flex-col md:flex-row gap-3 md:gap-4 p-2 md:p-0",children:[i.jsxs("div",{className:"flex-1 text-center",children:[i.jsx("div",{className:"bg-blue-500/10 border border-blue-500/30 rounded-lg p-2 mb-2",children:i.jsx("span",{className:"text-xs md:text-sm font-medium text-blue-400",children:"Baseline"})}),i.jsx(Mt,{src:s.baseline,alt:"Baseline",className:"max-w-full h-auto rounded border border-gray-600"})]}),i.jsxs("div",{className:"flex-1 text-center",children:[i.jsx("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-2 mb-2",children:i.jsx("span",{className:"text-xs md:text-sm font-medium text-green-400",children:"Current"})}),i.jsx(Mt,{src:s.current,alt:"Current",className:"max-w-full h-auto rounded border border-gray-600"})]})]})}function hh({comparison:s,viewMode:o}){return s.status==="new"||s.status==="baseline-created"?i.jsx("div",{className:"comparison-viewer new-baseline",children:i.jsxs("div",{className:"text-center py-8",children:[i.jsx("p",{className:"text-gray-400 text-sm mb-4",children:"First screenshot - creating new baseline"}),i.jsx(Mt,{src:s.current,alt:"New baseline screenshot",className:"mx-auto max-w-full"})]})}):i.jsxs("div",{className:"comparison-viewer","data-mode":o,children:[o===el.OVERLAY&&i.jsx("div",{className:"mode-container overlay-mode",children:i.jsx(fh,{comparison:s})}),o===el.TOGGLE&&i.jsx("div",{className:"mode-container toggle-mode",children:i.jsx(oh,{comparison:s})}),o===el.ONION&&i.jsx("div",{className:"mode-container onion-mode",children:i.jsx(dh,{comparison:s})}),o===el.SIDE_BY_SIDE&&i.jsx("div",{className:"mode-container side-by-side-mode",children:i.jsx(mh,{comparison:s})})]})}function Ya(s,o=0){return s?.id||s?.signature||`comparison-${o}`}function gh({comparison:s,isActive:o,onClick:d,index:f}){let T=s.current||s.baseline,w=s.status==="failed",E=s.status==="new"||s.status==="baseline-created";return i.jsxs("button",{onClick:d,className:`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
linear-gradient(-45deg, transparent 75%, #252540 75%)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`,children:ee.label},ee.id))})}),i.jsxs("div",{className:"bg-slate-800/50 rounded-lg p-8 mb-6",children:[s==="general"&&i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-semibold text-gray-100 mb-6",children:"General Settings"}),i.jsx(Wl,{label:"Visual Comparison Threshold",name:"threshold",type:"number",value:d.threshold,onChange:B,help:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",placeholder:"0.1"}),i.jsx(Wl,{label:"Auto-open Report",name:"openReport",type:"checkbox",value:d.openReport,onChange:B,help:"Automatically open the dashboard in your browser when starting TDD mode"}),i.jsx("div",{className:"mt-6 pt-6 border-t border-slate-700",children:i.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[i.jsx("span",{children:"Source:"}),i.jsx(yi,{source:E?.sources?.comparison||"default"})]})})]}),s==="server"&&i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-semibold text-gray-100 mb-6",children:"Server Settings"}),i.jsx(Wl,{label:"Server Port",name:"port",type:"number",value:d.port,onChange:B,help:"Port for the local screenshot server",placeholder:"47392"}),i.jsx(Wl,{label:"Server Timeout",name:"timeout",type:"number",value:d.timeout,onChange:B,help:"Request timeout in milliseconds",placeholder:"30000"}),i.jsx("div",{className:"mt-6 pt-6 border-t border-slate-700",children:i.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[i.jsx("span",{children:"Source:"}),i.jsx(yi,{source:E?.sources?.server||"default"})]})})]}),s==="build"&&i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-semibold text-gray-100 mb-6",children:"Build Settings"}),i.jsx(Wl,{label:"Build Name Template",name:"buildName",type:"text",value:d.buildName,onChange:B,help:"Template for build names (use {timestamp} for current time)",placeholder:"Build {timestamp}"}),i.jsx(Wl,{label:"Environment",name:"environment",type:"select",value:d.environment,onChange:B,help:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),i.jsx("div",{className:"mt-6 pt-6 border-t border-slate-700",children:i.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[i.jsx("span",{children:"Source:"}),i.jsx(yi,{source:E?.sources?.build||"default"})]})})]})]}),T&&i.jsxs("div",{className:"fixed bottom-8 right-8 bg-slate-800 border border-slate-700 rounded-lg shadow-xl p-4 flex items-center gap-4",children:[i.jsx("span",{className:"text-sm text-gray-400",children:"You have unsaved changes"}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx("button",{onClick:q,disabled:x,className:"px-4 py-2 text-gray-300 hover:text-gray-100 transition-colors disabled:opacity-50",children:"Reset"}),i.jsx("button",{onClick:H,disabled:x,className:"px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors flex items-center gap-2 disabled:opacity-50",children:x?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Saving..."]}):i.jsxs(i.Fragment,{children:[i.jsx(La,{className:"w-5 h-5"}),"Save Changes"]})})]})]})]})}function vr(){let[s,o]=h.useState(null),[d,f]=h.useState(!1),[T,w]=h.useState(!0),[E,C]=h.useState(null),S=h.useCallback(async()=>{w(!0),C(null);try{let O=await fetch("/api/auth/status");if(!O.ok)throw new Error("Failed to fetch auth status");let Z=await O.json();f(Z.authenticated),o(Z.user)}catch(O){C(O.message),f(!1),o(null)}finally{w(!1)}},[]),x=h.useCallback(async()=>{try{let O=await fetch("/api/auth/login",{method:"POST"});if(!O.ok)throw new Error("Failed to initiate login");return await O.json()}catch(O){throw C(O.message),O}},[]),D=h.useCallback(async O=>{try{let Z=await fetch("/api/auth/poll",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:O})});if(!Z.ok)throw new Error("Failed to poll authorization");return await Z.json()}catch(Z){throw C(Z.message),Z}},[]),b=h.useCallback(async()=>{try{if(!(await fetch("/api/auth/logout",{method:"POST"})).ok)throw new Error("Failed to logout");f(!1),o(null)}catch(O){throw C(O.message),O}},[]);return h.useEffect(()=>{S()},[S]),{user:s,authenticated:d,loading:T,error:E,refetch:S,initiateLogin:x,pollAuthorization:D,logout:b}}function ph(){let[s,o]=h.useState([]),[d,f]=h.useState([]),[T,w]=h.useState([]),[E,C]=h.useState(!0),[S,x]=h.useState(null),D=h.useCallback(async()=>{try{let q=await fetch("/api/projects");if(!q.ok){if(q.status===503||q.status===400)return;throw new Error("Failed to fetch projects")}let L=await q.json();o(L.projects||[])}catch(q){q.message.includes("503")||console.error("Error fetching projects:",q)}},[]),b=h.useCallback(async()=>{try{let q=await fetch("/api/projects/mappings");if(!q.ok){if(q.status===503)return;throw new Error("Failed to fetch mappings")}let L=await q.json();f(L.mappings||[])}catch{}},[]),O=h.useCallback(async(q=10)=>{try{let L=await fetch(`/api/builds/recent?limit=${q}`);if(!L.ok)return;let ee=await L.json();w(ee.builds||[])}catch{}},[]),Z=h.useCallback(async(q,L,ee,oe,Re)=>{try{let Ce=await fetch("/api/projects/mappings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({directory:q,projectSlug:L,organizationSlug:ee,token:oe,projectName:Re})});if(!Ce.ok){let X=await Ce.json();throw new Error(X.error||"Failed to create mapping")}let je=await Ce.json();return await b(),je.mapping}catch(Ce){throw x(Ce.message),Ce}},[b]),B=h.useCallback(async q=>{try{let L=await fetch(`/api/projects/mappings/${encodeURIComponent(q)}`,{method:"DELETE"});if(!L.ok){let ee=await L.json();throw new Error(ee.error||"Failed to delete mapping")}await b()}catch(L){throw x(L.message),L}},[b]),H=h.useCallback(async()=>{C(!0),x(null),await Promise.all([D(),b(),O()]),C(!1)},[D,b,O]);return h.useEffect(()=>{H()},[H]),{projects:s,mappings:d,recentBuilds:T,loading:E,error:S,refetch:H,createMapping:Z,deleteMapping:B}}function jh({onComplete:s}){let[o,d]=h.useState(null),[f,T]=h.useState(!1),[w,E]=h.useState(null),{initiateLogin:C,pollAuthorization:S}=vr(),{addToast:x}=zl();h.useEffect(()=>{async function b(){try{let O=await C();d(O)}catch(O){E(O.message),x(`Failed to start login: ${O.message}`,"error")}}b()},[C,x]);async function D(){if(o?.deviceCode){T(!0),E(null);try{let b=await S(o.deviceCode);b.status==="complete"?(x("Login successful!","success"),s?.()):b.status==="pending"?x("Still waiting for authorization...","info"):E("Unexpected response from server")}catch(b){E(b.message),x(`Check failed: ${b.message}`,"error")}finally{T(!1)}}}return w?i.jsxs("div",{className:"bg-red-500/10 border border-red-500 rounded-lg p-6 text-center",children:[i.jsx(Ln,{className:"w-12 h-12 text-red-400 mx-auto mb-4"}),i.jsx("p",{className:"text-red-400",children:w})]}):o?i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 text-center",children:[i.jsx("h3",{className:"text-2xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),i.jsxs("div",{className:"bg-slate-900/80 backdrop-blur rounded-xl p-6 mb-6 border border-gray-700/50",children:[i.jsx("p",{className:"text-sm text-gray-300 mb-4",children:"Click below to authorize:"}),i.jsx("a",{href:o.verificationUriComplete||o.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"px-6 py-3 bg-amber-500 hover:bg-amber-600 text-white font-medium rounded-lg transition-colors inline-flex items-center gap-2 mb-4 shadow-lg shadow-amber-500/20",children:"Open Authorization Page"}),i.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-700",children:[i.jsx("p",{className:"text-xs text-gray-400 mb-2",children:"Or enter this code manually:"}),i.jsx("div",{className:"text-2xl font-mono font-bold text-amber-500 tracking-wider",children:o.userCode})]})]}),i.jsx("p",{className:"text-sm text-gray-300 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),i.jsx("button",{onClick:D,disabled:f,className:"px-6 py-3 bg-white/10 hover:bg-white/20 disabled:bg-white/5 disabled:cursor-not-allowed text-white rounded-lg transition-colors inline-flex items-center gap-2 border border-gray-700",children:f?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Checking..."]}):"Check Status"})]}):i.jsxs("div",{className:"text-center py-8",children:[i.jsx("div",{className:"w-8 h-8 border-2 border-blue-500 border-t-transparent rounded-full animate-spin mx-auto"}),i.jsx("p",{className:"text-gray-400 mt-4",children:"Starting login flow..."})]})}function Sh(){let[s,o]=h.useState(!1),{user:d,authenticated:f,loading:T,logout:w,refetch:E}=vr(),{addToast:C}=zl(),S=h.useCallback(async()=>{try{await w(),C("Logged out successfully","success")}catch(D){C(`Logout failed: ${D.message}`,"error")}},[w,C]),x=h.useCallback(()=>{o(!1),E()},[E]);return T?i.jsxs("div",{className:"bg-slate-800/50 border border-slate-700 rounded-lg p-6 animate-pulse",children:[i.jsx("div",{className:"h-6 bg-slate-700 rounded w-32 mb-4"}),i.jsx("div",{className:"h-4 bg-slate-700 rounded w-48"})]}):s?i.jsxs("div",{children:[i.jsx("button",{onClick:()=>o(!1),className:"text-sm text-gray-400 hover:text-gray-300 mb-4",children:"← Back"}),i.jsx(jh,{onComplete:x})]}):f?i.jsx("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center shadow-lg shadow-amber-500/20",children:i.jsx(mr,{className:"w-8 h-8 text-white"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-semibold text-white",children:d?.name||"User"}),i.jsx("p",{className:"text-sm text-gray-300",children:d?.email}),d?.organizationName&&i.jsx("p",{className:"text-xs text-gray-400 mt-1",children:d.organizationName})]})]}),i.jsxs("button",{onClick:S,className:"px-4 py-2 text-gray-300 hover:text-white hover:bg-white/10 rounded-lg transition-colors inline-flex items-center gap-2 border border-gray-700",children:[i.jsx(rm,{className:"w-5 h-5"}),"Sign Out"]})]})}):i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 text-center",children:[i.jsx(mr,{className:"w-16 h-16 text-gray-500 mx-auto mb-4"}),i.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),i.jsx("p",{className:"text-gray-300 mb-6",children:"Sign in to access projects and team features"}),i.jsxs("button",{onClick:()=>o(!0),className:"px-6 py-3 bg-amber-500 hover:bg-amber-600 text-white font-medium rounded-lg transition-colors inline-flex items-center gap-2 shadow-lg shadow-amber-500/20",children:[i.jsx(dm,{className:"w-5 h-5"}),"Sign In"]})]})}function Nh({mappings:s,onDelete:o}){let{addToast:d,confirm:f}=zl(),T=h.useCallback(async w=>{if(await f(`Remove project mapping for ${w}?`,"This will not delete any files, only the project association."))try{await o(w),d("Mapping removed successfully","success")}catch(C){d(`Failed to remove mapping: ${C.message}`,"error")}},[o,d,f]);return s.length===0?i.jsxs("div",{className:"text-center py-8",children:[i.jsx(Mm,{className:"w-12 h-12 mx-auto mb-4 text-gray-500"}),i.jsx("h3",{className:"text-lg font-medium text-white mb-2",children:"No project mappings"}),i.jsx("p",{className:"text-sm text-gray-300 mb-4 max-w-md mx-auto",children:"Link a directory to a Vizzly project using the CLI from within your project directory."}),i.jsx("div",{className:"bg-slate-900 border border-gray-700 rounded-lg p-4 max-w-md mx-auto",children:i.jsx("code",{className:"text-sm text-amber-500 font-mono",children:"vizzly project:select"})}),i.jsx("p",{className:"text-xs text-gray-400 mt-4",children:"Mappings you create will appear here for easy management."})]}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-700",children:[i.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-gray-300",children:"Directory"}),i.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-gray-300",children:"Project"}),i.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-gray-300",children:"Organization"}),i.jsx("th",{className:"text-right py-3 px-4 text-sm font-medium text-gray-300",children:"Actions"})]})}),i.jsx("tbody",{children:s.map((w,E)=>i.jsxs("tr",{className:"border-b border-gray-700/50 hover:bg-white/5",children:[i.jsx("td",{className:"py-3 px-4 text-sm text-gray-300 font-mono",children:w.directory}),i.jsx("td",{className:"py-3 px-4 text-sm text-white",children:w.projectName||w.projectSlug}),i.jsx("td",{className:"py-3 px-4 text-sm text-gray-400",children:w.organizationSlug}),i.jsx("td",{className:"py-3 px-4 text-right",children:i.jsx("button",{onClick:()=>T(w.directory),className:"text-red-400 hover:text-red-300 transition-colors",title:"Remove mapping",children:i.jsx(Gm,{className:"w-5 h-5"})})})]},E))})]})})}function Eh({builds:s}){return s.length===0?i.jsxs("div",{className:"text-center py-8 text-gray-400",children:[i.jsx(Tm,{className:"w-12 h-12 mx-auto mb-4 text-gray-500"}),i.jsx("p",{children:"No recent builds"})]}):i.jsx("div",{className:"space-y-3",children:s.slice(0,5).map((o,d)=>i.jsxs("div",{className:"flex items-center justify-between p-4 bg-white/5 rounded-lg hover:bg-white/10 transition-colors border border-gray-700/50",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("h4",{className:"text-sm font-medium text-white",children:o.name}),i.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:[o.branch," • ",new Date(o.createdAt).toLocaleString()]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[o.status==="passed"&&i.jsxs("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[i.jsx(La,{className:"w-4 h-4"}),"Passed"]}),o.status==="failed"&&i.jsxs("span",{className:"text-red-400 text-sm flex items-center gap-1",children:[i.jsx(Ln,{className:"w-4 h-4"}),"Failed"]})]})]},d))})}function wh(){let{mappings:s,recentBuilds:o,loading:d,deleteMapping:f,refetch:T}=ph();return d?i.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:i.jsxs("div",{className:"animate-pulse space-y-6",children:[i.jsx("div",{className:"h-8 bg-slate-700 rounded w-48"}),i.jsx("div",{className:"h-64 bg-slate-700 rounded"}),i.jsx("div",{className:"h-64 bg-slate-700 rounded"})]})}):i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Projects"}),i.jsx("p",{className:"text-gray-300",children:"Manage your Vizzly projects and directory mappings"})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[i.jsx("div",{className:"lg:col-span-2",children:i.jsx(Sh,{})}),i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-white mb-4",children:"Quick Stats"}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-gray-300",children:"Project Mappings"}),i.jsx("span",{className:"text-white font-medium",children:s.length})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-gray-300",children:"Recent Builds"}),i.jsx("span",{className:"text-white font-medium",children:o.length})]})]})]})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-white",children:"Project Mappings"}),i.jsx("button",{onClick:T,className:"text-sm text-amber-500 hover:text-amber-400 transition-colors font-medium",children:"Refresh"})]}),i.jsx(Nh,{mappings:s,onDelete:f})]}),i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-white mb-6",children:"Recent Builds"}),i.jsx(Eh,{builds:o})]})]})]})}function Yn(){return i.jsx("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:i.jsx("div",{className:"flex-1 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:i.jsxs("div",{className:"text-center",children:[i.jsxs("div",{className:"mb-12",children:[i.jsx("div",{className:"w-16 h-16 bg-amber-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:i.jsx(vm,{className:"w-8 h-8 text-amber-400"})}),i.jsx("h1",{className:"text-3xl font-bold text-white mb-4",children:"TDD Server Running"}),i.jsx("p",{className:"text-xl text-gray-300 mb-2",children:"Server is ready to receive screenshots"}),i.jsxs("div",{className:"inline-flex items-center space-x-2 bg-green-500/20 border border-green-500/30 rounded-lg px-4 py-2",children:[i.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full animate-pulse"}),i.jsx("span",{className:"text-green-400 text-sm font-medium",children:"Ready for connections"})]})]}),i.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 mb-8",children:[i.jsx("h3",{className:"text-lg font-semibold text-white mb-6",children:"Waiting for Screenshots"}),i.jsx("p",{className:"text-gray-300 mb-6",children:"Run your tests to start capturing visual comparisons:"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"bg-gray-800/50 border border-gray-600 rounded-lg p-4 font-mono text-sm text-gray-300",children:"npm test --watch"}),i.jsx("div",{className:"bg-gray-800/50 border border-gray-600 rounded-lg p-4 font-mono text-sm text-gray-300",children:"npm run test:watch"})]})]}),i.jsxs("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center space-x-2 bg-amber-500 hover:bg-amber-600 text-white font-medium px-6 py-3 rounded-lg transition-colors",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),i.jsx("span",{children:"Refresh"})]})]})})})}function Ah({error:s,onRetry:o}){return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("div",{className:"w-16 h-16 bg-red-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:i.jsx(dr,{className:"w-8 h-8 text-red-400"})}),i.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"Error Loading Report"}),i.jsx("p",{className:"text-gray-400 mb-8",children:s}),i.jsxs("button",{onClick:o,className:"inline-flex items-center space-x-2 bg-amber-500 hover:bg-amber-600 text-white font-medium px-6 py-3 rounded-lg transition-colors",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),i.jsx("span",{children:"Retry"})]})]})})}function Th(){return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"w-8 h-8 border-2 border-amber-500/30 border-t-amber-500 rounded-full animate-spin mx-auto mb-4"}),i.jsx("p",{className:"text-gray-300",children:"Loading visual comparison report..."})]})})}function zh({initialData:s}){let[o,d]=Bn(),{reportData:f,setReportData:T,loading:w,error:E,refetch:C}=um(s),S=o.startsWith("/comparison/"),x=o==="/stats"?"stats":o==="/settings"?"settings":o==="/projects"?"projects":"comparisons",D=O=>{d(O==="stats"?"/stats":O==="settings"?"/settings":O==="projects"?"/projects":"/")},b=o==="/settings"||o==="/projects";return w&&!f&&!b?i.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[i.jsx(xi,{loading:w,onNavigate:D,currentView:x}),i.jsx(Th,{})]}):E&&!f&&!b?i.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[i.jsx(xi,{loading:w,onNavigate:D,currentView:x}),i.jsx(Ah,{error:E,onRetry:C})]}):!f&&!b?i.jsx(Yn,{}):i.jsxs("div",{className:"min-h-screen bg-slate-900",children:[!S&&i.jsx(xi,{loading:w,onNavigate:D,currentView:x}),i.jsxs(tm,{children:[i.jsx(Ha,{path:"/stats",children:f?i.jsx(Im,{reportData:f,setReportData:T,onRefresh:C,loading:w}):i.jsx(Yn,{})}),i.jsx(Ha,{path:"/settings",children:i.jsx(bh,{})}),i.jsx(Ha,{path:"/projects",children:i.jsx(wh,{})}),i.jsx(Ha,{path:"/comparison/:id",children:f?i.jsx(xh,{reportData:f,setReportData:T}):i.jsx(Yn,{})}),i.jsx(Ha,{path:"/",children:f?i.jsx(rh,{reportData:f,setReportData:T,onRefresh:C,loading:w}):i.jsx(Yn,{})})]})]})}let xr=()=>{let s=document.getElementById("vizzly-reporter-root");s||(s=document.createElement("div"),s.id="vizzly-reporter-root",document.body.appendChild(s));let o=window.VIZZLY_REPORTER_DATA||null;R0.createRoot(s).render(i.jsx(h.StrictMode,{children:i.jsx($m,{children:i.jsx(zh,{initialData:o})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",xr):xr()})();
|
|
14
|
+
${g?"border-red-500/40 hover:border-red-500/60":"border-slate-700/50 hover:border-slate-600"}
|
|
15
|
+
`,children:[r.jsxs("div",{className:`
|
|
16
|
+
relative w-16 h-12 md:w-20 md:h-14 rounded-md overflow-hidden flex-shrink-0 bg-slate-800
|
|
17
|
+
${g?"ring-2 ring-red-500/50":v?"ring-2 ring-blue-500/50":""}
|
|
18
|
+
`,children:[y?r.jsx(Cv,{src:y,alt:n.name||"Screenshot",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("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),g&&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"})}),v&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/20 flex items-center justify-center",children:r.jsx("span",{className:"text-[10px] font-bold text-blue-400 bg-blue-900/80 px-1.5 py-0.5 rounded",children:"NEW"})})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-base md:text-lg font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),r.jsx(Av,{status:n.status})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-slate-400",children:[h&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:h}),o&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:o}),n.diffPercentage>0&&r.jsxs("span",{className:"text-red-400",children:[n.diffPercentage.toFixed(2),"% diff"]})]})]}),r.jsx("div",{className:"flex-shrink-0",children:r.jsx(Ov,{userAction:c})}),r.jsx("div",{className:"flex-shrink-0 text-slate-500",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})}function Rv({comparisons:n,onSelectComparison:u,loadingStates:c={}}){return!n||n.length===0?r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"}):r.jsx("div",{className:"space-y-2",children:n.map((o,h)=>{let g=zv(o,h);return r.jsx(Mv,{comparison:{...o,id:g},onClick:u,userAction:c[g]},g)})})}function Dv(){let[,n]=di(),{addToast:u,confirm:c}=Zl(),{data:o,isLoading:h,refetch:g}=gi(),v=Mo(),{filteredComparisons:y,filter:x,setFilter:p,sortBy:N,setSortBy:A,searchQuery:B,setSearchQuery:V,selectedBrowser:H,setSelectedBrowser:M,selectedViewport:q,setSelectedViewport:L,availableFilters:$,counts:k}=wv(o?.comparisons),ne=m.useCallback(J=>{let oe=y.findIndex(He=>He===J),De=J.id||J.signature||(oe>=0?`comparison-${oe}`:null);De&&n(`/comparison/${De}`)},[y,n]),xe=m.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&v.mutate(void 0,{onSuccess:()=>{u("All baselines accepted successfully","success")},onError:oe=>{console.error("Failed to accept all baselines:",oe),u("Failed to accept all baselines. Please try again.","error")}})},[v,u,c]),de=!o?.comparisons||o.comparisons.length===0,K=x!=="all"||B.trim()||H!=="all"||q!=="all",ee=o?.comparisons?.some(J=>J.status==="failed"||J.status==="new"),ve=o?.comparisons?.filter(J=>J.status==="failed").length||0,Me=o?.comparisons?.filter(J=>J.status==="new").length||0,he=ve+Me;return de?r.jsx(ya,{icon:Cg,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(Nv,{filter:x,setFilter:p,sortBy:N,setSortBy:A,searchQuery:B,setSearchQuery:V,selectedBrowser:H,setSelectedBrowser:M,selectedViewport:q,setSelectedViewport:L,availableFilters:$,counts:k,onRefresh:g,loading:h}),ee&&r.jsx(hu,{variant:"success",title:_v(ve,Me),children:r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 mt-3",children:[r.jsx("p",{className:"text-sm text-slate-400 flex-1",children:ve>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"}),r.jsxs(Ke,{variant:"success",onClick:xe,loading:v.isPending,icon:Yl,className:"w-full sm:w-auto",children:["Accept All (",he,")"]})]})}),y.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{className:"py-12",children:r.jsx(ya,{icon:Vg,title:"No matches",description:"No comparisons match your current filters.",action:K&&r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>{p("all"),V(""),M("all"),L("all")},children:"Clear all filters"})})})}):r.jsx(Rv,{comparisons:y,onSelectComparison:ne,loadingStates:{}})]})}function _v(n,u){return n>0&&u>0?`${n} Failed, ${u} New`:n>0?`${n} Visual Difference${n!==1?"s":""}`:`${u} New Baseline${u!==1?"s":""}`}function Uv({children:n,containerClassName:u="",onClick:c,style:o={},...h}){let v=`relative inline-block ${u}`;return r.jsx("div",{className:v,style:o,onClick:c,...h,children:n})}function xi({children:n,containerClassName:u="",interactive:c=!1,onClick:o,style:h={}}){let g=c?"cursor-pointer":"";return r.jsx(Uv,{containerClassName:`${u} ${g}`,onClick:o,style:h,children:n})}function Lv({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:g,onLoad:v,imageErrors:y,style:x={},loading:p="lazy",...N}){let A={absolute:"absolute block",relative:"block"},B=o==="absolute"&&!h.includes("top-")&&!h.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",V=`${A[o]} ${B} ${h}`.trim();if(y&&y.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(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:H,zoom:M,...q}=N;return r.jsx("img",{src:u,alt:c,className:V,style:x,loading:p,decoding:"async",onError:()=>g&&g(n),onLoad:()=>v&&v(n),...q})}function Kl({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:g,onLoad:v,imageErrors:y,showErrorPlaceholder:x=!0,loading:p="lazy",...N}){return y&&y.has(n)&&!x?null:r.jsx(Lv,{imageKey:n,url:u,alt:c,position:o,className:h,onError:g,onLoad:v,imageErrors:y,loading:p,...N})}function Bv({baselineImageUrl:n,currentImageUrl:u,screenshot:c,onImageError:o,onImageLoad:h,imageErrors:g=new Set}){let[v,y]=m.useState(!0),x=()=>{y(p=>!p)};return r.jsxs(xi,{interactive:!0,onClick:x,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(Kl,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`transition-opacity duration-300 ${v?"":"top-0 left-0"} ${v?"opacity-100":"opacity-0"}`,loading:"eager",onError:o,onLoad:h,imageErrors:g,showErrorPlaceholder:!1,screenshot:c}),r.jsx(Kl,{imageKey:`current-${c?.id||"unknown"}`,url:u,alt:"Current",position:v?"absolute":"relative",className:`transition-opacity duration-300 ${v?"top-0 left-0":""} ${v?"opacity-0":"opacity-100"}`,loading:"eager",onError:o,onLoad:h,imageErrors:g,showErrorPlaceholder:!1,screenshot:c})]})]})}function qv({baselineImageUrl:n,currentImageUrl:u,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:h,onImageError:g,onImageLoad:v,imageErrors:y,onDiffToggle:x}){let p=()=>{c&&x&&x()};return n?r.jsxs(xi,{interactive:!!c,onClick:p,children:[r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:g,onLoad:v,imageErrors:y,screenshot:h}),o&&c&&r.jsx(Kl,{imageKey:`diff-${h?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:g,onLoad:v,imageErrors:y,showErrorPlaceholder:!1,screenshot:h}),o&&c&&y?.has(`diff-${h?.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"})]})}),c&&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:[o?"Diff On":"Diff Off"," (click to toggle)"]})]}):r.jsx(xi,{interactive:!!c,onClick:p,children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:g,onLoad:v,imageErrors:y,screenshot:h})})}function Hv({baselineImageUrl:n,currentImageUrl:u,sliderPosition:c=50,onSliderChange:o,screenshot:h,onImageError:g,onImageLoad:v,imageErrors:y=new Set}){return r.jsxs(xi,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${h?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:g,onLoad:v,imageErrors:y,screenshot:h}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:g,onLoad:v,imageErrors:y,screenshot:h})}),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%)"}}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:x=>o(parseInt(x.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 Qv({comparison:n,viewMode:u="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:h,onDiffToggle:g,disableLoadingOverlay:v=!1,zoom:y="fit",className:x=""}){let[p,N]=m.useState(new Set),[A,B]=m.useState(new Map),[V,H]=m.useState(1),[M,q]=m.useState({width:0,height:0}),L=m.useRef(null),$=m.useRef(null);m.useEffect(()=>{let ee=()=>{let he=L.current,J=he?.querySelector("img");if(!he||!J||!J.naturalWidth)return;q({width:J.naturalWidth,height:J.naturalHeight});let oe=he.getBoundingClientRect(),De=40,He=oe.width-De,T=oe.height-De,Q=He/J.naturalWidth,I=T/J.naturalHeight,pe=Math.min(Q,I,1);H(pe)};ee();let ve=new window.ResizeObserver(ee);L.current&&ve.observe(L.current);let Me=L.current?.querySelectorAll("img")||[];return Me.forEach(he=>he.addEventListener("load",ee)),()=>{ve.disconnect(),Me.forEach(he=>he.removeEventListener("load",ee))}},[A]);let k=m.useMemo(()=>{let ee=y==="fit",ve=ee?V:typeof y=="number"?y:1,Me=!ee&&ve>V;return{isFit:ee,scale:ve,allowsOverflow:Me,containerClass:Me?"overflow-auto":"overflow-hidden"}},[y,V]),ne=m.useCallback(ee=>{N(ve=>new Set([...ve,ee]))},[]),xe=m.useCallback(ee=>{B(ve=>new Map(ve).set(ee,"loaded"))},[]),de=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},K=m.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 ${x}`,children:r.jsxs("div",{ref:L,className:`bg-gray-800 relative h-full ${k.containerClass}`,style:{backgroundImage:`
|
|
19
|
+
linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
|
20
|
+
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
|
21
|
+
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
|
22
|
+
linear-gradient(-45deg, transparent 75%, #1f2937 75%)
|
|
23
|
+
`,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:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,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:()=>xe(`current-${K?.id}`),onError:()=>ne(`current-${K?.id}`)})})}),!v&&n&&!A.has(`current-${K?.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&&p.has(`current-${K?.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(dl,{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 ${x}`,children:r.jsxs("div",{ref:L,className:`bg-gray-800 relative unified-screenshot-container h-full ${k.containerClass}`,style:{backgroundImage:`
|
|
24
|
+
linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
|
25
|
+
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
|
26
|
+
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
|
27
|
+
linear-gradient(-45deg, transparent 75%, #1f2937 75%)
|
|
28
|
+
`,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:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:u==="toggle"&&de.baseline?r.jsx(Bv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):u==="onion-skin"&&de.baseline?r.jsx(Hv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,sliderPosition:o,onSliderChange:h,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):r.jsx(qv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,diffImageUrl:de.diff,showDiffOverlay:c,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p,onDiffToggle:g})})}),!v&&!A.has(`current-${K?.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..."})}),p.has(`current-${K?.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(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function pa(n,u=0){return n?.id||n?.signature||`comparison-${u}`}function kv({zoom:n,onZoomChange:u}){let c=m.useCallback(()=>{u(n==="fit"?.75:Math.min(3,n+.25))},[n,u]),o=m.useCallback(()=>{u(n==="fit"?.5:Math.max(.1,n-.25))},[n,u]),h=m.useCallback(()=>{u("fit")},[u]),g=m.useCallback(()=>{u(1)},[u]),v=n==="fit"?"Fit":`${Math.round(n*100)}%`;return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center bg-gray-800/90 backdrop-blur-md rounded-lg border border-gray-600/40 shadow-lg",children:[r.jsx("button",{onClick:o,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-l-lg transition-colors",title:"Zoom out (−)",children:r.jsx(Jg,{className:"w-4 h-4"})}),r.jsx("div",{className:"px-3 py-1.5 min-w-[60px] text-center text-sm font-medium text-gray-200",children:v}),r.jsx("button",{onClick:c,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-r-lg transition-colors",title:"Zoom in (+)",children:r.jsx(Fg,{className:"w-4 h-4"})})]}),r.jsx("button",{onClick:h,className:`p-2 rounded-lg transition-colors ${n==="fit"?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Fit to screen",children:r.jsx(pg,{className:"w-4 h-4"})}),r.jsx("button",{onClick:g,className:`p-2 rounded-lg transition-colors ${n===1?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Actual size",children:r.jsx("span",{className:"text-xs font-bold w-4 h-4 flex items-center justify-center",children:"1:1"})})]})}function Yv({comparison:n,isActive:u,onClick:c,index:o}){let h=n.current||n.baseline,g=n.status==="failed",v=n.status==="new"||n.status==="baseline-created";return r.jsxs("button",{onClick:c,className:`relative flex-shrink-0 group transition-all duration-200 ${u?"ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-900 rounded-lg scale-110":"hover:ring-2 hover:ring-gray-500 hover:ring-offset-2 hover:ring-offset-gray-900 rounded-lg opacity-60 hover:opacity-100"}`,title:n.name||`Screenshot ${o+1}`,children:[r.jsxs("div",{className:"relative w-14 h-20 bg-gray-800 rounded-lg overflow-hidden",children:[h?r.jsx("img",{src:h,alt:n.name||"Thumbnail",className:"absolute inset-0 w-full h-full object-cover object-top",loading:"lazy"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-700 flex items-center justify-center",children:r.jsx("span",{className:"text-lg font-medium text-gray-500",children:n.name?n.name.charAt(0).toUpperCase():"?"})}),v&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-blue-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"NEW"}),g&&!v&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-amber-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"DIFF"})]}),r.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 bg-gray-800 border border-gray-700 text-xs text-gray-200 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-20 shadow-lg",children:n.name||`Screenshot ${o+1}`})]})}function Gv({comparison:n,comparisons:u=[],onClose:c,onAccept:o,onReject:h,onNavigate:g,userAction:v}){let[y,x]=m.useState(hn.OVERLAY),[p,N]=m.useState(!1),[A,B]=m.useState("fit"),[V,H]=m.useState(!0),[M,q]=m.useState(50),L=m.useRef(null),$=m.useMemo(()=>{let J={failed:0,new:1,"baseline-created":1,passed:2};return[...u].sort((oe,De)=>{let He=J[oe.status]??3,T=J[De.status]??3;return He-T})},[u]),k=m.useMemo(()=>{let J=pa(n);return $.findIndex((oe,De)=>pa(oe,De)===J)},[n,$]),ne=m.useMemo(()=>({prev:k>0,next:k<$.length-1}),[k,$.length]),xe=m.useCallback(()=>{ne.prev&&$[k-1]&&g($[k-1])},[ne.prev,$,k,g]),de=m.useCallback(()=>{ne.next&&$[k+1]&&g($[k+1])},[ne.next,$,k,g]);if(m.useEffect(()=>{if(L.current&&k>=0){let J=L.current,oe=J.children;if(oe[k]){let De=oe[k],He=J.getBoundingClientRect(),T=De.getBoundingClientRect();(T.left<He.left||T.right>He.right)&&De.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}},[k]),m.useEffect(()=>{let J=oe=>{if(!(oe.target.tagName==="INPUT"||oe.target.tagName==="TEXTAREA"))switch(oe.key){case"ArrowLeft":oe.preventDefault(),ne.prev&&xe();break;case"ArrowRight":oe.preventDefault(),ne.next&&de();break;case"Escape":oe.preventDefault(),c();break}};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[ne,xe,de,c]),!n)return 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.jsx("button",{onClick:c,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})});let K=n.status==="failed"||n.status==="passed",ee=v==="accepted"||n.status==="passed"&&v!=="rejected",ve=v==="rejected",Me=[{value:hn.OVERLAY,label:"Overlay"},{value:hn.TOGGLE,label:"Toggle"},{value:hn.ONION,label:"Slide"}],he=[];return n.properties?.browser&&he.push({key:"Browser",value:n.properties.browser}),n.properties?.viewport_width&&n.properties?.viewport_height&&he.push({key:"Viewport",value:`${n.properties.viewport_width}×${n.properties.viewport_height}`}),n.properties?.device&&he.push({key:"Device",value:n.properties.device}),r.jsxs("div",{className:"fixed inset-0 bg-gray-900 z-50 flex flex-col","data-testid":"fullscreen-viewer",children:[r.jsxs("div",{className:"flex-shrink-0 bg-gray-900/95 backdrop-blur-md border-b border-gray-800/50 z-30",children:[r.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between gap-2",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("button",{onClick:c,className:"p-1.5 text-gray-400 hover:text-white rounded-lg hover:bg-gray-700/60 transition-colors",title:"Back (Esc)",children:r.jsx(yi,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{onClick:xe,disabled:!ne.prev,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Previous (←)",children:r.jsx(Dg,{className:"w-4 h-4"})}),r.jsxs("span",{className:"text-xs text-gray-500 font-medium tabular-nums min-w-[3rem] text-center",children:[k+1,"/",$.length]}),r.jsx("button",{onClick:de,disabled:!ne.next,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Next (→)",children:r.jsx(ru,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"h-5 w-px bg-gray-700/50"}),r.jsx("h1",{className:"text-sm font-medium text-gray-200 truncate max-w-[300px]",children:n.name||n.originalName||"Unknown"}),he.length>0&&r.jsxs("button",{onClick:()=>N(!p),className:"flex items-center gap-1 px-2 py-1 text-xs text-gray-500 hover:text-gray-300 transition-colors",children:[r.jsxs("span",{children:[he.length," props"]}),r.jsx(uu,{className:`w-3 h-3 transition-transform ${p?"rotate-180":""}`})]})]}),K&&r.jsxs("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:[r.jsxs("button",{onClick:()=>h(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ve?"bg-red-600 text-white":"text-red-400 hover:text-red-300 hover:bg-red-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Reject"]}),r.jsxs("button",{onClick:()=>o(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ee?"bg-green-600 text-white":"text-green-400 hover:text-green-300 hover:bg-green-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Approve"]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(kv,{zoom:A,onZoomChange:B}),r.jsx("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:Me.map(J=>r.jsx("button",{onClick:()=>n.diff&&x(J.value),disabled:!n.diff,className:`px-2.5 py-1 text-xs font-medium rounded-md transition-all ${n.diff?y===J.value?"bg-blue-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-700/60":"text-gray-600 cursor-not-allowed"}`,children:J.label},J.value))})]})]}),p&&he.length>0&&r.jsx("div",{className:"px-4 py-2 border-t border-gray-800/50 bg-gray-900/50",children:r.jsx("div",{className:"flex flex-wrap gap-2",children:he.map((J,oe)=>r.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-800/60 text-xs rounded-md",children:[r.jsxs("span",{className:"text-gray-500",children:[J.key,":"]}),r.jsx("span",{className:"ml-1 text-gray-300",children:J.value})]},oe))})})]}),r.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:r.jsx(Qv,{comparison:n,viewMode:y===hn.ONION?"onion-skin":y,showDiffOverlay:V,onDiffToggle:()=>H(J=>!J),onionSkinPosition:M,onOnionSkinChange:q,zoom:A,disableLoadingOverlay:!0,className:"w-full h-full"},pa(n))}),r.jsx("div",{className:"flex-shrink-0 bg-gray-900 border-t border-gray-800/50",children:r.jsx("div",{className:"px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"text-sm text-gray-500 flex-shrink-0",children:[k+1," of ",$.length]}),r.jsx("div",{ref:L,className:"flex-1 flex items-center gap-2 overflow-x-auto scrollbar-hide py-1",children:$.map((J,oe)=>r.jsx(Yv,{comparison:J,index:oe,isActive:oe===k,onClick:()=>g(J)},pa(J,oe)))}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 text-xs text-gray-500 flex-shrink-0",children:[r.jsxs("span",{children:["Use"," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"←"})," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"→"})," ","to navigate"]}),r.jsx(uu,{className:"w-4 h-4 rotate-[-90deg]"})]})]})})})]})}function Vv(){let[,n]=di(),[,u]=lg("/comparison/:id"),[c,o]=m.useState({}),{data:h}=gi(),g=sg(),v=rg(),y=m.useMemo(()=>h?.comparisons||[],[h?.comparisons]),{comparison:x,currentIndex:p}=m.useMemo(()=>{let M=u?.id;if(!M||y.length===0)return{comparison:null,currentIndex:-1};let q=y.findIndex((L,$)=>L.id===M||L.signature===M||`comparison-${$}`===M);return{comparison:q>=0?y[q]:null,currentIndex:q}},[u,y]),N=m.useCallback(M=>{let q=y.findIndex(L=>L===M);if(q>=0){let L=M.id||M.signature||`comparison-${q}`;n(`/comparison/${L}`)}},[y,n]),A=m.useCallback(()=>{n("/")},[n]),B=m.useMemo(()=>x?x.id||x.signature||`comparison-${p}`:null,[x,p]),V=m.useCallback(M=>{o(q=>({...q,[M]:"accepting"})),g.mutate(M,{onSettled:()=>{o(q=>({...q,[M]:void 0}))}})},[g]),H=m.useCallback(M=>{o(q=>({...q,[M]:"rejecting"})),v.mutate(M,{onSettled:()=>{o(q=>({...q,[M]:void 0}))}})},[v]);return x?r.jsx(Gv,{comparison:x,comparisons:y,onClose:A,onAccept:V,onReject:H,onNavigate:N,userAction:c[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: ",u?.id||"none"]}),r.jsx("button",{onClick:A,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Zv(n={}){return ma({queryKey:Te.config,queryFn:To.get,...n})}function Xv(){let n=Lt();return Qt({mutationFn:To.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:Te.config})}})}function qo(n){return{threshold:n?.comparison?.threshold??.1,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 mu({source:n}){let u={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(on,{variant:u[n]||"default",size:"sm",children:c[n]||n})}function Kv({config:n,sources:u,onSave:c,isSaving:o}){let h=qo(n),[g,v]=m.useState(h),[y,x]=m.useState(!1),[p,N]=m.useState("general"),A=m.useCallback((M,q)=>{v(L=>({...L,[M]:q})),x(!0)},[]),B=m.useCallback(()=>{v(qo(n)),x(!1)},[n]),V=m.useCallback(()=>{let M={comparison:{threshold:g.threshold},server:{port:g.port,timeout:g.timeout},build:{name:g.buildName,environment:g.environment},tdd:{openReport:g.openReport}};c(M,()=>x(!1))},[g,c]),H=[{key:"general",label:"General",icon:cu},{key:"server",label:"Server",icon:_o},{key:"build",label:"Build",icon:Uo}];return r.jsxs("div",{className:"space-y-6",children:[r.jsx(mv,{tabs:H,activeTab:p,onChange:N,variant:"default"}),p==="general"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cu,title:"General Settings",description:"Configure visual comparison and TDD behavior",iconColor:"bg-amber-500/10 text-amber-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Visual Comparison Threshold",type:"number",value:g.threshold,onChange:M=>A("threshold",parseFloat(M.target.value)),hint:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",step:"0.01",min:"0",max:"1"}),r.jsx(ov,{label:"Auto-open Report",description:"Automatically open the dashboard in your browser when starting TDD mode",checked:g.openReport,onChange:M=>A("openReport",M.target.checked)}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.comparison||"default"})]})]})]}),p==="server"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:_o,title:"Server Settings",description:"Local screenshot server configuration",iconColor:"bg-blue-500/10 text-blue-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Server Port",type:"number",value:g.port,onChange:M=>A("port",parseInt(M.target.value,10)),hint:"Port for the local screenshot server"}),r.jsx(pi,{label:"Server Timeout",type:"number",value:g.timeout,onChange:M=>A("timeout",parseInt(M.target.value,10)),hint:"Request timeout in milliseconds"}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.server||"default"})]})]})]}),p==="build"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:Uo,title:"Build Settings",description:"Configure build naming and environment",iconColor:"bg-purple-500/10 text-purple-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Build Name Template",type:"text",value:g.buildName,onChange:M=>A("buildName",M.target.value),hint:"Template for build names (use {timestamp} for current time)"}),r.jsx(cv,{label:"Environment",value:g.environment,onChange:M=>A("environment",M.target.value),hint:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.build||"default"})]})]})]}),y&&r.jsx("div",{className:"fixed bottom-6 right-6 left-6 md:left-auto md:w-auto",children:r.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl p-4 flex items-center gap-4",children:[r.jsx("span",{className:"text-sm text-slate-400 hidden md:inline",children:"Unsaved changes"}),r.jsxs("div",{className:"flex gap-3 flex-1 md:flex-initial",children:[r.jsx(Ke,{variant:"ghost",onClick:B,disabled:o,className:"flex-1 md:flex-initial",children:"Reset"}),r.jsx(Ke,{variant:"primary",onClick:V,loading:o,icon:Yl,className:"flex-1 md:flex-initial",children:"Save Changes"})]})]})})]})}function Jv(){let{data:n,isLoading:u,error:c,refetch:o}=Zv(),h=Xv(),{addToast:g}=Zl(),v=m.useCallback((y,x)=>{h.mutate(y,{onSuccess:()=>{x(),g("Settings saved successfully!","success")},onError:p=>{g(`Failed to save settings: ${p.message}`,"error")}})},[h,g]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsx(ut,{variant:"text",className:"w-96 h-10"}),r.jsx(Vl,{})]}):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(hu,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6 pb-24",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(Kv,{config:n?.config,sources:n?.sources,onSave:v,isSaving:h.isPending},JSON.stringify(n?.config))]})}function Ho(){return ma({queryKey:Te.authStatus(),queryFn:hi.getStatus,staleTime:30*1e3})}function $v(){return Qt({mutationFn:hi.initiateLogin})}function Fv(){let n=Lt();return Qt({mutationFn:u=>hi.pollAuthorization(u),onSuccess:u=>{u.status==="complete"&&(n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud}))}})}function Wv(){let n=Lt();return Qt({mutationFn:hi.logout,onSuccess:()=>{n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud})}})}function Iv(n={}){return ma({queryKey:Te.projects(),queryFn:mi.list,staleTime:60*1e3,...n})}function Pv(n,u,c={}){return ma({queryKey:Te.builds(n,u),queryFn:()=>mi.getBuilds(n,u,{limit:20}),enabled:!!(n&&u),staleTime:30*1e3,...c})}function e1(){let n=Lt();return Qt({mutationFn:({buildId:u,organizationSlug:c,projectSlug:o})=>un.downloadBaselines(u,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function t1(n={}){return ma({queryKey:[...Te.projects(),"mappings"],queryFn:mi.listMappings,staleTime:60*1e3,...n})}function l1(){let n=Lt();return Qt({mutationFn:u=>mi.deleteMapping(u),onSuccess:()=>{n.invalidateQueries({queryKey:Te.projects()})}})}function a1({onComplete:n}){let[u,c]=m.useState(null),[o,h]=m.useState(null),g=$v(),v=Fv(),{addToast:y}=Zl();m.useEffect(()=>{async function p(){try{let N=await g.mutateAsync();c(N)}catch(N){h(N.message),y(`Failed to start login: ${N.message}`,"error")}}p()},[]);async function x(){if(u?.deviceCode){h(null);try{let p=await v.mutateAsync(u.deviceCode);p.status==="complete"?(y("Login successful!","success"),n?.()):p.status==="pending"?y("Still waiting for authorization...","info"):h("Unexpected response from server")}catch(p){h(p.message),y(`Check failed: ${p.message}`,"error")}}}return o?r.jsx(hu,{variant:"danger",title:"Login Error",children:o}):u?r.jsx(lt,{hover:!1,children:r.jsxs(nt,{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:u.verificationUriComplete||u.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:u.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(Ke,{variant:"secondary",onClick:x,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function n1(){let[n,u]=m.useState(!1),c=Lt(),{data:o,isLoading:h}=Ho(),g=Wv(),{addToast:v}=Zl(),y=o?.user,x=o?.authenticated,p=m.useCallback(async()=>{try{await g.mutateAsync(),v("Logged out successfully","success")}catch(A){v(`Logout failed: ${A.message}`,"error")}},[g,v]),N=m.useCallback(()=>{u(!1),c.invalidateQueries({queryKey:Te.auth})},[c]);return h?r.jsx(Vl,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(!1),children:"← Back"}),r.jsx(a1,{onComplete:N})]}):x?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(fu,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:y?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:y?.email}),y?.organizationName&&r.jsx(on,{variant:"default",className:"mt-2",children:y.organizationName})]})]}),r.jsx(Ke,{variant:"ghost",onClick:p,loading:g.isPending,icon:mg,children:"Sign Out"})]})})}):r.jsx(lt,{hover:!1,children:r.jsxs(nt,{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(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Ke,{variant:"primary",onClick:()=>u(!0),icon:Ro,children:"Sign In"})]})})}function i1({mappings:n,onDelete:u,deleting:c}){let{addToast:o,confirm:h}=Zl(),g=m.useCallback(async v=>{if(await h(`Remove project mapping for ${v}?`,"This will not delete any files, only the project association."))try{await u(v),o("Mapping removed successfully","success")}catch(x){o(`Failed to remove mapping: ${x.message}`,"error")}},[u,o,h]);return n.length===0?r.jsx(ya,{icon:cn,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map((v,y)=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:v.directory}),r.jsx("td",{className:"text-white",children:v.projectName||v.projectSlug}),r.jsx("td",{children:v.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>g(v.directory),disabled:c,icon:nv,className:"!p-2"})})]},y))})]})})}function s1(){let{data:n,isLoading:u,refetch:c}=t1(),o=l1(),h=n?.mappings||[],g=m.useCallback(async v=>{await o.mutateAsync(v)},[o]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Vl,{})}),r.jsx(Vl,{})]}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(n1,{})}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Quick Stats"}),r.jsx(nt,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:h.length})]})})]})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cn,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(),icon:fl,children:"Refresh"})}),r.jsx(nt,{padding:"p-0",children:r.jsx(i1,{mappings:h,onDelete:g,deleting:o.isPending})})]})]})}function u1({status:n}){let u={passed:{variant:"success",icon:Yl},completed:{variant:"success",icon:Yl},failed:{variant:"danger",icon:du},pending:{variant:"warning",icon:vi},processing:{variant:"info",icon:fl}},c=u[n]||u.pending;return r.jsx(on,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function r1(n){let u=Math.floor((new Date-n)/1e3);return u<60?"just now":u<3600?`${Math.floor(u/60)}m ago`:u<86400?`${Math.floor(u/3600)}h ago`:u<604800?`${Math.floor(u/86400)}d ago`:n.toLocaleDateString()}function c1({build:n,project:u,onDownload:c,downloading:o}){let h=new Date(n.createdAt||n.created_at),g=r1(h);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(u1,{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:g}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(n,u),loading:o,icon:dg,title:"Download baselines from this build"})]})}function o1({project:n,onExpand:u,expanded:c,onDownload:o,downloadingBuildId:h}){let{data:g,isLoading:v}=Pv(c?n.organizationSlug:null,c?n.slug:null),y=g?.builds||[];return r.jsxs(lt,{hover:!1,children:[r.jsxs("button",{onClick:()=>u(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(cn,{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(fn,{size:"sm",className:"text-amber-400"}),c?r.jsx(uu,{className:"w-5 h-5 text-slate-400"}):r.jsx(ru,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(nt,{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(fn,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):y&&y.length>0?r.jsx("div",{className:"space-y-3",children:y.map((x,p)=>r.jsx(c1,{build:x,project:n,onDownload:o,downloading:h===x.id},x.id||p))}):r.jsx(ya,{icon:vi,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 f1({org:n,expandedProjects:u,onExpand:c,onDownload:o,downloadingBuildId:h}){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(Ng,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(on,{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(g=>{let v=`${g.organizationSlug}/${g.slug}`;return r.jsx(o1,{project:g,expanded:u[v],onExpand:c,onDownload:o,downloadingBuildId:h},v)})})]})}function d1({onLogin:n}){return r.jsx(lt,{hover:!1,children:r.jsxs(nt,{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(fu,{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(Ke,{variant:"primary",onClick:n,icon:Ro,children:"Sign In"})]})})}function h1(){let[n,u]=m.useState({}),[c,o]=m.useState(null),{addToast:h}=Zl(),{data:g,isLoading:v}=Ho(),{data:y,isLoading:x,refetch:p}=Iv(),N=e1(),A=g?.authenticated,B=m.useMemo(()=>{let q=y?.projects||[],L={};for(let $ of q){let k=$.organizationSlug||"unknown";L[k]||(L[k]={slug:k,name:$.organizationName||k,projects:[]}),L[k].projects.push($)}return Object.values(L)},[y?.projects]),V=m.useCallback((q,L)=>{let $=`${q}/${L}`;u(k=>({...k,[$]:!k[$]}))},[]),H=m.useCallback((q,L)=>{o(q.id),N.mutate({buildId:q.id,organizationSlug:L?.organizationSlug,projectSlug:L?.slug},{onSuccess:()=>{h(`Baselines downloaded from "${q.name||q.id}"`,"success"),o(null)},onError:$=>{h(`Failed to download baselines: ${$.message}`,"error"),o(null)}})},[N,h]),M=m.useCallback(()=>{window.location.href="/projects"},[]);return x||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(ut,{variant:"heading",className:"w-40 mb-2"}),r.jsx(ut,{variant:"text",className:"w-72"})]}),r.jsx(ut,{variant:"button"})]}),r.jsx(Vl,{}),r.jsx(Vl,{})]}):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(Ke,{variant:"secondary",onClick:()=>p(),icon:fl,children:"Refresh"})]}),A?B.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsx(ya,{icon:cn,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(Ke,{variant:"secondary",icon:ru,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:B.map(q=>r.jsx(f1,{org:q,expandedProjects:n,onExpand:V,onDownload:H,downloadingBuildId:c},q.slug))}):r.jsx(d1,{onLogin:M})]})}function m1(n,u){let c=[];if(u==="shell")return n.split(`
|
|
29
|
+
`).forEach((v,y)=>{let x=n.split(`
|
|
30
|
+
`).slice(0,y).join(`
|
|
31
|
+
`).length+(y>0?1:0);v.trim().startsWith("#")?c.push({type:"comment",start:x,end:x+v.length}):(v.trim().startsWith("npm")||v.trim().startsWith("npx"))&&c.push({type:"command",start:x,end:x+v.length})}),c;[{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}].forEach(({type:v,regex:y})=>{let x;for(;(x=y.exec(n))!==null;)c.push({type:v,start:x.index,end:x.index+x[0].length})}),c.sort((v,y)=>v.start-y.start);let h=[],g=0;return c.forEach(v=>{v.start>=g&&(h.push(v),g=v.end)}),h}function g1({code:n,language:u="javascript"}){let c=m.useRef(null),o=u==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return m.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;let h=c.current.firstChild;if(!h||h.nodeType!==window.Node.TEXT_NODE)return;let v=m1(n,o?"shell":u).map(p=>{let N=new window.Range;return N.setStart(h,p.start),N.setEnd(h,p.end),{type:p.type,range:N}}),y=new Map;v.forEach(({type:p,range:N})=>{y.has(p)||y.set(p,[]),y.get(p).push(N)});let x=new Map;for(let[p,N]of y){let A=new window.Highlight(...N);x.set(p,A),window.CSS.highlights.set(`code-${p}`,A)}return()=>{for(let[p]of x)window.CSS.highlights.delete(`code-${p}`)}},[n,u,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})})}let Qo=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
|
|
32
|
+
|
|
33
|
+
test('homepage', async ({ page }) => {
|
|
34
|
+
await page.goto('/');
|
|
35
|
+
const screenshot = await page.screenshot();
|
|
36
|
+
await vizzlyScreenshot('homepage', screenshot);
|
|
37
|
+
});`},{id:"vitest",name:"Vitest",code:`// Uses native Vitest browser mode API
|
|
38
|
+
import { expect, test } from 'vitest';
|
|
39
|
+
import { page } from '@vitest/browser/context';
|
|
40
|
+
|
|
41
|
+
test('homepage', async () => {
|
|
42
|
+
await page.goto('/');
|
|
43
|
+
await expect(page).toMatchScreenshot('homepage.png');
|
|
44
|
+
});`},{id:"cypress",name:"Cypress",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
|
|
45
|
+
|
|
46
|
+
it('homepage', () => {
|
|
47
|
+
cy.visit('/');
|
|
48
|
+
cy.screenshot().then((screenshot) => {
|
|
49
|
+
vizzlyScreenshot('homepage', screenshot);
|
|
50
|
+
});
|
|
51
|
+
});`},{id:"puppeteer",name:"Puppeteer",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
|
|
52
|
+
|
|
53
|
+
test('homepage', async () => {
|
|
54
|
+
await page.goto('http://localhost:3000');
|
|
55
|
+
const screenshot = await page.screenshot();
|
|
56
|
+
await vizzlyScreenshot('homepage', screenshot);
|
|
57
|
+
});`},{id:"ruby",name:"Ruby",code:`require 'vizzly'
|
|
58
|
+
|
|
59
|
+
RSpec.describe 'Homepage' do
|
|
60
|
+
it 'looks correct' do
|
|
61
|
+
visit '/'
|
|
62
|
+
screenshot = page.driver.browser.screenshot_as(:png)
|
|
63
|
+
Vizzly.screenshot('homepage', screenshot)
|
|
64
|
+
end
|
|
65
|
+
end`},{id:"ios",name:"iOS",code:`import XCTest
|
|
66
|
+
import Vizzly
|
|
67
|
+
|
|
68
|
+
class VisualTests: XCTestCase {
|
|
69
|
+
func testHomepage() {
|
|
70
|
+
let app = XCUIApplication()
|
|
71
|
+
app.launch()
|
|
72
|
+
|
|
73
|
+
let screenshot = app.screenshot().pngRepresentation
|
|
74
|
+
Vizzly.screenshot("homepage", screenshot)
|
|
75
|
+
}
|
|
76
|
+
}`},{id:"storybook",name:"Storybook",code:`# No code changes needed!
|
|
77
|
+
# Just run the CLI against your Storybook build:
|
|
78
|
+
|
|
79
|
+
npm run build-storybook
|
|
80
|
+
npx vizzly storybook ./storybook-static`}];function ji(){let[n,u]=m.useState("playwright"),c=Qo.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(vi,{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:Qo.map(o=>r.jsx("button",{onClick:()=>u(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(g1,{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(Sg,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function v1(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function y1({error:n,onRetry:u}){return r.jsx(ya,{icon:dl,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{onClick:u,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 p1(){let[n,u]=di(),{data:c,isLoading:o,error:h,refetch:g}=gi(),v=n.startsWith("/comparison/"),y=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",x=N=>{u(N==="stats"?"/stats":N==="settings"?"/settings":N==="projects"?"/projects":N==="builds"?"/builds":"/")},p=n==="/settings"||n==="/projects"||n==="/builds";return o&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsx(v1,{})}):h&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsx(y1,{error:h.message,onRetry:g})}):!c&&!p?r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsx(ji,{})}):v?c?r.jsx(Oo,{children:r.jsx(va,{path:"/comparison/:id",children:r.jsx(Vv,{})})}):r.jsx(dn,{currentView:"comparisons",onNavigate:x,loading:o,children:r.jsx(ji,{})}):r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsxs(Oo,{children:[r.jsx(va,{path:"/stats",children:c?r.jsx(bv,{}):r.jsx(ji,{})}),r.jsx(va,{path:"/settings",children:r.jsx(Jv,{})}),r.jsx(va,{path:"/projects",children:r.jsx(s1,{})}),r.jsx(va,{path:"/builds",children:r.jsx(h1,{})}),r.jsx(va,{path:"/",children:c?r.jsx(Dv,{}):r.jsx(ji,{})})]})})}let ko=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n));let u=window.VIZZLY_REPORTER_DATA||null;tm.createRoot(n).render(r.jsx(m.StrictMode,{children:r.jsx(Em,{client:Bm,children:r.jsx(vv,{children:r.jsx(p1,{initialData:u})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ko):ko()})();
|