@gallop.software/studio 2.1.13 → 2.1.15

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.
@@ -0,0 +1,74 @@
1
+ function Hm(o,s){for(var h=0;h<s.length;h++){const u=s[h];if(typeof u!="string"&&!Array.isArray(u)){for(const y in u)if(y!=="default"&&!(y in o)){const m=Object.getOwnPropertyDescriptor(u,y);m&&Object.defineProperty(o,y,m.get?m:{enumerable:!0,get:()=>u[y]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))u(y);new MutationObserver(y=>{for(const m of y)if(m.type==="childList")for(const D of m.addedNodes)D.tagName==="LINK"&&D.rel==="modulepreload"&&u(D)}).observe(document,{childList:!0,subtree:!0});function h(y){const m={};return y.integrity&&(m.integrity=y.integrity),y.referrerPolicy&&(m.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?m.credentials="include":y.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(y){if(y.ep)return;y.ep=!0;const m=h(y);fetch(y.href,m)}})();function Nm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Ts={exports:{}},_i={};var B0;function Bm(){if(B0)return _i;B0=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function h(u,y,m){var D=null;if(m!==void 0&&(D=""+m),y.key!==void 0&&(D=""+y.key),"key"in y){m={};for(var L in y)L!=="key"&&(m[L]=y[L])}else m=y;return y=m.ref,{$$typeof:o,type:u,key:D,ref:y!==void 0?y:null,props:m}}return _i.Fragment=s,_i.jsx=h,_i.jsxs=h,_i}var j0;function jm(){return j0||(j0=1,Ts.exports=Bm()),Ts.exports}var ki=jm(),As={exports:{}},xe={};var q0;function qm(){if(q0)return xe;q0=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),D=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),V=Symbol.iterator;function te(g){return g===null||typeof g!="object"?null:(g=V&&g[V]||g["@@iterator"],typeof g=="function"?g:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,de={};function F(g,k,B){this.props=g,this.context=k,this.refs=de,this.updater=B||q}F.prototype.isReactComponent={},F.prototype.setState=function(g,k){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,k,"setState")},F.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function ae(){}ae.prototype=F.prototype;function W(g,k,B){this.props=g,this.context=k,this.refs=de,this.updater=B||q}var I=W.prototype=new ae;I.constructor=W,X(I,F.prototype),I.isPureReactComponent=!0;var _=Array.isArray;function Q(){}var j={H:null,A:null,T:null,S:null},me=Object.prototype.hasOwnProperty;function Ee(g,k,B){var $=B.ref;return{$$typeof:o,type:g,key:k,ref:$!==void 0?$:null,props:B}}function ze(g,k){return Ee(g.type,k,g.props)}function ke(g){return typeof g=="object"&&g!==null&&g.$$typeof===o}function De(g){var k={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(B){return k[B]})}var Ze=/\/+/g;function Fe(g,k){return typeof g=="object"&&g!==null&&g.key!=null?De(""+g.key):k.toString(36)}function be(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Q,Q):(g.status="pending",g.then(function(k){g.status==="pending"&&(g.status="fulfilled",g.value=k)},function(k){g.status==="pending"&&(g.status="rejected",g.reason=k)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function w(g,k,B,$,ee){var re=typeof g;(re==="undefined"||re==="boolean")&&(g=null);var _e=!1;if(g===null)_e=!0;else switch(re){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(g.$$typeof){case o:case s:_e=!0;break;case G:return _e=g._init,w(_e(g._payload),k,B,$,ee)}}if(_e)return ee=ee(g),_e=$===""?"."+Fe(g,0):$,_(ee)?(B="",_e!=null&&(B=_e.replace(Ze,"$&/")+"/"),w(ee,k,B,"",function(El){return El})):ee!=null&&(ke(ee)&&(ee=ze(ee,B+(ee.key==null||g&&g.key===ee.key?"":(""+ee.key).replace(Ze,"$&/")+"/")+_e)),k.push(ee)),1;_e=0;var St=$===""?".":$+":";if(_(g))for(var Ie=0;Ie<g.length;Ie++)$=g[Ie],re=St+Fe($,Ie),_e+=w($,k,B,re,ee);else if(Ie=te(g),typeof Ie=="function")for(g=Ie.call(g),Ie=0;!($=g.next()).done;)$=$.value,re=St+Fe($,Ie++),_e+=w($,k,B,re,ee);else if(re==="object"){if(typeof g.then=="function")return w(be(g),k,B,$,ee);throw k=String(g),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return _e}function Y(g,k,B){if(g==null)return g;var $=[],ee=0;return w(g,$,"","",function(re){return k.call(B,re,ee++)}),$}function Z(g){if(g._status===-1){var k=g._result;k=k(),k.then(function(B){(g._status===0||g._status===-1)&&(g._status=1,g._result=B)},function(B){(g._status===0||g._status===-1)&&(g._status=2,g._result=B)}),g._status===-1&&(g._status=0,g._result=k)}if(g._status===1)return g._result.default;throw g._result}var oe=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},Se={map:Y,forEach:function(g,k,B){Y(g,function(){k.apply(this,arguments)},B)},count:function(g){var k=0;return Y(g,function(){k++}),k},toArray:function(g){return Y(g,function(k){return k})||[]},only:function(g){if(!ke(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return xe.Activity=N,xe.Children=Se,xe.Component=F,xe.Fragment=h,xe.Profiler=y,xe.PureComponent=W,xe.StrictMode=u,xe.Suspense=O,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,xe.__COMPILER_RUNTIME={__proto__:null,c:function(g){return j.H.useMemoCache(g)}},xe.cache=function(g){return function(){return g.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(g,k,B){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var $=X({},g.props),ee=g.key;if(k!=null)for(re in k.key!==void 0&&(ee=""+k.key),k)!me.call(k,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&k.ref===void 0||($[re]=k[re]);var re=arguments.length-2;if(re===1)$.children=B;else if(1<re){for(var _e=Array(re),St=0;St<re;St++)_e[St]=arguments[St+2];$.children=_e}return Ee(g.type,ee,$)},xe.createContext=function(g){return g={$$typeof:D,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:m,_context:g},g},xe.createElement=function(g,k,B){var $,ee={},re=null;if(k!=null)for($ in k.key!==void 0&&(re=""+k.key),k)me.call(k,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ee[$]=k[$]);var _e=arguments.length-2;if(_e===1)ee.children=B;else if(1<_e){for(var St=Array(_e),Ie=0;Ie<_e;Ie++)St[Ie]=arguments[Ie+2];ee.children=St}if(g&&g.defaultProps)for($ in _e=g.defaultProps,_e)ee[$]===void 0&&(ee[$]=_e[$]);return Ee(g,re,ee)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(g){return{$$typeof:L,render:g}},xe.isValidElement=ke,xe.lazy=function(g){return{$$typeof:G,_payload:{_status:-1,_result:g},_init:Z}},xe.memo=function(g,k){return{$$typeof:x,type:g,compare:k===void 0?null:k}},xe.startTransition=function(g){var k=j.T,B={};j.T=B;try{var $=g(),ee=j.S;ee!==null&&ee(B,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Q,oe)}catch(re){oe(re)}finally{k!==null&&B.types!==null&&(k.types=B.types),j.T=k}},xe.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},xe.use=function(g){return j.H.use(g)},xe.useActionState=function(g,k,B){return j.H.useActionState(g,k,B)},xe.useCallback=function(g,k){return j.H.useCallback(g,k)},xe.useContext=function(g){return j.H.useContext(g)},xe.useDebugValue=function(){},xe.useDeferredValue=function(g,k){return j.H.useDeferredValue(g,k)},xe.useEffect=function(g,k){return j.H.useEffect(g,k)},xe.useEffectEvent=function(g){return j.H.useEffectEvent(g)},xe.useId=function(){return j.H.useId()},xe.useImperativeHandle=function(g,k,B){return j.H.useImperativeHandle(g,k,B)},xe.useInsertionEffect=function(g,k){return j.H.useInsertionEffect(g,k)},xe.useLayoutEffect=function(g,k){return j.H.useLayoutEffect(g,k)},xe.useMemo=function(g,k){return j.H.useMemo(g,k)},xe.useOptimistic=function(g,k){return j.H.useOptimistic(g,k)},xe.useReducer=function(g,k,B){return j.H.useReducer(g,k,B)},xe.useRef=function(g){return j.H.useRef(g)},xe.useState=function(g){return j.H.useState(g)},xe.useSyncExternalStore=function(g,k,B){return j.H.useSyncExternalStore(g,k,B)},xe.useTransition=function(){return j.H.useTransition()},xe.version="19.2.4",xe}var Y0;function qs(){return Y0||(Y0=1,As.exports=qm()),As.exports}var A=qs();const ch=Nm(A),G0=Hm({__proto__:null,default:ch},[A]);function Ym(o){if(o.sheet)return o.sheet;for(var s=0;s<document.styleSheets.length;s++)if(document.styleSheets[s].ownerNode===o)return document.styleSheets[s]}function Gm(o){var s=document.createElement("style");return s.setAttribute("data-emotion",o.key),o.nonce!==void 0&&s.setAttribute("nonce",o.nonce),s.appendChild(document.createTextNode("")),s.setAttribute("data-s",""),s}var Vm=(function(){function o(h){var u=this;this._insertTag=function(y){var m;u.tags.length===0?u.insertionPoint?m=u.insertionPoint.nextSibling:u.prepend?m=u.container.firstChild:m=u.before:m=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(y,m),u.tags.push(y)},this.isSpeedy=h.speedy===void 0?!0:h.speedy,this.tags=[],this.ctr=0,this.nonce=h.nonce,this.key=h.key,this.container=h.container,this.prepend=h.prepend,this.insertionPoint=h.insertionPoint,this.before=null}var s=o.prototype;return s.hydrate=function(u){u.forEach(this._insertTag)},s.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Gm(this));var y=this.tags[this.tags.length-1];if(this.isSpeedy){var m=Ym(y);try{m.insertRule(u,m.cssRules.length)}catch{}}else y.appendChild(document.createTextNode(u));this.ctr++},s.flush=function(){this.tags.forEach(function(u){var y;return(y=u.parentNode)==null?void 0:y.removeChild(u)}),this.tags=[],this.ctr=0},o})(),Ht="-ms-",rc="-moz-",Xe="-webkit-",rh="comm",Ys="rule",Gs="decl",Xm="@import",sh="@keyframes",Qm="@layer",Zm=Math.abs,sc=String.fromCharCode,Km=Object.assign;function Jm(o,s){return Rt(o,0)^45?(((s<<2^Rt(o,0))<<2^Rt(o,1))<<2^Rt(o,2))<<2^Rt(o,3):0}function uh(o){return o.trim()}function Fm(o,s){return(o=s.exec(o))?o[0]:o}function Qe(o,s,h){return o.replace(s,h)}function Hs(o,s){return o.indexOf(s)}function Rt(o,s){return o.charCodeAt(s)|0}function Li(o,s,h){return o.slice(s,h)}function Tl(o){return o.length}function Vs(o){return o.length}function ac(o,s){return s.push(o),o}function $m(o,s){return o.map(s).join("")}var uc=1,Ha=1,fh=0,Jt=0,xt=0,Ba="";function fc(o,s,h,u,y,m,D){return{value:o,root:s,parent:h,type:u,props:y,children:m,line:uc,column:Ha,length:D,return:""}}function Di(o,s){return Km(fc("",null,null,"",null,null,0),o,{length:-o.length},s)}function Wm(){return xt}function Im(){return xt=Jt>0?Rt(Ba,--Jt):0,Ha--,xt===10&&(Ha=1,uc--),xt}function nl(){return xt=Jt<fh?Rt(Ba,Jt++):0,Ha++,xt===10&&(Ha=1,uc++),xt}function wl(){return Rt(Ba,Jt)}function ic(){return Jt}function Ni(o,s){return Li(Ba,o,s)}function Ui(o){switch(o){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dh(o){return uc=Ha=1,fh=Tl(Ba=o),Jt=0,[]}function hh(o){return Ba="",o}function oc(o){return uh(Ni(Jt-1,Ns(o===91?o+2:o===40?o+1:o)))}function Pm(o){for(;(xt=wl())&&xt<33;)nl();return Ui(o)>2||Ui(xt)>3?"":" "}function e1(o,s){for(;--s&&nl()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return Ni(o,ic()+(s<6&&wl()==32&&nl()==32))}function Ns(o){for(;nl();)switch(xt){case o:return Jt;case 34:case 39:o!==34&&o!==39&&Ns(xt);break;case 40:o===41&&Ns(o);break;case 92:nl();break}return Jt}function t1(o,s){for(;nl()&&o+xt!==57;)if(o+xt===84&&wl()===47)break;return"/*"+Ni(s,Jt-1)+"*"+sc(o===47?o:nl())}function l1(o){for(;!Ui(wl());)nl();return Ni(o,Jt)}function n1(o){return hh(cc("",null,null,null,[""],o=dh(o),0,[0],o))}function cc(o,s,h,u,y,m,D,L,O){for(var x=0,G=0,N=D,V=0,te=0,q=0,X=1,de=1,F=1,ae=0,W="",I=y,_=m,Q=u,j=W;de;)switch(q=ae,ae=nl()){case 40:if(q!=108&&Rt(j,N-1)==58){Hs(j+=Qe(oc(ae),"&","&\f"),"&\f")!=-1&&(F=-1);break}case 34:case 39:case 91:j+=oc(ae);break;case 9:case 10:case 13:case 32:j+=Pm(q);break;case 92:j+=e1(ic()-1,7);continue;case 47:switch(wl()){case 42:case 47:ac(a1(t1(nl(),ic()),s,h),O);break;default:j+="/"}break;case 123*X:L[x++]=Tl(j)*F;case 125*X:case 59:case 0:switch(ae){case 0:case 125:de=0;case 59+G:F==-1&&(j=Qe(j,/\f/g,"")),te>0&&Tl(j)-N&&ac(te>32?X0(j+";",u,h,N-1):X0(Qe(j," ","")+";",u,h,N-2),O);break;case 59:j+=";";default:if(ac(Q=V0(j,s,h,x,G,y,L,W,I=[],_=[],N),m),ae===123)if(G===0)cc(j,s,Q,Q,I,m,N,L,_);else switch(V===99&&Rt(j,3)===110?100:V){case 100:case 108:case 109:case 115:cc(o,Q,Q,u&&ac(V0(o,Q,Q,0,0,y,L,W,y,I=[],N),_),y,_,N,L,u?I:_);break;default:cc(j,Q,Q,Q,[""],_,0,L,_)}}x=G=te=0,X=F=1,W=j="",N=D;break;case 58:N=1+Tl(j),te=q;default:if(X<1){if(ae==123)--X;else if(ae==125&&X++==0&&Im()==125)continue}switch(j+=sc(ae),ae*X){case 38:F=G>0?1:(j+="\f",-1);break;case 44:L[x++]=(Tl(j)-1)*F,F=1;break;case 64:wl()===45&&(j+=oc(nl())),V=wl(),G=N=Tl(W=j+=l1(ic())),ae++;break;case 45:q===45&&Tl(j)==2&&(X=0)}}return m}function V0(o,s,h,u,y,m,D,L,O,x,G){for(var N=y-1,V=y===0?m:[""],te=Vs(V),q=0,X=0,de=0;q<u;++q)for(var F=0,ae=Li(o,N+1,N=Zm(X=D[q])),W=o;F<te;++F)(W=uh(X>0?V[F]+" "+ae:Qe(ae,/&\f/g,V[F])))&&(O[de++]=W);return fc(o,s,h,y===0?Ys:L,O,x,G)}function a1(o,s,h){return fc(o,s,h,rh,sc(Wm()),Li(o,2,-2),0)}function X0(o,s,h,u){return fc(o,s,h,Gs,Li(o,0,u),Li(o,u+1,-1),u)}function Ua(o,s){for(var h="",u=Vs(o),y=0;y<u;y++)h+=s(o[y],y,o,s)||"";return h}function i1(o,s,h,u){switch(o.type){case Qm:if(o.children.length)break;case Xm:case Gs:return o.return=o.return||o.value;case rh:return"";case sh:return o.return=o.value+"{"+Ua(o.children,u)+"}";case Ys:o.value=o.props.join(",")}return Tl(h=Ua(o.children,u))?o.return=o.value+"{"+h+"}":""}function o1(o){var s=Vs(o);return function(h,u,y,m){for(var D="",L=0;L<s;L++)D+=o[L](h,u,y,m)||"";return D}}function c1(o){return function(s){s.root||(s=s.return)&&o(s)}}function r1(o){var s=Object.create(null);return function(h){return s[h]===void 0&&(s[h]=o(h)),s[h]}}var s1=function(s,h,u){for(var y=0,m=0;y=m,m=wl(),y===38&&m===12&&(h[u]=1),!Ui(m);)nl();return Ni(s,Jt)},u1=function(s,h){var u=-1,y=44;do switch(Ui(y)){case 0:y===38&&wl()===12&&(h[u]=1),s[u]+=s1(Jt-1,h,u);break;case 2:s[u]+=oc(y);break;case 4:if(y===44){s[++u]=wl()===58?"&\f":"",h[u]=s[u].length;break}default:s[u]+=sc(y)}while(y=nl());return s},f1=function(s,h){return hh(u1(dh(s),h))},Q0=new WeakMap,d1=function(s){if(!(s.type!=="rule"||!s.parent||s.length<1)){for(var h=s.value,u=s.parent,y=s.column===u.column&&s.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(s.props.length===1&&h.charCodeAt(0)!==58&&!Q0.get(u))&&!y){Q0.set(s,!0);for(var m=[],D=f1(h,m),L=u.props,O=0,x=0;O<D.length;O++)for(var G=0;G<L.length;G++,x++)s.props[x]=m[O]?D[O].replace(/&\f/g,L[G]):L[G]+" "+D[O]}}},h1=function(s){if(s.type==="decl"){var h=s.value;h.charCodeAt(0)===108&&h.charCodeAt(2)===98&&(s.return="",s.value="")}};function ph(o,s){switch(Jm(o,s)){case 5103:return Xe+"print-"+o+o;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xe+o+o;case 5349:case 4246:case 4810:case 6968:case 2756:return Xe+o+rc+o+Ht+o+o;case 6828:case 4268:return Xe+o+Ht+o+o;case 6165:return Xe+o+Ht+"flex-"+o+o;case 5187:return Xe+o+Qe(o,/(\w+).+(:[^]+)/,Xe+"box-$1$2"+Ht+"flex-$1$2")+o;case 5443:return Xe+o+Ht+"flex-item-"+Qe(o,/flex-|-self/,"")+o;case 4675:return Xe+o+Ht+"flex-line-pack"+Qe(o,/align-content|flex-|-self/,"")+o;case 5548:return Xe+o+Ht+Qe(o,"shrink","negative")+o;case 5292:return Xe+o+Ht+Qe(o,"basis","preferred-size")+o;case 6060:return Xe+"box-"+Qe(o,"-grow","")+Xe+o+Ht+Qe(o,"grow","positive")+o;case 4554:return Xe+Qe(o,/([^-])(transform)/g,"$1"+Xe+"$2")+o;case 6187:return Qe(Qe(Qe(o,/(zoom-|grab)/,Xe+"$1"),/(image-set)/,Xe+"$1"),o,"")+o;case 5495:case 3959:return Qe(o,/(image-set\([^]*)/,Xe+"$1$`$1");case 4968:return Qe(Qe(o,/(.+:)(flex-)?(.*)/,Xe+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xe+o+o;case 4095:case 3583:case 4068:case 2532:return Qe(o,/(.+)-inline(.+)/,Xe+"$1$2")+o;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tl(o)-1-s>6)switch(Rt(o,s+1)){case 109:if(Rt(o,s+4)!==45)break;case 102:return Qe(o,/(.+:)(.+)-([^]+)/,"$1"+Xe+"$2-$3$1"+rc+(Rt(o,s+3)==108?"$3":"$2-$3"))+o;case 115:return~Hs(o,"stretch")?ph(Qe(o,"stretch","fill-available"),s)+o:o}break;case 4949:if(Rt(o,s+1)!==115)break;case 6444:switch(Rt(o,Tl(o)-3-(~Hs(o,"!important")&&10))){case 107:return Qe(o,":",":"+Xe)+o;case 101:return Qe(o,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xe+(Rt(o,14)===45?"inline-":"")+"box$3$1"+Xe+"$2$3$1"+Ht+"$2box$3")+o}break;case 5936:switch(Rt(o,s+11)){case 114:return Xe+o+Ht+Qe(o,/[svh]\w+-[tblr]{2}/,"tb")+o;case 108:return Xe+o+Ht+Qe(o,/[svh]\w+-[tblr]{2}/,"tb-rl")+o;case 45:return Xe+o+Ht+Qe(o,/[svh]\w+-[tblr]{2}/,"lr")+o}return Xe+o+Ht+o+o}return o}var p1=function(s,h,u,y){if(s.length>-1&&!s.return)switch(s.type){case Gs:s.return=ph(s.value,s.length);break;case sh:return Ua([Di(s,{value:Qe(s.value,"@","@"+Xe)})],y);case Ys:if(s.length)return $m(s.props,function(m){switch(Fm(m,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ua([Di(s,{props:[Qe(m,/:(read-\w+)/,":"+rc+"$1")]})],y);case"::placeholder":return Ua([Di(s,{props:[Qe(m,/:(plac\w+)/,":"+Xe+"input-$1")]}),Di(s,{props:[Qe(m,/:(plac\w+)/,":"+rc+"$1")]}),Di(s,{props:[Qe(m,/:(plac\w+)/,Ht+"input-$1")]})],y)}return""})}},m1=[p1],g1=function(s){var h=s.key;if(h==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(X){var de=X.getAttribute("data-emotion");de.indexOf(" ")!==-1&&(document.head.appendChild(X),X.setAttribute("data-s",""))})}var y=s.stylisPlugins||m1,m={},D,L=[];D=s.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+h+' "]'),function(X){for(var de=X.getAttribute("data-emotion").split(" "),F=1;F<de.length;F++)m[de[F]]=!0;L.push(X)});var O,x=[d1,h1];{var G,N=[i1,c1(function(X){G.insert(X)})],V=o1(x.concat(y,N)),te=function(de){return Ua(n1(de),V)};O=function(de,F,ae,W){G=ae,te(de?de+"{"+F.styles+"}":F.styles),W&&(q.inserted[F.name]=!0)}}var q={key:h,sheet:new Vm({key:h,container:D,nonce:s.nonce,speedy:s.speedy,prepend:s.prepend,insertionPoint:s.insertionPoint}),nonce:s.nonce,inserted:m,registered:{},insert:O};return q.sheet.hydrate(L),q},ws={exports:{}},Je={};var Z0;function y1(){if(Z0)return Je;Z0=1;var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103,h=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,y=o?Symbol.for("react.strict_mode"):60108,m=o?Symbol.for("react.profiler"):60114,D=o?Symbol.for("react.provider"):60109,L=o?Symbol.for("react.context"):60110,O=o?Symbol.for("react.async_mode"):60111,x=o?Symbol.for("react.concurrent_mode"):60111,G=o?Symbol.for("react.forward_ref"):60112,N=o?Symbol.for("react.suspense"):60113,V=o?Symbol.for("react.suspense_list"):60120,te=o?Symbol.for("react.memo"):60115,q=o?Symbol.for("react.lazy"):60116,X=o?Symbol.for("react.block"):60121,de=o?Symbol.for("react.fundamental"):60117,F=o?Symbol.for("react.responder"):60118,ae=o?Symbol.for("react.scope"):60119;function W(_){if(typeof _=="object"&&_!==null){var Q=_.$$typeof;switch(Q){case s:switch(_=_.type,_){case O:case x:case u:case m:case y:case N:return _;default:switch(_=_&&_.$$typeof,_){case L:case G:case q:case te:case D:return _;default:return Q}}case h:return Q}}}function I(_){return W(_)===x}return Je.AsyncMode=O,Je.ConcurrentMode=x,Je.ContextConsumer=L,Je.ContextProvider=D,Je.Element=s,Je.ForwardRef=G,Je.Fragment=u,Je.Lazy=q,Je.Memo=te,Je.Portal=h,Je.Profiler=m,Je.StrictMode=y,Je.Suspense=N,Je.isAsyncMode=function(_){return I(_)||W(_)===O},Je.isConcurrentMode=I,Je.isContextConsumer=function(_){return W(_)===L},Je.isContextProvider=function(_){return W(_)===D},Je.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===s},Je.isForwardRef=function(_){return W(_)===G},Je.isFragment=function(_){return W(_)===u},Je.isLazy=function(_){return W(_)===q},Je.isMemo=function(_){return W(_)===te},Je.isPortal=function(_){return W(_)===h},Je.isProfiler=function(_){return W(_)===m},Je.isStrictMode=function(_){return W(_)===y},Je.isSuspense=function(_){return W(_)===N},Je.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===u||_===x||_===m||_===y||_===N||_===V||typeof _=="object"&&_!==null&&(_.$$typeof===q||_.$$typeof===te||_.$$typeof===D||_.$$typeof===L||_.$$typeof===G||_.$$typeof===de||_.$$typeof===F||_.$$typeof===ae||_.$$typeof===X)},Je.typeOf=W,Je}var K0;function v1(){return K0||(K0=1,ws.exports=y1()),ws.exports}var Es,J0;function b1(){if(J0)return Es;J0=1;var o=v1(),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},m={};m[o.ForwardRef]=u,m[o.Memo]=y;function D(q){return o.isMemo(q)?y:m[q.$$typeof]||s}var L=Object.defineProperty,O=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,G=Object.getOwnPropertyDescriptor,N=Object.getPrototypeOf,V=Object.prototype;function te(q,X,de){if(typeof X!="string"){if(V){var F=N(X);F&&F!==V&&te(q,F,de)}var ae=O(X);x&&(ae=ae.concat(x(X)));for(var W=D(q),I=D(X),_=0;_<ae.length;++_){var Q=ae[_];if(!h[Q]&&!(de&&de[Q])&&!(I&&I[Q])&&!(W&&W[Q])){var j=G(X,Q);try{L(q,Q,j)}catch{}}}}return q}return Es=te,Es}b1();var x1=!0;function S1(o,s,h){var u="";return h.split(" ").forEach(function(y){o[y]!==void 0?s.push(o[y]+";"):y&&(u+=y+" ")}),u}var mh=function(s,h,u){var y=s.key+"-"+h.name;(u===!1||x1===!1)&&s.registered[y]===void 0&&(s.registered[y]=h.styles)},C1=function(s,h,u){mh(s,h,u);var y=s.key+"-"+h.name;if(s.inserted[h.name]===void 0){var m=h;do s.insert(h===m?"."+y:"",m,s.sheet,!0),m=m.next;while(m!==void 0)}};function z1(o){for(var s=0,h,u=0,y=o.length;y>=4;++u,y-=4)h=o.charCodeAt(u)&255|(o.charCodeAt(++u)&255)<<8|(o.charCodeAt(++u)&255)<<16|(o.charCodeAt(++u)&255)<<24,h=(h&65535)*1540483477+((h>>>16)*59797<<16),h^=h>>>24,s=(h&65535)*1540483477+((h>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch(y){case 3:s^=(o.charCodeAt(u+2)&255)<<16;case 2:s^=(o.charCodeAt(u+1)&255)<<8;case 1:s^=o.charCodeAt(u)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var M1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},T1=/[A-Z]|^ms/g,A1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gh=function(s){return s.charCodeAt(1)===45},F0=function(s){return s!=null&&typeof s!="boolean"},_s=r1(function(o){return gh(o)?o:o.replace(T1,"-$&").toLowerCase()}),$0=function(s,h){switch(s){case"animation":case"animationName":if(typeof h=="string")return h.replace(A1,function(u,y,m){return Al={name:y,styles:m,next:Al},y})}return M1[s]!==1&&!gh(s)&&typeof h=="number"&&h!==0?h+"px":h};function Hi(o,s,h){if(h==null)return"";var u=h;if(u.__emotion_styles!==void 0)return u;switch(typeof h){case"boolean":return"";case"object":{var y=h;if(y.anim===1)return Al={name:y.name,styles:y.styles,next:Al},y.name;var m=h;if(m.styles!==void 0){var D=m.next;if(D!==void 0)for(;D!==void 0;)Al={name:D.name,styles:D.styles,next:Al},D=D.next;var L=m.styles+";";return L}return w1(o,s,h)}case"function":{if(o!==void 0){var O=Al,x=h(o);return Al=O,Hi(o,s,x)}break}}var G=h;return G}function w1(o,s,h){var u="";if(Array.isArray(h))for(var y=0;y<h.length;y++)u+=Hi(o,s,h[y])+";";else for(var m in h){var D=h[m];if(typeof D!="object"){var L=D;F0(L)&&(u+=_s(m)+":"+$0(m,L)+";")}else if(Array.isArray(D)&&typeof D[0]=="string"&&s==null)for(var O=0;O<D.length;O++)F0(D[O])&&(u+=_s(m)+":"+$0(m,D[O])+";");else{var x=Hi(o,s,D);switch(m){case"animation":case"animationName":{u+=_s(m)+":"+x+";";break}default:u+=m+"{"+x+"}"}}}return u}var W0=/label:\s*([^\s;{]+)\s*(;|$)/g,Al;function yh(o,s,h){if(o.length===1&&typeof o[0]=="object"&&o[0]!==null&&o[0].styles!==void 0)return o[0];var u=!0,y="";Al=void 0;var m=o[0];if(m==null||m.raw===void 0)u=!1,y+=Hi(h,s,m);else{var D=m;y+=D[0]}for(var L=1;L<o.length;L++)if(y+=Hi(h,s,o[L]),u){var O=m;y+=O[L]}W0.lastIndex=0;for(var x="",G;(G=W0.exec(y))!==null;)x+="-"+G[1];var N=z1(y)+x;return{name:N,styles:y,next:Al}}var E1=function(s){return s()},_1=G0.useInsertionEffect?G0.useInsertionEffect:!1,D1=_1||E1,vh=A.createContext(typeof HTMLElement<"u"?g1({key:"css"}):null);vh.Provider;var O1=function(s){return A.forwardRef(function(h,u){var y=A.useContext(vh);return s(h,y,u)})},R1=A.createContext({}),Bi={}.hasOwnProperty,Bs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xs=function(s,h){var u={};for(var y in h)Bi.call(h,y)&&(u[y]=h[y]);return u[Bs]=s,u},k1=function(s){var h=s.cache,u=s.serialized,y=s.isStringTag;return mh(h,u,y),D1(function(){return C1(h,u,y)}),null},L1=O1(function(o,s,h){var u=o.css;typeof u=="string"&&s.registered[u]!==void 0&&(u=s.registered[u]);var y=o[Bs],m=[u],D="";typeof o.className=="string"?D=S1(s.registered,m,o.className):o.className!=null&&(D=o.className+" ");var L=yh(m,void 0,A.useContext(R1));D+=s.key+"-"+L.name;var O={};for(var x in o)Bi.call(o,x)&&x!=="css"&&x!==Bs&&(O[x]=o[x]);return O.className=D,h&&(O.ref=h),A.createElement(A.Fragment,null,A.createElement(k1,{cache:s,serialized:L,isStringTag:typeof y=="string"}),A.createElement(y,O))}),Qs=L1,qt=ki.Fragment,r=function(s,h,u){return Bi.call(h,"css")?ki.jsx(Qs,Xs(s,h),u):ki.jsx(s,h,u)},C=function(s,h,u){return Bi.call(h,"css")?ki.jsxs(Qs,Xs(s,h),u):ki.jsxs(s,h,u)},Ds={exports:{}},Oi={},Os={exports:{}},Rs={};var I0;function U1(){return I0||(I0=1,(function(o){function s(w,Y){var Z=w.length;w.push(Y);e:for(;0<Z;){var oe=Z-1>>>1,Se=w[oe];if(0<y(Se,Y))w[oe]=Y,w[Z]=Se,Z=oe;else break e}}function h(w){return w.length===0?null:w[0]}function u(w){if(w.length===0)return null;var Y=w[0],Z=w.pop();if(Z!==Y){w[0]=Z;e:for(var oe=0,Se=w.length,g=Se>>>1;oe<g;){var k=2*(oe+1)-1,B=w[k],$=k+1,ee=w[$];if(0>y(B,Z))$<Se&&0>y(ee,B)?(w[oe]=ee,w[$]=Z,oe=$):(w[oe]=B,w[k]=Z,oe=k);else if($<Se&&0>y(ee,Z))w[oe]=ee,w[$]=Z,oe=$;else break e}}return Y}function y(w,Y){var Z=w.sortIndex-Y.sortIndex;return Z!==0?Z:w.id-Y.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;o.unstable_now=function(){return m.now()}}else{var D=Date,L=D.now();o.unstable_now=function(){return D.now()-L}}var O=[],x=[],G=1,N=null,V=3,te=!1,q=!1,X=!1,de=!1,F=typeof setTimeout=="function"?setTimeout:null,ae=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function I(w){for(var Y=h(x);Y!==null;){if(Y.callback===null)u(x);else if(Y.startTime<=w)u(x),Y.sortIndex=Y.expirationTime,s(O,Y);else break;Y=h(x)}}function _(w){if(X=!1,I(w),!q)if(h(O)!==null)q=!0,Q||(Q=!0,De());else{var Y=h(x);Y!==null&&be(_,Y.startTime-w)}}var Q=!1,j=-1,me=5,Ee=-1;function ze(){return de?!0:!(o.unstable_now()-Ee<me)}function ke(){if(de=!1,Q){var w=o.unstable_now();Ee=w;var Y=!0;try{e:{q=!1,X&&(X=!1,ae(j),j=-1),te=!0;var Z=V;try{t:{for(I(w),N=h(O);N!==null&&!(N.expirationTime>w&&ze());){var oe=N.callback;if(typeof oe=="function"){N.callback=null,V=N.priorityLevel;var Se=oe(N.expirationTime<=w);if(w=o.unstable_now(),typeof Se=="function"){N.callback=Se,I(w),Y=!0;break t}N===h(O)&&u(O),I(w)}else u(O);N=h(O)}if(N!==null)Y=!0;else{var g=h(x);g!==null&&be(_,g.startTime-w),Y=!1}}break e}finally{N=null,V=Z,te=!1}Y=void 0}}finally{Y?De():Q=!1}}}var De;if(typeof W=="function")De=function(){W(ke)};else if(typeof MessageChannel<"u"){var Ze=new MessageChannel,Fe=Ze.port2;Ze.port1.onmessage=ke,De=function(){Fe.postMessage(null)}}else De=function(){F(ke,0)};function be(w,Y){j=F(function(){w(o.unstable_now())},Y)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(w){w.callback=null},o.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<w?Math.floor(1e3/w):5},o.unstable_getCurrentPriorityLevel=function(){return V},o.unstable_next=function(w){switch(V){case 1:case 2:case 3:var Y=3;break;default:Y=V}var Z=V;V=Y;try{return w()}finally{V=Z}},o.unstable_requestPaint=function(){de=!0},o.unstable_runWithPriority=function(w,Y){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var Z=V;V=w;try{return Y()}finally{V=Z}},o.unstable_scheduleCallback=function(w,Y,Z){var oe=o.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?oe+Z:oe):Z=oe,w){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=Z+Se,w={id:G++,callback:Y,priorityLevel:w,startTime:Z,expirationTime:Se,sortIndex:-1},Z>oe?(w.sortIndex=Z,s(x,w),h(O)===null&&w===h(x)&&(X?(ae(j),j=-1):X=!0,be(_,Z-oe))):(w.sortIndex=Se,s(O,w),q||te||(q=!0,Q||(Q=!0,De()))),w},o.unstable_shouldYield=ze,o.unstable_wrapCallback=function(w){var Y=V;return function(){var Z=V;V=Y;try{return w.apply(this,arguments)}finally{V=Z}}}})(Rs)),Rs}var P0;function H1(){return P0||(P0=1,Os.exports=U1()),Os.exports}var ks={exports:{}},Ut={};var eh;function N1(){if(eh)return Ut;eh=1;var o=qs();function s(O){var x="https://react.dev/errors/"+O;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)x+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+O+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var u={d:{f:h,r:function(){throw Error(s(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},y=Symbol.for("react.portal");function m(O,x,G){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:N==null?null:""+N,children:O,containerInfo:x,implementation:G}}var D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function L(O,x){if(O==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Ut.createPortal=function(O,x){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(s(299));return m(O,x,null,G)},Ut.flushSync=function(O){var x=D.T,G=u.p;try{if(D.T=null,u.p=2,O)return O()}finally{D.T=x,u.p=G,u.d.f()}},Ut.preconnect=function(O,x){typeof O=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,u.d.C(O,x))},Ut.prefetchDNS=function(O){typeof O=="string"&&u.d.D(O)},Ut.preinit=function(O,x){if(typeof O=="string"&&x&&typeof x.as=="string"){var G=x.as,N=L(G,x.crossOrigin),V=typeof x.integrity=="string"?x.integrity:void 0,te=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;G==="style"?u.d.S(O,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:N,integrity:V,fetchPriority:te}):G==="script"&&u.d.X(O,{crossOrigin:N,integrity:V,fetchPriority:te,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Ut.preinitModule=function(O,x){if(typeof O=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var G=L(x.as,x.crossOrigin);u.d.M(O,{crossOrigin:G,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&u.d.M(O)},Ut.preload=function(O,x){if(typeof O=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var G=x.as,N=L(G,x.crossOrigin);u.d.L(O,G,{crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Ut.preloadModule=function(O,x){if(typeof O=="string")if(x){var G=L(x.as,x.crossOrigin);u.d.m(O,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:G,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else u.d.m(O)},Ut.requestFormReset=function(O){u.d.r(O)},Ut.unstable_batchedUpdates=function(O,x){return O(x)},Ut.useFormState=function(O,x,G){return D.H.useFormState(O,x,G)},Ut.useFormStatus=function(){return D.H.useHostTransitionStatus()},Ut.version="19.2.4",Ut}var th;function B1(){if(th)return ks.exports;th=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(s){console.error(s)}}return o(),ks.exports=N1(),ks.exports}var lh;function j1(){if(lh)return Oi;lh=1;var o=H1(),s=qs(),h=B1();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function D(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 L(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 O(e){if(m(e)!==e)throw Error(u(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return O(a),e;if(i===n)return O(a),t;i=i.sibling}throw Error(u(188))}if(l.return!==n.return)l=a,n=i;else{for(var c=!1,d=a.child;d;){if(d===l){c=!0,l=a,n=i;break}if(d===n){c=!0,n=a,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,n=a;break}if(d===n){c=!0,n=i,l=a;break}d=d.sibling}if(!c)throw Error(u(189))}}if(l.alternate!==n)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=G(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,V=Symbol.for("react.element"),te=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),W=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Ze=Symbol.for("react.client.reference");function Fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case F:return"Profiler";case de:return"StrictMode";case _:return"Suspense";case Q:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case W:return e.displayName||"Context";case ae:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j:return t=e.displayName||null,t!==null?t:Fe(e.type)||"Memo";case me:t=e._payload,e=e._init;try{return Fe(e(t))}catch{}}return null}var be=Array.isArray,w=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},oe=[],Se=-1;function g(e){return{current:e}}function k(e){0>Se||(e.current=oe[Se],oe[Se]=null,Se--)}function B(e,t){Se++,oe[Se]=e.current,e.current=t}var $=g(null),ee=g(null),re=g(null),_e=g(null);function St(e,t){switch(B(re,t),B(ee,e),B($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?c0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=c0(t),e=r0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k($),B($,e)}function Ie(){k($),k(ee),k(re)}function El(e){e.memoizedState!==null&&B(_e,e);var t=$.current,l=r0(t,e.type);t!==l&&(B(ee,e),B($,l))}function he(e){ee.current===e&&(k($),k(ee)),_e.current===e&&(k(_e),Ti._currentValue=Z)}var _l,Cn;function Ce(e){if(_l===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||"",Cn=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+_l+e+Cn}var Ct=!1;function mt(e,t){if(!e||Ct)return"";Ct=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(E){var T=E}Reflect.construct(e,[],H)}else{try{H.call()}catch(E){T=E}e.call(H.prototype)}}else{try{throw Error()}catch(E){T=E}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(E){if(E&&T&&typeof E.stack=="string")return[E.stack,T.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var p=c.split(`
4
+ `),M=d.split(`
5
+ `);for(a=n=0;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;for(;a<M.length&&!M[a].includes("DetermineComponentFrameRoot");)a++;if(n===p.length||a===M.length)for(n=p.length-1,a=M.length-1;1<=n&&0<=a&&p[n]!==M[a];)a--;for(;1<=n&&0<=a;n--,a--)if(p[n]!==M[a]){if(n!==1||a!==1)do if(n--,a--,0>a||p[n]!==M[a]){var R=`
6
+ `+p[n].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=n&&0<=a);break}}}finally{Ct=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ce(l):""}function Ft(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce("Lazy");case 13:return e.child!==t&&t!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return mt(e.type,!1);case 11:return mt(e.type.render,!1);case 1:return mt(e.type,!0);case 31:return Ce("Activity");default:return""}}function xl(e){try{var t="",l=null;do t+=Ft(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var zn=Object.prototype.hasOwnProperty,Mn=o.unstable_scheduleCallback,pl=o.unstable_cancelCallback,Jn=o.unstable_shouldYield,Tn=o.unstable_requestPaint,Nt=o.unstable_now,hc=o.unstable_getCurrentPriorityLevel,qi=o.unstable_ImmediatePriority,Yi=o.unstable_UserBlockingPriority,Fn=o.unstable_NormalPriority,pc=o.unstable_LowPriority,Gi=o.unstable_IdlePriority,Vi=o.log,An=o.unstable_setDisableYieldValue,wn=null,Bt=null;function kt(e){if(typeof Vi=="function"&&An(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(wn,e)}catch{}}var Lt=Math.clz32?Math.clz32:Fl,mc=Math.log,ja=Math.LN2;function Fl(e){return e>>>=0,e===0?32:31-(mc(e)/ja|0)|0}var ml=256,En=262144,$n=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 ce(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?a=ve(n):(c&=d,c!==0?a=ve(c):l||(l=d&~e,l!==0&&(a=ve(l))))):(d=n&~i,d!==0?a=ve(d):c!==0?a=ve(c):l||(l=n&~e,l!==0&&(a=ve(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function ie(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Me(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 Ke(){var e=$n;return $n<<=1,($n&62914560)===0&&($n=4194304),e}function Oe(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Re(e,t,l,n,a,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,M=e.hiddenUpdates;for(l=c&~l;0<l;){var R=31-Lt(l),H=1<<R;d[R]=0,p[R]=-1;var T=M[R];if(T!==null)for(M[R]=null,R=0;R<T.length;R++){var E=T[R];E!==null&&(E.lane&=-536870913)}l&=~H}n!==0&&ge(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function ge(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Lt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function rt(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Lt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Pe(e,t){var l=t&-t;return l=(l&42)!==0?1:nt(l),(l&(e.suspendedLanes|t))!==0?0:l}function nt(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 _n(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function gl(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:O0(e.type))}function Xi(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var $l=Math.random().toString(36).slice(2),wt="__reactFiber$"+$l,Yt="__reactProps$"+$l,Wn="__reactContainer$"+$l,gc="__reactEvents$"+$l,Th="__reactListeners$"+$l,Ah="__reactHandles$"+$l,Ks="__reactResources$"+$l,qa="__reactMarker$"+$l;function yc(e){delete e[wt],delete e[Yt],delete e[gc],delete e[Th],delete e[Ah]}function In(e){var t=e[wt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Wn]||l[wt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=m0(e);e!==null;){if(l=e[wt])return l;e=m0(e)}return t}e=l,l=e.parentNode}return null}function Pn(e){if(e=e[wt]||e[Wn]){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(u(33))}function ea(e){var t=e[Ks];return t||(t=e[Ks]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Mt(e){e[qa]=!0}var Js=new Set,Fs={};function Dn(e,t){ta(e,t),ta(e+"Capture",t)}function ta(e,t){for(Fs[e]=t,e=0;e<t.length;e++)Js.add(t[e])}var wh=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]*$"),$s={},Ws={};function Eh(e){return zn.call(Ws,e)?!0:zn.call($s,e)?!1:wh.test(e)?Ws[e]=!0:($s[e]=!0,!1)}function Qi(e,t,l){if(Eh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Zi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Dl(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function al(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Is(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _h(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vc(e){if(!e._valueTracker){var t=Is(e)?"checked":"value";e._valueTracker=_h(e,t,""+e[t])}}function Ps(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Is(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Ki(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 Dh=/[\n"\\]/g;function il(e){return e.replace(Dh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bc(e,t,l,n,a,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+al(t)):e.value!==""+al(t)&&(e.value=""+al(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?xc(e,c,al(t)):l!=null?xc(e,c,al(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+al(d):e.removeAttribute("name")}function eu(e,t,l,n,a,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){vc(e);return}l=l!=null?""+al(l):"",t=t!=null?""+al(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),vc(e)}function xc(e,t,l){t==="number"&&Ki(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function la(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+al(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function tu(e,t,l){if(t!=null&&(t=""+al(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+al(l):""}function lu(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(u(92));if(be(n)){if(1<n.length)throw Error(u(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=al(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),vc(e)}function na(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Oh=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 nu(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||Oh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function au(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&nu(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&nu(e,i,t[i])}function Sc(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 Rh=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"]]),kh=/^[\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 Ji(e){return kh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ol(){}var Cc=null;function zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var aa=null,ia=null;function iu(e){var t=Pn(e);if(t&&(e=t.stateNode)){var l=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(bc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+il(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[Yt]||null;if(!a)throw Error(u(90));bc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Ps(n)}break e;case"textarea":tu(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&la(e,!!l.multiple,t,!1)}}}var Mc=!1;function ou(e,t,l){if(Mc)return e(t,l);Mc=!0;try{var n=e(t);return n}finally{if(Mc=!1,(aa!==null||ia!==null)&&(Ho(),aa&&(t=aa,e=ia,ia=aa=null,iu(t),e)))for(t=0;t<e.length;t++)iu(e[t])}}function Ga(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Yt]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var Rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tc=!1;if(Rl)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Tc=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Tc=!1}var Wl=null,Ac=null,Fi=null;function cu(){if(Fi)return Fi;var e,t=Ac,l=t.length,n,a="value"in Wl?Wl.value:Wl.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var c=l-e;for(n=1;n<=c&&t[l-n]===a[i-n];n++);return Fi=a.slice(e,1<n?1-n:void 0)}function $i(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 Wi(){return!0}function ru(){return!1}function Gt(e){function t(l,n,a,i,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wi:ru,this.isPropagationStopped=ru,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),t}var On={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=Gt(On),Xa=N({},On,{view:0,detail:0}),Lh=Gt(Xa),wc,Ec,Qa,Pi=N({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dc,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"?(wc=e.screenX-Qa.screenX,Ec=e.screenY-Qa.screenY):Ec=wc=0,Qa=e),wc)},movementY:function(e){return"movementY"in e?e.movementY:Ec}}),su=Gt(Pi),Uh=N({},Pi,{dataTransfer:0}),Hh=Gt(Uh),Nh=N({},Xa,{relatedTarget:0}),_c=Gt(Nh),Bh=N({},On,{animationName:0,elapsedTime:0,pseudoElement:0}),jh=Gt(Bh),qh=N({},On,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yh=Gt(qh),Gh=N({},On,{data:0}),uu=Gt(Gh),Vh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xh={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"},Qh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qh[e])?!!t[e]:!1}function Dc(){return Zh}var Kh=N({},Xa,{key:function(e){if(e.key){var t=Vh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dc,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jh=Gt(Kh),Fh=N({},Pi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fu=Gt(Fh),$h=N({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dc}),Wh=Gt($h),Ih=N({},On,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ph=Gt(Ih),ep=N({},Pi,{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}),tp=Gt(ep),lp=N({},On,{newState:0,oldState:0}),np=Gt(lp),ap=[9,13,27,32],Oc=Rl&&"CompositionEvent"in window,Za=null;Rl&&"documentMode"in document&&(Za=document.documentMode);var ip=Rl&&"TextEvent"in window&&!Za,du=Rl&&(!Oc||Za&&8<Za&&11>=Za),hu=" ",pu=!1;function mu(e,t){switch(e){case"keyup":return ap.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function op(e,t){switch(e){case"compositionend":return gu(t);case"keypress":return t.which!==32?null:(pu=!0,hu);case"textInput":return e=t.data,e===hu&&pu?null:e;default:return null}}function cp(e,t){if(oa)return e==="compositionend"||!Oc&&mu(e,t)?(e=cu(),Fi=Ac=Wl=null,oa=!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 du&&t.locale!=="ko"?null:t.data;default:return null}}var rp={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 yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rp[e.type]:t==="textarea"}function vu(e,t,l,n){aa?ia?ia.push(n):ia=[n]:aa=n,t=Vo(t,"onChange"),0<t.length&&(l=new Ii("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Ka=null,Ja=null;function sp(e){t0(e,0)}function eo(e){var t=Ya(e);if(Ps(t))return e}function bu(e,t){if(e==="change")return t}var xu=!1;if(Rl){var Rc;if(Rl){var kc="oninput"in document;if(!kc){var Su=document.createElement("div");Su.setAttribute("oninput","return;"),kc=typeof Su.oninput=="function"}Rc=kc}else Rc=!1;xu=Rc&&(!document.documentMode||9<document.documentMode)}function Cu(){Ka&&(Ka.detachEvent("onpropertychange",zu),Ja=Ka=null)}function zu(e){if(e.propertyName==="value"&&eo(Ja)){var t=[];vu(t,Ja,e,zc(e)),ou(sp,t)}}function up(e,t,l){e==="focusin"?(Cu(),Ka=t,Ja=l,Ka.attachEvent("onpropertychange",zu)):e==="focusout"&&Cu()}function fp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(Ja)}function dp(e,t){if(e==="click")return eo(t)}function hp(e,t){if(e==="input"||e==="change")return eo(t)}function pp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:pp;function Fa(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!zn.call(t,a)||!$t(e[a],t[a]))return!1}return!0}function Mu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tu(e,t){var l=Mu(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Mu(l)}}function Au(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Au(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ki(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ki(e.document)}return t}function Lc(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 mp=Rl&&"documentMode"in document&&11>=document.documentMode,ca=null,Uc=null,$a=null,Hc=!1;function Eu(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hc||ca==null||ca!==Ki(n)||(n=ca,"selectionStart"in n&&Lc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$a&&Fa($a,n)||($a=n,n=Vo(Uc,"onSelect"),0<n.length&&(t=new Ii("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=ca)))}function Rn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ra={animationend:Rn("Animation","AnimationEnd"),animationiteration:Rn("Animation","AnimationIteration"),animationstart:Rn("Animation","AnimationStart"),transitionrun:Rn("Transition","TransitionRun"),transitionstart:Rn("Transition","TransitionStart"),transitioncancel:Rn("Transition","TransitionCancel"),transitionend:Rn("Transition","TransitionEnd")},Nc={},_u={};Rl&&(_u=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function kn(e){if(Nc[e])return Nc[e];if(!ra[e])return e;var t=ra[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in _u)return Nc[e]=t[l];return e}var Du=kn("animationend"),Ou=kn("animationiteration"),Ru=kn("animationstart"),gp=kn("transitionrun"),yp=kn("transitionstart"),vp=kn("transitioncancel"),ku=kn("transitionend"),Lu=new Map,Bc="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(" ");Bc.push("scrollEnd");function yl(e,t){Lu.set(e,t),Dn(t,[e])}var to=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)},ol=[],sa=0,jc=0;function lo(){for(var e=sa,t=jc=sa=0;t<e;){var l=ol[t];ol[t++]=null;var n=ol[t];ol[t++]=null;var a=ol[t];ol[t++]=null;var i=ol[t];if(ol[t++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}i!==0&&Uu(l,a,i)}}function no(e,t,l,n){ol[sa++]=e,ol[sa++]=t,ol[sa++]=l,ol[sa++]=n,jc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function qc(e,t,l,n){return no(e,t,l,n),ao(e)}function Ln(e,t){return no(e,null,null,t),ao(e)}function Uu(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Lt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function ao(e){if(50<vi)throw vi=0,Fr=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ua={};function bp(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,l,n){return new bp(e,t,l,n)}function Yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kl(e,t){var l=e.alternate;return l===null?(l=Wt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Hu(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function io(e,t,l,n,a,i){var c=0;if(n=e,typeof e=="function")Yc(e)&&(c=1);else if(typeof e=="string")c=Mm(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=Wt(31,l,t,a),e.elementType=Ee,e.lanes=i,e;case X:return Un(l.children,a,i,t);case de:c=8,a|=24;break;case F:return e=Wt(12,l,t,a|2),e.elementType=F,e.lanes=i,e;case _:return e=Wt(13,l,t,a),e.elementType=_,e.lanes=i,e;case Q:return e=Wt(19,l,t,a),e.elementType=Q,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:c=10;break e;case ae:c=9;break e;case I:c=11;break e;case j:c=14;break e;case me:c=16,n=null;break e}c=29,l=Error(u(130,e===null?"null":typeof e,"")),n=null}return t=Wt(c,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Un(e,t,l,n){return e=Wt(7,e,n,t),e.lanes=l,e}function Gc(e,t,l){return e=Wt(6,e,null,t),e.lanes=l,e}function Nu(e){var t=Wt(18,null,null,0);return t.stateNode=e,t}function Vc(e,t,l){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bu=new WeakMap;function cl(e,t){if(typeof e=="object"&&e!==null){var l=Bu.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xl(t)},Bu.set(e,t),t)}return{value:e,source:t,stack:xl(t)}}var fa=[],da=0,oo=null,Wa=0,rl=[],sl=0,Il=null,Sl=1,Cl="";function Ll(e,t){fa[da++]=Wa,fa[da++]=oo,oo=e,Wa=t}function ju(e,t,l){rl[sl++]=Sl,rl[sl++]=Cl,rl[sl++]=Il,Il=e;var n=Sl;e=Cl;var a=32-Lt(n)-1;n&=~(1<<a),l+=1;var i=32-Lt(t)+a;if(30<i){var c=a-a%5;i=(n&(1<<c)-1).toString(32),n>>=c,a-=c,Sl=1<<32-Lt(t)+a|l<<a|n,Cl=i+e}else Sl=1<<i|l<<a|n,Cl=e}function Xc(e){e.return!==null&&(Ll(e,1),ju(e,1,0))}function Qc(e){for(;e===oo;)oo=fa[--da],fa[da]=null,Wa=fa[--da],fa[da]=null;for(;e===Il;)Il=rl[--sl],rl[sl]=null,Cl=rl[--sl],rl[sl]=null,Sl=rl[--sl],rl[sl]=null}function qu(e,t){rl[sl++]=Sl,rl[sl++]=Cl,rl[sl++]=Il,Sl=t.id,Cl=t.overflow,Il=e}var Et=null,ot=null,je=!1,Pl=null,ul=!1,Zc=Error(u(519));function en(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(cl(t,e)),Zc}function Yu(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[wt]=e,t[Yt]=n,l){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(l=0;l<xi.length;l++)Ue(xi[l],t);break;case"source":Ue("error",t);break;case"img":case"image":case"link":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"input":Ue("invalid",t),eu(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),lu(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||i0(t.textContent,l)?(n.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),n.onScroll!=null&&Ue("scroll",t),n.onScrollEnd!=null&&Ue("scrollend",t),n.onClick!=null&&(t.onclick=Ol),t=!0):t=!1,t||en(e,!0)}function Gu(e){for(Et=e.return;Et;)switch(Et.tag){case 5:case 31:case 13:ul=!1;return;case 27:case 3:ul=!0;return;default:Et=Et.return}}function ha(e){if(e!==Et)return!1;if(!je)return Gu(e),je=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||us(e.type,e.memoizedProps)),l=!l),l&&ot&&en(e),Gu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));ot=p0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));ot=p0(e)}else t===27?(t=ot,mn(e.type)?(e=ms,ms=null,ot=e):ot=t):ot=Et?dl(e.stateNode.nextSibling):null;return!0}function Hn(){ot=Et=null,je=!1}function Kc(){var e=Pl;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),Pl=null),e}function Ia(e){Pl===null?Pl=[e]:Pl.push(e)}var Jc=g(null),Nn=null,Ul=null;function tn(e,t,l){B(Jc,t._currentValue),t._currentValue=l}function Hl(e){e._currentValue=Jc.current,k(Jc)}function Fc(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function $c(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var c=a.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=a;for(var p=0;p<t.length;p++)if(d.context===t[p]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Fc(i.return,l,e),n||(c=null);break e}i=d.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(u(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),Fc(c,l,e),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===e){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function pa(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(u(387));if(c=c.memoizedProps,c!==null){var d=a.type;$t(a.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(a===_e.current){if(c=a.alternate,c===null)throw Error(u(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ti):e=[Ti])}a=a.return}e!==null&&$c(t,e,l,n),t.flags|=262144}function co(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Bn(e){Nn=e,Ul=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return Vu(Nn,e)}function ro(e,t){return Nn===null&&Bn(e),Vu(e,t)}function Vu(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ul===null){if(e===null)throw Error(u(308));Ul=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ul=Ul.next=t;return l}var xp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Sp=o.unstable_scheduleCallback,Cp=o.unstable_NormalPriority,gt={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new xp,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&Sp(Cp,function(){e.controller.abort()})}var ei=null,Ic=0,ma=0,ga=null;function zp(e,t){if(ei===null){var l=ei=[];Ic=0,ma=ts(),ga={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Ic++,t.then(Xu,Xu),t}function Xu(){if(--Ic===0&&ei!==null){ga!==null&&(ga.status="fulfilled");var e=ei;ei=null,ma=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mp(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Qu=w.S;w.S=function(e,t){_d=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zp(e,t),Qu!==null&&Qu(e,t)};var jn=g(null);function Pc(){var e=jn.current;return e!==null?e:at.pooledCache}function so(e,t){t===null?B(jn,jn.current):B(jn,t.pool)}function Zu(){var e=Pc();return e===null?null:{parent:gt._currentValue,pool:e}}var ya=Error(u(460)),er=Error(u(474)),uo=Error(u(542)),fo={then:function(){}};function Ku(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ju(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Ol,Ol),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$u(e),e;default:if(typeof t.status=="string")t.then(Ol,Ol);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$u(e),e}throw Yn=t,ya}}function qn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Yn=l,ya):l}}var Yn=null;function Fu(){if(Yn===null)throw Error(u(459));var e=Yn;return Yn=null,e}function $u(e){if(e===ya||e===uo)throw Error(u(483))}var va=null,ti=0;function ho(e){var t=ti;return ti+=1,va===null&&(va=[]),Ju(va,e,t)}function li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function po(e,t){throw t.$$typeof===V?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wu(e){function t(S,v){if(e){var z=S.deletions;z===null?(S.deletions=[v],S.flags|=16):z.push(v)}}function l(S,v){if(!e)return null;for(;v!==null;)t(S,v),v=v.sibling;return null}function n(S){for(var v=new Map;S!==null;)S.key!==null?v.set(S.key,S):v.set(S.index,S),S=S.sibling;return v}function a(S,v){return S=kl(S,v),S.index=0,S.sibling=null,S}function i(S,v,z){return S.index=z,e?(z=S.alternate,z!==null?(z=z.index,z<v?(S.flags|=67108866,v):z):(S.flags|=67108866,v)):(S.flags|=1048576,v)}function c(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function d(S,v,z,U){return v===null||v.tag!==6?(v=Gc(z,S.mode,U),v.return=S,v):(v=a(v,z),v.return=S,v)}function p(S,v,z,U){var fe=z.type;return fe===X?R(S,v,z.props.children,U,z.key):v!==null&&(v.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===me&&qn(fe)===v.type)?(v=a(v,z.props),li(v,z),v.return=S,v):(v=io(z.type,z.key,z.props,null,S.mode,U),li(v,z),v.return=S,v)}function M(S,v,z,U){return v===null||v.tag!==4||v.stateNode.containerInfo!==z.containerInfo||v.stateNode.implementation!==z.implementation?(v=Vc(z,S.mode,U),v.return=S,v):(v=a(v,z.children||[]),v.return=S,v)}function R(S,v,z,U,fe){return v===null||v.tag!==7?(v=Un(z,S.mode,U,fe),v.return=S,v):(v=a(v,z),v.return=S,v)}function H(S,v,z){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Gc(""+v,S.mode,z),v.return=S,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case te:return z=io(v.type,v.key,v.props,null,S.mode,z),li(z,v),z.return=S,z;case q:return v=Vc(v,S.mode,z),v.return=S,v;case me:return v=qn(v),H(S,v,z)}if(be(v)||De(v))return v=Un(v,S.mode,z,null),v.return=S,v;if(typeof v.then=="function")return H(S,ho(v),z);if(v.$$typeof===W)return H(S,ro(S,v),z);po(S,v)}return null}function T(S,v,z,U){var fe=v!==null?v.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return fe!==null?null:d(S,v,""+z,U);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case te:return z.key===fe?p(S,v,z,U):null;case q:return z.key===fe?M(S,v,z,U):null;case me:return z=qn(z),T(S,v,z,U)}if(be(z)||De(z))return fe!==null?null:R(S,v,z,U,null);if(typeof z.then=="function")return T(S,v,ho(z),U);if(z.$$typeof===W)return T(S,v,ro(S,z),U);po(S,z)}return null}function E(S,v,z,U,fe){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return S=S.get(z)||null,d(v,S,""+U,fe);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case te:return S=S.get(U.key===null?z:U.key)||null,p(v,S,U,fe);case q:return S=S.get(U.key===null?z:U.key)||null,M(v,S,U,fe);case me:return U=qn(U),E(S,v,z,U,fe)}if(be(U)||De(U))return S=S.get(z)||null,R(v,S,U,fe,null);if(typeof U.then=="function")return E(S,v,z,ho(U),fe);if(U.$$typeof===W)return E(S,v,z,ro(v,U),fe);po(v,U)}return null}function P(S,v,z,U){for(var fe=null,Ye=null,ne=v,we=v=0,Ne=null;ne!==null&&we<z.length;we++){ne.index>we?(Ne=ne,ne=null):Ne=ne.sibling;var Ge=T(S,ne,z[we],U);if(Ge===null){ne===null&&(ne=Ne);break}e&&ne&&Ge.alternate===null&&t(S,ne),v=i(Ge,v,we),Ye===null?fe=Ge:Ye.sibling=Ge,Ye=Ge,ne=Ne}if(we===z.length)return l(S,ne),je&&Ll(S,we),fe;if(ne===null){for(;we<z.length;we++)ne=H(S,z[we],U),ne!==null&&(v=i(ne,v,we),Ye===null?fe=ne:Ye.sibling=ne,Ye=ne);return je&&Ll(S,we),fe}for(ne=n(ne);we<z.length;we++)Ne=E(ne,S,we,z[we],U),Ne!==null&&(e&&Ne.alternate!==null&&ne.delete(Ne.key===null?we:Ne.key),v=i(Ne,v,we),Ye===null?fe=Ne:Ye.sibling=Ne,Ye=Ne);return e&&ne.forEach(function(xn){return t(S,xn)}),je&&Ll(S,we),fe}function pe(S,v,z,U){if(z==null)throw Error(u(151));for(var fe=null,Ye=null,ne=v,we=v=0,Ne=null,Ge=z.next();ne!==null&&!Ge.done;we++,Ge=z.next()){ne.index>we?(Ne=ne,ne=null):Ne=ne.sibling;var xn=T(S,ne,Ge.value,U);if(xn===null){ne===null&&(ne=Ne);break}e&&ne&&xn.alternate===null&&t(S,ne),v=i(xn,v,we),Ye===null?fe=xn:Ye.sibling=xn,Ye=xn,ne=Ne}if(Ge.done)return l(S,ne),je&&Ll(S,we),fe;if(ne===null){for(;!Ge.done;we++,Ge=z.next())Ge=H(S,Ge.value,U),Ge!==null&&(v=i(Ge,v,we),Ye===null?fe=Ge:Ye.sibling=Ge,Ye=Ge);return je&&Ll(S,we),fe}for(ne=n(ne);!Ge.done;we++,Ge=z.next())Ge=E(ne,S,we,Ge.value,U),Ge!==null&&(e&&Ge.alternate!==null&&ne.delete(Ge.key===null?we:Ge.key),v=i(Ge,v,we),Ye===null?fe=Ge:Ye.sibling=Ge,Ye=Ge);return e&&ne.forEach(function(Um){return t(S,Um)}),je&&Ll(S,we),fe}function lt(S,v,z,U){if(typeof z=="object"&&z!==null&&z.type===X&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case te:e:{for(var fe=z.key;v!==null;){if(v.key===fe){if(fe=z.type,fe===X){if(v.tag===7){l(S,v.sibling),U=a(v,z.props.children),U.return=S,S=U;break e}}else if(v.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===me&&qn(fe)===v.type){l(S,v.sibling),U=a(v,z.props),li(U,z),U.return=S,S=U;break e}l(S,v);break}else t(S,v);v=v.sibling}z.type===X?(U=Un(z.props.children,S.mode,U,z.key),U.return=S,S=U):(U=io(z.type,z.key,z.props,null,S.mode,U),li(U,z),U.return=S,S=U)}return c(S);case q:e:{for(fe=z.key;v!==null;){if(v.key===fe)if(v.tag===4&&v.stateNode.containerInfo===z.containerInfo&&v.stateNode.implementation===z.implementation){l(S,v.sibling),U=a(v,z.children||[]),U.return=S,S=U;break e}else{l(S,v);break}else t(S,v);v=v.sibling}U=Vc(z,S.mode,U),U.return=S,S=U}return c(S);case me:return z=qn(z),lt(S,v,z,U)}if(be(z))return P(S,v,z,U);if(De(z)){if(fe=De(z),typeof fe!="function")throw Error(u(150));return z=fe.call(z),pe(S,v,z,U)}if(typeof z.then=="function")return lt(S,v,ho(z),U);if(z.$$typeof===W)return lt(S,v,ro(S,z),U);po(S,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,v!==null&&v.tag===6?(l(S,v.sibling),U=a(v,z),U.return=S,S=U):(l(S,v),U=Gc(z,S.mode,U),U.return=S,S=U),c(S)):l(S,v)}return function(S,v,z,U){try{ti=0;var fe=lt(S,v,z,U);return va=null,fe}catch(ne){if(ne===ya||ne===uo)throw ne;var Ye=Wt(29,ne,null,S.mode);return Ye.lanes=U,Ye.return=S,Ye}}}var Gn=Wu(!0),Iu=Wu(!1),ln=!1;function tr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lr(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 nn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function an(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ve&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=ao(e),Uu(e,null,l),t}return no(e,n,t,l),ao(e)}function ni(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,rt(e,l)}}function nr(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ar=!1;function ai(){if(ar){var e=ga;if(e!==null)throw e}}function ii(e,t,l,n){ar=!1;var a=e.updateQueue;ln=!1;var i=a.firstBaseUpdate,c=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var p=d,M=p.next;p.next=null,c===null?i=M:c.next=M,c=p;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==c&&(d===null?R.firstBaseUpdate=M:d.next=M,R.lastBaseUpdate=p))}if(i!==null){var H=a.baseState;c=0,R=M=p=null,d=i;do{var T=d.lane&-536870913,E=T!==d.lane;if(E?(He&T)===T:(n&T)===T){T!==0&&T===ma&&(ar=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var P=e,pe=d;T=t;var lt=l;switch(pe.tag){case 1:if(P=pe.payload,typeof P=="function"){H=P.call(lt,H,T);break e}H=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=pe.payload,T=typeof P=="function"?P.call(lt,H,T):P,T==null)break e;H=N({},H,T);break e;case 2:ln=!0}}T=d.callback,T!==null&&(e.flags|=64,E&&(e.flags|=8192),E=a.callbacks,E===null?a.callbacks=[T]:E.push(T))}else E={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(M=R=E,p=H):R=R.next=E,c|=T;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;E=d,d=E.next,E.next=null,a.lastBaseUpdate=E,a.shared.pending=null}}while(!0);R===null&&(p=H),a.baseState=p,a.firstBaseUpdate=M,a.lastBaseUpdate=R,i===null&&(a.shared.lanes=0),un|=c,e.lanes=c,e.memoizedState=H}}function Pu(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function ef(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Pu(l[e],t)}var ba=g(null),mo=g(0);function tf(e,t){e=Ql,B(mo,e),B(ba,t),Ql=e|t.baseLanes}function ir(){B(mo,Ql),B(ba,ba.current)}function or(){Ql=mo.current,k(ba),k(mo)}var It=g(null),fl=null;function on(e){var t=e.alternate;B(ht,ht.current&1),B(It,e),fl===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(fl=e)}function cr(e){B(ht,ht.current),B(It,e),fl===null&&(fl=e)}function lf(e){e.tag===22?(B(ht,ht.current),B(It,e),fl===null&&(fl=e)):cn()}function cn(){B(ht,ht.current),B(It,It.current)}function Pt(e){k(It),fl===e&&(fl=null),k(ht)}var ht=g(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||hs(l)||ps(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nl=0,Te=null,et=null,yt=null,yo=!1,xa=!1,Vn=!1,vo=0,oi=0,Sa=null,Tp=0;function ut(){throw Error(u(321))}function rr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!$t(e[l],t[l]))return!1;return!0}function sr(e,t,l,n,a,i){return Nl=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?qf:Mr,Vn=!1,i=l(n,a),Vn=!1,xa&&(i=af(t,l,n,a)),nf(e),i}function nf(e){w.H=si;var t=et!==null&&et.next!==null;if(Nl=0,yt=et=Te=null,yo=!1,oi=0,Sa=null,t)throw Error(u(300));e===null||vt||(e=e.dependencies,e!==null&&co(e)&&(vt=!0))}function af(e,t,l,n){Te=e;var a=0;do{if(xa&&(Sa=null),oi=0,xa=!1,25<=a)throw Error(u(301));if(a+=1,yt=et=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}w.H=Yf,i=t(l,n)}while(xa);return i}function Ap(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Te.flags|=1024),t}function ur(){var e=vo!==0;return vo=0,e}function fr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function dr(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}Nl=0,yt=et=Te=null,xa=!1,oi=vo=0,Sa=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Te.memoizedState=yt=e:yt=yt.next=e,yt}function pt(){if(et===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=yt===null?Te.memoizedState:yt.next;if(t!==null)yt=t,et=e;else{if(e===null)throw Te.alternate===null?Error(u(467)):Error(u(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},yt===null?Te.memoizedState=yt=e:yt=yt.next=e}return yt}function bo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=oi;return oi+=1,Sa===null&&(Sa=[]),e=Ju(Sa,e,t),t=Te,(yt===null?t.memoizedState:yt.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?qf:Mr),e}function xo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===W)return _t(e)}throw Error(u(438,String(e)))}function hr(e){var t=null,l=Te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=Te.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bo(),Te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=ze;return t.index++,l}function Bl(e,t){return typeof t=="function"?t(e):t}function So(e){var t=pt();return pr(t,et,e)}function pr(e,t,l){var n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var c=a.next;a.next=i.next,i.next=c}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var d=c=null,p=null,M=t,R=!1;do{var H=M.lane&-536870913;if(H!==M.lane?(He&H)===H:(Nl&H)===H){var T=M.revertLane;if(T===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),H===ma&&(R=!0);else if((Nl&T)===T){M=M.next,T===ma&&(R=!0);continue}else H={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},p===null?(d=p=H,c=i):p=p.next=H,Te.lanes|=T,un|=T;H=M.action,Vn&&l(i,H),i=M.hasEagerState?M.eagerState:l(i,H)}else T={lane:H,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},p===null?(d=p=T,c=i):p=p.next=T,Te.lanes|=H,un|=H;M=M.next}while(M!==null&&M!==t);if(p===null?c=i:p.next=d,!$t(i,e.memoizedState)&&(vt=!0,R&&(l=ga,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=p,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function mr(e){var t=pt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do i=e(i,c.action),c=c.next;while(c!==a);$t(i,t.memoizedState)||(vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function of(e,t,l){var n=Te,a=pt(),i=je;if(i){if(l===void 0)throw Error(u(407));l=l()}else l=t();var c=!$t((et||a).memoizedState,l);if(c&&(a.memoizedState=l,vt=!0),a=a.queue,vr(sf.bind(null,n,a,e),[e]),a.getSnapshot!==t||c||yt!==null&&yt.memoizedState.tag&1){if(n.flags|=2048,Ca(9,{destroy:void 0},rf.bind(null,n,a,l,t),null),at===null)throw Error(u(349));i||(Nl&127)!==0||cf(n,t,l)}return l}function cf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Te.updateQueue,t===null?(t=bo(),Te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rf(e,t,l,n){t.value=l,t.getSnapshot=n,uf(t)&&ff(e)}function sf(e,t,l){return l(function(){uf(t)&&ff(e)})}function uf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!$t(e,l)}catch{return!0}}function ff(e){var t=Ln(e,2);t!==null&&Kt(t,e,2)}function gr(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),Vn){kt(!0);try{l()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:e},t}function df(e,t,l,n){return e.baseState=l,pr(e,et,typeof n=="function"?n:Bl)}function wp(e,t,l,n,a){if(Mo(e))throw Error(u(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};w.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,hf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function hf(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=w.T,c={};w.T=c;try{var d=l(a,n),p=w.S;p!==null&&p(c,d),pf(e,t,d)}catch(M){yr(e,t,M)}finally{i!==null&&c.types!==null&&(i.types=c.types),w.T=i}}else try{i=l(a,n),pf(e,t,i)}catch(M){yr(e,t,M)}}function pf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){mf(e,t,n)},function(n){return yr(e,t,n)}):mf(e,t,l)}function mf(e,t,l){t.status="fulfilled",t.value=l,gf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,hf(e,l)))}function yr(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,gf(t),t=t.next;while(t!==n)}e.action=null}function gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yf(e,t){return t}function vf(e,t){if(je){var l=at.formState;if(l!==null){e:{var n=Te;if(je){if(ot){t:{for(var a=ot,i=ul;a.nodeType!==8;){if(!i){a=null;break t}if(a=dl(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){ot=dl(a.nextSibling),n=a.data==="F!";break e}}en(n)}n=!1}n&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yf,lastRenderedState:t},l.queue=n,l=Nf.bind(null,Te,n),n.dispatch=l,n=gr(!1),i=zr.bind(null,Te,!1,n.queue),n=jt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=wp.bind(null,Te,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function bf(e){var t=pt();return xf(t,et,e)}function xf(e,t,l){if(t=pr(e,t,yf)[0],e=So(Bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ci(t)}catch(c){throw c===ya?uo:c}else n=t;t=pt();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(Te.flags|=2048,Ca(9,{destroy:void 0},Ep.bind(null,a,l),null)),[n,i,e]}function Ep(e,t){e.action=t}function Sf(e){var t=pt(),l=et;if(l!==null)return xf(t,l,e);pt(),t=t.memoizedState,l=pt();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Ca(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=Te.updateQueue,t===null&&(t=bo(),Te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Cf(){return pt().memoizedState}function Co(e,t,l,n){var a=jt();Te.flags|=e,a.memoizedState=Ca(1|t,{destroy:void 0},l,n===void 0?null:n)}function zo(e,t,l,n){var a=pt();n=n===void 0?null:n;var i=a.memoizedState.inst;et!==null&&n!==null&&rr(n,et.memoizedState.deps)?a.memoizedState=Ca(t,i,l,n):(Te.flags|=e,a.memoizedState=Ca(1|t,i,l,n))}function zf(e,t){Co(8390656,8,e,t)}function vr(e,t){zo(2048,8,e,t)}function _p(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=bo(),Te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Mf(e){var t=pt().memoizedState;return _p({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Tf(e,t){return zo(4,2,e,t)}function Af(e,t){return zo(4,4,e,t)}function wf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ef(e,t,l){l=l!=null?l.concat([e]):null,zo(4,4,wf.bind(null,t,e),l)}function br(){}function _f(e,t){var l=pt();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&rr(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Df(e,t){var l=pt();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&rr(t,n[1]))return n[0];if(n=e(),Vn){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[n,t],n}function xr(e,t,l){return l===void 0||(Nl&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Od(),Te.lanes|=e,un|=e,l)}function Of(e,t,l,n){return $t(l,t)?l:ba.current!==null?(e=xr(e,l,n),$t(e,t)||(vt=!0),e):(Nl&42)===0||(Nl&1073741824)!==0&&(He&261930)===0?(vt=!0,e.memoizedState=l):(e=Od(),Te.lanes|=e,un|=e,t)}function Rf(e,t,l,n,a){var i=Y.p;Y.p=i!==0&&8>i?i:8;var c=w.T,d={};w.T=d,zr(e,!1,t,l);try{var p=a(),M=w.S;if(M!==null&&M(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var R=Mp(p,n);ri(e,t,R,ll(e))}else ri(e,t,n,ll(e))}catch(H){ri(e,t,{then:function(){},status:"rejected",reason:H},ll())}finally{Y.p=i,c!==null&&d.types!==null&&(c.types=d.types),w.T=c}}function Dp(){}function Sr(e,t,l,n){if(e.tag!==5)throw Error(u(476));var a=kf(e).queue;Rf(e,a,t,Z,l===null?Dp:function(){return Lf(e),l(n)})}function kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:Z},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lf(e){var t=kf(e);t.next===null&&(t=e.alternate.memoizedState),ri(e,t.next.queue,{},ll())}function Cr(){return _t(Ti)}function Uf(){return pt().memoizedState}function Hf(){return pt().memoizedState}function Op(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ll();e=nn(l);var n=an(t,e,l);n!==null&&(Kt(n,t,l),ni(n,t,l)),t={cache:Wc()},e.payload=t;return}t=t.return}}function Rp(e,t,l){var n=ll();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mo(e)?Bf(t,l):(l=qc(e,t,l,n),l!==null&&(Kt(l,e,n),jf(l,t,n)))}function Nf(e,t,l){var n=ll();ri(e,t,l,n)}function ri(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mo(e))Bf(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(a.hasEagerState=!0,a.eagerState=d,$t(d,c))return no(e,t,a,0),at===null&&lo(),!1}catch{}if(l=qc(e,t,a,n),l!==null)return Kt(l,e,n),jf(l,t,n),!0}return!1}function zr(e,t,l,n){if(n={lane:2,revertLane:ts(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mo(e)){if(t)throw Error(u(479))}else t=qc(e,l,n,2),t!==null&&Kt(t,e,2)}function Mo(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Bf(e,t){xa=yo=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jf(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,rt(e,l)}}var si={readContext:_t,use:xo,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};si.useEffectEvent=ut;var qf={readContext:_t,use:xo,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:zf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Co(4194308,4,wf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Co(4194308,4,e,t)},useInsertionEffect:function(e,t){Co(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var n=e();if(Vn){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=jt();if(l!==void 0){var a=l(t);if(Vn){kt(!0);try{l(t)}finally{kt(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Rp.bind(null,Te,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=gr(e);var t=e.queue,l=Nf.bind(null,Te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:br,useDeferredValue:function(e,t){var l=jt();return xr(l,e,t)},useTransition:function(){var e=gr(!1);return e=Rf.bind(null,Te,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=Te,a=jt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),at===null)throw Error(u(349));(He&127)!==0||cf(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,zf(sf.bind(null,n,i,e),[e]),n.flags|=2048,Ca(9,{destroy:void 0},rf.bind(null,n,i,l,t),null),l},useId:function(){var e=jt(),t=at.identifierPrefix;if(je){var l=Cl,n=Sl;l=(n&~(1<<32-Lt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=vo++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Tp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cr,useFormState:vf,useActionState:vf,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=zr.bind(null,Te,!0,l),l.dispatch=t,[e,t]},useMemoCache:hr,useCacheRefresh:function(){return jt().memoizedState=Op.bind(null,Te)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((Ve&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Mr={readContext:_t,use:xo,useCallback:_f,useContext:_t,useEffect:vr,useImperativeHandle:Ef,useInsertionEffect:Tf,useLayoutEffect:Af,useMemo:Df,useReducer:So,useRef:Cf,useState:function(){return So(Bl)},useDebugValue:br,useDeferredValue:function(e,t){var l=pt();return Of(l,et.memoizedState,e,t)},useTransition:function(){var e=So(Bl)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:of,useId:Uf,useHostTransitionStatus:Cr,useFormState:bf,useActionState:bf,useOptimistic:function(e,t){var l=pt();return df(l,et,e,t)},useMemoCache:hr,useCacheRefresh:Hf};Mr.useEffectEvent=Mf;var Yf={readContext:_t,use:xo,useCallback:_f,useContext:_t,useEffect:vr,useImperativeHandle:Ef,useInsertionEffect:Tf,useLayoutEffect:Af,useMemo:Df,useReducer:mr,useRef:Cf,useState:function(){return mr(Bl)},useDebugValue:br,useDeferredValue:function(e,t){var l=pt();return et===null?xr(l,e,t):Of(l,et.memoizedState,e,t)},useTransition:function(){var e=mr(Bl)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:of,useId:Uf,useHostTransitionStatus:Cr,useFormState:Sf,useActionState:Sf,useOptimistic:function(e,t){var l=pt();return et!==null?df(l,et,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:hr,useCacheRefresh:Hf};Yf.useEffectEvent=Mf;function Tr(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:N({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ar={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=ll(),a=nn(n);a.payload=t,l!=null&&(a.callback=l),t=an(e,a,n),t!==null&&(Kt(t,e,n),ni(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=ll(),a=nn(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=an(e,a,n),t!==null&&(Kt(t,e,n),ni(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ll(),n=nn(l);n.tag=2,t!=null&&(n.callback=t),t=an(e,n,l),t!==null&&(Kt(t,e,l),ni(t,e,l))}};function Gf(e,t,l,n,a,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,c):t.prototype&&t.prototype.isPureReactComponent?!Fa(l,n)||!Fa(a,i):!0}function Vf(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Ar.enqueueReplaceState(t,t.state,null)}function Xn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=N({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Xf(e){to(e)}function Qf(e){console.error(e)}function Zf(e){to(e)}function To(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Kf(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function wr(e,t,l){return l=nn(l),l.tag=3,l.payload={element:null},l.callback=function(){To(e,t)},l}function Jf(e){return e=nn(e),e.tag=3,e}function Ff(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){Kf(t,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Kf(t,l,n),typeof a!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function kp(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,a,!0),l=It.current,l!==null){switch(l.tag){case 31:case 13:return fl===null?No():l.alternate===null&&ft===0&&(ft=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===fo?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Ir(e,n,a)),!1;case 22:return l.flags|=65536,n===fo?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Ir(e,n,a)),!1}throw Error(u(435,l.tag))}return Ir(e,n,a),No(),!1}if(je)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Zc&&(e=Error(u(422),{cause:n}),Ia(cl(e,l)))):(n!==Zc&&(t=Error(u(423),{cause:n}),Ia(cl(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=cl(n,l),a=wr(e.stateNode,n,a),nr(e,a),ft!==4&&(ft=2)),!1;var i=Error(u(520),{cause:n});if(i=cl(i,l),yi===null?yi=[i]:yi.push(i),ft!==4&&(ft=2),t===null)return!0;n=cl(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=wr(l.stateNode,n,e),nr(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(fn===null||!fn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Jf(a),Ff(a,e,l,n),nr(l,a),!1}l=l.return}while(l!==null);return!1}var Er=Error(u(461)),vt=!1;function Dt(e,t,l,n){t.child=e===null?Iu(t,null,l,n):Gn(t,e.child,l,n)}function $f(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var c={};for(var d in n)d!=="ref"&&(c[d]=n[d])}else c=n;return Bn(t),n=sr(e,t,l,c,i,a),d=ur(),e!==null&&!vt?(fr(e,t,a),jl(e,t,a)):(je&&d&&Xc(t),t.flags|=1,Dt(e,t,n,a),t.child)}function Wf(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Yc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,If(e,t,i,n,a)):(e=io(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Hr(e,a)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:Fa,l(c,n)&&e.ref===t.ref)return jl(e,t,a)}return t.flags|=1,e=kl(i,n),e.ref=t.ref,e.return=t,t.child=e}function If(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(Fa(i,n)&&e.ref===t.ref)if(vt=!1,t.pendingProps=n=i,Hr(e,a))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,jl(e,t,a)}return _r(e,t,l,n,a)}function Pf(e,t,l,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return ed(e,t,i,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&so(t,i!==null?i.cachePool:null),i!==null?tf(t,i):ir(),lf(t);else return n=t.lanes=536870912,ed(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(so(t,i.cachePool),tf(t,i),cn(),t.memoizedState=null):(e!==null&&so(t,null),ir(),cn());return Dt(e,t,a,l),t.child}function ui(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ed(e,t,l,n,a){var i=Pc();return i=i===null?null:{parent:gt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&so(t,null),ir(),lf(t),e!==null&&pa(e,t,n,!0),t.childLanes=a,null}function Ao(e,t){return t=Eo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function td(e,t,l){return Gn(t,e.child,null,l),e=Ao(t,t.pendingProps),e.flags|=2,Pt(t),t.memoizedState=null,e}function Lp(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(n.mode==="hidden")return e=Ao(t,n),t.lanes=536870912,ui(null,e);if(cr(t),(e=ot)?(e=h0(e,ul),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Il!==null?{id:Sl,overflow:Cl}:null,retryLane:536870912,hydrationErrors:null},l=Nu(e),l.return=t,t.child=l,Et=t,ot=null)):e=null,e===null)throw en(t);return t.lanes=536870912,null}return Ao(t,n)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(cr(t),a)if(t.flags&256)t.flags&=-257,t=td(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(vt||pa(e,t,l,!1),a=(l&e.childLanes)!==0,vt||a){if(n=at,n!==null&&(c=Pe(n,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Ln(e,c),Kt(n,e,c),Er;No(),t=td(e,t,l)}else e=i.treeContext,ot=dl(c.nextSibling),Et=t,je=!0,Pl=null,ul=!1,e!==null&&qu(t,e),t=Ao(t,n),t.flags|=4096;return t}return e=kl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wo(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function _r(e,t,l,n,a){return Bn(t),l=sr(e,t,l,n,void 0,a),n=ur(),e!==null&&!vt?(fr(e,t,a),jl(e,t,a)):(je&&n&&Xc(t),t.flags|=1,Dt(e,t,l,a),t.child)}function ld(e,t,l,n,a,i){return Bn(t),t.updateQueue=null,l=af(t,n,l,a),nf(e),n=ur(),e!==null&&!vt?(fr(e,t,i),jl(e,t,i)):(je&&n&&Xc(t),t.flags|=1,Dt(e,t,l,i),t.child)}function nd(e,t,l,n,a){if(Bn(t),t.stateNode===null){var i=ua,c=l.contextType;typeof c=="object"&&c!==null&&(i=_t(c)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ar,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},tr(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?_t(c):ua,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Tr(t,l,c,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Ar.enqueueReplaceState(i,i.state,null),ii(t,n,i,a),ai(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,p=Xn(l,d);i.props=p;var M=i.context,R=l.contextType;c=ua,typeof R=="object"&&R!==null&&(c=_t(R));var H=l.getDerivedStateFromProps;R=typeof H=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||M!==c)&&Vf(t,i,n,c),ln=!1;var T=t.memoizedState;i.state=T,ii(t,n,i,a),ai(),M=t.memoizedState,d||T!==M||ln?(typeof H=="function"&&(Tr(t,l,H,n),M=t.memoizedState),(p=ln||Gf(t,l,p,n,T,M,c))?(R||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=M),i.props=n,i.state=M,i.context=c,n=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,lr(e,t),c=t.memoizedProps,R=Xn(l,c),i.props=R,H=t.pendingProps,T=i.context,M=l.contextType,p=ua,typeof M=="object"&&M!==null&&(p=_t(M)),d=l.getDerivedStateFromProps,(M=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==H||T!==p)&&Vf(t,i,n,p),ln=!1,T=t.memoizedState,i.state=T,ii(t,n,i,a),ai();var E=t.memoizedState;c!==H||T!==E||ln||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof d=="function"&&(Tr(t,l,d,n),E=t.memoizedState),(R=ln||Gf(t,l,R,n,T,E,p)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,E,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,E,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),i.props=n,i.state=E,i.context=p,n=R):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,wo(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Gn(t,e.child,null,a),t.child=Gn(t,null,l,a)):Dt(e,t,l,a),t.memoizedState=i.state,e=t.child):e=jl(e,t,a),e}function ad(e,t,l,n){return Hn(),t.flags|=256,Dt(e,t,l,n),t.child}var Dr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Or(e){return{baseLanes:e,cachePool:Zu()}}function Rr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=tl),e}function id(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),c&&(a=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(a?on(t):cn(),(e=ot)?(e=h0(e,ul),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Il!==null?{id:Sl,overflow:Cl}:null,retryLane:536870912,hydrationErrors:null},l=Nu(e),l.return=t,t.child=l,Et=t,ot=null)):e=null,e===null)throw en(t);return ps(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(cn(),a=t.mode,d=Eo({mode:"hidden",children:d},a),n=Un(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=Or(l),n.childLanes=Rr(e,c,l),t.memoizedState=Dr,ui(null,n)):(on(t),kr(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(i)t.flags&256?(on(t),t.flags&=-257,t=Lr(e,t,l)):t.memoizedState!==null?(cn(),t.child=e.child,t.flags|=128,t=null):(cn(),d=n.fallback,a=t.mode,n=Eo({mode:"visible",children:n.children},a),d=Un(d,a,l,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,Gn(t,e.child,null,l),n=t.child,n.memoizedState=Or(l),n.childLanes=Rr(e,c,l),t.memoizedState=Dr,t=ui(null,n));else if(on(t),ps(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var M=c.dgst;c=M,n=Error(u(419)),n.stack="",n.digest=c,Ia({value:n,source:null,stack:null}),t=Lr(e,t,l)}else if(vt||pa(e,t,l,!1),c=(l&e.childLanes)!==0,vt||c){if(c=at,c!==null&&(n=Pe(c,l),n!==0&&n!==p.retryLane))throw p.retryLane=n,Ln(e,n),Kt(c,e,n),Er;hs(d)||No(),t=Lr(e,t,l)}else hs(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,ot=dl(d.nextSibling),Et=t,je=!0,Pl=null,ul=!1,e!==null&&qu(t,e),t=kr(t,n.children),t.flags|=4096);return t}return a?(cn(),d=n.fallback,a=t.mode,p=e.child,M=p.sibling,n=kl(p,{mode:"hidden",children:n.children}),n.subtreeFlags=p.subtreeFlags&65011712,M!==null?d=kl(M,d):(d=Un(d,a,l,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,ui(null,n),n=t.child,d=e.child.memoizedState,d===null?d=Or(l):(a=d.cachePool,a!==null?(p=gt._currentValue,a=a.parent!==p?{parent:p,pool:p}:a):a=Zu(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=Rr(e,c,l),t.memoizedState=Dr,ui(e.child,n)):(on(t),l=e.child,e=l.sibling,l=kl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function kr(e,t){return t=Eo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eo(e,t){return e=Wt(22,e,null,t),e.lanes=0,e}function Lr(e,t,l){return Gn(t,e.child,null,l),e=kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function od(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Fc(e.return,t,l)}function Ur(e,t,l,n,a,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=l,c.tailMode=a,c.treeForkCount=i)}function cd(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var c=ht.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,B(ht,c),Dt(e,t,n,l),n=je?Wa:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&od(e,l,t);else if(e.tag===19)od(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&go(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ur(t,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&go(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ur(t,!0,l,null,i,n);break;case"together":Ur(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function jl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),un|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=kl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=kl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Hr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function Up(e,t,l){switch(t.tag){case 3:St(t,t.stateNode.containerInfo),tn(t,gt,e.memoizedState.cache),Hn();break;case 27:case 5:El(t);break;case 4:St(t,t.stateNode.containerInfo);break;case 10:tn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(on(t),t.flags|=128,null):(l&t.child.childLanes)!==0?id(e,t,l):(on(t),e=jl(e,t,l),e!==null?e.sibling:null);on(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(pa(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return cd(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),B(ht,ht.current),n)break;return null;case 22:return t.lanes=0,Pf(e,t,l,t.pendingProps);case 24:tn(t,gt,e.memoizedState.cache)}return jl(e,t,l)}function rd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Hr(e,l)&&(t.flags&128)===0)return vt=!1,Up(e,t,l);vt=(e.flags&131072)!==0}else vt=!1,je&&(t.flags&1048576)!==0&&ju(t,Wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=qn(t.elementType),t.type=e,typeof e=="function")Yc(e)?(n=Xn(e,n),t.tag=1,t=nd(null,t,e,n,l)):(t.tag=0,t=_r(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=$f(null,t,e,n,l);break e}else if(a===j){t.tag=14,t=Wf(null,t,e,n,l);break e}}throw t=Fe(e)||e,Error(u(306,t,""))}}return t;case 0:return _r(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Xn(n,t.pendingProps),nd(e,t,n,a,l);case 3:e:{if(St(t,t.stateNode.containerInfo),e===null)throw Error(u(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,lr(e,t),ii(t,n,null,l);var c=t.memoizedState;if(n=c.cache,tn(t,gt,n),n!==i.cache&&$c(t,[gt],l,!0),ai(),n=c.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=ad(e,t,n,l);break e}else if(n!==a){a=cl(Error(u(424)),t),Ia(a),t=ad(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ot=dl(e.firstChild),Et=t,je=!0,Pl=null,ul=!0,l=Iu(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Hn(),n===a){t=jl(e,t,l);break e}Dt(e,t,n,l)}t=t.child}return t;case 26:return wo(e,t),e===null?(l=b0(t.type,null,t.pendingProps,null))?t.memoizedState=l:je||(l=t.type,e=t.pendingProps,n=Xo(re.current).createElement(l),n[wt]=t,n[Yt]=e,Ot(n,l,e),Mt(n),t.stateNode=n):t.memoizedState=b0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return El(t),e===null&&je&&(n=t.stateNode=g0(t.type,t.pendingProps,re.current),Et=t,ul=!0,a=ot,mn(t.type)?(ms=a,ot=dl(n.firstChild)):ot=a),Dt(e,t,t.pendingProps.children,l),wo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((a=n=ot)&&(n=fm(n,t.type,t.pendingProps,ul),n!==null?(t.stateNode=n,Et=t,ot=dl(n.firstChild),ul=!1,a=!0):a=!1),a||en(t)),El(t),a=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,n=i.children,us(a,i)?n=null:c!==null&&us(a,c)&&(t.flags|=32),t.memoizedState!==null&&(a=sr(e,t,Ap,null,null,l),Ti._currentValue=a),wo(e,t),Dt(e,t,n,l),t.child;case 6:return e===null&&je&&((e=l=ot)&&(l=dm(l,t.pendingProps,ul),l!==null?(t.stateNode=l,Et=t,ot=null,e=!0):e=!1),e||en(t)),null;case 13:return id(e,t,l);case 4:return St(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gn(t,null,n,l):Dt(e,t,n,l),t.child;case 11:return $f(e,t,t.type,t.pendingProps,l);case 7:return Dt(e,t,t.pendingProps,l),t.child;case 8:return Dt(e,t,t.pendingProps.children,l),t.child;case 12:return Dt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,tn(t,t.type,n.value),Dt(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Bn(t),a=_t(a),n=n(a),t.flags|=1,Dt(e,t,n,l),t.child;case 14:return Wf(e,t,t.type,t.pendingProps,l);case 15:return If(e,t,t.type,t.pendingProps,l);case 19:return cd(e,t,l);case 31:return Lp(e,t,l);case 22:return Pf(e,t,l,t.pendingProps);case 24:return Bn(t),n=_t(gt),e===null?(a=Pc(),a===null&&(a=at,i=Wc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},tr(t),tn(t,gt,a)):((e.lanes&l)!==0&&(lr(e,t),ii(t,null,null,l),ai()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),tn(t,gt,n)):(n=i.cache,tn(t,gt,n),n!==a.cache&&$c(t,[gt],l,!0))),Dt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ql(e){e.flags|=4}function Nr(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Ud())e.flags|=8192;else throw Yn=fo,er}else e.flags&=-16777217}function sd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!M0(t))if(Ud())e.flags|=8192;else throw Yn=fo,er}function _o(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ke():536870912,e.lanes|=t,Aa|=t)}function fi(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Hp(e,t,l){var n=t.pendingProps;switch(Qc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return ct(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hl(gt),Ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ha(t)?ql(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kc())),ct(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(ql(t),i!==null?(ct(t),sd(t,i)):(ct(t),Nr(t,a,null,n,l))):i?i!==e.memoizedState?(ql(t),ct(t),sd(t,i)):(ct(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ql(t),ct(t),Nr(t,a,e,n,l)),null;case 27:if(he(t),l=re.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ql(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return ct(t),null}e=$.current,ha(t)?Yu(t):(e=g0(a,n,l),t.stateNode=e,ql(t))}return ct(t),null;case 5:if(he(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ql(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return ct(t),null}if(i=$.current,ha(t))Yu(t);else{var c=Xo(re.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}i[wt]=t,i[Yt]=n;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(Ot(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ql(t)}}return ct(t),Nr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ql(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=re.current,ha(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=Et,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[wt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||i0(e.nodeValue,l)),e||en(t,!0)}else e=Xo(e).createTextNode(n),e[wt]=t,t.stateNode=e}return ct(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=ha(t),l!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[wt]=t}else Hn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ct(t),e=!1}else l=Kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Pt(t),t):(Pt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ct(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ha(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(u(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(u(317));a[wt]=t}else Hn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ct(t),a=!1}else a=Kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Pt(t),t):(Pt(t),null)}return Pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),_o(t,t.updateQueue),ct(t),null);case 4:return Ie(),e===null&&is(t.stateNode.containerInfo),ct(t),null;case 10:return Hl(t.type),ct(t),null;case 19:if(k(ht),n=t.memoizedState,n===null)return ct(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)fi(n,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=go(e),i!==null){for(t.flags|=128,fi(n,!1),e=i.updateQueue,t.updateQueue=e,_o(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Hu(l,e),l=l.sibling;return B(ht,ht.current&1|2),je&&Ll(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Nt()>Lo&&(t.flags|=128,a=!0,fi(n,!1),t.lanes=4194304)}else{if(!a)if(e=go(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_o(t,e),fi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!je)return ct(t),null}else 2*Nt()-n.renderingStartTime>Lo&&l!==536870912&&(t.flags|=128,a=!0,fi(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Nt(),e.sibling=null,l=ht.current,B(ht,a?l&1|2:l&1),je&&Ll(t,n.treeForkCount),e):(ct(t),null);case 22:case 23:return Pt(t),or(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),l=t.updateQueue,l!==null&&_o(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&k(jn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Hl(gt),ct(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Np(e,t){switch(Qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hl(gt),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(t),null;case 31:if(t.memoizedState!==null){if(Pt(t),t.alternate===null)throw Error(u(340));Hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(ht),null;case 4:return Ie(),null;case 10:return Hl(t.type),null;case 22:case 23:return Pt(t),or(),e!==null&&k(jn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hl(gt),null;case 25:return null;default:return null}}function ud(e,t){switch(Qc(t),t.tag){case 3:Hl(gt),Ie();break;case 26:case 27:case 5:he(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Pt(t);break;case 13:Pt(t);break;case 19:k(ht);break;case 10:Hl(t.type);break;case 22:case 23:Pt(t),or(),e!==null&&k(jn);break;case 24:Hl(gt)}}function di(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,c=l.inst;n=i(),c.destroy=n}l=l.next}while(l!==a)}}catch(d){We(t,t.return,d)}}function rn(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var c=n.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,a=t;var p=l,M=d;try{M()}catch(R){We(a,p,R)}}}n=n.next}while(n!==i)}}catch(R){We(t,t.return,R)}}function fd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ef(t,l)}catch(n){We(e,e.return,n)}}}function dd(e,t,l){l.props=Xn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){We(e,t,n)}}function hi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){We(e,t,a)}}function zl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){We(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){We(e,t,a)}else l.current=null}function hd(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){We(e,e.return,a)}}function Br(e,t,l){try{var n=e.stateNode;im(n,e.type,l,t),n[Yt]=t}catch(a){We(e,e.return,a)}}function pd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&mn(e.type)||e.tag===4}function jr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pd(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&&mn(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 qr(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ol));else if(n!==4&&(n===27&&mn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(qr(e,t,l),e=e.sibling;e!==null;)qr(e,t,l),e=e.sibling}function Do(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&mn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Do(e,t,l),e=e.sibling;e!==null;)Do(e,t,l),e=e.sibling}function md(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ot(t,n,l),t[wt]=e,t[Yt]=l}catch(i){We(e,e.return,i)}}var Yl=!1,bt=!1,Yr=!1,gd=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function Bp(e,t){if(e=e.containerInfo,rs=Wo,e=wu(e),Lc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,p=-1,M=0,R=0,H=e,T=null;t:for(;;){for(var E;H!==l||a!==0&&H.nodeType!==3||(d=c+a),H!==i||n!==0&&H.nodeType!==3||(p=c+n),H.nodeType===3&&(c+=H.nodeValue.length),(E=H.firstChild)!==null;)T=H,H=E;for(;;){if(H===e)break t;if(T===l&&++M===a&&(d=c),T===i&&++R===n&&(p=c),(E=H.nextSibling)!==null)break;H=T,T=H.parentNode}H=E}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(ss={focusedElem:e,selectionRange:l},Wo=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var P=Xn(l.type,a);e=n.getSnapshotBeforeUpdate(P,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(pe){We(l,l.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ds(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ds(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function yd(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Vl(e,l),n&4&&di(5,l);break;case 1:if(Vl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){We(l,l.return,c)}else{var a=Xn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){We(l,l.return,c)}}n&64&&fd(l),n&512&&hi(l,l.return);break;case 3:if(Vl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ef(e,t)}catch(c){We(l,l.return,c)}}break;case 27:t===null&&n&4&&md(l);case 26:case 5:Vl(e,l),t===null&&n&4&&hd(l),n&512&&hi(l,l.return);break;case 12:Vl(e,l);break;case 31:Vl(e,l),n&4&&xd(e,l);break;case 13:Vl(e,l),n&4&&Sd(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Kp.bind(null,l),hm(e,l))));break;case 22:if(n=l.memoizedState!==null||Yl,!n){t=t!==null&&t.memoizedState!==null||bt,a=Yl;var i=bt;Yl=n,(bt=t)&&!i?Xl(e,l,(l.subtreeFlags&8772)!==0):Vl(e,l),Yl=a,bt=i}break;case 30:break;default:Vl(e,l)}}function vd(e){var t=e.alternate;t!==null&&(e.alternate=null,vd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yc(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 st=null,Vt=!1;function Gl(e,t,l){for(l=l.child;l!==null;)bd(e,t,l),l=l.sibling}function bd(e,t,l){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(wn,l)}catch{}switch(l.tag){case 26:bt||zl(l,t),Gl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:bt||zl(l,t);var n=st,a=Vt;mn(l.type)&&(st=l.stateNode,Vt=!1),Gl(e,t,l),Ci(l.stateNode),st=n,Vt=a;break;case 5:bt||zl(l,t);case 6:if(n=st,a=Vt,st=null,Gl(e,t,l),st=n,Vt=a,st!==null)if(Vt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(l.stateNode)}catch(i){We(l,t,i)}else try{st.removeChild(l.stateNode)}catch(i){We(l,t,i)}break;case 18:st!==null&&(Vt?(e=st,f0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),La(e)):f0(st,l.stateNode));break;case 4:n=st,a=Vt,st=l.stateNode.containerInfo,Vt=!0,Gl(e,t,l),st=n,Vt=a;break;case 0:case 11:case 14:case 15:rn(2,l,t),bt||rn(4,l,t),Gl(e,t,l);break;case 1:bt||(zl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&dd(l,t,n)),Gl(e,t,l);break;case 21:Gl(e,t,l);break;case 22:bt=(n=bt)||l.memoizedState!==null,Gl(e,t,l),bt=n;break;default:Gl(e,t,l)}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{La(e)}catch(l){We(t,t.return,l)}}}function Sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{La(e)}catch(l){We(t,t.return,l)}}function jp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gd),t;default:throw Error(u(435,e.tag))}}function Oo(e,t){var l=jp(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Jp.bind(null,e,n);n.then(a,a)}})}function Xt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(mn(d.type)){st=d.stateNode,Vt=!1;break e}break;case 5:st=d.stateNode,Vt=!1;break e;case 3:case 4:st=d.stateNode.containerInfo,Vt=!0;break e}d=d.return}if(st===null)throw Error(u(160));bd(i,c,a),st=null,Vt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cd(t,e),t=t.sibling}var vl=null;function Cd(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Qt(e),n&4&&(rn(3,e,e.return),di(3,e),rn(5,e,e.return));break;case 1:Xt(t,e),Qt(e),n&512&&(bt||l===null||zl(l,l.return)),n&64&&Yl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=vl;if(Xt(t,e),Qt(e),n&512&&(bt||l===null||zl(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[qa]||i[wt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Ot(i,n,l),i[wt]=e,Mt(i),n=i;break e;case"link":var c=C0("link","href",a).get(n+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=a.createElement(n),Ot(i,n,l),a.head.appendChild(i);break;case"meta":if(c=C0("meta","content",a).get(n+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=a.createElement(n),Ot(i,n,l),a.head.appendChild(i);break;default:throw Error(u(468,n))}i[wt]=e,Mt(i),n=i}e.stateNode=n}else z0(a,e.type,e.stateNode);else e.stateNode=S0(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?z0(a,e.type,e.stateNode):S0(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Br(e,e.memoizedProps,l.memoizedProps)}break;case 27:Xt(t,e),Qt(e),n&512&&(bt||l===null||zl(l,l.return)),l!==null&&n&4&&Br(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Xt(t,e),Qt(e),n&512&&(bt||l===null||zl(l,l.return)),e.flags&32){a=e.stateNode;try{na(a,"")}catch(P){We(e,e.return,P)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Br(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Yr=!0);break;case 6:if(Xt(t,e),Qt(e),n&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(P){We(e,e.return,P)}}break;case 3:if(Ko=null,a=vl,vl=Qo(t.containerInfo),Xt(t,e),vl=a,Qt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{La(t.containerInfo)}catch(P){We(e,e.return,P)}Yr&&(Yr=!1,zd(e));break;case 4:n=vl,vl=Qo(e.stateNode.containerInfo),Xt(t,e),Qt(e),vl=n;break;case 12:Xt(t,e),Qt(e);break;case 31:Xt(t,e),Qt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oo(e,n)));break;case 13:Xt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ko=Nt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oo(e,n)));break;case 22:a=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,M=Yl,R=bt;if(Yl=M||a,bt=R||p,Xt(t,e),bt=R,Yl=M,Qt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||p||Yl||bt||Qn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(i=p.stateNode,a)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=p.stateNode;var H=p.memoizedProps.style,T=H!=null&&H.hasOwnProperty("display")?H.display:null;d.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(P){We(p,p.return,P)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=a?"":p.memoizedProps}catch(P){We(p,p.return,P)}}}else if(t.tag===18){if(l===null){p=t;try{var E=p.stateNode;a?d0(E,!0):d0(p.stateNode,!1)}catch(P){We(p,p.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Oo(e,l))));break;case 19:Xt(t,e),Qt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oo(e,n)));break;case 30:break;case 21:break;default:Xt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(pd(n)){l=n;break}n=n.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var a=l.stateNode,i=jr(e);Do(e,i,a);break;case 5:var c=l.stateNode;l.flags&32&&(na(c,""),l.flags&=-33);var d=jr(e);Do(e,d,c);break;case 3:case 4:var p=l.stateNode.containerInfo,M=jr(e);qr(e,M,p);break;default:throw Error(u(161))}}catch(R){We(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yd(e,t.alternate,t),t=t.sibling}function Qn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rn(4,t,t.return),Qn(t);break;case 1:zl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&dd(t,t.return,l),Qn(t);break;case 27:Ci(t.stateNode);case 26:case 5:zl(t,t.return),Qn(t);break;case 22:t.memoizedState===null&&Qn(t);break;case 30:Qn(t);break;default:Qn(t)}e=e.sibling}}function Xl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(a,i,l),di(4,i);break;case 1:if(Xl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(M){We(n,n.return,M)}if(n=i,a=n.updateQueue,a!==null){var d=n.stateNode;try{var p=a.shared.hiddenCallbacks;if(p!==null)for(a.shared.hiddenCallbacks=null,a=0;a<p.length;a++)Pu(p[a],d)}catch(M){We(n,n.return,M)}}l&&c&64&&fd(i),hi(i,i.return);break;case 27:md(i);case 26:case 5:Xl(a,i,l),l&&n===null&&c&4&&hd(i),hi(i,i.return);break;case 12:Xl(a,i,l);break;case 31:Xl(a,i,l),l&&c&4&&xd(a,i);break;case 13:Xl(a,i,l),l&&c&4&&Sd(a,i);break;case 22:i.memoizedState===null&&Xl(a,i,l),hi(i,i.return);break;case 30:break;default:Xl(a,i,l)}t=t.sibling}}function Gr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pa(l))}function Vr(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 bl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Md(e,t,l,n),t=t.sibling}function Md(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,l,n),a&2048&&di(9,t);break;case 1:bl(e,t,l,n);break;case 3:bl(e,t,l,n),a&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(a&2048){bl(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){We(t,t.return,p)}}else bl(e,t,l,n);break;case 31:bl(e,t,l,n);break;case 13:bl(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?bl(e,t,l,n):pi(e,t):i._visibility&2?bl(e,t,l,n):(i._visibility|=2,za(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Gr(c,t);break;case 24:bl(e,t,l,n),a&2048&&Vr(t.alternate,t);break;default:bl(e,t,l,n)}}function za(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=l,p=n,M=c.flags;switch(c.tag){case 0:case 11:case 15:za(i,c,d,p,a),di(8,c);break;case 23:break;case 22:var R=c.stateNode;c.memoizedState!==null?R._visibility&2?za(i,c,d,p,a):pi(i,c):(R._visibility|=2,za(i,c,d,p,a)),a&&M&2048&&Gr(c.alternate,c);break;case 24:za(i,c,d,p,a),a&&M&2048&&Vr(c.alternate,c);break;default:za(i,c,d,p,a)}t=t.sibling}}function pi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:pi(l,n),a&2048&&Gr(n.alternate,n);break;case 24:pi(l,n),a&2048&&Vr(n.alternate,n);break;default:pi(l,n)}t=t.sibling}}var mi=8192;function Ma(e,t,l){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Td(e,t,l),e=e.sibling}function Td(e,t,l){switch(e.tag){case 26:Ma(e,t,l),e.flags&mi&&e.memoizedState!==null&&Tm(l,vl,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,l);break;case 3:case 4:var n=vl;vl=Qo(e.stateNode.containerInfo),Ma(e,t,l),vl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=mi,mi=16777216,Ma(e,t,l),mi=n):Ma(e,t,l));break;default:Ma(e,t,l)}}function Ad(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 gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Tt=n,Ed(n,e)}Ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wd(e),e=e.sibling}function wd(e){switch(e.tag){case 0:case 11:case 15:gi(e),e.flags&2048&&rn(9,e,e.return);break;case 3:gi(e);break;case 12:gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ro(e)):gi(e);break;default:gi(e)}}function Ro(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Tt=n,Ed(n,e)}Ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rn(8,t,t.return),Ro(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ro(t));break;default:Ro(t)}e=e.sibling}}function Ed(e,t){for(;Tt!==null;){var l=Tt;switch(l.tag){case 0:case 11:case 15:rn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Pa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Tt=n;else e:for(l=e;Tt!==null;){n=Tt;var a=n.sibling,i=n.return;if(vd(n),n===l){Tt=null;break e}if(a!==null){a.return=i,Tt=a;break e}Tt=i}}}var qp={getCacheForType:function(e){var t=_t(gt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return _t(gt).controller.signal}},Yp=typeof WeakMap=="function"?WeakMap:Map,Ve=0,at=null,Le=null,He=0,$e=0,el=null,sn=!1,Ta=!1,Xr=!1,Ql=0,ft=0,un=0,Zn=0,Qr=0,tl=0,Aa=0,yi=null,Zt=null,Zr=!1,ko=0,_d=0,Lo=1/0,Uo=null,fn=null,zt=0,dn=null,wa=null,Zl=0,Kr=0,Jr=null,Dd=null,vi=0,Fr=null;function ll(){return(Ve&2)!==0&&He!==0?He&-He:w.T!==null?ts():gl()}function Od(){if(tl===0)if((He&536870912)===0||je){var e=En;En<<=1,(En&3932160)===0&&(En=262144),tl=e}else tl=536870912;return e=It.current,e!==null&&(e.flags|=32),tl}function Kt(e,t,l){(e===at&&($e===2||$e===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),hn(e,He,tl,!1)),qe(e,l),((Ve&2)===0||e!==at)&&(e===at&&((Ve&2)===0&&(Zn|=l),ft===4&&hn(e,He,tl,!1)),Ml(e))}function Rd(e,t,l){if((Ve&6)!==0)throw Error(u(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ie(e,t),a=n?Xp(e,t):Wr(e,t,!0),i=n;do{if(a===0){Ta&&!n&&hn(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Gp(l)){a=Wr(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;a=yi;var p=d.current.memoizedState.isDehydrated;if(p&&(Ea(d,c).flags|=256),c=Wr(d,c,!1),c!==2){if(Xr&&!p){d.errorRecoveryDisabledLanes|=i,Zn|=i,a=4;break e}i=Zt,Zt=a,i!==null&&(Zt===null?Zt=i:Zt.push.apply(Zt,i))}a=c}if(i=!1,a!==2)continue}}if(a===1){Ea(e,0),hn(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:hn(n,t,tl,!sn);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(a=ko+300-Nt(),10<a)){if(hn(n,t,tl,!sn),ce(n,0,!0)!==0)break e;Zl=t,n.timeoutHandle=s0(kd.bind(null,n,l,Zt,Uo,Zr,t,tl,Zn,Aa,sn,i,"Throttled",-0,0),a);break e}kd(n,l,Zt,Uo,Zr,t,tl,Zn,Aa,sn,i,null,-0,0)}}break}while(!0);Ml(e)}function kd(e,t,l,n,a,i,c,d,p,M,R,H,T,E){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ol},Td(t,i,H);var P=(i&62914560)===i?ko-Nt():(i&4194048)===i?_d-Nt():0;if(P=Am(H,P),P!==null){Zl=i,e.cancelPendingCommit=P(Yd.bind(null,e,t,i,l,n,a,c,d,p,R,H,null,T,E)),hn(e,i,c,!M);return}}Yd(e,t,i,l,n,a,c,d,p)}function Gp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!$t(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hn(e,t,l,n){t&=~Qr,t&=~Zn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-Lt(a),c=1<<i;n[i]=-1,a&=~c}l!==0&&ge(e,l,t)}function Ho(){return(Ve&6)===0?(bi(0),!1):!0}function $r(){if(Le!==null){if($e===0)var e=Le.return;else e=Le,Ul=Nn=null,dr(e),va=null,ti=0,e=Le;for(;e!==null;)ud(e.alternate,e),e=e.return;Le=null}}function Ea(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,rm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Zl=0,$r(),at=e,Le=l=kl(e.current,null),He=t,$e=0,el=null,sn=!1,Ta=ie(e,t),Xr=!1,Aa=tl=Qr=Zn=un=ft=0,Zt=yi=null,Zr=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Lt(n),i=1<<a;t|=e[a],n&=~i}return Ql=t,lo(),l}function Ld(e,t){Te=null,w.H=si,t===ya||t===uo?(t=Fu(),$e=3):t===er?(t=Fu(),$e=4):$e=t===Er?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,el=t,Le===null&&(ft=1,To(e,cl(t,e.current)))}function Ud(){var e=It.current;return e===null?!0:(He&4194048)===He?fl===null:(He&62914560)===He||(He&536870912)!==0?e===fl:!1}function Hd(){var e=w.H;return w.H=si,e===null?si:e}function Nd(){var e=w.A;return w.A=qp,e}function No(){ft=4,sn||(He&4194048)!==He&&It.current!==null||(Ta=!0),(un&134217727)===0&&(Zn&134217727)===0||at===null||hn(at,He,tl,!1)}function Wr(e,t,l){var n=Ve;Ve|=2;var a=Hd(),i=Nd();(at!==e||He!==t)&&(Uo=null,Ea(e,t)),t=!1;var c=ft;e:do try{if($e!==0&&Le!==null){var d=Le,p=el;switch($e){case 8:$r(),c=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var M=$e;if($e=0,el=null,_a(e,d,p,M),l&&Ta){c=0;break e}break;default:M=$e,$e=0,el=null,_a(e,d,p,M)}}Vp(),c=ft;break}catch(R){Ld(e,R)}while(!0);return t&&e.shellSuspendCounter++,Ul=Nn=null,Ve=n,w.H=a,w.A=i,Le===null&&(at=null,He=0,lo()),c}function Vp(){for(;Le!==null;)Bd(Le)}function Xp(e,t){var l=Ve;Ve|=2;var n=Hd(),a=Nd();at!==e||He!==t?(Uo=null,Lo=Nt()+500,Ea(e,t)):Ta=ie(e,t);e:do try{if($e!==0&&Le!==null){t=Le;var i=el;t:switch($e){case 1:$e=0,el=null,_a(e,t,i,1);break;case 2:case 9:if(Ku(i)){$e=0,el=null,jd(t);break}t=function(){$e!==2&&$e!==9||at!==e||($e=7),Ml(e)},i.then(t,t);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:Ku(i)?($e=0,el=null,jd(t)):($e=0,el=null,_a(e,t,i,7));break;case 5:var c=null;switch(Le.tag){case 26:c=Le.memoizedState;case 5:case 27:var d=Le;if(c?M0(c):d.stateNode.complete){$e=0,el=null;var p=d.sibling;if(p!==null)Le=p;else{var M=d.return;M!==null?(Le=M,Bo(M)):Le=null}break t}}$e=0,el=null,_a(e,t,i,5);break;case 6:$e=0,el=null,_a(e,t,i,6);break;case 8:$r(),ft=6;break e;default:throw Error(u(462))}}Qp();break}catch(R){Ld(e,R)}while(!0);return Ul=Nn=null,w.H=n,w.A=a,Ve=l,Le!==null?0:(at=null,He=0,lo(),ft)}function Qp(){for(;Le!==null&&!Jn();)Bd(Le)}function Bd(e){var t=rd(e.alternate,e,Ql);e.memoizedProps=e.pendingProps,t===null?Bo(e):Le=t}function jd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ld(l,t,t.pendingProps,t.type,void 0,He);break;case 11:t=ld(l,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:dr(t);default:ud(l,t),t=Le=Hu(t,Ql),t=rd(l,t,Ql)}e.memoizedProps=e.pendingProps,t===null?Bo(e):Le=t}function _a(e,t,l,n){Ul=Nn=null,dr(t),va=null,ti=0;var a=t.return;try{if(kp(e,a,t,l,He)){ft=1,To(e,cl(l,e.current)),Le=null;return}}catch(i){if(a!==null)throw Le=a,i;ft=1,To(e,cl(l,e.current)),Le=null;return}t.flags&32768?(je||n===1?e=!0:Ta||(He&536870912)!==0?e=!1:(sn=e=!0,(n===2||n===9||n===3||n===6)&&(n=It.current,n!==null&&n.tag===13&&(n.flags|=16384))),qd(t,e)):Bo(t)}function Bo(e){var t=e;do{if((t.flags&32768)!==0){qd(t,sn);return}e=t.return;var l=Hp(t.alternate,t,Ql);if(l!==null){Le=l;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);ft===0&&(ft=5)}function qd(e,t){do{var l=Np(e.alternate,e);if(l!==null){l.flags&=32767,Le=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Le=e;return}Le=e=l}while(e!==null);ft=6,Le=null}function Yd(e,t,l,n,a,i,c,d,p){e.cancelPendingCommit=null;do jo();while(zt!==0);if((Ve&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(i=t.lanes|t.childLanes,i|=jc,Re(e,l,i,c,d,p),e===at&&(Le=at=null,He=0),wa=t,dn=e,Zl=l,Kr=i,Jr=a,Dd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fp(Fn,function(){return Zd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=w.T,w.T=null,a=Y.p,Y.p=2,c=Ve,Ve|=4;try{Bp(e,t,l)}finally{Ve=c,Y.p=a,w.T=n}}zt=1,Gd(),Vd(),Xd()}}function Gd(){if(zt===1){zt=0;var e=dn,t=wa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null;var n=Y.p;Y.p=2;var a=Ve;Ve|=4;try{Cd(t,e);var i=ss,c=wu(e.containerInfo),d=i.focusedElem,p=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&Au(d.ownerDocument.documentElement,d)){if(p!==null&&Lc(d)){var M=p.start,R=p.end;if(R===void 0&&(R=M),"selectionStart"in d)d.selectionStart=M,d.selectionEnd=Math.min(R,d.value.length);else{var H=d.ownerDocument||document,T=H&&H.defaultView||window;if(T.getSelection){var E=T.getSelection(),P=d.textContent.length,pe=Math.min(p.start,P),lt=p.end===void 0?pe:Math.min(p.end,P);!E.extend&&pe>lt&&(c=lt,lt=pe,pe=c);var S=Tu(d,pe),v=Tu(d,lt);if(S&&v&&(E.rangeCount!==1||E.anchorNode!==S.node||E.anchorOffset!==S.offset||E.focusNode!==v.node||E.focusOffset!==v.offset)){var z=H.createRange();z.setStart(S.node,S.offset),E.removeAllRanges(),pe>lt?(E.addRange(z),E.extend(v.node,v.offset)):(z.setEnd(v.node,v.offset),E.addRange(z))}}}}for(H=[],E=d;E=E.parentNode;)E.nodeType===1&&H.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<H.length;d++){var U=H[d];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Wo=!!rs,ss=rs=null}finally{Ve=a,Y.p=n,w.T=l}}e.current=t,zt=2}}function Vd(){if(zt===2){zt=0;var e=dn,t=wa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=w.T,w.T=null;var n=Y.p;Y.p=2;var a=Ve;Ve|=4;try{yd(e,t.alternate,t)}finally{Ve=a,Y.p=n,w.T=l}}zt=3}}function Xd(){if(zt===4||zt===3){zt=0,Tn();var e=dn,t=wa,l=Zl,n=Dd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?zt=5:(zt=0,wa=dn=null,Qd(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(fn=null),_n(l),t=t.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(wn,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=w.T,a=Y.p,Y.p=2,w.T=null;try{for(var i=e.onRecoverableError,c=0;c<n.length;c++){var d=n[c];i(d.value,{componentStack:d.stack})}}finally{w.T=t,Y.p=a}}(Zl&3)!==0&&jo(),Ml(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===Fr?vi++:(vi=0,Fr=e):vi=0,bi(0)}}function Qd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function jo(){return Gd(),Vd(),Xd(),Zd()}function Zd(){if(zt!==5)return!1;var e=dn,t=Kr;Kr=0;var l=_n(Zl),n=w.T,a=Y.p;try{Y.p=32>l?32:l,w.T=null,l=Jr,Jr=null;var i=dn,c=Zl;if(zt=0,wa=dn=null,Zl=0,(Ve&6)!==0)throw Error(u(331));var d=Ve;if(Ve|=4,wd(i.current),Md(i,i.current,c,l),Ve=d,bi(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(wn,i)}catch{}return!0}finally{Y.p=a,w.T=n,Qd(e,t)}}function Kd(e,t,l){t=cl(l,t),t=wr(e.stateNode,t,2),e=an(e,t,2),e!==null&&(qe(e,2),Ml(e))}function We(e,t,l){if(e.tag===3)Kd(e,e,l);else for(;t!==null;){if(t.tag===3){Kd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fn===null||!fn.has(n))){e=cl(l,e),l=Jf(2),n=an(t,l,2),n!==null&&(Ff(l,n,t,e),qe(n,2),Ml(n));break}}t=t.return}}function Ir(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Yp;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Xr=!0,a.add(l),e=Zp.bind(null,e,t,l),t.then(e,e))}function Zp(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,at===e&&(He&l)===l&&(ft===4||ft===3&&(He&62914560)===He&&300>Nt()-ko?(Ve&2)===0&&Ea(e,0):Qr|=l,Aa===He&&(Aa=0)),Ml(e)}function Jd(e,t){t===0&&(t=Ke()),e=Ln(e,t),e!==null&&(qe(e,t),Ml(e))}function Kp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Jd(e,l)}function Jp(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(u(314))}n!==null&&n.delete(t),Jd(e,l)}function Fp(e,t){return Mn(e,t)}var qo=null,Da=null,Pr=!1,Yo=!1,es=!1,pn=0;function Ml(e){e!==Da&&e.next===null&&(Da===null?qo=Da=e:Da=Da.next=e),Yo=!0,Pr||(Pr=!0,Wp())}function bi(e,t){if(!es&&Yo){es=!0;do for(var l=!1,n=qo;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var c=n.suspendedLanes,d=n.pingedLanes;i=(1<<31-Lt(42|e)+1)-1,i&=a&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Id(n,i))}else i=He,i=ce(n,n===at?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||ie(n,i)||(l=!0,Id(n,i));n=n.next}while(l);es=!1}}function $p(){Fd()}function Fd(){Yo=Pr=!1;var e=0;pn!==0&&cm()&&(e=pn);for(var t=Nt(),l=null,n=qo;n!==null;){var a=n.next,i=$d(n,t);i===0?(n.next=null,l===null?qo=a:l.next=a,a===null&&(Da=l)):(l=n,(e!==0||(i&3)!==0)&&(Yo=!0)),n=a}zt!==0&&zt!==5||bi(e),pn!==0&&(pn=0)}function $d(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-Lt(i),d=1<<c,p=a[c];p===-1?((d&l)===0||(d&n)!==0)&&(a[c]=Me(d,t)):p<=t&&(e.expiredLanes|=d),i&=~d}if(t=at,l=He,l=ce(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&($e===2||$e===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&pl(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ie(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&pl(n),_n(l)){case 2:case 8:l=Yi;break;case 32:l=Fn;break;case 268435456:l=Gi;break;default:l=Fn}return n=Wd.bind(null,e),l=Mn(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&pl(n),e.callbackPriority=2,e.callbackNode=null,2}function Wd(e,t){if(zt!==0&&zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(jo()&&e.callbackNode!==l)return null;var n=He;return n=ce(e,e===at?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Rd(e,n,t),$d(e,Nt()),e.callbackNode!=null&&e.callbackNode===l?Wd.bind(null,e):null)}function Id(e,t){if(jo())return null;Rd(e,t,!0)}function Wp(){sm(function(){(Ve&6)!==0?Mn(qi,$p):Fd()})}function ts(){if(pn===0){var e=ma;e===0&&(e=ml,ml<<=1,(ml&261888)===0&&(ml=256)),pn=e}return pn}function Pd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ji(""+e)}function e0(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Ip(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=Pd((a[Yt]||null).action),c=n.submitter;c&&(t=(t=c[Yt]||null)?Pd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new Ii("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(pn!==0){var p=c?e0(a,c):new FormData(a);Sr(l,{pending:!0,data:p,method:a.method,action:i},null,p)}}else typeof i=="function"&&(d.preventDefault(),p=c?e0(a,c):new FormData(a),Sr(l,{pending:!0,data:p,method:a.method,action:i},i,p))},currentTarget:a}]})}}for(var ls=0;ls<Bc.length;ls++){var ns=Bc[ls],Pp=ns.toLowerCase(),em=ns[0].toUpperCase()+ns.slice(1);yl(Pp,"on"+em)}yl(Du,"onAnimationEnd"),yl(Ou,"onAnimationIteration"),yl(Ru,"onAnimationStart"),yl("dblclick","onDoubleClick"),yl("focusin","onFocus"),yl("focusout","onBlur"),yl(gp,"onTransitionRun"),yl(yp,"onTransitionStart"),yl(vp,"onTransitionCancel"),yl(ku,"onTransitionEnd"),ta("onMouseEnter",["mouseout","mouseover"]),ta("onMouseLeave",["mouseout","mouseover"]),ta("onPointerEnter",["pointerout","pointerover"]),ta("onPointerLeave",["pointerout","pointerover"]),Dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),tm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function t0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var c=n.length-1;0<=c;c--){var d=n[c],p=d.instance,M=d.currentTarget;if(d=d.listener,p!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=M;try{i(a)}catch(R){to(R)}a.currentTarget=null,i=p}else for(c=0;c<n.length;c++){if(d=n[c],p=d.instance,M=d.currentTarget,d=d.listener,p!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=M;try{i(a)}catch(R){to(R)}a.currentTarget=null,i=p}}}}function Ue(e,t){var l=t[gc];l===void 0&&(l=t[gc]=new Set);var n=e+"__bubble";l.has(n)||(l0(t,e,2,!1),l.add(n))}function as(e,t,l){var n=0;t&&(n|=4),l0(l,e,n,t)}var Go="_reactListening"+Math.random().toString(36).slice(2);function is(e){if(!e[Go]){e[Go]=!0,Js.forEach(function(l){l!=="selectionchange"&&(tm.has(l)||as(l,!1,e),as(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Go]||(t[Go]=!0,as("selectionchange",!1,t))}}function l0(e,t,l,n){switch(O0(t)){case 2:var a=_m;break;case 8:a=Dm;break;default:a=xs}l=a.bind(null,t,l,e),a=void 0,!Tc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function os(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var d=n.stateNode.containerInfo;if(d===a)break;if(c===4)for(c=n.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;d!==null;){if(c=In(d),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){n=i=c;continue e}d=d.parentNode}}n=n.return}ou(function(){var M=i,R=zc(l),H=[];e:{var T=Lu.get(e);if(T!==void 0){var E=Ii,P=e;switch(e){case"keypress":if($i(l)===0)break e;case"keydown":case"keyup":E=Jh;break;case"focusin":P="focus",E=_c;break;case"focusout":P="blur",E=_c;break;case"beforeblur":case"afterblur":E=_c;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=su;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Wh;break;case Du:case Ou:case Ru:E=jh;break;case ku:E=Ph;break;case"scroll":case"scrollend":E=Lh;break;case"wheel":E=tp;break;case"copy":case"cut":case"paste":E=Yh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=fu;break;case"toggle":case"beforetoggle":E=np}var pe=(t&4)!==0,lt=!pe&&(e==="scroll"||e==="scrollend"),S=pe?T!==null?T+"Capture":null:T;pe=[];for(var v=M,z;v!==null;){var U=v;if(z=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||z===null||S===null||(U=Ga(v,S),U!=null&&pe.push(Si(v,U,z))),lt)break;v=v.return}0<pe.length&&(T=new E(T,P,null,l,R),H.push({event:T,listeners:pe}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",T&&l!==Cc&&(P=l.relatedTarget||l.fromElement)&&(In(P)||P[Wn]))break e;if((E||T)&&(T=R.window===R?R:(T=R.ownerDocument)?T.defaultView||T.parentWindow:window,E?(P=l.relatedTarget||l.toElement,E=M,P=P?In(P):null,P!==null&&(lt=m(P),pe=P.tag,P!==lt||pe!==5&&pe!==27&&pe!==6)&&(P=null)):(E=null,P=M),E!==P)){if(pe=su,U="onMouseLeave",S="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(pe=fu,U="onPointerLeave",S="onPointerEnter",v="pointer"),lt=E==null?T:Ya(E),z=P==null?T:Ya(P),T=new pe(U,v+"leave",E,l,R),T.target=lt,T.relatedTarget=z,U=null,In(R)===M&&(pe=new pe(S,v+"enter",P,l,R),pe.target=z,pe.relatedTarget=lt,U=pe),lt=U,E&&P)t:{for(pe=lm,S=E,v=P,z=0,U=S;U;U=pe(U))z++;U=0;for(var fe=v;fe;fe=pe(fe))U++;for(;0<z-U;)S=pe(S),z--;for(;0<U-z;)v=pe(v),U--;for(;z--;){if(S===v||v!==null&&S===v.alternate){pe=S;break t}S=pe(S),v=pe(v)}pe=null}else pe=null;E!==null&&n0(H,T,E,pe,!1),P!==null&&lt!==null&&n0(H,lt,P,pe,!0)}}e:{if(T=M?Ya(M):window,E=T.nodeName&&T.nodeName.toLowerCase(),E==="select"||E==="input"&&T.type==="file")var Ye=bu;else if(yu(T))if(xu)Ye=hp;else{Ye=fp;var ne=up}else E=T.nodeName,!E||E.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?M&&Sc(M.elementType)&&(Ye=bu):Ye=dp;if(Ye&&(Ye=Ye(e,M))){vu(H,Ye,l,R);break e}ne&&ne(e,T,M),e==="focusout"&&M&&T.type==="number"&&M.memoizedProps.value!=null&&xc(T,"number",T.value)}switch(ne=M?Ya(M):window,e){case"focusin":(yu(ne)||ne.contentEditable==="true")&&(ca=ne,Uc=M,$a=null);break;case"focusout":$a=Uc=ca=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,Eu(H,l,R);break;case"selectionchange":if(mp)break;case"keydown":case"keyup":Eu(H,l,R)}var we;if(Oc)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 oa?mu(e,l)&&(Ne="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ne="onCompositionStart");Ne&&(du&&l.locale!=="ko"&&(oa||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&oa&&(we=cu()):(Wl=R,Ac="value"in Wl?Wl.value:Wl.textContent,oa=!0)),ne=Vo(M,Ne),0<ne.length&&(Ne=new uu(Ne,e,null,l,R),H.push({event:Ne,listeners:ne}),we?Ne.data=we:(we=gu(l),we!==null&&(Ne.data=we)))),(we=ip?op(e,l):cp(e,l))&&(Ne=Vo(M,"onBeforeInput"),0<Ne.length&&(ne=new uu("onBeforeInput","beforeinput",null,l,R),H.push({event:ne,listeners:Ne}),ne.data=we)),Ip(H,e,M,l,R)}t0(H,t)})}function Si(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Vo(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Ga(e,l),a!=null&&n.unshift(Si(e,a,i)),a=Ga(e,t),a!=null&&n.push(Si(e,a,i))),e.tag===3)return n;e=e.return}return[]}function lm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function n0(e,t,l,n,a){for(var i=t._reactName,c=[];l!==null&&l!==n;){var d=l,p=d.alternate,M=d.stateNode;if(d=d.tag,p!==null&&p===n)break;d!==5&&d!==26&&d!==27||M===null||(p=M,a?(M=Ga(l,i),M!=null&&c.unshift(Si(l,M,p))):a||(M=Ga(l,i),M!=null&&c.push(Si(l,M,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var nm=/\r\n?/g,am=/\u0000|\uFFFD/g;function a0(e){return(typeof e=="string"?e:""+e).replace(nm,`
9
+ `).replace(am,"")}function i0(e,t){return t=a0(t),a0(e)===t}function tt(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||na(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&na(e,""+n);break;case"className":Zi(e,"class",n);break;case"tabIndex":Zi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Zi(e,l,n);break;case"style":au(e,n,i);break;case"data":if(t!=="object"){Zi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ji(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&tt(e,t,"name",a.name,a,null),tt(e,t,"formEncType",a.formEncType,a,null),tt(e,t,"formMethod",a.formMethod,a,null),tt(e,t,"formTarget",a.formTarget,a,null)):(tt(e,t,"encType",a.encType,a,null),tt(e,t,"method",a.method,a,null),tt(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ji(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Ol);break;case"onScroll":n!=null&&Ue("scroll",e);break;case"onScrollEnd":n!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Ji(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Qi(e,"popover",n);break;case"xlinkActuate":Dl(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Dl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Dl(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Dl(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Dl(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Dl(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Dl(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Dl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Dl(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Qi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Rh.get(l)||l,Qi(e,l,n))}}function cs(e,t,l,n,a,i){switch(l){case"style":au(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof n=="string"?na(e,n):(typeof n=="number"||typeof n=="bigint")&&na(e,""+n);break;case"onScroll":n!=null&&Ue("scroll",e);break;case"onScrollEnd":n!=null&&Ue("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[Yt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):Qi(e,l,n)}}}function Ot(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:tt(e,t,i,c,l,null)}}a&&tt(e,t,"srcSet",l.srcSet,l,null),n&&tt(e,t,"src",l.src,l,null);return;case"input":Ue("invalid",e);var d=i=c=a=null,p=null,M=null;for(n in l)if(l.hasOwnProperty(n)){var R=l[n];if(R!=null)switch(n){case"name":a=R;break;case"type":c=R;break;case"checked":p=R;break;case"defaultChecked":M=R;break;case"value":i=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:tt(e,t,n,R,l,null)}}eu(e,i,d,p,M,c,a,!1);return;case"select":Ue("invalid",e),n=c=i=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":n=d;default:tt(e,t,a,d,l,null)}t=i,l=c,e.multiple=!!n,t!=null?la(e,!!n,t,!1):l!=null&&la(e,!!n,l,!0);return;case"textarea":Ue("invalid",e),i=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":n=d;break;case"defaultValue":a=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(u(91));break;default:tt(e,t,c,d,l,null)}lu(e,n,a,i);return;case"option":for(p in l)l.hasOwnProperty(p)&&(n=l[p],n!=null)&&(p==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":tt(e,t,p,n,l,null));return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(n=0;n<xi.length;n++)Ue(xi[n],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in l)if(l.hasOwnProperty(M)&&(n=l[M],n!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:tt(e,t,M,n,l,null)}return;default:if(Sc(t)){for(R in l)l.hasOwnProperty(R)&&(n=l[R],n!==void 0&&cs(e,t,R,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&tt(e,t,d,n,l,null))}function im(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,c=null,d=null,p=null,M=null,R=null;for(E in l){var H=l[E];if(l.hasOwnProperty(E)&&H!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":p=H;default:n.hasOwnProperty(E)||tt(e,t,E,null,n,H)}}for(var T in n){var E=n[T];if(H=l[T],n.hasOwnProperty(T)&&(E!=null||H!=null))switch(T){case"type":i=E;break;case"name":a=E;break;case"checked":M=E;break;case"defaultChecked":R=E;break;case"value":c=E;break;case"defaultValue":d=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(u(137,t));break;default:E!==H&&tt(e,t,T,E,n,H)}}bc(e,c,d,p,M,R,i,a);return;case"select":E=c=d=T=null;for(i in l)if(p=l[i],l.hasOwnProperty(i)&&p!=null)switch(i){case"value":break;case"multiple":E=p;default:n.hasOwnProperty(i)||tt(e,t,i,null,n,p)}for(a in n)if(i=n[a],p=l[a],n.hasOwnProperty(a)&&(i!=null||p!=null))switch(a){case"value":T=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==p&&tt(e,t,a,i,n,p)}t=d,l=c,n=E,T!=null?la(e,!!l,T,!1):!!n!=!!l&&(t!=null?la(e,!!l,t,!0):la(e,!!l,l?[]:"",!1));return;case"textarea":E=T=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:tt(e,t,d,null,n,a)}for(c in n)if(a=n[c],i=l[c],n.hasOwnProperty(c)&&(a!=null||i!=null))switch(c){case"value":T=a;break;case"defaultValue":E=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(u(91));break;default:a!==i&&tt(e,t,c,a,n,i)}tu(e,T,E);return;case"option":for(var P in l)T=l[P],l.hasOwnProperty(P)&&T!=null&&!n.hasOwnProperty(P)&&(P==="selected"?e.selected=!1:tt(e,t,P,null,n,T));for(p in n)T=n[p],E=l[p],n.hasOwnProperty(p)&&T!==E&&(T!=null||E!=null)&&(p==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":tt(e,t,p,T,n,E));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 pe in l)T=l[pe],l.hasOwnProperty(pe)&&T!=null&&!n.hasOwnProperty(pe)&&tt(e,t,pe,null,n,T);for(M in n)if(T=n[M],E=l[M],n.hasOwnProperty(M)&&T!==E&&(T!=null||E!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(u(137,t));break;default:tt(e,t,M,T,n,E)}return;default:if(Sc(t)){for(var lt in l)T=l[lt],l.hasOwnProperty(lt)&&T!==void 0&&!n.hasOwnProperty(lt)&&cs(e,t,lt,void 0,n,T);for(R in n)T=n[R],E=l[R],!n.hasOwnProperty(R)||T===E||T===void 0&&E===void 0||cs(e,t,R,T,n,E);return}}for(var S in l)T=l[S],l.hasOwnProperty(S)&&T!=null&&!n.hasOwnProperty(S)&&tt(e,t,S,null,n,T);for(H in n)T=n[H],E=l[H],!n.hasOwnProperty(H)||T===E||T==null&&E==null||tt(e,t,H,T,n,E)}function o0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function om(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,c=a.initiatorType,d=a.duration;if(i&&d&&o0(c)){for(c=0,d=a.responseEnd,n+=1;n<l.length;n++){var p=l[n],M=p.startTime;if(M>d)break;var R=p.transferSize,H=p.initiatorType;R&&o0(H)&&(p=p.responseEnd,c+=R*(p<d?1:(d-M)/(p-M)))}if(--n,t+=8*(i+c)/(a.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 rs=null,ss=null;function Xo(e){return e.nodeType===9?e:e.ownerDocument}function c0(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 r0(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 us(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 fs=null;function cm(){var e=window.event;return e&&e.type==="popstate"?e===fs?!1:(fs=e,!0):(fs=null,!1)}var s0=typeof setTimeout=="function"?setTimeout:void 0,rm=typeof clearTimeout=="function"?clearTimeout:void 0,u0=typeof Promise=="function"?Promise:void 0,sm=typeof queueMicrotask=="function"?queueMicrotask:typeof u0<"u"?function(e){return u0.resolve(null).then(e).catch(um)}:s0;function um(e){setTimeout(function(){throw e})}function mn(e){return e==="head"}function f0(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),La(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ci(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ci(l);for(var i=l.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[qa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Ci(e.ownerDocument.body);l=a}while(l);La(t)}function d0(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function ds(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ds(l),yc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function fm(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=dl(e.nextSibling),e===null)break}return null}function dm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dl(e.nextSibling),e===null))return null;return e}function h0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dl(e.nextSibling),e===null))return null;return e}function hs(e){return e.data==="$?"||e.data==="$~"}function ps(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hm(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function dl(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 ms=null;function p0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return dl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function m0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function g0(e,t,l){switch(t=Xo(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yc(e)}var hl=new Map,y0=new Set;function Qo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kl=Y.d;Y.d={f:pm,r:mm,D:gm,C:ym,L:vm,m:bm,X:Sm,S:xm,M:Cm};function pm(){var e=Kl.f(),t=Ho();return e||t}function mm(e){var t=Pn(e);t!==null&&t.tag===5&&t.type==="form"?Lf(t):Kl.r(e)}var Oa=typeof document>"u"?null:document;function v0(e,t,l){var n=Oa;if(n&&typeof t=="string"&&t){var a=il(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),y0.has(a)||(y0.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Ot(t,"link",e),Mt(t),n.head.appendChild(t)))}}function gm(e){Kl.D(e),v0("dns-prefetch",e,null)}function ym(e,t){Kl.C(e,t),v0("preconnect",e,t)}function vm(e,t,l){Kl.L(e,t,l);var n=Oa;if(n&&e&&t){var a='link[rel="preload"][as="'+il(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+il(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+il(l.imageSizes)+'"]')):a+='[href="'+il(e)+'"]';var i=a;switch(t){case"style":i=Ra(e);break;case"script":i=ka(e)}hl.has(i)||(e=N({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),hl.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(zi(i))||t==="script"&&n.querySelector(Mi(i))||(t=n.createElement("link"),Ot(t,"link",e),Mt(t),n.head.appendChild(t)))}}function bm(e,t){Kl.m(e,t);var l=Oa;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+il(n)+'"][href="'+il(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ka(e)}if(!hl.has(i)&&(e=N({rel:"modulepreload",href:e},t),hl.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Mi(i)))return}n=l.createElement("link"),Ot(n,"link",e),Mt(n),l.head.appendChild(n)}}}function xm(e,t,l){Kl.S(e,t,l);var n=Oa;if(n&&e){var a=ea(n).hoistableStyles,i=Ra(e);t=t||"default";var c=a.get(i);if(!c){var d={loading:0,preload:null};if(c=n.querySelector(zi(i)))d.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},l),(l=hl.get(i))&&gs(e,l);var p=c=n.createElement("link");Mt(p),Ot(p,"link",e),p._p=new Promise(function(M,R){p.onload=M,p.onerror=R}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Zo(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:d},a.set(i,c)}}}function Sm(e,t){Kl.X(e,t);var l=Oa;if(l&&e){var n=ea(l).hoistableScripts,a=ka(e),i=n.get(a);i||(i=l.querySelector(Mi(a)),i||(e=N({src:e,async:!0},t),(t=hl.get(a))&&ys(e,t),i=l.createElement("script"),Mt(i),Ot(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Cm(e,t){Kl.M(e,t);var l=Oa;if(l&&e){var n=ea(l).hoistableScripts,a=ka(e),i=n.get(a);i||(i=l.querySelector(Mi(a)),i||(e=N({src:e,async:!0,type:"module"},t),(t=hl.get(a))&&ys(e,t),i=l.createElement("script"),Mt(i),Ot(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function b0(e,t,l,n){var a=(a=re.current)?Qo(a):null;if(!a)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ra(l.href),l=ea(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ra(l.href);var i=ea(a).hoistableStyles,c=i.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=a.querySelector(zi(e)))&&!i._p&&(c.instance=i,c.state.loading=5),hl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},hl.set(e,l),i||zm(a,e,l,c.state))),t&&n===null)throw Error(u(528,""));return c}if(t&&n!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ka(l),l=ea(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ra(e){return'href="'+il(e)+'"'}function zi(e){return'link[rel="stylesheet"]['+e+"]"}function x0(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Ot(t,"link",l),Mt(t),e.head.appendChild(t))}function ka(e){return'[src="'+il(e)+'"]'}function Mi(e){return"script[async]"+e}function S0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+il(l.href)+'"]');if(n)return t.instance=n,Mt(n),n;var a=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Mt(n),Ot(n,"style",a),Zo(n,l.precedence,e),t.instance=n;case"stylesheet":a=Ra(l.href);var i=e.querySelector(zi(a));if(i)return t.state.loading|=4,t.instance=i,Mt(i),i;n=x0(l),(a=hl.get(a))&&gs(n,a),i=(e.ownerDocument||e).createElement("link"),Mt(i);var c=i;return c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),Ot(i,"link",n),t.state.loading|=4,Zo(i,l.precedence,e),t.instance=i;case"script":return i=ka(l.src),(a=e.querySelector(Mi(i)))?(t.instance=a,Mt(a),a):(n=l,(a=hl.get(i))&&(n=N({},l),ys(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Mt(a),Ot(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Zo(n,l.precedence,e));return t.instance}function Zo(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,c=0;c<n.length;c++){var d=n[c];if(d.dataset.precedence===t)i=d;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function gs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ys(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ko=null;function C0(e,t,l){if(Ko===null){var n=new Map,a=Ko=new Map;a.set(l,n)}else a=Ko,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[qa]||i[wt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=n.get(c);d?d.push(i):n.set(c,[i])}}return n}function z0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Mm(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 M0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tm(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Ra(n.href),i=t.querySelector(zi(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Jo.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Mt(i);return}i=t.ownerDocument||t,n=x0(n),(a=hl.get(a))&&gs(n,a),i=i.createElement("link"),Mt(i);var c=i;c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),Ot(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Jo.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var vs=0;function Am(e,t){return e.stylesheets&&e.count===0&&$o(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&$o(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&vs===0&&(vs=62500*om());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$o(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>vs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$o(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fo=null;function $o(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fo=new Map,t.forEach(wm,e),Fo=null,Jo.call(e))}function wm(e,t){if(!(t.state.loading&4)){var l=Fo.get(e);if(l)var n=l.get(null);else{l=new Map,Fo.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var c=a[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=t.instance,c=a.getAttribute("data-precedence"),i=l.get(c)||n,i===n&&l.set(null,a),l.set(c,a),this.count++,n=Jo.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ti={$$typeof:W,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Em(e,t,l,n,a,i,c,d,p){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=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function T0(e,t,l,n,a,i,c,d,p,M,R,H){return e=new Em(e,t,l,c,p,M,R,H,d),t=1,i===!0&&(t|=24),i=Wt(3,null,null,t),e.current=i,i.stateNode=e,t=Wc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},tr(i),e}function A0(e){return e?(e=ua,e):ua}function w0(e,t,l,n,a,i){a=A0(a),n.context===null?n.context=a:n.pendingContext=a,n=nn(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=an(e,n,t),l!==null&&(Kt(l,e,t),ni(l,e,t))}function E0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function bs(e,t){E0(e,t),(e=e.alternate)&&E0(e,t)}function _0(e){if(e.tag===13||e.tag===31){var t=Ln(e,67108864);t!==null&&Kt(t,e,67108864),bs(e,67108864)}}function D0(e){if(e.tag===13||e.tag===31){var t=ll();t=nt(t);var l=Ln(e,t);l!==null&&Kt(l,e,t),bs(e,t)}}var Wo=!0;function _m(e,t,l,n){var a=w.T;w.T=null;var i=Y.p;try{Y.p=2,xs(e,t,l,n)}finally{Y.p=i,w.T=a}}function Dm(e,t,l,n){var a=w.T;w.T=null;var i=Y.p;try{Y.p=8,xs(e,t,l,n)}finally{Y.p=i,w.T=a}}function xs(e,t,l,n){if(Wo){var a=Ss(n);if(a===null)os(e,t,n,Io,l),R0(e,n);else if(Rm(a,e,t,l,n))n.stopPropagation();else if(R0(e,n),t&4&&-1<Om.indexOf(e)){for(;a!==null;){var i=Pn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=ve(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var p=1<<31-Lt(c);d.entanglements[1]|=p,c&=~p}Ml(i),(Ve&6)===0&&(Lo=Nt()+500,bi(0))}}break;case 31:case 13:d=Ln(i,2),d!==null&&Kt(d,i,2),Ho(),bs(i,2)}if(i=Ss(n),i===null&&os(e,t,n,Io,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else os(e,t,n,null,l)}}function Ss(e){return e=zc(e),Cs(e)}var Io=null;function Cs(e){if(Io=null,e=In(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=D(t),e!==null)return e;e=null}else if(l===31){if(e=L(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Io=e,null}function O0(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(hc()){case qi:return 2;case Yi:return 8;case Fn:case pc:return 32;case Gi:return 268435456;default:return 32}default:return 32}}var zs=!1,gn=null,yn=null,vn=null,Ai=new Map,wi=new Map,bn=[],Om="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 R0(e,t){switch(e){case"focusin":case"focusout":gn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":vn=null;break;case"pointerover":case"pointerout":Ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(t.pointerId)}}function Ei(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Pn(t),t!==null&&_0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Rm(e,t,l,n,a){switch(t){case"focusin":return gn=Ei(gn,e,t,l,n,a),!0;case"dragenter":return yn=Ei(yn,e,t,l,n,a),!0;case"mouseover":return vn=Ei(vn,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return Ai.set(i,Ei(Ai.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,wi.set(i,Ei(wi.get(i)||null,e,t,l,n,a)),!0}return!1}function k0(e){var t=In(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=D(l),t!==null){e.blockedOn=t,Xi(e.priority,function(){D0(l)});return}}else if(t===31){if(t=L(l),t!==null){e.blockedOn=t,Xi(e.priority,function(){D0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Po(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ss(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Cc=n,l.target.dispatchEvent(n),Cc=null}else return t=Pn(l),t!==null&&_0(t),e.blockedOn=l,!1;t.shift()}return!0}function L0(e,t,l){Po(e)&&l.delete(t)}function km(){zs=!1,gn!==null&&Po(gn)&&(gn=null),yn!==null&&Po(yn)&&(yn=null),vn!==null&&Po(vn)&&(vn=null),Ai.forEach(L0),wi.forEach(L0)}function ec(e,t){e.blockedOn===t&&(e.blockedOn=null,zs||(zs=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,km)))}var tc=null;function U0(e){tc!==e&&(tc=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){tc===e&&(tc=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Cs(n||l)===null)continue;break}var i=Pn(l);i!==null&&(e.splice(t,3),t-=3,Sr(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function La(e){function t(p){return ec(p,e)}gn!==null&&ec(gn,e),yn!==null&&ec(yn,e),vn!==null&&ec(vn,e),Ai.forEach(t),wi.forEach(t);for(var l=0;l<bn.length;l++){var n=bn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<bn.length&&(l=bn[0],l.blockedOn===null);)k0(l),l.blockedOn===null&&bn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],c=a[Yt]||null;if(typeof i=="function")c||U0(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(a=i,c=i[Yt]||null)d=c.formAction;else if(Cs(a)!==null)continue}else d=c.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),U0(l)}}}function H0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return a=c})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Ms(e){this._internalRoot=e}lc.prototype.render=Ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,n=ll();w0(l,n,e,t,null,null)},lc.prototype.unmount=Ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;w0(e.current,2,null,e,null,null),Ho(),t[Wn]=null}};function lc(e){this._internalRoot=e}lc.prototype.unstable_scheduleHydration=function(e){if(e){var t=gl();e={blockedOn:null,target:e,priority:t};for(var l=0;l<bn.length&&t!==0&&t<bn[l].priority;l++);bn.splice(l,0,e),l===0&&k0(e)}};var N0=s.version;if(N0!=="19.2.4")throw Error(u(527,N0,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=x(t),e=e!==null?G(e):null,e=e===null?null:e.stateNode,e};var Lm={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{wn=nc.inject(Lm),Bt=nc}catch{}}return Oi.createRoot=function(e,t){if(!y(e))throw Error(u(299));var l=!1,n="",a=Xf,i=Qf,c=Zf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=T0(e,1,!1,null,null,l,n,null,a,i,c,H0),e[Wn]=t.current,is(e),new Ms(t)},Oi.hydrateRoot=function(e,t,l){if(!y(e))throw Error(u(299));var n=!1,a="",i=Xf,c=Qf,d=Zf,p=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=T0(e,1,!0,t,l??null,n,a,p,i,c,d,H0),t.context=A0(null),l=t.current,n=ll(),n=nt(n),a=nn(n),a.callback=null,an(l,a,n),l=n,t.current.lanes=l,qe(t,l),Ml(t),e[Wn]=t.current,is(e),new lc(t)},Oi.version="19.2.4",Oi}var nh;function q1(){if(nh)return Ds.exports;nh=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(s){console.error(s)}}return o(),Ds.exports=j1(),Ds.exports}var Y1=q1(),ah=function(s,h){var u=arguments;if(h==null||!Bi.call(h,"css"))return A.createElement.apply(void 0,u);var y=u.length,m=new Array(y);m[0]=Qs,m[1]=Xs(s,h);for(var D=2;D<y;D++)m[D]=u[D];return A.createElement.apply(null,m)};(function(o){var s;s||(s=o.JSX||(o.JSX={}))})(ah||(ah={}));function b(){for(var o=arguments.length,s=new Array(o),h=0;h<o;h++)s[h]=arguments[h];return yh(s)}function Jl(){var o=b.apply(void 0,arguments),s="animation-"+o.name;return{name:s,styles:"@keyframes "+s+"{"+o.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const G1={showProgress:!1,progressTitle:"",progressState:{current:0,total:0,percent:0,status:"processing"},showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1,actionPaths:[],syncImageCount:0,syncHasRemote:!1,syncHasLocal:!1,processMode:"generate"},V1={isOpen:!1,openStudio:()=>{},closeStudio:()=>{},toggleStudio:()=>{},currentPath:"public",setCurrentPath:()=>{},navigateUp:()=>{},selectedItems:new Set,toggleSelection:()=>{},selectRange:()=>{},selectAll:()=>{},clearSelection:()=>{},lastSelectedPath:null,viewMode:"grid",setViewMode:()=>{},focusedItem:null,setFocusedItem:()=>{},meta:null,setMeta:()=>{},isLoading:!1,setIsLoading:()=>{},refreshKey:0,triggerRefresh:()=>{},scanRequested:!1,triggerScan:()=>{},clearScanRequest:()=>{},searchQuery:"",setSearchQuery:()=>{},error:null,showError:()=>{},clearError:()=>{},fileItems:[],setFileItems:()=>{},actionState:G1,requestDelete:()=>{},requestMove:()=>{},requestSync:()=>{},requestProcess:()=>{},setProcessMode:()=>{},confirmDelete:async()=>{},confirmMove:async()=>{},confirmSync:async()=>{},confirmProcess:async()=>{},cancelAction:()=>{},closeProgress:()=>{},stopProcessing:()=>{},abortController:null,deleteOrphans:async()=>{}},bh=A.createContext(V1);function Na(){return A.useContext(bh)}const dc="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif",f={primary:"#635bff",primaryHover:"#5851e5",primaryLight:"#f0f0ff",background:"#f6f9fc",surface:"#ffffff",surfaceHover:"#f6f9fc",border:"#d8dee4",borderLight:"#e3e8ee",borderHover:"#c1c9d2",text:"#1a1f36",textSecondary:"#697386",textMuted:"#8792a2",success:"#0d7d4d",danger:"#df1b41",dangerHover:"#c41535",dangerLight:"#fff5f7",imagesFolder:"#8b5cf6"},K={xs:"13px",sm:"14px",base:"16px",lg:"19px",xl:"22px"},ji=b("font-family:",dc,";font-size:",K.base,";line-height:1.5;color:",f.text,";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;*,*::before,*::after{box-sizing:border-box;}button,input,select,textarea{font-family:inherit;font-size:inherit;}",""),X1=Jl`
10
+ from { opacity: 0; }
11
+ to { opacity: 1; }
12
+ `,Q1=Jl`
13
+ from {
14
+ opacity: 0;
15
+ transform: translateY(-8px) scale(0.98);
16
+ }
17
+ to {
18
+ opacity: 1;
19
+ transform: translateY(0) scale(1);
20
+ }
21
+ `,ye={overlay:b("position:fixed;inset:0;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:",X1," 0.15s ease-out;font-family:",dc,";",""),modal:b(ji," background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);max-width:420px;width:90%;animation:",Q1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),body:{name:"5e7rpo",styles:"padding:12px 24px 24px"},message:b("font-size:",K.base,";color:",f.textSecondary,";margin:0;line-height:1.6;",""),footer:b("display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid ",f.border,";background-color:",f.background,";",""),btn:b("padding:10px 18px;font-size:",K.base,";font-weight:500;border-radius:6px;cursor:pointer;transition:all 0.15s ease;letter-spacing:-0.01em;",""),btnCancel:b("background-color:",f.surface,";border:1px solid ",f.border,";color:",f.text,";&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),btnConfirm:b("background-color:",f.primary,";border:1px solid ",f.primary,";color:white;&:hover{background-color:",f.primaryHover,";border-color:",f.primaryHover,";}",""),btnDanger:b("background-color:",f.danger,";border:1px solid ",f.danger,";color:white;&:hover{background-color:",f.dangerHover,";border-color:",f.dangerHover,";}","")};function Ri({title:o,message:s,confirmLabel:h="Confirm",cancelLabel:u="Cancel",variant:y="default",onConfirm:m,onCancel:D}){return r("div",{css:ye.overlay,onClick:D,children:C("div",{css:ye.modal,onClick:L=>L.stopPropagation(),children:[r("div",{css:ye.header,children:r("h3",{css:ye.title,children:o})}),r("div",{css:ye.body,children:r("p",{css:ye.message,children:s})}),C("div",{css:ye.footer,children:[r("button",{css:[ye.btn,ye.btnCancel,"",""],onClick:D,children:u}),r("button",{css:[ye.btn,y==="danger"?ye.btnDanger:ye.btnConfirm,"",""],onClick:m,children:h})]})]})})}const Z1={input:b("width:100%;padding:10px 12px;font-size:",K.base,";border:1px solid ",f.border,";border-radius:6px;background:",f.surface,";color:",f.text,";margin-top:12px;transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 2px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}","")};function js({title:o,message:s,inputLabel:h,defaultValue:u="",placeholder:y,confirmLabel:m="Confirm",cancelLabel:D="Cancel",onConfirm:L,onCancel:O}){const[x,G]=ch.useState(u),N=V=>{V.preventDefault(),x.trim()&&L(x.trim())};return r("div",{css:ye.overlay,onClick:O,children:r("div",{css:ye.modal,onClick:V=>V.stopPropagation(),children:C("form",{onSubmit:N,children:[r("div",{css:ye.header,children:r("h3",{css:ye.title,children:o})}),C("div",{css:ye.body,children:[s&&r("p",{css:ye.message,children:s}),h&&r("label",{css:ye.message,children:h}),r("input",{css:Z1.input,type:"text",value:x,onChange:V=>G(V.target.value),placeholder:y,autoFocus:!0})]}),C("div",{css:ye.footer,children:[r("button",{type:"button",css:[ye.btn,ye.btnCancel,"",""],onClick:O,children:D}),r("button",{type:"submit",css:[ye.btn,ye.btnConfirm,"",""],disabled:!x.trim(),children:m})]})]})})})}function xh({title:o,message:s,buttonLabel:h="OK",onClose:u}){return r("div",{css:ye.overlay,onClick:u,children:C("div",{css:ye.modal,onClick:y=>y.stopPropagation(),children:[r("div",{css:ye.header,children:r("h3",{css:ye.title,children:o})}),r("div",{css:ye.body,children:r("p",{css:ye.message,children:s})}),r("div",{css:ye.footer,children:r("button",{css:[ye.btn,ye.btnConfirm,"",""],onClick:u,children:h})})]})})}const Sn={progressContainer:{name:"yz1nei",styles:"margin-top:16px"},progressBar:b("width:100%;height:8px;background-color:",f.background,";border-radius:4px;overflow:hidden;margin-bottom:12px;",""),progressFill:b("height:100%;background:linear-gradient(90deg, ",f.primary,", ",f.primaryHover,");border-radius:4px;transition:width 0.3s ease;",""),progressText:b("font-size:",K.sm,";color:",f.textSecondary,";margin:0;display:flex;justify-content:space-between;align-items:center;",""),currentFile:b("font-size:",K.xs,";color:",f.textMuted,";margin:8px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""),errorList:{name:"1lw22n1",styles:"margin-top:12px;padding:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;max-height:200px;overflow-y:auto"},errorItem:b("font-size:",K.xs,";color:#991b1b;margin:0 0 4px;&:last-child{margin-bottom:0;}","")};function Zs({title:o,progress:s,onClose:h,onDeleteOrphans:u,onStop:y}){const m=s.status==="complete",D=s.status==="error",L=s.status==="stopped",O=m||D||L,x=!O;return r("div",{css:ye.overlay,children:C("div",{css:ye.modal,onClick:G=>G.stopPropagation(),children:[r("div",{css:ye.header,children:r("h3",{css:ye.title,children:o})}),r("div",{css:ye.body,children:D?r("p",{css:ye.message,children:s.message||"An error occurred"}):L?C("p",{css:ye.message,children:["Processing stopped. Processed ",s.processed??s.current," image",(s.processed??s.current)!==1?"s":""," before stopping."]}):m?C(qt,{children:[C("p",{css:ye.message,children:[s.message?s.message:s.isMove?C(qt,{children:["Moved ",s.processed," file",s.processed!==1?"s":"",".",s.errors!==void 0&&s.errors>0?C(qt,{children:[" ",s.errors," error",s.errors!==1?"s":""," occurred."]}):null]}):s.isScan?C(qt,{children:[s.alreadyProcessed!==void 0&&s.alreadyProcessed>0?C(qt,{children:[s.alreadyProcessed," image",s.alreadyProcessed!==1?"s":""," already exist. "]}):null,"Scanned ",s.processed," new image",s.processed!==1?"s":"","."]}):C(qt,{children:["Processed ",s.processed," new image",s.processed!==1?"s":"",".",s.alreadyProcessed!==void 0&&s.alreadyProcessed>0?C(qt,{children:[" ",s.alreadyProcessed," already processed."]}):null]}),s.orphansRemoved!==void 0&&s.orphansRemoved>0?C(qt,{children:[" Removed ",s.orphansRemoved," orphaned thumbnail",s.orphansRemoved!==1?"s":"","."]}):null]}),s.errorMessages&&s.errorMessages.length>0&&C("div",{css:Sn.errorList,children:[s.errorMessages.slice(0,10).map((G,N)=>r("p",{css:Sn.errorItem,children:G},N)),s.errorMessages.length>10&&C("p",{css:Sn.errorItem,children:["...and ",s.errorMessages.length-10," more"]})]})]}):C(qt,{children:[r("p",{css:ye.message,children:s.status==="cleanup"?s.message||"Cleaning up...":s.message||"Processing..."}),C("div",{css:Sn.progressContainer,children:[r("div",{css:Sn.progressBar,children:r("div",{css:Sn.progressFill,style:{width:`${s.percent}%`}})}),C("div",{css:Sn.progressText,children:[C("span",{children:[s.current," of ",s.total]}),C("span",{children:[s.percent,"%"]})]}),s.currentFile&&r("p",{css:Sn.currentFile,title:s.currentFile,children:s.currentFile})]})]})}),C("div",{css:ye.footer,children:[x&&y&&r("button",{css:[ye.btn,ye.btnDanger,"",""],onClick:y,children:"Stop"}),O&&s.orphanedFiles&&s.orphanedFiles.length>0&&u&&C("button",{css:[ye.btn,ye.btnDanger,"",""],onClick:u,children:["Delete ",s.orphanedFiles.length," Orphan",s.orphanedFiles.length!==1?"s":""]}),O&&r("button",{css:[ye.btn,ye.btnConfirm,"",""],onClick:h,children:"Done"})]})]})})}const K1=Jl`
22
+ from { opacity: 0; }
23
+ to { opacity: 1; }
24
+ `,J1=Jl`
25
+ from {
26
+ opacity: 0;
27
+ transform: translateY(-8px) scale(0.98);
28
+ }
29
+ to {
30
+ opacity: 1;
31
+ transform: translateY(0) scale(1);
32
+ }
33
+ `,dt={overlay:b("position:fixed;inset:0;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:",K1," 0.15s ease-out;font-family:",dc,";",""),modal:b(ji," background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);max-width:480px;width:90%;max-height:80vh;display:flex;flex-direction:column;animation:",J1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),body:{name:"zizupt",styles:"padding:12px 24px 24px;flex:1;overflow-y:auto;min-height:200px;max-height:400px"},message:b("font-size:",K.base,";color:",f.textSecondary,";margin:0 0 16px;line-height:1.6;",""),folderList:{name:"1axgfg3",styles:"display:flex;flex-direction:column;gap:0"},folderItem:b("display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all 0.15s ease;border:1px solid transparent;position:relative;&:hover{background-color:",f.surfaceHover,";}",""),treeIndent:{name:"197dxto",styles:"display:flex;align-items:center;height:100%"},treeLine:b("width:16px;height:100%;position:relative;flex-shrink:0;&::before{content:'';position:absolute;left:8px;top:0;bottom:50%;width:0;border-left:1px dashed ",f.textSecondary,";}&::after{content:'';position:absolute;left:8px;top:50%;width:8px;height:0;border-top:1px dashed ",f.textSecondary,";}",""),folderItemSelected:b("background-color:",f.primaryLight,";border-color:",f.primary,";&:hover{background-color:",f.primaryLight,";}",""),folderItemDisabled:{name:"181lhkw",styles:"opacity:0.5;cursor:not-allowed;&:hover{background-color:transparent;}"},folderIcon:{name:"17bs1oo",styles:"width:20px;height:20px;color:#f9935e;flex-shrink:0"},folderName:b("font-size:",K.base,";color:",f.text,";flex:1;",""),footer:b("display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid ",f.border,";background-color:",f.background,";",""),btn:b("padding:10px 18px;font-size:",K.base,";font-weight:500;border-radius:6px;cursor:pointer;transition:all 0.15s ease;letter-spacing:-0.01em;",""),btnCancel:b("background-color:",f.surface,";border:1px solid ",f.border,";color:",f.text,";&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),btnConfirm:b("background-color:",f.primary,";border:1px solid ",f.primary,";color:white;&:hover:not(:disabled){background-color:",f.primaryHover,";border-color:",f.primaryHover,";}&:disabled{opacity:0.5;cursor:not-allowed;}",""),loading:b("display:flex;align-items:center;justify-content:center;padding:40px;color:",f.textSecondary,";",""),spinner:b("width:24px;height:24px;border-radius:50%;border:3px solid ",f.border,";border-top-color:",f.primary,";animation:spin 0.8s linear infinite;@keyframes spin{to{transform:rotate(360deg);}}","")};function Sh({selectedItems:o,currentPath:s,onMove:h,onCancel:u}){const[y,m]=A.useState([]),[D,L]=A.useState(!0),[O,x]=A.useState(null);A.useEffect(()=>{async function q(){try{const X=await fetch("/api/studio/list-folders");if(X.ok){const de=await X.json();console.log("Loaded folders:",de),m(de.folders||[])}else console.error("Failed to load folders:",X.status,await X.text())}catch(X){console.error("Failed to load folders:",X)}finally{L(!1)}}q()},[]);const G=Array.from(o),N=y.filter(q=>!G.some(X=>q.path===X||q.path.startsWith(X+"/"))),V=q=>q===s,te=()=>{O&&h(O)};return r("div",{css:dt.overlay,onClick:u,children:C("div",{css:dt.modal,onClick:q=>q.stopPropagation(),children:[r("div",{css:dt.header,children:r("h3",{css:dt.title,children:"Move Items"})}),C("div",{css:dt.body,children:[C("p",{css:dt.message,children:["Select a destination folder for ",o.size," item",o.size!==1?"s":"",":"]}),D?r("div",{css:dt.loading,children:r("div",{css:dt.spinner})}):N.length===0?r("div",{css:dt.loading,children:"No available folders to move to."}):r("div",{css:dt.folderList,children:N.map(q=>{const X=V(q.path);return C("div",{css:[dt.folderItem,O===q.path&&dt.folderItemSelected,X&&dt.folderItemDisabled,"",""],style:{paddingLeft:12},onClick:()=>!X&&x(q.path),children:[q.depth>0&&r("div",{css:dt.treeIndent,children:Array.from({length:q.depth}).map((de,F)=>r("div",{css:dt.treeLine},F))}),r("svg",{css:dt.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:r("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}),C("span",{css:dt.folderName,children:[q.name,X&&" (current)"]})]},q.path)})})]}),C("div",{css:dt.footer,children:[r("button",{css:[dt.btn,dt.btnCancel,"",""],onClick:u,children:"Cancel"}),r("button",{css:[dt.btn,dt.btnConfirm,"",""],onClick:te,disabled:!O,children:"Move Here"})]})]})})}const F1=`CLOUDFLARE_R2_ACCOUNT_ID=your_account_id
34
+ CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key
35
+ CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_key
36
+ CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name
37
+ CLOUDFLARE_R2_PUBLIC_URL=https://pub-xxx.r2.dev
38
+ NEXT_PUBLIC_CLOUDFLARE_R2_PUBLIC_URL=https://pub-xxx.r2.dev`,le={overlay:{name:"8ivopw",styles:"position:fixed;inset:0;background:rgba(0, 0, 0, 0.6);display:flex;align-items:center;justify-content:center;z-index:1100;padding:20px"},modal:b("background:",f.surface,";border-radius:12px;max-width:560px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 40px rgba(0, 0, 0, 0.3);",""),header:b("display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid ",f.border,";",""),icon:b("width:32px;height:32px;color:",f.primary,";flex-shrink:0;",""),title:b("font-size:",K.xl,";font-weight:600;color:",f.text,";margin:0;",""),closeBtn:b("margin-left:auto;background:none;border:none;padding:4px;cursor:pointer;color:",f.textMuted,";border-radius:4px;&:hover{color:",f.text,";background:",f.surfaceHover,";}",""),closeIcon:{name:"1aynuae",styles:"width:20px;height:20px"},content:{name:"vxuddk",styles:"padding:24px"},intro:b("font-size:",K.base,";color:",f.textSecondary,";margin:0 0 20px 0;line-height:1.6;",""),steps:{name:"1fs2p21",styles:"list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px"},step:{name:"1wesxqa",styles:"display:flex;gap:12px"},stepNumber:b("width:28px;height:28px;border-radius:50%;background:",f.primaryLight,";color:",f.primary,";font-size:",K.sm,";font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;",""),stepContent:{name:"pkc2k3",styles:"flex:1;padding-top:3px"},stepTitle:b("font-size:",K.base,";font-weight:500;color:",f.text,";margin:0 0 4px 0;",""),stepDesc:b("font-size:",K.sm,";color:",f.textSecondary,";margin:0;line-height:1.5;",""),link:b("color:",f.primary,";text-decoration:none;font-weight:500;&:hover{text-decoration:underline;}",""),envVarsWrapper:{name:"1ksolcl",styles:"position:relative;margin-top:20px"},envVars:b("background:",f.background,";border:1px solid ",f.border,";border-radius:8px;padding:16px;padding-right:48px;font-family:'SF Mono',Monaco,'Cascadia Code',monospace;font-size:13px;line-height:1.8;color:",f.text,";overflow-x:auto;",""),envVar:{name:"4zleql",styles:"display:block"},envKey:b("color:",f.primary,";",""),envValue:b("color:",f.textSecondary,";",""),copyBtn:b("position:absolute;top:8px;right:8px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;color:",f.textMuted,";transition:all 0.15s ease;&:hover{background:",f.surfaceHover,";color:",f.text,";border-color:#d0d5dd;}",""),copyIcon:{name:"157xhr7",styles:"width:16px;height:16px"},copiedTooltip:{name:"9a5yd1",styles:"position:absolute;top:50%;right:100%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:6px;pointer-events:none;&::before{content:'';position:absolute;right:-4px;top:50%;transform:translateY(-50%);border-left:4px solid #1a1f36;border-top:4px solid transparent;border-bottom:4px solid transparent;}"},footer:b("padding:16px 24px;border-top:1px solid ",f.border,";display:flex;justify-content:flex-end;gap:12px;",""),docsBtn:b("padding:10px 16px;border-radius:6px;font-size:",K.base,";font-weight:500;border:1px solid ",f.border,";background:",f.surface,";color:",f.text,";cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:all 0.15s ease;&:hover{background:",f.surfaceHover,";border-color:#d0d5dd;}",""),doneBtn:b("padding:10px 20px;border-radius:6px;font-size:",K.base,";font-weight:500;border:none;background:",f.primary,";color:white;cursor:pointer;transition:background 0.15s ease;&:hover{background:",f.primaryHover,";}",""),externalIcon:{name:"1djxupe",styles:"width:14px;height:14px"}};function Ch({isOpen:o,onClose:s}){const[h,u]=A.useState(!1),y=async()=>{try{await navigator.clipboard.writeText(F1),u(!0),setTimeout(()=>u(!1),2e3)}catch(m){console.error("Failed to copy:",m)}};return o?r("div",{css:le.overlay,onClick:s,children:C("div",{css:le.modal,onClick:m=>m.stopPropagation(),children:[C("div",{css:le.header,children:[r("svg",{css:le.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),r("h2",{css:le.title,children:"Set Up CDN Storage"}),r("button",{css:le.closeBtn,onClick:s,children:r("svg",{css:le.closeIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),C("div",{css:le.content,children:[r("p",{css:le.intro,children:"Sync your images to Cloudflare R2 for faster global delivery. R2 offers generous free tier with no egress fees."}),C("ol",{css:le.steps,children:[C("li",{css:le.step,children:[r("span",{css:le.stepNumber,children:"1"}),C("div",{css:le.stepContent,children:[r("h4",{css:le.stepTitle,children:"Create a Cloudflare account"}),C("p",{css:le.stepDesc,children:["Sign up at"," ",r("a",{css:le.link,href:"https://dash.cloudflare.com/sign-up",target:"_blank",rel:"noopener noreferrer",children:"dash.cloudflare.com"})," ","if you don't have one already."]})]})]}),C("li",{css:le.step,children:[r("span",{css:le.stepNumber,children:"2"}),C("div",{css:le.stepContent,children:[r("h4",{css:le.stepTitle,children:"Create an R2 bucket"}),C("p",{css:le.stepDesc,children:["Go to R2 in your Cloudflare dashboard and create a new bucket. Choose a name like ",r("code",{children:"my-images"}),"."]})]})]}),C("li",{css:le.step,children:[r("span",{css:le.stepNumber,children:"3"}),C("div",{css:le.stepContent,children:[r("h4",{css:le.stepTitle,children:"Enable public access"}),C("p",{css:le.stepDesc,children:['In bucket settings, enable "Public Access" and copy the public URL (e.g., ',r("code",{children:"https://pub-xxx.r2.dev"}),")."]})]})]}),C("li",{css:le.step,children:[r("span",{css:le.stepNumber,children:"4"}),C("div",{css:le.stepContent,children:[r("h4",{css:le.stepTitle,children:"Create API token"}),r("p",{css:le.stepDesc,children:'Go to R2 → Manage R2 API Tokens → Create API Token. Select "Object Read & Write" permissions for your bucket.'})]})]}),C("li",{css:le.step,children:[r("span",{css:le.stepNumber,children:"5"}),C("div",{css:le.stepContent,children:[r("h4",{css:le.stepTitle,children:"Add environment variables"}),C("p",{css:le.stepDesc,children:["Add these to your ",r("code",{children:".env.local"})," file:"]})]})]})]}),C("div",{css:le.envVarsWrapper,children:[C("div",{css:le.envVars,children:[C("span",{css:le.envVar,children:[r("span",{css:le.envKey,children:"CLOUDFLARE_R2_ACCOUNT_ID"}),"=",r("span",{css:le.envValue,children:"your_account_id"})]}),C("span",{css:le.envVar,children:[r("span",{css:le.envKey,children:"CLOUDFLARE_R2_ACCESS_KEY_ID"}),"=",r("span",{css:le.envValue,children:"your_access_key"})]}),C("span",{css:le.envVar,children:[r("span",{css:le.envKey,children:"CLOUDFLARE_R2_SECRET_ACCESS_KEY"}),"=",r("span",{css:le.envValue,children:"your_secret_key"})]}),C("span",{css:le.envVar,children:[r("span",{css:le.envKey,children:"CLOUDFLARE_R2_BUCKET_NAME"}),"=",r("span",{css:le.envValue,children:"your_bucket_name"})]}),C("span",{css:le.envVar,children:[r("span",{css:le.envKey,children:"CLOUDFLARE_R2_PUBLIC_URL"}),"=",r("span",{css:le.envValue,children:"https://pub-xxx.r2.dev"})]}),C("span",{css:le.envVar,children:[r("span",{css:le.envKey,children:"NEXT_PUBLIC_CLOUDFLARE_R2_PUBLIC_URL"}),"=",r("span",{css:le.envValue,children:"https://pub-xxx.r2.dev"})]})]}),C("button",{css:le.copyBtn,onClick:y,title:"Copy to clipboard",children:[h&&r("span",{css:le.copiedTooltip,children:"Copied!"}),r("svg",{css:le.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})]})]})]}),C("div",{css:le.footer,children:[C("a",{css:le.docsBtn,href:"https://developers.cloudflare.com/r2/get-started/",target:"_blank",rel:"noopener noreferrer",children:["R2 Documentation",r("svg",{css:le.externalIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),r("button",{css:le.doneBtn,onClick:s,children:"Got it"})]})]})}):null}const $1=Jl`
39
+ from { opacity: 0; }
40
+ to { opacity: 1; }
41
+ `,W1=Jl`
42
+ from {
43
+ opacity: 0;
44
+ transform: translateY(-8px) scale(0.98);
45
+ }
46
+ to {
47
+ opacity: 1;
48
+ transform: translateY(0) scale(1);
49
+ }
50
+ `,it={overlay:b("position:fixed;inset:0;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:",$1," 0.15s ease-out;font-family:",dc,";",""),modal:b(ji," background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);max-width:520px;width:90%;animation:",W1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),tabs:b("display:flex;gap:0;margin-top:16px;border-bottom:1px solid ",f.border,";",""),tab:b("padding:12px 20px;font-size:",K.base,";font-weight:500;color:",f.textSecondary,";background:none;border:none;cursor:pointer;position:relative;transition:color 0.15s;&:hover{color:",f.text,";}",""),tabActive:b("color:",f.primary,";&::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background-color:",f.primary,";}",""),body:{name:"1po9b7e",styles:"padding:24px;min-height:200px"},dropzone:b("border:2px dashed ",f.border,";border-radius:8px;padding:40px 24px;text-align:center;cursor:pointer;transition:all 0.15s;&:hover{border-color:",f.primary,";background-color:",f.primaryLight,";}",""),dropzoneActive:b("border-color:",f.primary,";background-color:",f.primaryLight,";",""),dropzoneIcon:b("width:48px;height:48px;margin:0 auto 16px;color:",f.textMuted,";",""),dropzoneText:b("font-size:",K.base,";color:",f.text,";margin:0 0 4px;",""),dropzoneHint:b("font-size:",K.sm,";color:",f.textSecondary,";margin:0;",""),textarea:b("width:100%;min-height:150px;padding:12px;font-size:",K.sm,";font-family:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,monospace;border:1px solid ",f.border,";border-radius:8px;resize:vertical;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 3px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}",""),textareaLabel:b("font-size:",K.sm,";color:",f.textSecondary,";margin:0 0 8px;",""),footer:b("display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid ",f.border,";background-color:",f.background,";",""),btn:b("padding:10px 18px;font-size:",K.base,";font-weight:500;border-radius:6px;cursor:pointer;transition:all 0.15s ease;letter-spacing:-0.01em;",""),btnCancel:b("background-color:",f.surface,";border:1px solid ",f.border,";color:",f.text,";&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),btnConfirm:b("background-color:",f.primary,";border:1px solid ",f.primary,";color:white;&:hover:not(:disabled){background-color:",f.primaryHover,";border-color:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),fileInput:{name:"eivff4",styles:"display:none"},selectedFiles:b("margin-top:16px;padding:12px;background-color:",f.background,";border-radius:6px;font-size:",K.sm,";color:",f.text,";","")};function I1({currentPath:o,onClose:s,onUploadComplete:h}){const[u,y]=A.useState("upload"),[m,D]=A.useState([]),[L,O]=A.useState(""),[x,G]=A.useState(!1),[N,V]=A.useState(!1),[te,q]=A.useState(!1),X=A.useRef(null),de=A.useCallback(I=>{I&&D(Array.from(I))},[]),F=A.useCallback(I=>{I.preventDefault(),G(!1),de(I.dataTransfer.files)},[de]),ae=A.useCallback(async()=>{if(m.length!==0){V(!0);try{for(const I of m){const _=new FormData;_.append("file",I),_.append("path",o),await fetch("/api/studio/upload",{method:"POST",body:_})}h(),s()}catch(I){console.error("Upload failed:",I)}finally{V(!1)}}},[m,o,h,s]),W=A.useCallback(async()=>{const I=L.split(`
51
+ `).map(_=>_.trim()).filter(_=>_.length>0);if(I.length!==0){q(!0);try{const Q=(await fetch("/api/studio/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({urls:I})})).body?.getReader();if(!Q)throw new Error("No reader");const j=new TextDecoder;for(;;){const{done:me,value:Ee}=await Q.read();if(me)break;const ke=j.decode(Ee).split(`
52
+
53
+ `).filter(De=>De.startsWith("data: "));for(const De of ke)JSON.parse(De.replace("data: ","")).type==="complete"&&(h(),s())}}catch(_){console.error("Import failed:",_)}finally{q(!1)}}},[L,h,s]);return r("div",{css:it.overlay,onClick:s,children:C("div",{css:it.modal,onClick:I=>I.stopPropagation(),children:[C("div",{css:it.header,children:[r("h3",{css:it.title,children:"Add New"}),C("div",{css:it.tabs,children:[r("button",{css:[it.tab,u==="upload"&&it.tabActive,"",""],onClick:()=>y("upload"),children:"Upload Files"}),r("button",{css:[it.tab,u==="import"&&it.tabActive,"",""],onClick:()=>y("import"),children:"Import URLs"})]})]}),r("div",{css:it.body,children:u==="upload"?C(qt,{children:[C("div",{css:[it.dropzone,x&&it.dropzoneActive,"",""],onClick:()=>X.current?.click(),onDragOver:I=>{I.preventDefault(),G(!0)},onDragLeave:()=>G(!1),onDrop:F,children:[r("svg",{css:it.dropzoneIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),r("p",{css:it.dropzoneText,children:"Drop files here or click to browse"}),r("p",{css:it.dropzoneHint,children:"Supports images and other media files"})]}),r("input",{ref:X,type:"file",multiple:!0,css:it.fileInput,onChange:I=>de(I.target.files)}),m.length>0&&C("div",{css:it.selectedFiles,children:[m.length," file",m.length!==1?"s":""," selected"]})]}):C(qt,{children:[r("p",{css:it.textareaLabel,children:"Paste image URLs (one per line)"}),r("textarea",{css:it.textarea,value:L,onChange:I=>O(I.target.value),placeholder:`https://cdn.example.com/photos/image1.jpg
54
+ https://cdn.example.com/photos/image2.jpg`})]})}),C("div",{css:it.footer,children:[r("button",{css:[it.btn,it.btnCancel,"",""],onClick:s,children:"Cancel"}),u==="upload"?r("button",{css:[it.btn,it.btnConfirm,"",""],onClick:ae,disabled:m.length===0||N,children:N?"Uploading...":"Upload"}):r("button",{css:[it.btn,it.btnConfirm,"",""],onClick:W,disabled:!L.trim()||te,children:te?"Importing...":"Import"})]})]})})}const Ls="36px",P1=Jl`
55
+ to { transform: rotate(360deg); }
56
+ `,Be={toolbar:b("display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background-color:",f.surface,";border-bottom:1px solid ",f.border,";overflow-x:auto;min-width:0;@media (min-width: 768px){padding:12px 24px;}",""),left:{name:"17nohj2",styles:"display:flex;flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px"},right:{name:"17nohj2",styles:"display:flex;flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px"},btn:b("display:inline-flex;align-items:center;justify-content:center;gap:6px;height:",Ls,";padding:0 14px;border-radius:6px;font-size:",K.base,";font-weight:500;background:",f.surface,";border:1px solid ",f.border,";cursor:pointer;transition:all 0.15s ease;color:",f.text,";letter-spacing:-0.01em;&:hover:not(:disabled){background-color:",f.surfaceHover,";border-color:",f.borderHover,";}&:disabled{cursor:not-allowed;opacity:0.5;}",""),btnPrimary:b("background:",f.primary,";border-color:",f.primary,";color:white;&:hover:not(:disabled){background:",f.primaryHover,";border-color:",f.primaryHover,";}",""),btnDanger:b("color:",f.danger,";&:hover:not(:disabled){background-color:",f.dangerLight,";border-color:",f.danger,";}",""),icon:{name:"157xhr7",styles:"width:16px;height:16px"},iconSpin:b("animation:",P1," 1s linear infinite;",""),selectionCount:b("font-size:",K.base,";color:",f.textSecondary,";display:flex;align-items:center;gap:8px;margin-right:8px;",""),clearBtn:b("color:",f.primary,";background:none;border:none;cursor:pointer;font-size:",K.base,";font-weight:500;padding:0;&:hover{text-decoration:underline;}",""),divider:b("width:1px;height:24px;background:",f.border,";margin:0 4px;",""),viewToggle:b("display:flex;align-items:center;height:",Ls,";background-color:",f.surface,";border:1px solid ",f.border,";border-radius:6px;overflow:hidden;",""),searchWrapper:{name:"9iujih",styles:"position:relative;display:flex;align-items:center"},searchInput:b("height:",Ls,";padding:0 32px 0 12px;border:1px solid ",f.border,";border-radius:6px;font-size:",K.base,";background:",f.surface,";color:",f.text,";width:180px;transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 2px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}",""),searchClearBtn:b("position:absolute;right:5px;top:5px;bottom:5px;background:",f.primary,";border:none;padding:0 6px;cursor:pointer;color:white;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all 0.15s ease;&:hover{background:",f.primaryHover,";}",""),viewBtn:b("height:100%;padding:0 10px;background:transparent;border:none;cursor:pointer;color:",f.textSecondary,";transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{color:",f.text,";background-color:",f.surfaceHover,";}",""),viewBtnActive:b("background-color:",f.primaryLight,";color:",f.primary,";&:hover{background-color:",f.primaryLight,";color:",f.primary,";}","")};function eg(){const{selectedItems:o,viewMode:s,setViewMode:h,clearSelection:u,currentPath:y,triggerRefresh:m,focusedItem:D,scanRequested:L,clearScanRequest:O,fileItems:x,requestProcess:G,actionState:N}=Na(),V=A.useRef(null),te=A.useRef(null),[q,X]=A.useState(!1),[de,F]=A.useState(!1),[ae,W]=A.useState(!1),[I,_]=A.useState(!1),[Q,j]=A.useState(!1),[me,Ee]=A.useState(0),[ze,ke]=A.useState(!1),[De,Ze]=A.useState(!1),[Fe,be]=A.useState(!1),[w,Y]=A.useState(0),[Z,oe]=A.useState(!1),[Se,g]=A.useState("Processing Images"),[k,B]=A.useState({current:0,total:0,percent:0,status:"processing"}),[$,ee]=A.useState(null),[re,_e]=A.useState(!1),[St,Ie]=A.useState(!1),[El,he]=A.useState(!1),[_l,Cn]=A.useState(!1),[Ce,Ct]=A.useState(!1),mt=y==="public/images"||y.startsWith("public/images/");A.useCallback(()=>{V.current?.click()},[]);const Ft=A.useCallback(async()=>{W(!0),g("Scanning Files"),oe(!0),B({current:0,total:0,percent:0,status:"processing",message:"Scanning for files..."});try{const ce=(await fetch("/api/studio/scan",{method:"POST"})).body?.getReader();if(!ce)throw new Error("No reader");const ie=new TextDecoder;let Me="";for(;;){const{done:Ke,value:Oe}=await ce.read();if(Ke)break;Me+=ie.decode(Oe,{stream:!0});const qe=Me.split(`
57
+
58
+ `);Me=qe.pop()||"";for(const Re of qe){if(!Re.startsWith("data: "))continue;const ge=JSON.parse(Re.slice(6));if(ge.type==="start")B({current:0,total:ge.total,percent:0,status:"processing",message:`Scanning ${ge.total} files...`});else if(ge.type==="progress")B({current:ge.current,total:ge.total,percent:ge.percent,status:"processing",currentFile:ge.currentFile});else if(ge.type==="cleanup")B(rt=>({...rt,message:ge.message}));else if(ge.type==="complete"){let rt=ge.renamed>0?`${ge.renamed} file(s) renamed due to conflicts. `:"";ge.orphanedFiles&&ge.orphanedFiles.length>0&&(rt+=`Found ${ge.orphanedFiles.length} orphaned thumbnail(s) in images folder.`),B({current:ge.total||0,total:ge.total||0,percent:100,status:"complete",processed:ge.added,alreadyProcessed:ge.existingCount,errors:ge.errors,orphanedFiles:ge.orphanedFiles,message:rt||void 0,isScan:!0}),m()}else ge.type==="error"&&B({current:0,total:0,percent:0,status:"error",message:ge.message||"Scan failed"})}}}catch(ve){console.error("Scan error:",ve),B({current:0,total:0,percent:0,status:"error",message:"Scan failed"})}finally{W(!1)}},[m]);A.useEffect(()=>{L&&!ae&&(O(),Ft())},[L,ae,O,Ft]);const xl=A.useCallback(async ve=>{const ce=ve.target.files;if(!ce||ce.length===0)return;const ie=Array.from(ce);ie.length>1?(B({current:0,total:ie.length,percent:0,status:"processing",message:"Uploading files..."}),oe(!0)):F(!0);let Me=0,Ke=0;try{for(let Oe=0;Oe<ie.length;Oe++){const qe=ie[Oe];ie.length>1&&B({current:Oe+1,total:ie.length,percent:Math.round((Oe+1)/ie.length*100),status:"processing",currentFile:qe.name});const Re=new FormData;Re.append("file",qe),Re.append("path",y);try{const ge=await fetch("/api/studio/upload",{method:"POST",body:Re});if(ge.ok)Me++;else{const rt=await ge.json();Ke++,ie.length===1&&(ge.status>=500?(console.error("Upload error:",rt),ee({title:"Upload Failed",message:`Failed to upload ${qe.name}: ${rt.error||"Unknown error"}`})):ee({title:"Cannot Upload Here",message:rt.error||"Upload not allowed in this location."}))}}catch{Ke++}}ie.length>1&&B({current:ie.length,total:ie.length,percent:100,status:"complete",processed:Me,errors:Ke}),m()}catch(Oe){console.error("Upload error:",Oe),ie.length>1?B({current:0,total:0,percent:0,status:"error",message:"Upload failed."}):ee({title:"Upload Failed",message:"Upload failed. Check console for details."})}finally{F(!1),V.current&&(V.current.value="")}},[y,m]),zn=A.useCallback(async()=>{if(o.size>0){const ce=Array.from(o),ie=ce.filter(Ke=>(Ke.split("/").pop()||"").includes(".")&&!Ke.endsWith("/")),Me=ce.filter(Ke=>!(Ke.split("/").pop()||"").includes(".")||Ke.endsWith("/"));if(Me.length>0)try{const Oe=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(Me.join(","))}`)).json();if(Oe.images)for(const qe of Oe.images){const Re=`public/${qe}`;ie.includes(Re)||ie.push(Re)}}catch(Ke){console.error("Failed to get folder files:",Ke)}if(ie.length===0){ee({title:"No Files Found",message:"No files found in the selected items."});return}G(ie)}else try{const ie=await(await fetch("/api/studio/count-images")).json();if(!ie.images||ie.images.length===0){ee({title:"No Images Found",message:"No images found in the public folder to process."});return}const Me=ie.images.map(Ke=>`public/${Ke}`);G(Me)}catch(ce){console.error("Failed to get images:",ce),ee({title:"Error",message:"Failed to get images."})}},[o,G]),Mn=A.useCallback(()=>{te.current&&te.current.abort()},[]),pl=A.useCallback(async()=>{const ve=k.orphanedFiles;if(!(!ve||ve.length===0))try{const ce=await fetch("/api/studio/delete-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:ve})}),ie=await ce.json();ce.ok?(B(Me=>({...Me,orphanedFiles:void 0,orphansRemoved:ie.deleted,message:`Deleted ${ie.deleted} orphaned thumbnail${ie.deleted!==1?"s":""}.`})),m()):ee({title:"Delete Failed",message:ie.error||"Failed to delete orphaned files."})}catch(ce){console.error("Delete orphans error:",ce),ee({title:"Delete Failed",message:"Failed to delete orphaned files. Check console for details."})}},[k.orphanedFiles,m]),Jn=A.useCallback(()=>{o.size!==0&&_(!0)},[o]),Tn=A.useCallback(async()=>{_(!1);try{const ve=await fetch("/api/studio/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Array.from(o)})});if(ve.ok)u(),m();else{const ce=await ve.json();ee({title:"Delete Failed",message:ce.error||"Unknown error"})}}catch(ve){console.error("Delete error:",ve),ee({title:"Delete Failed",message:"Delete failed. Check console for details."})}},[o,u,m]),Nt=A.useCallback(async()=>{if(o.size===0)return;const ve=Array.from(o),ce=ve.filter(Oe=>(Oe.split("/").pop()||"").includes(".")&&!Oe.endsWith("/")),ie=ve.filter(Oe=>!(Oe.split("/").pop()||"").includes(".")||Oe.endsWith("/"));if(ie.length>0)try{const qe=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ie.join(","))}`)).json();if(qe.images)for(const Re of qe.images){const ge=`public/${Re}`;ce.includes(ge)||ce.push(ge)}}catch(Oe){console.error("Failed to get folder files:",Oe)}if(ce.length===0){ee({title:"No Files Found",message:"No files found in the selected items."});return}let Me=!1,Ke=!1;for(const Oe of ce){const qe=x.find(Re=>Re.path===Oe);qe&&(qe.isRemote?Me=!0:qe.cdnPushed||(Ke=!0))}Ee(ce.length),ke(Me),Ze(Ke),j(!0)},[o,x]),hc=A.useCallback(async()=>{j(!1);const ve=Array.from(o),ce=ve.filter(Re=>(Re.split("/").pop()||"").includes(".")&&!Re.endsWith("/")),ie=ve.filter(Re=>!(Re.split("/").pop()||"").includes(".")||Re.endsWith("/"));if(ie.length>0)try{const ge=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ie.join(","))}`)).json();if(ge.images)for(const rt of ge.images){const Pe=`public/${rt}`;ce.includes(Pe)||ce.push(Pe)}}catch(Re){console.error("Failed to get folder files:",Re)}const Me=ce.map(Re=>"/"+Re.replace(/^public\//,""));g("Pushing to CDN"),B({current:0,total:Me.length,percent:0,status:"processing",message:"Pushing to CDN..."}),oe(!0);let Ke=0,Oe=0;const qe=[];try{for(let Re=0;Re<Me.length;Re++){const ge=Me[Re];B({current:Re+1,total:Me.length,percent:Math.round((Re+1)/Me.length*100),status:"processing",currentFile:ge.replace(/^\//,"")});let rt=!1,Pe;for(let nt=0;nt<3&&!rt;nt++)try{const _n=await fetch("/api/studio/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:[ge]})}),gl=await _n.json();if(_n.ok)if(gl.pushed?.length>0)Ke++,rt=!0;else if(gl.errors?.length>0)for(const Xi of gl.errors)Pe=Xi;else rt=!0;else{if(gl.error?.includes("R2 not configured")||gl.error?.includes("CLOUDFLARE_R2")){oe(!1),Cn(!0);return}Pe=gl.error||`Failed: ${ge}`}}catch{Pe=`Network error: ${ge}`,nt<2&&await new Promise(gl=>setTimeout(gl,500*(nt+1)))}!rt&&Pe&&(Oe++,qe.push(Pe))}B({current:Me.length,total:Me.length,percent:100,status:"complete",processed:Ke,errors:Oe,errorMessages:qe.length>0?qe:void 0}),u(),m()}catch(Re){console.error("Push error:",Re),B({current:0,total:0,percent:0,status:"error",message:"Failed to push to CDN."})}},[o,u,m]),qi=A.useCallback(async()=>{if(o.size===0)return;const ce=Array.from(o).filter(ie=>(ie.split("/").pop()||"").includes(".")&&!ie.endsWith("/"));if(ce.length===0){ee({title:"No Files Found",message:"No files found in the selected items."});return}Y(ce.length),be(!0)},[o]),Yi=A.useCallback(async()=>{be(!1);const ie=Array.from(o).filter(Me=>(Me.split("/").pop()||"").includes(".")&&!Me.endsWith("/")).map(Me=>"/"+Me.replace(/^public\//,""));g("Downloading from CDN"),oe(!0),B({current:0,total:ie.length,percent:0,status:"processing"});try{const Me=await fetch("/api/studio/download-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:ie})});if(!Me.ok||!Me.body)throw new Error("Download request failed");const Ke=Me.body.getReader(),Oe=new TextDecoder;let qe="";for(;;){const{done:Re,value:ge}=await Ke.read();if(Re)break;qe+=Oe.decode(ge,{stream:!0});const rt=qe.split(`
59
+ `);qe=rt.pop()||"";for(const Pe of rt)if(Pe.startsWith("data: "))try{const nt=JSON.parse(Pe.slice(6));nt.type==="progress"?B({current:nt.current,total:nt.total,percent:Math.round(nt.current/nt.total*100),status:"processing",message:nt.message}):nt.type==="complete"?B({current:nt.total||ie.length,total:nt.total||ie.length,percent:100,status:"complete",message:nt.message}):nt.type==="error"&&B({current:0,total:0,percent:0,status:"error",message:nt.message})}catch{}}u(),m()}catch(Me){console.error("Download error:",Me),B({current:0,total:0,percent:0,status:"error",message:"Failed to download from CDN."})}},[o,u,m]),Fn=A.useCallback(async ve=>{_e(!1);try{const ce=await fetch("/api/studio/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parentPath:y,name:ve})});if(ce.ok)m();else{const ie=await ce.json();ee({title:"Create Folder Failed",message:ie.error||"Unknown error"})}}catch(ce){console.error("Create folder error:",ce),ee({title:"Create Folder Failed",message:"Failed to create folder. Check console for details."})}},[y,m]),pc=A.useCallback(()=>{o.size!==0&&he(!0)},[o]),Gi=A.useCallback(async ve=>{const ce=Array.from(o);g("Moving Files"),oe(!0),B({current:0,total:ce.length,percent:0,status:"processing"});try{const ie=await fetch("/api/studio/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:ce,destination:ve})});if(!ie.body)throw new Error("No response body");const Me=ie.body.getReader(),Ke=new TextDecoder;let Oe="";for(;;){const{done:qe,value:Re}=await Me.read();if(qe)break;Oe+=Ke.decode(Re,{stream:!0});const ge=Oe.split(`
60
+
61
+ `);Oe=ge.pop()||"";for(const rt of ge)if(rt.startsWith("data: "))try{const Pe=JSON.parse(rt.slice(6));Pe.type==="start"?B(nt=>({...nt,total:Pe.total})):Pe.type==="progress"?B({current:Pe.current,total:Pe.total,percent:Pe.percent,currentFile:Pe.currentFile,status:"processing"}):Pe.type==="complete"?(B(nt=>({...nt,status:"complete",processed:Pe.moved,errors:Pe.errors,errorMessages:Pe.errorMessages,isMove:!0})),u(),m()):Pe.type==="error"&&B(nt=>({...nt,status:"error",errorMessage:Pe.message}))}catch{}}}catch(ie){console.error("Move error:",ie),B(Me=>({...Me,status:"error",errorMessage:"Failed to move items. Check console for details."}))}},[o,u,m]),{searchQuery:Vi,setSearchQuery:An}=Na(),wn=A.useCallback(ve=>{An(ve.target.value)},[An]),Bt=A.useCallback(ve=>{ve.key==="Escape"&&(ve.stopPropagation(),An(""),ve.target.blur())},[An]),kt=o.size>0,Lt=kt&&Array.from(o).some(ve=>{const ce=x.find(ie=>ie.path===ve);return ce&&ce.cdnPushed&&!ce.isRemote}),mc=kt&&Array.from(o).every(ve=>{const ce=x.find(ie=>ie.path===ve);return ce&&ce.type==="file"&&ce.cdnPushed&&!ce.isRemote}),ja=Array.from(o),Fl=ja.length===1&&!ja[0].includes("."),ml=Fl?ja[0]:null,En=ml&&ml.split("/").pop()||"",$n=A.useCallback(async ve=>{if(ml){Ie(!1);try{(await fetch("/api/studio/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:ml,newName:ve})})).ok&&(u(),m())}catch(ce){console.error("Failed to rename folder:",ce)}}},[ml,u,m]);return D?null:C(qt,{children:[I&&r(Ri,{title:"Delete Items",message:`Are you sure you want to delete ${o.size} item(s)? This action cannot be undone.`,confirmLabel:"Delete",variant:"danger",onConfirm:Tn,onCancel:()=>_(!1)}),Q&&r(Ri,{title:"Push to CDN",message:`Push ${me} image${me!==1?"s":""} to Cloudflare R2?${ze?" Remote images will be downloaded first.":""}${De?" After pushing, local files will be deleted.":""}`,confirmLabel:"Push",onConfirm:hc,onCancel:()=>j(!1)}),Fe&&r(Ri,{title:"Download from CDN",message:`Download ${w} image${w!==1?"s":""} from Cloudflare R2 to local storage? Images will be removed from the CDN.`,confirmLabel:"Download",onConfirm:Yi,onCancel:()=>be(!1)}),Z&&r(Zs,{title:Se,progress:k,onStop:Mn,onDeleteOrphans:pl,onClose:()=>{oe(!1),B({current:0,total:0,percent:0,status:"processing"})}}),re&&r(js,{title:"New Folder",message:"Enter a name for the new folder:",placeholder:"Folder name",confirmLabel:"Create",onConfirm:Fn,onCancel:()=>_e(!1)}),El&&r(Sh,{selectedItems:o,currentPath:y,onMove:ve=>{he(!1),Gi(ve)},onCancel:()=>he(!1)}),St&&ml&&r(js,{title:"Rename Folder",message:"Enter a new name for the folder:",placeholder:En,defaultValue:En,confirmLabel:"Rename",onConfirm:$n,onCancel:()=>Ie(!1)}),$&&r(xh,{title:$.title,message:$.message,onClose:()=>ee(null)}),r(Ch,{isOpen:_l,onClose:()=>Cn(!1)}),q&&r(I1,{currentPath:y,onClose:()=>X(!1),onUploadComplete:()=>{X(!1),m()}}),C("div",{css:Be.toolbar,children:[r("input",{ref:V,type:"file",multiple:!0,accept:"image/*,video/*,audio/*,.pdf",onChange:xl,style:{display:"none"}}),C("div",{css:Be.left,children:[C("button",{css:[Be.btn,Be.btnPrimary,"",""],onClick:()=>X(!0),disabled:de||mt,children:[r(tg,{}),"Add New"]}),C("button",{css:Be.btn,onClick:()=>Fl?Ie(!0):_e(!0),disabled:mt&&!Fl,title:mt&&!Fl?"Cannot create folders in protected images folder":void 0,children:[Fl?r(ig,{}):r(ag,{}),Fl?"Rename Folder":"New Folder"]}),r("div",{css:Be.divider}),C("button",{css:Be.btn,onClick:zn,disabled:N.showProgress||mt,title:mt?"Cannot process images folder":void 0,children:[r(fg,{}),"Process Images"]}),C("button",{css:[Be.btn,Be.btnDanger,"",""],onClick:Jn,disabled:!kt,children:[r(ng,{}),"Delete"]}),C("button",{css:Be.btn,onClick:pc,disabled:!kt,children:[r(og,{}),"Move"]}),mc?C("button",{css:Be.btn,onClick:qi,disabled:!kt,children:[r(rg,{}),"Download"]}):C("button",{css:Be.btn,onClick:Nt,disabled:!kt||Lt,title:Lt?"Selected files are already in R2":void 0,children:[r(cg,{}),"Push CDN"]}),C("div",{css:Be.searchWrapper,children:[r("input",{css:Be.searchInput,type:"text",placeholder:"Search images...",value:Vi,onChange:wn,onKeyDown:Bt}),Vi&&r("button",{css:Be.searchClearBtn,onClick:()=>An(""),title:"Clear search",children:r("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),C("div",{css:Be.right,children:[kt&&C("span",{css:Be.selectionCount,children:[o.size," selected",r("button",{css:Be.clearBtn,onClick:u,children:"Clear"})]}),C("button",{css:Be.btn,onClick:Ft,disabled:ae,children:[r(lg,{spinning:ae}),"Scan"]}),C("div",{css:Be.viewToggle,children:[r("button",{css:[Be.viewBtn,s==="grid"&&Be.viewBtnActive,"",""],onClick:()=>h("grid"),"aria-label":"Grid view",children:r(sg,{})}),r("button",{css:[Be.viewBtn,s==="list"&&Be.viewBtnActive,"",""],onClick:()=>h("list"),"aria-label":"List view",children:r(ug,{})})]})]})]})]})}function tg(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})})}function lg({spinning:o}){return r("svg",{css:[Be.icon,o&&Be.iconSpin,"",""],fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}function ng(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})}function ag(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})})}function ig(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}function og(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}function cg(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})})}function rg(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"})})}function sg(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})})}function ug(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 10h16M4 14h16M4 18h16"})})}function fg(){return r("svg",{css:Be.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}class dg{async get(s){const h=await fetch(s,{cache:"no-store",headers:{"Cache-Control":"no-cache"}});if(!h.ok){const u=await h.json().catch(()=>({}));throw new Error(u.error||`Request failed: ${h.status}`)}return h.json()}async post(s,h){const u=await fetch(s,{method:"POST",headers:h?{"Content-Type":"application/json"}:void 0,body:h?JSON.stringify(h):void 0});if(!u.ok){const y=await u.json().catch(()=>({}));throw new Error(y.error||`Request failed: ${u.status}`)}return u.json()}async list(s="public"){return this.get(`/api/studio/list?path=${encodeURIComponent(s)}`)}async search(s){return this.get(`/api/studio/search?q=${encodeURIComponent(s)}`)}async listFolders(){return this.get("/api/studio/list-folders")}async countImages(){return this.get("/api/studio/count-images")}async folderImages(s){return this.get(`/api/studio/folder-images?folders=${encodeURIComponent(s.join(","))}`)}async upload(s,h="public"){const u=new FormData;u.append("file",s),u.append("path",h);const y=await fetch("/api/studio/upload",{method:"POST",body:u});if(!y.ok){const m=await y.json().catch(()=>({}));throw new Error(m.error||`Upload failed: ${y.status}`)}return y.json()}async delete(s){return this.post("/api/studio/delete",{paths:s})}async createFolder(s,h){return this.post("/api/studio/create-folder",{parentPath:s,name:h})}async rename(s,h){return this.post("/api/studio/rename",{oldPath:s,newName:h})}async move(s,h){return this.post("/api/studio/move",{paths:s,destination:h})}async push(s){return this.post("/api/studio/sync",{imageKeys:s})}async reprocess(s){return this.post("/api/studio/reprocess",{imageKeys:s})}processAllStream(){return new EventSource("/api/studio/process-all")}}const Us=new dg;function zh(){const{currentPath:o,setCurrentPath:s,navigateUp:h,selectedItems:u,toggleSelection:y,selectRange:m,lastSelectedPath:D,selectAll:L,clearSelection:O,refreshKey:x,setFocusedItem:G,triggerRefresh:N,triggerScan:V,searchQuery:te,showError:q,setFileItems:X}=Na(),[de,F]=A.useState([]),[ae,W]=A.useState(!0),[I,_]=A.useState(!1),Q=A.useRef(!0),j=A.useRef(o);A.useEffect(()=>{async function Y(){const Z=j.current!==o;(Q.current||Z)&&W(!0),j.current=o;try{const oe=te&&te.length>=2?await Us.search(te):await Us.list(o),Se=oe.items||[];F(Se),X(Se),_(oe.isEmpty===!0)}catch(oe){const Se=oe instanceof Error?oe.message:"Failed to load items";q("Load Error",Se),F([]),X([]),_(!1)}W(!1),Q.current=!1}Y()},[o,x,te,q,X]);const me=o==="public",Ee=te&&te.length>=2,ze=[...de].sort((Y,Z)=>Y.type==="folder"&&Z.type!=="folder"?-1:Y.type!=="folder"&&Z.type==="folder"?1:Y.name.localeCompare(Z.name)),ke=ze.length>0&&ze.every(Y=>u.has(Y.path)),De=ze.some(Y=>u.has(Y.path)),Ze=A.useCallback((Y,Z)=>{Z.shiftKey&&D?m(D,Y.path,ze):y(Y.path)},[D,m,ze,y]),Fe=A.useCallback(Y=>{Y.type==="folder"?s(Y.path):G(Y)},[s,G]),be=A.useCallback(async Y=>{try{const Z="/"+Y.path.replace(/^public\//,"");await Us.reprocess([Z]),N()}catch(Z){const oe=Z instanceof Error?Z.message:"Failed to generate thumbnail";q("Processing Error",oe)}},[N,q]),w=A.useCallback(()=>{ke?O():L(ze)},[ke,O,L,ze]);return{items:de,loading:ae,sortedItems:ze,metaEmpty:I,isAtRoot:me,isSearching:Ee,allItemsSelected:ke,someItemsSelected:De,currentPath:o,selectedItems:u,navigateUp:h,handleItemClick:Ze,handleOpen:Fe,handleGenerateThumbnail:be,handleSelectAll:w,triggerScan:V}}const hg=Jl`
62
+ to { transform: rotate(360deg); }
63
+ `,ue={loading:{name:"1d2ui9i",styles:"display:flex;align-items:center;justify-content:center;flex:1;min-height:300px"},spinner:b("width:32px;height:32px;border-radius:50%;border:3px solid ",f.border,";border-top-color:",f.primary,";animation:",hg," 0.8s linear infinite;",""),empty:b("display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:300px;color:",f.textSecondary,";",""),emptyIcon:{name:"1o3cbsn",styles:"width:48px;height:48px;margin-bottom:16px;opacity:0.5"},emptyText:b("font-size:",K.base,";margin:0 0 4px 0;&:last-child{color:",f.textMuted,";font-size:",K.sm,";}",""),scanButton:b("margin-top:16px;padding:10px 24px;font-size:",K.base,";font-weight:500;background:",f.primary,";color:white;border:none;border-radius:8px;cursor:pointer;transition:background 0.15s ease;&:hover:not(:disabled){background:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),grid:{name:"el23hk",styles:"display:grid;grid-template-columns:1fr;gap:12px;@media (min-width: 480px){grid-template-columns:repeat(2, 1fr);}@media (min-width: 768px){grid-template-columns:repeat(3, 1fr);}@media (min-width: 1024px){grid-template-columns:repeat(4, 1fr);}@media (min-width: 1280px){grid-template-columns:repeat(5, 1fr);}"},item:b("position:relative;border-radius:8px;border:1px solid ",f.border,";overflow:hidden;cursor:pointer;transition:all 0.15s ease;background-color:",f.surface,";user-select:none;box-shadow:0 1px 2px rgba(0, 0, 0, 0.04);&:hover{border-color:#d0d5dd;box-shadow:0 2px 4px rgba(0, 0, 0, 0.06);}",""),itemSelected:b("border-color:",f.primary,";box-shadow:0 0 0 1px ",f.primary,";&:hover{border-color:",f.primary,";box-shadow:0 0 0 1px ",f.primary,";}",""),parentItem:b("cursor:pointer;&:hover{border-color:",f.primary,";}",""),checkboxWrapper:{name:"v3lnpt",styles:"position:absolute;top:0;left:0;z-index:10;padding:8px;cursor:pointer"},checkbox:b("width:18px;height:18px;accent-color:",f.primary,";cursor:pointer;",""),content:b("position:relative;aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:16px;background:",f.background,";",""),folderIcon:{name:"k1w47f",styles:"width:56px;height:56px;color:#f9935e"},imagesFolderIcon:b("width:56px;height:56px;color:",f.imagesFolder,";",""),imagesFolderWrapper:{name:"bjn8wh",styles:"position:relative"},lockIcon:b("position:absolute;bottom:4px;right:4px;width:16px;height:16px;color:",f.imagesFolder,";background:white;border-radius:50%;padding:2px;",""),parentIcon:b("width:56px;height:56px;color:",f.textMuted,";",""),fileIcon:b("width:40px;height:40px;color:",f.textMuted,";",""),image:{name:"rm1wug",styles:"max-width:100%;max-height:100%;object-fit:contain;border-radius:4px"},label:b("padding:10px 12px;background-color:",f.surface,";border-top:1px solid ",f.borderLight,";",""),labelRow:{name:"1gkgtms",styles:"display:flex;flex-direction:column;gap:2px"},labelText:{name:"fxp7t8",styles:"flex:1;min-width:0"},copyBtn:b("position:absolute;top:4px;right:4px;z-index:10;height:28px;width:28px;color:",f.textMuted,";background:transparent;border:none;padding:0;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{color:",f.text,";}",""),copyIcon:{name:"1eg0rk6",styles:"width:18px;height:18px"},folderStats:{name:"905wvx",styles:"display:flex;align-items:center;gap:8px;margin:2px 0 0 0"},folderStat:b("display:flex;align-items:center;gap:3px;font-size:",K.xs,";",""),folderStatLocal:b("color:",f.textMuted,";",""),folderStatCloud:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatRemote:{name:"1lukubv",styles:"color:#ef4444"},folderStatIconCloud:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},folderStatIconLocal:b("width:14px;height:14px;color:",f.textSecondary,";",""),folderStatIconRemote:{name:"efr29r",styles:"width:14px;height:14px;color:#ef4444"},storedLabel:{name:"1jcbxef",styles:"display:flex;align-items:center;margin:2px 0 0 0"},storedIconCloud:{name:"1e09qmx",styles:"width:16px;height:16px;color:#f59e0b"},storedIconRemote:{name:"1mrh6ju",styles:"width:16px;height:16px;color:#ef4444"},tooltip:{name:"qoyfdh",styles:"position:absolute;top:50%;right:100%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:6px;pointer-events:none;z-index:100;&::before{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#1a1f36;}"},openBtn:b("position:absolute;bottom:8px;right:8px;z-index:10;height:28px;font-size:",K.sm,";font-weight:500;color:",f.primary,";background:",f.surface,";border:1px solid ",f.border,";padding:0 8px;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:flex;align-items:center;box-shadow:0 1px 2px rgba(0, 0, 0, 0.08);&:hover{background-color:",f.primaryLight,";border-color:",f.primary,";}",""),name:b("font-size:",K.sm,";font-weight:500;color:",f.text,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;letter-spacing:-0.01em;direction:rtl;text-align:left;",""),size:b("font-size:",K.xs,";color:",f.textMuted,";margin:2px 0 0 0;",""),selectAllRow:b("display:flex;align-items:center;margin-bottom:16px;padding:12px 16px;background:",f.surface,";border-radius:8px;border:1px solid ",f.border,";",""),selectAllLabel:b("display:flex;align-items:center;gap:10px;font-size:",K.base,";font-weight:500;color:",f.textSecondary,";cursor:pointer;&:hover{color:",f.text,";}",""),selectAllCheckbox:b("width:16px;height:16px;accent-color:",f.primary,";","")};function pg(){const{loading:o,sortedItems:s,metaEmpty:h,isAtRoot:u,isSearching:y,allItemsSelected:m,someItemsSelected:D,selectedItems:L,navigateUp:O,handleItemClick:x,handleOpen:G,handleGenerateThumbnail:N,handleSelectAll:V,triggerScan:te}=zh();return o?r("div",{css:ue.loading,children:r("div",{css:ue.spinner})}):h&&u?C("div",{css:ue.empty,children:[r("svg",{css:ue.emptyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),r("p",{css:ue.emptyText,children:"No files tracked yet"}),r("p",{css:ue.emptyText,children:"Click Scan to discover files in your public folder"}),r("button",{css:ue.scanButton,onClick:te,children:"Scan for Files"})]}):s.length===0&&u?C("div",{css:ue.empty,children:[r("svg",{css:ue.emptyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),r("p",{css:ue.emptyText,children:"No files in this folder"}),r("p",{css:ue.emptyText,children:"Upload images or click Scan in the toolbar"})]}):C("div",{children:[s.length>0&&r("div",{css:ue.selectAllRow,children:C("label",{css:ue.selectAllLabel,children:[r("input",{type:"checkbox",css:ue.selectAllCheckbox,checked:m,ref:q=>{q&&(q.indeterminate=D&&!m)},onChange:V}),"Select all (",s.length,")"]})}),C("div",{css:ue.grid,children:[!u&&!y&&C("div",{css:[ue.item,ue.parentItem,"",""],onClick:O,children:[r("div",{css:ue.content,children:r("svg",{css:ue.parentIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})})}),C("div",{css:ue.label,children:[r("p",{css:ue.name,children:".."}),r("p",{css:ue.size,children:"Parent folder"})]})]}),s.map(q=>r(mg,{item:q,isSelected:L.has(q.path),onClick:X=>x(q,X),onOpen:()=>G(q),onGenerateThumbnail:()=>N(q)},q.path))]})]})}function mg({item:o,isSelected:s,onClick:h,onOpen:u,onGenerateThumbnail:y}){const[m,D]=A.useState(!1),L=o.type==="folder",O=!L&&o.thumbnail!==void 0,x=o.isProtected||L&&o.name==="images"&&o.path==="public/images",G=V=>{V.stopPropagation();const te="/"+o.path.replace(/^public\//,"");navigator.clipboard.writeText(te),D(!0),setTimeout(()=>D(!1),1500)},N=V=>{if(x){V.stopPropagation(),u();return}h(V)};return C("div",{css:[ue.item,s&&!x&&ue.itemSelected,"",""],onClick:N,children:[!x&&r("div",{css:ue.checkboxWrapper,onClick:V=>V.stopPropagation(),children:r("input",{type:"checkbox",css:ue.checkbox,checked:s,onChange:()=>h({})})}),C("div",{css:ue.content,children:[C("button",{css:ue.copyBtn,onClick:G,title:"Copy file path",children:[m&&r("span",{css:ue.tooltip,children:"Copied!"}),r("svg",{css:ue.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),r("button",{css:ue.openBtn,onClick:V=>{V.stopPropagation(),u()},children:"Open"}),L?x?C("div",{css:ue.imagesFolderWrapper,children:[r("svg",{css:ue.imagesFolderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:r("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}),r("svg",{css:ue.lockIcon,fill:"currentColor",viewBox:"0 0 20 20",children:r("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})]}):r("svg",{css:ue.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:r("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}):O&&o.thumbnail?r("img",{css:ue.image,src:o.thumbnail,alt:o.name,loading:"lazy"}):r("svg",{css:ue.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})})]}),r("div",{css:ue.label,children:r("div",{css:ue.labelRow,children:C("div",{css:ue.labelText,children:[r("p",{css:ue.name,title:o.name,children:o.name}),L?C("div",{css:ue.folderStats,children:[o.localCount!==void 0&&o.localCount>0&&C("span",{css:[ue.folderStat,ue.folderStatLocal,"",""],title:`${o.localCount} local`,children:[r("svg",{css:ue.folderStatIconLocal,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),o.localCount]}),o.cloudCount!==void 0&&o.cloudCount>0&&C("span",{css:[ue.folderStat,ue.folderStatCloud,"",""],title:`${o.cloudCount} in cloud`,children:[r("svg",{css:ue.folderStatIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),o.cloudCount]}),o.remoteCount!==void 0&&o.remoteCount>0&&C("span",{css:[ue.folderStat,ue.folderStatRemote,"",""],title:`${o.remoteCount} remote`,children:[r("svg",{css:ue.folderStatIconRemote,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),o.remoteCount]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&o.fileCount!==void 0&&C("span",{css:ue.size,children:[o.fileCount," files"]})]}):o.cdnPushed?r("p",{css:ue.storedLabel,children:r("svg",{css:o.isRemote?ue.storedIconRemote:ue.storedIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.isRemote?r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}):r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})})}):o.size!==void 0&&r("p",{css:ue.size,children:gg(o.size)})]})})})]})}function gg(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}const yg=Jl`
64
+ to { transform: rotate(360deg); }
65
+ `,J={loading:{name:"1d2ui9i",styles:"display:flex;align-items:center;justify-content:center;flex:1;min-height:300px"},spinner:b("width:32px;height:32px;border-radius:50%;border:3px solid ",f.border,";border-top-color:",f.primary,";animation:",yg," 0.8s linear infinite;",""),empty:b("display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:300px;color:",f.textSecondary,";",""),emptyHint:b("font-size:",K.sm,";color:",f.textMuted,";margin-top:4px;",""),scanButton:b("margin-top:16px;padding:10px 24px;font-size:",K.base,";font-weight:500;background:",f.primary,";color:white;border:none;border-radius:8px;cursor:pointer;transition:background 0.15s ease;&:hover:not(:disabled){background:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),tableWrapper:b("background:",f.surface,";border-radius:8px;border:1px solid ",f.border,";overflow-x:auto;",""),table:{name:"nufjao",styles:"width:100%;min-width:600px;border-collapse:collapse;white-space:nowrap"},th:b("text-align:left;font-size:11px;color:",f.textMuted,";text-transform:uppercase;letter-spacing:0.05em;padding:12px 16px;font-weight:600;background:",f.background,";border-bottom:1px solid ",f.border,";",""),thCheckbox:{name:"5iz1wr",styles:"width:48px"},thSize:{name:"yct5co",styles:"width:96px"},thDimensions:{name:"gu2s0e",styles:"width:128px"},thCdn:{name:"yct5co",styles:"width:96px"},tbody:b("",""),row:b("cursor:pointer;transition:background-color 0.15s ease;user-select:none;&:hover{background-color:",f.surfaceHover,";}&:not(:last-child) td{border-bottom:1px solid ",f.borderLight,";}",""),rowSelected:b("background-color:",f.primaryLight,";&:hover{background-color:",f.primaryLight,";}",""),parentRow:b("cursor:pointer;border-bottom:1px solid ",f.border,";&:hover{background-color:",f.surfaceHover,";}",""),td:{name:"i563hg",styles:"padding:12px 16px"},checkboxCell:{name:"sahq4q",styles:"padding:12px 16px;cursor:pointer;vertical-align:middle"},checkbox:b("width:18px;height:18px;accent-color:",f.primary,";cursor:pointer;display:block;",""),actionsCell:{name:"1w56d5c",styles:"display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0"},copyBtn:b("position:relative;flex-shrink:0;height:32px;width:32px;font-size:",K.xs,";color:",f.textSecondary,";background:",f.surface,";border:1px solid ",f.border,";padding:0;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:inline-flex;align-items:center;justify-content:center;&:hover{background:",f.surfaceHover,";border-color:",f.borderHover,";color:",f.text,";}",""),copyIcon:{name:"157xhr7",styles:"width:16px;height:16px"},folderStats:{name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"},folderStat:b("display:flex;align-items:center;gap:3px;font-size:",K.xs,";",""),folderStatLocal:b("color:",f.textMuted,";",""),folderStatCloud:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatRemote:{name:"1lukubv",styles:"color:#ef4444"},folderStatIconCloud:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},folderStatIconLocal:b("width:14px;height:14px;color:",f.textSecondary,";",""),folderStatIconRemote:{name:"efr29r",styles:"width:14px;height:14px;color:#ef4444"},storedLabel:{name:"s5xdrg",styles:"display:flex;align-items:center"},storedIconCloud:{name:"1e09qmx",styles:"width:16px;height:16px;color:#f59e0b"},storedIconRemote:{name:"1mrh6ju",styles:"width:16px;height:16px;color:#ef4444"},tooltip:{name:"1bu1odp",styles:"position:absolute;top:50%;right:100%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:6px;pointer-events:none;z-index:100;&::after{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#1a1f36;}"},nameCell:{name:"9s3nhy",styles:"display:flex;align-items:center;gap:12px;flex:1"},thumbnailWrapper:{name:"xfecxx",styles:"width:48px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0"},folderIconWrapper:{name:"xfecxx",styles:"width:48px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0"},folderIcon:{name:"a45yt2",styles:"width:24px;height:24px;color:#f9935e"},imagesFolderWrapper:{name:"iqqile",styles:"width:48px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;align-items:center"},imagesFolderIcon:b("width:24px;height:24px;color:",f.imagesFolder,";",""),lockIcon:b("width:10px;height:10px;color:",f.imagesFolder,";margin-left:-6px;margin-top:8px;",""),parentIcon:b("width:20px;height:20px;color:",f.textMuted,";flex-shrink:0;",""),fileIcon:b("width:20px;height:20px;color:",f.textMuted,";flex-shrink:0;",""),thumbnail:b("max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:4px;border:1px solid ",f.borderLight,";",""),name:b("font-size:",K.base,";font-weight:500;color:",f.text,";letter-spacing:-0.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px;",""),meta:b("font-size:",K.sm,";color:",f.textSecondary,";",""),cdnBadge:b("display:inline-flex;align-items:center;gap:4px;font-size:",K.xs,";font-weight:500;color:",f.success,";",""),cdnBadgeRemote:b("display:inline-flex;align-items:center;font-size:",K.xs,";font-weight:500;color:#ef4444;",""),cdnIcon:{name:"1suksrg",styles:"width:12px;height:12px"},cdnEmpty:b("font-size:",K.sm,";color:",f.textMuted,";",""),openBtn:b("height:32px;font-size:",K.sm,";font-weight:500;color:",f.primary,";background:",f.surface,";border:1px solid ",f.border,";padding:0 14px;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:inline-flex;align-items:center;&:hover{background-color:",f.primaryLight,";border-color:",f.primary,";}","")};function vg(){const{loading:o,sortedItems:s,metaEmpty:h,isAtRoot:u,isSearching:y,allItemsSelected:m,someItemsSelected:D,selectedItems:L,navigateUp:O,handleItemClick:x,handleOpen:G,handleGenerateThumbnail:N,handleSelectAll:V,triggerScan:te}=zh();return o?r("div",{css:J.loading,children:r("div",{css:J.spinner})}):h&&u?C("div",{css:J.empty,children:[r("p",{children:"No files tracked yet"}),r("p",{css:J.emptyHint,children:"Click Scan to discover files in your public folder"}),r("button",{css:J.scanButton,onClick:te,children:"Scan for Files"})]}):s.length===0&&u?C("div",{css:J.empty,children:[r("p",{children:"No files in this folder"}),r("p",{css:J.emptyHint,children:"Upload images or click Scan in the toolbar"})]}):r("div",{css:J.tableWrapper,children:C("table",{css:J.table,children:[r("thead",{children:C("tr",{children:[r("th",{css:[J.th,J.thCheckbox,"",""],children:s.length>0&&r("input",{type:"checkbox",css:J.checkbox,checked:m,ref:q=>{q&&(q.indeterminate=D&&!m)},onChange:V})}),r("th",{css:J.th,children:"Name"}),r("th",{css:[J.th,J.thSize,"",""],children:"Size"}),r("th",{css:[J.th,J.thDimensions,"",""],children:"Dimensions"}),r("th",{css:[J.th,J.thCdn,"",""],children:"CDN"})]})}),C("tbody",{css:J.tbody,children:[!u&&!y&&C("tr",{css:J.parentRow,onClick:O,children:[r("td",{css:J.td}),r("td",{css:J.td,children:C("div",{css:J.nameCell,children:[r("svg",{css:J.parentIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})}),r("span",{css:J.name,children:".."})]})}),r("td",{css:[J.td,J.meta,"",""],children:"--"}),r("td",{css:[J.td,J.meta,"",""],children:"Parent folder"}),r("td",{css:J.td,children:"--"})]}),s.map(q=>r(bg,{item:q,isSelected:L.has(q.path),onClick:X=>x(q,X),onOpen:()=>G(q),onGenerateThumbnail:()=>N(q)},q.path))]})]})})}function bg({item:o,isSelected:s,onClick:h,onOpen:u,onGenerateThumbnail:y}){const[m,D]=A.useState(!1),L=o.type==="folder",O=!L&&o.thumbnail!==void 0,x=o.isProtected||L&&o.name==="images"&&o.path==="public/images",G=V=>{V.stopPropagation();const te="/"+o.path.replace(/^public\//,"");navigator.clipboard.writeText(te),D(!0),setTimeout(()=>D(!1),1500)},N=V=>{if(x){V.stopPropagation(),u();return}h(V)};return C("tr",{css:[J.row,s&&!x&&J.rowSelected,"",""],onClick:N,children:[r("td",{css:[J.td,J.checkboxCell,"",""],onClick:V=>V.stopPropagation(),children:!x&&r("input",{type:"checkbox",css:J.checkbox,checked:s,onChange:()=>h({})})}),r("td",{css:J.td,children:C("div",{css:J.nameCell,children:[L?x?C("div",{css:J.imagesFolderWrapper,children:[r("svg",{css:J.imagesFolderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:r("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}),r("svg",{css:J.lockIcon,fill:"currentColor",viewBox:"0 0 20 20",children:r("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})]}):r("div",{css:J.folderIconWrapper,children:r("svg",{css:J.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:r("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})})}):O&&o.thumbnail?r("div",{css:J.thumbnailWrapper,children:r("img",{css:J.thumbnail,src:o.thumbnail,alt:o.name,loading:"lazy"})}):r("div",{css:J.thumbnailWrapper,children:r("svg",{css:J.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})})}),r("span",{css:J.name,title:o.name,children:xg(o.name)}),C("div",{css:J.actionsCell,children:[C("button",{css:J.copyBtn,onClick:G,title:"Copy file path",children:[m&&r("span",{css:J.tooltip,children:"Copied!"}),r("svg",{css:J.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),r("button",{css:J.openBtn,onClick:V=>{V.stopPropagation(),u()},children:"Open"})]})]})}),r("td",{css:[J.td,J.meta,"",""],children:L?C("div",{css:J.folderStats,children:[o.localCount!==void 0&&o.localCount>0&&C("span",{css:[J.folderStat,J.folderStatLocal,"",""],title:`${o.localCount} local`,children:[r("svg",{css:J.folderStatIconLocal,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),o.localCount]}),o.cloudCount!==void 0&&o.cloudCount>0&&C("span",{css:[J.folderStat,J.folderStatCloud,"",""],title:`${o.cloudCount} in cloud`,children:[r("svg",{css:J.folderStatIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),o.cloudCount]}),o.remoteCount!==void 0&&o.remoteCount>0&&C("span",{css:[J.folderStat,J.folderStatRemote,"",""],title:`${o.remoteCount} remote`,children:[r("svg",{css:J.folderStatIconRemote,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),o.remoteCount]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&o.fileCount!==void 0&&C("span",{children:[o.fileCount," files"]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&o.fileCount===void 0&&"--"]}):o.cdnPushed?r("span",{css:J.storedLabel,children:r("svg",{css:o.isRemote?J.storedIconRemote:J.storedIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.isRemote?r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}):r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})})}):o.size!==void 0?ih(o.size):"--"}),r("td",{css:[J.td,J.meta,"",""],children:L?o.totalSize!==void 0?ih(o.totalSize):"--":o.dimensions?`${o.dimensions.width}x${o.dimensions.height}`:"--"}),r("td",{css:J.td,children:o.cdnPushed?o.isRemote?r("span",{css:J.cdnBadgeRemote,children:"Remote"}):C("span",{css:J.cdnBadge,children:[r("svg",{css:J.cdnIcon,fill:"currentColor",viewBox:"0 0 20 20",children:r("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),"Pushed"]}):r("span",{css:J.cdnEmpty,children:"--"})})]})}function ih(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}function xg(o,s=32){if(o.length<=s)return o;const h=o.lastIndexOf("."),u=h>0?o.substring(h):"",y=h>0?o.substring(0,h):o,m=s-u.length-3;if(m<6)return o.substring(0,s-3)+"...";const D=Math.ceil(m/2),L=Math.floor(m/2);return y.substring(0,D)+"..."+y.substring(y.length-L)+u}const Sg=[".jpg",".jpeg",".png",".gif",".webp",".svg",".ico",".bmp",".tiff",".tif"],Cg=[".mp4",".webm",".mov",".avi",".mkv",".m4v"];function zg(o){const s=o.toLowerCase().substring(o.lastIndexOf("."));return Sg.includes(s)}function Mg(o){const s=o.toLowerCase().substring(o.lastIndexOf("."));return Cg.includes(s)}const se={overlay:{name:"1crgpqk",styles:"position:absolute;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;background:transparent"},container:b("display:flex;flex:1;margin:24px;background:",f.surface,";border:1px solid ",f.border,";border-radius:12px;overflow:hidden;box-shadow:0 20px 40px rgba(0, 0, 0, 0.2);",""),main:b("position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:",f.background,";overflow:auto;",""),headerButtons:{name:"8wfhwn",styles:"position:absolute;top:16px;right:16px;display:flex;gap:8px;z-index:10"},copyBtn:b("position:relative;padding:8px;background:",f.surface,";border:1px solid ",f.border,";border-radius:8px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0, 0, 0, 0.08);&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),copyIcon:b("width:20px;height:20px;color:",f.textSecondary,";",""),statusIcon:b("display:flex;align-items:center;justify-content:center;padding:8px;background:",f.surface,";border:1px solid ",f.border,";border-radius:8px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.08);",""),cloudIcon:{name:"1byef48",styles:"width:22px;height:22px;color:#f59e0b;transform:translateY(1px)"},globeIcon:{name:"jso3j5",styles:"width:20px;height:20px;color:#ef4444"},tooltip:{name:"1w9prgf",styles:"position:absolute;right:100%;top:50%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:8px;pointer-events:none;z-index:100;&::after{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#1a1f36;}"},mainCloseBtn:b("padding:8px;background:",f.surface,";border:1px solid ",f.border,";border-radius:8px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0, 0, 0, 0.08);&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),mainCloseIcon:b("width:20px;height:20px;color:",f.textSecondary,";",""),mediaWrapper:{name:"zr0bjt",styles:"max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center"},image:{name:"4gte4n",styles:"max-width:100%;max-height:calc(100vh - 200px);object-fit:contain;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1)"},video:{name:"1talud7",styles:"max-width:100%;max-height:calc(100vh - 200px);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1)"},filePlaceholder:b("display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;background:",f.surface,";border-radius:12px;border:1px solid ",f.border,";",""),fileIcon:b("width:80px;height:80px;color:",f.textMuted,";margin-bottom:16px;",""),fileName:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0;",""),sidebar:b("width:280px;background:",f.surface,";border-left:1px solid ",f.border,";display:flex;flex-direction:column;overflow:hidden;",""),sidebarHeader:b("padding:16px 20px;border-bottom:1px solid ",f.border,";",""),sidebarTitle:b("font-size:",K.base,";font-weight:600;color:",f.text,";margin:0;",""),sidebarContent:{name:"esl95u",styles:"flex:1;padding:20px;overflow:auto"},info:{name:"bh1r16",styles:"display:flex;flex-direction:column;gap:12px;margin-bottom:24px"},infoRow:b("display:flex;justify-content:space-between;font-size:",K.sm,";",""),infoLabel:b("color:",f.textSecondary,";",""),infoValue:b("color:",f.text,";font-weight:500;text-align:right;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",""),infoValueWrap:b("color:",f.text,";font-weight:500;text-align:right;max-width:160px;word-break:break-all;white-space:normal;",""),infoLink:b("color:",f.primary,";font-weight:500;text-align:right;max-width:160px;word-break:break-all;white-space:normal;text-decoration:none;&:hover{text-decoration:underline;}",""),actions:{name:"3w0yoi",styles:"display:flex;flex-direction:column;gap:8px"},actionBtn:b("display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;font-size:",K.base,";font-weight:500;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;color:",f.text,";text-align:left;&:hover:not(:disabled){background-color:",f.surfaceHover,";border-color:",f.borderHover,";}&:disabled{opacity:0.5;cursor:not-allowed;}",""),actionBtnDanger:b("color:",f.danger,";&:hover:not(:disabled){background-color:",f.dangerLight,";border-color:",f.danger,";}",""),actionIcon:{name:"a4lfw4",styles:"width:16px;height:16px;flex-shrink:0"}};function Tg(){const{focusedItem:o,setFocusedItem:s,triggerRefresh:h,fileItems:u,requestDelete:y,requestMove:m,requestSync:D,requestProcess:L,actionState:O}=Na(),[x,G]=A.useState(!1),[N,V]=A.useState(!1),[te,q]=A.useState(null),[X,de]=A.useState(!1),[F,ae]=A.useState(!1),[W,I]=A.useState({current:0,total:3,percent:0,status:"processing",message:"Generating favicons..."}),_=O.showProgress,Q=o?o.name.toLowerCase()==="favicon.png"||o.name.toLowerCase()==="favicon.jpg":!1;if(!o)return null;const j=zg(o.name),me=Mg(o.name),Ee="/"+o.path.replace(/^public\//,""),ze=o.cdnPushed&&o.cdnBaseUrl?`${o.cdnBaseUrl}${Ee}`:Ee,ke=typeof window<"u"?window.location.origin:"",De=o.cdnPushed&&o.cdnBaseUrl?`${o.cdnBaseUrl}${Ee}`:`${ke}${Ee}`,Ze=()=>{s(null)},Fe=()=>{navigator.clipboard.writeText(De),de(!0),setTimeout(()=>de(!1),1500)},be=async Z=>{if(G(!1),Z&&Z!==o.name)try{const oe=await fetch("/api/studio/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:o.path,newName:Z})});if(oe.ok)h(),s(null);else{const Se=await oe.json();q({title:"Rename Failed",message:Se.error||"Failed to rename file"})}}catch(oe){console.error("Rename error:",oe),q({title:"Rename Failed",message:"An error occurred while renaming the file"})}},w=async()=>{if(o){ae(!0),I({current:0,total:3,percent:0,status:"processing",message:"Generating favicons..."});try{const Z=await fetch("/api/studio/generate-favicon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imagePath:"/"+o.path.replace(/^public\//,"")})});if(!Z.ok){const g=await Z.json();I({current:0,total:3,percent:0,status:"error",message:g.error||"Failed to generate favicons"});return}const oe=Z.body?.getReader(),Se=new TextDecoder;if(oe){let g="";for(;;){const{done:k,value:B}=await oe.read();if(k)break;g+=Se.decode(B,{stream:!0});const $=g.split(`
66
+ `);g=$.pop()||"";for(const ee of $)if(ee.startsWith("data: "))try{const re=JSON.parse(ee.slice(6));re.type==="start"?I(_e=>({..._e,total:re.total})):re.type==="progress"?I({current:re.current,total:re.total,percent:re.percent,status:"processing",message:re.message}):re.type==="complete"?I({current:re.processed,total:re.processed,percent:100,status:re.errors>0?"error":"complete",message:re.message}):re.type==="error"&&I(_e=>({..._e,status:"error",message:re.message}))}catch{}}}}catch(Z){console.error("Favicon generation error:",Z),I({current:0,total:3,percent:0,status:"error",message:"An error occurred while generating favicons"})}}},Y=()=>j?r("img",{css:se.image,src:ze,alt:o.name}):me?r("video",{css:se.video,src:ze,controls:!0}):C("div",{css:se.filePlaceholder,children:[r("svg",{css:se.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}),r("p",{css:se.fileName,children:o.name})]});return C(qt,{children:[te&&r(xh,{title:te.title,message:te.message,onClose:()=>q(null)}),r(Ch,{isOpen:N,onClose:()=>V(!1)}),x&&r(js,{title:"Rename File",message:"Enter a new name for the file:",defaultValue:o.name,placeholder:"Enter new filename",confirmLabel:"Rename",onConfirm:be,onCancel:()=>G(!1)}),F&&r(Zs,{title:"Generating Favicons",progress:W,onClose:()=>ae(!1)}),r("div",{css:se.overlay,onClick:Ze,children:C("div",{css:se.container,onClick:Z=>Z.stopPropagation(),children:[C("div",{css:se.main,children:[C("div",{css:se.headerButtons,children:[o.cdnPushed&&!o.isRemote&&r("span",{css:se.statusIcon,title:"Pushed to CDN",children:r("svg",{css:se.cloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})})}),o.isRemote&&r("span",{css:se.statusIcon,title:"Remote image",children:r("svg",{css:se.globeIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})}),C("button",{css:se.copyBtn,onClick:Fe,title:"Copy file path",children:[X&&r("span",{css:se.tooltip,children:"Copied!"}),r("svg",{css:se.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),r("button",{css:se.mainCloseBtn,onClick:Ze,"aria-label":"Close",children:r("svg",{css:se.mainCloseIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),r("div",{css:se.mediaWrapper,children:Y()})]}),C("div",{css:se.sidebar,children:[r("div",{css:se.sidebarHeader,children:r("h3",{css:se.sidebarTitle,children:"Details"})}),C("div",{css:se.sidebarContent,children:[C("div",{css:se.info,children:[C("div",{css:se.infoRow,children:[r("span",{css:se.infoLabel,children:"Name"}),r("span",{css:se.infoValueWrap,children:o.name})]}),C("div",{css:se.infoRow,children:[r("span",{css:se.infoLabel,children:"Path"}),r("span",{css:se.infoValueWrap,children:o.path.replace(/^public\//,"")})]}),o.size!==void 0&&C("div",{css:se.infoRow,children:[r("span",{css:se.infoLabel,children:"Size"}),r("span",{css:se.infoValue,children:Ag(o.size)})]}),o.dimensions&&C("div",{css:se.infoRow,children:[r("span",{css:se.infoLabel,children:"Dimensions"}),C("span",{css:se.infoValue,children:[o.dimensions.width," × ",o.dimensions.height]})]}),C("div",{css:se.infoRow,children:[r("span",{css:se.infoLabel,children:"CDN Status"}),r("span",{css:se.infoValue,children:o.cdnPushed?o.isRemote?"Remote":"Pushed":"Local"})]}),C("div",{css:se.infoRow,children:[r("span",{css:se.infoLabel,children:"URL"}),r("a",{href:De,target:"_blank",rel:"noopener noreferrer",css:se.infoLink,title:De,children:De})]})]}),C("div",{css:se.actions,children:[C("button",{css:se.actionBtn,onClick:()=>G(!0),disabled:o.isProtected,children:[r("svg",{css:se.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Rename"]}),C("button",{css:se.actionBtn,onClick:()=>m([o.path]),disabled:_||o.isProtected,children:[r("svg",{css:se.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})}),"Move"]}),C("button",{css:se.actionBtn,onClick:()=>D([o.path],u),disabled:_||o.isProtected||o.cdnPushed&&!o.isRemote,title:o.cdnPushed&&!o.isRemote?"Already in R2":void 0,children:[r("svg",{css:se.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),"Push to CDN"]}),C("button",{css:se.actionBtn,onClick:()=>L([o.path]),disabled:_||o.isProtected,children:[r("svg",{css:se.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),"Process Image"]}),Q&&C("button",{css:se.actionBtn,onClick:w,disabled:F||o.isProtected,children:[r("svg",{css:se.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Generate Favicons"]}),C("button",{css:[se.actionBtn,se.actionBtnDanger,"",""],onClick:()=>y([o.path]),disabled:_||o.isProtected,children:[r("svg",{css:se.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete"]})]})]})]})]})})]})}function Ag(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}const wg="36px",Ae={btn:b("height:",wg,";padding:0 12px;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),icon:b("width:16px;height:16px;color:",f.textSecondary,";",""),overlay:{name:"v3r9wg",styles:"position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px)"},panel:b(ji," position:relative;background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);width:100%;max-width:512px;padding:24px;",""),header:{name:"1o4fids",styles:"display:flex;align-items:center;justify-content:space-between;margin-bottom:24px"},title:b("font-size:",K.xl,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),closeBtn:b("padding:6px;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),sections:{name:"klisov",styles:"display:flex;flex-direction:column;gap:24px"},sectionTitle:b("font-size:",K.base,";font-weight:600;color:",f.text,";margin:0 0 12px 0;",""),description:b("font-size:",K.sm,";color:",f.textSecondary,";margin:0 0 12px 0;",""),codeWrapper:{name:"bjn8wh",styles:"position:relative"},code:b("background-color:",f.background,";border-radius:8px;padding:12px;padding-right:40px;font-family:'SF Mono',Monaco,Consolas,monospace;font-size:",K.xs,";color:",f.textSecondary,";border:1px solid ",f.border,";overflow-x:auto;white-space:nowrap;",""),copyBtn:b("position:absolute;top:8px;right:8px;padding:4px;background:",f.surface,";border:1px solid ",f.border,";border-radius:4px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),tooltip:{name:"6eskey",styles:"position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-bottom:6px;pointer-events:none;z-index:100;&::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#1a1f36;}"},copyIcon:b("width:14px;height:14px;color:",f.textSecondary,";",""),codeLine:{name:"1bbvuqp",styles:"margin:0 0 4px 0;&:last-child{margin:0;}"},input:b("width:100%;padding:10px 14px;border:1px solid ",f.border,";border-radius:6px;font-size:",K.base,";color:",f.text,";background:",f.surface,";transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 3px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}",""),grid:{name:"xtlr5l",styles:"display:grid;grid-template-columns:repeat(3, 1fr);gap:12px"},label:b("font-size:",K.xs,";font-weight:500;color:",f.textSecondary,";display:block;margin-bottom:6px;",""),footer:b("margin-top:24px;padding-top:20px;border-top:1px solid ",f.border,";display:flex;justify-content:flex-end;gap:12px;",""),cancelBtn:b("padding:10px 18px;font-size:",K.base,";font-weight:500;color:",f.text,";background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),saveBtn:b("padding:10px 18px;font-size:",K.base,";font-weight:500;color:white;background-color:",f.primary,";border:1px solid ",f.primary,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;&:hover{background-color:",f.primaryHover,";border-color:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),cdnList:{name:"3w0yoi",styles:"display:flex;flex-direction:column;gap:8px"},cdnRow:{name:"197tvr9",styles:"display:flex;gap:8px;align-items:center"},cdnInput:b("flex:1;padding:8px 12px;border:1px solid ",f.border,";border-radius:6px;font-size:",K.sm,";color:",f.text,";background:",f.surface,";transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 3px ",f.primaryLight,";}",""),cdnIndex:b("font-size:",K.xs,";color:",f.textMuted,";width:24px;text-align:center;flex-shrink:0;",""),cdnDeleteBtn:b("padding:6px;background:none;border:none;cursor:pointer;color:",f.textMuted,";transition:color 0.15s;flex-shrink:0;&:hover{color:",f.danger,";}",""),cdnAddBtn:b("padding:8px 12px;font-size:",K.sm,";font-weight:500;color:",f.primary,";background:",f.primaryLight,";border:1px dashed ",f.primary,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;&:hover{background:",f.surface,";}",""),warning:b("font-size:",K.xs,";color:",f.danger,";margin-top:8px;padding:8px 12px;background:",f.dangerLight,";border-radius:6px;","")};function Eg(){const[o,s]=A.useState(!1);return C(qt,{children:[r("button",{css:Ae.btn,onClick:()=>s(!0),"aria-label":"Settings",children:C("svg",{css:Ae.icon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[r("circle",{cx:"12",cy:"12",r:"3"}),r("path",{d:"M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z"})]})}),o&&r(Dg,{onClose:()=>s(!1)})]})}const _g=`CLOUDFLARE_R2_ACCOUNT_ID=abc123def456ghi789
67
+ CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id_here
68
+ CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_access_key_here
69
+ CLOUDFLARE_R2_BUCKET_NAME=my-images-bucket
70
+ CLOUDFLARE_R2_PUBLIC_URL=https://cdn.yourdomain.com`;function Dg({onClose:o}){const{triggerRefresh:s}=Na(),[h,u]=A.useState(!1),[y,m]=A.useState([]),[D,L]=A.useState(!0),[O,x]=A.useState(!1),[G,N]=A.useState(!1);A.useEffect(()=>{async function F(){try{const W=await(await fetch("/api/studio/cdns")).json();m(W.cdns||[])}catch(ae){console.error("Failed to load CDN URLs:",ae)}finally{L(!1)}}F()},[]);const V=()=>{navigator.clipboard.writeText(_g),u(!0),setTimeout(()=>u(!1),2e3)},te=A.useCallback((F,ae)=>{m(W=>{const I=[...W];return I[F]=ae,I}),N(!0)},[]),q=A.useCallback(()=>{m(F=>[...F,""]),N(!0)},[]),X=A.useCallback(F=>{m(ae=>ae.filter((W,I)=>I!==F)),N(!0)},[]),de=A.useCallback(async()=>{x(!0);try{(await fetch("/api/studio/cdns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cdns:y})})).ok&&(N(!1),s(),o())}catch(F){console.error("Failed to save CDN URLs:",F)}finally{x(!1)}},[y,s,o]);return r("div",{css:Ae.overlay,onClick:o,children:C("div",{css:Ae.panel,onClick:F=>F.stopPropagation(),children:[C("div",{css:Ae.header,children:[r("h2",{css:Ae.title,children:"Settings"}),r("button",{css:Ae.closeBtn,onClick:o,children:r("svg",{css:Ae.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),C("div",{css:Ae.sections,children:[C("section",{children:[r("h3",{css:Ae.sectionTitle,children:"CDN URLs"}),r("p",{css:Ae.description,children:"Manage CDN base URLs used by your images:"}),D?r("p",{css:Ae.description,children:"Loading..."}):C(qt,{children:[r("div",{css:Ae.cdnList,children:y.map((F,ae)=>C("div",{css:Ae.cdnRow,children:[r("span",{css:Ae.cdnIndex,children:ae}),r("input",{css:Ae.cdnInput,type:"text",value:F,onChange:W=>te(ae,W.target.value),placeholder:"https://cdn.example.com"}),r("button",{css:Ae.cdnDeleteBtn,onClick:()=>X(ae),title:"Delete CDN URL",children:r("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]},ae))}),C("button",{css:Ae.cdnAddBtn,onClick:q,children:[r("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add CDN URL"]}),y.length>0&&r("p",{css:Ae.warning,children:"Warning: Changing CDN URLs may break image references. The index numbers correspond to image `c` values."})]})]}),C("section",{children:[r("h3",{css:Ae.sectionTitle,children:"Cloudflare R2 Credentials"}),r("p",{css:Ae.description,children:"Configure in .env.local file:"}),C("div",{css:Ae.codeWrapper,children:[C("button",{css:Ae.copyBtn,onClick:V,title:"Copy to clipboard",children:[h&&r("span",{css:Ae.tooltip,children:"Copied!"}),r("svg",{css:Ae.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),C("div",{css:Ae.code,children:[r("p",{css:Ae.codeLine,children:"CLOUDFLARE_R2_ACCOUNT_ID=abc123def456ghi789"}),r("p",{css:Ae.codeLine,children:"CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id_here"}),r("p",{css:Ae.codeLine,children:"CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_access_key_here"}),r("p",{css:Ae.codeLine,children:"CLOUDFLARE_R2_BUCKET_NAME=my-images-bucket"}),r("p",{css:Ae.codeLine,children:"CLOUDFLARE_R2_PUBLIC_URL=https://cdn.yourdomain.com"})]})]})]}),C("section",{children:[r("h3",{css:Ae.sectionTitle,children:"Thumbnail Sizes"}),C("div",{css:Ae.grid,children:[C("div",{children:[r("label",{css:Ae.label,children:"Small"}),r("input",{css:Ae.input,type:"number",defaultValue:300})]}),C("div",{children:[r("label",{css:Ae.label,children:"Medium"}),r("input",{css:Ae.input,type:"number",defaultValue:700})]}),C("div",{children:[r("label",{css:Ae.label,children:"Large"}),r("input",{css:Ae.input,type:"number",defaultValue:1400})]})]})]})]}),C("div",{css:Ae.footer,children:[r("button",{css:Ae.cancelBtn,onClick:o,children:"Cancel"}),r("button",{css:Ae.saveBtn,onClick:de,disabled:O||!G,children:O?"Saving...":"Save Changes"})]})]})})}const Kn={overlay:{name:"1u8n9cx",styles:"position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1100"},modal:b("background:",f.surface,";border-radius:12px;padding:24px;max-width:400px;width:90%;box-shadow:0 20px 40px rgba(0, 0, 0, 0.2);",""),header:{name:"c6eghz",styles:"display:flex;align-items:center;gap:12px;margin-bottom:12px"},icon:b("width:24px;height:24px;color:",f.danger,";flex-shrink:0;",""),title:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0;",""),message:b("font-size:",K.base,";color:",f.textSecondary,";margin:0 0 20px 0;line-height:1.5;",""),button:b("width:100%;padding:10px 16px;border-radius:6px;font-size:",K.base,";font-weight:500;border:none;background:",f.primary,";color:white;cursor:pointer;transition:background 0.15s ease;&:hover{background:",f.primaryHover,";}","")};function Og(){const{error:o,clearError:s}=Na();return o?r("div",{css:Kn.overlay,onClick:s,children:C("div",{css:Kn.modal,onClick:h=>h.stopPropagation(),children:[C("div",{css:Kn.header,children:[r("svg",{css:Kn.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),r("h3",{css:Kn.title,children:o.title})]}),r("p",{css:Kn.message,children:o.message}),r("button",{css:Kn.button,onClick:s,children:"OK"})]})}):null}const oh={showProgress:!1,progressTitle:"",progressState:{current:0,total:0,percent:0,status:"processing"},showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1,actionPaths:[],syncImageCount:0,syncHasRemote:!1,syncHasLocal:!1,processMode:"generate"};function Rg({triggerRefresh:o,clearSelection:s,setFocusedItem:h,showError:u}){const[y,m]=A.useState(oh),D=A.useRef(null),L=A.useCallback(_=>{m(Q=>({...Q,progressState:typeof _=="function"?_(Q.progressState):{...Q.progressState,..._}}))},[]),O=A.useCallback(_=>{m(Q=>({...Q,actionPaths:_,showDeleteConfirm:!0}))},[]),x=A.useCallback(_=>{m(Q=>({...Q,actionPaths:_,showMoveModal:!0}))},[]),G=A.useCallback((_,Q)=>{const j=_.map(ze=>"/"+ze.replace(/^public\//,""));let me=!1,Ee=!1;for(const ze of _){const ke=Q.find(De=>De.path===ze);ke&&(ke.isRemote?me=!0:ke.cdnPushed||(Ee=!0))}m(ze=>({...ze,actionPaths:_,syncImageCount:j.length,syncHasRemote:me,syncHasLocal:Ee,showSyncConfirm:!0}))},[]),N=A.useCallback(_=>{m(Q=>({...Q,actionPaths:_,showProcessConfirm:!0,processMode:"generate"}))},[]),V=A.useCallback(_=>{m(Q=>({...Q,processMode:_}))},[]),te=A.useCallback(()=>{m(_=>({..._,showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1}))},[]),q=A.useCallback(()=>{m(oh)},[]),X=A.useCallback(()=>{D.current&&D.current.abort()},[]),de=A.useCallback(async()=>{const _=y.actionPaths;m(Q=>({...Q,showDeleteConfirm:!1}));try{const Q=await fetch("/api/studio/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:_})});if(Q.ok)s(),h(null),o();else{const j=await Q.json();u("Delete Failed",j.error||"Unknown error")}}catch(Q){console.error("Delete error:",Q),u("Delete Failed","Delete failed. Check console for details.")}},[y.actionPaths,s,h,o,u]),F=A.useCallback(async _=>{const Q=y.actionPaths;m(j=>({...j,showMoveModal:!1,showProgress:!0,progressTitle:"Moving Files",progressState:{current:0,total:Q.length,percent:0,status:"processing",message:"Moving files..."}}));try{const j=await fetch("/api/studio/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Q,destination:_})});if(!j.ok){const ze=await j.json();L({status:"error",message:ze.error||"Move failed"});return}const me=j.body?.getReader(),Ee=new TextDecoder;if(me){let ze="";for(;;){const{done:ke,value:De}=await me.read();if(ke)break;ze+=Ee.decode(De,{stream:!0});const Ze=ze.split(`
71
+ `);ze=Ze.pop()||"";for(const Fe of Ze)if(Fe.startsWith("data: "))try{const be=JSON.parse(Fe.slice(6));be.type==="start"?L(w=>({...w,total:be.total})):be.type==="progress"?L({current:be.current,total:be.total,percent:Math.round(be.current/be.total*100),status:"processing",message:be.message}):be.type==="complete"?(L(w=>({...w,status:"complete",message:`Moved ${be.moved} file${be.moved!==1?"s":""}${be.errors>0?`, ${be.errors} error${be.errors!==1?"s":""}`:""}`})),be.errors>0&&be.errorMessages?.length>0&&u("Move Failed",be.errorMessages.join(`
72
+ `)),s(),h(null),o()):be.type==="error"&&L(w=>({...w,status:"error",message:be.message||"Unknown error"}))}catch{}}}}catch(j){console.error("Move error:",j),L(me=>({...me,status:"error",message:"Failed to move files. Check console for details."}))}},[y.actionPaths,s,h,o,u,L]),ae=A.useCallback(async()=>{const Q=y.actionPaths.map(Ee=>"/"+Ee.replace(/^public\//,""));m(Ee=>({...Ee,showSyncConfirm:!1,showProgress:!0,progressTitle:"Pushing to CDN",progressState:{current:0,total:Q.length,percent:0,status:"processing",message:"Pushing to CDN..."}}));let j=0;const me=[];for(let Ee=0;Ee<Q.length;Ee++){const ze=Q[Ee];L({current:Ee+1,total:Q.length,percent:Math.round((Ee+1)/Q.length*100),status:"processing",message:`Pushing ${ze}...`});try{const ke=await fetch("/api/studio/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:[ze]})});if(ke.ok)j++;else{const De=await ke.json();me.push(`${ze}: ${De.error||"Unknown error"}`)}}catch(ke){me.push(`${ze}: ${ke instanceof Error?ke.message:"Unknown error"}`)}}L({current:Q.length,total:Q.length,percent:100,status:me.length>0?"error":"complete",message:`Pushed ${j} file${j!==1?"s":""}${me.length>0?`, ${me.length} error${me.length!==1?"s":""}`:""}`}),me.length>0&&u("Push Errors",me.join(`
73
+ `)),s(),o()},[y.actionPaths,s,o,u,L]),W=A.useCallback(async()=>{const _=y.actionPaths,Q=y.processMode,j=_.map(Ze=>{const Fe=Ze.replace(/^public\//,"");return Fe.startsWith("/")?Fe:`/${Fe}`}),me=Q==="remove",Ee=me?"/api/studio/unprocess-stream":"/api/studio/reprocess-stream",ze=me?"Removing Thumbnails":"Generating Thumbnails",ke=me?"Removing thumbnails...":"Generating thumbnails...";m(Ze=>({...Ze,showProcessConfirm:!1,showProgress:!0,progressTitle:ze,progressState:{current:0,total:j.length,percent:0,status:"processing",message:ke}})),D.current=new AbortController;const De=D.current.signal;try{const Ze=await fetch(Ee,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:j}),signal:De});if(!Ze.ok){const w=await Ze.json();L({current:0,total:j.length,percent:0,status:"error",message:w.error||(me?"Failed to remove thumbnails":"Processing failed")});return}const Fe=Ze.body?.getReader(),be=new TextDecoder;if(Fe){let w="";for(;;){const{done:Y,value:Z}=await Fe.read();if(Y)break;w+=be.decode(Z,{stream:!0});const oe=w.split(`
74
+ `);w=oe.pop()||"";for(const Se of oe)if(Se.startsWith("data: "))try{const g=JSON.parse(Se.slice(6));g.type==="start"?L(k=>({...k,total:g.total})):g.type==="progress"?L({current:g.current,total:g.total,percent:g.percent,status:"processing",message:g.message}):g.type==="cleanup"?L(k=>({...k,status:"cleanup",message:g.message})):g.type==="complete"?(L({current:g.processed,total:g.processed,percent:100,status:g.errors>0?"error":"complete",message:g.message}),o()):g.type==="error"&&L(k=>({...k,status:"error",message:g.message}))}catch{}}}}catch(Ze){De.aborted?L(Fe=>({...Fe,status:"stopped",message:me?"Removal stopped by user":"Processing stopped by user"})):(console.error("Processing error:",Ze),L({current:0,total:j.length,percent:0,status:"error",message:me?"Failed to remove thumbnails. Check console for details.":"Processing failed. Check console for details."}))}finally{D.current=null}},[y.actionPaths,y.processMode,o,L]),I=A.useCallback(async()=>{const _=y.progressState.orphanedFiles;if(!(!_||_.length===0))try{const Q=await fetch("/api/studio/delete-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:_})});if(Q.ok)L(j=>({...j,orphanedFiles:void 0,message:j.message?.replace(/Found \d+ orphaned thumbnail\(s\).*/,"Orphaned thumbnails deleted.")})),o();else{const j=await Q.json();u("Delete Failed",j.error||"Failed to delete orphaned files")}}catch(Q){console.error("Delete orphans error:",Q),u("Delete Failed","Failed to delete orphaned files. Check console for details.")}},[y.progressState.orphanedFiles,o,u,L]);return{actionState:y,setActionState:m,abortController:D.current,requestDelete:O,requestMove:x,requestSync:G,requestProcess:N,setProcessMode:V,cancelAction:te,closeProgress:q,stopProcessing:X,confirmDelete:de,confirmMove:F,confirmSync:ae,confirmProcess:W,deleteOrphans:I}}const kg="36px",At={container:b(ji," display:flex;flex-direction:column;height:100%;background:",f.background,";",""),header:b("display:flex;align-items:center;justify-content:space-between;padding:12px 24px;background:",f.surface,";border-bottom:1px solid ",f.border,";position:relative;",""),title:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;flex-shrink:0;",""),headerLeft:{name:"16ur2v6",styles:"display:flex;align-items:center;gap:12px;flex:1;min-width:0"},headerCenter:{name:"1fsejhz",styles:"position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;max-width:50%"},breadcrumbs:b("display:flex;align-items:center;gap:6px;font-size:",K.base,";color:",f.textSecondary,";overflow:hidden;",""),breadcrumbSeparator:b("color:",f.border,";flex-shrink:0;",""),breadcrumbItem:b("color:",f.textSecondary,";text-decoration:none;cursor:pointer;transition:color 0.15s ease;white-space:nowrap;&:hover{color:",f.primary,";}",""),breadcrumbCurrent:b("color:",f.text,";font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""),headerIconBtn:b("display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:",f.textMuted,";background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all 0.15s ease;&:hover{color:",f.text,";background:",f.surface,";}",""),headerActions:{name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"},headerBtn:b("height:",kg,";padding:0 12px;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),headerIcon:b("width:16px;height:16px;color:",f.textSecondary,";",""),content:{name:"1rtaly3",styles:"flex:1;display:flex;overflow:hidden"},fileBrowser:{name:"upomw9",styles:"flex:1;min-width:0;overflow:auto;padding:20px 24px;display:flex;flex-direction:column"},dropOverlay:b("position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(99, 91, 255, 0.1);border:3px dashed ",f.primary,";border-radius:8px;display:flex;align-items:center;justify-content:center;z-index:50;pointer-events:none;",""),dropMessage:b("display:flex;flex-direction:column;align-items:center;gap:12px;color:",f.primary,";font-size:",K.lg,";font-weight:600;",""),dropIcon:{name:"18jhpep",styles:"width:48px;height:48px"}};function Lg({onClose:o,isVisible:s=!0,standaloneMode:h=!1,workspacePath:u,siteUrl:y}){const m=o||(()=>{}),[D,L]=A.useState("public"),[O,x]=A.useState(new Set),[G,N]=A.useState(null),[V,te]=A.useState("grid"),[q,X]=A.useState(null),[de,F]=A.useState(null),[ae,W]=A.useState(!1),[I,_]=A.useState(0),[Q,j]=A.useState(!1),[me,Ee]=A.useState(""),[ze,ke]=A.useState(null),[De,Ze]=A.useState([]),[Fe,be]=A.useState(!1),w=A.useCallback(()=>{_(Ce=>Ce+1)},[]),Y=A.useCallback(()=>{j(!0)},[]),Z=A.useCallback(()=>{j(!1)},[]),oe=A.useCallback((Ce,Ct)=>{ke({title:Ce,message:Ct})},[]),Se=A.useCallback(()=>{ke(null)},[]),g=A.useCallback(Ce=>{Ce.preventDefault(),Ce.stopPropagation(),be(!0)},[]),k=A.useCallback(Ce=>{Ce.preventDefault(),Ce.stopPropagation(),be(!1)},[]),B=A.useCallback(async Ce=>{Ce.preventDefault(),Ce.stopPropagation(),be(!1);const Ct=Array.from(Ce.dataTransfer.files);if(Ct.length!==0&&!(D==="public/images"||D.startsWith("public/images/"))){for(const mt of Ct){const Ft=new FormData;Ft.append("file",mt),Ft.append("path",D);try{await fetch("/api/studio/upload",{method:"POST",body:Ft})}catch(xl){console.error("Upload error:",xl)}}w()}},[D,w]),$=A.useCallback(()=>{if(D==="public")return;const Ce=D.split("/");Ce.pop(),L(Ce.join("/")||"public"),x(new Set)},[D]),ee=A.useCallback(Ce=>{L(Ce),x(new Set),X(null)},[]),re=A.useCallback(Ce=>{x(Ct=>{const mt=new Set(Ct);return mt.has(Ce)?mt.delete(Ce):mt.add(Ce),mt}),N(Ce)},[]),_e=A.useCallback((Ce,Ct,mt)=>{const Ft=mt.findIndex(pl=>pl.path===Ce),xl=mt.findIndex(pl=>pl.path===Ct);if(Ft===-1||xl===-1)return;const zn=Math.min(Ft,xl),Mn=Math.max(Ft,xl);x(pl=>{const Jn=new Set(pl);for(let Tn=zn;Tn<=Mn;Tn++)Jn.add(mt[Tn].path);return Jn}),N(Ct)},[]),St=A.useCallback(Ce=>{x(new Set(Ce.map(Ct=>Ct.path)))},[]),Ie=A.useCallback(()=>{x(new Set)},[]),El=A.useCallback(Ce=>{X(Ce)},[]),he=Rg({triggerRefresh:w,clearSelection:Ie,setFocusedItem:El,showError:oe}),_l=A.useCallback(Ce=>{if(Ce.key==="Escape"){const Ct=Ce.target;if(Ct.tagName==="INPUT"||Ct.tagName==="TEXTAREA")return;q?X(null):h||m()}},[m,q,h]);A.useEffect(()=>(s&&(document.addEventListener("keydown",_l),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",_l),document.body.style.overflow=""}),[_l,s]);const Cn={isOpen:!0,openStudio:()=>{},closeStudio:m,toggleStudio:m,currentPath:D,setCurrentPath:ee,navigateUp:$,selectedItems:O,toggleSelection:re,selectRange:_e,selectAll:St,clearSelection:Ie,lastSelectedPath:G,viewMode:V,setViewMode:te,focusedItem:q,setFocusedItem:X,meta:de,setMeta:F,isLoading:ae,setIsLoading:W,refreshKey:I,triggerRefresh:w,scanRequested:Q,triggerScan:Y,clearScanRequest:Z,searchQuery:me,setSearchQuery:Ee,error:ze,showError:oe,clearError:Se,fileItems:De,setFileItems:Ze,actionState:he.actionState,requestDelete:he.requestDelete,requestMove:he.requestMove,requestSync:he.requestSync,requestProcess:he.requestProcess,setProcessMode:he.setProcessMode,confirmDelete:he.confirmDelete,confirmMove:he.confirmMove,confirmSync:he.confirmSync,confirmProcess:he.confirmProcess,cancelAction:he.cancelAction,closeProgress:he.closeProgress,stopProcessing:he.stopProcessing,abortController:he.abortController,deleteOrphans:he.deleteOrphans};return r(bh.Provider,{value:Cn,children:C("div",{css:At.container,children:[C("div",{css:At.header,children:[r("div",{css:At.headerLeft,children:r("h1",{css:At.title,children:"Studio"})}),r("div",{css:At.headerCenter,children:r(jg,{currentPath:D,onNavigate:ee,projectName:u?u.split("/").pop():void 0})}),C("div",{css:At.headerActions,children:[y&&r("a",{href:y,target:"_blank",rel:"noopener noreferrer",css:At.headerIconBtn,title:`Open ${y}`,children:r(qg,{})}),r(Eg,{}),!h&&r("button",{css:At.headerBtn,onClick:m,"aria-label":"Close Studio",children:r(Yg,{})})]})]}),r(eg,{}),C("div",{css:At.content,onDragOver:g,onDragLeave:k,onDrop:B,children:[Fe&&r("div",{css:At.dropOverlay,children:C("div",{css:At.dropMessage,children:[r("svg",{css:At.dropIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})}),r("span",{children:"Drop files to upload"})]})}),r("div",{css:At.fileBrowser,children:V==="grid"?r(pg,{}):r(vg,{})})]}),q&&r(Tg,{}),r(Og,{}),he.actionState.showDeleteConfirm&&r(Ri,{title:"Delete Files",message:`Are you sure you want to delete ${he.actionState.actionPaths.length} item${he.actionState.actionPaths.length!==1?"s":""}? This action cannot be undone.`,confirmLabel:"Delete",variant:"danger",onConfirm:he.confirmDelete,onCancel:he.cancelAction}),he.actionState.showSyncConfirm&&r(Ri,{title:"Push to CDN",message:`Push ${he.actionState.syncImageCount} image${he.actionState.syncImageCount!==1?"s":""} to Cloudflare R2?${he.actionState.syncHasRemote?" Remote images will be downloaded first.":""}${he.actionState.syncHasLocal?" After pushing, local files will be deleted.":""}`,confirmLabel:"Push",onConfirm:he.confirmSync,onCancel:he.cancelAction}),he.actionState.showProcessConfirm&&r(Bg,{imageCount:he.actionState.actionPaths.length,mode:he.actionState.processMode,onModeChange:he.setProcessMode,onConfirm:he.confirmProcess,onCancel:he.cancelAction}),he.actionState.showMoveModal&&r(Sh,{selectedItems:new Set(he.actionState.actionPaths),currentPath:D,onMove:Ce=>he.confirmMove(Ce),onCancel:he.cancelAction}),he.actionState.showProgress&&r(Zs,{title:he.actionState.progressTitle,progress:he.actionState.progressState,onStop:he.stopProcessing,onDeleteOrphans:he.deleteOrphans,onClose:he.closeProgress})]})})}var Ug={name:"1cm5yut",styles:"display:flex;gap:12px;justify-content:flex-end"},Hg={name:"yr7p8l",styles:"display:flex;gap:8px;margin-bottom:16px"},Ng={name:"1ca3l8d",styles:"position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:10000"};function Bg({imageCount:o,mode:s,onModeChange:h,onConfirm:u,onCancel:y}){const m={overlay:Ng,container:b("background:",f.surface,";border-radius:12px;padding:24px;max-width:420px;width:90%;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);",""),title:b("font-size:",K.lg,";font-weight:600;color:",f.text,";margin:0 0 16px;",""),modeToggle:Hg,modeBtn:b("flex:1;padding:10px 16px;border:2px solid ",f.border,";border-radius:8px;background:",f.background,";color:",f.textSecondary,";font-size:",K.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{border-color:",f.borderHover,";}",""),modeBtnActive:b("border-color:",f.primary,";background:rgba(99, 91, 255, 0.1);color:",f.primary,";",""),modeBtnDanger:b("border-color:",f.danger,";background:rgba(239, 68, 68, 0.1);color:",f.danger,";",""),message:b("font-size:",K.base,";color:",f.textSecondary,";margin:0 0 20px;line-height:1.5;",""),actions:Ug,cancelBtn:b("padding:10px 20px;border:1px solid ",f.border,";border-radius:8px;background:",f.background,";color:",f.text,";font-size:",K.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{background:",f.surfaceHover,";border-color:",f.borderHover,";}",""),confirmBtn:b("padding:10px 20px;border:none;border-radius:8px;background:",f.primary,";color:white;font-size:",K.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{background:",f.primaryHover,";}",""),confirmBtnDanger:b("background:",f.danger,";&:hover{background:#dc2626;}","")},D=s==="remove",L="Process Images",O=D?`Remove generated thumbnails for ${o} image${o!==1?"s":""}? Original images will be kept.`:`Generate thumbnails for ${o} image${o!==1?"s":""}?`,x=D?"Remove":"Process";return r("div",{css:m.overlay,onClick:y,children:C("div",{css:m.container,onClick:G=>G.stopPropagation(),children:[r("h2",{css:m.title,children:L}),C("div",{css:m.modeToggle,children:[r("button",{css:[m.modeBtn,s==="generate"&&m.modeBtnActive,"",""],onClick:()=>h("generate"),children:"Generate Thumbnails"}),r("button",{css:[m.modeBtn,s==="remove"&&m.modeBtnDanger,"",""],onClick:()=>h("remove"),children:"Remove Thumbnails"})]}),r("p",{css:m.message,children:O}),C("div",{css:m.actions,children:[r("button",{css:m.cancelBtn,onClick:y,children:"Cancel"}),r("button",{css:[m.confirmBtn,D&&m.confirmBtnDanger,"",""],onClick:u,children:x})]})]})})}function jg({currentPath:o,onNavigate:s,projectName:h}){const u=o.split("/").filter(Boolean),y=u.map((m,D)=>({name:D===0&&m==="public"&&h?h:m,path:u.slice(0,D+1).join("/")}));return r("div",{css:At.breadcrumbs,children:y.map((m,D)=>C("span",{style:{display:"flex",alignItems:"center",gap:6},children:[D>0&&r("span",{css:At.breadcrumbSeparator,children:"/"}),D===y.length-1?r("span",{css:At.breadcrumbCurrent,children:m.name}):r("span",{css:At.breadcrumbItem,onClick:()=>s(m.path),children:m.name})]},m.path))})}function qg(){return C("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[r("circle",{cx:"12",cy:"12",r:"10"}),r("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),r("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}function Yg(){return C("svg",{css:At.headerIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[r("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Mh=document.getElementById("root");if(!Mh)throw new Error("Root element not found");const Gg=window.__STUDIO_WORKSPACE__||"Unknown",Vg=window.__STUDIO_SITE_URL__||"";Y1.createRoot(Mh).render(r(A.StrictMode,{children:r("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"#0a0a0a"},children:r(Lg,{isVisible:!0,standaloneMode:!0,workspacePath:Gg,siteUrl:Vg})})}));