github-reporadar 0.10.0 → 0.11.0
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/README.md +2 -0
- package/dist/assets/index-B1DE3jIQ.js +90 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/index-Bb05RJtS.js +0 -90
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function u(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=u(o);fetch(o.href,d)}})();function ey(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Yc={exports:{}},_i={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Lm;function ty(){if(Lm)return _i;Lm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var v in o)v!=="key"&&(d[v]=o[v])}else d=o;return o=d.ref,{$$typeof:a,type:r,key:m,ref:o!==void 0?o:null,props:d}}return _i.Fragment=i,_i.jsx=u,_i.jsxs=u,_i}var Hm;function ny(){return Hm||(Hm=1,Yc.exports=ty()),Yc.exports}var h=ny(),Gc={exports:{}},me={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var km;function ly(){if(km)return me;km=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),N=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=N&&j[N]||j["@@iterator"],typeof j=="function"?j:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function k(j,L,$){this.props=j,this.context=L,this.refs=D,this.updater=$||M}k.prototype.isReactComponent={},k.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,L,"setState")},k.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function K(){}K.prototype=k.prototype;function Y(j,L,$){this.props=j,this.context=L,this.refs=D,this.updater=$||M}var X=Y.prototype=new K;X.constructor=Y,C(X,k.prototype),X.isPureReactComponent=!0;var B=Array.isArray;function Q(){}var V={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function he(j,L,$){var J=$.ref;return{$$typeof:a,type:j,key:L,ref:J!==void 0?J:null,props:$}}function fe(j,L){return he(j.type,L,j.props)}function de(j){return typeof j=="object"&&j!==null&&j.$$typeof===a}function te(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function($){return L[$]})}var I=/\/+/g;function ce(j,L){return typeof j=="object"&&j!==null&&j.key!=null?te(""+j.key):L.toString(36)}function ve(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(Q,Q):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function z(j,L,$,J,ae){var ne=typeof j;(ne==="undefined"||ne==="boolean")&&(j=null);var se=!1;if(j===null)se=!0;else switch(ne){case"bigint":case"string":case"number":se=!0;break;case"object":switch(j.$$typeof){case a:case i:se=!0;break;case b:return se=j._init,z(se(j._payload),L,$,J,ae)}}if(se)return ae=ae(j),se=J===""?"."+ce(j,0):J,B(ae)?($="",se!=null&&($=se.replace(I,"$&/")+"/"),z(ae,L,$,"",function(Se){return Se})):ae!=null&&(de(ae)&&(ae=fe(ae,$+(ae.key==null||j&&j.key===ae.key?"":(""+ae.key).replace(I,"$&/")+"/")+se)),L.push(ae)),1;se=0;var Le=J===""?".":J+":";if(B(j))for(var ye=0;ye<j.length;ye++)J=j[ye],ne=Le+ce(J,ye),se+=z(J,L,$,ne,ae);else if(ye=w(j),typeof ye=="function")for(j=ye.call(j),ye=0;!(J=j.next()).done;)J=J.value,ne=Le+ce(J,ye++),se+=z(J,L,$,ne,ae);else if(ne==="object"){if(typeof j.then=="function")return z(ve(j),L,$,J,ae);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return se}function Z(j,L,$){if(j==null)return j;var J=[],ae=0;return z(j,J,"","",function(ne){return L.call($,ne,ae++)}),J}function ie(j){if(j._status===-1){var L=j._result;L=L(),L.then(function($){(j._status===0||j._status===-1)&&(j._status=1,j._result=$)},function($){(j._status===0||j._status===-1)&&(j._status=2,j._result=$)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var oe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},W={map:Z,forEach:function(j,L,$){Z(j,function(){L.apply(this,arguments)},$)},count:function(j){var L=0;return Z(j,function(){L++}),L},toArray:function(j){return Z(j,function(L){return L})||[]},only:function(j){if(!de(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return me.Activity=y,me.Children=W,me.Component=k,me.Fragment=u,me.Profiler=o,me.PureComponent=Y,me.StrictMode=r,me.Suspense=x,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,me.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},me.cache=function(j){return function(){return j.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(j,L,$){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var J=C({},j.props),ae=j.key;if(L!=null)for(ne in L.key!==void 0&&(ae=""+L.key),L)!P.call(L,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&L.ref===void 0||(J[ne]=L[ne]);var ne=arguments.length-2;if(ne===1)J.children=$;else if(1<ne){for(var se=Array(ne),Le=0;Le<ne;Le++)se[Le]=arguments[Le+2];J.children=se}return he(j.type,ae,J)},me.createContext=function(j){return j={$$typeof:m,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},me.createElement=function(j,L,$){var J,ae={},ne=null;if(L!=null)for(J in L.key!==void 0&&(ne=""+L.key),L)P.call(L,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=L[J]);var se=arguments.length-2;if(se===1)ae.children=$;else if(1<se){for(var Le=Array(se),ye=0;ye<se;ye++)Le[ye]=arguments[ye+2];ae.children=Le}if(j&&j.defaultProps)for(J in se=j.defaultProps,se)ae[J]===void 0&&(ae[J]=se[J]);return he(j,ne,ae)},me.createRef=function(){return{current:null}},me.forwardRef=function(j){return{$$typeof:v,render:j}},me.isValidElement=de,me.lazy=function(j){return{$$typeof:b,_payload:{_status:-1,_result:j},_init:ie}},me.memo=function(j,L){return{$$typeof:g,type:j,compare:L===void 0?null:L}},me.startTransition=function(j){var L=V.T,$={};V.T=$;try{var J=j(),ae=V.S;ae!==null&&ae($,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(Q,oe)}catch(ne){oe(ne)}finally{L!==null&&$.types!==null&&(L.types=$.types),V.T=L}},me.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},me.use=function(j){return V.H.use(j)},me.useActionState=function(j,L,$){return V.H.useActionState(j,L,$)},me.useCallback=function(j,L){return V.H.useCallback(j,L)},me.useContext=function(j){return V.H.useContext(j)},me.useDebugValue=function(){},me.useDeferredValue=function(j,L){return V.H.useDeferredValue(j,L)},me.useEffect=function(j,L){return V.H.useEffect(j,L)},me.useEffectEvent=function(j){return V.H.useEffectEvent(j)},me.useId=function(){return V.H.useId()},me.useImperativeHandle=function(j,L,$){return V.H.useImperativeHandle(j,L,$)},me.useInsertionEffect=function(j,L){return V.H.useInsertionEffect(j,L)},me.useLayoutEffect=function(j,L){return V.H.useLayoutEffect(j,L)},me.useMemo=function(j,L){return V.H.useMemo(j,L)},me.useOptimistic=function(j,L){return V.H.useOptimistic(j,L)},me.useReducer=function(j,L,$){return V.H.useReducer(j,L,$)},me.useRef=function(j){return V.H.useRef(j)},me.useState=function(j){return V.H.useState(j)},me.useSyncExternalStore=function(j,L,$){return V.H.useSyncExternalStore(j,L,$)},me.useTransition=function(){return V.H.useTransition()},me.version="19.2.7",me}var qm;function wo(){return qm||(qm=1,Gc.exports=ly()),Gc.exports}var S=wo();const Ot=ey(S);var Xc={exports:{}},Oi={},Vc={exports:{}},Qc={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ym;function ay(){return Ym||(Ym=1,(function(a){function i(z,Z){var ie=z.length;z.push(Z);e:for(;0<ie;){var oe=ie-1>>>1,W=z[oe];if(0<o(W,Z))z[oe]=Z,z[ie]=W,ie=oe;else break e}}function u(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var Z=z[0],ie=z.pop();if(ie!==Z){z[0]=ie;e:for(var oe=0,W=z.length,j=W>>>1;oe<j;){var L=2*(oe+1)-1,$=z[L],J=L+1,ae=z[J];if(0>o($,ie))J<W&&0>o(ae,$)?(z[oe]=ae,z[J]=ie,oe=J):(z[oe]=$,z[L]=ie,oe=L);else if(J<W&&0>o(ae,ie))z[oe]=ae,z[J]=ie,oe=J;else break e}}return Z}function o(z,Z){var ie=z.sortIndex-Z.sortIndex;return ie!==0?ie:z.id-Z.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,v=m.now();a.unstable_now=function(){return m.now()-v}}var x=[],g=[],b=1,y=null,N=3,w=!1,M=!1,C=!1,D=!1,k=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(z){for(var Z=u(g);Z!==null;){if(Z.callback===null)r(g);else if(Z.startTime<=z)r(g),Z.sortIndex=Z.expirationTime,i(x,Z);else break;Z=u(g)}}function B(z){if(C=!1,X(z),!M)if(u(x)!==null)M=!0,Q||(Q=!0,te());else{var Z=u(g);Z!==null&&ve(B,Z.startTime-z)}}var Q=!1,V=-1,P=5,he=-1;function fe(){return D?!0:!(a.unstable_now()-he<P)}function de(){if(D=!1,Q){var z=a.unstable_now();he=z;var Z=!0;try{e:{M=!1,C&&(C=!1,K(V),V=-1),w=!0;var ie=N;try{t:{for(X(z),y=u(x);y!==null&&!(y.expirationTime>z&&fe());){var oe=y.callback;if(typeof oe=="function"){y.callback=null,N=y.priorityLevel;var W=oe(y.expirationTime<=z);if(z=a.unstable_now(),typeof W=="function"){y.callback=W,X(z),Z=!0;break t}y===u(x)&&r(x),X(z)}else r(x);y=u(x)}if(y!==null)Z=!0;else{var j=u(g);j!==null&&ve(B,j.startTime-z),Z=!1}}break e}finally{y=null,N=ie,w=!1}Z=void 0}}finally{Z?te():Q=!1}}}var te;if(typeof Y=="function")te=function(){Y(de)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ce=I.port2;I.port1.onmessage=de,te=function(){ce.postMessage(null)}}else te=function(){k(de,0)};function ve(z,Z){V=k(function(){z(a.unstable_now())},Z)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(z){z.callback=null},a.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"):P=0<z?Math.floor(1e3/z):5},a.unstable_getCurrentPriorityLevel=function(){return N},a.unstable_next=function(z){switch(N){case 1:case 2:case 3:var Z=3;break;default:Z=N}var ie=N;N=Z;try{return z()}finally{N=ie}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(z,Z){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ie=N;N=z;try{return Z()}finally{N=ie}},a.unstable_scheduleCallback=function(z,Z,ie){var oe=a.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?oe+ie:oe):ie=oe,z){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ie+W,z={id:b++,callback:Z,priorityLevel:z,startTime:ie,expirationTime:W,sortIndex:-1},ie>oe?(z.sortIndex=ie,i(g,z),u(x)===null&&z===u(g)&&(C?(K(V),V=-1):C=!0,ve(B,ie-oe))):(z.sortIndex=W,i(x,z),M||w||(M=!0,Q||(Q=!0,te()))),z},a.unstable_shouldYield=fe,a.unstable_wrapCallback=function(z){var Z=N;return function(){var ie=N;N=Z;try{return z.apply(this,arguments)}finally{N=ie}}}})(Qc)),Qc}var Gm;function iy(){return Gm||(Gm=1,Vc.exports=ay()),Vc.exports}var Kc={exports:{}},gt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Xm;function uy(){if(Xm)return gt;Xm=1;var a=wo();function i(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(x,g,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:x,containerInfo:g,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gt.createPortal=function(x,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(x,g,null,b)},gt.flushSync=function(x){var g=m.T,b=r.p;try{if(m.T=null,r.p=2,x)return x()}finally{m.T=g,r.p=b,r.d.f()}},gt.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(x,g))},gt.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},gt.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var b=g.as,y=v(b,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,w=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:N,fetchPriority:w}):b==="script"&&r.d.X(x,{crossOrigin:y,integrity:N,fetchPriority:w,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=v(g.as,g.crossOrigin);r.d.M(x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(x)},gt.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,y=v(b,g.crossOrigin);r.d.L(x,b,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(x,g){if(typeof x=="string")if(g){var b=v(g.as,g.crossOrigin);r.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(x)},gt.requestFormReset=function(x){r.d.r(x)},gt.unstable_batchedUpdates=function(x,g){return x(g)},gt.useFormState=function(x,g,b){return m.H.useFormState(x,g,b)},gt.useFormStatus=function(){return m.H.useHostTransitionStatus()},gt.version="19.2.7",gt}var Vm;function Ug(){if(Vm)return Kc.exports;Vm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Kc.exports=uy(),Kc.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Qm;function sy(){if(Qm)return Oi;Qm=1;var a=iy(),i=wo(),u=Ug();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(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 v(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(d(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return x(s),e;if(c===l)return x(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==l.return)n=s,l=c;else{for(var f=!1,p=s.child;p;){if(p===n){f=!0,n=s,l=c;break}if(p===l){f=!0,l=s,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,l=s;break}if(p===l){f=!0,l=c,n=s;break}p=p.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,N=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case k:return"Profiler";case D:return"StrictMode";case B:return"Suspense";case Q:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case Y:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var ve=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},oe=[],W=-1;function j(e){return{current:e}}function L(e){0>W||(e.current=oe[W],oe[W]=null,W--)}function $(e,t){W++,oe[W]=e.current,e.current=t}var J=j(null),ae=j(null),ne=j(null),se=j(null);function Le(e,t){switch($(ne,t),$(ae,e),$(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?um(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=um(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(J),$(J,e)}function ye(){L(J),L(ae),L(ne)}function Se(e){e.memoizedState!==null&&$(se,e);var t=J.current,n=sm(t,e.type);t!==n&&($(ae,e),$(J,n))}function Ze(e){ae.current===e&&(L(J),L(ae)),se.current===e&&(L(se),ji._currentValue=ie)}var _e,nn;function Ie(e){if(_e===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||"",nn=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+_e+e+nn}var F=!1;function Oe(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(U){var R=U}Reflect.construct(e,[],G)}else{try{G.call()}catch(U){R=U}e.call(G.prototype)}}else{try{throw Error()}catch(U){R=U}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(U){if(U&&R&&typeof U.stack=="string")return[U.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var E=f.split(`
|
|
44
|
-
`),T=p.split(`
|
|
45
|
-
`);for(s=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;if(l===E.length||s===T.length)for(l=E.length-1,s=T.length-1;1<=l&&0<=s&&E[l]!==T[s];)s--;for(;1<=l&&0<=s;l--,s--)if(E[l]!==T[s]){if(l!==1||s!==1)do if(l--,s--,0>s||E[l]!==T[s]){var H=`
|
|
46
|
-
`+E[l].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=l&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ie(n):""}function xt(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ie("Activity");default:return""}}function yn(e){try{var t="",n=null;do t+=xt(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var yl=Object.prototype.hasOwnProperty,qt=a.unstable_scheduleCallback,Gn=a.unstable_cancelCallback,kl=a.unstable_shouldYield,Ki=a.unstable_requestPaint,dt=a.unstable_now,_s=a.unstable_getCurrentPriorityLevel,Zi=a.unstable_ImmediatePriority,xn=a.unstable_UserBlockingPriority,ln=a.unstable_NormalPriority,xl=a.unstable_LowPriority,ka=a.unstable_IdlePriority,fn=a.log,Ji=a.unstable_setDisableYieldValue,bl=null,pt=null;function Yt(e){if(typeof fn=="function"&&Ji(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(bl,e)}catch{}}var ht=Math.clz32?Math.clz32:Ts,Os=Math.log,$i=Math.LN2;function Ts(e){return e>>>=0,e===0?32:31-(Os(e)/$i|0)|0}var ql=256,Yl=262144,Xe=4194304;function Ve(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 nt(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~c,l!==0?s=Ve(l):(f&=p,f!==0?s=Ve(f):n||(n=p&~e,n!==0&&(s=Ve(n))))):(p=l&~c,p!==0?s=Ve(p):f!==0?s=Ve(f):n||(n=l&~e,n!==0&&(s=Ve(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function bt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function St(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 mt(){var e=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),e}function Et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n,l,s,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var p=e.entanglements,E=e.expirationTimes,T=e.hiddenUpdates;for(n=f&~n;0<n;){var H=31-ht(n),G=1<<H;p[H]=0,E[H]=-1;var R=T[H];if(R!==null)for(T[H]=null,H=0;H<R.length;H++){var U=R[H];U!==null&&(U.lane&=-536870913)}n&=~G}l!==0&&an(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function an(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-ht(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function Xt(e,t){var n=t&-t;return n=(n&42)!==0?1:bn(n),(n&(e.suspendedLanes|t))!==0?0:n}function bn(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 Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function un(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Xn(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Vt=Math.random().toString(36).slice(2),ut="__reactFiber$"+Vt,Nt="__reactProps$"+Vt,Gl="__reactContainer$"+Vt,Ms="__reactEvents$"+Vt,Xp="__reactListeners$"+Vt,Vp="__reactHandles$"+Vt,Ko="__reactResources$"+Vt,qa="__reactMarker$"+Vt;function Rs(e){delete e[ut],delete e[Nt],delete e[Ms],delete e[Xp],delete e[Vp]}function Xl(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gl]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[ut])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function Vl(e){if(e=e[ut]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ql(e){var t=e[Ko];return t||(t=e[Ko]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[qa]=!0}var Zo=new Set,Jo={};function Sl(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for(Jo[e]=t,e=0;e<t.length;e++)Zo.add(t[e])}var Qp=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]*$"),$o={},Wo={};function Kp(e){return yl.call(Wo,e)?!0:yl.call($o,e)?!1:Qp.test(e)?Wo[e]=!0:($o[e]=!0,!1)}function Wi(e,t,n){if(Kp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Fi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function En(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zp(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){if(!e._valueTracker){var t=Fo(e)?"checked":"value";e._valueTracker=Zp(e,t,""+e[t])}}function Io(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Fo(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ii(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 Jp=/[\n"\\]/g;function Kt(e){return e.replace(Jp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Us(e,t,n,l,s,c,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Bs(e,f,Qt(t)):n!=null?Bs(e,f,Qt(n)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Qt(p):e.removeAttribute("name")}function Po(e,t,n,l,s,c,f,p){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){zs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),zs(e)}function Bs(e,t,n){t==="number"&&Ii(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Zl(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ef(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function tf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ve(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),zs(e)}function Jl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $p=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 nf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||$p.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function lf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&nf(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&nf(e,c,t[c])}function Ls(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 Wp=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"]]),Fp=/^[\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 Pi(e){return Fp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Nn(){}var Hs=null;function ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,Wl=null;function af(e){var t=Vl(e);if(t&&(e=t.stateNode)){var n=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Us(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[Nt]||null;if(!s)throw Error(r(90));Us(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Io(l)}break e;case"textarea":ef(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Zl(e,!!n.multiple,t,!1)}}}var qs=!1;function uf(e,t,n){if(qs)return e(t,n);qs=!0;try{var l=e(t);return l}finally{if(qs=!1,($l!==null||Wl!==null)&&(qu(),$l&&(t=$l,e=Wl,Wl=$l=null,af(t),e)))for(t=0;t<e.length;t++)af(e[t])}}function Ga(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Nt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(wn)try{var Xa={};Object.defineProperty(Xa,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{Ys=!1}var Vn=null,Gs=null,eu=null;function sf(){if(eu)return eu;var e,t=Gs,n=t.length,l,s="value"in Vn?Vn.value:Vn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var f=n-e;for(l=1;l<=f&&t[n-l]===s[c-l];l++);return eu=s.slice(e,1<l?1-l:void 0)}function tu(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 nu(){return!0}function rf(){return!1}function wt(e){function t(n,l,s,c,f){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?nu:rf,this.isPropagationStopped=rf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),t}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=wt(El),Va=y({},El,{view:0,detail:0}),Ip=wt(Va),Xs,Vs,Qa,au=y({},Va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,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!==Qa&&(Qa&&e.type==="mousemove"?(Xs=e.screenX-Qa.screenX,Vs=e.screenY-Qa.screenY):Vs=Xs=0,Qa=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Vs}}),cf=wt(au),Pp=y({},au,{dataTransfer:0}),e0=wt(Pp),t0=y({},Va,{relatedTarget:0}),Qs=wt(t0),n0=y({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),l0=wt(n0),a0=y({},El,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),i0=wt(a0),u0=y({},El,{data:0}),of=wt(u0),s0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={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"},c0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=c0[e])?!!t[e]:!1}function Ks(){return o0}var f0=y({},Va,{key:function(e){if(e.key){var t=s0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),d0=wt(f0),h0=y({},au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ff=wt(h0),m0=y({},Va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),g0=wt(m0),p0=y({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),v0=wt(p0),y0=y({},au,{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}),x0=wt(y0),b0=y({},El,{newState:0,oldState:0}),S0=wt(b0),E0=[9,13,27,32],Zs=wn&&"CompositionEvent"in window,Ka=null;wn&&"documentMode"in document&&(Ka=document.documentMode);var N0=wn&&"TextEvent"in window&&!Ka,df=wn&&(!Zs||Ka&&8<Ka&&11>=Ka),hf=" ",mf=!1;function gf(e,t){switch(e){case"keyup":return E0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function w0(e,t){switch(e){case"compositionend":return pf(t);case"keypress":return t.which!==32?null:(mf=!0,hf);case"textInput":return e=t.data,e===hf&&mf?null:e;default:return null}}function j0(e,t){if(Fl)return e==="compositionend"||!Zs&&gf(e,t)?(e=sf(),eu=Gs=Vn=null,Fl=!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 df&&t.locale!=="ko"?null:t.data;default:return null}}var A0={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 vf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!A0[e.type]:t==="textarea"}function yf(e,t,n,l){$l?Wl?Wl.push(l):Wl=[l]:$l=l,t=Zu(t,"onChange"),0<t.length&&(n=new lu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Za=null,Ja=null;function D0(e){em(e,0)}function iu(e){var t=Ya(e);if(Io(t))return e}function xf(e,t){if(e==="change")return t}var bf=!1;if(wn){var Js;if(wn){var $s="oninput"in document;if(!$s){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),$s=typeof Sf.oninput=="function"}Js=$s}else Js=!1;bf=Js&&(!document.documentMode||9<document.documentMode)}function Ef(){Za&&(Za.detachEvent("onpropertychange",Nf),Ja=Za=null)}function Nf(e){if(e.propertyName==="value"&&iu(Ja)){var t=[];yf(t,Ja,e,ks(e)),uf(D0,t)}}function C0(e,t,n){e==="focusin"?(Ef(),Za=t,Ja=n,Za.attachEvent("onpropertychange",Nf)):e==="focusout"&&Ef()}function _0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Ja)}function O0(e,t){if(e==="click")return iu(t)}function T0(e,t){if(e==="input"||e==="change")return iu(t)}function M0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:M0;function $a(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!yl.call(t,s)||!Rt(e[s],t[s]))return!1}return!0}function wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var n=wf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wf(n)}}function Af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ii(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ii(e.document)}return t}function Ws(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 R0=wn&&"documentMode"in document&&11>=document.documentMode,Il=null,Fs=null,Wa=null,Is=!1;function Cf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Is||Il==null||Il!==Ii(l)||(l=Il,"selectionStart"in l&&Ws(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Wa&&$a(Wa,l)||(Wa=l,l=Zu(Fs,"onSelect"),0<l.length&&(t=new lu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Il)))}function Nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pl={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},Ps={},_f={};wn&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function wl(e){if(Ps[e])return Ps[e];if(!Pl[e])return e;var t=Pl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _f)return Ps[e]=t[n];return e}var Of=wl("animationend"),Tf=wl("animationiteration"),Mf=wl("animationstart"),z0=wl("transitionrun"),U0=wl("transitionstart"),B0=wl("transitioncancel"),Rf=wl("transitionend"),zf=new Map,er="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(" ");er.push("scrollEnd");function sn(e,t){zf.set(e,t),Sl(t,[e])}var uu=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)},Zt=[],ea=0,tr=0;function su(){for(var e=ea,t=tr=ea=0;t<e;){var n=Zt[t];Zt[t++]=null;var l=Zt[t];Zt[t++]=null;var s=Zt[t];Zt[t++]=null;var c=Zt[t];if(Zt[t++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}c!==0&&Uf(n,s,c)}}function ru(e,t,n,l){Zt[ea++]=e,Zt[ea++]=t,Zt[ea++]=n,Zt[ea++]=l,tr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function nr(e,t,n,l){return ru(e,t,n,l),cu(e)}function jl(e,t){return ru(e,null,null,t),cu(e)}function Uf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-ht(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),c):null}function cu(e){if(50<yi)throw yi=0,fc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ta={};function L0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,l){return new L0(e,t,n,l)}function lr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Bf(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ou(e,t,n,l,s,c){var f=0;if(l=e,typeof e=="function")lr(e)&&(f=1);else if(typeof e=="string")f=Gv(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=zt(31,n,t,s),e.elementType=he,e.lanes=c,e;case C:return Al(n.children,s,c,t);case D:f=8,s|=24;break;case k:return e=zt(12,n,t,s|2),e.elementType=k,e.lanes=c,e;case B:return e=zt(13,n,t,s),e.elementType=B,e.lanes=c,e;case Q:return e=zt(19,n,t,s),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:f=10;break e;case K:f=9;break e;case X:f=11;break e;case V:f=14;break e;case P:f=16,l=null;break e}f=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=zt(f,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function Al(e,t,n,l){return e=zt(7,e,l,t),e.lanes=n,e}function ar(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function Lf(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function ir(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hf=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var n=Hf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yn(t)},Hf.set(e,t),t)}return{value:e,source:t,stack:yn(t)}}var na=[],la=0,fu=null,Fa=0,$t=[],Wt=0,Qn=null,dn=1,hn="";function An(e,t){na[la++]=Fa,na[la++]=fu,fu=e,Fa=t}function kf(e,t,n){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,Qn=e;var l=dn;e=hn;var s=32-ht(l)-1;l&=~(1<<s),n+=1;var c=32-ht(t)+s;if(30<c){var f=s-s%5;c=(l&(1<<f)-1).toString(32),l>>=f,s-=f,dn=1<<32-ht(t)+s|n<<s|l,hn=c+e}else dn=1<<c|n<<s|l,hn=e}function ur(e){e.return!==null&&(An(e,1),kf(e,1,0))}function sr(e){for(;e===fu;)fu=na[--la],na[la]=null,Fa=na[--la],na[la]=null;for(;e===Qn;)Qn=$t[--Wt],$t[Wt]=null,hn=$t[--Wt],$t[Wt]=null,dn=$t[--Wt],$t[Wt]=null}function qf(e,t){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,dn=t.id,hn=t.overflow,Qn=e}var st=null,He=null,we=!1,Kn=null,Ft=!1,rr=Error(r(519));function Zn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(Jt(t,e)),rr}function Yf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ut]=e,t[Nt]=l,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<bi.length;n++)be(bi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Po(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),tf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||am(t.textContent,n)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=Nn),t=!0):t=!1,t||Zn(e,!0)}function Gf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function aa(e){if(e!==st)return!1;if(!we)return Gf(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ac(e.type,e.memoizedProps)),n=!n),n&&He&&Zn(e),Gf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=hm(e)}else t===27?(t=He,sl(e.type)?(e=Tc,Tc=null,He=e):He=t):He=st?Pt(e.stateNode.nextSibling):null;return!0}function Dl(){He=st=null,we=!1}function cr(){var e=Kn;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Kn=null),e}function Ia(e){Kn===null?Kn=[e]:Kn.push(e)}var or=j(null),Cl=null,Dn=null;function Jn(e,t,n){$(or,t._currentValue),t._currentValue=n}function Cn(e){e._currentValue=or.current,L(or)}function fr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function dr(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var f=s.child;c=c.firstContext;e:for(;c!==null;){var p=c;c=s;for(var E=0;E<t.length;E++)if(p.context===t[E]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),fr(c.return,n,e),l||(f=null);break e}c=p.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(r(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),fr(f,n,e),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===e){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function ia(e,t,n,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var p=s.type;Rt(s.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(s===se.current){if(f=s.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(ji):e=[ji])}s=s.return}e!==null&&dr(t,e,n,l),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _l(e){Cl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Xf(Cl,e)}function hu(e,t){return Cl===null&&_l(e),Xf(e,t)}function Xf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Dn===null){if(e===null)throw Error(r(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return n}var H0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},k0=a.unstable_scheduleCallback,q0=a.unstable_NormalPriority,Je={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hr(){return{controller:new H0,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&k0(q0,function(){e.controller.abort()})}var ei=null,mr=0,ua=0,sa=null;function Y0(e,t){if(ei===null){var n=ei=[];mr=0,ua=vc(),sa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return mr++,t.then(Vf,Vf),t}function Vf(){if(--mr===0&&ei!==null){sa!==null&&(sa.status="fulfilled");var e=ei;ei=null,ua=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function G0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Qf=z.S;z.S=function(e,t){Ch=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Y0(e,t),Qf!==null&&Qf(e,t)};var Ol=j(null);function gr(){var e=Ol.current;return e!==null?e:Be.pooledCache}function mu(e,t){t===null?$(Ol,Ol.current):$(Ol,t.pool)}function Kf(){var e=gr();return e===null?null:{parent:Je._currentValue,pool:e}}var ra=Error(r(460)),pr=Error(r(474)),gu=Error(r(542)),pu={then:function(){}};function Zf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Nn,Nn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wf(e),e;default:if(typeof t.status=="string")t.then(Nn,Nn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wf(e),e}throw Ml=t,ra}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ml=n,ra):n}}var Ml=null;function $f(){if(Ml===null)throw Error(r(459));var e=Ml;return Ml=null,e}function Wf(e){if(e===ra||e===gu)throw Error(r(483))}var ca=null,ti=0;function vu(e){var t=ti;return ti+=1,ca===null&&(ca=[]),Jf(ca,e,t)}function ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yu(e,t){throw t.$$typeof===N?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ff(e){function t(_,A){if(e){var O=_.deletions;O===null?(_.deletions=[A],_.flags|=16):O.push(A)}}function n(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function l(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function s(_,A){return _=jn(_,A),_.index=0,_.sibling=null,_}function c(_,A,O){return _.index=O,e?(O=_.alternate,O!==null?(O=O.index,O<A?(_.flags|=67108866,A):O):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function p(_,A,O,q){return A===null||A.tag!==6?(A=ar(O,_.mode,q),A.return=_,A):(A=s(A,O),A.return=_,A)}function E(_,A,O,q){var ue=O.type;return ue===C?H(_,A,O.props.children,q,O.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===P&&Tl(ue)===A.type)?(A=s(A,O.props),ni(A,O),A.return=_,A):(A=ou(O.type,O.key,O.props,null,_.mode,q),ni(A,O),A.return=_,A)}function T(_,A,O,q){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=ir(O,_.mode,q),A.return=_,A):(A=s(A,O.children||[]),A.return=_,A)}function H(_,A,O,q,ue){return A===null||A.tag!==7?(A=Al(O,_.mode,q,ue),A.return=_,A):(A=s(A,O),A.return=_,A)}function G(_,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=ar(""+A,_.mode,O),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return O=ou(A.type,A.key,A.props,null,_.mode,O),ni(O,A),O.return=_,O;case M:return A=ir(A,_.mode,O),A.return=_,A;case P:return A=Tl(A),G(_,A,O)}if(ve(A)||te(A))return A=Al(A,_.mode,O,null),A.return=_,A;if(typeof A.then=="function")return G(_,vu(A),O);if(A.$$typeof===Y)return G(_,hu(_,A),O);yu(_,A)}return null}function R(_,A,O,q){var ue=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ue!==null?null:p(_,A,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return O.key===ue?E(_,A,O,q):null;case M:return O.key===ue?T(_,A,O,q):null;case P:return O=Tl(O),R(_,A,O,q)}if(ve(O)||te(O))return ue!==null?null:H(_,A,O,q,null);if(typeof O.then=="function")return R(_,A,vu(O),q);if(O.$$typeof===Y)return R(_,A,hu(_,O),q);yu(_,O)}return null}function U(_,A,O,q,ue){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return _=_.get(O)||null,p(A,_,""+q,ue);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return _=_.get(q.key===null?O:q.key)||null,E(A,_,q,ue);case M:return _=_.get(q.key===null?O:q.key)||null,T(A,_,q,ue);case P:return q=Tl(q),U(_,A,O,q,ue)}if(ve(q)||te(q))return _=_.get(O)||null,H(A,_,q,ue,null);if(typeof q.then=="function")return U(_,A,O,vu(q),ue);if(q.$$typeof===Y)return U(_,A,O,hu(A,q),ue);yu(A,q)}return null}function ee(_,A,O,q){for(var ue=null,Ae=null,le=A,pe=A=0,Ne=null;le!==null&&pe<O.length;pe++){le.index>pe?(Ne=le,le=null):Ne=le.sibling;var De=R(_,le,O[pe],q);if(De===null){le===null&&(le=Ne);break}e&&le&&De.alternate===null&&t(_,le),A=c(De,A,pe),Ae===null?ue=De:Ae.sibling=De,Ae=De,le=Ne}if(pe===O.length)return n(_,le),we&&An(_,pe),ue;if(le===null){for(;pe<O.length;pe++)le=G(_,O[pe],q),le!==null&&(A=c(le,A,pe),Ae===null?ue=le:Ae.sibling=le,Ae=le);return we&&An(_,pe),ue}for(le=l(le);pe<O.length;pe++)Ne=U(le,_,pe,O[pe],q),Ne!==null&&(e&&Ne.alternate!==null&&le.delete(Ne.key===null?pe:Ne.key),A=c(Ne,A,pe),Ae===null?ue=Ne:Ae.sibling=Ne,Ae=Ne);return e&&le.forEach(function(dl){return t(_,dl)}),we&&An(_,pe),ue}function re(_,A,O,q){if(O==null)throw Error(r(151));for(var ue=null,Ae=null,le=A,pe=A=0,Ne=null,De=O.next();le!==null&&!De.done;pe++,De=O.next()){le.index>pe?(Ne=le,le=null):Ne=le.sibling;var dl=R(_,le,De.value,q);if(dl===null){le===null&&(le=Ne);break}e&&le&&dl.alternate===null&&t(_,le),A=c(dl,A,pe),Ae===null?ue=dl:Ae.sibling=dl,Ae=dl,le=Ne}if(De.done)return n(_,le),we&&An(_,pe),ue;if(le===null){for(;!De.done;pe++,De=O.next())De=G(_,De.value,q),De!==null&&(A=c(De,A,pe),Ae===null?ue=De:Ae.sibling=De,Ae=De);return we&&An(_,pe),ue}for(le=l(le);!De.done;pe++,De=O.next())De=U(le,_,pe,De.value,q),De!==null&&(e&&De.alternate!==null&&le.delete(De.key===null?pe:De.key),A=c(De,A,pe),Ae===null?ue=De:Ae.sibling=De,Ae=De);return e&&le.forEach(function(Pv){return t(_,Pv)}),we&&An(_,pe),ue}function Ue(_,A,O,q){if(typeof O=="object"&&O!==null&&O.type===C&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case w:e:{for(var ue=O.key;A!==null;){if(A.key===ue){if(ue=O.type,ue===C){if(A.tag===7){n(_,A.sibling),q=s(A,O.props.children),q.return=_,_=q;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===P&&Tl(ue)===A.type){n(_,A.sibling),q=s(A,O.props),ni(q,O),q.return=_,_=q;break e}n(_,A);break}else t(_,A);A=A.sibling}O.type===C?(q=Al(O.props.children,_.mode,q,O.key),q.return=_,_=q):(q=ou(O.type,O.key,O.props,null,_.mode,q),ni(q,O),q.return=_,_=q)}return f(_);case M:e:{for(ue=O.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){n(_,A.sibling),q=s(A,O.children||[]),q.return=_,_=q;break e}else{n(_,A);break}else t(_,A);A=A.sibling}q=ir(O,_.mode,q),q.return=_,_=q}return f(_);case P:return O=Tl(O),Ue(_,A,O,q)}if(ve(O))return ee(_,A,O,q);if(te(O)){if(ue=te(O),typeof ue!="function")throw Error(r(150));return O=ue.call(O),re(_,A,O,q)}if(typeof O.then=="function")return Ue(_,A,vu(O),q);if(O.$$typeof===Y)return Ue(_,A,hu(_,O),q);yu(_,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(n(_,A.sibling),q=s(A,O),q.return=_,_=q):(n(_,A),q=ar(O,_.mode,q),q.return=_,_=q),f(_)):n(_,A)}return function(_,A,O,q){try{ti=0;var ue=Ue(_,A,O,q);return ca=null,ue}catch(le){if(le===ra||le===gu)throw le;var Ae=zt(29,le,null,_.mode);return Ae.lanes=q,Ae.return=_,Ae}finally{}}}var Rl=Ff(!0),If=Ff(!1),$n=!1;function vr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yr(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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=cu(e),Uf(e,null,n),t}return ru(e,l,t,n),cu(e)}function li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}function xr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var br=!1;function ai(){if(br){var e=sa;if(e!==null)throw e}}function ii(e,t,n,l){br=!1;var s=e.updateQueue;$n=!1;var c=s.firstBaseUpdate,f=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var E=p,T=E.next;E.next=null,f===null?c=T:f.next=T,f=E;var H=e.alternate;H!==null&&(H=H.updateQueue,p=H.lastBaseUpdate,p!==f&&(p===null?H.firstBaseUpdate=T:p.next=T,H.lastBaseUpdate=E))}if(c!==null){var G=s.baseState;f=0,H=T=E=null,p=c;do{var R=p.lane&-536870913,U=R!==p.lane;if(U?(Ee&R)===R:(l&R)===R){R!==0&&R===ua&&(br=!0),H!==null&&(H=H.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var ee=e,re=p;R=t;var Ue=n;switch(re.tag){case 1:if(ee=re.payload,typeof ee=="function"){G=ee.call(Ue,G,R);break e}G=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=re.payload,R=typeof ee=="function"?ee.call(Ue,G,R):ee,R==null)break e;G=y({},G,R);break e;case 2:$n=!0}}R=p.callback,R!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[R]:U.push(R))}else U={lane:R,tag:p.tag,payload:p.payload,callback:p.callback,next:null},H===null?(T=H=U,E=G):H=H.next=U,f|=R;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;U=p,p=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);H===null&&(E=G),s.baseState=E,s.firstBaseUpdate=T,s.lastBaseUpdate=H,c===null&&(s.shared.lanes=0),nl|=f,e.lanes=f,e.memoizedState=G}}function Pf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function ed(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Pf(n[e],t)}var oa=j(null),xu=j(0);function td(e,t){e=Ln,$(xu,e),$(oa,t),Ln=e|t.baseLanes}function Sr(){$(xu,Ln),$(oa,oa.current)}function Er(){Ln=xu.current,L(oa),L(xu)}var Ut=j(null),It=null;function In(e){var t=e.alternate;$(Qe,Qe.current&1),$(Ut,e),It===null&&(t===null||oa.current!==null||t.memoizedState!==null)&&(It=e)}function Nr(e){$(Qe,Qe.current),$(Ut,e),It===null&&(It=e)}function nd(e){e.tag===22?($(Qe,Qe.current),$(Ut,e),It===null&&(It=e)):Pn()}function Pn(){$(Qe,Qe.current),$(Ut,Ut.current)}function Bt(e){L(Ut),It===e&&(It=null),L(Qe)}var Qe=j(0);function bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_c(n)||Oc(n)))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 _n=0,ge=null,Re=null,$e=null,Su=!1,fa=!1,zl=!1,Eu=0,ui=0,da=null,X0=0;function Ye(){throw Error(r(321))}function wr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rt(e[n],t[n]))return!1;return!0}function jr(e,t,n,l,s,c){return _n=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?kd:qr,zl=!1,c=n(l,s),zl=!1,fa&&(c=ad(t,n,l,s)),ld(e),c}function ld(e){z.H=ci;var t=Re!==null&&Re.next!==null;if(_n=0,$e=Re=ge=null,Su=!1,ui=0,da=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&du(e)&&(We=!0))}function ad(e,t,n,l){ge=e;var s=0;do{if(fa&&(da=null),ui=0,fa=!1,25<=s)throw Error(r(301));if(s+=1,$e=Re=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=qd,c=t(n,l)}while(fa);return c}function V0(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?si(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ar(){var e=Eu!==0;return Eu=0,e}function Dr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Cr(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}_n=0,$e=Re=ge=null,fa=!1,ui=Eu=0,da=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ge.memoizedState=$e=e:$e=$e.next=e,$e}function Ke(){if(Re===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=$e===null?ge.memoizedState:$e.next;if(t!==null)$e=t,Re=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},$e===null?ge.memoizedState=$e=e:$e=$e.next=e}return $e}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(e){var t=ui;return ui+=1,da===null&&(da=[]),e=Jf(da,e,t),t=ge,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?kd:qr),e}function wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return si(e);if(e.$$typeof===Y)return rt(e)}throw Error(r(438,String(e)))}function _r(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Nu(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=fe;return t.index++,n}function On(e,t){return typeof t=="function"?t(e):t}function ju(e){var t=Ke();return Or(t,Re,e)}function Or(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var f=s.next;s.next=c.next,c.next=f}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var p=f=null,E=null,T=t,H=!1;do{var G=T.lane&-536870913;if(G!==T.lane?(Ee&G)===G:(_n&G)===G){var R=T.revertLane;if(R===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),G===ua&&(H=!0);else if((_n&R)===R){T=T.next,R===ua&&(H=!0);continue}else G={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},E===null?(p=E=G,f=c):E=E.next=G,ge.lanes|=R,nl|=R;G=T.action,zl&&n(c,G),c=T.hasEagerState?T.eagerState:n(c,G)}else R={lane:G,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},E===null?(p=E=R,f=c):E=E.next=R,ge.lanes|=G,nl|=G;T=T.next}while(T!==null&&T!==t);if(E===null?f=c:E.next=p,!Rt(c,e.memoizedState)&&(We=!0,H&&(n=sa,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=E,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Tr(e){var t=Ke(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do c=e(c,f.action),f=f.next;while(f!==s);Rt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function id(e,t,n){var l=ge,s=Ke(),c=we;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var f=!Rt((Re||s).memoizedState,n);if(f&&(s.memoizedState=n,We=!0),s=s.queue,zr(rd.bind(null,l,s,e),[e]),s.getSnapshot!==t||f||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,ha(9,{destroy:void 0},sd.bind(null,l,s,n,t),null),Be===null)throw Error(r(349));c||(_n&127)!==0||ud(l,t,n)}return n}function ud(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=Nu(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sd(e,t,n,l){t.value=n,t.getSnapshot=l,cd(t)&&od(e)}function rd(e,t,n){return n(function(){cd(t)&&od(e)})}function cd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rt(e,n)}catch{return!0}}function od(e){var t=jl(e,2);t!==null&&_t(t,e,2)}function Mr(e){var t=vt();if(typeof e=="function"){var n=e;if(e=n(),zl){Yt(!0);try{n()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function fd(e,t,n,l){return e.baseState=n,Or(e,Re,typeof l=="function"?l:On)}function Q0(e,t,n,l,s){if(Cu(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};z.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,dd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function dd(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=z.T,f={};z.T=f;try{var p=n(s,l),E=z.S;E!==null&&E(f,p),hd(e,t,p)}catch(T){Rr(e,t,T)}finally{c!==null&&f.types!==null&&(c.types=f.types),z.T=c}}else try{c=n(s,l),hd(e,t,c)}catch(T){Rr(e,t,T)}}function hd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){md(e,t,l)},function(l){return Rr(e,t,l)}):md(e,t,n)}function md(e,t,n){t.status="fulfilled",t.value=n,gd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,dd(e,n)))}function Rr(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,gd(t),t=t.next;while(t!==l)}e.action=null}function gd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pd(e,t){return t}function vd(e,t){if(we){var n=Be.formState;if(n!==null){e:{var l=ge;if(we){if(He){t:{for(var s=He,c=Ft;s.nodeType!==8;){if(!c){s=null;break t}if(s=Pt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){He=Pt(s.nextSibling),l=s.data==="F!";break e}}Zn(l)}l=!1}l&&(t=n[0])}}return n=vt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pd,lastRenderedState:t},n.queue=l,n=Bd.bind(null,ge,l),l.dispatch=n,l=Mr(!1),c=kr.bind(null,ge,!1,l.queue),l=vt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=Q0.bind(null,ge,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function yd(e){var t=Ke();return xd(t,Re,e)}function xd(e,t,n){if(t=Or(e,t,pd)[0],e=ju(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=si(t)}catch(f){throw f===ra?gu:f}else l=t;t=Ke();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,ha(9,{destroy:void 0},K0.bind(null,s,n),null)),[l,c,e]}function K0(e,t){e.action=t}function bd(e){var t=Ke(),n=Re;if(n!==null)return xd(t,n,e);Ke(),t=t.memoizedState,n=Ke();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ha(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Nu(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Sd(){return Ke().memoizedState}function Au(e,t,n,l){var s=vt();ge.flags|=e,s.memoizedState=ha(1|t,{destroy:void 0},n,l===void 0?null:l)}function Du(e,t,n,l){var s=Ke();l=l===void 0?null:l;var c=s.memoizedState.inst;Re!==null&&l!==null&&wr(l,Re.memoizedState.deps)?s.memoizedState=ha(t,c,n,l):(ge.flags|=e,s.memoizedState=ha(1|t,c,n,l))}function Ed(e,t){Au(8390656,8,e,t)}function zr(e,t){Du(2048,8,e,t)}function Z0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Nu(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nd(e){var t=Ke().memoizedState;return Z0({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function wd(e,t){return Du(4,2,e,t)}function jd(e,t){return Du(4,4,e,t)}function Ad(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dd(e,t,n){n=n!=null?n.concat([e]):null,Du(4,4,Ad.bind(null,t,e),n)}function Ur(){}function Cd(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&wr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _d(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&wr(t,l[1]))return l[0];if(l=e(),zl){Yt(!0);try{e()}finally{Yt(!1)}}return n.memoizedState=[l,t],l}function Br(e,t,n){return n===void 0||(_n&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Oh(),ge.lanes|=e,nl|=e,n)}function Od(e,t,n,l){return Rt(n,t)?n:oa.current!==null?(e=Br(e,n,l),Rt(e,t)||(We=!0),e):(_n&42)===0||(_n&1073741824)!==0&&(Ee&261930)===0?(We=!0,e.memoizedState=n):(e=Oh(),ge.lanes|=e,nl|=e,t)}function Td(e,t,n,l,s){var c=Z.p;Z.p=c!==0&&8>c?c:8;var f=z.T,p={};z.T=p,kr(e,!1,t,n);try{var E=s(),T=z.S;if(T!==null&&T(p,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var H=G0(E,l);ri(e,t,H,kt(e))}else ri(e,t,l,kt(e))}catch(G){ri(e,t,{then:function(){},status:"rejected",reason:G},kt())}finally{Z.p=c,f!==null&&p.types!==null&&(f.types=p.types),z.T=f}}function J0(){}function Lr(e,t,n,l){if(e.tag!==5)throw Error(r(476));var s=Md(e).queue;Td(e,s,t,ie,n===null?J0:function(){return Rd(e),n(l)})}function Md(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rd(e){var t=Md(e);t.next===null&&(t=e.alternate.memoizedState),ri(e,t.next.queue,{},kt())}function Hr(){return rt(ji)}function zd(){return Ke().memoizedState}function Ud(){return Ke().memoizedState}function $0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=Wn(n);var l=Fn(t,e,n);l!==null&&(_t(l,t,n),li(l,t,n)),t={cache:hr()},e.payload=t;return}t=t.return}}function W0(e,t,n){var l=kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Cu(e)?Ld(t,n):(n=nr(e,t,n,l),n!==null&&(_t(n,e,l),Hd(n,t,l)))}function Bd(e,t,n){var l=kt();ri(e,t,n,l)}function ri(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cu(e))Ld(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,p=c(f,n);if(s.hasEagerState=!0,s.eagerState=p,Rt(p,f))return ru(e,t,s,0),Be===null&&su(),!1}catch{}finally{}if(n=nr(e,t,s,l),n!==null)return _t(n,e,l),Hd(n,t,l),!0}return!1}function kr(e,t,n,l){if(l={lane:2,revertLane:vc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cu(e)){if(t)throw Error(r(479))}else t=nr(e,n,l,2),t!==null&&_t(t,e,2)}function Cu(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Ld(e,t){fa=Su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}var ci={readContext:rt,use:wu,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ci.useEffectEvent=Ye;var kd={readContext:rt,use:wu,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Ed,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Au(4194308,4,Ad.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){Au(4,2,e,t)},useMemo:function(e,t){var n=vt();t=t===void 0?null:t;var l=e();if(zl){Yt(!0);try{e()}finally{Yt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=vt();if(n!==void 0){var s=n(t);if(zl){Yt(!0);try{n(t)}finally{Yt(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=W0.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mr(e);var t=e.queue,n=Bd.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ur,useDeferredValue:function(e,t){var n=vt();return Br(n,e,t)},useTransition:function(){var e=Mr(!1);return e=Td.bind(null,ge,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ge,s=vt();if(we){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Be===null)throw Error(r(349));(Ee&127)!==0||ud(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Ed(rd.bind(null,l,c,e),[e]),l.flags|=2048,ha(9,{destroy:void 0},sd.bind(null,l,c,n,t),null),n},useId:function(){var e=vt(),t=Be.identifierPrefix;if(we){var n=hn,l=dn;n=(l&~(1<<32-ht(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Eu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=X0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hr,useFormState:vd,useActionState:vd,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=kr.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:_r,useCacheRefresh:function(){return vt().memoizedState=$0.bind(null,ge)},useEffectEvent:function(e){var t=vt(),n={impl:e};return t.memoizedState=n,function(){if((Ce&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},qr={readContext:rt,use:wu,useCallback:Cd,useContext:rt,useEffect:zr,useImperativeHandle:Dd,useInsertionEffect:wd,useLayoutEffect:jd,useMemo:_d,useReducer:ju,useRef:Sd,useState:function(){return ju(On)},useDebugValue:Ur,useDeferredValue:function(e,t){var n=Ke();return Od(n,Re.memoizedState,e,t)},useTransition:function(){var e=ju(On)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:id,useId:zd,useHostTransitionStatus:Hr,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var n=Ke();return fd(n,Re,e,t)},useMemoCache:_r,useCacheRefresh:Ud};qr.useEffectEvent=Nd;var qd={readContext:rt,use:wu,useCallback:Cd,useContext:rt,useEffect:zr,useImperativeHandle:Dd,useInsertionEffect:wd,useLayoutEffect:jd,useMemo:_d,useReducer:Tr,useRef:Sd,useState:function(){return Tr(On)},useDebugValue:Ur,useDeferredValue:function(e,t){var n=Ke();return Re===null?Br(n,e,t):Od(n,Re.memoizedState,e,t)},useTransition:function(){var e=Tr(On)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:id,useId:zd,useHostTransitionStatus:Hr,useFormState:bd,useActionState:bd,useOptimistic:function(e,t){var n=Ke();return Re!==null?fd(n,Re,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_r,useCacheRefresh:Ud};qd.useEffectEvent=Nd;function Yr(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gr={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=kt(),s=Wn(l);s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,l),t!==null&&(_t(t,e,l),li(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=kt(),s=Wn(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,l),t!==null&&(_t(t,e,l),li(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),l=Wn(n);l.tag=2,t!=null&&(l.callback=t),t=Fn(e,l,n),t!==null&&(_t(t,e,n),li(t,e,n))}};function Yd(e,t,n,l,s,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,f):t.prototype&&t.prototype.isPureReactComponent?!$a(n,l)||!$a(s,c):!0}function Gd(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Gr.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Xd(e){uu(e)}function Vd(e){console.error(e)}function Qd(e){uu(e)}function _u(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Kd(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Xr(e,t,n){return n=Wn(n),n.tag=3,n.payload={element:null},n.callback=function(){_u(e,t)},n}function Zd(e){return e=Wn(e),e.tag=3,e}function Jd(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){Kd(t,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Kd(t,n,l),typeof s!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function F0(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ia(t,n,s,!0),n=Ut.current,n!==null){switch(n.tag){case 31:case 13:return It===null?Yu():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===pu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),mc(e,l,s)),!1;case 22:return n.flags|=65536,l===pu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),mc(e,l,s)),!1}throw Error(r(435,n.tag))}return mc(e,l,s),Yu(),!1}if(we)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==rr&&(e=Error(r(422),{cause:l}),Ia(Jt(e,n)))):(l!==rr&&(t=Error(r(423),{cause:l}),Ia(Jt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Jt(l,n),s=Xr(e.stateNode,l,s),xr(e,s),Ge!==4&&(Ge=2)),!1;var c=Error(r(520),{cause:l});if(c=Jt(c,n),vi===null?vi=[c]:vi.push(c),Ge!==4&&(Ge=2),t===null)return!0;l=Jt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Xr(n.stateNode,l,e),xr(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ll===null||!ll.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Zd(s),Jd(s,e,n,l),xr(n,s),!1}n=n.return}while(n!==null);return!1}var Vr=Error(r(461)),We=!1;function ct(e,t,n,l){t.child=e===null?If(t,null,n,l):Rl(t,e.child,n,l)}function $d(e,t,n,l,s){n=n.render;var c=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return _l(t),l=jr(e,t,n,f,c,s),p=Ar(),e!==null&&!We?(Dr(e,t,s),Tn(e,t,s)):(we&&p&&ur(t),t.flags|=1,ct(e,t,l,s),t.child)}function Wd(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!lr(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Fd(e,t,c,l,s)):(e=ou(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ir(e,s)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(f,l)&&e.ref===t.ref)return Tn(e,t,s)}return t.flags|=1,e=jn(c,l),e.ref=t.ref,e.return=t,t.child=e}function Fd(e,t,n,l,s){if(e!==null){var c=e.memoizedProps;if($a(c,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=c,Ir(e,s))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Tn(e,t,s)}return Qr(e,t,n,l,s)}function Id(e,t,n,l){var s=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return Pd(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,c!==null?c.cachePool:null),c!==null?td(t,c):Sr(),nd(t);else return l=t.lanes=536870912,Pd(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(mu(t,c.cachePool),td(t,c),Pn(),t.memoizedState=null):(e!==null&&mu(t,null),Sr(),Pn());return ct(e,t,s,n),t.child}function oi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pd(e,t,n,l,s){var c=gr();return c=c===null?null:{parent:Je._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&mu(t,null),Sr(),nd(t),e!==null&&ia(e,t,l,!0),t.childLanes=s,null}function Ou(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function eh(e,t,n){return Rl(t,e.child,null,n),e=Ou(t,t.pendingProps),e.flags|=2,Bt(t),t.memoizedState=null,e}function I0(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(l.mode==="hidden")return e=Ou(t,l),t.lanes=536870912,oi(null,e);if(Nr(t),(e=He)?(e=dm(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,st=t,He=null)):e=null,e===null)throw Zn(t);return t.lanes=536870912,null}return Ou(t,l)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Nr(t),s)if(t.flags&256)t.flags&=-257,t=eh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||ia(e,t,n,!1),s=(n&e.childLanes)!==0,We||s){if(l=Be,l!==null&&(f=Xt(l,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,jl(e,f),_t(l,e,f),Vr;Yu(),t=eh(e,t,n)}else e=c.treeContext,He=Pt(f.nextSibling),st=t,we=!0,Kn=null,Ft=!1,e!==null&&qf(t,e),t=Ou(t,l),t.flags|=4096;return t}return e=jn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qr(e,t,n,l,s){return _l(t),n=jr(e,t,n,l,void 0,s),l=Ar(),e!==null&&!We?(Dr(e,t,s),Tn(e,t,s)):(we&&l&&ur(t),t.flags|=1,ct(e,t,n,s),t.child)}function th(e,t,n,l,s,c){return _l(t),t.updateQueue=null,n=ad(t,l,n,s),ld(e),l=Ar(),e!==null&&!We?(Dr(e,t,c),Tn(e,t,c)):(we&&l&&ur(t),t.flags|=1,ct(e,t,n,c),t.child)}function nh(e,t,n,l,s){if(_l(t),t.stateNode===null){var c=ta,f=n.contextType;typeof f=="object"&&f!==null&&(c=rt(f)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},vr(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?rt(f):ta,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Yr(t,n,f,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Gr.enqueueReplaceState(c,c.state,null),ii(t,l,c,s),ai(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var p=t.memoizedProps,E=Ul(n,p);c.props=E;var T=c.context,H=n.contextType;f=ta,typeof H=="object"&&H!==null&&(f=rt(H));var G=n.getDerivedStateFromProps;H=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||T!==f)&&Gd(t,c,l,f),$n=!1;var R=t.memoizedState;c.state=R,ii(t,l,c,s),ai(),T=t.memoizedState,p||R!==T||$n?(typeof G=="function"&&(Yr(t,n,G,l),T=t.memoizedState),(E=$n||Yd(t,n,E,l,R,T,f))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=T),c.props=l,c.state=T,c.context=f,l=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,yr(e,t),f=t.memoizedProps,H=Ul(n,f),c.props=H,G=t.pendingProps,R=c.context,T=n.contextType,E=ta,typeof T=="object"&&T!==null&&(E=rt(T)),p=n.getDerivedStateFromProps,(T=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==G||R!==E)&&Gd(t,c,l,E),$n=!1,R=t.memoizedState,c.state=R,ii(t,l,c,s),ai();var U=t.memoizedState;f!==G||R!==U||$n||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof p=="function"&&(Yr(t,n,p,l),U=t.memoizedState),(H=$n||Yd(t,n,H,l,R,U,E)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(T||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,U,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,U,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),c.props=l,c.state=U,c.context=E,l=H):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Tu(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Rl(t,e.child,null,s),t.child=Rl(t,null,n,s)):ct(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Tn(e,t,s),e}function lh(e,t,n,l){return Dl(),t.flags|=256,ct(e,t,n,l),t.child}var Kr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zr(e){return{baseLanes:e,cachePool:Kf()}}function Jr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ht),e}function ah(e,t,n){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),f&&(s=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(s?In(t):Pn(),(e=He)?(e=dm(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,st=t,He=null)):e=null,e===null)throw Zn(t);return Oc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,s?(Pn(),s=t.mode,p=Mu({mode:"hidden",children:p},s),l=Al(l,s,n,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=Zr(n),l.childLanes=Jr(e,f,n),t.memoizedState=Kr,oi(null,l)):(In(t),$r(t,p))}var E=e.memoizedState;if(E!==null&&(p=E.dehydrated,p!==null)){if(c)t.flags&256?(In(t),t.flags&=-257,t=Wr(e,t,n)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),p=l.fallback,s=t.mode,l=Mu({mode:"visible",children:l.children},s),p=Al(p,s,n,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,Rl(t,e.child,null,n),l=t.child,l.memoizedState=Zr(n),l.childLanes=Jr(e,f,n),t.memoizedState=Kr,t=oi(null,l));else if(In(t),Oc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var T=f.dgst;f=T,l=Error(r(419)),l.stack="",l.digest=f,Ia({value:l,source:null,stack:null}),t=Wr(e,t,n)}else if(We||ia(e,t,n,!1),f=(n&e.childLanes)!==0,We||f){if(f=Be,f!==null&&(l=Xt(f,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,jl(e,l),_t(f,e,l),Vr;_c(p)||Yu(),t=Wr(e,t,n)}else _c(p)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,He=Pt(p.nextSibling),st=t,we=!0,Kn=null,Ft=!1,e!==null&&qf(t,e),t=$r(t,l.children),t.flags|=4096);return t}return s?(Pn(),p=l.fallback,s=t.mode,E=e.child,T=E.sibling,l=jn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,T!==null?p=jn(T,p):(p=Al(p,s,n,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,oi(null,l),l=t.child,p=e.child.memoizedState,p===null?p=Zr(n):(s=p.cachePool,s!==null?(E=Je._currentValue,s=s.parent!==E?{parent:E,pool:E}:s):s=Kf(),p={baseLanes:p.baseLanes|n,cachePool:s}),l.memoizedState=p,l.childLanes=Jr(e,f,n),t.memoizedState=Kr,oi(e.child,l)):(In(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function $r(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function Wr(e,t,n){return Rl(t,e.child,null,n),e=$r(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ih(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),fr(e.return,t,n)}function Fr(e,t,n,l,s,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=c)}function uh(e,t,n){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var f=Qe.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,$(Qe,f),ct(e,t,l,n),l=we?Fa:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ih(e,n,t);else if(e.tag===19)ih(e,n,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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&bu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Fr(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&bu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Fr(t,!0,n,null,c,l);break;case"together":Fr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ia(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ir(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function P0(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),Jn(t,Je,e.memoizedState.cache),Dl();break;case 27:case 5:Se(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(In(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ah(e,t,n):(In(t),e=Tn(e,t,n),e!==null?e.sibling:null);In(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ia(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return uh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),$(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,Id(e,t,n,t.pendingProps);case 24:Jn(t,Je,e.memoizedState.cache)}return Tn(e,t,n)}function sh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Ir(e,n)&&(t.flags&128)===0)return We=!1,P0(e,t,n);We=(e.flags&131072)!==0}else We=!1,we&&(t.flags&1048576)!==0&&kf(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")lr(e)?(l=Ul(e,l),t.tag=1,t=nh(null,t,e,l,n)):(t.tag=0,t=Qr(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===X){t.tag=11,t=$d(null,t,e,l,n);break e}else if(s===V){t.tag=14,t=Wd(null,t,e,l,n);break e}}throw t=ce(e)||e,Error(r(306,t,""))}}return t;case 0:return Qr(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=Ul(l,t.pendingProps),nh(e,t,l,s,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,yr(e,t),ii(t,l,null,n);var f=t.memoizedState;if(l=f.cache,Jn(t,Je,l),l!==c.cache&&dr(t,[Je],n,!0),ai(),l=f.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=lh(e,t,l,n);break e}else if(l!==s){s=Jt(Error(r(424)),t),Ia(s),t=lh(e,t,l,n);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(He=Pt(e.firstChild),st=t,we=!0,Kn=null,Ft=!0,n=If(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Dl(),l===s){t=Tn(e,t,n);break e}ct(e,t,l,n)}t=t.child}return t;case 26:return Tu(e,t),e===null?(n=ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,l=Ju(ne.current).createElement(n),l[ut]=t,l[Nt]=e,ot(l,n,e),lt(l),t.stateNode=l):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&we&&(l=t.stateNode=gm(t.type,t.pendingProps,ne.current),st=t,Ft=!0,s=He,sl(t.type)?(Tc=s,He=Pt(l.firstChild)):He=s),ct(e,t,t.pendingProps.children,n),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((s=l=He)&&(l=_v(l,t.type,t.pendingProps,Ft),l!==null?(t.stateNode=l,st=t,He=Pt(l.firstChild),Ft=!1,s=!0):s=!1),s||Zn(t)),Se(t),s=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,l=c.children,Ac(s,c)?l=null:f!==null&&Ac(s,f)&&(t.flags|=32),t.memoizedState!==null&&(s=jr(e,t,V0,null,null,n),ji._currentValue=s),Tu(e,t),ct(e,t,l,n),t.child;case 6:return e===null&&we&&((e=n=He)&&(n=Ov(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,st=t,He=null,e=!0):e=!1),e||Zn(t)),null;case 13:return ah(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Rl(t,null,l,n):ct(e,t,l,n),t.child;case 11:return $d(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Jn(t,t.type,l.value),ct(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,_l(t),s=rt(s),l=l(s),t.flags|=1,ct(e,t,l,n),t.child;case 14:return Wd(e,t,t.type,t.pendingProps,n);case 15:return Fd(e,t,t.type,t.pendingProps,n);case 19:return uh(e,t,n);case 31:return I0(e,t,n);case 22:return Id(e,t,n,t.pendingProps);case 24:return _l(t),l=rt(Je),e===null?(s=gr(),s===null&&(s=Be,c=hr(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},vr(t),Jn(t,Je,s)):((e.lanes&n)!==0&&(yr(e,t),ii(t,null,null,n),ai()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Jn(t,Je,l)):(l=c.cache,Jn(t,Je,l),l!==s.cache&&dr(t,[Je],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Mn(e){e.flags|=4}function Pr(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(zh())e.flags|=8192;else throw Ml=pu,pr}else e.flags&=-16777217}function rh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(zh())e.flags|=8192;else throw Ml=pu,pr}function Ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mt():536870912,e.lanes|=t,va|=t)}function fi(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function ev(e,t,n){var l=t.pendingProps;switch(sr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Cn(Je),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(aa(t)?Mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr())),ke(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Mn(t),c!==null?(ke(t),rh(t,c)):(ke(t),Pr(t,s,null,l,n))):c?c!==e.memoizedState?(Mn(t),ke(t),rh(t,c)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Mn(t),ke(t),Pr(t,s,e,l,n)),null;case 27:if(Ze(t),n=ne.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ke(t),null}e=J.current,aa(t)?Yf(t):(e=gm(s,l,n),t.stateNode=e,Mn(t))}return ke(t),null;case 5:if(Ze(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ke(t),null}if(c=J.current,aa(t))Yf(t);else{var f=Ju(ne.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}c[ut]=t,c[Nt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.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=c;e:switch(ot(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Mn(t)}}return ke(t),Pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ne.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=st,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||am(e.nodeValue,n)),e||Zn(t,!0)}else e=Ju(e).createTextNode(l),e[ut]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=aa(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ut]=t}else Dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bt(t),t):(Bt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=aa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[ut]=t}else Dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),s=!1}else s=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Bt(t),t):(Bt(t),null)}return Bt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ru(t,t.updateQueue),ke(t),null);case 4:return ye(),e===null&&Sc(t.stateNode.containerInfo),ke(t),null;case 10:return Cn(t.type),ke(t),null;case 19:if(L(Qe),l=t.memoizedState,l===null)return ke(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)fi(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=bu(e),c!==null){for(t.flags|=128,fi(l,!1),e=c.updateQueue,t.updateQueue=e,Ru(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bf(n,e),n=n.sibling;return $(Qe,Qe.current&1|2),we&&An(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&dt()>Hu&&(t.flags|=128,s=!0,fi(l,!1),t.lanes=4194304)}else{if(!s)if(e=bu(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ru(t,e),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!we)return ke(t),null}else 2*dt()-l.renderingStartTime>Hu&&n!==536870912&&(t.flags|=128,s=!0,fi(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=dt(),e.sibling=null,n=Qe.current,$(Qe,s?n&1|2:n&1),we&&An(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Bt(t),Er(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&Ru(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&L(Ol),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Cn(Je),ke(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function tv(e,t){switch(sr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(Je),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ze(t),null;case 31:if(t.memoizedState!==null){if(Bt(t),t.alternate===null)throw Error(r(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Qe),null;case 4:return ye(),null;case 10:return Cn(t.type),null;case 22:case 23:return Bt(t),Er(),e!==null&&L(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(Je),null;case 25:return null;default:return null}}function ch(e,t){switch(sr(t),t.tag){case 3:Cn(Je),ye();break;case 26:case 27:case 5:Ze(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Bt(t);break;case 13:Bt(t);break;case 19:L(Qe);break;case 10:Cn(t.type);break;case 22:case 23:Bt(t),Er(),e!==null&&L(Ol);break;case 24:Cn(Je)}}function di(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,f=n.inst;l=c(),f.destroy=l}n=n.next}while(n!==s)}}catch(p){Me(t,t.return,p)}}function el(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,s=t;var E=n,T=p;try{T()}catch(H){Me(s,E,H)}}}l=l.next}while(l!==c)}}catch(H){Me(t,t.return,H)}}function oh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ed(t,n)}catch(l){Me(e,e.return,l)}}}function fh(e,t,n){n.props=Ul(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Me(e,t,l)}}function hi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Me(e,t,s)}}function mn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Me(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Me(e,t,s)}else n.current=null}function dh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Me(e,e.return,s)}}function ec(e,t,n){try{var l=e.stateNode;Nv(l,e.type,n,t),l[Nt]=t}catch(s){Me(e,e.return,s)}}function hh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hh(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&&sl(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 nc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nn));else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function zu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function mh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ot(t,l,n),t[ut]=e,t[Nt]=n}catch(c){Me(e,e.return,c)}}var Rn=!1,Fe=!1,lc=!1,gh=typeof WeakSet=="function"?WeakSet:Set,at=null;function nv(e,t){if(e=e.containerInfo,wc=ts,e=Df(e),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,p=-1,E=-1,T=0,H=0,G=e,R=null;t:for(;;){for(var U;G!==n||s!==0&&G.nodeType!==3||(p=f+s),G!==c||l!==0&&G.nodeType!==3||(E=f+l),G.nodeType===3&&(f+=G.nodeValue.length),(U=G.firstChild)!==null;)R=G,G=U;for(;;){if(G===e)break t;if(R===n&&++T===s&&(p=f),R===c&&++H===l&&(E=f),(U=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=U}n=p===-1||E===-1?null:{start:p,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(jc={focusedElem:e,selectionRange:n},ts=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,c=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(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var ee=Ul(n.type,s);e=l.getSnapshotBeforeUpdate(ee,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(re){Me(n,n.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Cc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cc(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function ph(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),l&4&&di(5,n);break;case 1:if(Un(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(n,n.return,f)}else{var s=Ul(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(n,n.return,f)}}l&64&&oh(n),l&512&&hi(n,n.return);break;case 3:if(Un(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ed(e,t)}catch(f){Me(n,n.return,f)}}break;case 27:t===null&&l&4&&mh(n);case 26:case 5:Un(e,n),t===null&&l&4&&dh(n),l&512&&hi(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),l&4&&xh(e,n);break;case 13:Un(e,n),l&4&&bh(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=fv.bind(null,n),Tv(e,n))));break;case 22:if(l=n.memoizedState!==null||Rn,!l){t=t!==null&&t.memoizedState!==null||Fe,s=Rn;var c=Fe;Rn=l,(Fe=t)&&!c?Bn(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),Rn=s,Fe=c}break;case 30:break;default:Un(e,n)}}function vh(e){var t=e.alternate;t!==null&&(e.alternate=null,vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rs(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 qe=null,jt=!1;function zn(e,t,n){for(n=n.child;n!==null;)yh(e,t,n),n=n.sibling}function yh(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 26:Fe||mn(n,t),zn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Fe||mn(n,t);var l=qe,s=jt;sl(n.type)&&(qe=n.stateNode,jt=!1),zn(e,t,n),Ei(n.stateNode),qe=l,jt=s;break;case 5:Fe||mn(n,t);case 6:if(l=qe,s=jt,qe=null,zn(e,t,n),qe=l,jt=s,qe!==null)if(jt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(c){Me(n,t,c)}else try{qe.removeChild(n.stateNode)}catch(c){Me(n,t,c)}break;case 18:qe!==null&&(jt?(e=qe,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ja(e)):om(qe,n.stateNode));break;case 4:l=qe,s=jt,qe=n.stateNode.containerInfo,jt=!0,zn(e,t,n),qe=l,jt=s;break;case 0:case 11:case 14:case 15:el(2,n,t),Fe||el(4,n,t),zn(e,t,n);break;case 1:Fe||(mn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&fh(n,t,l)),zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:Fe=(l=Fe)||n.memoizedState!==null,zn(e,t,n),Fe=l;break;default:zn(e,t,n)}}function xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ja(e)}catch(n){Me(t,t.return,n)}}}function bh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ja(e)}catch(n){Me(t,t.return,n)}}function lv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gh),t;default:throw Error(r(435,e.tag))}}function Uu(e,t){var n=lv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=dv.bind(null,e,l);l.then(s,s)}})}function At(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(sl(p.type)){qe=p.stateNode,jt=!1;break e}break;case 5:qe=p.stateNode,jt=!1;break e;case 3:case 4:qe=p.stateNode.containerInfo,jt=!0;break e}p=p.return}if(qe===null)throw Error(r(160));yh(c,f,s),qe=null,jt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sh(t,e),t=t.sibling}var rn=null;function Sh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Dt(e),l&4&&(el(3,e,e.return),di(3,e),el(5,e,e.return));break;case 1:At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),l&64&&Rn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=rn;if(At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[qa]||c[ut]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),ot(c,l,n),c[ut]=e,lt(c),l=c;break e;case"link":var f=Sm("link","href",s).get(l+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(c=f[p],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(p,1);break t}}c=s.createElement(l),ot(c,l,n),s.head.appendChild(c);break;case"meta":if(f=Sm("meta","content",s).get(l+(n.content||""))){for(p=0;p<f.length;p++)if(c=f[p],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(p,1);break t}}c=s.createElement(l),ot(c,l,n),s.head.appendChild(c);break;default:throw Error(r(468,l))}c[ut]=e,lt(c),l=c}e.stateNode=l}else Em(s,e.type,e.stateNode);else e.stateNode=bm(s,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Em(s,e.type,e.stateNode):bm(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ec(e,e.memoizedProps,n.memoizedProps)}break;case 27:At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),n!==null&&l&4&&ec(e,e.memoizedProps,n.memoizedProps);break;case 5:if(At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),e.flags&32){s=e.stateNode;try{Jl(s,"")}catch(ee){Me(e,e.return,ee)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,ec(e,s,n!==null?n.memoizedProps:s)),l&1024&&(lc=!0);break;case 6:if(At(t,e),Dt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ee){Me(e,e.return,ee)}}break;case 3:if(Fu=null,s=rn,rn=$u(t.containerInfo),At(t,e),rn=s,Dt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ja(t.containerInfo)}catch(ee){Me(e,e.return,ee)}lc&&(lc=!1,Eh(e));break;case 4:l=rn,rn=$u(e.stateNode.containerInfo),At(t,e),Dt(e),rn=l;break;case 12:At(t,e),Dt(e);break;case 31:At(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 13:At(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Lu=dt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 22:s=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,T=Rn,H=Fe;if(Rn=T||s,Fe=H||E,At(t,e),Fe=H,Rn=T,Dt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||E||Rn||Fe||Bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(c=E.stateNode,s)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=E.stateNode;var G=E.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;p.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ee){Me(E,E.return,ee)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(ee){Me(E,E.return,ee)}}}else if(t.tag===18){if(n===null){E=t;try{var U=E.stateNode;s?fm(U,!0):fm(E.stateNode,!1)}catch(ee){Me(E,E.return,ee)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Uu(e,n))));break;case 19:At(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 30:break;case 21:break;default:At(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(hh(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,c=tc(e);zu(e,c,s);break;case 5:var f=n.stateNode;n.flags&32&&(Jl(f,""),n.flags&=-33);var p=tc(e);zu(e,p,f);break;case 3:case 4:var E=n.stateNode.containerInfo,T=tc(e);nc(e,T,E);break;default:throw Error(r(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Eh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Eh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ph(e,t.alternate,t),t=t.sibling}function Bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Bl(t);break;case 1:mn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&fh(t,t.return,n),Bl(t);break;case 27:Ei(t.stateNode);case 26:case 5:mn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(t)}e=e.sibling}}function Bn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Bn(s,c,n),di(4,c);break;case 1:if(Bn(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(T){Me(l,l.return,T)}if(l=c,s=l.updateQueue,s!==null){var p=l.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)Pf(E[s],p)}catch(T){Me(l,l.return,T)}}n&&f&64&&oh(c),hi(c,c.return);break;case 27:mh(c);case 26:case 5:Bn(s,c,n),n&&l===null&&f&4&&dh(c),hi(c,c.return);break;case 12:Bn(s,c,n);break;case 31:Bn(s,c,n),n&&f&4&&xh(s,c);break;case 13:Bn(s,c,n),n&&f&4&&bh(s,c);break;case 22:c.memoizedState===null&&Bn(s,c,n),hi(c,c.return);break;case 30:break;default:Bn(s,c,n)}t=t.sibling}}function ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Pa(n))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e))}function cn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,n,l),t=t.sibling}function Nh(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:cn(e,t,n,l),s&2048&&di(9,t);break;case 1:cn(e,t,n,l);break;case 3:cn(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e)));break;case 12:if(s&2048){cn(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Me(t,t.return,E)}}else cn(e,t,n,l);break;case 31:cn(e,t,n,l);break;case 13:cn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?cn(e,t,n,l):mi(e,t):c._visibility&2?cn(e,t,n,l):(c._visibility|=2,ma(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&ac(f,t);break;case 24:cn(e,t,n,l),s&2048&&ic(t.alternate,t);break;default:cn(e,t,n,l)}}function ma(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,p=n,E=l,T=f.flags;switch(f.tag){case 0:case 11:case 15:ma(c,f,p,E,s),di(8,f);break;case 23:break;case 22:var H=f.stateNode;f.memoizedState!==null?H._visibility&2?ma(c,f,p,E,s):mi(c,f):(H._visibility|=2,ma(c,f,p,E,s)),s&&T&2048&&ac(f.alternate,f);break;case 24:ma(c,f,p,E,s),s&&T&2048&&ic(f.alternate,f);break;default:ma(c,f,p,E,s)}t=t.sibling}}function mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:mi(n,l),s&2048&&ac(l.alternate,l);break;case 24:mi(n,l),s&2048&&ic(l.alternate,l);break;default:mi(n,l)}t=t.sibling}}var gi=8192;function ga(e,t,n){if(e.subtreeFlags&gi)for(e=e.child;e!==null;)wh(e,t,n),e=e.sibling}function wh(e,t,n){switch(e.tag){case 26:ga(e,t,n),e.flags&gi&&e.memoizedState!==null&&Xv(n,rn,e.memoizedState,e.memoizedProps);break;case 5:ga(e,t,n);break;case 3:case 4:var l=rn;rn=$u(e.stateNode.containerInfo),ga(e,t,n),rn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=gi,gi=16777216,ga(e,t,n),gi=l):ga(e,t,n));break;default:ga(e,t,n)}}function jh(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 pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Dh(l,e)}jh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ah(e),e=e.sibling}function Ah(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&el(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bu(e)):pi(e);break;default:pi(e)}}function Bu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Dh(l,e)}jh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Bu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Bu(t));break;default:Bu(t)}e=e.sibling}}function Dh(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:el(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Pa(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var s=l.sibling,c=l.return;if(vh(l),l===n){at=null;break e}if(s!==null){s.return=c,at=s;break e}at=c}}}var av={getCacheForType:function(e){var t=rt(Je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rt(Je).controller.signal}},iv=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Be=null,xe=null,Ee=0,Te=0,Lt=null,tl=!1,pa=!1,uc=!1,Ln=0,Ge=0,nl=0,Ll=0,sc=0,Ht=0,va=0,vi=null,Ct=null,rc=!1,Lu=0,Ch=0,Hu=1/0,ku=null,ll=null,et=0,al=null,ya=null,Hn=0,cc=0,oc=null,_h=null,yi=0,fc=null;function kt(){return(Ce&2)!==0&&Ee!==0?Ee&-Ee:z.T!==null?vc():un()}function Oh(){if(Ht===0)if((Ee&536870912)===0||we){var e=Yl;Yl<<=1,(Yl&3932160)===0&&(Yl=262144),Ht=e}else Ht=536870912;return e=Ut.current,e!==null&&(e.flags|=32),Ht}function _t(e,t,n){(e===Be&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(xa(e,0),il(e,Ee,Ht,!1)),Gt(e,n),((Ce&2)===0||e!==Be)&&(e===Be&&((Ce&2)===0&&(Ll|=n),Ge===4&&il(e,Ee,Ht,!1)),gn(e))}function Th(e,t,n){if((Ce&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bt(e,t),s=l?rv(e,t):hc(e,t,!0),c=l;do{if(s===0){pa&&!l&&il(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!uv(n)){s=hc(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;s=vi;var E=p.current.memoizedState.isDehydrated;if(E&&(xa(p,f).flags|=256),f=hc(p,f,!1),f!==2){if(uc&&!E){p.errorRecoveryDisabledLanes|=c,Ll|=c,s=4;break e}c=Ct,Ct=s,c!==null&&(Ct===null?Ct=c:Ct.push.apply(Ct,c))}s=f}if(c=!1,s!==2)continue}}if(s===1){xa(e,0),il(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:il(l,t,Ht,!tl);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=Lu+300-dt(),10<s)){if(il(l,t,Ht,!tl),nt(l,0,!0)!==0)break e;Hn=t,l.timeoutHandle=rm(Mh.bind(null,l,n,Ct,ku,rc,t,Ht,Ll,va,tl,c,"Throttled",-0,0),s);break e}Mh(l,n,Ct,ku,rc,t,Ht,Ll,va,tl,c,null,-0,0)}}break}while(!0);gn(e)}function Mh(e,t,n,l,s,c,f,p,E,T,H,G,R,U){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nn},wh(t,c,G);var ee=(c&62914560)===c?Lu-dt():(c&4194048)===c?Ch-dt():0;if(ee=Vv(G,ee),ee!==null){Hn=c,e.cancelPendingCommit=ee(qh.bind(null,e,t,c,n,l,s,f,p,E,H,G,null,R,U)),il(e,c,f,!T);return}}qh(e,t,c,n,l,s,f,p,E)}function uv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!Rt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 il(e,t,n,l){t&=~sc,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-ht(s),f=1<<c;l[c]=-1,s&=~f}n!==0&&an(e,n,t)}function qu(){return(Ce&6)===0?(xi(0),!1):!0}function dc(){if(xe!==null){if(Te===0)var e=xe.return;else e=xe,Dn=Cl=null,Cr(e),ca=null,ti=0,e=xe;for(;e!==null;)ch(e.alternate,e),e=e.return;xe=null}}function xa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Av(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Hn=0,dc(),Be=e,xe=n=jn(e.current,null),Ee=t,Te=0,Lt=null,tl=!1,pa=bt(e,t),uc=!1,va=Ht=sc=Ll=nl=Ge=0,Ct=vi=null,rc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-ht(l),c=1<<s;t|=e[s],l&=~c}return Ln=t,su(),n}function Rh(e,t){ge=null,z.H=ci,t===ra||t===gu?(t=$f(),Te=3):t===pr?(t=$f(),Te=4):Te=t===Vr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,xe===null&&(Ge=1,_u(e,Jt(t,e.current)))}function zh(){var e=Ut.current;return e===null?!0:(Ee&4194048)===Ee?It===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===It:!1}function Uh(){var e=z.H;return z.H=ci,e===null?ci:e}function Bh(){var e=z.A;return z.A=av,e}function Yu(){Ge=4,tl||(Ee&4194048)!==Ee&&Ut.current!==null||(pa=!0),(nl&134217727)===0&&(Ll&134217727)===0||Be===null||il(Be,Ee,Ht,!1)}function hc(e,t,n){var l=Ce;Ce|=2;var s=Uh(),c=Bh();(Be!==e||Ee!==t)&&(ku=null,xa(e,t)),t=!1;var f=Ge;e:do try{if(Te!==0&&xe!==null){var p=xe,E=Lt;switch(Te){case 8:dc(),f=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var T=Te;if(Te=0,Lt=null,ba(e,p,E,T),n&&pa){f=0;break e}break;default:T=Te,Te=0,Lt=null,ba(e,p,E,T)}}sv(),f=Ge;break}catch(H){Rh(e,H)}while(!0);return t&&e.shellSuspendCounter++,Dn=Cl=null,Ce=l,z.H=s,z.A=c,xe===null&&(Be=null,Ee=0,su()),f}function sv(){for(;xe!==null;)Lh(xe)}function rv(e,t){var n=Ce;Ce|=2;var l=Uh(),s=Bh();Be!==e||Ee!==t?(ku=null,Hu=dt()+500,xa(e,t)):pa=bt(e,t);e:do try{if(Te!==0&&xe!==null){t=xe;var c=Lt;t:switch(Te){case 1:Te=0,Lt=null,ba(e,t,c,1);break;case 2:case 9:if(Zf(c)){Te=0,Lt=null,Hh(t);break}t=function(){Te!==2&&Te!==9||Be!==e||(Te=7),gn(e)},c.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Zf(c)?(Te=0,Lt=null,Hh(t)):(Te=0,Lt=null,ba(e,t,c,7));break;case 5:var f=null;switch(xe.tag){case 26:f=xe.memoizedState;case 5:case 27:var p=xe;if(f?Nm(f):p.stateNode.complete){Te=0,Lt=null;var E=p.sibling;if(E!==null)xe=E;else{var T=p.return;T!==null?(xe=T,Gu(T)):xe=null}break t}}Te=0,Lt=null,ba(e,t,c,5);break;case 6:Te=0,Lt=null,ba(e,t,c,6);break;case 8:dc(),Ge=6;break e;default:throw Error(r(462))}}cv();break}catch(H){Rh(e,H)}while(!0);return Dn=Cl=null,z.H=l,z.A=s,Ce=n,xe!==null?0:(Be=null,Ee=0,su(),Ge)}function cv(){for(;xe!==null&&!kl();)Lh(xe)}function Lh(e){var t=sh(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?Gu(e):xe=t}function Hh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=th(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=th(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Cr(t);default:ch(n,t),t=xe=Bf(t,Ln),t=sh(n,t,Ln)}e.memoizedProps=e.pendingProps,t===null?Gu(e):xe=t}function ba(e,t,n,l){Dn=Cl=null,Cr(t),ca=null,ti=0;var s=t.return;try{if(F0(e,s,t,n,Ee)){Ge=1,_u(e,Jt(n,e.current)),xe=null;return}}catch(c){if(s!==null)throw xe=s,c;Ge=1,_u(e,Jt(n,e.current)),xe=null;return}t.flags&32768?(we||l===1?e=!0:pa||(Ee&536870912)!==0?e=!1:(tl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ut.current,l!==null&&l.tag===13&&(l.flags|=16384))),kh(t,e)):Gu(t)}function Gu(e){var t=e;do{if((t.flags&32768)!==0){kh(t,tl);return}e=t.return;var n=ev(t.alternate,t,Ln);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ge===0&&(Ge=5)}function kh(e,t){do{var n=tv(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ge=6,xe=null}function qh(e,t,n,l,s,c,f,p,E){e.cancelPendingCommit=null;do Xu();while(et!==0);if((Ce&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=tr,Pe(e,n,c,f,p,E),e===Be&&(xe=Be=null,Ee=0),ya=t,al=e,Hn=n,cc=c,oc=s,_h=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hv(ln,function(){return Qh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,s=Z.p,Z.p=2,f=Ce,Ce|=4;try{nv(e,t,n)}finally{Ce=f,Z.p=s,z.T=l}}et=1,Yh(),Gh(),Xh()}}function Yh(){if(et===1){et=0;var e=al,t=ya,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var l=Z.p;Z.p=2;var s=Ce;Ce|=4;try{Sh(t,e);var c=jc,f=Df(e.containerInfo),p=c.focusedElem,E=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&Af(p.ownerDocument.documentElement,p)){if(E!==null&&Ws(p)){var T=E.start,H=E.end;if(H===void 0&&(H=T),"selectionStart"in p)p.selectionStart=T,p.selectionEnd=Math.min(H,p.value.length);else{var G=p.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var U=R.getSelection(),ee=p.textContent.length,re=Math.min(E.start,ee),Ue=E.end===void 0?re:Math.min(E.end,ee);!U.extend&&re>Ue&&(f=Ue,Ue=re,re=f);var _=jf(p,re),A=jf(p,Ue);if(_&&A&&(U.rangeCount!==1||U.anchorNode!==_.node||U.anchorOffset!==_.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var O=G.createRange();O.setStart(_.node,_.offset),U.removeAllRanges(),re>Ue?(U.addRange(O),U.extend(A.node,A.offset)):(O.setEnd(A.node,A.offset),U.addRange(O))}}}}for(G=[],U=p;U=U.parentNode;)U.nodeType===1&&G.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<G.length;p++){var q=G[p];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}ts=!!wc,jc=wc=null}finally{Ce=s,Z.p=l,z.T=n}}e.current=t,et=2}}function Gh(){if(et===2){et=0;var e=al,t=ya,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var l=Z.p;Z.p=2;var s=Ce;Ce|=4;try{ph(e,t.alternate,t)}finally{Ce=s,Z.p=l,z.T=n}}et=3}}function Xh(){if(et===4||et===3){et=0,Ki();var e=al,t=ya,n=Hn,l=_h;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,ya=al=null,Vh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ll=null),Sn(n),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(bl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=z.T,s=Z.p,Z.p=2,z.T=null;try{for(var c=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];c(p.value,{componentStack:p.stack})}}finally{z.T=t,Z.p=s}}(Hn&3)!==0&&Xu(),gn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===fc?yi++:(yi=0,fc=e):yi=0,xi(0)}}function Vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function Xu(){return Yh(),Gh(),Xh(),Qh()}function Qh(){if(et!==5)return!1;var e=al,t=cc;cc=0;var n=Sn(Hn),l=z.T,s=Z.p;try{Z.p=32>n?32:n,z.T=null,n=oc,oc=null;var c=al,f=Hn;if(et=0,ya=al=null,Hn=0,(Ce&6)!==0)throw Error(r(331));var p=Ce;if(Ce|=4,Ah(c.current),Nh(c,c.current,f,n),Ce=p,xi(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(bl,c)}catch{}return!0}finally{Z.p=s,z.T=l,Vh(e,t)}}function Kh(e,t,n){t=Jt(n,t),t=Xr(e.stateNode,t,2),e=Fn(e,t,2),e!==null&&(Gt(e,2),gn(e))}function Me(e,t,n){if(e.tag===3)Kh(e,e,n);else for(;t!==null;){if(t.tag===3){Kh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ll===null||!ll.has(l))){e=Jt(n,e),n=Zd(2),l=Fn(t,n,2),l!==null&&(Jd(n,l,t,e),Gt(l,2),gn(l));break}}t=t.return}}function mc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new iv;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(uc=!0,s.add(n),e=ov.bind(null,e,t,n),t.then(e,e))}function ov(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ee&n)===n&&(Ge===4||Ge===3&&(Ee&62914560)===Ee&&300>dt()-Lu?(Ce&2)===0&&xa(e,0):sc|=n,va===Ee&&(va=0)),gn(e)}function Zh(e,t){t===0&&(t=mt()),e=jl(e,t),e!==null&&(Gt(e,t),gn(e))}function fv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zh(e,n)}function dv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Zh(e,n)}function hv(e,t){return qt(e,t)}var Vu=null,Sa=null,gc=!1,Qu=!1,pc=!1,ul=0;function gn(e){e!==Sa&&e.next===null&&(Sa===null?Vu=Sa=e:Sa=Sa.next=e),Qu=!0,gc||(gc=!0,gv())}function xi(e,t){if(!pc&&Qu){pc=!0;do for(var n=!1,l=Vu;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var f=l.suspendedLanes,p=l.pingedLanes;c=(1<<31-ht(42|e)+1)-1,c&=s&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Fh(l,c))}else c=Ee,c=nt(l,l===Be?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||bt(l,c)||(n=!0,Fh(l,c));l=l.next}while(n);pc=!1}}function mv(){Jh()}function Jh(){Qu=gc=!1;var e=0;ul!==0&&jv()&&(e=ul);for(var t=dt(),n=null,l=Vu;l!==null;){var s=l.next,c=$h(l,t);c===0?(l.next=null,n===null?Vu=s:n.next=s,s===null&&(Sa=n)):(n=l,(e!==0||(c&3)!==0)&&(Qu=!0)),l=s}et!==0&&et!==5||xi(e),ul!==0&&(ul=0)}function $h(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-ht(c),p=1<<f,E=s[f];E===-1?((p&n)===0||(p&l)!==0)&&(s[f]=St(p,t)):E<=t&&(e.expiredLanes|=p),c&=~p}if(t=Be,n=Ee,n=nt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Gn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Gn(l),Sn(n)){case 2:case 8:n=xn;break;case 32:n=ln;break;case 268435456:n=ka;break;default:n=ln}return l=Wh.bind(null,e),n=qt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Gn(l),e.callbackPriority=2,e.callbackNode=null,2}function Wh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var l=Ee;return l=nt(e,e===Be?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Th(e,l,t),$h(e,dt()),e.callbackNode!=null&&e.callbackNode===n?Wh.bind(null,e):null)}function Fh(e,t){if(Xu())return null;Th(e,t,!0)}function gv(){Dv(function(){(Ce&6)!==0?qt(Zi,mv):Jh()})}function vc(){if(ul===0){var e=ua;e===0&&(e=ql,ql<<=1,(ql&261888)===0&&(ql=256)),ul=e}return ul}function Ih(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pi(""+e)}function Ph(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pv(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var c=Ih((s[Nt]||null).action),f=l.submitter;f&&(t=(t=f[Nt]||null)?Ih(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var p=new lu("action","action",null,l,s);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ul!==0){var E=f?Ph(s,f):new FormData(s);Lr(n,{pending:!0,data:E,method:s.method,action:c},null,E)}}else typeof c=="function"&&(p.preventDefault(),E=f?Ph(s,f):new FormData(s),Lr(n,{pending:!0,data:E,method:s.method,action:c},c,E))},currentTarget:s}]})}}for(var yc=0;yc<er.length;yc++){var xc=er[yc],vv=xc.toLowerCase(),yv=xc[0].toUpperCase()+xc.slice(1);sn(vv,"on"+yv)}sn(Of,"onAnimationEnd"),sn(Tf,"onAnimationIteration"),sn(Mf,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(z0,"onTransitionRun"),sn(U0,"onTransitionStart"),sn(B0,"onTransitionCancel"),sn(Rf,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),Sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(bi));function em(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],E=p.instance,T=p.currentTarget;if(p=p.listener,E!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=T;try{c(s)}catch(H){uu(H)}s.currentTarget=null,c=E}else for(f=0;f<l.length;f++){if(p=l[f],E=p.instance,T=p.currentTarget,p=p.listener,E!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=T;try{c(s)}catch(H){uu(H)}s.currentTarget=null,c=E}}}}function be(e,t){var n=t[Ms];n===void 0&&(n=t[Ms]=new Set);var l=e+"__bubble";n.has(l)||(tm(t,e,2,!1),n.add(l))}function bc(e,t,n){var l=0;t&&(l|=4),tm(n,e,l,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[Ku]){e[Ku]=!0,Zo.forEach(function(n){n!=="selectionchange"&&(xv.has(n)||bc(n,!1,e),bc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,bc("selectionchange",!1,t))}}function tm(e,t,n,l){switch(Om(t)){case 2:var s=Zv;break;case 8:s=Jv;break;default:s=Bc}n=s.bind(null,t,n,e),s=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ec(e,t,n,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===s)break;if(f===4)for(f=l.return;f!==null;){var E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;p!==null;){if(f=Xl(p),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){l=c=f;continue e}p=p.parentNode}}l=l.return}uf(function(){var T=c,H=ks(n),G=[];e:{var R=zf.get(e);if(R!==void 0){var U=lu,ee=e;switch(e){case"keypress":if(tu(n)===0)break e;case"keydown":case"keyup":U=d0;break;case"focusin":ee="focus",U=Qs;break;case"focusout":ee="blur",U=Qs;break;case"beforeblur":case"afterblur":U=Qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=e0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=g0;break;case Of:case Tf:case Mf:U=l0;break;case Rf:U=v0;break;case"scroll":case"scrollend":U=Ip;break;case"wheel":U=x0;break;case"copy":case"cut":case"paste":U=i0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=ff;break;case"toggle":case"beforetoggle":U=S0}var re=(t&4)!==0,Ue=!re&&(e==="scroll"||e==="scrollend"),_=re?R!==null?R+"Capture":null:R;re=[];for(var A=T,O;A!==null;){var q=A;if(O=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||O===null||_===null||(q=Ga(A,_),q!=null&&re.push(Si(A,q,O))),Ue)break;A=A.return}0<re.length&&(R=new U(R,ee,null,n,H),G.push({event:R,listeners:re}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",R&&n!==Hs&&(ee=n.relatedTarget||n.fromElement)&&(Xl(ee)||ee[Gl]))break e;if((U||R)&&(R=H.window===H?H:(R=H.ownerDocument)?R.defaultView||R.parentWindow:window,U?(ee=n.relatedTarget||n.toElement,U=T,ee=ee?Xl(ee):null,ee!==null&&(Ue=d(ee),re=ee.tag,ee!==Ue||re!==5&&re!==27&&re!==6)&&(ee=null)):(U=null,ee=T),U!==ee)){if(re=cf,q="onMouseLeave",_="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(re=ff,q="onPointerLeave",_="onPointerEnter",A="pointer"),Ue=U==null?R:Ya(U),O=ee==null?R:Ya(ee),R=new re(q,A+"leave",U,n,H),R.target=Ue,R.relatedTarget=O,q=null,Xl(H)===T&&(re=new re(_,A+"enter",ee,n,H),re.target=O,re.relatedTarget=Ue,q=re),Ue=q,U&&ee)t:{for(re=bv,_=U,A=ee,O=0,q=_;q;q=re(q))O++;q=0;for(var ue=A;ue;ue=re(ue))q++;for(;0<O-q;)_=re(_),O--;for(;0<q-O;)A=re(A),q--;for(;O--;){if(_===A||A!==null&&_===A.alternate){re=_;break t}_=re(_),A=re(A)}re=null}else re=null;U!==null&&nm(G,R,U,re,!1),ee!==null&&Ue!==null&&nm(G,Ue,ee,re,!0)}}e:{if(R=T?Ya(T):window,U=R.nodeName&&R.nodeName.toLowerCase(),U==="select"||U==="input"&&R.type==="file")var Ae=xf;else if(vf(R))if(bf)Ae=T0;else{Ae=_0;var le=C0}else U=R.nodeName,!U||U.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?T&&Ls(T.elementType)&&(Ae=xf):Ae=O0;if(Ae&&(Ae=Ae(e,T))){yf(G,Ae,n,H);break e}le&&le(e,R,T),e==="focusout"&&T&&R.type==="number"&&T.memoizedProps.value!=null&&Bs(R,"number",R.value)}switch(le=T?Ya(T):window,e){case"focusin":(vf(le)||le.contentEditable==="true")&&(Il=le,Fs=T,Wa=null);break;case"focusout":Wa=Fs=Il=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,Cf(G,n,H);break;case"selectionchange":if(R0)break;case"keydown":case"keyup":Cf(G,n,H)}var pe;if(Zs)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Fl?gf(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(df&&n.locale!=="ko"&&(Fl||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Fl&&(pe=sf()):(Vn=H,Gs="value"in Vn?Vn.value:Vn.textContent,Fl=!0)),le=Zu(T,Ne),0<le.length&&(Ne=new of(Ne,e,null,n,H),G.push({event:Ne,listeners:le}),pe?Ne.data=pe:(pe=pf(n),pe!==null&&(Ne.data=pe)))),(pe=N0?w0(e,n):j0(e,n))&&(Ne=Zu(T,"onBeforeInput"),0<Ne.length&&(le=new of("onBeforeInput","beforeinput",null,n,H),G.push({event:le,listeners:Ne}),le.data=pe)),pv(G,e,T,n,H)}em(G,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zu(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Ga(e,n),s!=null&&l.unshift(Si(e,s,c)),s=Ga(e,t),s!=null&&l.push(Si(e,s,c))),e.tag===3)return l;e=e.return}return[]}function bv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,n,l,s){for(var c=t._reactName,f=[];n!==null&&n!==l;){var p=n,E=p.alternate,T=p.stateNode;if(p=p.tag,E!==null&&E===l)break;p!==5&&p!==26&&p!==27||T===null||(E=T,s?(T=Ga(n,c),T!=null&&f.unshift(Si(n,T,E))):s||(T=Ga(n,c),T!=null&&f.push(Si(n,T,E)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Sv=/\r\n?/g,Ev=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(Sv,`
|
|
49
|
-
`).replace(Ev,"")}function am(e,t){return t=lm(t),lm(e)===t}function ze(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Jl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Jl(e,""+l);break;case"className":Fi(e,"class",l);break;case"tabIndex":Fi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fi(e,n,l);break;case"style":lf(e,l,c);break;case"data":if(t!=="object"){Fi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",s.name,s,null),ze(e,t,"formEncType",s.formEncType,s,null),ze(e,t,"formMethod",s.formMethod,s,null),ze(e,t,"formTarget",s.formTarget,s,null)):(ze(e,t,"encType",s.encType,s,null),ze(e,t,"method",s.method,s,null),ze(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Pi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":be("beforetoggle",e),be("toggle",e),Wi(e,"popover",l);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Wi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Wp.get(n)||n,Wi(e,n,l))}}function Nc(e,t,n,l,s,c){switch(n){case"style":lf(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Jl(e,l):(typeof l=="number"||typeof l=="bigint")&&Jl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[Nt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Wi(e,n,l)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,c,f,n,null)}}s&&ze(e,t,"srcSet",n.srcSet,n,null),l&&ze(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var p=c=f=s=null,E=null,T=null;for(l in n)if(n.hasOwnProperty(l)){var H=n[l];if(H!=null)switch(l){case"name":s=H;break;case"type":f=H;break;case"checked":E=H;break;case"defaultChecked":T=H;break;case"value":c=H;break;case"defaultValue":p=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:ze(e,t,l,H,n,null)}}Po(e,c,p,E,T,f,s,!1);return;case"select":be("invalid",e),l=f=c=null;for(s in n)if(n.hasOwnProperty(s)&&(p=n[s],p!=null))switch(s){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:ze(e,t,s,p,n,null)}t=c,n=f,e.multiple=!!l,t!=null?Zl(e,!!l,t,!1):n!=null&&Zl(e,!!l,n,!0);return;case"textarea":be("invalid",e),c=s=l=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":s=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:ze(e,t,f,p,n,null)}tf(e,l,s,c);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,E,l,n,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<bi.length;l++)be(bi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,T,l,n,null)}return;default:if(Ls(t)){for(H in n)n.hasOwnProperty(H)&&(l=n[H],l!==void 0&&Nc(e,t,H,l,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(l=n[p],l!=null&&ze(e,t,p,l,n,null))}function Nv(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,f=null,p=null,E=null,T=null,H=null;for(U in n){var G=n[U];if(n.hasOwnProperty(U)&&G!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":E=G;default:l.hasOwnProperty(U)||ze(e,t,U,null,l,G)}}for(var R in l){var U=l[R];if(G=n[R],l.hasOwnProperty(R)&&(U!=null||G!=null))switch(R){case"type":c=U;break;case"name":s=U;break;case"checked":T=U;break;case"defaultChecked":H=U;break;case"value":f=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==G&&ze(e,t,R,U,l,G)}}Us(e,f,p,E,T,H,c,s);return;case"select":U=f=p=R=null;for(c in n)if(E=n[c],n.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":U=E;default:l.hasOwnProperty(c)||ze(e,t,c,null,l,E)}for(s in l)if(c=l[s],E=n[s],l.hasOwnProperty(s)&&(c!=null||E!=null))switch(s){case"value":R=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==E&&ze(e,t,s,c,l,E)}t=p,n=f,l=U,R!=null?Zl(e,!!n,R,!1):!!l!=!!n&&(t!=null?Zl(e,!!n,t,!0):Zl(e,!!n,n?[]:"",!1));return;case"textarea":U=R=null;for(p in n)if(s=n[p],n.hasOwnProperty(p)&&s!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:ze(e,t,p,null,l,s)}for(f in l)if(s=l[f],c=n[f],l.hasOwnProperty(f)&&(s!=null||c!=null))switch(f){case"value":R=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&ze(e,t,f,s,l,c)}ef(e,R,U);return;case"option":for(var ee in n)if(R=n[ee],n.hasOwnProperty(ee)&&R!=null&&!l.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:ze(e,t,ee,null,l,R)}for(E in l)if(R=l[E],U=n[E],l.hasOwnProperty(E)&&R!==U&&(R!=null||U!=null))switch(E){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:ze(e,t,E,R,l,U)}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 re in n)R=n[re],n.hasOwnProperty(re)&&R!=null&&!l.hasOwnProperty(re)&&ze(e,t,re,null,l,R);for(T in l)if(R=l[T],U=n[T],l.hasOwnProperty(T)&&R!==U&&(R!=null||U!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:ze(e,t,T,R,l,U)}return;default:if(Ls(t)){for(var Ue in n)R=n[Ue],n.hasOwnProperty(Ue)&&R!==void 0&&!l.hasOwnProperty(Ue)&&Nc(e,t,Ue,void 0,l,R);for(H in l)R=l[H],U=n[H],!l.hasOwnProperty(H)||R===U||R===void 0&&U===void 0||Nc(e,t,H,R,l,U);return}}for(var _ in n)R=n[_],n.hasOwnProperty(_)&&R!=null&&!l.hasOwnProperty(_)&&ze(e,t,_,null,l,R);for(G in l)R=l[G],U=n[G],!l.hasOwnProperty(G)||R===U||R==null&&U==null||ze(e,t,G,R,l,U)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,f=s.initiatorType,p=s.duration;if(c&&p&&im(f)){for(f=0,p=s.responseEnd,l+=1;l<n.length;l++){var E=n[l],T=E.startTime;if(T>p)break;var H=E.transferSize,G=E.initiatorType;H&&im(G)&&(E=E.responseEnd,f+=H*(E<p?1:(p-T)/(E-T)))}if(--l,t+=8*(c+f)/(s.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 wc=null,jc=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function um(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 sm(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 Ac(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 Dc=null;function jv(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,Av=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,Dv=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(Cv)}:rm;function Cv(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function om(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),ja(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ei(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ei(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[qa]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ei(e.ownerDocument.body);n=s}while(n);ja(t)}function fm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Cc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Cc(n),Rs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function _v(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function Ov(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function _c(e){return e.data==="$?"||e.data==="$~"}function Oc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Pt(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 Tc=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function gm(e,t,n){switch(t=Ju(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rs(e)}var en=new Map,pm=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=Z.d;Z.d={f:Mv,r:Rv,D:zv,C:Uv,L:Bv,m:Lv,X:kv,S:Hv,M:qv};function Mv(){var e=kn.f(),t=qu();return e||t}function Rv(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Rd(t):kn.r(e)}var Ea=typeof document>"u"?null:document;function vm(e,t,n){var l=Ea;if(l&&typeof t=="string"&&t){var s=Kt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),pm.has(s)||(pm.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),ot(t,"link",e),lt(t),l.head.appendChild(t)))}}function zv(e){kn.D(e),vm("dns-prefetch",e,null)}function Uv(e,t){kn.C(e,t),vm("preconnect",e,t)}function Bv(e,t,n){kn.L(e,t,n);var l=Ea;if(l&&e&&t){var s='link[rel="preload"][as="'+Kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Kt(n.imageSizes)+'"]')):s+='[href="'+Kt(e)+'"]';var c=s;switch(t){case"style":c=Na(e);break;case"script":c=wa(e)}en.has(c)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),en.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Ni(c))||t==="script"&&l.querySelector(wi(c))||(t=l.createElement("link"),ot(t,"link",e),lt(t),l.head.appendChild(t)))}}function Lv(e,t){kn.m(e,t);var n=Ea;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Kt(l)+'"][href="'+Kt(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wa(e)}if(!en.has(c)&&(e=y({rel:"modulepreload",href:e},t),en.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wi(c)))return}l=n.createElement("link"),ot(l,"link",e),lt(l),n.head.appendChild(l)}}}function Hv(e,t,n){kn.S(e,t,n);var l=Ea;if(l&&e){var s=Ql(l).hoistableStyles,c=Na(e);t=t||"default";var f=s.get(c);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(Ni(c)))p.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=en.get(c))&&Mc(e,n);var E=f=l.createElement("link");lt(E),ot(E,"link",e),E._p=new Promise(function(T,H){E.onload=T,E.onerror=H}),E.addEventListener("load",function(){p.loading|=1}),E.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Wu(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},s.set(c,f)}}}function kv(e,t){kn.X(e,t);var n=Ea;if(n&&e){var l=Ql(n).hoistableScripts,s=wa(e),c=l.get(s);c||(c=n.querySelector(wi(s)),c||(e=y({src:e,async:!0},t),(t=en.get(s))&&Rc(e,t),c=n.createElement("script"),lt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function qv(e,t){kn.M(e,t);var n=Ea;if(n&&e){var l=Ql(n).hoistableScripts,s=wa(e),c=l.get(s);c||(c=n.querySelector(wi(s)),c||(e=y({src:e,async:!0,type:"module"},t),(t=en.get(s))&&Rc(e,t),c=n.createElement("script"),lt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function ym(e,t,n,l){var s=(s=ne.current)?$u(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Na(n.href),n=Ql(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Na(n.href);var c=Ql(s).hoistableStyles,f=c.get(e);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=s.querySelector(Ni(e)))&&!c._p&&(f.instance=c,f.state.loading=5),en.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},en.set(e,n),c||Yv(s,e,n,f.state))),t&&l===null)throw Error(r(528,""));return f}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(n),n=Ql(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Na(e){return'href="'+Kt(e)+'"'}function Ni(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Yv(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ot(t,"link",n),lt(t),e.head.appendChild(t))}function wa(e){return'[src="'+Kt(e)+'"]'}function wi(e){return"script[async]"+e}function bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Kt(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ot(l,"style",s),Wu(l,n.precedence,e),t.instance=l;case"stylesheet":s=Na(n.href);var c=e.querySelector(Ni(s));if(c)return t.state.loading|=4,t.instance=c,lt(c),c;l=xm(n),(s=en.get(s))&&Mc(l,s),c=(e.ownerDocument||e).createElement("link"),lt(c);var f=c;return f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),ot(c,"link",l),t.state.loading|=4,Wu(c,n.precedence,e),t.instance=c;case"script":return c=wa(n.src),(s=e.querySelector(wi(c)))?(t.instance=s,lt(s),s):(l=n,(s=en.get(c))&&(l=y({},n),Rc(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),lt(s),ot(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Wu(l,n.precedence,e));return t.instance}function Wu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)c=p;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fu=null;function Sm(e,t,n){if(Fu===null){var l=new Map,s=Fu=new Map;s.set(n,l)}else s=Fu,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[qa]||c[ut]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(c):l.set(f,[c])}}return l}function Em(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Gv(e,t,n){if(n===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 Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Xv(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Na(l.href),c=t.querySelector(Ni(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Iu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,lt(c);return}c=t.ownerDocument||t,l=xm(l),(s=en.get(s))&&Mc(l,s),c=c.createElement("link"),lt(c);var f=c;f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),ot(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Iu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var zc=0;function Vv(e,t){return e.stylesheets&&e.count===0&&es(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&es(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&zc===0&&(zc=62500*wv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&es(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>zc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pu=null;function es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pu=new Map,t.forEach(Qv,e),Pu=null,Iu.call(e))}function Qv(e,t){if(!(t.state.loading&4)){var n=Pu.get(e);if(n)var l=n.get(null);else{n=new Map,Pu.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var f=s[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}s=t.instance,f=s.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,s),n.set(f,s),this.count++,l=Iu.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var ji={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Kv(e,t,n,l,s,c,f,p,E){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=Et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.hiddenUpdates=Et(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function wm(e,t,n,l,s,c,f,p,E,T,H,G){return e=new Kv(e,t,n,f,E,T,H,G,p),t=1,c===!0&&(t|=24),c=zt(3,null,null,t),e.current=c,c.stateNode=e,t=hr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},vr(c),e}function jm(e){return e?(e=ta,e):ta}function Am(e,t,n,l,s,c){s=jm(s),l.context===null?l.context=s:l.pendingContext=s,l=Wn(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Fn(e,l,t),n!==null&&(_t(n,e,t),li(n,e,t))}function Dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uc(e,t){Dm(e,t),(e=e.alternate)&&Dm(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=jl(e,67108864);t!==null&&_t(t,e,67108864),Uc(e,67108864)}}function _m(e){if(e.tag===13||e.tag===31){var t=kt();t=bn(t);var n=jl(e,t);n!==null&&_t(n,e,t),Uc(e,t)}}var ts=!0;function Zv(e,t,n,l){var s=z.T;z.T=null;var c=Z.p;try{Z.p=2,Bc(e,t,n,l)}finally{Z.p=c,z.T=s}}function Jv(e,t,n,l){var s=z.T;z.T=null;var c=Z.p;try{Z.p=8,Bc(e,t,n,l)}finally{Z.p=c,z.T=s}}function Bc(e,t,n,l){if(ts){var s=Lc(l);if(s===null)Ec(e,t,l,ns,n),Tm(e,l);else if(Wv(s,e,t,n,l))l.stopPropagation();else if(Tm(e,l),t&4&&-1<$v.indexOf(e)){for(;s!==null;){var c=Vl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Ve(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var E=1<<31-ht(f);p.entanglements[1]|=E,f&=~E}gn(c),(Ce&6)===0&&(Hu=dt()+500,xi(0))}}break;case 31:case 13:p=jl(c,2),p!==null&&_t(p,c,2),qu(),Uc(c,2)}if(c=Lc(l),c===null&&Ec(e,t,l,ns,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else Ec(e,t,l,null,n)}}function Lc(e){return e=ks(e),Hc(e)}var ns=null;function Hc(e){if(ns=null,e=Xl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ns=e,null}function Om(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(_s()){case Zi:return 2;case xn:return 8;case ln:case xl:return 32;case ka:return 268435456;default:return 32}default:return 32}}var kc=!1,rl=null,cl=null,ol=null,Ai=new Map,Di=new Map,fl=[],$v="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 Tm(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":Ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Di.delete(t.pointerId)}}function Ci(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Vl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Wv(e,t,n,l,s){switch(t){case"focusin":return rl=Ci(rl,e,t,n,l,s),!0;case"dragenter":return cl=Ci(cl,e,t,n,l,s),!0;case"mouseover":return ol=Ci(ol,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return Ai.set(c,Ci(Ai.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,Di.set(c,Ci(Di.get(c)||null,e,t,n,l,s)),!0}return!1}function Mm(e){var t=Xl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Xn(e.priority,function(){_m(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Xn(e.priority,function(){_m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Hs=l,n.target.dispatchEvent(l),Hs=null}else return t=Vl(n),t!==null&&Cm(t),e.blockedOn=n,!1;t.shift()}return!0}function Rm(e,t,n){ls(e)&&n.delete(t)}function Fv(){kc=!1,rl!==null&&ls(rl)&&(rl=null),cl!==null&&ls(cl)&&(cl=null),ol!==null&&ls(ol)&&(ol=null),Ai.forEach(Rm),Di.forEach(Rm)}function as(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Fv)))}var is=null;function zm(e){is!==e&&(is=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){is===e&&(is=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Hc(l||n)===null)continue;break}var c=Vl(n);c!==null&&(e.splice(t,3),t-=3,Lr(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function ja(e){function t(E){return as(E,e)}rl!==null&&as(rl,e),cl!==null&&as(cl,e),ol!==null&&as(ol,e),Ai.forEach(t),Di.forEach(t);for(var n=0;n<fl.length;n++){var l=fl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<fl.length&&(n=fl[0],n.blockedOn===null);)Mm(n),n.blockedOn===null&&fl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],f=s[Nt]||null;if(typeof c=="function")f||zm(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(s=c,f=c[Nt]||null)p=f.formAction;else if(Hc(s)!==null)continue}else p=f.action;typeof p=="function"?n[l+1]=p:(n.splice(l,3),l-=3),zm(n)}}}function Um(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function qc(e){this._internalRoot=e}us.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=kt();Am(n,l,e,t,null,null)},us.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Am(e.current,2,null,e,null,null),qu(),t[Gl]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=un();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fl.length&&t!==0&&t<fl[n].priority;n++);fl.splice(n,0,e),n===0&&Mm(e)}};var Bm=i.version;if(Bm!=="19.2.7")throw Error(r(527,Bm,"19.2.7"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Iv={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{bl=ss.inject(Iv),pt=ss}catch{}}return Oi.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,l="",s=Xd,c=Vd,f=Qd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=wm(e,1,!1,null,null,n,l,null,s,c,f,Um),e[Gl]=t.current,Sc(e),new qc(t)},Oi.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var l=!1,s="",c=Xd,f=Vd,p=Qd,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=wm(e,1,!0,t,n??null,l,s,E,c,f,p,Um),t.context=jm(null),n=t.current,l=kt(),l=bn(l),s=Wn(l),s.callback=null,Fn(n,s,l),n=l,t.current.lanes=n,Gt(t,n),gn(t),e[Gl]=t.current,Sc(e),new us(t)},Oi.version="19.2.7",Oi}var Km;function ry(){if(Km)return Xc.exports;Km=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Xc.exports=sy(),Xc.exports}var cy=ry();function oy(a){const i=a.getFullYear(),u=String(a.getMonth()+1).padStart(2,"0"),r=String(a.getDate()).padStart(2,"0");return`${i}-${u}-${r}`}function Bg(a,i){const u=[];for(let r=i-1;r>=0;r--)u.push(oy(new Date(a.getTime()-r*24*60*60*1e3)));return u}function fy(a,i){return Math.max(0,Math.floor((i.getTime()-new Date(a).getTime())/(1440*60*1e3)))}function dy(a,i,u,r){const o=Bg(r,u),d=new Map(o.map((v,x)=>[v,x])),m=new Map;for(const v of i){const x=d.get(v.date);if(x===void 0)continue;let g=m.get(v.repo);g||(g=new Array(u).fill(0),m.set(v.repo,g)),g[x]+=v.commits}return a.map(v=>{const x=m.get(v.nameWithOwner)??new Array(u).fill(0);return{repo:v,totalCommits:x.reduce((g,b)=>g+b,0),daysSincePush:fy(v.pushedAt,r),dailyCommits:x}})}function Zm(a,i){return a==="dashboard"?i():[]}function Zc(a){return a==="dashboard"||a==="coach"}function Jm(a,i){const u=[...a];switch(i){case"active":u.sort((r,o)=>o.totalCommits-r.totalCommits);break;case"recent":u.sort((r,o)=>r.daysSincePush-o.daysSincePush);break;case"stale":u.sort((r,o)=>o.daysSincePush-r.daysSincePush);break}return u}const _a=(a,i)=>a!=null&&a.toLowerCase()===i.toLowerCase();function Lg(a,i,u){if(!u)return{awaitingReview:[],toReview:[]};const r=a.filter(o=>o.type==="pr"&&o.repo===i);return{awaitingReview:r.filter(o=>_a(o.author,u)&&!o.isDraft&&o.reviewDecision!=="APPROVED"),toReview:r.filter(o=>(o.reviewers??[]).some(d=>_a(d,u)))}}const $m=["awaitingReview","draft","toReview","myOpenIssues"];function jo(a,i){var d;const u=new Map;if(!i)return u;const r=new Map;for(const m of a){if(m.type!=="pr"||!_a(m.author,i))continue;const v=r.get(m.repo)??new Set;for(const x of m.linkedIssues??[])v.add(x);r.set(m.repo,v)}const o=(m,v)=>{const x=u.get(m)??{awaitingReview:0,draft:0,toReview:0,myOpenIssues:0};x[v]+=1,u.set(m,x)};for(const m of a)m.type==="pr"?(_a(m.author,i)&&(m.isDraft?o(m.repo,"draft"):m.reviewDecision!=="APPROVED"&&o(m.repo,"awaitingReview")),(m.reviewers??[]).some(v=>_a(v,i))&&o(m.repo,"toReview")):_a(m.author,i)&&!((d=r.get(m.repo))!=null&&d.has(m.number))&&o(m.repo,"myOpenIssues");return u}const Ao={query:"",tagIds:[],bookmarkedOnly:!1,includeHidden:!1,minCommits:0,pushedWithinDays:null,pushedOverDays:null,work:null},hy=[{id:"hot",label:"🔥 活発 × 30日以内",title:"期間内に10コミット以上、かつ最終pushが30日以内",patch:{minCommits:10,pushedWithinDays:30,pushedOverDays:null}},{id:"recent",label:"⚡ 直近7日",title:"最終pushが7日以内",patch:{minCommits:1,pushedWithinDays:7,pushedOverDays:null}},{id:"dormant",label:"💤 30日以上放置",title:"最終pushが30日以上前(忘れているもの)",patch:{minCommits:0,pushedWithinDays:null,pushedOverDays:30}}];function Hg(a,i){return Object.keys(i.patch).every(u=>JSON.stringify(a[u])===JSON.stringify(i.patch[u]))}function my(a,i){const u=Object.keys(i.patch);if(Hg(a,i)){const r=Object.fromEntries(u.map(o=>[o,Ao[o]]));return{...a,...r}}return{...a,...i.patch}}function gy(a,i,u){var m;const r=i.trim().toLowerCase();if(r==="")return!0;const{repo:o}=a;return[o.nameWithOwner,o.description??"",o.primaryLanguage??"",((m=o.lastCommits[0])==null?void 0:m.message)??"",...u].join(`
|
|
50
|
-
`).toLowerCase().includes(r)}function py(a,i){return(a.tags.byRepo[i]??[]).map(r=>{var o;return((o=a.tags.defs.find(d=>d.id===r))==null?void 0:o.label)??""})}function vy(a,i,u,r){const o=i.work&&r?jo(r.issues,r.login):null;return a.filter(d=>{var v;const m=d.repo.nameWithOwner;if(o&&i.work&&!(((v=o.get(m))==null?void 0:v[i.work])??0)||!i.includeHidden&&((u==null?void 0:u.hidden.includes(m))??!1)||i.bookmarkedOnly&&!((u==null?void 0:u.bookmarks.includes(m))??!1)||d.totalCommits<i.minCommits||i.pushedWithinDays!=null&&d.daysSincePush>i.pushedWithinDays||i.pushedOverDays!=null&&d.daysSincePush<i.pushedOverDays)return!1;if(i.tagIds.length>0){const x=(u==null?void 0:u.tags.byRepo[m])??[];if(!i.tagIds.some(g=>x.includes(g)))return!1}if(i.query.trim()!==""){const x=u?py(u,m):[];if(!gy(d,i.query,x))return!1}return!0})}function yy(a){return a.query.trim()!==""||a.tagIds.length>0||a.bookmarkedOnly||a.minCommits>0||a.pushedWithinDays!==null||a.pushedOverDays!==null||a.work!==null}const xy=["single","multi"];function by(a,i,u){const r=new Set(u==="multi"?a:[]);return a.has(i)?r.delete(i):r.add(i),r}function Sy(a,i){return new Set(i!=null&&a.has(i)?[i]:[])}const Ey="github-reporadar-snapshot",ps="snapshot",Ny="hosted",wy=1;function jy(){return new Promise((a,i)=>{const u=indexedDB.open(Ey,wy);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(ps)||r.createObjectStore(ps)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}async function Ay(){try{const a=await jy();await new Promise((i,u)=>{const r=a.transaction(ps,"readwrite");r.oncomplete=()=>i(),r.onabort=()=>u(r.error??new Error("indexedDB transaction aborted")),r.objectStore(ps).delete(Ny)}),a.close()}catch{}}let kg=0;const fo=new Set;function Dy(){kg+=1;for(const a of fo)a()}function Cy(a){return fo.add(a),()=>{fo.delete(a)}}function Wm(){return kg}function Yn(){return S.useSyncExternalStore(Cy,Wm,Wm)}function qg(a,i){return"no-local-cache"}async function _y(){const[a,i,u]=await Promise.all(["repos","activity","meta"].map(async r=>{const o=await fetch(`/data/${r}.json`);if(!o.ok)throw new Error(`/data/${r}.json が読めません (${o.status})`);return o.json()}));return{repos:a,activity:i,meta:u}}function Oy(){const[a,i]=S.useState({status:"loading"}),u=Yn();return S.useEffect(()=>{let r=!1;return _y().then(o=>{r||i({status:"ready",data:o,revalidating:!1})}).catch(o=>{r||i(d=>d.status==="ready"?d:{status:"error",kind:qg(),message:Ty(o)})}),()=>{r=!0}},[u]),a}function Ty(a){return a instanceof Error?a.message:String(a)}function pn(a,i,u){const[r,o]=S.useState(()=>{if(typeof window>"u")return i;const m=window.localStorage.getItem(a);return m===null||u&&!u.includes(m)?i:m}),d=S.useCallback(m=>{o(m),window.localStorage.setItem(a,m)},[a]);return[r,d]}function My(a){const[i,u]=S.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(a).matches);return S.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const r=window.matchMedia(a),o=()=>u(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[a]),i}const Yg=1,Hl={mode:"always",times:["11:00","15:00","18:30"],fromHour:11,toHour:19,weekdays:[1,2,3,4,5]},Ry=/^([01]\d|2[0-3]):([0-5]\d)$/;function hs(a){const i=Ry.exec(a.trim());return i?Number(i[1])*60+Number(i[2]):null}function Do(a){const i=a.map(u=>u.trim()).filter(u=>hs(u)!==null);return[...new Set(i)].sort((u,r)=>hs(u)-hs(r))}const Jc=a=>a.getHours()*60+a.getMinutes();function zy(a,i){if(a.weekdays.length>0&&!a.weekdays.includes(i.getDay()))return!0;if(a.fromHour===a.toHour)return!1;const u=i.getHours();return u<a.fromHour||u>=a.toHour}function Uy(a,i,u){if(zy(a,i))return!1;if(a.mode==="always")return!0;if(!u)return!1;const r=new Date(u);if(Number.isNaN(r.getTime()))return!1;const o=Do(a.times).map(m=>hs(m));return o.length===0?!1:r.toDateString()===i.toDateString()?o.some(m=>m>Jc(r)&&m<=Jc(i)):o.some(m=>m<=Jc(i))}function By(a){const i=a.weekdays.length===0?"毎日":a.weekdays.length===5&&a.weekdays.every(o=>o>=1&&o<=5)?"平日":"選んだ曜日",u=a.fromHour===a.toHour?"終日":`${a.fromHour}時から${a.toHour}時`,r=a.mode==="always"?"届いたとき":Do(a.times).join(" / ");return`${i}の${u}、${r}に知らせます`}function Ly(a,i){return{meta:{version:Yg,updatedAt:a,deviceId:i},tags:{defs:[],byRepo:{}},bookmarks:[],hidden:[],boards:[],notes:{},log:[],inboxReadAt:null,inboxReadIds:[],wikiChecked:{},wikiMuted:[],coachThreads:[],notify:{...Hl},lastNotifiedAt:null}}const Gg=["github-reporadar_memo_","reporadar_memo_"];function Hy(a,i){const u={...i};let r=0;for(const[o,d]of Object.entries(a)){const m=Gg.find(x=>o.startsWith(x));if(!m)continue;const v=o.slice(m.length);!(v in u)&&d.trim()!==""&&(u[v]=d,r++)}return{notes:u,migrated:r}}function ky(a){return Gg.some(i=>a.startsWith(i))}function Oa(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function Ti(a){return Array.isArray(a)?a.filter(i=>typeof i=="string"):[]}function Fm(a){if(!Oa(a))return{};const i={};for(const[u,r]of Object.entries(a))typeof r=="string"&&(i[u]=r);return i}function qy(a){if(!Oa(a))return{defs:[],byRepo:{}};const i=Array.isArray(a.defs)?a.defs.filter(Oa):[],u={};if(Oa(a.byRepo))for(const[r,o]of Object.entries(a.byRepo))u[r]=Ti(o);return{defs:i,byRepo:u}}function Yy(a,i,u){if(!Oa(a))return Ly(i,u);const r=Oa(a.meta)?a.meta:{};return{meta:{version:typeof r.version=="number"?r.version:Yg,updatedAt:typeof r.updatedAt=="string"?r.updatedAt:i,deviceId:typeof r.deviceId=="string"?r.deviceId:u},tags:qy(a.tags),bookmarks:Ti(a.bookmarks),hidden:Ti(a.hidden),boards:Array.isArray(a.boards)?a.boards:[],notes:Fm(a.notes),log:Array.isArray(a.log)?a.log:[],inboxReadAt:typeof a.inboxReadAt=="string"?a.inboxReadAt:null,inboxReadIds:Ti(a.inboxReadIds),wikiChecked:Fm(a.wikiChecked),wikiMuted:Ti(a.wikiMuted),coachThreads:Array.isArray(a.coachThreads)?a.coachThreads:[],notify:Gy(a.notify),lastNotifiedAt:typeof a.lastNotifiedAt=="string"?a.lastNotifiedAt:null}}function Gy(a){if(!a||typeof a!="object")return{...Hl};const i=a,u=(r,o)=>typeof r=="number"&&Number.isInteger(r)&&r>=0&&r<=24?r:o;return{mode:i.mode==="digest"?"digest":"always",times:Array.isArray(i.times)?Do(i.times.filter(r=>typeof r=="string")):[...Hl.times],fromHour:u(i.fromHour,Hl.fromHour),toHour:u(i.toHour,Hl.toHour),weekdays:Array.isArray(i.weekdays)?[...new Set(i.weekdays.filter(r=>typeof r=="number"&&r>=0&&r<=6))].sort():[...Hl.weekdays]}}const Im="github-reporadar_device_id",Xy=700;function Vy(){if(typeof window>"u")return"ssr";let a=window.localStorage.getItem(Im);return a||(a=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`dev-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`,window.localStorage.setItem(Im,a)),a}function Qy(){const a={};if(typeof window>"u")return a;const i=window.localStorage;for(let u=0;u<i.length;u++){const r=i.key(u);if(r&&ky(r)){const o=i.getItem(r);o!==null&&(a[r]=o)}}return a}function Ky(a,i,u){const[r,o]=S.useState(null),[d,m]=S.useState("idle"),[v,x]=S.useState(null),g=S.useRef(null),b=S.useRef(null),y=S.useRef([]),N=S.useRef(!1),w=S.useRef(!1),M=S.useRef(u);M.current=u;const C=S.useCallback(async()=>{var Y;if(!(!g.current||N.current||w.current)){w.current=!0,m("saving");try{let X=null;for(;g.current&&g.current!==X&&!N.current;)X=g.current,await a.save(X);m("saved")}catch(X){m("error"),(Y=M.current)==null||Y.call(M,X)}finally{w.current=!1}}},[a]),D=S.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null,C())},[C]),k=S.useCallback(()=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{b.current=null,C()},Xy)},[C]);S.useEffect(()=>{let Y=!1;return g.current=null,N.current=!1,x(null),m("idle"),(async()=>{const X=Vy();let B=null;try{B=await a.load()}catch(fe){Y||x(fe instanceof Error?fe.message:String(fe)),N.current=!0}let Q=Yy(B,i(),X),V=!1;const{notes:P,migrated:he}=Hy(Qy(),Q.notes);if(he>0&&(Q={...Q,notes:P},V=!0),y.current.length>0){for(const fe of y.current)fe(Q);y.current=[],Q.meta={...Q.meta,updatedAt:i()},V=!0}Y||(g.current=Q,o(Q),V&&!N.current&&C())})(),()=>{Y=!0}},[a,i,C]),S.useEffect(()=>{const Y=()=>D(),X=()=>{document.visibilityState==="hidden"&&D()};return window.addEventListener("pagehide",Y),document.addEventListener("visibilitychange",X),()=>{window.removeEventListener("pagehide",Y),document.removeEventListener("visibilitychange",X),D()}},[D]);const K=S.useCallback(Y=>{if(g.current===null){y.current.push(Y);return}const X=structuredClone(g.current);Y(X),X.meta={...X.meta,updatedAt:i()},g.current=X,o(X),N.current||k()},[i,k]);return{data:r,mutate:K,saveStatus:d,loadError:v}}const Zy="github-reporadar",za="userdata",Xg="current",Jy=1;function Pm(){return new Promise((a,i)=>{const u=indexedDB.open(Zy,Jy);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(za)||r.createObjectStore(za)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}function $y(a){return new Promise((i,u)=>{const o=a.transaction(za,"readonly").objectStore(za).get(Xg);o.onsuccess=()=>i(o.result),o.onerror=()=>u(o.error??new Error("indexedDB read failed"))})}function Wy(a,i){return new Promise((u,r)=>{const o=a.transaction(za,"readwrite");o.oncomplete=()=>u(),o.onabort=()=>r(o.error??new Error("indexedDB transaction aborted")),o.onerror=()=>r(o.error??new Error("indexedDB transaction failed")),o.objectStore(za).put(i,Xg)})}function Fy(){return{name:"indexeddb",async load(){const a=await Pm();try{return await $y(a)??null}finally{a.close()}},async save(a){const i=await Pm();try{await Wy(i,a)}finally{i.close()}}}}const eg="github-reporadar.json";function Iy(){return typeof window<"u"&&typeof window.showDirectoryPicker=="function"}function $c(a){return{name:"filesystem",async load(){let i;try{i=await a.getFileHandle(eg)}catch(o){if(o instanceof DOMException&&o.name==="NotFoundError")return null;throw o}const r=await(await i.getFile()).text();return r.trim()===""?null:JSON.parse(r)},async save(i){const r=await(await a.getFileHandle(eg,{create:!0})).createWritable();try{await r.write(JSON.stringify(i,null,2))}finally{await r.close()}}}}const Py="github-reporadar-handles",vl="handles",Co="syncDir",ex=1;function _o(){return new Promise((a,i)=>{const u=indexedDB.open(Py,ex);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(vl)||r.createObjectStore(vl)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}async function tx(a){const i=await _o();try{await new Promise((u,r)=>{const o=i.transaction(vl,"readwrite");o.oncomplete=()=>u(),o.onabort=()=>r(o.error??new Error("save handle aborted")),o.onerror=()=>r(o.error??new Error("save handle failed")),o.objectStore(vl).put(a,Co)})}finally{i.close()}}async function tg(){const a=await _o();try{return await new Promise((u,r)=>{const d=a.transaction(vl,"readonly").objectStore(vl).get(Co);d.onsuccess=()=>u(d.result),d.onerror=()=>r(d.error??new Error("load handle failed"))})??null}finally{a.close()}}async function nx(){const a=await _o();try{await new Promise((i,u)=>{const r=a.transaction(vl,"readwrite");r.oncomplete=()=>i(),r.onabort=()=>u(r.error??new Error("clear handle aborted")),r.onerror=()=>u(r.error??new Error("clear handle failed")),r.objectStore(vl).delete(Co)})}finally{a.close()}}function lx(){const a=S.useMemo(()=>Fy(),[]),[i,u]=S.useState(null),[r,o]=S.useState("indexeddb"),[d,m]=S.useState(null),[v,x]=S.useState(!1),[g,b]=S.useState(null),y=Iy(),N=S.useRef(r);N.current=r;const w=S.useRef(i);w.current=i;const M=S.useMemo(()=>r==="filesystem"&&i?$c(i):a,[r,i,a]);S.useEffect(()=>{let Y=!1;return(async()=>{var X;try{const B=await tg();if(!B||Y)return;const Q=await((X=B.queryPermission)==null?void 0:X.call(B,{mode:"readwrite"}))??"prompt";if(Y)return;Q==="granted"?(u(B),o("filesystem"),m(B.name)):(m(B.name),x(!0))}catch(B){Y||b(B instanceof Error?B.message:String(B))}})(),()=>{Y=!0}},[]);const C=S.useCallback(async Y=>{var Q,V;if(N.current!=="filesystem")return;const X=Y instanceof DOMException?Y.name:"";let B="granted";try{B=w.current&&await((V=(Q=w.current).queryPermission)==null?void 0:V.call(Q,{mode:"readwrite"}))||"prompt"}catch{B="prompt"}X==="NotAllowedError"||B!=="granted"?(x(!0),b("同期フォルダへの書き込み権限が切れました。再接続してください")):b(X==="NotFoundError"?"同期フォルダが見つかりません(削除/移動された可能性)。切断でローカル保存に戻せます":Y instanceof Error?Y.message:String(Y))},[]),D=S.useCallback(async Y=>{if(b(null),!window.showDirectoryPicker){b("このブラウザは同期フォルダ(File System Access)に対応していません");return}let X;try{X=await window.showDirectoryPicker({id:"github-reporadar",mode:"readwrite"})}catch(B){if(B instanceof DOMException&&B.name==="AbortError")return;b(B instanceof Error?B.message:String(B));return}try{const B=$c(X);await B.load()==null&&Y!=null&&await B.save(Y),await tx(X),u(X),o("filesystem"),m(X.name),x(!1)}catch(B){b(B instanceof Error?B.message:String(B))}},[]),k=S.useCallback(async Y=>{var Q;b(null);const X=await tg();if(!X){x(!1);return}let B="denied";try{B=await((Q=X.requestPermission)==null?void 0:Q.call(X,{mode:"readwrite"}))??"denied"}catch{B="denied"}if(B!=="granted"){b("フォルダへのアクセスが許可されませんでした");return}if(N.current==="filesystem"&&Y!=null){try{await $c(X).save(Y)}catch(V){b(V instanceof Error?V.message:String(V));return}x(!1)}else u(X),o("filesystem"),m(X.name),x(!1)},[]),K=S.useCallback(async Y=>{if(Y!=null)try{await a.save(Y)}catch{}await nx(),u(null),o("indexeddb"),m(null),x(!1),b(null)},[a]);return{store:M,kind:r,dirName:d,needsReconnect:v,supported:y,error:g,onSaveError:C,connectFolder:D,reconnect:k,disconnect:K}}const Vg=S.createContext(null);function ax({children:a}){const i=lx(),u=S.useMemo(()=>()=>new Date().toISOString(),[]),r=Ky(i.store,u,i.onSaveError),o={...r,storage:{kind:i.kind,dirName:i.dirName,needsReconnect:i.needsReconnect,supported:i.supported,error:i.error},connectFolder:()=>i.connectFolder(r.data),reconnect:()=>i.reconnect(r.data),disconnect:()=>i.disconnect(r.data)};return h.jsx(Vg.Provider,{value:o,children:a})}function yt(){const a=S.useContext(Vg);if(!a)throw new Error("useUserDataContext must be used within UserDataProvider");return a}function Ui({tag:a,dimmed:i,onRemove:u}){const r=i?void 0:{color:a.color,borderColor:`${a.color}66`,backgroundColor:`${a.color}1f`};return h.jsxs("span",{className:`inline-flex items-center gap-1 rounded-md border px-1.5 py-0.5 text-xs ${i?"border-line text-fg-faint":""}`,style:r,children:[h.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:i?"var(--color-fg-faint)":a.color}}),a.label,u&&h.jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),u()},className:"ml-0.5 opacity-70 hover:opacity-100","aria-label":`${a.label} を外す`,children:"×"})]})}const Wc={awaitingReview:{label:"レビュー待ちの自分のPR",title:"自分が出したPRで、ドラフトでなく、まだ承認されていないもの"},draft:{label:"Draftの自分のPR",title:"自分が出したDraft PR"},toReview:{label:"自分がレビューするPR",title:"レビューを頼まれているPR"},myOpenIssues:{label:"手を付けていない自分のissue",title:"自分が作ったopen issueで、自分のopen PRがまだ閉じる予定になっていないもの"}},ix=[{value:0,label:"活動量: 指定なし"},{value:1,label:"1 commit 以上"},{value:5,label:"5 commits 以上"},{value:10,label:"10 commits 以上"},{value:30,label:"30 commits 以上"}],ms=[{key:"any",label:"最終push: 指定なし",within:null,over:null},{key:"w1",label:"1日以内",within:1,over:null},{key:"w7",label:"7日以内",within:7,over:null},{key:"w30",label:"30日以内",within:30,over:null},{key:"w60",label:"60日以内",within:60,over:null},{key:"w90",label:"90日以内",within:90,over:null},{key:"w180",label:"180日以内",within:180,over:null},{key:"o14",label:"14日以上放置",within:null,over:14},{key:"o30",label:"30日以上放置",within:null,over:30},{key:"o90",label:"90日以上放置",within:null,over:90}];function ux(a){var i;return((i=ms.find(u=>u.within===a.pushedWithinDays&&u.over===a.pushedOverDays))==null?void 0:i.key)??"any"}const ng="rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none";function sx(a){return a.minCommits>0||a.pushedWithinDays!==null||a.pushedOverDays!==null}function rx({filter:a,onChange:i,resultCount:u,workCounts:r}){const{data:o}=yt(),d=(o==null?void 0:o.tags.defs)??[],m=(o==null?void 0:o.hidden.length)??0,[v,x]=S.useState(!1);function g(b){const y=a.tagIds.includes(b);i({...a,tagIds:y?a.tagIds.filter(N=>N!==b):[...a.tagIds,b]})}return h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2.5",children:[h.jsx("input",{value:a.query,onChange:b=>i({...a,query:b.target.value}),placeholder:"キーワード検索(名前・説明・コミット・タグ) ⌘K","data-shortcut":"search","aria-keyshortcuts":"Meta+K Control+K /",onKeyDown:b=>{b.key==="Escape"&&(i({...a,query:""}),b.currentTarget.blur())},className:"min-w-[220px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-1.5 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"button",onClick:()=>i({...a,bookmarkedOnly:!a.bookmarkedOnly}),"aria-pressed":a.bookmarkedOnly,className:`rounded-md border px-2.5 py-1.5 text-sm transition-colors ${a.bookmarkedOnly?"border-amber-500/40 text-amber-400":"border-line text-fg-muted hover:text-fg"}`,children:"★ のみ"}),(m>0||a.includeHidden)&&h.jsxs("button",{type:"button",onClick:()=>i({...a,includeHidden:!a.includeHidden}),"aria-pressed":a.includeHidden,title:"「非表示」にしたrepoも一覧に出す",className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${a.includeHidden?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:["非表示を含める (",m,")"]}),r&&Object.keys(Wc).filter(b=>r[b]>0||a.work===b).map(b=>{const y=a.work===b;return h.jsxs("button",{type:"button",onClick:()=>i({...a,work:y?null:b}),"aria-pressed":y,title:Wc[b].title,className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${y?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:[Wc[b].label," ",h.jsx("span",{className:"font-mono text-xs",children:r[b]})]},b)}),hy.map(b=>{const y=Hg(a,b);return h.jsx("button",{type:"button",onClick:()=>i(my(a,b)),"aria-pressed":y,title:b.title,className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${y?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:b.label},b.id)}),h.jsxs("button",{type:"button",onClick:()=>x(b=>!b),"aria-expanded":v,"aria-controls":"filter-detail",className:`rounded-md border px-2.5 py-1.5 text-sm transition-colors lg:hidden ${sx(a)?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:["絞り込み ",v?"▲":"▼"]}),h.jsxs("div",{id:"filter-detail",className:`${v?"flex":"hidden"} w-full flex-wrap items-center gap-2 lg:flex lg:w-auto`,children:[h.jsx("select",{value:a.minCommits,onChange:b=>i({...a,minCommits:Number(b.target.value)}),"aria-label":"活動量で絞り込む",className:ng,children:ix.map(b=>h.jsx("option",{value:b.value,children:b.label},b.value))}),h.jsx("select",{value:ux(a),onChange:b=>{const y=ms.find(N=>N.key===b.target.value)??ms[0];i({...a,pushedWithinDays:y.within,pushedOverDays:y.over})},"aria-label":"最終pushで絞り込む",className:ng,children:ms.map(b=>h.jsx("option",{value:b.key,children:b.label},b.key))})]}),d.length>0&&h.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:d.map(b=>h.jsx("button",{type:"button",onClick:()=>g(b.id),children:h.jsx(Ui,{tag:b,dimmed:!a.tagIds.includes(b.id)})},b.id))}),yy(a)&&h.jsxs("button",{type:"button",onClick:()=>i({...Ao,includeHidden:a.includeHidden}),className:"text-xs text-fg-faint hover:text-fg-muted",children:["クリア(",u,")"]})]})}function Yi(a,i){const u=a.indexOf("/");if(u<0)return a;const r=a.slice(0,u),o=a.slice(u+1);return i===null||r.toLowerCase()===i.toLowerCase()?o:a}const cx=["fill-line","fill-emerald-900","fill-emerald-700","fill-emerald-500","fill-emerald-300"];function ox(a,i){return a===0?0:1+Math.min(3,Math.floor(a/i*3))}const qn=11,Aa=3,rs=188,lg=24;function fx(a,i=null){const u=Yi(a,i);return u.length<=lg?u:`${u.slice(0,lg-1)}…`}function dx({stats:a,days:i,now:u,maxRows:r=14,ownLogin:o=null}){const d=a.filter(b=>b.totalCommits>0).slice(0,r);if(d.length===0)return h.jsx("p",{className:"py-6 text-center text-sm text-fg-muted",children:"この期間の活動はありません"});const m=Bg(u,i),v=Math.max(...d.flatMap(b=>b.dailyCommits),1),x=i*(qn+Aa),g=d.length*(qn+Aa);return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("svg",{width:rs+x,height:g+20,role:"img","aria-label":"リポジトリ別の日次コミットヒートマップ",children:[d.map((b,y)=>h.jsxs("g",{children:[h.jsxs("text",{x:rs-10,y:y*(qn+Aa)+qn-1,textAnchor:"end",className:"fill-fg-muted font-mono text-xs",children:[h.jsx("title",{children:b.repo.nameWithOwner}),fx(b.repo.nameWithOwner,o)]}),b.dailyCommits.map((N,w)=>h.jsx("rect",{x:rs+w*(qn+Aa),y:y*(qn+Aa),width:qn,height:qn,rx:2,className:cx[ox(N,v)],children:h.jsx("title",{children:`${b.repo.nameWithOwner} ${m[w]}: ${N} commits`})},w))]},b.repo.nameWithOwner)),m.map((b,y)=>new Date(`${b}T00:00:00Z`).getUTCDay()===1&&i<=90?h.jsx("text",{x:rs+y*(qn+Aa),y:g+14,className:"fill-fg-faint font-mono text-xs",children:b.slice(5)},b):null)]})})}const hx=[7,30,90];function mx({value:a,onChange:i}){return h.jsx("div",{role:"tablist","aria-label":"集計期間",className:"inline-flex rounded-lg border border-line bg-panel-2 p-0.5",children:hx.map(u=>h.jsxs("button",{role:"tab","aria-selected":a===u,onClick:()=>i(u),className:`rounded-md px-3 py-1 font-mono text-sm transition-colors ${a===u?"bg-panel font-medium text-fg shadow-sm":"text-fg-muted hover:text-fg"}`,children:[u,"日"]},u))})}function gx({show:a,onChange:i,canPrivate:u}){return h.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 whitespace-nowrap text-xs text-fg-muted",children:[h.jsx("input",{type:"checkbox",checked:a,onChange:r=>i(r.target.checked),className:"accent-emerald-500"}),"private を表示"]})}function px(){return h.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"shrink-0",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10.5",className:"stroke-emerald-500/25",strokeWidth:"1"}),h.jsx("circle",{cx:"12",cy:"12",r:"6",className:"stroke-emerald-500/20",strokeWidth:"1"}),h.jsx("circle",{cx:"12",cy:"12",r:"1.6",className:"fill-emerald-400"}),h.jsxs("g",{className:"rr-sweep",children:[h.jsx("path",{d:"M12 12 L12 1.5 A10.5 10.5 0 0 1 20.1 5.2 Z",className:"fill-emerald-400/12"}),h.jsx("line",{x1:"12",y1:"12",x2:"12",y2:"1.5",className:"stroke-emerald-400",strokeWidth:"1.3",strokeLinecap:"round"})]})]})}const vx=/(^|[\s(\[])#(\d+)\b/g;function yx(a,i){const u=[];let r=0;for(const o of a.matchAll(vx)){const d=o.index+o[1].length;d>r&&u.push({kind:"text",text:a.slice(r,d)}),u.push({kind:"ref",text:`#${o[2]}`,href:`${i}/issues/${o[2]}`}),r=d+1+o[2].length}return r<a.length&&u.push({kind:"text",text:a.slice(r)}),u.length>0?u:[{kind:"text",text:a}]}function xx(a){return a==="MERGED"?"text-violet-400":a==="OPEN"?"text-emerald-400":a==="CLOSED"?"text-rose-400":"text-fg-muted"}function bx(a){return a==="MERGED"?"マージ済み":a==="OPEN"?"未解決":a==="CLOSED"?"閉じた":""}function Sx(a,i,u){return a.filter(r=>r.repo===i&&r.number===u).sort((r,o)=>r.at<o.at?1:r.at>o.at?-1:0)}let Da=null;async function Ex(){const a=await fetch("/data/issues.json");if(!a.ok)return[];const i=await a.json();return Array.isArray(i)?i:[]}let ag=0;function Oo(){const a=Yn(),[i,u]=S.useState(Da??[]),[r,o]=S.useState(Da===null),[d,m]=S.useState(null);return S.useEffect(()=>{if(a>ag&&(Da=null,ag=a),Da!==null){u(Da);return}let v=!1;return Ex().then(x=>{Da=x,v||(u(x),o(!1))}).catch(x=>{v||(u([]),o(!1),m(qg()))}),()=>{v=!0}},[a]),{items:i,loading:r,error:d}}function Nx(){const a=Yn(),[i,u]=S.useState({});return S.useEffect(()=>{let r=!1;return fetch("/data/refs.json").then(o=>o.ok?o.json():{}).then(o=>{!r&&o&&typeof o=="object"&&!Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function wx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/slack-links.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function To(a){return a<=7?"fresh":a<=14?"aging":a<=30?"stale":a<=60?"cold1":a<=90?"cold2":"cold3"}const Mo={fresh:"text-emerald-400",aging:"text-amber-400",stale:"text-rose-400",cold1:"text-slate-300",cold2:"text-slate-400",cold3:"text-fg-faint"},Qg={fresh:"bg-emerald-400",aging:"bg-amber-400",stale:"bg-rose-400",cold1:"bg-slate-300",cold2:"bg-slate-400",cold3:"bg-slate-500"};function Ro(a){return a===0?"today":`${a}日前`}function Es(a,i){const u=a.bookmarks.indexOf(i);u>=0?a.bookmarks.splice(u,1):a.bookmarks.push(i)}function Ns(a,i){return(a==null?void 0:a.bookmarks.includes(i))??!1}function Kg(a,i){const u=a.hidden.indexOf(i);u>=0?a.hidden.splice(u,1):a.hidden.push(i)}function ws(a,i){return(a==null?void 0:a.hidden.includes(i))??!1}function jx(a,i,u,r){const o=u.trim();o===""||a.tags.defs.some(d=>d.id===i)||a.tags.defs.push({id:i,label:o,color:r})}function Fc(a,i,u){const r=a.tags.byRepo[i]??[],o=r.includes(u)?r.filter(d=>d!==u):[...r,u];o.length===0?delete a.tags.byRepo[i]:a.tags.byRepo[i]=o}function zo(a,i){return(a==null?void 0:a.tags.byRepo[i])??[]}const ig="default",Ax=[{id:"backlog",name:"Backlog"},{id:"active",name:"Active"},{id:"review",name:"Review"},{id:"done",name:"Done"},{id:"dormant",name:"Dormant"}];function Zg(a,i){return a.boards.length>0?a.boards[0].id:(a.boards.push({id:ig,name:"Projects",columns:Ax.map(u=>({id:u.id,name:u.name,cardIds:[]})),cards:[],updatedAt:i}),ig)}function Gi(a,i){return a.boards.find(u=>u.id===i)}function Jg(a,i,u,r){const o=Gi(a,i);if(!o)return;const d=o.columns.find(m=>m.id===u);d&&(o.cards.some(m=>m.id===r.id)||(o.cards.push(r),d.cardIds.push(r.id),o.updatedAt=r.updatedAt))}function Dx(a,i,u,r,o){var v;const d=Gi(a,i);if(!d||d.cards.some(x=>x.repo===u))return!1;const m=(v=d.columns[0])==null?void 0:v.id;return m?(Jg(a,i,m,{id:r,repo:u,title:u.split("/")[1]??u,note:"",updatedAt:o}),!0):!1}function Cx(a,i,u,r,o){const d=Gi(a,i);if(!d)return;const m=d.columns.find(x=>x.id===r);if(!m)return;for(const x of d.columns){const g=x.cardIds.indexOf(u);g>=0&&x.cardIds.splice(g,1)}const v=Math.max(0,Math.min(o,m.cardIds.length));m.cardIds.splice(v,0,u)}function _x(a,i,u,r){const o=Gi(a,i);if(!o)return;const d=o.cards.find(m=>m.id===u);d&&Object.assign(d,r)}function Ox(a,i,u){const r=Gi(a,i);if(r){r.cards=r.cards.filter(o=>o.id!==u);for(const o of r.columns){const d=o.cardIds.indexOf(u);d>=0&&o.cardIds.splice(d,1)}}}function Tx(a){const i=new Map(a.cards.map(r=>[r.id,r])),u={};for(const r of a.columns)u[r.id]=r.cardIds.map(o=>i.get(o)).filter(o=>o!=null);return u}function Mx(a,i){for(const u of a.columns)if(u.cardIds.includes(i))return u.id;return null}function Rx(a,i){let u=Mx(a,i);if(!u&&a.columns.some(d=>d.id===i)&&(u=i),!u)return null;const r=a.columns.find(d=>d.id===u);if(!r)return null;const o=r.cardIds.indexOf(i);return{columnId:u,index:o<0?r.cardIds.length:o}}function $g(a="id"){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${a}-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}function Wg({daily:a,width:i=96,height:u=22}){const r=Math.max(...a,1),o=i/a.length;return h.jsx("svg",{width:i,height:u,"aria-hidden":"true",className:"shrink-0",children:a.map((d,m)=>d>0?h.jsx("rect",{x:m*o,y:u-d/r*u,width:Math.max(o-.5,.5),height:d/r*u,rx:.5,className:"fill-emerald-400/85"},m):null)})}const ug=["#34d399","#60a5fa","#fbbf24","#f87171","#a78bfa","#22d3ee","#f472b6","#a3e635"];function zx(a){return ug[a%ug.length]}function Ux(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`tag-${Math.random().toString(36).slice(2)}`}function Bx({repo:a}){const{data:i,mutate:u}=yt(),[r,o]=S.useState(!1),[d,m]=S.useState(""),v=(i==null?void 0:i.tags.defs)??[],x=zo(i,a),g=x.map(y=>v.find(N=>N.id===y)).filter(y=>y!=null);function b(){const y=d.trim();if(y==="")return;const N=Ux(),w=zx(v.length);u(M=>{jx(M,N,y,w),Fc(M,a,N)}),m("")}return h.jsxs("div",{children:[h.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[h.jsx("h3",{className:"font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"タグ"}),h.jsx("button",{type:"button",onClick:()=>o(y=>!y),className:"text-xs text-fg-muted hover:text-fg",children:r?"閉じる":"+ 編集"})]}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.length>0?g.map(y=>h.jsx(Ui,{tag:y,onRemove:()=>u(N=>Fc(N,a,y.id))},y.id)):h.jsx("span",{className:"text-xs text-fg-faint",children:"未設定"})}),r&&h.jsxs("div",{className:"mt-3 rounded-lg border border-line bg-panel-2 p-3",children:[v.length>0&&h.jsx("div",{className:"mb-3 flex flex-wrap gap-1.5",children:v.map(y=>{const N=x.includes(y.id);return h.jsx("button",{type:"button",onClick:()=>u(w=>Fc(w,a,y.id)),children:h.jsx(Ui,{tag:y,dimmed:!N})},y.id)})}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("input",{value:d,onChange:y=>m(y.target.value),onKeyDown:y=>{y.nativeEvent.isComposing||y.key==="Enter"&&(y.preventDefault(),b())},placeholder:"新しいタグ名",className:"min-w-0 flex-1 rounded-md border border-line-strong bg-panel px-2 py-1 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"button",onClick:b,className:"shrink-0 rounded-md border border-line-strong px-2.5 py-1 text-sm text-fg-muted hover:border-emerald-500/40 hover:text-fg",children:"追加"})]})]})]})}function Ic({children:a,className:i}){return h.jsx("span",{className:`rounded-md border border-line px-2 py-0.5 font-mono text-xs text-fg-muted ${i??""}`,children:a})}function Fg({stats:a,ownLogin:i=null}){var C;const{repo:u}=a,{data:r,mutate:o}=yt(),d=(r==null?void 0:r.notes[u.nameWithOwner])??"",m=To(a.daysSincePush),v=Ns(r,u.nameWithOwner),x=ws(r,u.nameWithOwner),g=((C=r==null?void 0:r.boards[0])==null?void 0:C.cards.some(D=>D.repo===u.nameWithOwner))??!1,{items:b}=Oo(),y=Nx(),N=wx(),w=Lg(b,u.nameWithOwner,i);function M(){const D=new Date().toISOString();o(k=>{const K=Zg(k,D);Dx(k,K,u.nameWithOwner,$g("card"),D)})}return h.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("h2",{className:"truncate font-mono text-lg font-semibold text-fg",children:Yi(u.nameWithOwner,i)}),h.jsx("p",{className:"mt-0.5 truncate font-mono text-xs text-fg-faint",children:u.nameWithOwner})]}),h.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[h.jsx("button",{type:"button",onClick:()=>o(D=>Es(D,u.nameWithOwner)),"aria-pressed":v,"aria-label":v?"Bookmark を外す":"Bookmark に追加",className:`rounded-md border px-2 py-1 text-sm transition-colors ${v?"border-amber-500/40 text-amber-400":"border-line text-fg-faint hover:text-fg-muted"}`,children:v?"★":"☆"}),h.jsx("button",{type:"button",onClick:M,disabled:g,className:`rounded-md border px-2 py-1 text-xs transition-colors ${g?"border-line text-fg-faint":"border-line text-fg-muted hover:border-emerald-500/40 hover:text-fg"}`,title:g?"すでにボードにあります":"この repo をボードの Backlog に追加",children:g?"✓ ボード":"+ ボード"}),h.jsx("button",{type:"button",onClick:()=>o(D=>Kg(D,u.nameWithOwner)),className:`rounded-md border px-2 py-1 text-xs transition-colors ${x?"border-line text-fg-muted hover:border-emerald-500/40 hover:text-fg":"border-line text-fg-muted hover:border-rose-500/40 hover:text-fg"}`,title:x?"一覧に戻す":"このrepoを一覧から外す(フィルターバーの「非表示を含める」で戻せます)",children:x?"再表示":"非表示"}),h.jsx("a",{href:u.url,target:"_blank",rel:"noreferrer",className:"rounded-md border border-line-strong px-2 py-1 font-mono text-xs text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:"GitHub ↗"})]})]}),h.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[u.isPrivate&&h.jsx(Ic,{children:"private"}),u.primaryLanguage&&h.jsx(Ic,{children:u.primaryLanguage}),h.jsx(Ic,{className:Mo[m],children:Ro(a.daysSincePush)})]})]}),h.jsx(Bx,{repo:u.nameWithOwner}),h.jsxs("div",{className:"flex items-end justify-between rounded-lg border border-line bg-panel-2 p-4",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"font-mono text-3xl tabular-nums text-fg",children:[a.totalCommits,h.jsx("span",{className:"text-base text-fg-faint",children:"c"})]}),h.jsxs("div",{className:"mt-0.5 text-xs text-fg-muted",children:["直近",a.dailyCommits.length,"日"]})]}),h.jsx(Wg,{daily:a.dailyCommits,width:168,height:40})]}),(u.openPrCount>0||u.openIssueCount>0)&&h.jsxs("div",{className:"flex gap-2",children:[u.openPrCount>0&&h.jsxs("a",{href:`${u.url}/pulls`,target:"_blank",rel:"noreferrer",className:"flex-1 rounded-lg border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:["Open PR ",h.jsx("span",{className:"font-mono text-fg",children:u.openPrCount})]}),u.openIssueCount>0&&h.jsxs("a",{href:`${u.url}/issues`,target:"_blank",rel:"noreferrer",className:"flex-1 rounded-lg border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:["Open Issue ",h.jsx("span",{className:"font-mono text-fg",children:u.openIssueCount})]})]}),(w.awaitingReview.length>0||w.toReview.length>0)&&h.jsxs("div",{className:"flex flex-col gap-3",children:[w.awaitingReview.length>0&&h.jsx(sg,{title:"レビュー待ちの自分のPR",items:w.awaitingReview,slackLinks:N}),w.toReview.length>0&&h.jsx(sg,{title:"自分がレビューするPR",items:w.toReview,slackLinks:N})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"直近のコミット"}),h.jsx("ul",{className:"space-y-1.5",children:u.lastCommits.length>0?u.lastCommits.map((D,k)=>h.jsxs("li",{className:"flex gap-2.5 text-sm",children:[h.jsx("span",{className:"shrink-0 pt-0.5 font-mono text-xs text-fg-faint",children:D.committedDate.slice(5,10)}),h.jsx("span",{className:"min-w-0 break-words text-fg",children:yx(D.message.split(`
|
|
51
|
-
`)[0],u.url).map((K,Y)=>{if(K.kind!=="ref")return h.jsx("span",{children:K.text},Y);const X=y[`${u.nameWithOwner}${K.text}`],B=bx(X);return h.jsx("a",{href:K.href,target:"_blank",rel:"noreferrer",title:B?`${K.text} ${B}`:K.text,className:`font-mono hover:underline ${xx(X)}`,children:K.text},Y)})})]},k)):h.jsx("li",{className:"text-sm text-fg-muted",children:"コミット履歴なし"})})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"次にやること"}),h.jsx("textarea",{value:d,onChange:D=>{const k=D.target.value;o(K=>{K.notes[u.nameWithOwner]=k})},rows:3,placeholder:"この repo の続きでやることを書いておく",className:"w-full resize-none rounded-lg border border-line-strong bg-panel-2 p-2.5 font-mono text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"})]})]})}function sg({title:a,items:i,slackLinks:u=[]}){return h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:a}),h.jsx("ul",{className:"space-y-1.5",children:i.map(r=>{const o=Sx(u,r.repo,r.number);return h.jsxs("li",{className:"flex items-baseline gap-2 text-sm",children:[h.jsxs("a",{href:r.url,target:"_blank",rel:"noreferrer",className:"shrink-0 font-mono text-xs text-emerald-400 hover:underline",children:["#",r.number]}),h.jsx("span",{className:"min-w-0 truncate text-fg",children:r.title}),r.reviewDecision==="CHANGES_REQUESTED"&&h.jsx("span",{className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-amber-300",children:"要修正"}),o.length>0&&h.jsxs("a",{href:o[0].permalink,target:"_blank",rel:"noreferrer",title:`Slackで${o.length}件の発言。最新は#${o[0].channel}`,className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-fg-muted hover:text-fg",children:["Slack ",o.length]})]},r.number)})})]})}function Lx({stats:a,selected:i,expanded:u,onSelect:r,index:o,menuOpen:d,onContextMenu:m,onMenuButton:v,ownLogin:x}){var K;const{repo:g}=a,{data:b,mutate:y}=yt(),N=To(a.daysSincePush),w=(K=g.lastCommits[0])==null?void 0:K.message.split(`
|
|
52
|
-
`)[0],M=Ns(b,g.nameWithOwner),C=ws(b,g.nameWithOwner),k=zo(b,g.nameWithOwner).map(Y=>b==null?void 0:b.tags.defs.find(X=>X.id===Y)).filter(Y=>Y!=null);return h.jsxs("div",{className:"rr-fade-up",style:{animationDelay:`${Math.min(o*18,280)}ms`},children:[h.jsxs("div",{onContextMenu:m,className:`flex items-stretch gap-1 rounded-lg border transition-colors ${i||u?"border-emerald-500/50 bg-emerald-400/[0.06]":"border-line bg-panel hover:bg-white/[0.025]"}`,children:[h.jsxs("button",{onClick:()=>r(g.nameWithOwner),"aria-pressed":i,"aria-expanded":u,className:"grid min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 rounded-l-lg px-3 py-2.5 text-left",children:[h.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${Qg[N]}`,style:a.daysSincePush===0?{boxShadow:"0 0 8px rgba(52,211,153,0.6)"}:void 0}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("div",{className:"flex items-baseline gap-2",children:[h.jsx("span",{className:"truncate font-mono text-sm font-medium text-fg",children:Yi(g.nameWithOwner,x)}),g.isPrivate&&h.jsx("span",{className:"shrink-0 rounded bg-white/5 px-1 font-mono text-xs text-fg-faint",children:"private"}),C&&h.jsx("span",{className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-fg-muted",children:"非表示"}),g.primaryLanguage&&h.jsx("span",{className:"shrink-0 text-xs text-fg-faint",children:g.primaryLanguage})]}),h.jsx("p",{className:"mt-0.5 truncate text-xs text-fg-muted",children:w??g.description??"—"}),k.length>0&&h.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:k.map(Y=>h.jsx(Ui,{tag:Y},Y.id))})]}),h.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[h.jsx("div",{className:"hidden sm:block",children:h.jsx(Wg,{daily:a.dailyCommits,width:88,height:22})}),h.jsxs("div",{className:"w-14 text-right",children:[h.jsxs("div",{className:"font-mono text-sm tabular-nums text-fg",children:[a.totalCommits,h.jsx("span",{className:"text-fg-faint",children:"c"})]}),h.jsx("div",{className:`text-xs ${Mo[N]}`,children:Ro(a.daysSincePush)})]}),h.jsxs("div",{className:"hidden w-11 shrink-0 flex-col items-end gap-0.5 font-mono text-xs text-fg-faint sm:flex",children:[g.openPrCount>0&&h.jsxs("span",{children:["PR ",g.openPrCount]}),g.openIssueCount>0&&h.jsxs("span",{children:["I ",g.openIssueCount]})]}),h.jsx("svg",{viewBox:"0 0 12 12",width:"12",height:"12","aria-hidden":"true",className:`shrink-0 text-fg-faint transition-transform lg:hidden ${u?"rotate-180":""}`,children:h.jsx("path",{d:"M2 4.5 6 8.5 10 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}),h.jsx("button",{type:"button",onClick:()=>y(Y=>Es(Y,g.nameWithOwner)),"aria-pressed":M,"aria-label":M?"Bookmark を外す":"Bookmark に追加",className:`flex shrink-0 items-center px-2.5 text-lg transition-colors ${M?"text-amber-400":"text-fg-faint hover:text-fg-muted"}`,children:M?"★":"☆"}),h.jsx("button",{type:"button",onClick:v,"aria-label":`${g.nameWithOwner}のメニュー`,"aria-haspopup":"menu","aria-expanded":d,className:"flex shrink-0 items-center rounded-r-lg px-2 text-fg-faint transition-colors hover:text-fg-muted",children:"⋯"})]}),u&&h.jsx("div",{className:"mt-1 rounded-lg border border-line bg-panel-2/60 lg:hidden",children:h.jsx(Fg,{stats:a,ownLogin:x})})]})}var gl=Ug();function Ig(){const[a,i]=S.useState(null),u=S.useCallback(()=>i(null),[]),r=S.useCallback((d,m,v)=>{if(d.shiftKey)return;d.preventDefault();const x=document.activeElement instanceof HTMLElement?document.activeElement:null,g=d.clientX===0&&d.clientY===0?d.currentTarget.getBoundingClientRect():null;i({repo:m,url:v,x:g?g.left+16:d.clientX,y:g?g.bottom:d.clientY,anchor:null,returnFocus:x})},[]),o=S.useCallback((d,m,v)=>{d.stopPropagation();const x=d.currentTarget;i(g=>{if((g==null?void 0:g.anchor)===x)return null;const b=x.getBoundingClientRect();return{repo:m,url:v,x:b.left,y:b.bottom+2,anchor:x,returnFocus:x}})},[]);return{menu:a,openAtPointer:r,toggleFromButton:o,close:u}}const Pc="flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-fg-muted transition-colors hover:bg-white/[0.06] hover:text-fg focus:bg-white/[0.06] focus:text-fg focus:outline-none";function Pg({menu:a,onClose:i}){const{data:u,mutate:r}=yt(),o=S.useRef(null),[d,m]=S.useState({x:a.x,y:a.y}),v=Ns(u,a.repo),x=ws(u,a.repo);S.useLayoutEffect(()=>{var D;const w=o.current;if(!w)return;const{width:M,height:C}=w.getBoundingClientRect();m({x:Math.max(4,Math.min(a.x,window.innerWidth-M-4)),y:Math.max(4,Math.min(a.y,window.innerHeight-C-4))}),(D=w.querySelector("button, a"))==null||D.focus({preventScroll:!0})},[a]);function g(){i();const w=a.returnFocus;w!=null&&w.isConnected&&w.focus({preventScroll:!0})}S.useEffect(()=>{function w(M){var D,k;const C=M.target;(D=o.current)!=null&&D.contains(C)||(k=a.anchor)!=null&&k.contains(C)||i()}return document.addEventListener("pointerdown",w),window.addEventListener("scroll",i,!0),()=>{document.removeEventListener("pointerdown",w),window.removeEventListener("scroll",i,!0)}},[a,i]);function b(w){var M,C;if(w.key==="Escape"){w.preventDefault(),g();return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){const D=[...((M=o.current)==null?void 0:M.querySelectorAll('[role="menuitem"]'))??[]],k=D.indexOf(document.activeElement),K=w.key==="ArrowDown"?(k+1)%D.length:(k-1+D.length)%D.length;(C=D[K])==null||C.focus(),w.preventDefault()}}function y(w){var C,D;const M=w.relatedTarget;!M||(C=o.current)!=null&&C.contains(M)||(D=a.anchor)!=null&&D.contains(M)||i()}function N(w){r(w),g()}return gl.createPortal(h.jsxs("div",{ref:o,role:"menu","aria-label":`${a.repo}の操作`,style:{position:"fixed",left:d.x,top:d.y,backdropFilter:"blur(12px)"},className:"z-50 min-w-44 overflow-hidden rounded-lg border border-line bg-panel/85 py-1 shadow-xl",onContextMenu:w=>w.preventDefault(),onKeyDown:b,onBlur:y,children:[h.jsx("div",{"aria-hidden":"true",className:"truncate px-3 py-1 font-mono text-xs text-fg-faint",children:a.repo}),h.jsxs("button",{type:"button",role:"menuitem",className:Pc,onClick:()=>N(w=>Es(w,a.repo)),children:[h.jsx("span",{className:v?"text-amber-400":"",children:v?"★":"☆"}),v?"Bookmarkを外す":"Bookmarkに追加"]}),h.jsxs("button",{type:"button",role:"menuitem",className:Pc,onClick:()=>N(w=>Kg(w,a.repo)),children:[h.jsx("span",{"aria-hidden":"true",children:x?"👁":"⊘"}),x?"一覧に戻す":"一覧から非表示にする"]}),h.jsxs("a",{role:"menuitem",className:Pc,href:a.url,target:"_blank",rel:"noreferrer","aria-label":"GitHubで開く(新しいタブ)",onClick:i,children:[h.jsx("span",{"aria-hidden":"true",children:"↗"}),"GitHubで開く"]})]}),document.body)}const Hx=new Set(["INPUT","TEXTAREA","SELECT"]);function kx(a){const i=a.metaKey||a.ctrlKey;return i&&!a.altKey&&!a.shiftKey&&a.key.toLowerCase()==="k"||!i&&!a.altKey&&a.key==="/"&&!Hx.has(a.targetTag)?"focus-search":a.key==="Escape"&&a.targetIsSearch?"clear-search":null}function qx(a){const i=a.target instanceof Element?a.target:null;return{key:a.key,metaKey:a.metaKey,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,targetTag:(i==null?void 0:i.tagName)??"BODY",targetIsSearch:(i==null?void 0:i.getAttribute("data-shortcut"))==="search"}}function Yx(){return document.querySelector('input[data-shortcut="search"]')}function Gx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/events.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Xx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/jira.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Vx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/confluence.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Qx(){const a=Yn(),[i,u]=S.useState([]),[r,o]=S.useState(!0);return S.useEffect(()=>{let d=!1;return fetch("/data/confluence-pages.json").then(m=>m.ok?m.json():[]).then(m=>{d||(Array.isArray(m)&&u(m),o(!1))}).catch(()=>{d||o(!1)}),()=>{d=!0}},[a]),{pages:i,loading:r}}const ep={all:"すべて",watched:"見張り",others:"他人が更新",drift:"要確認"},Kx=Object.keys(ep),Zx="未設定",Bi=a=>a===""?Zx:a;function Jx(a,i){const u=new Map;for(const r of i){const o=u.get(r.pageId)??[];o.push(r),u.set(r.pageId,o)}return[...a].sort((r,o)=>r.lastModified<o.lastModified?1:r.lastModified>o.lastModified?-1:0).map(r=>{const o=u.get(r.id)??[];return{...r,drifts:o,daysBehind:o.reduce((d,m)=>Math.max(d,m.daysBehind),0)}})}const tp=a=>a.some(i=>i.byMe!==void 0),np=a=>a.some(i=>i.watched===!0);function $x(a){const i=new Map;for(const u of a)i.set(u.pageId,[...i.get(u.pageId)??[],u]);return[...i.values()].map(u=>{const r=[...u].sort((d,m)=>m.daysBehind-d.daysBehind),o=r[0];return{pageId:o.pageId,title:o.title,space:o.space,url:o.url,lastModified:o.lastModified,repos:r.map(d=>d.repo),latestPush:r.reduce((d,m)=>m.pushedAt>d?m.pushedAt:d,r[0].pushedAt),daysBehind:o.daysBehind,mine:o.mine!==!1}})}function lp(a,i){const u=i[a.pageId];return u!==void 0&&a.latestPush<=u}const ap=(a,i)=>i.includes(a.pageId);function Wx(a,i,u=[]){return a.filter(r=>!lp(r,i)&&!ap(r,u))}function rg(a,i){const u=new Set(i.map(r=>r.pageId));return Object.fromEntries(Object.entries(a).filter(([r])=>u.has(r)))}const ip={recent:"更新が新しい順",behind:"遅れが大きい順"},Fx=Object.keys(ip);function Ix(a,i){const u=(r,o)=>r.title.localeCompare(o.title);return i==="behind"?[...a].sort((r,o)=>o.daysBehind-r.daysBehind||u(r,o)):[...a].sort((r,o)=>r.lastModified<o.lastModified?1:r.lastModified>o.lastModified?-1:u(r,o))}function Px(a,i){const u=i.space!==null&&a.some(o=>o.space===i.space)?i.space:null,r=i.only==="others"&&!tp(a)||i.only==="watched"&&!np(a);return{space:u,query:i.query,only:r?"all":i.only}}function eb(a,i){const u=i.query.trim().toLowerCase();return a.filter(r=>!(i.space!==null&&r.space!==i.space||i.only==="others"&&r.byMe!==!1||i.only==="watched"&&r.watched!==!0||i.only==="drift"&&r.drifts.length===0||u&&!r.title.toLowerCase().includes(u)&&!Bi(r.space).toLowerCase().includes(u)))}function tb(a){const i=new Map;for(const u of a)i.set(u.space,(i.get(u.space)??0)+1);return[...i].map(([u,r])=>({space:u,count:r})).sort((u,r)=>r.count-u.count||Bi(u.space).localeCompare(Bi(r.space)))}const nb={},lb=[];function ab({drifts:a}){const{data:i,mutate:u}=yt(),r=(i==null?void 0:i.wikiChecked)??nb,o=(i==null?void 0:i.wikiMuted)??lb,[d,m]=S.useState(!1),[v,x]=S.useState("recent"),[g,b]=S.useState(!1),y=S.useMemo(()=>$x(a),[a]),N=S.useMemo(()=>Wx(y,r,o),[y,r,o]),w=S.useMemo(()=>Ix(g?y:N,v),[y,N,g,v]);function M(B){u(Q=>{Q.wikiChecked={...rg(Q.wikiChecked??{},y),[B.pageId]:B.latestPush}})}function C(B){u(Q=>{const V=Q.wikiMuted??[];V.includes(B.pageId)||(Q.wikiMuted=[...V,B.pageId])})}function D(){u(B=>{const Q=rg(B.wikiChecked??{},y);for(const V of N)Q[V.pageId]=V.latestPush;B.wikiChecked=Q})}const k=S.useRef(null),K=S.useRef(null),[Y,X]=S.useState({x:0,y:0});return S.useLayoutEffect(()=>{if(!d||!k.current||!K.current)return;const B=k.current.getBoundingClientRect(),Q=K.current.getBoundingClientRect().width;X({x:Math.max(8,Math.min(B.right-Q,window.innerWidth-Q-8)),y:B.bottom+6})},[d]),S.useEffect(()=>{if(!d)return;function B(V){var he,fe;const P=V.target;(he=K.current)!=null&&he.contains(P)||(fe=k.current)!=null&&fe.contains(P)||m(!1)}function Q(V){V.key==="Escape"&&m(!1)}return document.addEventListener("pointerdown",B),document.addEventListener("keydown",Q),()=>{document.removeEventListener("pointerdown",B),document.removeEventListener("keydown",Q)}},[d]),y.length===0?null:h.jsxs(h.Fragment,{children:[h.jsxs("button",{ref:k,type:"button",onClick:()=>m(B=>!B),"aria-haspopup":"dialog","aria-expanded":d,"aria-label":`Wiki要確認。${N.length}件`,title:"Confluenceのページを書いたあとに、そのページが指すrepoへpushがあったもの",className:"relative flex items-center gap-1 rounded-md border border-line-strong px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:["Wiki要確認",h.jsx("span",{className:"rounded bg-amber-400/15 px-1 font-mono text-xs text-amber-300",children:N.length})]}),d&&gl.createPortal(h.jsxs("div",{ref:K,role:"dialog","aria-label":"Wiki要確認",style:{position:"fixed",left:Y.x,top:Y.y,backdropFilter:"blur(12px)"},className:"z-50 w-[min(30rem,calc(100vw-1rem))] overflow-hidden rounded-lg border border-line bg-panel/85 shadow-xl",children:[h.jsxs("div",{className:"border-b border-line px-3 py-2",children:[h.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[h.jsxs("span",{className:"text-sm text-fg",children:["Wiki要確認 ",h.jsxs("span",{className:"font-mono text-xs text-fg-muted",children:[N.length,"件"]})]}),h.jsxs("div",{className:"flex shrink-0 items-baseline gap-2",children:[h.jsx("div",{className:"flex gap-2",role:"group","aria-label":"並び順",children:Fx.map(B=>h.jsx("button",{type:"button",onClick:()=>x(B),"aria-pressed":v===B,className:`text-xs transition-colors ${v===B?"text-fg":"text-fg-muted hover:text-fg"}`,children:ip[B]},B))}),h.jsx("button",{type:"button",onClick:()=>b(B=>!B),"aria-pressed":g,title:"確認済みも含めて見る",className:`text-xs hover:text-fg ${g?"text-fg":"text-fg-muted"}`,children:"履歴"}),N.length>0&&h.jsx("button",{type:"button",onClick:D,className:"text-xs text-fg-muted hover:text-fg",children:"すべて確認"})]})]}),h.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:"ページを書いたあとに実装が進んだものです。値は実装が正なので、直す先はページのほうです。確認したものは数から減り、そのあと実装が進めばまた出ます"})]}),h.jsxs("ul",{className:"max-h-80 overflow-y-auto",children:[w.length===0&&h.jsx("li",{className:"px-3 py-6 text-center text-sm text-fg-muted",children:"確認していないページはありません"}),w.map(B=>{const Q=ap(B,o),V=Q||lp(B,r);return h.jsxs("li",{"data-testid":"drift",className:`flex items-start gap-2 border-b border-line/60 px-3 py-2 last:border-b-0 ${V?"opacity-70":""}`,children:[h.jsxs("a",{href:B.url,target:"_blank",rel:"noreferrer",className:"block min-w-0 flex-1 hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:"shrink-0 font-mono text-amber-400",children:B.space}),!B.mine&&h.jsx("span",{className:"shrink-0 text-fg-muted",children:"他人のページ"}),Q&&h.jsx("span",{className:"shrink-0 text-fg-faint",children:"もう見ない"}),h.jsxs("span",{className:"min-w-0 flex-1 truncate text-fg-muted",title:B.repos.join(", "),children:[B.repos[0],B.repos.length>1?` ほか${B.repos.length-1}`:""]}),h.jsxs("span",{className:"shrink-0 font-mono text-fg-faint",children:[B.daysBehind,"日"]})]}),h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:B.title}),h.jsxs("div",{className:"mt-0.5 font-mono text-xs text-fg-faint",children:["ページ ",B.lastModified.slice(0,10)," / push ",B.latestPush.slice(0,10)]})]}),!V&&h.jsxs("div",{className:"flex shrink-0 flex-col gap-1",children:[h.jsx("button",{type:"button",onClick:()=>M(B),"aria-label":`確認した: ${B.title}`,title:"確認した。実装がさらに進めばまた出ます",className:"rounded border border-line-strong px-1.5 text-xs text-fg-muted hover:text-fg",children:"確認"}),h.jsx("button",{type:"button",onClick:()=>C(B),"aria-label":`もう見ない: ${B.title}`,title:"二度と出さない。スプリントの記録のように読み直さない文書に",className:"rounded border border-line-strong px-1.5 text-xs text-fg-muted hover:text-fg",children:"もう見ない"})]})]},B.pageId)})]})]}),document.body)]})}function ib({drifts:a}){const{pages:i,loading:u}=Qx(),[r,o]=S.useState(""),[d,m]=S.useState(null),[v,x]=S.useState("all"),g=S.useMemo(()=>Jx(i,a),[i,a]),b=S.useMemo(()=>tb(g),[g]),y=S.useMemo(()=>tp(g),[g]),N=S.useMemo(()=>np(g),[g]),w=S.useMemo(()=>Px(g,{space:d,query:r,only:v}),[g,d,r,v]),M=S.useMemo(()=>eb(g,w),[g,w]);return u?h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"}):g.length===0?h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["表示できるWikiのページがありません。",h.jsx("br",{}),"Atlassianの設定を入れて同期すると出ます。手順はREADMEの「Jira / Confluenceを見る」にあります。"]}):h.jsxs("div",{className:"mx-auto flex h-full max-w-4xl flex-col gap-4 overflow-y-auto p-5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"search",children:[h.jsx("input",{type:"search","aria-label":"Wikiのページをタイトル・スペースで検索",value:r,onChange:C=>o(C.target.value),placeholder:"Wikiのページをタイトル・スペースで検索","data-shortcut":"search",className:"min-w-[240px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("div",{className:"flex overflow-hidden rounded-lg border border-line",children:Kx.filter(C=>(C!=="others"||y)&&(C!=="watched"||N)).map(C=>h.jsx("button",{type:"button",onClick:()=>x(C),"aria-pressed":w.only===C,className:`px-2.5 py-1.5 text-xs transition-colors ${w.only===C?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:ep[C]},C))})]}),b.length>1&&h.jsx("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":"スペースで絞る",children:b.map(C=>{const D=w.space===C.space;return h.jsxs("button",{type:"button",onClick:()=>m(D?null:C.space),"aria-pressed":D,className:`rounded-md border px-2 py-0.5 font-mono text-xs transition-colors ${D?"border-emerald-500/60 bg-emerald-400/10 font-medium text-emerald-300":"border-line-strong text-fg-muted hover:text-fg"}`,children:[Bi(C.space)," ",h.jsx("span",{className:"text-fg-faint",children:C.count})]},C.space)})}),h.jsxs("p",{className:"font-mono text-xs text-fg-faint",children:[M.length,"件",M.length!==g.length?` / ${g.length}件`:""]}),M.length===0?h.jsx("p",{className:"py-8 text-center text-sm text-fg-muted",children:"条件に合うページがありません"}):h.jsx("ul",{className:"divide-y divide-line/60 rounded-lg border border-line bg-panel",children:M.map(C=>h.jsx("li",{className:"px-4 py-2.5",children:h.jsxs("a",{href:C.url,target:"_blank",rel:"noreferrer",className:"block hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:"font-mono text-amber-400",children:Bi(C.space)}),C.byMe===!1&&h.jsx("span",{className:"text-fg-muted",children:"他人が更新"}),C.drifts.length>0&&h.jsxs("span",{className:"rounded bg-amber-400/15 px-1 font-mono text-amber-300",title:C.drifts.map(D=>D.repo).join(", "),children:["要確認",C.daysBehind,"日"]}),h.jsx("span",{className:"ml-auto shrink-0 font-mono text-fg-faint",children:C.lastModified.slice(0,10)})]}),h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:C.title})]})},C.id))})]})}const ub=3e4;function sb(){S.useEffect(()=>{let a=null,i=!1;const u=async()=>{try{const o=await fetch("/data/meta.json",{cache:"no-store"});if(!o.ok)return;const d=await o.json();if(!d.lastSyncAt||i)return;a===null?a=d.lastSyncAt:d.lastSyncAt!==a&&(a=d.lastSyncAt,Dy())}catch{}};u();const r=setInterval(u,ub);return()=>{i=!0,clearInterval(r)}},[])}function Uo(a,i){return i.readIds.includes(a.id)?!1:!i.readAt||a.at>i.readAt}function rb(a,i){return a.filter(u=>Uo(u,i))}function cb(a,i,u){const r=new Map(i.map(o=>[o.id,o.at]));return a.filter(o=>{const d=r.get(o);return d===void 0?!1:!u||d>u})}function ob(a){return a.source==="wiki"?`wiki:${a.id.split(":")[1]??a.title}`:a.source==="slack"?a.id:`${a.repo}#${a.number}`}function fb(a){const i=new Map;for(const u of a){const r=ob(u);i.set(r,[...i.get(r)??[],u])}return[...i.values()].map(u=>{const r=[...u].sort((o,d)=>o.at<d.at?1:o.at>d.at?-1:0);return{...r[0],members:r}})}function eo(a,i){return a.members.some(u=>Uo(u,i))}function Ta(a){const i=a.actor??"誰か";switch(a.kind){case"changes_requested":return`${i}が要修正`;case"approved":return`${i}が承認`;case"reviewed":return`${i}がレビューでコメント`;case"commented":return`${i}がコメント`;case"review_update":return`${i}が更新(レビュー中)`;case"wiki_updated":return"Confluenceのページが更新";case"wiki_added":return"Confluenceにページが追加";case"slack_mention":return`${i}があなたに言及`;case"review_requested":return`レビュー依頼(${i}から)`;case"addressed":return"対応済み、再レビュー待ち";case"closed":return"閉じられた(マージかクローズ)"}}function db(a){return a.source==="slack"?{title:Ta(a),body:`#${a.repo}`}:a.source==="wiki"?{title:`${a.repo} ${Ta(a)}`,body:a.title}:{title:`${a.repo.split("/")[1]??a.repo} #${a.number} ${Ta(a)}`,body:a.title}}function hb(a,i){return a.source==="slack"?`#${a.repo}`:a.source==="wiki"?a.repo:`${i} #${a.number}`}const mb={review_requested:"blocking",review_update:"blocking",slack_mention:"blocking",changes_requested:"yours",commented:"yours",reviewed:"yours",approved:"fyi",addressed:"fyi",closed:"fyi",wiki_updated:"wiki",wiki_added:"wiki"},ho=["blocking","yours","wiki","fyi"],gb={blocking:"他人を待たせている",yours:"あなたの番",wiki:"Wikiの更新",fyi:"知らせ"};function pb(a){if(!a)return!1;const i=a.toLowerCase();return i.endsWith("[bot]")||/^(dependabot|renovate|copilot|github-actions)/.test(i)}function mo(a){const i=mb[a.kind]??"fyi";return i==="blocking"&&pb(a.actor)?"fyi":i}function vb(a,i){if(!i)return!1;const u=a.indexOf("/");return u<0?!1:a.slice(0,u).toLowerCase()!==i.toLowerCase()}function cg(a,i){return a.source==="wiki"||a.source==="slack"||vb(a.repo,i)}function yb(a,i=null){return[...a].sort((u,r)=>{const o=ho.indexOf(mo(u))-ho.indexOf(mo(r));if(o!==0)return o;const d=Number(cg(r,i))-Number(cg(u,i));return d!==0?d:u.at<r.at?1:u.at>r.at?-1:0})}function xb(a,i=null){const u=yb(a,i);return ho.map(r=>({group:r,items:u.filter(o=>mo(o)===r)})).filter(r=>r.items.length>0)}function bb(a,i){return a.filter(u=>!i||u.at>i).reduce((u,r)=>u+r.count,0)}function Sb(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/skipped.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}const Eb=[];function Nb(){return h.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[h.jsx("path",{d:"M4 6.5a4 4 0 0 1 8 0c0 3 .8 4 1.5 4.5h-11C3.2 10.5 4 9.5 4 6.5Z",strokeLinejoin:"round"}),h.jsx("path",{d:"M6.5 13a1.6 1.6 0 0 0 3 0",strokeLinecap:"round"})]})}function wb({events:a,login:i=null}){const{data:u,mutate:r}=yt(),o=(u==null?void 0:u.inboxReadAt)??null,d=(u==null?void 0:u.inboxReadIds)??Eb,m=S.useMemo(()=>({readAt:o,readIds:d}),[o,d]),v=(u==null?void 0:u.notify)??Hl,[x,g]=S.useState(!1),[b,y]=S.useState(!1),N=bb(Sb(),o),w=S.useMemo(()=>fb(a),[a]),M=S.useMemo(()=>w.filter(te=>eo(te,m)),[w,m]),C=b?w:M,[D,k]=S.useState(!1),[K,Y]=S.useState(()=>typeof Notification>"u"?"unsupported":Notification.permission),X=S.useRef(null),B=S.useRef(null),[Q,V]=S.useState({x:0,y:0}),P=S.useRef(null);S.useEffect(()=>{if(P.current===null){P.current=new Set(a.map(I=>I.id));return}if(K!=="granted")return;const te=a.filter(I=>{var ce;return!((ce=P.current)!=null&&ce.has(I.id))});if(te.length!==0&&Uy(v,new Date,(u==null?void 0:u.lastNotifiedAt)??null)){for(const I of te){P.current.add(I.id);const{title:ce,body:ve}=db(I),z=new Notification(ce,{body:ve,tag:I.id});z.onclick=()=>window.open(I.url,"_blank","noreferrer")}r(I=>{I.lastNotifiedAt=new Date().toISOString()})}},[a,K,v,u==null?void 0:u.lastNotifiedAt,r]),S.useLayoutEffect(()=>{if(!D||!X.current||!B.current)return;const te=X.current.getBoundingClientRect(),I=B.current.getBoundingClientRect().width;V({x:Math.max(8,Math.min(te.right-I,window.innerWidth-I-8)),y:te.bottom+6})},[D]),S.useEffect(()=>{if(!D)return;function te(ce){var z,Z;const ve=ce.target;(z=B.current)!=null&&z.contains(ve)||(Z=X.current)!=null&&Z.contains(ve)||k(!1)}function I(ce){ce.key==="Escape"&&k(!1)}return document.addEventListener("pointerdown",te),document.addEventListener("keydown",I),()=>{document.removeEventListener("pointerdown",te),document.removeEventListener("keydown",I)}},[D]);function he(){var I;const te=(I=a[0])==null?void 0:I.at;te&&r(ce=>{ce.inboxReadAt=te,ce.inboxReadIds=[]})}function fe(te){eo(te,m)&&r(I=>{const ce=cb(I.inboxReadIds??[],a,I.inboxReadAt??null),ve=te.members.filter(z=>Uo(z,{readAt:I.inboxReadAt??null,readIds:ce})).map(z=>z.id);I.inboxReadIds=[...ce,...ve.filter(z=>!ce.includes(z))]})}async function de(){typeof Notification>"u"||Y(await Notification.requestPermission())}return h.jsxs(h.Fragment,{children:[h.jsxs("button",{ref:X,type:"button",onClick:()=>k(te=>!te),"aria-haspopup":"dialog","aria-expanded":D,"aria-label":M.length>0?`受信箱。未読${M.length}件`:"受信箱",title:"自分のPRに付いたレビュー、レビュー依頼、対応済みの再レビュー待ちなど",className:"relative flex items-center gap-1 rounded-md border border-line-strong px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:[h.jsx(Nb,{}),"受信箱",M.length>0&&h.jsx("span",{"data-testid":"inbox-count",className:"rounded bg-rose-400/15 px-1 font-mono text-xs text-rose-300",children:M.length})]}),D&&gl.createPortal(h.jsxs("div",{ref:B,role:"dialog","aria-label":"受信箱",style:{position:"fixed",left:Q.x,top:Q.y,backdropFilter:"blur(12px)"},className:"z-50 flex max-h-[calc(100vh-5rem)] w-[min(28rem,calc(100vw-1rem))] flex-col overflow-y-auto rounded-lg border border-line bg-panel/85 shadow-xl",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-line px-3 py-2",children:[h.jsxs("span",{className:"flex items-baseline gap-2 text-sm text-fg",children:["受信箱",h.jsxs("span",{className:"font-mono text-xs text-fg-muted",children:["未読",M.length]}),N>0&&h.jsxs("span",{title:"変化はあったが、あなたの手は要らないと判断したものです",className:"font-mono text-xs text-fg-faint",children:["見送り",N]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[K==="default"&&h.jsx("button",{type:"button",onClick:()=>void de(),className:"text-xs text-fg-muted hover:text-fg",children:"通知を許可"}),h.jsx("button",{type:"button",onClick:()=>g(te=>!te),"aria-expanded":x,className:"text-xs text-fg-muted hover:text-fg",children:"知らせ方"}),h.jsx("button",{type:"button",onClick:()=>y(te=>!te),"aria-pressed":b,title:"読んだものも含めて振り返る",className:`text-xs hover:text-fg ${b?"text-fg":"text-fg-muted"}`,children:"履歴"}),M.length>0&&h.jsx("button",{type:"button",onClick:he,className:"text-xs text-fg-muted hover:text-fg",children:"すべて既読"})]})]}),x&&h.jsx(Ab,{value:v,onChange:te=>r(I=>{I.notify=te})}),h.jsxs("ul",{children:[C.length===0&&h.jsx("li",{className:"px-3 py-6 text-center text-sm text-fg-muted",children:a.length>0?"未読はありません。読んだものは「履歴」で見られます":N>0?`あなたの手が要るものはありません。${N}件の変化は知らせずに置きました`:"まだ何も届いていません。`--watch`で開いておくと、同期のたびに自分に起きたことが溜まります"}),xb(C,i).flatMap(te=>[h.jsxs("li",{className:"flex items-baseline gap-2 border-b border-line/60 bg-panel-2/60 px-3 py-1 font-mono text-xs text-fg-faint",children:[h.jsx("span",{children:gb[te.group]}),h.jsx("span",{children:te.items.length})]},`g-${te.group}`),...te.items.map(I=>{const ce=eo(I,m);return h.jsxs("li",{"data-testid":"event",className:`flex items-start gap-2 border-b border-line/60 px-3 py-2 last:border-b-0 ${ce?"":"opacity-70"}`,children:[h.jsxs("a",{href:I.url,target:"_blank",rel:"noreferrer",onClick:()=>fe(I),className:"block min-w-0 flex-1 hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:`min-w-0 max-w-[60%] truncate font-mono ${ce?"text-emerald-400":"text-fg-faint"}`,children:hb(I,Yi(I.repo,i))}),h.jsx("span",{className:"min-w-0 flex-1 truncate text-fg-muted",children:Ta(I)}),I.members.length>1&&h.jsxs("span",{className:"shrink-0 font-mono text-fg-faint",children:["ほか",I.members.length-1]}),h.jsx("span",{className:"shrink-0 font-mono text-fg-faint",children:I.at.slice(5,16).replace("T"," ")})]}),I.title!==""&&h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:I.title})]}),ce&&h.jsx("button",{type:"button",onClick:()=>fe(I),"aria-label":`既読にする: ${I.title||Ta(I)}`,title:"既読にする",className:"shrink-0 rounded border border-line-strong px-1.5 text-xs text-fg-muted hover:text-fg",children:"既読"})]},I.id)})])]})]}),document.body)]})}const jb=["日","月","火","水","木","金","土"];function Ab({value:a,onChange:i}){const u=o=>i({...a,...o}),r=o=>u({weekdays:a.weekdays.includes(o)?a.weekdays.filter(d=>d!==o):[...a.weekdays,o].sort()});return h.jsxs("div",{className:"border-b border-line px-3 py-2 text-xs",children:[h.jsx("p",{className:"mb-2 text-fg-muted",children:By(a)}),h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"出し方"}),h.jsxs("select",{value:a.mode,onChange:o=>u({mode:o.target.value}),"aria-label":"通知の出し方",className:"rounded border border-line-strong bg-panel-2 px-1 py-0.5 text-xs text-fg",children:[h.jsx("option",{value:"always",children:"届いたとき"}),h.jsx("option",{value:"digest",children:"決まった時刻にまとめて"})]})]}),a.mode==="digest"&&h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"時刻"}),h.jsx("input",{value:a.times.join(" "),onChange:o=>u({times:o.target.value.split(/[\s,]+/).filter(Boolean)}),"aria-label":"まとめて知らせる時刻",placeholder:"11:00 15:00 18:30",className:"min-w-0 flex-1 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"})]}),h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"時間帯"}),h.jsx("input",{type:"number",min:0,max:24,value:a.fromHour,onChange:o=>u({fromHour:Number(o.target.value)}),"aria-label":"知らせ始める時刻",className:"w-14 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"}),h.jsx("span",{className:"text-fg-faint",children:"時から"}),h.jsx("input",{type:"number",min:0,max:24,value:a.toHour,onChange:o=>u({toHour:Number(o.target.value)}),"aria-label":"知らせ終える時刻",className:"w-14 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"}),h.jsx("span",{className:"text-fg-faint",children:"時まで"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"曜日"}),h.jsx("div",{className:"flex flex-wrap gap-1",children:jb.map((o,d)=>h.jsx("button",{type:"button",onClick:()=>r(d),"aria-pressed":a.weekdays.includes(d),className:`rounded border px-1.5 py-0.5 text-xs ${a.weekdays.includes(d)?"border-line-strong text-fg":"border-line text-fg-faint"}`,children:o},d))})]})]})}const hl="px-3 py-2 text-left font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase";function Db({stats:a,selectedRepo:i,onSelect:u,ownLogin:r}){const{data:o,mutate:d}=yt(),{menu:m,openAtPointer:v,toggleFromButton:x,close:g}=Ig();return a.length===0?h.jsx("p",{className:"py-10 text-center text-sm text-fg-muted",children:"該当するリポジトリがありません"}):h.jsxs("div",{className:"overflow-x-auto",children:[h.jsxs("table",{className:"w-full border-collapse text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-line",children:[h.jsx("th",{className:hl,"aria-label":"bookmark"}),h.jsx("th",{className:hl,children:"repo"}),h.jsx("th",{className:hl,children:"言語"}),h.jsx("th",{className:hl,children:"タグ"}),h.jsx("th",{className:`${hl} text-right`,children:"commits"}),h.jsx("th",{className:`${hl} text-right`,children:"最終push"}),h.jsx("th",{className:`${hl} text-right`,children:"PR/I"}),h.jsx("th",{className:hl,"aria-label":"menu"})]})}),h.jsx("tbody",{children:a.map(b=>{const y=b.repo.nameWithOwner,N=To(b.daysSincePush),w=Ns(o,y),M=ws(o,y),C=zo(o,y).map(k=>o==null?void 0:o.tags.defs.find(K=>K.id===k)).filter(k=>k!=null),D=i===y;return h.jsxs("tr",{onClick:()=>u(y),onContextMenu:k=>v(k,y,b.repo.url),"aria-current":D?"true":void 0,className:`cursor-pointer border-b border-line/60 ${D?"bg-emerald-400/[0.06]":"hover:bg-white/[0.025]"}`,children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx("button",{type:"button",onClick:k=>{k.stopPropagation(),d(K=>Es(K,y))},"aria-label":w?"Bookmark を外す":"Bookmark に追加",className:w?"text-amber-400":"text-fg-faint hover:text-fg-muted",children:w?"★":"☆"})}),h.jsx("td",{className:"px-3 py-2",children:h.jsxs("button",{type:"button",onClick:k=>{k.stopPropagation(),u(y)},className:"flex items-center gap-2 text-left",children:[h.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${Qg[N]}`}),h.jsx("span",{className:"font-mono text-fg",children:Yi(y,r)}),b.repo.isPrivate&&h.jsx("span",{className:"rounded bg-white/5 px-1 font-mono text-xs text-fg-faint",children:"private"}),M&&h.jsx("span",{className:"rounded border border-line px-1 font-mono text-xs text-fg-muted",children:"非表示"})]})}),h.jsx("td",{className:"px-3 py-2 text-fg-muted",children:b.repo.primaryLanguage??"—"}),h.jsx("td",{className:"px-3 py-2",children:h.jsx("div",{className:"flex flex-wrap gap-1",children:C.map(k=>h.jsx(Ui,{tag:k},k.id))})}),h.jsx("td",{className:"px-3 py-2 text-right font-mono tabular-nums text-fg",children:b.totalCommits}),h.jsx("td",{className:`px-3 py-2 text-right ${Mo[N]}`,children:Ro(b.daysSincePush)}),h.jsx("td",{className:"px-3 py-2 text-right font-mono text-xs text-fg-faint",children:b.repo.openPrCount>0||b.repo.openIssueCount>0?`${b.repo.openPrCount}/${b.repo.openIssueCount}`:"—"}),h.jsx("td",{className:"px-1 py-2 text-right",children:h.jsx("button",{type:"button",onClick:k=>x(k,y,b.repo.url),"aria-label":`${y}のメニュー`,"aria-haspopup":"menu","aria-expanded":(m==null?void 0:m.repo)===y,className:"rounded px-1.5 text-fg-faint hover:text-fg-muted",children:"⋯"})})]},y)})})]}),m&&h.jsx(Pg,{menu:m,onClose:g})]})}function Cb(){const{saveStatus:a,loadError:i}=yt();return i?h.jsx("span",{className:"rounded-md border border-rose-500/40 bg-rose-500/10 px-2 py-0.5 text-xs text-rose-300",title:`ローカル保存が使えません: ${i}`,children:"保存無効"}):a==="error"?h.jsx("span",{className:"rounded-md border border-rose-500/40 bg-rose-500/10 px-2 py-0.5 text-xs text-rose-300",children:"保存に失敗"}):a==="saving"?h.jsx("span",{className:"text-xs text-fg-faint",children:"保存中…"}):a==="saved"?h.jsx("span",{className:"text-xs text-fg-faint",children:"保存済み"}):null}function _b(){const{storage:a,connectFolder:i,reconnect:u,disconnect:r}=yt(),o=a.error?h.jsx("span",{className:"text-xs text-rose-300",title:a.error,children:"⚠ 同期エラー"}):null,d=h.jsx("button",{type:"button",onClick:()=>void r(),className:"text-xs text-fg-faint hover:text-fg-muted",title:"共有をやめて、このブラウザの中だけに保存する(今の内容はこのブラウザへ書き戻す)",children:"共有をやめる"});return a.kind==="filesystem"?a.needsReconnect||a.error?h.jsxs("div",{className:"flex items-center gap-1.5",children:[o,h.jsx("button",{type:"button",onClick:()=>void u(),className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-300",title:"フォルダへの書き込み許可が切れた。もう一度許可すると共有が続く",children:"共有を再開"}),d]}):h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsxs("span",{className:"rounded-md border border-emerald-500/30 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-300",title:`Bookmark・タグ・メモを「${a.dirName}」に保存している。同じフォルダを選んだ他のPCでも同じ内容が見える`,children:["📁 ",a.dirName,"で共有中"]}),d]}):a.needsReconnect?h.jsxs("button",{type:"button",onClick:()=>void u(),className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-300",title:`前回「${a.dirName}」で共有していた。フォルダへの許可をもう一度出すと続きから使える`,children:["⚠ 「",a.dirName,"」の共有を再開"]}):a.supported?h.jsxs("div",{className:"flex items-center gap-1.5",children:[o,h.jsx("button",{type:"button",onClick:()=>void i(),className:"rounded-md border border-line-strong px-2 py-0.5 text-xs text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",title:"Bookmark・タグ・メモは今このブラウザの中にだけある。OneDrive / iCloud / Dropboxの中のフォルダを選ぶと、そこに保存され、同じフォルダを選んだ他のPCでも同じ内容が見える",children:"☁ メモを他のPCと共有"})]}):h.jsx("span",{className:"text-xs text-fg-faint",title:"Bookmark・タグ・メモはこのブラウザの中にだけ保存される。他のPCと共有するにはChromeかEdgeが要る(フォルダを選ぶ機能が無い)",children:"このブラウザに保存"})}function Ob(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return S.useMemo(()=>r=>{i.forEach(o=>o(r))},i)}const js=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ba(a){const i=Object.prototype.toString.call(a);return i==="[object Window]"||i==="[object global]"}function Bo(a){return"nodeType"in a}function Tt(a){var i,u;return a?Ba(a)?a:Bo(a)&&(i=(u=a.ownerDocument)==null?void 0:u.defaultView)!=null?i:window:window}function Lo(a){const{Document:i}=Tt(a);return a instanceof i}function Xi(a){return Ba(a)?!1:a instanceof Tt(a).HTMLElement}function up(a){return a instanceof Tt(a).SVGElement}function La(a){return a?Ba(a)?a.document:Bo(a)?Lo(a)?a:Xi(a)||up(a)?a.ownerDocument:document:document:document}const vn=js?S.useLayoutEffect:S.useEffect;function Ho(a){const i=S.useRef(a);return vn(()=>{i.current=a}),S.useCallback(function(){for(var u=arguments.length,r=new Array(u),o=0;o<u;o++)r[o]=arguments[o];return i.current==null?void 0:i.current(...r)},[])}function Tb(){const a=S.useRef(null),i=S.useCallback((r,o)=>{a.current=setInterval(r,o)},[]),u=S.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[i,u]}function Li(a,i){i===void 0&&(i=[a]);const u=S.useRef(a);return vn(()=>{u.current!==a&&(u.current=a)},i),u}function Vi(a,i){const u=S.useRef();return S.useMemo(()=>{const r=a(u.current);return u.current=r,r},[...i])}function vs(a){const i=Ho(a),u=S.useRef(null),r=S.useCallback(o=>{o!==u.current&&(i==null||i(o,u.current)),u.current=o},[]);return[u,r]}function go(a){const i=S.useRef();return S.useEffect(()=>{i.current=a},[a]),i.current}let to={};function Qi(a,i){return S.useMemo(()=>{if(i)return i;const u=to[a]==null?0:to[a]+1;return to[a]=u,a+"-"+u},[a,i])}function sp(a){return function(i){for(var u=arguments.length,r=new Array(u>1?u-1:0),o=1;o<u;o++)r[o-1]=arguments[o];return r.reduce((d,m)=>{const v=Object.entries(m);for(const[x,g]of v){const b=d[x];b!=null&&(d[x]=b+a*g)}return d},{...i})}}const Ma=sp(1),Hi=sp(-1);function Mb(a){return"clientX"in a&&"clientY"in a}function ko(a){if(!a)return!1;const{KeyboardEvent:i}=Tt(a.target);return i&&a instanceof i}function Rb(a){if(!a)return!1;const{TouchEvent:i}=Tt(a.target);return i&&a instanceof i}function po(a){if(Rb(a)){if(a.touches&&a.touches.length){const{clientX:i,clientY:u}=a.touches[0];return{x:i,y:u}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:i,clientY:u}=a.changedTouches[0];return{x:i,y:u}}}return Mb(a)?{x:a.clientX,y:a.clientY}:null}const ki=Object.freeze({Translate:{toString(a){if(!a)return;const{x:i,y:u}=a;return"translate3d("+(i?Math.round(i):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:i,scaleY:u}=a;return"scaleX("+i+") scaleY("+u+")"}},Transform:{toString(a){if(a)return[ki.Translate.toString(a),ki.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:i,duration:u,easing:r}=a;return i+" "+u+"ms "+r}}}),og="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function zb(a){return a.matches(og)?a:a.querySelector(og)}const Ub={display:"none"};function Bb(a){let{id:i,value:u}=a;return Ot.createElement("div",{id:i,style:Ub},u)}function Lb(a){let{id:i,announcement:u,ariaLiveType:r="assertive"}=a;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ot.createElement("div",{id:i,style:o,role:"status","aria-live":r,"aria-atomic":!0},u)}function Hb(){const[a,i]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&i(r)},[]),announcement:a}}const rp=S.createContext(null);function kb(a){const i=S.useContext(rp);S.useEffect(()=>{if(!i)throw new Error("useDndMonitor must be used within a children of <DndContext>");return i(a)},[a,i])}function qb(){const[a]=S.useState(()=>new Set),i=S.useCallback(r=>(a.add(r),()=>a.delete(r)),[a]);return[S.useCallback(r=>{let{type:o,event:d}=r;a.forEach(m=>{var v;return(v=m[o])==null?void 0:v.call(m,d)})},[a]),i]}const Yb={draggable:`
|
|
53
|
-
To pick up a draggable item, press the space bar.
|
|
54
|
-
While dragging, use the arrow keys to move the item.
|
|
55
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
56
|
-
`},Gb={onDragStart(a){let{active:i}=a;return"Picked up draggable item "+i.id+"."},onDragOver(a){let{active:i,over:u}=a;return u?"Draggable item "+i.id+" was moved over droppable area "+u.id+".":"Draggable item "+i.id+" is no longer over a droppable area."},onDragEnd(a){let{active:i,over:u}=a;return u?"Draggable item "+i.id+" was dropped over droppable area "+u.id:"Draggable item "+i.id+" was dropped."},onDragCancel(a){let{active:i}=a;return"Dragging was cancelled. Draggable item "+i.id+" was dropped."}};function Xb(a){let{announcements:i=Gb,container:u,hiddenTextDescribedById:r,screenReaderInstructions:o=Yb}=a;const{announce:d,announcement:m}=Hb(),v=Qi("DndLiveRegion"),[x,g]=S.useState(!1);if(S.useEffect(()=>{g(!0)},[]),kb(S.useMemo(()=>({onDragStart(y){let{active:N}=y;d(i.onDragStart({active:N}))},onDragMove(y){let{active:N,over:w}=y;i.onDragMove&&d(i.onDragMove({active:N,over:w}))},onDragOver(y){let{active:N,over:w}=y;d(i.onDragOver({active:N,over:w}))},onDragEnd(y){let{active:N,over:w}=y;d(i.onDragEnd({active:N,over:w}))},onDragCancel(y){let{active:N,over:w}=y;d(i.onDragCancel({active:N,over:w}))}}),[d,i])),!x)return null;const b=Ot.createElement(Ot.Fragment,null,Ot.createElement(Bb,{id:r,value:o.draggable}),Ot.createElement(Lb,{id:v,announcement:m}));return u?gl.createPortal(b,u):b}var tt;(function(a){a.DragStart="dragStart",a.DragMove="dragMove",a.DragEnd="dragEnd",a.DragCancel="dragCancel",a.DragOver="dragOver",a.RegisterDroppable="registerDroppable",a.SetDroppableDisabled="setDroppableDisabled",a.UnregisterDroppable="unregisterDroppable"})(tt||(tt={}));function ys(){}function fg(a,i){return S.useMemo(()=>({sensor:a,options:i??{}}),[a,i])}function Vb(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return S.useMemo(()=>[...i].filter(r=>r!=null),[...i])}const on=Object.freeze({x:0,y:0});function Qb(a,i){return Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2))}function Kb(a,i){let{data:{value:u}}=a,{data:{value:r}}=i;return u-r}function Zb(a,i){let{data:{value:u}}=a,{data:{value:r}}=i;return r-u}function dg(a){let{left:i,top:u,height:r,width:o}=a;return[{x:i,y:u},{x:i+o,y:u},{x:i,y:u+r},{x:i+o,y:u+r}]}function cp(a,i){if(!a||a.length===0)return null;const[u]=a;return u[i]}const op=a=>{let{collisionRect:i,droppableRects:u,droppableContainers:r}=a;const o=dg(i),d=[];for(const m of r){const{id:v}=m,x=u.get(v);if(x){const g=dg(x),b=o.reduce((N,w,M)=>N+Qb(g[M],w),0),y=Number((b/4).toFixed(4));d.push({id:v,data:{droppableContainer:m,value:y}})}}return d.sort(Kb)};function Jb(a,i){const u=Math.max(i.top,a.top),r=Math.max(i.left,a.left),o=Math.min(i.left+i.width,a.left+a.width),d=Math.min(i.top+i.height,a.top+a.height),m=o-r,v=d-u;if(r<o&&u<d){const x=i.width*i.height,g=a.width*a.height,b=m*v,y=b/(x+g-b);return Number(y.toFixed(4))}return 0}const $b=a=>{let{collisionRect:i,droppableRects:u,droppableContainers:r}=a;const o=[];for(const d of r){const{id:m}=d,v=u.get(m);if(v){const x=Jb(v,i);x>0&&o.push({id:m,data:{droppableContainer:d,value:x}})}}return o.sort(Zb)};function Wb(a,i,u){return{...a,scaleX:i&&u?i.width/u.width:1,scaleY:i&&u?i.height/u.height:1}}function fp(a,i){return a&&i?{x:a.left-i.left,y:a.top-i.top}:on}function Fb(a){return function(u){for(var r=arguments.length,o=new Array(r>1?r-1:0),d=1;d<r;d++)o[d-1]=arguments[d];return o.reduce((m,v)=>({...m,top:m.top+a*v.y,bottom:m.bottom+a*v.y,left:m.left+a*v.x,right:m.right+a*v.x}),{...u})}}const Ib=Fb(1);function Pb(a){if(a.startsWith("matrix3d(")){const i=a.slice(9,-1).split(/, /);return{x:+i[12],y:+i[13],scaleX:+i[0],scaleY:+i[5]}}else if(a.startsWith("matrix(")){const i=a.slice(7,-1).split(/, /);return{x:+i[4],y:+i[5],scaleX:+i[0],scaleY:+i[3]}}return null}function e1(a,i,u){const r=Pb(i);if(!r)return a;const{scaleX:o,scaleY:d,x:m,y:v}=r,x=a.left-m-(1-o)*parseFloat(u),g=a.top-v-(1-d)*parseFloat(u.slice(u.indexOf(" ")+1)),b=o?a.width/o:a.width,y=d?a.height/d:a.height;return{width:b,height:y,top:g,right:x+b,bottom:g+y,left:x}}const t1={ignoreTransform:!1};function Ha(a,i){i===void 0&&(i=t1);let u=a.getBoundingClientRect();if(i.ignoreTransform){const{transform:g,transformOrigin:b}=Tt(a).getComputedStyle(a);g&&(u=e1(u,g,b))}const{top:r,left:o,width:d,height:m,bottom:v,right:x}=u;return{top:r,left:o,width:d,height:m,bottom:v,right:x}}function hg(a){return Ha(a,{ignoreTransform:!0})}function n1(a){const i=a.innerWidth,u=a.innerHeight;return{top:0,left:0,right:i,bottom:u,width:i,height:u}}function l1(a,i){return i===void 0&&(i=Tt(a).getComputedStyle(a)),i.position==="fixed"}function a1(a,i){i===void 0&&(i=Tt(a).getComputedStyle(a));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const d=i[o];return typeof d=="string"?u.test(d):!1})}function As(a,i){const u=[];function r(o){if(i!=null&&u.length>=i||!o)return u;if(Lo(o)&&o.scrollingElement!=null&&!u.includes(o.scrollingElement))return u.push(o.scrollingElement),u;if(!Xi(o)||up(o)||u.includes(o))return u;const d=Tt(a).getComputedStyle(o);return o!==a&&a1(o,d)&&u.push(o),l1(o,d)?u:r(o.parentNode)}return a?r(a):u}function dp(a){const[i]=As(a,1);return i??null}function no(a){return!js||!a?null:Ba(a)?a:Bo(a)?Lo(a)||a===La(a).scrollingElement?window:Xi(a)?a:null:null}function hp(a){return Ba(a)?a.scrollX:a.scrollLeft}function mp(a){return Ba(a)?a.scrollY:a.scrollTop}function vo(a){return{x:hp(a),y:mp(a)}}var it;(function(a){a[a.Forward=1]="Forward",a[a.Backward=-1]="Backward"})(it||(it={}));function gp(a){return!js||!a?!1:a===document.scrollingElement}function pp(a){const i={x:0,y:0},u=gp(a)?{height:window.innerHeight,width:window.innerWidth}:{height:a.clientHeight,width:a.clientWidth},r={x:a.scrollWidth-u.width,y:a.scrollHeight-u.height},o=a.scrollTop<=i.y,d=a.scrollLeft<=i.x,m=a.scrollTop>=r.y,v=a.scrollLeft>=r.x;return{isTop:o,isLeft:d,isBottom:m,isRight:v,maxScroll:r,minScroll:i}}const i1={x:.2,y:.2};function u1(a,i,u,r,o){let{top:d,left:m,right:v,bottom:x}=u;r===void 0&&(r=10),o===void 0&&(o=i1);const{isTop:g,isBottom:b,isLeft:y,isRight:N}=pp(a),w={x:0,y:0},M={x:0,y:0},C={height:i.height*o.y,width:i.width*o.x};return!g&&d<=i.top+C.height?(w.y=it.Backward,M.y=r*Math.abs((i.top+C.height-d)/C.height)):!b&&x>=i.bottom-C.height&&(w.y=it.Forward,M.y=r*Math.abs((i.bottom-C.height-x)/C.height)),!N&&v>=i.right-C.width?(w.x=it.Forward,M.x=r*Math.abs((i.right-C.width-v)/C.width)):!y&&m<=i.left+C.width&&(w.x=it.Backward,M.x=r*Math.abs((i.left+C.width-m)/C.width)),{direction:w,speed:M}}function s1(a){if(a===document.scrollingElement){const{innerWidth:d,innerHeight:m}=window;return{top:0,left:0,right:d,bottom:m,width:d,height:m}}const{top:i,left:u,right:r,bottom:o}=a.getBoundingClientRect();return{top:i,left:u,right:r,bottom:o,width:a.clientWidth,height:a.clientHeight}}function vp(a){return a.reduce((i,u)=>Ma(i,vo(u)),on)}function r1(a){return a.reduce((i,u)=>i+hp(u),0)}function c1(a){return a.reduce((i,u)=>i+mp(u),0)}function o1(a,i){if(i===void 0&&(i=Ha),!a)return;const{top:u,left:r,bottom:o,right:d}=i(a);dp(a)&&(o<=0||d<=0||u>=window.innerHeight||r>=window.innerWidth)&&a.scrollIntoView({block:"center",inline:"center"})}const f1=[["x",["left","right"],r1],["y",["top","bottom"],c1]];class qo{constructor(i,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=As(u),o=vp(r);this.rect={...i},this.width=i.width,this.height=i.height;for(const[d,m,v]of f1)for(const x of m)Object.defineProperty(this,x,{get:()=>{const g=v(r),b=o[d]-g;return this.rect[x]+b},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Mi{constructor(i){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...u)})},this.target=i}add(i,u,r){var o;(o=this.target)==null||o.addEventListener(i,u,r),this.listeners.push([i,u,r])}}function d1(a){const{EventTarget:i}=Tt(a);return a instanceof i?a:La(a)}function lo(a,i){const u=Math.abs(a.x),r=Math.abs(a.y);return typeof i=="number"?Math.sqrt(u**2+r**2)>i:"x"in i&&"y"in i?u>i.x&&r>i.y:"x"in i?u>i.x:"y"in i?r>i.y:!1}var tn;(function(a){a.Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange"})(tn||(tn={}));function mg(a){a.preventDefault()}function h1(a){a.stopPropagation()}var je;(function(a){a.Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab"})(je||(je={}));const yp={start:[je.Space,je.Enter],cancel:[je.Esc],end:[je.Space,je.Enter,je.Tab]},m1=(a,i)=>{let{currentCoordinates:u}=i;switch(a.code){case je.Right:return{...u,x:u.x+25};case je.Left:return{...u,x:u.x-25};case je.Down:return{...u,y:u.y+25};case je.Up:return{...u,y:u.y-25}}};class Yo{constructor(i){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=i;const{event:{target:u}}=i;this.props=i,this.listeners=new Mi(La(u)),this.windowListeners=new Mi(Tt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tn.Resize,this.handleCancel),this.windowListeners.add(tn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(tn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:i,onStart:u}=this.props,r=i.node.current;r&&o1(r),u(on)}handleKeyDown(i){if(ko(i)){const{active:u,context:r,options:o}=this.props,{keyboardCodes:d=yp,coordinateGetter:m=m1,scrollBehavior:v="smooth"}=o,{code:x}=i;if(d.end.includes(x)){this.handleEnd(i);return}if(d.cancel.includes(x)){this.handleCancel(i);return}const{collisionRect:g}=r.current,b=g?{x:g.left,y:g.top}:on;this.referenceCoordinates||(this.referenceCoordinates=b);const y=m(i,{active:u,context:r.current,currentCoordinates:b});if(y){const N=Hi(y,b),w={x:0,y:0},{scrollableAncestors:M}=r.current;for(const C of M){const D=i.code,{isTop:k,isRight:K,isLeft:Y,isBottom:X,maxScroll:B,minScroll:Q}=pp(C),V=s1(C),P={x:Math.min(D===je.Right?V.right-V.width/2:V.right,Math.max(D===je.Right?V.left:V.left+V.width/2,y.x)),y:Math.min(D===je.Down?V.bottom-V.height/2:V.bottom,Math.max(D===je.Down?V.top:V.top+V.height/2,y.y))},he=D===je.Right&&!K||D===je.Left&&!Y,fe=D===je.Down&&!X||D===je.Up&&!k;if(he&&P.x!==y.x){const de=C.scrollLeft+N.x,te=D===je.Right&&de<=B.x||D===je.Left&&de>=Q.x;if(te&&!N.y){C.scrollTo({left:de,behavior:v});return}te?w.x=C.scrollLeft-de:w.x=D===je.Right?C.scrollLeft-B.x:C.scrollLeft-Q.x,w.x&&C.scrollBy({left:-w.x,behavior:v});break}else if(fe&&P.y!==y.y){const de=C.scrollTop+N.y,te=D===je.Down&&de<=B.y||D===je.Up&&de>=Q.y;if(te&&!N.x){C.scrollTo({top:de,behavior:v});return}te?w.y=C.scrollTop-de:w.y=D===je.Down?C.scrollTop-B.y:C.scrollTop-Q.y,w.y&&C.scrollBy({top:-w.y,behavior:v});break}}this.handleMove(i,Ma(Hi(y,this.referenceCoordinates),w))}}}handleMove(i,u){const{onMove:r}=this.props;i.preventDefault(),r(u)}handleEnd(i){const{onEnd:u}=this.props;i.preventDefault(),this.detach(),u()}handleCancel(i){const{onCancel:u}=this.props;i.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Yo.activators=[{eventName:"onKeyDown",handler:(a,i,u)=>{let{keyboardCodes:r=yp,onActivation:o}=i,{active:d}=u;const{code:m}=a.nativeEvent;if(r.start.includes(m)){const v=d.activatorNode.current;return v&&a.target!==v?!1:(a.preventDefault(),o==null||o({event:a.nativeEvent}),!0)}return!1}}];function gg(a){return!!(a&&"distance"in a)}function pg(a){return!!(a&&"delay"in a)}class Go{constructor(i,u,r){var o;r===void 0&&(r=d1(i.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=i,this.events=u;const{event:d}=i,{target:m}=d;this.props=i,this.events=u,this.document=La(m),this.documentListeners=new Mi(this.document),this.listeners=new Mi(r),this.windowListeners=new Mi(Tt(m)),this.initialCoordinates=(o=po(d))!=null?o:on,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:i,props:{options:{activationConstraint:u,bypassActivationConstraint:r}}}=this;if(this.listeners.add(i.move.name,this.handleMove,{passive:!1}),this.listeners.add(i.end.name,this.handleEnd),i.cancel&&this.listeners.add(i.cancel.name,this.handleCancel),this.windowListeners.add(tn.Resize,this.handleCancel),this.windowListeners.add(tn.DragStart,mg),this.windowListeners.add(tn.VisibilityChange,this.handleCancel),this.windowListeners.add(tn.ContextMenu,mg),this.documentListeners.add(tn.Keydown,this.handleKeydown),u){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(pg(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(gg(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(i,u){const{active:r,onPending:o}=this.props;o(r,i,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:i}=this,{onStart:u}=this.props;i&&(this.activated=!0,this.documentListeners.add(tn.Click,h1,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tn.SelectionChange,this.removeTextSelection),u(i))}handleMove(i){var u;const{activated:r,initialCoordinates:o,props:d}=this,{onMove:m,options:{activationConstraint:v}}=d;if(!o)return;const x=(u=po(i))!=null?u:on,g=Hi(o,x);if(!r&&v){if(gg(v)){if(v.tolerance!=null&&lo(g,v.tolerance))return this.handleCancel();if(lo(g,v.distance))return this.handleStart()}if(pg(v)&&lo(g,v.tolerance))return this.handleCancel();this.handlePending(v,g);return}i.cancelable&&i.preventDefault(),m(x)}handleEnd(){const{onAbort:i,onEnd:u}=this.props;this.detach(),this.activated||i(this.props.active),u()}handleCancel(){const{onAbort:i,onCancel:u}=this.props;this.detach(),this.activated||i(this.props.active),u()}handleKeydown(i){i.code===je.Esc&&this.handleCancel()}removeTextSelection(){var i;(i=this.document.getSelection())==null||i.removeAllRanges()}}const g1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Xo extends Go{constructor(i){const{event:u}=i,r=La(u.target);super(i,g1,r)}}Xo.activators=[{eventName:"onPointerDown",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;return!u.isPrimary||u.button!==0?!1:(r==null||r({event:u}),!0)}}];const p1={move:{name:"mousemove"},end:{name:"mouseup"}};var yo;(function(a){a[a.RightClick=2]="RightClick"})(yo||(yo={}));class v1 extends Go{constructor(i){super(i,p1,La(i.event.target))}}v1.activators=[{eventName:"onMouseDown",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;return u.button===yo.RightClick?!1:(r==null||r({event:u}),!0)}}];const ao={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class y1 extends Go{constructor(i){super(i,ao)}static setup(){return window.addEventListener(ao.move.name,i,{capture:!1,passive:!1}),function(){window.removeEventListener(ao.move.name,i)};function i(){}}}y1.activators=[{eventName:"onTouchStart",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;const{touches:o}=u;return o.length>1?!1:(r==null||r({event:u}),!0)}}];var Ri;(function(a){a[a.Pointer=0]="Pointer",a[a.DraggableRect=1]="DraggableRect"})(Ri||(Ri={}));var xs;(function(a){a[a.TreeOrder=0]="TreeOrder",a[a.ReversedTreeOrder=1]="ReversedTreeOrder"})(xs||(xs={}));function x1(a){let{acceleration:i,activator:u=Ri.Pointer,canScroll:r,draggingRect:o,enabled:d,interval:m=5,order:v=xs.TreeOrder,pointerCoordinates:x,scrollableAncestors:g,scrollableAncestorRects:b,delta:y,threshold:N}=a;const w=S1({delta:y,disabled:!d}),[M,C]=Tb(),D=S.useRef({x:0,y:0}),k=S.useRef({x:0,y:0}),K=S.useMemo(()=>{switch(u){case Ri.Pointer:return x?{top:x.y,bottom:x.y,left:x.x,right:x.x}:null;case Ri.DraggableRect:return o}},[u,o,x]),Y=S.useRef(null),X=S.useCallback(()=>{const Q=Y.current;if(!Q)return;const V=D.current.x*k.current.x,P=D.current.y*k.current.y;Q.scrollBy(V,P)},[]),B=S.useMemo(()=>v===xs.TreeOrder?[...g].reverse():g,[v,g]);S.useEffect(()=>{if(!d||!g.length||!K){C();return}for(const Q of B){if((r==null?void 0:r(Q))===!1)continue;const V=g.indexOf(Q),P=b[V];if(!P)continue;const{direction:he,speed:fe}=u1(Q,P,K,i,N);for(const de of["x","y"])w[de][he[de]]||(fe[de]=0,he[de]=0);if(fe.x>0||fe.y>0){C(),Y.current=Q,M(X,m),D.current=fe,k.current=he;return}}D.current={x:0,y:0},k.current={x:0,y:0},C()},[i,X,r,C,d,m,JSON.stringify(K),JSON.stringify(w),M,g,B,b,JSON.stringify(N)])}const b1={x:{[it.Backward]:!1,[it.Forward]:!1},y:{[it.Backward]:!1,[it.Forward]:!1}};function S1(a){let{delta:i,disabled:u}=a;const r=go(i);return Vi(o=>{if(u||!r||!o)return b1;const d={x:Math.sign(i.x-r.x),y:Math.sign(i.y-r.y)};return{x:{[it.Backward]:o.x[it.Backward]||d.x===-1,[it.Forward]:o.x[it.Forward]||d.x===1},y:{[it.Backward]:o.y[it.Backward]||d.y===-1,[it.Forward]:o.y[it.Forward]||d.y===1}}},[u,i,r])}function E1(a,i){const u=i!=null?a.get(i):void 0,r=u?u.node.current:null;return Vi(o=>{var d;return i==null?null:(d=r??o)!=null?d:null},[r,i])}function N1(a,i){return S.useMemo(()=>a.reduce((u,r)=>{const{sensor:o}=r,d=o.activators.map(m=>({eventName:m.eventName,handler:i(m.handler,r)}));return[...u,...d]},[]),[a,i])}var qi;(function(a){a[a.Always=0]="Always",a[a.BeforeDragging=1]="BeforeDragging",a[a.WhileDragging=2]="WhileDragging"})(qi||(qi={}));var xo;(function(a){a.Optimized="optimized"})(xo||(xo={}));const vg=new Map;function w1(a,i){let{dragging:u,dependencies:r,config:o}=i;const[d,m]=S.useState(null),{frequency:v,measure:x,strategy:g}=o,b=S.useRef(a),y=D(),N=Li(y),w=S.useCallback(function(k){k===void 0&&(k=[]),!N.current&&m(K=>K===null?k:K.concat(k.filter(Y=>!K.includes(Y))))},[N]),M=S.useRef(null),C=Vi(k=>{if(y&&!u)return vg;if(!k||k===vg||b.current!==a||d!=null){const K=new Map;for(let Y of a){if(!Y)continue;if(d&&d.length>0&&!d.includes(Y.id)&&Y.rect.current){K.set(Y.id,Y.rect.current);continue}const X=Y.node.current,B=X?new qo(x(X),X):null;Y.rect.current=B,B&&K.set(Y.id,B)}return K}return k},[a,d,u,y,x]);return S.useEffect(()=>{b.current=a},[a]),S.useEffect(()=>{y||w()},[u,y]),S.useEffect(()=>{d&&d.length>0&&m(null)},[JSON.stringify(d)]),S.useEffect(()=>{y||typeof v!="number"||M.current!==null||(M.current=setTimeout(()=>{w(),M.current=null},v))},[v,y,w,...r]),{droppableRects:C,measureDroppableContainers:w,measuringScheduled:d!=null};function D(){switch(g){case qi.Always:return!1;case qi.BeforeDragging:return u;default:return!u}}}function xp(a,i){return Vi(u=>a?u||(typeof i=="function"?i(a):a):null,[i,a])}function j1(a,i){return xp(a,i)}function A1(a){let{callback:i,disabled:u}=a;const r=Ho(i),o=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:d}=window;return new d(r)},[r,u]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Ds(a){let{callback:i,disabled:u}=a;const r=Ho(i),o=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:d}=window;return new d(r)},[u]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function D1(a){return new qo(Ha(a),a)}function yg(a,i,u){i===void 0&&(i=D1);const[r,o]=S.useState(null);function d(){o(x=>{if(!a)return null;if(a.isConnected===!1){var g;return(g=x??u)!=null?g:null}const b=i(a);return JSON.stringify(x)===JSON.stringify(b)?x:b})}const m=A1({callback(x){if(a)for(const g of x){const{type:b,target:y}=g;if(b==="childList"&&y instanceof HTMLElement&&y.contains(a)){d();break}}}}),v=Ds({callback:d});return vn(()=>{d(),a?(v==null||v.observe(a),m==null||m.observe(document.body,{childList:!0,subtree:!0})):(v==null||v.disconnect(),m==null||m.disconnect())},[a]),r}function C1(a){const i=xp(a);return fp(a,i)}const xg=[];function _1(a){const i=S.useRef(a),u=Vi(r=>a?r&&r!==xg&&a&&i.current&&a.parentNode===i.current.parentNode?r:As(a):xg,[a]);return S.useEffect(()=>{i.current=a},[a]),u}function O1(a){const[i,u]=S.useState(null),r=S.useRef(a),o=S.useCallback(d=>{const m=no(d.target);m&&u(v=>v?(v.set(m,vo(m)),new Map(v)):null)},[]);return S.useEffect(()=>{const d=r.current;if(a!==d){m(d);const v=a.map(x=>{const g=no(x);return g?(g.addEventListener("scroll",o,{passive:!0}),[g,vo(g)]):null}).filter(x=>x!=null);u(v.length?new Map(v):null),r.current=a}return()=>{m(a),m(d)};function m(v){v.forEach(x=>{const g=no(x);g==null||g.removeEventListener("scroll",o)})}},[o,a]),S.useMemo(()=>a.length?i?Array.from(i.values()).reduce((d,m)=>Ma(d,m),on):vp(a):on,[a,i])}function bg(a,i){i===void 0&&(i=[]);const u=S.useRef(null);return S.useEffect(()=>{u.current=null},i),S.useEffect(()=>{const r=a!==on;r&&!u.current&&(u.current=a),!r&&u.current&&(u.current=null)},[a]),u.current?Hi(a,u.current):on}function T1(a){S.useEffect(()=>{if(!js)return;const i=a.map(u=>{let{sensor:r}=u;return r.setup==null?void 0:r.setup()});return()=>{for(const u of i)u==null||u()}},a.map(i=>{let{sensor:u}=i;return u}))}function M1(a,i){return S.useMemo(()=>a.reduce((u,r)=>{let{eventName:o,handler:d}=r;return u[o]=m=>{d(m,i)},u},{}),[a,i])}function bp(a){return S.useMemo(()=>a?n1(a):null,[a])}const Sg=[];function R1(a,i){i===void 0&&(i=Ha);const[u]=a,r=bp(u?Tt(u):null),[o,d]=S.useState(Sg);function m(){d(()=>a.length?a.map(x=>gp(x)?r:new qo(i(x),x)):Sg)}const v=Ds({callback:m});return vn(()=>{v==null||v.disconnect(),m(),a.forEach(x=>v==null?void 0:v.observe(x))},[a]),o}function z1(a){if(!a)return null;if(a.children.length>1)return a;const i=a.children[0];return Xi(i)?i:a}function U1(a){let{measure:i}=a;const[u,r]=S.useState(null),o=S.useCallback(g=>{for(const{target:b}of g)if(Xi(b)){r(y=>{const N=i(b);return y?{...y,width:N.width,height:N.height}:N});break}},[i]),d=Ds({callback:o}),m=S.useCallback(g=>{const b=z1(g);d==null||d.disconnect(),b&&(d==null||d.observe(b)),r(b?i(b):null)},[i,d]),[v,x]=vs(m);return S.useMemo(()=>({nodeRef:v,rect:u,setRef:x}),[u,v,x])}const B1=[{sensor:Xo,options:{}},{sensor:Yo,options:{}}],L1={current:{}},gs={draggable:{measure:hg},droppable:{measure:hg,strategy:qi.WhileDragging,frequency:xo.Optimized},dragOverlay:{measure:Ha}};class zi extends Map{get(i){var u;return i!=null&&(u=super.get(i))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(i=>{let{disabled:u}=i;return!u})}getNodeFor(i){var u,r;return(u=(r=this.get(i))==null?void 0:r.node.current)!=null?u:void 0}}const H1={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new zi,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ys},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gs,measureDroppableContainers:ys,windowRect:null,measuringScheduled:!1},k1={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ys,draggableNodes:new Map,over:null,measureDroppableContainers:ys},Cs=S.createContext(k1),Sp=S.createContext(H1);function q1(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new zi}}}function Y1(a,i){switch(i.type){case tt.DragStart:return{...a,draggable:{...a.draggable,initialCoordinates:i.initialCoordinates,active:i.active}};case tt.DragMove:return a.draggable.active==null?a:{...a,draggable:{...a.draggable,translate:{x:i.coordinates.x-a.draggable.initialCoordinates.x,y:i.coordinates.y-a.draggable.initialCoordinates.y}}};case tt.DragEnd:case tt.DragCancel:return{...a,draggable:{...a.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tt.RegisterDroppable:{const{element:u}=i,{id:r}=u,o=new zi(a.droppable.containers);return o.set(r,u),{...a,droppable:{...a.droppable,containers:o}}}case tt.SetDroppableDisabled:{const{id:u,key:r,disabled:o}=i,d=a.droppable.containers.get(u);if(!d||r!==d.key)return a;const m=new zi(a.droppable.containers);return m.set(u,{...d,disabled:o}),{...a,droppable:{...a.droppable,containers:m}}}case tt.UnregisterDroppable:{const{id:u,key:r}=i,o=a.droppable.containers.get(u);if(!o||r!==o.key)return a;const d=new zi(a.droppable.containers);return d.delete(u),{...a,droppable:{...a.droppable,containers:d}}}default:return a}}function G1(a){let{disabled:i}=a;const{active:u,activatorEvent:r,draggableNodes:o}=S.useContext(Cs),d=go(r),m=go(u==null?void 0:u.id);return S.useEffect(()=>{if(!i&&!r&&d&&m!=null){if(!ko(d)||document.activeElement===d.target)return;const v=o.get(m);if(!v)return;const{activatorNode:x,node:g}=v;if(!x.current&&!g.current)return;requestAnimationFrame(()=>{for(const b of[x.current,g.current]){if(!b)continue;const y=zb(b);if(y){y.focus();break}}})}},[r,i,o,m,d]),null}function X1(a,i){let{transform:u,...r}=i;return a!=null&&a.length?a.reduce((o,d)=>d({transform:o,...r}),u):u}function V1(a){return S.useMemo(()=>({draggable:{...gs.draggable,...a==null?void 0:a.draggable},droppable:{...gs.droppable,...a==null?void 0:a.droppable},dragOverlay:{...gs.dragOverlay,...a==null?void 0:a.dragOverlay}}),[a==null?void 0:a.draggable,a==null?void 0:a.droppable,a==null?void 0:a.dragOverlay])}function Q1(a){let{activeNode:i,measure:u,initialRect:r,config:o=!0}=a;const d=S.useRef(!1),{x:m,y:v}=typeof o=="boolean"?{x:o,y:o}:o;vn(()=>{if(!m&&!v||!i){d.current=!1;return}if(d.current||!r)return;const g=i==null?void 0:i.node.current;if(!g||g.isConnected===!1)return;const b=u(g),y=fp(b,r);if(m||(y.x=0),v||(y.y=0),d.current=!0,Math.abs(y.x)>0||Math.abs(y.y)>0){const N=dp(g);N&&N.scrollBy({top:y.y,left:y.x})}},[i,m,v,r,u])}const Ep=S.createContext({...on,scaleX:1,scaleY:1});var ml;(function(a){a[a.Uninitialized=0]="Uninitialized",a[a.Initializing=1]="Initializing",a[a.Initialized=2]="Initialized"})(ml||(ml={}));const K1=S.memo(function(i){var u,r,o,d;let{id:m,accessibility:v,autoScroll:x=!0,children:g,sensors:b=B1,collisionDetection:y=$b,measuring:N,modifiers:w,...M}=i;const C=S.useReducer(Y1,void 0,q1),[D,k]=C,[K,Y]=qb(),[X,B]=S.useState(ml.Uninitialized),Q=X===ml.Initialized,{draggable:{active:V,nodes:P,translate:he},droppable:{containers:fe}}=D,de=V!=null?P.get(V):null,te=S.useRef({initial:null,translated:null}),I=S.useMemo(()=>{var Xe;return V!=null?{id:V,data:(Xe=de==null?void 0:de.data)!=null?Xe:L1,rect:te}:null},[V,de]),ce=S.useRef(null),[ve,z]=S.useState(null),[Z,ie]=S.useState(null),oe=Li(M,Object.values(M)),W=Qi("DndDescribedBy",m),j=S.useMemo(()=>fe.getEnabled(),[fe]),L=V1(N),{droppableRects:$,measureDroppableContainers:J,measuringScheduled:ae}=w1(j,{dragging:Q,dependencies:[he.x,he.y],config:L.droppable}),ne=E1(P,V),se=S.useMemo(()=>Z?po(Z):null,[Z]),Le=Yl(),ye=j1(ne,L.draggable.measure);Q1({activeNode:V!=null?P.get(V):null,config:Le.layoutShiftCompensation,initialRect:ye,measure:L.draggable.measure});const Se=yg(ne,L.draggable.measure,ye),Ze=yg(ne?ne.parentElement:null),_e=S.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:$,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:fe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nn=fe.getNodeFor((u=_e.current.over)==null?void 0:u.id),Ie=U1({measure:L.dragOverlay.measure}),F=(r=Ie.nodeRef.current)!=null?r:ne,Oe=Q?(o=Ie.rect)!=null?o:Se:null,xt=!!(Ie.nodeRef.current&&Ie.rect),yn=C1(xt?null:Se),yl=bp(F?Tt(F):null),qt=_1(Q?nn??ne:null),Gn=R1(qt),kl=X1(w,{transform:{x:he.x-yn.x,y:he.y-yn.y,scaleX:1,scaleY:1},activatorEvent:Z,active:I,activeNodeRect:Se,containerNodeRect:Ze,draggingNodeRect:Oe,over:_e.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:qt,scrollableAncestorRects:Gn,windowRect:yl}),Ki=se?Ma(se,he):null,dt=O1(qt),_s=bg(dt),Zi=bg(dt,[Se]),xn=Ma(kl,_s),ln=Oe?Ib(Oe,kl):null,xl=I&&ln?y({active:I,collisionRect:ln,droppableRects:$,droppableContainers:j,pointerCoordinates:Ki}):null,ka=cp(xl,"id"),[fn,Ji]=S.useState(null),bl=xt?kl:Ma(kl,Zi),pt=Wb(bl,(d=fn==null?void 0:fn.rect)!=null?d:null,Se),Yt=S.useRef(null),ht=S.useCallback((Xe,Ve)=>{let{sensor:nt,options:bt}=Ve;if(ce.current==null)return;const St=P.get(ce.current);if(!St)return;const mt=Xe.nativeEvent,Et=new nt({active:ce.current,activeNode:St,event:mt,options:bt,context:_e,onAbort(Pe){if(!P.get(Pe))return;const{onDragAbort:Mt}=oe.current,Xt={id:Pe};Mt==null||Mt(Xt),K({type:"onDragAbort",event:Xt})},onPending(Pe,an,Mt,Xt){if(!P.get(Pe))return;const{onDragPending:Sn}=oe.current,un={id:Pe,constraint:an,initialCoordinates:Mt,offset:Xt};Sn==null||Sn(un),K({type:"onDragPending",event:un})},onStart(Pe){const an=ce.current;if(an==null)return;const Mt=P.get(an);if(!Mt)return;const{onDragStart:Xt}=oe.current,bn={activatorEvent:mt,active:{id:an,data:Mt.data,rect:te}};gl.unstable_batchedUpdates(()=>{Xt==null||Xt(bn),B(ml.Initializing),k({type:tt.DragStart,initialCoordinates:Pe,active:an}),K({type:"onDragStart",event:bn}),z(Yt.current),ie(mt)})},onMove(Pe){k({type:tt.DragMove,coordinates:Pe})},onEnd:Gt(tt.DragEnd),onCancel:Gt(tt.DragCancel)});Yt.current=Et;function Gt(Pe){return async function(){const{active:Mt,collisions:Xt,over:bn,scrollAdjustedTranslate:Sn}=_e.current;let un=null;if(Mt&&Sn){const{cancelDrop:Xn}=oe.current;un={activatorEvent:mt,active:Mt,collisions:Xt,delta:Sn,over:bn},Pe===tt.DragEnd&&typeof Xn=="function"&&await Promise.resolve(Xn(un))&&(Pe=tt.DragCancel)}ce.current=null,gl.unstable_batchedUpdates(()=>{k({type:Pe}),B(ml.Uninitialized),Ji(null),z(null),ie(null),Yt.current=null;const Xn=Pe===tt.DragEnd?"onDragEnd":"onDragCancel";if(un){const Vt=oe.current[Xn];Vt==null||Vt(un),K({type:Xn,event:un})}})}}},[P]),Os=S.useCallback((Xe,Ve)=>(nt,bt)=>{const St=nt.nativeEvent,mt=P.get(bt);if(ce.current!==null||!mt||St.dndKit||St.defaultPrevented)return;const Et={active:mt};Xe(nt,Ve.options,Et)===!0&&(St.dndKit={capturedBy:Ve.sensor},ce.current=bt,ht(nt,Ve))},[P,ht]),$i=N1(b,Os);T1(b),vn(()=>{Se&&X===ml.Initializing&&B(ml.Initialized)},[Se,X]),S.useEffect(()=>{const{onDragMove:Xe}=oe.current,{active:Ve,activatorEvent:nt,collisions:bt,over:St}=_e.current;if(!Ve||!nt)return;const mt={active:Ve,activatorEvent:nt,collisions:bt,delta:{x:xn.x,y:xn.y},over:St};gl.unstable_batchedUpdates(()=>{Xe==null||Xe(mt),K({type:"onDragMove",event:mt})})},[xn.x,xn.y]),S.useEffect(()=>{const{active:Xe,activatorEvent:Ve,collisions:nt,droppableContainers:bt,scrollAdjustedTranslate:St}=_e.current;if(!Xe||ce.current==null||!Ve||!St)return;const{onDragOver:mt}=oe.current,Et=bt.get(ka),Gt=Et&&Et.rect.current?{id:Et.id,rect:Et.rect.current,data:Et.data,disabled:Et.disabled}:null,Pe={active:Xe,activatorEvent:Ve,collisions:nt,delta:{x:St.x,y:St.y},over:Gt};gl.unstable_batchedUpdates(()=>{Ji(Gt),mt==null||mt(Pe),K({type:"onDragOver",event:Pe})})},[ka]),vn(()=>{_e.current={activatorEvent:Z,active:I,activeNode:ne,collisionRect:ln,collisions:xl,droppableRects:$,draggableNodes:P,draggingNode:F,draggingNodeRect:Oe,droppableContainers:fe,over:fn,scrollableAncestors:qt,scrollAdjustedTranslate:xn},te.current={initial:Oe,translated:ln}},[I,ne,xl,ln,P,F,Oe,$,fe,fn,qt,xn]),x1({...Le,delta:he,draggingRect:ln,pointerCoordinates:Ki,scrollableAncestors:qt,scrollableAncestorRects:Gn});const Ts=S.useMemo(()=>({active:I,activeNode:ne,activeNodeRect:Se,activatorEvent:Z,collisions:xl,containerNodeRect:Ze,dragOverlay:Ie,draggableNodes:P,droppableContainers:fe,droppableRects:$,over:fn,measureDroppableContainers:J,scrollableAncestors:qt,scrollableAncestorRects:Gn,measuringConfiguration:L,measuringScheduled:ae,windowRect:yl}),[I,ne,Se,Z,xl,Ze,Ie,P,fe,$,fn,J,qt,Gn,L,ae,yl]),ql=S.useMemo(()=>({activatorEvent:Z,activators:$i,active:I,activeNodeRect:Se,ariaDescribedById:{draggable:W},dispatch:k,draggableNodes:P,over:fn,measureDroppableContainers:J}),[Z,$i,I,Se,k,W,P,fn,J]);return Ot.createElement(rp.Provider,{value:Y},Ot.createElement(Cs.Provider,{value:ql},Ot.createElement(Sp.Provider,{value:Ts},Ot.createElement(Ep.Provider,{value:pt},g)),Ot.createElement(G1,{disabled:(v==null?void 0:v.restoreFocus)===!1})),Ot.createElement(Xb,{...v,hiddenTextDescribedById:W}));function Yl(){const Xe=(ve==null?void 0:ve.autoScrollEnabled)===!1,Ve=typeof x=="object"?x.enabled===!1:x===!1,nt=Q&&!Xe&&!Ve;return typeof x=="object"?{...x,enabled:nt}:{enabled:nt}}}),Z1=S.createContext(null),Eg="button",J1="Draggable";function $1(a){let{id:i,data:u,disabled:r=!1,attributes:o}=a;const d=Qi(J1),{activators:m,activatorEvent:v,active:x,activeNodeRect:g,ariaDescribedById:b,draggableNodes:y,over:N}=S.useContext(Cs),{role:w=Eg,roleDescription:M="draggable",tabIndex:C=0}=o??{},D=(x==null?void 0:x.id)===i,k=S.useContext(D?Ep:Z1),[K,Y]=vs(),[X,B]=vs(),Q=M1(m,i),V=Li(u);vn(()=>(y.set(i,{id:i,key:d,node:K,activatorNode:X,data:V}),()=>{const he=y.get(i);he&&he.key===d&&y.delete(i)}),[y,i]);const P=S.useMemo(()=>({role:w,tabIndex:C,"aria-disabled":r,"aria-pressed":D&&w===Eg?!0:void 0,"aria-roledescription":M,"aria-describedby":b.draggable}),[r,w,C,D,M,b.draggable]);return{active:x,activatorEvent:v,activeNodeRect:g,attributes:P,isDragging:D,listeners:r?void 0:Q,node:K,over:N,setNodeRef:Y,setActivatorNodeRef:B,transform:k}}function W1(){return S.useContext(Sp)}const F1="Droppable",I1={timeout:25};function Np(a){let{data:i,disabled:u=!1,id:r,resizeObserverConfig:o}=a;const d=Qi(F1),{active:m,dispatch:v,over:x,measureDroppableContainers:g}=S.useContext(Cs),b=S.useRef({disabled:u}),y=S.useRef(!1),N=S.useRef(null),w=S.useRef(null),{disabled:M,updateMeasurementsFor:C,timeout:D}={...I1,...o},k=Li(C??r),K=S.useCallback(()=>{if(!y.current){y.current=!0;return}w.current!=null&&clearTimeout(w.current),w.current=setTimeout(()=>{g(Array.isArray(k.current)?k.current:[k.current]),w.current=null},D)},[D]),Y=Ds({callback:K,disabled:M||!m}),X=S.useCallback((P,he)=>{Y&&(he&&(Y.unobserve(he),y.current=!1),P&&Y.observe(P))},[Y]),[B,Q]=vs(X),V=Li(i);return S.useEffect(()=>{!Y||!B.current||(Y.disconnect(),y.current=!1,Y.observe(B.current))},[B,Y]),S.useEffect(()=>(v({type:tt.RegisterDroppable,element:{id:r,key:d,disabled:u,node:B,rect:N,data:V}}),()=>v({type:tt.UnregisterDroppable,key:d,id:r})),[r]),S.useEffect(()=>{u!==b.current.disabled&&(v({type:tt.SetDroppableDisabled,id:r,key:d,disabled:u}),b.current.disabled=u)},[r,d,u,v]),{active:m,rect:N,isOver:(x==null?void 0:x.id)===r,node:B,over:x,setNodeRef:Q}}function wp(a,i,u){const r=a.slice();return r.splice(u<0?r.length+u:u,0,r.splice(i,1)[0]),r}function P1(a,i){return a.reduce((u,r,o)=>{const d=i.get(r);return d&&(u[o]=d),u},Array(a.length))}function cs(a){return a!==null&&a>=0}function eS(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let u=0;u<a.length;u++)if(a[u]!==i[u])return!1;return!0}function tS(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const jp=a=>{let{rects:i,activeIndex:u,overIndex:r,index:o}=a;const d=wp(i,r,u),m=i[o],v=d[o];return!v||!m?null:{x:v.left-m.left,y:v.top-m.top,scaleX:v.width/m.width,scaleY:v.height/m.height}},os={scaleX:1,scaleY:1},nS=a=>{var i;let{activeIndex:u,activeNodeRect:r,index:o,rects:d,overIndex:m}=a;const v=(i=d[u])!=null?i:r;if(!v)return null;if(o===u){const g=d[m];return g?{x:0,y:u<m?g.top+g.height-(v.top+v.height):g.top-v.top,...os}:null}const x=lS(d,o,u);return o>u&&o<=m?{x:0,y:-v.height-x,...os}:o<u&&o>=m?{x:0,y:v.height+x,...os}:{x:0,y:0,...os}};function lS(a,i,u){const r=a[i],o=a[i-1],d=a[i+1];return r?u<i?o?r.top-(o.top+o.height):d?d.top-(r.top+r.height):0:d?d.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const Ap="Sortable",Dp=Ot.createContext({activeIndex:-1,containerId:Ap,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:jp,disabled:{draggable:!1,droppable:!1}});function aS(a){let{children:i,id:u,items:r,strategy:o=jp,disabled:d=!1}=a;const{active:m,dragOverlay:v,droppableRects:x,over:g,measureDroppableContainers:b}=W1(),y=Qi(Ap,u),N=v.rect!==null,w=S.useMemo(()=>r.map(Q=>typeof Q=="object"&&"id"in Q?Q.id:Q),[r]),M=m!=null,C=m?w.indexOf(m.id):-1,D=g?w.indexOf(g.id):-1,k=S.useRef(w),K=!eS(w,k.current),Y=D!==-1&&C===-1||K,X=tS(d);vn(()=>{K&&M&&b(w)},[K,w,M,b]),S.useEffect(()=>{k.current=w},[w]);const B=S.useMemo(()=>({activeIndex:C,containerId:y,disabled:X,disableTransforms:Y,items:w,overIndex:D,useDragOverlay:N,sortedRects:P1(w,x),strategy:o}),[C,y,X.draggable,X.droppable,Y,w,D,x,N,o]);return Ot.createElement(Dp.Provider,{value:B},i)}const iS=a=>{let{id:i,items:u,activeIndex:r,overIndex:o}=a;return wp(u,r,o).indexOf(i)},uS=a=>{let{containerId:i,isSorting:u,wasDragging:r,index:o,items:d,newIndex:m,previousItems:v,previousContainerId:x,transition:g}=a;return!g||!r||v!==d&&o===m?!1:u?!0:m!==o&&i===x},sS={duration:200,easing:"ease"},Cp="transform",rS=ki.Transition.toString({property:Cp,duration:0,easing:"linear"}),cS={roleDescription:"sortable"};function oS(a){let{disabled:i,index:u,node:r,rect:o}=a;const[d,m]=S.useState(null),v=S.useRef(u);return vn(()=>{if(!i&&u!==v.current&&r.current){const x=o.current;if(x){const g=Ha(r.current,{ignoreTransform:!0}),b={x:x.left-g.left,y:x.top-g.top,scaleX:x.width/g.width,scaleY:x.height/g.height};(b.x||b.y)&&m(b)}}u!==v.current&&(v.current=u)},[i,u,r,o]),S.useEffect(()=>{d&&m(null)},[d]),d}function fS(a){let{animateLayoutChanges:i=uS,attributes:u,disabled:r,data:o,getNewIndex:d=iS,id:m,strategy:v,resizeObserverConfig:x,transition:g=sS}=a;const{items:b,containerId:y,activeIndex:N,disabled:w,disableTransforms:M,sortedRects:C,overIndex:D,useDragOverlay:k,strategy:K}=S.useContext(Dp),Y=dS(r,w),X=b.indexOf(m),B=S.useMemo(()=>({sortable:{containerId:y,index:X,items:b},...o}),[y,o,X,b]),Q=S.useMemo(()=>b.slice(b.indexOf(m)),[b,m]),{rect:V,node:P,isOver:he,setNodeRef:fe}=Np({id:m,data:B,disabled:Y.droppable,resizeObserverConfig:{updateMeasurementsFor:Q,...x}}),{active:de,activatorEvent:te,activeNodeRect:I,attributes:ce,setNodeRef:ve,listeners:z,isDragging:Z,over:ie,setActivatorNodeRef:oe,transform:W}=$1({id:m,data:B,attributes:{...cS,...u},disabled:Y.draggable}),j=Ob(fe,ve),L=!!de,$=L&&!M&&cs(N)&&cs(D),J=!k&&Z,ae=J&&$?W:null,se=$?ae??(v??K)({rects:C,activeNodeRect:I,activeIndex:N,overIndex:D,index:X}):null,Le=cs(N)&&cs(D)?d({id:m,items:b,activeIndex:N,overIndex:D}):X,ye=de==null?void 0:de.id,Se=S.useRef({activeId:ye,items:b,newIndex:Le,containerId:y}),Ze=b!==Se.current.items,_e=i({active:de,containerId:y,isDragging:Z,isSorting:L,id:m,index:X,items:b,newIndex:Se.current.newIndex,previousItems:Se.current.items,previousContainerId:Se.current.containerId,transition:g,wasDragging:Se.current.activeId!=null}),nn=oS({disabled:!_e,index:X,node:P,rect:V});return S.useEffect(()=>{L&&Se.current.newIndex!==Le&&(Se.current.newIndex=Le),y!==Se.current.containerId&&(Se.current.containerId=y),b!==Se.current.items&&(Se.current.items=b)},[L,Le,y,b]),S.useEffect(()=>{if(ye===Se.current.activeId)return;if(ye!=null&&Se.current.activeId==null){Se.current.activeId=ye;return}const F=setTimeout(()=>{Se.current.activeId=ye},50);return()=>clearTimeout(F)},[ye]),{active:de,activeIndex:N,attributes:ce,data:B,rect:V,index:X,newIndex:Le,items:b,isOver:he,isSorting:L,isDragging:Z,listeners:z,node:P,overIndex:D,over:ie,setNodeRef:j,setActivatorNodeRef:oe,setDroppableNodeRef:fe,setDraggableNodeRef:ve,transform:nn??se,transition:Ie()};function Ie(){if(nn||Ze&&Se.current.newIndex===X)return rS;if(!(J&&!ko(te)||!g)&&(L||_e))return ki.Transition.toString({...g,property:Cp})}}function dS(a,i){var u,r;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:(u=a==null?void 0:a.draggable)!=null?u:i.draggable,droppable:(r=a==null?void 0:a.droppable)!=null?r:i.droppable}}function bs(a){if(!a)return!1;const i=a.data.current;return!!(i&&"sortable"in i&&typeof i.sortable=="object"&&"containerId"in i.sortable&&"items"in i.sortable&&"index"in i.sortable)}const hS=[je.Down,je.Right,je.Up,je.Left],mS=(a,i)=>{let{context:{active:u,collisionRect:r,droppableRects:o,droppableContainers:d,over:m,scrollableAncestors:v}}=i;if(hS.includes(a.code)){if(a.preventDefault(),!u||!r)return;const x=[];d.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const N=o.get(y.id);if(N)switch(a.code){case je.Down:r.top<N.top&&x.push(y);break;case je.Up:r.top>N.top&&x.push(y);break;case je.Left:r.left>N.left&&x.push(y);break;case je.Right:r.left<N.left&&x.push(y);break}});const g=op({collisionRect:r,droppableRects:o,droppableContainers:x});let b=cp(g,"id");if(b===(m==null?void 0:m.id)&&g.length>1&&(b=g[1].id),b!=null){const y=d.get(u.id),N=d.get(b),w=N?o.get(N.id):null,M=N==null?void 0:N.node.current;if(M&&w&&y&&N){const D=As(M).some((Q,V)=>v[V]!==Q),k=_p(y,N),K=gS(y,N),Y=D||!k?{x:0,y:0}:{x:K?r.width-w.width:0,y:K?r.height-w.height:0},X={x:w.left,y:w.top};return Y.x&&Y.y?X:Hi(X,Y)}}}};function _p(a,i){return!bs(a)||!bs(i)?!1:a.data.current.sortable.containerId===i.data.current.sortable.containerId}function gS(a,i){return!bs(a)||!bs(i)||!_p(a,i)?!1:a.data.current.sortable.index<i.data.current.sortable.index}function pS({card:a,boardId:i}){const{mutate:u}=yt(),[r,o]=S.useState(!1),[d,m]=S.useState(a.title),{attributes:v,listeners:x,setNodeRef:g,transform:b,transition:y,isDragging:N}=fS({id:a.id}),w={transform:ki.Transform.toString(b),transition:y,opacity:N?.4:1};function M(){const C=d.trim();C!==""&&C!==a.title?u(D=>_x(D,i,a.id,{title:C,updatedAt:new Date().toISOString()})):m(a.title),o(!1)}return h.jsxs("div",{ref:g,style:w,className:"group flex items-start gap-1.5 rounded-md border border-line bg-panel p-2",children:[h.jsx("button",{...v,...x,"aria-label":"カードを移動",className:"mt-0.5 cursor-grab touch-none px-0.5 text-fg-faint hover:text-fg-muted active:cursor-grabbing",children:"⠿"}),h.jsx("div",{className:"min-w-0 flex-1",children:a.repo?h.jsx("a",{href:`https://github.com/${a.repo}`,target:"_blank",rel:"noreferrer",className:"block truncate font-mono text-sm text-fg hover:text-emerald-400",title:a.repo,children:a.title}):r?h.jsx("input",{autoFocus:!0,value:d,onChange:C=>m(C.target.value),onBlur:M,onKeyDown:C=>{C.nativeEvent.isComposing||(C.key==="Enter"&&(C.preventDefault(),M()),C.key==="Escape"&&(m(a.title),o(!1)))},className:"w-full rounded border border-line-strong bg-panel-2 px-1 py-0.5 text-sm text-fg focus:border-emerald-500/50 focus:outline-none"}):h.jsx("button",{onClick:()=>o(!0),className:"block w-full truncate text-left text-sm text-fg",children:a.title})}),h.jsx("button",{type:"button",onClick:()=>{window.confirm(`カード「${a.title}」を削除しますか?`)&&u(C=>Ox(C,i,a.id))},"aria-label":"カードを削除",className:"shrink-0 text-fg-faint opacity-60 transition-opacity group-hover:opacity-100 hover:text-rose-400",children:"×"})]})}function vS({boardId:a,column:i,cards:u}){const{mutate:r}=yt(),{setNodeRef:o,isOver:d}=Np({id:i.id}),[m,v]=S.useState(!1),[x,g]=S.useState("");function b(){const y=x.trim();if(y!==""){const N=new Date().toISOString();r(w=>Jg(w,a,i.id,{id:$g("card"),repo:null,title:y,note:"",updatedAt:N}))}g(""),v(!1)}return h.jsxs("div",{className:"flex w-64 shrink-0 flex-col rounded-xl border border-line bg-panel-2/50",children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[h.jsx("span",{className:"font-mono text-xs font-semibold tracking-wider text-fg-muted uppercase",children:i.name}),h.jsx("span",{className:"font-mono text-xs text-fg-faint",children:u.length})]}),h.jsxs("div",{ref:o,className:`flex min-h-16 flex-1 flex-col gap-1.5 px-2 pb-2 transition-colors ${d?"bg-emerald-400/[0.04]":""}`,children:[h.jsx(aS,{items:u.map(y=>y.id),strategy:nS,children:u.map(y=>h.jsx(pS,{card:y,boardId:a},y.id))}),m?h.jsx("input",{autoFocus:!0,value:x,onChange:y=>g(y.target.value),onBlur:b,onKeyDown:y=>{y.nativeEvent.isComposing||(y.key==="Enter"&&(y.preventDefault(),b()),y.key==="Escape"&&(g(""),v(!1)))},placeholder:"カードのタイトル",className:"rounded-md border border-line-strong bg-panel px-2 py-1.5 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}):h.jsx("button",{type:"button",onClick:()=>v(!0),className:"rounded-md px-2 py-1 text-left text-xs text-fg-faint hover:text-fg-muted",children:"+ カード"})]})]})}function yS(){const{data:a,mutate:i}=yt(),u=Vb(fg(Xo,{activationConstraint:{distance:4}}),fg(Yo,{coordinateGetter:mS})),r=((a==null?void 0:a.boards.length)??0)>0;S.useEffect(()=>{a&&!r&&i(v=>void Zg(v,new Date().toISOString()))},[a,r,i]);const o=a==null?void 0:a.boards[0];if(!o)return h.jsx("div",{className:"grid h-full place-items-center text-sm text-fg-muted",children:"ボードを準備中…"});const d=Tx(o);function m(v){const{active:x,over:g}=v;if(!g||x.id===g.id)return;const b=String(x.id),y=String(g.id);i(N=>{const w=N.boards.find(C=>C.id===o.id);if(!w)return;const M=Rx(w,y);M&&Cx(N,o.id,b,M.columnId,M.index)})}return h.jsx("div",{className:"h-full overflow-x-auto p-4",children:h.jsx(K1,{sensors:u,collisionDetection:op,onDragEnd:m,children:h.jsx("div",{className:"flex gap-3",children:o.columns.map(v=>h.jsx(vS,{boardId:o.id,column:v,cards:d[v.id]??[]},v.id))})})})}function Op({kind:a,message:i}){return h.jsx("div",{className:"grid h-full place-items-center p-8",children:h.jsxs("div",{className:"max-w-md text-center",children:[a==="no-local-cache"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"キャッシュがありません"}),h.jsxs("p",{className:"text-sm text-fg-muted",children:["先にターミナルで"," ",h.jsx("code",{className:"rounded bg-panel px-1.5 py-0.5 font-mono text-emerald-400",children:"pnpm sync"})," を実行してください。"]})]}),a==="unauthorized"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"サインインの有効期限が切れました"}),h.jsx("p",{className:"text-sm text-fg-muted",children:"もう一度 GitHub でサインインすると、続きから利用できます。"}),h.jsx("a",{href:"/api/auth/login",className:"mt-5 inline-flex items-center rounded-lg border border-line-strong bg-panel px-4 py-2 text-sm font-medium text-fg transition-colors hover:border-emerald-500/40",children:"GitHub で再サインイン"})]}),a==="unavailable"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"データを取得できませんでした"}),h.jsx("p",{className:"text-sm text-fg-muted",children:"GitHub からの取得に失敗しました。時間をおいて再読み込みしてください。"}),h.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-5 inline-flex items-center rounded-lg border border-line-strong-strong bg-panel px-4 py-2 text-sm font-medium text-fg transition-colors hover:border-emerald-500/40",children:"再読み込み"})]}),a!=="unauthorized"&&h.jsx("p",{className:"mt-2 font-mono text-xs text-fg-faint",children:i})]})})}const xS="ENTRIES",Tp="KEYS",Mp="VALUES",ft="";class io{constructor(i,u){const r=i._tree,o=Array.from(r.keys());this.set=i,this._type=u,this._path=o.length>0?[{node:r,keys:o}]:[]}next(){const i=this.dive();return this.backtrack(),i}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:i,keys:u}=Ca(this._path);if(Ca(u)===ft)return{done:!1,value:this.result()};const r=i.get(Ca(u));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const i=Ca(this._path).keys;i.pop(),!(i.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:i})=>Ca(i)).filter(i=>i!==ft).join("")}value(){return Ca(this._path).node.get(ft)}result(){switch(this._type){case Mp:return this.value();case Tp:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const Ca=a=>a[a.length-1],bS=(a,i,u)=>{const r=new Map;if(i===void 0)return r;const o=i.length+1,d=o+u,m=new Uint8Array(d*o).fill(u+1);for(let v=0;v<o;++v)m[v]=v;for(let v=1;v<d;++v)m[v*o]=v;return Rp(a,i,u,r,m,1,o,""),r},Rp=(a,i,u,r,o,d,m,v)=>{const x=d*m;e:for(const g of a.keys())if(g===ft){const b=o[x-1];b<=u&&r.set(v,[a.get(g),b])}else{let b=d;for(let y=0;y<g.length;++y,++b){const N=g[y],w=m*b,M=w-m;let C=o[w];const D=Math.max(0,b-u-1),k=Math.min(m-1,b+u);for(let K=D;K<k;++K){const Y=N!==i[K],X=o[M+K]+ +Y,B=o[M+K+1]+1,Q=o[w+K]+1,V=o[w+K+1]=Math.min(X,B,Q);V<C&&(C=V)}if(C>u)continue e}Rp(a.get(g),i,u,r,o,b,m,v+g)}};class pl{constructor(i=new Map,u=""){this._size=void 0,this._tree=i,this._prefix=u}atPrefix(i){if(!i.startsWith(this._prefix))throw new Error("Mismatched prefix");const[u,r]=Ss(this._tree,i.slice(this._prefix.length));if(u===void 0){const[o,d]=Vo(r);for(const m of o.keys())if(m!==ft&&m.startsWith(d)){const v=new Map;return v.set(m.slice(d.length),o.get(m)),new pl(v,i)}}return new pl(u,i)}clear(){this._size=void 0,this._tree.clear()}delete(i){return this._size=void 0,SS(this._tree,i)}entries(){return new io(this,xS)}forEach(i){for(const[u,r]of this)i(u,r,this)}fuzzyGet(i,u){return bS(this._tree,i,u)}get(i){const u=bo(this._tree,i);return u!==void 0?u.get(ft):void 0}has(i){const u=bo(this._tree,i);return u!==void 0&&u.has(ft)}keys(){return new io(this,Tp)}set(i,u){if(typeof i!="string")throw new Error("key must be a string");return this._size=void 0,uo(this._tree,i).set(ft,u),this}get size(){if(this._size)return this._size;this._size=0;const i=this.entries();for(;!i.next().done;)this._size+=1;return this._size}update(i,u){if(typeof i!="string")throw new Error("key must be a string");this._size=void 0;const r=uo(this._tree,i);return r.set(ft,u(r.get(ft))),this}fetch(i,u){if(typeof i!="string")throw new Error("key must be a string");this._size=void 0;const r=uo(this._tree,i);let o=r.get(ft);return o===void 0&&r.set(ft,o=u()),o}values(){return new io(this,Mp)}[Symbol.iterator](){return this.entries()}static from(i){const u=new pl;for(const[r,o]of i)u.set(r,o);return u}static fromObject(i){return pl.from(Object.entries(i))}}const Ss=(a,i,u=[])=>{if(i.length===0||a==null)return[a,u];for(const r of a.keys())if(r!==ft&&i.startsWith(r))return u.push([a,r]),Ss(a.get(r),i.slice(r.length),u);return u.push([a,i]),Ss(void 0,"",u)},bo=(a,i)=>{if(i.length===0||a==null)return a;for(const u of a.keys())if(u!==ft&&i.startsWith(u))return bo(a.get(u),i.slice(u.length))},uo=(a,i)=>{const u=i.length;e:for(let r=0;a&&r<u;){for(const d of a.keys())if(d!==ft&&i[r]===d[0]){const m=Math.min(u-r,d.length);let v=1;for(;v<m&&i[r+v]===d[v];)++v;const x=a.get(d);if(v===d.length)a=x;else{const g=new Map;g.set(d.slice(v),x),a.set(i.slice(r,r+v),g),a.delete(d),a=g}r+=v;continue e}const o=new Map;return a.set(i.slice(r),o),o}return a},SS=(a,i)=>{const[u,r]=Ss(a,i);if(u!==void 0){if(u.delete(ft),u.size===0)zp(r);else if(u.size===1){const[o,d]=u.entries().next().value;Up(r,o,d)}}},zp=a=>{if(a.length===0)return;const[i,u]=Vo(a);if(i.delete(u),i.size===0)zp(a.slice(0,-1));else if(i.size===1){const[r,o]=i.entries().next().value;r!==ft&&Up(a.slice(0,-1),r,o)}},Up=(a,i,u)=>{if(a.length===0)return;const[r,o]=Vo(a);r.set(o+i,u),r.delete(o)},Vo=a=>a[a.length-1],Qo="or",Bp="and",ES="and_not";class Ra{constructor(i){if((i==null?void 0:i.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const u=i.autoVacuum==null||i.autoVacuum===!0?co:i.autoVacuum;this._options={...ro,...i,autoVacuum:u,searchOptions:{...Ng,...i.searchOptions||{}},autoSuggestOptions:{...DS,...i.autoSuggestOptions||{}}},this._index=new pl,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Eo,this.addFields(this._options.fields)}add(i){const{extractField:u,stringifyField:r,tokenize:o,processTerm:d,fields:m,idField:v}=this._options,x=u(i,v);if(x==null)throw new Error(`MiniSearch: document does not have ID field "${v}"`);if(this._idToShortId.has(x))throw new Error(`MiniSearch: duplicate ID ${x}`);const g=this.addDocumentId(x);this.saveStoredFields(g,i);for(const b of m){const y=u(i,b);if(y==null)continue;const N=o(r(y,b),b),w=this._fieldIds[b],M=new Set(N).size;this.addFieldLength(g,w,this._documentCount-1,M);for(const C of N){const D=d(C,b);if(Array.isArray(D))for(const k of D)this.addTerm(w,g,k);else D&&this.addTerm(w,g,D)}}}addAll(i){for(const u of i)this.add(u)}addAllAsync(i,u={}){const{chunkSize:r=10}=u,o={chunk:[],promise:Promise.resolve()},{chunk:d,promise:m}=i.reduce(({chunk:v,promise:x},g,b)=>(v.push(g),(b+1)%r===0?{chunk:[],promise:x.then(()=>new Promise(y=>setTimeout(y,0))).then(()=>this.addAll(v))}:{chunk:v,promise:x}),o);return m.then(()=>this.addAll(d))}remove(i){const{tokenize:u,processTerm:r,extractField:o,stringifyField:d,fields:m,idField:v}=this._options,x=o(i,v);if(x==null)throw new Error(`MiniSearch: document does not have ID field "${v}"`);const g=this._idToShortId.get(x);if(g==null)throw new Error(`MiniSearch: cannot remove document with ID ${x}: it is not in the index`);for(const b of m){const y=o(i,b);if(y==null)continue;const N=u(d(y,b),b),w=this._fieldIds[b],M=new Set(N).size;this.removeFieldLength(g,w,this._documentCount,M);for(const C of N){const D=r(C,b);if(Array.isArray(D))for(const k of D)this.removeTerm(w,g,k);else D&&this.removeTerm(w,g,D)}}this._storedFields.delete(g),this._documentIds.delete(g),this._idToShortId.delete(x),this._fieldLength.delete(g),this._documentCount-=1}removeAll(i){if(i)for(const u of i)this.remove(u);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new pl,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(i){const u=this._idToShortId.get(i);if(u==null)throw new Error(`MiniSearch: cannot discard document with ID ${i}: it is not in the index`);this._idToShortId.delete(i),this._documentIds.delete(u),this._storedFields.delete(u),(this._fieldLength.get(u)||[]).forEach((r,o)=>{this.removeFieldLength(u,o,this._documentCount,r)}),this._fieldLength.delete(u),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:i,minDirtCount:u,batchSize:r,batchWait:o}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:o},{minDirtCount:u,minDirtFactor:i})}discardAll(i){const u=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const r of i)this.discard(r)}finally{this._options.autoVacuum=u}this.maybeAutoVacuum()}replace(i){const{idField:u,extractField:r}=this._options,o=r(i,u);this.discard(o),this.add(i)}vacuum(i={}){return this.conditionalVacuum(i)}conditionalVacuum(i,u){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&u,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const r=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Eo,this.performVacuuming(i,r)}),this._enqueuedVacuum)):this.vacuumConditionsMet(u)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(i),this._currentVacuum)}async performVacuuming(i,u){const r=this._dirtCount;if(this.vacuumConditionsMet(u)){const o=i.batchSize||So.batchSize,d=i.batchWait||So.batchWait;let m=1;for(const[v,x]of this._index){for(const[g,b]of x)for(const[y]of b)this._documentIds.has(y)||(b.size<=1?x.delete(g):b.delete(y));this._index.get(v).size===0&&this._index.delete(v),m%o===0&&await new Promise(g=>setTimeout(g,d)),m+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(i){if(i==null)return!0;let{minDirtCount:u,minDirtFactor:r}=i;return u=u||co.minDirtCount,r=r||co.minDirtFactor,this.dirtCount>=u&&this.dirtFactor>=r}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(i){return this._idToShortId.has(i)}getStoredFields(i){const u=this._idToShortId.get(i);if(u!=null)return this._storedFields.get(u)}search(i,u={}){const{searchOptions:r}=this._options,o={...r,...u},d=this.executeQuery(i,u),m=[];for(const[v,{score:x,terms:g,match:b}]of d){const y=g.length||1,N={id:this._documentIds.get(v),score:x*y,terms:Object.keys(b),queryTerms:g,match:b};Object.assign(N,this._storedFields.get(v)),(o.filter==null||o.filter(N))&&m.push(N)}return i===Ra.wildcard&&o.boostDocument==null||m.sort(jg),m}autoSuggest(i,u={}){u={...this._options.autoSuggestOptions,...u};const r=new Map;for(const{score:d,terms:m}of this.search(i,u)){const v=m.join(" "),x=r.get(v);x!=null?(x.score+=d,x.count+=1):r.set(v,{score:d,terms:m,count:1})}const o=[];for(const[d,{score:m,terms:v,count:x}]of r)o.push({suggestion:d,terms:v,score:m/x});return o.sort(jg),o}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(i,u){if(u==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(i),u)}static async loadJSONAsync(i,u){if(u==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(i),u)}static getDefault(i){if(ro.hasOwnProperty(i))return so(ro,i);throw new Error(`MiniSearch: unknown option "${i}"`)}static loadJS(i,u){const{index:r,documentIds:o,fieldLength:d,storedFields:m,serializationVersion:v}=i,x=this.instantiateMiniSearch(i,u);x._documentIds=fs(o),x._fieldLength=fs(d),x._storedFields=fs(m);for(const[g,b]of x._documentIds)x._idToShortId.set(b,g);for(const[g,b]of r){const y=new Map;for(const N of Object.keys(b)){let w=b[N];v===1&&(w=w.ds),y.set(parseInt(N,10),fs(w))}x._index.set(g,y)}return x}static async loadJSAsync(i,u){const{index:r,documentIds:o,fieldLength:d,storedFields:m,serializationVersion:v}=i,x=this.instantiateMiniSearch(i,u);x._documentIds=await ds(o),x._fieldLength=await ds(d),x._storedFields=await ds(m);for(const[b,y]of x._documentIds)x._idToShortId.set(y,b);let g=0;for(const[b,y]of r){const N=new Map;for(const w of Object.keys(y)){let M=y[w];v===1&&(M=M.ds),N.set(parseInt(w,10),await ds(M))}++g%1e3===0&&await Lp(0),x._index.set(b,N)}return x}static instantiateMiniSearch(i,u){const{documentCount:r,nextId:o,fieldIds:d,averageFieldLength:m,dirtCount:v,serializationVersion:x}=i;if(x!==1&&x!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const g=new Ra(u);return g._documentCount=r,g._nextId=o,g._idToShortId=new Map,g._fieldIds=d,g._avgFieldLength=m,g._dirtCount=v||0,g._index=new pl,g}executeQuery(i,u={}){if(i===Ra.wildcard)return this.executeWildcardQuery(u);if(typeof i!="string"){const N={...u,...i,queries:void 0},w=i.queries.map(M=>this.executeQuery(M,N));return this.combineResults(w,N.combineWith)}const{tokenize:r,processTerm:o,searchOptions:d}=this._options,m={tokenize:r,processTerm:o,...d,...u},{tokenize:v,processTerm:x}=m,y=v(i).flatMap(N=>x(N)).filter(N=>!!N).map(AS(m)).map(N=>this.executeQuerySpec(N,m));return this.combineResults(y,m.combineWith)}executeQuerySpec(i,u){const r={...this._options.searchOptions,...u},o=(r.fields||this._options.fields).reduce((C,D)=>({...C,[D]:so(r.boost,D)||1}),{}),{boostDocument:d,weights:m,maxFuzzy:v,bm25:x}=r,{fuzzy:g,prefix:b}={...Ng.weights,...m},y=this._index.get(i.term),N=this.termResults(i.term,i.term,1,i.termBoost,y,o,d,x);let w,M;if(i.prefix&&(w=this._index.atPrefix(i.term)),i.fuzzy){const C=i.fuzzy===!0?.2:i.fuzzy,D=C<1?Math.min(v,Math.round(i.term.length*C)):C;D&&(M=this._index.fuzzyGet(i.term,D))}if(w)for(const[C,D]of w){const k=C.length-i.term.length;if(!k)continue;M==null||M.delete(C);const K=b*C.length/(C.length+.3*k);this.termResults(i.term,C,K,i.termBoost,D,o,d,x,N)}if(M)for(const C of M.keys()){const[D,k]=M.get(C);if(!k)continue;const K=g*C.length/(C.length+k);this.termResults(i.term,C,K,i.termBoost,D,o,d,x,N)}return N}executeWildcardQuery(i){const u=new Map,r={...this._options.searchOptions,...i};for(const[o,d]of this._documentIds){const m=r.boostDocument?r.boostDocument(d,"",this._storedFields.get(o)):1;u.set(o,{score:m,terms:[],match:{}})}return u}combineResults(i,u=Qo){if(i.length===0)return new Map;const r=u.toLowerCase(),o=NS[r];if(!o)throw new Error(`Invalid combination operator: ${u}`);return i.reduce(o)||new Map}toJSON(){const i=[];for(const[u,r]of this._index){const o={};for(const[d,m]of r)o[d]=Object.fromEntries(m);i.push([u,o])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}}termResults(i,u,r,o,d,m,v,x,g=new Map){if(d==null)return g;for(const b of Object.keys(m)){const y=m[b],N=this._fieldIds[b],w=d.get(N);if(w==null)continue;let M=w.size;const C=this._avgFieldLength[N];for(const D of w.keys()){if(!this._documentIds.has(D)){this.removeTerm(N,D,u),M-=1;continue}const k=v?v(this._documentIds.get(D),u,this._storedFields.get(D)):1;if(!k)continue;const K=w.get(D),Y=this._fieldLength.get(D)[N],X=jS(K,M,this._documentCount,Y,C,x),B=r*o*y*k*X,Q=g.get(D);if(Q){Q.score+=B,CS(Q.terms,i);const V=so(Q.match,u);V?V.push(b):Q.match[u]=[b]}else g.set(D,{score:B,terms:[i],match:{[u]:[b]}})}}return g}addTerm(i,u,r){const o=this._index.fetch(r,Ag);let d=o.get(i);if(d==null)d=new Map,d.set(u,1),o.set(i,d);else{const m=d.get(u);d.set(u,(m||0)+1)}}removeTerm(i,u,r){if(!this._index.has(r)){this.warnDocumentChanged(u,i,r);return}const o=this._index.fetch(r,Ag),d=o.get(i);d==null||d.get(u)==null?this.warnDocumentChanged(u,i,r):d.get(u)<=1?d.size<=1?o.delete(i):d.delete(u):d.set(u,d.get(u)-1),this._index.get(r).size===0&&this._index.delete(r)}warnDocumentChanged(i,u,r){for(const o of Object.keys(this._fieldIds))if(this._fieldIds[o]===u){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(i)} has changed before removal: term "${r}" was not present in field "${o}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(i){const u=this._nextId;return this._idToShortId.set(i,u),this._documentIds.set(u,i),this._documentCount+=1,this._nextId+=1,u}addFields(i){for(let u=0;u<i.length;u++)this._fieldIds[i[u]]=u}addFieldLength(i,u,r,o){let d=this._fieldLength.get(i);d==null&&this._fieldLength.set(i,d=[]),d[u]=o;const v=(this._avgFieldLength[u]||0)*r+o;this._avgFieldLength[u]=v/(r+1)}removeFieldLength(i,u,r,o){if(r===1){this._avgFieldLength[u]=0;return}const d=this._avgFieldLength[u]*r-o;this._avgFieldLength[u]=d/(r-1)}saveStoredFields(i,u){const{storeFields:r,extractField:o}=this._options;if(r==null||r.length===0)return;let d=this._storedFields.get(i);d==null&&this._storedFields.set(i,d={});for(const m of r){const v=o(u,m);v!==void 0&&(d[m]=v)}}}Ra.wildcard=Symbol("*");const so=(a,i)=>Object.prototype.hasOwnProperty.call(a,i)?a[i]:void 0,NS={[Qo]:(a,i)=>{for(const u of i.keys()){const r=a.get(u);if(r==null)a.set(u,i.get(u));else{const{score:o,terms:d,match:m}=i.get(u);r.score=r.score+o,r.match=Object.assign(r.match,m),wg(r.terms,d)}}return a},[Bp]:(a,i)=>{const u=new Map;for(const r of i.keys()){const o=a.get(r);if(o==null)continue;const{score:d,terms:m,match:v}=i.get(r);wg(o.terms,m),u.set(r,{score:o.score+d,terms:o.terms,match:Object.assign(o.match,v)})}return u},[ES]:(a,i)=>{for(const u of i.keys())a.delete(u);return a}},wS={k:1.2,b:.7,d:.5},jS=(a,i,u,r,o,d)=>{const{k:m,b:v,d:x}=d;return Math.log(1+(u-i+.5)/(i+.5))*(x+a*(m+1)/(a+m*(1-v+v*r/o)))},AS=a=>(i,u,r)=>{const o=typeof a.fuzzy=="function"?a.fuzzy(i,u,r):a.fuzzy||!1,d=typeof a.prefix=="function"?a.prefix(i,u,r):a.prefix===!0,m=typeof a.boostTerm=="function"?a.boostTerm(i,u,r):1;return{term:i,fuzzy:o,prefix:d,termBoost:m}},ro={idField:"id",extractField:(a,i)=>a[i],stringifyField:(a,i)=>a.toString(),tokenize:a=>a.split(_S),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,i)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](i)},autoVacuum:!0},Ng={combineWith:Qo,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:wS},DS={combineWith:Bp,prefix:(a,i,u)=>i===u.length-1},So={batchSize:1e3,batchWait:10},Eo={minDirtFactor:.1,minDirtCount:20},co={...So,...Eo},CS=(a,i)=>{a.includes(i)||a.push(i)},wg=(a,i)=>{for(const u of i)a.includes(u)||a.push(u)},jg=({score:a},{score:i})=>i-a,Ag=()=>new Map,fs=a=>{const i=new Map;for(const u of Object.keys(a))i.set(parseInt(u,10),a[u]);return i},ds=async a=>{const i=new Map;let u=0;for(const r of Object.keys(a))i.set(parseInt(r,10),a[r]),++u%1e3===0&&await Lp(0);return i},Lp=a=>new Promise(i=>setTimeout(i,a)),_S=/[\n\r\p{Z}\p{P}]+/u,OS={repo:null,state:null,type:null,label:null};function Dg(a){return`${a.repo}#${a.type}#${a.number}`}const Cg=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"word"}):null;function TS(a){if(!Cg)return a.split(/[\s\p{P}]+/u).filter(Boolean);const i=[];for(const u of Cg.segment(a))u.isWordLike&&i.push(u.segment);return i}function MS(a,i){return a.filter(u=>(!i.repo||u.repo===i.repo)&&(!i.state||u.state===i.state)&&(!i.type||u.type===i.type)&&(!i.label||u.labels.includes(i.label)))}function RS(a){const i=new Map;for(const u of a)for(const r of u.labels)i.set(r,(i.get(r)??0)+1);return[...i.entries()].map(([u,r])=>({label:u,count:r})).sort((u,r)=>r.count-u.count)}function zS(a){const i=new Ra({fields:["title","labels","repo"],storeFields:[],tokenize:TS});return i.addAll(a.map(u=>({id:Dg(u),title:u.title,labels:u.labels.join(" "),repo:u.repo}))),(u,r)=>{const o=u.trim();let d=a;if(o!==""){const m=new Set(i.search(o,{prefix:!0,fuzzy:.2,combineWith:"AND"}).map(v=>String(v.id)));d=a.filter(v=>m.has(Dg(v)))}return MS(d,r)}}const US=20;function BS(){const{items:a,loading:i,error:u}=Oo(),[r,o]=S.useState(""),[d,m]=S.useState(OS),v=S.useMemo(()=>zS(a),[a]),x=S.useMemo(()=>v(r,d),[v,r,d]),g=S.useMemo(()=>[...new Set(a.map(y=>y.repo))].sort(),[a]),b=S.useMemo(()=>RS(a).slice(0,US),[a]);return i?h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"}):u?h.jsx(Op,{kind:u,message:"issue / PR を取得できませんでした"}):a.length===0?h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["open な issue / PR がありません。",h.jsxs(h.Fragment,{children:[h.jsx("br",{}),"ターミナルで ",h.jsx("code",{className:"rounded bg-panel px-1 font-mono text-emerald-400",children:"pnpm sync"})," を実行してください。"]})]}):h.jsxs("div",{className:"mx-auto flex h-full max-w-4xl flex-col gap-4 overflow-y-auto p-5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"search",children:[h.jsx("input",{type:"search","aria-label":"issue / PR をタイトル・ラベル・repo で検索",value:r,onChange:y=>o(y.target.value),placeholder:"issue / PR をタイトル・ラベル・repo で検索","data-shortcut":"search",className:"min-w-[240px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("div",{className:"flex overflow-hidden rounded-md border border-line",children:[null,"issue","pr"].map(y=>h.jsx("button",{onClick:()=>m(N=>({...N,type:y})),"aria-pressed":d.type===y,className:`px-2.5 py-1.5 text-xs transition-colors ${d.type===y?"bg-panel text-fg":"text-fg-muted hover:text-fg"}`,children:y===null?"全て":y==="pr"?"PR":"Issue"},y??"all"))}),h.jsxs("select",{value:d.repo??"","aria-label":"repoで絞る",onChange:y=>m(N=>({...N,repo:y.target.value||null})),className:"rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none",children:[h.jsx("option",{value:"",children:"全 repo"}),g.map(y=>h.jsx("option",{value:y,children:y.split("/")[1]},y))]})]}),b.length>0&&h.jsx("div",{className:"flex flex-wrap gap-1.5",children:b.map(({label:y,count:N})=>{const w=d.label===y;return h.jsxs("button",{onClick:()=>m(M=>({...M,label:w?null:y})),"aria-pressed":w,className:`rounded-md border px-1.5 py-0.5 text-xs transition-colors ${w?"border-emerald-500/60 bg-emerald-400/10 font-medium text-emerald-300":"border-line text-fg-muted hover:text-fg"}`,children:[w?"✓ ":"",y," ",h.jsx("span",{className:"text-fg-faint",children:N})]},y)})}),h.jsxs("div",{className:"text-xs text-fg-faint",children:[x.length," 件 / 全 ",a.length," 件(open)"]}),h.jsxs("ul",{className:"flex flex-col gap-1.5",children:[x.map(y=>h.jsx("li",{children:h.jsxs("a",{href:y.url,target:"_blank",rel:"noreferrer",className:"flex items-start gap-3 rounded-lg border border-line bg-panel p-3 transition-colors hover:border-emerald-500/40",children:[h.jsx("span",{className:`mt-0.5 shrink-0 rounded px-1.5 py-0.5 font-mono text-xs ${y.type==="pr"?"bg-violet-500/15 text-violet-300":"bg-sky-500/15 text-sky-300"}`,children:y.type==="pr"?"PR":"ISS"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"flex items-baseline gap-2",children:h.jsx("span",{className:"truncate text-sm text-fg",children:y.title})}),h.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-xs text-fg-faint",children:[h.jsxs("span",{className:"font-mono",children:[y.repo.split("/")[1]," #",y.number]}),y.comments>0&&h.jsxs("span",{children:["💬 ",y.comments]}),h.jsx("span",{children:y.updatedAt.slice(0,10)}),y.labels.map(N=>h.jsx("span",{className:"rounded bg-white/5 px-1 text-fg-muted",children:N},N))]})]})]})},`${y.repo}#${y.type}#${y.number}`)),x.length===0&&h.jsx("li",{className:"py-8 text-center text-sm text-fg-muted",children:"該当なし"})]})]})}const Hp=a=>a.split("/")[0].toLowerCase();function LS(a){if(a==="personal")return{kind:"personal"};if(a!=null&&a.startsWith("org:")){const i=a.slice(4);if(i)return{kind:"org",name:i}}return{kind:"all"}}function oo(a){return a.kind==="org"?`org:${a.name}`:a.kind}function HS(a,i){if(!i)return[{kind:"all"}];const u=i.toLowerCase(),r=[...new Set(a.map(o=>Hp(o.repo.nameWithOwner)).filter(o=>o!==u))].sort();return r.length===0?[{kind:"all"}]:[{kind:"all"},{kind:"personal"},...r.map(o=>({kind:"org",name:o}))]}function kp(a,i,u){if(a.kind==="all"||!i)return!0;const r=a.kind==="personal"?i.toLowerCase():a.name.toLowerCase();return Hp(u)===r}function kS(a,i,u,r,o){if(a.kind==="all"||!i)return{stats:u,issues:r,events:o};const d=m=>kp(a,i,m);return{stats:u.filter(m=>d(m.repo.nameWithOwner)),issues:r.filter(m=>d(m.repo)),events:o.filter(m=>d(m.repo))}}function qp(a){return a.kind==="all"?"全体":a.kind==="personal"?"個人開発":a.name}function qS(a){return a.kind==="all"?"":a.kind==="personal"?"いまは個人開発のリポジトリだけの話をしています。組織の業務は対象外なので、そちらへ話を広げないでください。":`いまは組織${a.name}のリポジトリだけの話をしています。個人開発のリポジトリは対象外なので、そちらへ話を広げないでください。`}const YS=25,GS=40,XS=10,VS=10,_g=["done","closed","完了"];function Ua(a){return(a??"").split(`
|
|
57
|
-
`)[0].trim()}function QS(a){const i=a==null?void 0:a.boards[0];if(!i)return[];const u=new Map(i.cards.map(o=>[o.id,o])),r=[];for(const o of i.columns)if(!(_g.includes(o.id.toLowerCase())||_g.includes(o.name.toLowerCase())))for(const d of o.cardIds){const m=u.get(d);if(!m)continue;const v=m.repo?` (${m.repo})`:"";r.push(`- [${o.name}] ${m.title}${v}`)}return r.slice(0,GS)}function KS(a,i,u,r){const o=new Set((i==null?void 0:i.hidden)??[]),d=a.filter(N=>N.totalCommits>0&&!o.has(N.repo.nameWithOwner)).sort((N,w)=>w.totalCommits-N.totalCommits).slice(0,YS),m=N=>((i==null?void 0:i.tags.byRepo[N])??[]).map(w=>{var M;return(M=i==null?void 0:i.tags.defs.find(C=>C.id===w))==null?void 0:M.label}).filter(Boolean).join("/"),v=d.map(N=>{var k;const w=N.repo,M=m(w.nameWithOwner),C=[`- ${w.nameWithOwner}`,`${N.totalCommits}commits`,`最終push ${N.daysSincePush}日前`,w.primaryLanguage??"言語不明"];w.openPrCount>0&&C.push(`openPR ${w.openPrCount}`),w.openIssueCount>0&&C.push(`openIssue ${w.openIssueCount}`),M&&C.push(`タグ ${M}`);const D=Ua((k=w.lastCommits[0])==null?void 0:k.message);return`${C.join(" / ")}${D?`
|
|
58
|
-
直近: ${D}`:""}`}),x=QS(i),g=Object.entries((i==null?void 0:i.notes)??{}).filter(([,N])=>N.trim()!=="").slice(0,10).map(([N,w])=>`- ${N}: ${Ua(w).slice(0,120)}`),b=r!=null&&r.scope?qS(r.scope):"",y=[...b?[`${b}
|
|
59
|
-
`]:[],`直近${u}日の活動 (${d.length}リポジトリ${r!=null&&r.scope&&r.scope.kind!=="all"?` / ${qp(r.scope)}`:""})`,v.length>0?v.join(`
|
|
60
|
-
`):"- この期間のコミットはありません"];return x.length>0&&y.push(`
|
|
61
|
-
残タスク (ボードの未完了カード)
|
|
62
|
-
${x.join(`
|
|
63
|
-
`)}`),g.length>0&&y.push(`
|
|
64
|
-
メモ
|
|
65
|
-
${g.join(`
|
|
66
|
-
`)}`),r&&y.push(...JS(r,o)),r&&y.push(...IS(r)),r&&y.push(...e2(r,o)),y.join(`
|
|
67
|
-
`)}function ZS(a){const i=a.reviewDecision==="CHANGES_REQUESTED"?" [要修正]":"";return`- ${a.repo} #${a.number} ${Ua(a.title)}${i}`}function JS(a,i){const u=[];if(!a.login)return u;const r=a.issues.filter(D=>!i.has(D.repo)),d=[...jo(r,a.login).keys()],m=[],v=[];for(const D of d){const k=Lg(r,D,a.login);m.push(...k.awaitingReview),v.push(...k.toReview)}const x=a.login.toLowerCase(),g=D=>(D.author??"").toLowerCase()===x,b=r.filter(D=>D.type==="pr"&&g(D)&&D.isDraft),y=new Set(r.filter(D=>D.type==="pr"&&g(D)).flatMap(D=>(D.linkedIssues??[]).map(k=>`${D.repo}#${k}`))),N=r.filter(D=>D.type==="issue"&&g(D)&&!y.has(`${D.repo}#${D.number}`)),M=[["レビュー待ちの自分のPR",m],["Draftの自分のPR",b],["自分がレビューするPR",v],["手を付けていない自分のissue",N]].filter(([,D])=>D.length>0).map(([D,k])=>`${D} (${k.length})
|
|
68
|
-
${k.slice(0,XS).map(ZS).join(`
|
|
69
|
-
`)}`);M.length>0&&u.push(`
|
|
70
|
-
自分の仕事
|
|
71
|
-
${M.join(`
|
|
72
|
-
`)}`);const C=rb(a.events,{readAt:a.readAt??null,readIds:a.readIds??[]}).filter(D=>!i.has(D.repo)).slice(0,VS);return C.length>0&&u.push(`
|
|
73
|
-
最近起きたこと (受信箱の未読)
|
|
74
|
-
${C.map(D=>`- ${D.at.slice(0,16).replace("T"," ")} ${D.repo} #${D.number} ${Ta(D)}: ${Ua(D.title)}`).join(`
|
|
75
|
-
`)}`),u}const $S=["あなたは開発者の壁打ち相手です。相手のGitHubの直近の活動と残タスクが与えられます。","目的は、いま注力していることの整理と、次の一手を決める手助けです。","守ること:","- 与えられたデータに無いことを推測で断定しない。分からないことは質問で返す。","- 一度に投げる質問は1つか2つまで。相手が答えやすい具体的な問いにする。","- 助言は実行できる粒度で書く。抽象論とスローガンを避ける。","- 日本語で、平易に、短く答える。日本語と英数字の間に半角スペースを入れない。","- 見出しや強調記法を並べない。箇条書きは必要なときだけ。"].join(`
|
|
76
|
-
`);function WS(a,i){return[{role:"system",content:$S},{role:"system",content:`以下が相手の現状です。
|
|
77
|
-
|
|
78
|
-
${a}`},...i]}const FS=15;function IS(a){var d;const i=a.jira??[];if(i.length===0||((d=a.scope)==null?void 0:d.kind)==="personal")return[];const u=m=>m==="indeterminate"?0:1,o=[...i].sort((m,v)=>u(m.statusCategory)-u(v.statusCategory)||(m.updatedAt<v.updatedAt?1:-1)).slice(0,FS).map(m=>{const v=m.isMine?"":" [報告者]",x=m.priority&&m.priority!=="Not Decided"?` / ${m.priority}`:"";return`- ${m.key} ${Ua(m.title)}${v} (${m.status}${x} / 更新 ${m.updatedAt.slice(0,10)})`});return[`
|
|
79
|
-
Jiraの未完了 (${i.length})
|
|
80
|
-
${o.join(`
|
|
81
|
-
`)}`]}const PS=10;function e2(a,i){var d;if(((d=a.scope)==null?void 0:d.kind)==="personal")return[];const u=a.scope??{kind:"all"},r=(a.confluence??[]).filter(m=>!i.has(m.repo)&&kp(u,a.login,m.repo));if(r.length===0)return[];const o=[...r].sort((m,v)=>v.daysBehind-m.daysBehind).slice(0,PS).map(m=>`- ${Ua(m.title)} (${m.space}) — ${m.repo}のpushが${m.daysBehind}日新しい`);return[`
|
|
82
|
-
Confluenceとの齟齬 (${r.length}) ページを書いたあとに実装が進んだもの
|
|
83
|
-
${o.join(`
|
|
84
|
-
`)}`]}const Og=40,t2=30;function Tg(a,i){return{id:a,startedAt:i,updatedAt:i,messages:[]}}function Mg(a,i,u){const r=i.filter(o=>o.content.trim()!=="");return{...a,updatedAt:u,messages:r}}function n2(a){var u;const i=(u=a.messages.find(r=>r.role==="user"))==null?void 0:u.content.split(`
|
|
85
|
-
`)[0].trim();return i?i.length>Og?i.slice(0,Og):i:a.startedAt.slice(0,10)}function No(a,i=t2){return a.filter(u=>u.messages.length>0).sort((u,r)=>u.updatedAt<r.updatedAt?1:u.updatedAt>r.updatedAt?-1:0).slice(0,i)}const l2={user:"あなた",assistant:"壁打ち"};function a2(a){const i=["# 壁打ちのログ",""];for(const u of No(a)){const r=`${u.updatedAt.slice(0,10)} ${u.updatedAt.slice(11,16)}`;i.push(`## ${r} ${n2(u)}`,"");for(const o of u.messages){const d=l2[o.role];d&&i.push(`### ${d}`,"",o.content.trim(),"")}}return i.join(`
|
|
86
|
-
`)}const i2="gpt-5.6-luna",u2="https://api.openai.com/v1/chat/completions";function s2(a){const i=a.replace(/\r\n/g,`
|
|
87
|
-
`).split(`
|
|
88
|
-
|
|
89
|
-
`),u=i.pop()??"";return{events:i.filter(r=>r.trim()!==""),rest:u}}function r2(a){var i,u,r;for(const o of a.split(`
|
|
90
|
-
`)){if(!o.startsWith("data:"))continue;const d=o.slice(5).trim();if(!(d===""||d==="[DONE]"))try{const m=JSON.parse(d),v=(r=(u=(i=m==null?void 0:m.choices)==null?void 0:i[0])==null?void 0:u.delta)==null?void 0:r.content;if(typeof v=="string"&&v!=="")return v}catch{continue}}return null}async function c2(a){var u;const i=await a.text().catch(()=>"");try{const r=JSON.parse(i);if(typeof((u=r==null?void 0:r.error)==null?void 0:u.message)=="string")return r.error.message}catch{}return i.slice(0,300)||`HTTP ${a.status}`}async function o2(a){const i=await fetch(u2,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${a.apiKey}`},body:JSON.stringify({model:a.model,messages:a.messages,stream:!0}),signal:a.signal});if(!i.ok)throw new Error(await c2(i));if(!i.body)throw new Error("応答が空でした");const u=i.body.getReader(),r=new TextDecoder;let o="";const d=m=>{for(const v of m){const x=r2(v);x!==null&&a.onDelta(x)}};for(;;){const{done:m,value:v}=await u.read();if(m)break;o+=r.decode(v,{stream:!0});const{events:x,rest:g}=s2(o);o=g,d(x)}o+=r.decode(),o.trim()!==""&&d([o])}const f2="github-reporadar_openai_key",d2="github-reporadar_openai_model",h2="github-reporadar_coach_scope",m2=["この期間、私は何に注力していた?","手を広げすぎている兆候はある?","次の1週間で最初に片付けるべきものは?","止まっているものを再開する順番を決めたい","今日の作業順を決めたい。レビュー待ちと依頼されたレビューを先に見て","要修正のレビュー指摘にどの順で対応するか、精査を手伝って"];function g2({stats:a,periodDays:i,work:u}){const{data:r,mutate:o}=yt(),[d,m]=pn(f2,""),[v,x]=pn(d2,i2),[g,b]=pn(h2,"all"),y=LS(g),N=HS(a,(u==null?void 0:u.login)??null),[w,M]=S.useState(""),C=(r==null?void 0:r.coachThreads)??[],[D,k]=S.useState(()=>`t${Date.now()}`),K=C.find(W=>W.id===D),[Y,X]=S.useState(()=>{var W;return((W=C[0])==null?void 0:W.messages)??[]}),[B]=S.useState(()=>{var W;return((W=C[0])==null?void 0:W.id)??null}),[Q,V]=S.useState(""),[P,he]=S.useState(!1),[fe,de]=S.useState(null),[te,I]=S.useState(!1),ce=S.useRef(null),ve=S.useMemo(()=>kS(y,(u==null?void 0:u.login)??null,a,(u==null?void 0:u.issues)??[],(u==null?void 0:u.events)??[]),[y,u==null?void 0:u.login,a,u==null?void 0:u.issues,u==null?void 0:u.events]),z=S.useMemo(()=>u?{...u,issues:ve.issues,events:ve.events,scope:y}:void 0,[u,ve.issues,ve.events,y]),Z=S.useMemo(()=>KS(ve.stats,r,i,z),[ve.stats,r,i,z]);function ie(W){const j=new Date().toISOString(),L=B??D;o(J=>{const ae=(J.coachThreads??[]).filter(se=>se.id!==L),ne=(J.coachThreads??[]).find(se=>se.id===L)??Tg(L,j);J.coachThreads=No([Mg(ne,W,j),...ae])});const $=No([Mg(K??Tg(L,j),W,j),...C.filter(J=>J.id!==L)]);fetch("/api/coach-log",{method:"POST",headers:{"content-type":"text/markdown"},body:a2($)}).catch(()=>{})}async function oe(W){const j=W.trim();if(j===""||P)return;de(null),V("");const L=[...Y,{role:"user",content:j}];X([...L,{role:"assistant",content:""}]),he(!0);const $=new AbortController;ce.current=$;try{await o2({apiKey:d,model:v,messages:WS(Z,L),signal:$.signal,onDelta:J=>X(ae=>{const ne=[...ae],se=ne[ne.length-1];return ne[ne.length-1]={...se,content:se.content+J},ne})})}catch(J){J instanceof DOMException&&J.name==="AbortError"||de(J instanceof Error?J.message:String(J)),X(ae=>ae.filter((ne,se)=>!(se===ae.length-1&&ne.role==="assistant"&&ne.content==="")))}finally{he(!1),ce.current=null,X(J=>(ie(J),J))}}return d===""?h.jsxs("div",{className:"mx-auto max-w-xl p-6",children:[h.jsx("h2",{className:"text-base font-medium text-fg",children:"壁打ちを始める"}),h.jsx("p",{className:"mt-2 text-sm text-fg-muted",children:"OpenAIのAPIキーを入れると使えます。キーはこのブラウザのlocalStorageにだけ置き、送信先はOpenAIのAPIだけです。 サーバーには送りません。"}),h.jsxs("form",{className:"mt-4 flex flex-col gap-3",onSubmit:W=>{W.preventDefault(),w.trim()!==""&&m(w.trim())},children:[h.jsx("input",{type:"password",value:w,onChange:W=>M(W.target.value),placeholder:"sk-...","aria-label":"OpenAIのAPIキー",autoComplete:"off",className:"rounded-md border border-line-strong bg-panel-2 px-3 py-2 font-mono text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"submit",disabled:w.trim()==="",className:"self-start rounded-md border border-line-strong px-3 py-1.5 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg disabled:opacity-40",children:"保存して開始"})]}),h.jsx("p",{className:"mt-4 text-xs text-fg-muted",children:"共有端末では使わないでください。キーは「キーを削除」でいつでも消せます。"})]}):h.jsxs("div",{className:"flex h-full flex-col",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2.5",children:[h.jsx("input",{value:v,onChange:W=>x(W.target.value),"aria-label":"モデル",className:"w-48 rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 font-mono text-xs text-fg-muted focus:border-emerald-500/50 focus:outline-none"}),N.length>1&&h.jsx("select",{value:oo(y),onChange:W=>b(W.target.value),"aria-label":"話の範囲",title:"個人開発と組織の課題を混ぜないための切り替え。選んだ範囲のrepoだけを文脈に渡す",className:"rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none",children:N.map(W=>h.jsx("option",{value:oo(W),children:qp(W)},oo(W)))}),h.jsxs("button",{type:"button",onClick:()=>I(W=>!W),"aria-expanded":te,"aria-controls":"coach-context",className:"rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg",children:["送信する内容 (",Z.length,"字) ",te?"▲":"▼"]}),Y.length>0&&h.jsx("button",{type:"button",onClick:()=>{X([]),k(`t${Date.now()}`)},className:"rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg",children:"会話を消す"}),h.jsx("button",{type:"button",onClick:()=>{m(""),M(""),X([])},className:"ml-auto rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:border-rose-500/40 hover:text-fg",children:"キーを削除"})]}),h.jsx("pre",{id:"coach-context",hidden:!te,className:"max-h-64 overflow-auto border-b border-line bg-panel-2/60 px-4 py-3 font-mono text-xs whitespace-pre-wrap text-fg-muted",children:Z}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:[Y.length===0?h.jsxs("div",{className:"mx-auto max-w-2xl",children:[h.jsxs("p",{className:"text-sm text-fg-muted",children:["直近",i,"日の活動と残タスクを渡してあります。質問から始めてください。"]}),h.jsx("div",{className:"mt-3 flex flex-col items-start gap-2",children:m2.map(W=>h.jsx("button",{type:"button",onClick:()=>oe(W),className:"rounded-md border border-line-strong px-3 py-1.5 text-left text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:W},W))})]}):h.jsx("div",{className:"mx-auto flex max-w-2xl flex-col gap-4",children:Y.map((W,j)=>h.jsxs("div",{className:W.role==="user"?"self-end":"self-start",children:[h.jsx("div",{className:"mb-1 font-mono text-xs text-fg-faint",children:W.role==="user"?"あなた":v}),h.jsx("div",{className:`rounded-lg px-3 py-2 text-sm whitespace-pre-wrap ${W.role==="user"?"bg-panel-2 text-fg":"bg-panel text-fg"}`,children:W.content===""&&P?"…":W.content})]},j))}),fe&&h.jsx("p",{className:"mx-auto mt-4 max-w-2xl rounded-md border border-rose-500/40 px-3 py-2 text-sm text-rose-300",children:fe})]}),h.jsxs("form",{className:"flex items-end gap-2 border-t border-line px-4 py-3",onSubmit:W=>{W.preventDefault(),oe(Q)},children:[h.jsx("textarea",{value:Q,onChange:W=>V(W.target.value),onKeyDown:W=>{W.key==="Enter"&&!W.shiftKey&&!W.nativeEvent.isComposing&&(W.preventDefault(),oe(Q))},rows:2,placeholder:"質問を書く (Enterで送信、Shift+Enterで改行)","aria-label":"質問",className:"flex-1 resize-none rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),P?h.jsx("button",{type:"button",onClick:()=>{var W;return(W=ce.current)==null?void 0:W.abort()},className:"rounded-md border border-line-strong px-3 py-2 text-sm text-fg-muted transition-colors hover:text-fg",children:"停止"}):h.jsx("button",{type:"submit",disabled:Q.trim()==="",className:"rounded-md border border-line-strong px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg disabled:opacity-40",children:"送信"})]})]})}function p2(){const[a,i]=S.useState({status:"authed",user:null,configured:!0});return S.useEffect(()=>{},[]),a}async function v2(){await fetch("/api/auth/logout",{method:"POST"}),await Ay(),window.location.reload()}const y2=S.createContext(null);function x2(){return S.useContext(y2)}function b2({children:a}){return p2(),h.jsx(h.Fragment,{children:a})}const Yp={active:"活動量順",recent:"最終push順",stale:"放置順"},Gp={dashboard:"ダッシュボード",board:"ボード",search:"検索",coach:"壁打ち",wiki:"Wiki"},Rg=Object.keys(Gp).filter(a=>!0),zg=Object.keys(Yp),S2=["7","30","90"],E2=["cards","table"];function N2(){sb();const a=Oy(),i=x2(),{data:u}=yt(),r=(i==null?void 0:i.canPrivate)??!1,[o,d]=pn("github-reporadar_period","30",S2),[m,v]=pn("github-reporadar_sort","active",zg),[x,g]=pn("github-reporadar_show_private","0",["0","1"]),[b,y]=pn("github-reporadar_view","cards",E2),[N,w]=pn("github-reporadar_heatmap","0",["0","1"]),[M,C]=pn("github-reporadar_mode","dashboard",Rg),[D,k]=S.useState(Ao),[K,Y]=S.useState(!1),[X,B]=S.useState(null),[Q,V]=pn("github-reporadar_accordion","single",xy),[P,he]=S.useState(()=>new Set),fe=Ig(),{items:de}=Oo(),te=Gx(),I=Xx(),ce=Vx(),ve=a.status==="ready"?a.data.meta.login:null,z=S.useMemo(()=>({issues:de,login:ve}),[de,ve]),Z=S.useMemo(()=>{const F=Object.fromEntries($m.map(Oe=>[Oe,0]));for(const Oe of jo(de,ve).values())for(const xt of $m)F[xt]+=Oe[xt];return F},[de,ve]),ie=S.useMemo(()=>({login:ve,issues:de,events:te,readAt:(u==null?void 0:u.inboxReadAt)??null,readIds:(u==null?void 0:u.inboxReadIds)??[],jira:I,confluence:ce}),[ve,de,te,u==null?void 0:u.inboxReadAt,u==null?void 0:u.inboxReadIds,I,ce]);S.useEffect(()=>{function F(Oe){if(kx(qx(Oe))!=="focus-search")return;const xt=Yx();xt&&(Oe.preventDefault(),xt.focus(),xt.select())}return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[]);const oe=Number(o),W=My("(min-width: 1024px)"),j=W?b:"cards";S.useEffect(()=>{if(new URLSearchParams(window.location.search).get("private")!=="granted")return;g("1");const F=new URL(window.location.href);F.searchParams.delete("private"),window.history.replaceState(null,"",`${F.pathname}${F.search}${F.hash}`)},[g]);function L(F){B(F),!W&&he(Oe=>by(Oe,F,Q))}const $=S.useMemo(()=>new Date,[]),J=S.useMemo(()=>{if(!Zc(M)||a.status!=="ready")return[];const F=x==="1"?a.data.repos:a.data.repos.filter(Oe=>!Oe.isPrivate);return dy(F,a.data.activity,oe,$)},[a,oe,$,x,M]),ae=JSON.stringify((u==null?void 0:u.hidden)??[]),ne=S.useMemo(()=>{const F=new Set(JSON.parse(ae));return F.size===0?J:J.filter(Oe=>!F.has(Oe.repo.nameWithOwner))},[J,ae]),se=D.includeHidden?J:ne,Le=S.useMemo(()=>JSON.stringify([(u==null?void 0:u.bookmarks)??[],(u==null?void 0:u.hidden)??[],(u==null?void 0:u.tags)??null]),[u]),ye=S.useMemo(()=>Zm(M,()=>Jm(vy(se,D,u,z),m)),[se,D,m,Le,M,z]),Se=S.useMemo(()=>N==="1"?Zm(M,()=>Jm(se,"active")):[],[se,M,N]),Ze=J.find(F=>F.repo.nameWithOwner===X)??ye[0]??null;if(Zc(M)&&a.status==="loading")return h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"});if(Zc(M)&&a.status==="error")return h.jsx(Op,{kind:a.kind,message:a.message});const _e=a.status==="ready"?a.data.meta:null,nn=se.reduce((F,Oe)=>F+Oe.totalCommits,0),Ie=se.filter(F=>F.totalCommits>0).length;return h.jsxs("div",{className:"flex min-h-screen flex-col overflow-x-hidden lg:h-screen lg:overflow-hidden",children:[h.jsx("header",{className:"shrink-0 border-b border-line bg-ink/80 px-4 py-3 backdrop-blur lg:px-5",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-3 lg:flex-nowrap lg:justify-between",children:[h.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[h.jsx(px,{}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("h1",{className:"truncate text-lg tracking-tight text-fg",children:[h.jsx("span",{className:"font-normal text-fg-muted",children:"GitHub"})," ",h.jsx("span",{className:"font-semibold",children:"RepoRadar"})]}),h.jsx("p",{className:"truncate font-mono text-xs text-fg-faint",children:_e?h.jsxs(h.Fragment,{children:["@",_e.login,M==="dashboard"&&h.jsxs(h.Fragment,{children:[" ","· 直近",oe,"日 ",h.jsx("span",{className:"text-fg-muted",children:Ie})," repos ·"," ",h.jsx("span",{className:"text-fg-muted",children:nn})," commits"]})," ","· sync ",_e.lastSyncAt.slice(0,16).replace("T"," "),a.status==="ready"&&a.revalidating&&h.jsx("span",{className:"text-emerald-400/70",children:" · 更新中"})]}):h.jsx(h.Fragment,{children:a.status==="loading"?"活動データ読み込み中…":"ローカルデータ"})})]})]}),h.jsx("button",{type:"button",onClick:()=>Y(F=>!F),"aria-expanded":K,"aria-controls":"header-controls",className:"shrink-0 rounded-lg border border-line-strong px-3 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg lg:hidden",children:K?"閉じる":"表示設定"}),h.jsx("div",{className:"flex w-full overflow-hidden rounded-lg border border-line lg:w-auto",children:Rg.map(F=>h.jsx("button",{onClick:()=>C(F),"aria-pressed":M===F,className:`flex-1 whitespace-nowrap px-2 py-1.5 text-xs transition-colors sm:px-3 sm:text-sm lg:flex-none lg:py-1 ${M===F?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:Gp[F]},F))}),h.jsxs("div",{id:"header-controls",className:`${K?"flex":"hidden"} w-full flex-wrap items-center gap-3 lg:flex lg:w-auto lg:flex-nowrap`,children:[h.jsx(ab,{drifts:ce}),h.jsx(wb,{events:te,login:ve}),h.jsx(_b,{}),h.jsx(Cb,{}),M==="dashboard"&&h.jsxs(h.Fragment,{children:[h.jsx(gx,{show:x==="1",onChange:F=>g(F?"1":"0"),canPrivate:r}),h.jsx(mx,{value:oe,onChange:F=>d(`${F}`)})]}),i&&h.jsxs("div",{className:"flex items-center gap-2 lg:border-l lg:border-line lg:pl-3",children:[h.jsx("img",{src:i.avatarUrl,alt:"",className:"h-6 w-6 shrink-0 rounded-full"}),h.jsx("span",{className:"truncate font-mono text-xs text-fg-muted",children:i.login}),h.jsx("button",{type:"button",onClick:()=>void v2(),className:"whitespace-nowrap text-xs text-fg-faint hover:text-fg-muted",children:"ログアウト"})]})]})]})}),M==="board"?h.jsx("main",{className:"flex-1 lg:min-h-0",children:h.jsx(yS,{})}):M==="search"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(BS,{})}):M==="wiki"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(ib,{drifts:ce})}):M==="coach"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(g2,{stats:ne,periodDays:oe,work:ie})}):h.jsxs("main",{className:"flex-1 lg:grid lg:min-h-0 lg:grid-cols-[minmax(0,1fr)_380px]",children:[h.jsxs("section",{className:"lg:h-full lg:overflow-y-auto",children:[h.jsx("div",{className:"border-b border-line p-4",children:h.jsxs("div",{className:"rounded-xl border border-line bg-panel px-4 py-3",children:[h.jsx("h2",{className:"font-mono text-xs tracking-wider text-fg-faint uppercase",children:h.jsxs("button",{type:"button",onClick:()=>w(N==="1"?"0":"1"),"aria-expanded":N==="1","aria-controls":"heatmap-panel",className:"flex w-full items-center gap-2 text-left transition-colors hover:text-fg-muted",children:[h.jsx("span",{"aria-hidden":"true",children:N==="1"?"▼":"▶"}),"どこで何をしていたか"]})}),h.jsx("div",{id:"heatmap-panel",className:"mt-3",hidden:N!=="1",children:N==="1"&&h.jsx(dx,{stats:Se,days:oe,now:$,ownLogin:(_e==null?void 0:_e.login)??null})})]})}),h.jsxs("div",{className:"sticky top-0 z-10 border-b border-line bg-ink/85 backdrop-blur",children:[h.jsx(rx,{filter:D,onChange:k,resultCount:ye.length,workCounts:Z}),h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-2 px-4 py-2",children:[h.jsxs("span",{className:"font-mono text-xs tracking-wider text-fg-faint uppercase",children:["リポジトリ ",h.jsx("span",{className:"text-fg-muted",children:ye.length})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[h.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[h.jsx("button",{type:"button",onClick:()=>{V("multi"),he(new Set(ye.map(F=>F.repo.nameWithOwner)))},className:"rounded-md px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:"全て開く"}),h.jsx("button",{type:"button",onClick:()=>he(new Set),disabled:P.size===0,className:"rounded-md px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg disabled:opacity-40 disabled:hover:text-fg-muted",children:"全て閉じる"}),h.jsx("button",{type:"button",onClick:()=>{const F=Q==="multi"?"single":"multi";V(F),F==="single"&&he(Oe=>Sy(Oe,X))},"aria-pressed":Q==="multi",title:Q==="multi"?"複数の repo を開いたままにする":"開くのは 1 件だけにする",className:`rounded-md border px-2 py-1 text-xs transition-colors ${Q==="multi"?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:Q==="multi"?"複数展開":"単一展開"})]}),h.jsx("div",{className:"flex gap-1",children:zg.map(F=>h.jsx("button",{onClick:()=>v(F),className:`rounded-md px-2 py-1 text-xs transition-colors ${m===F?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:Yp[F]},F))}),h.jsx("div",{className:"hidden overflow-hidden rounded-md border border-line lg:flex",children:["cards","table"].map(F=>h.jsx("button",{onClick:()=>y(F),"aria-pressed":b===F,className:`px-2 py-1 text-xs transition-colors ${b===F?"bg-panel text-fg":"text-fg-muted hover:text-fg"}`,children:F==="cards"?"カード":"テーブル"},F))})]})]})]}),j==="cards"?h.jsxs("div",{className:"space-y-1.5 p-4",children:[ye.length>0?ye.map((F,Oe)=>{var xt;return h.jsx(Lx,{stats:F,index:Oe,selected:W&&(Ze==null?void 0:Ze.repo.nameWithOwner)===F.repo.nameWithOwner,expanded:P.has(F.repo.nameWithOwner),onSelect:L,ownLogin:(_e==null?void 0:_e.login)??null,menuOpen:((xt=fe.menu)==null?void 0:xt.repo)===F.repo.nameWithOwner,onContextMenu:yn=>fe.openAtPointer(yn,F.repo.nameWithOwner,F.repo.url),onMenuButton:yn=>fe.toggleFromButton(yn,F.repo.nameWithOwner,F.repo.url)},F.repo.nameWithOwner)}):h.jsx("p",{className:"py-10 text-center text-sm text-fg-muted",children:"該当するリポジトリがありません"}),fe.menu&&h.jsx(Pg,{menu:fe.menu,onClose:fe.close})]}):h.jsx("div",{className:"p-4",children:h.jsx(Db,{stats:ye,selectedRepo:(Ze==null?void 0:Ze.repo.nameWithOwner)??null,onSelect:B,ownLogin:(_e==null?void 0:_e.login)??null})})]}),h.jsx("aside",{className:"hidden border-l border-line bg-panel-2/40 lg:block lg:h-full lg:overflow-y-auto",children:Ze?h.jsx(Fg,{stats:Ze,ownLogin:(_e==null?void 0:_e.login)??null},Ze.repo.nameWithOwner):h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["リポジトリを選択すると",h.jsx("br",{}),"詳細が表示されます"]})})]})]})}function w2(a,i){if(typeof window>"u"||a===i)return 0;const u=window.localStorage,r=[];for(let d=0;d<u.length;d++){const m=u.key(d);m&&m.startsWith(a)&&!m.startsWith(i)&&r.push(m)}let o=0;for(const d of r){const m=i+d.slice(a.length);if(u.getItem(m)===null){const v=u.getItem(d);v!==null&&(u.setItem(m,v),o++)}}return o}w2("reporadar_","github-reporadar_");cy.createRoot(document.getElementById("root")).render(h.jsx(S.StrictMode,{children:h.jsx(b2,{children:h.jsx(ax,{children:h.jsx(N2,{})})})}));
|