@gallop.software/studio 2.3.24 → 2.3.25

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,79 @@
1
+ function Nm(o,s){for(var h=0;h<s.length;h++){const u=s[h];if(typeof u!="string"&&!Array.isArray(u)){for(const p in u)if(p!=="default"&&!(p in o)){const g=Object.getOwnPropertyDescriptor(u,p);g&&Object.defineProperty(o,p,g.get?g:{enumerable:!0,get:()=>u[p]})}}}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 p of document.querySelectorAll('link[rel="modulepreload"]'))u(p);new MutationObserver(p=>{for(const g of p)if(g.type==="childList")for(const _ of g.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&u(_)}).observe(document,{childList:!0,subtree:!0});function h(p){const g={};return p.integrity&&(g.integrity=p.integrity),p.referrerPolicy&&(g.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?g.credentials="include":p.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function u(p){if(p.ep)return;p.ep=!0;const g=h(p);fetch(p.href,g)}})();function Bm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var _s={exports:{}},Oi={};var q0;function jm(){if(q0)return Oi;q0=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function h(u,p,g){var _=null;if(g!==void 0&&(_=""+g),p.key!==void 0&&(_=""+p.key),"key"in p){g={};for(var R in p)R!=="key"&&(g[R]=p[R])}else g=p;return p=g.ref,{$$typeof:o,type:u,key:_,ref:p!==void 0?p:null,props:g}}return Oi.Fragment=s,Oi.jsx=h,Oi.jsxs=h,Oi}var Y0;function qm(){return Y0||(Y0=1,_s.exports=jm()),_s.exports}var Hi=qm(),ks={exports:{}},De={};var G0;function Ym(){if(G0)return De;G0=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),_=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.iterator;function ae(y){return y===null||typeof y!="object"?null:(y=K&&y[K]||y["@@iterator"],typeof y=="function"?y:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,me={};function ee(y,k,Q){this.props=y,this.context=k,this.refs=me,this.updater=Q||U}ee.prototype.isReactComponent={},ee.prototype.setState=function(y,k){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,k,"setState")},ee.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function fe(){}fe.prototype=ee.prototype;function le(y,k,Q){this.props=y,this.context=k,this.refs=me,this.updater=Q||U}var ne=le.prototype=new fe;ne.constructor=le,X(ne,ee.prototype),ne.isPureReactComponent=!0;var D=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},be=Object.prototype.hasOwnProperty;function Re(y,k,Q){var q=Q.ref;return{$$typeof:o,type:y,key:k,ref:q!==void 0?q:null,props:Q}}function ke(y,k){return Re(y.type,k,y.props)}function Be(y){return typeof y=="object"&&y!==null&&y.$$typeof===o}function He(y){var k={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(Q){return k[Q]})}var Fe=/\/+/g;function We(y,k){return typeof y=="object"&&y!==null&&y.key!=null?He(""+y.key):k.toString(36)}function _e(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(V,V):(y.status="pending",y.then(function(k){y.status==="pending"&&(y.status="fulfilled",y.value=k)},function(k){y.status==="pending"&&(y.status="rejected",y.reason=k)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function A(y,k,Q,q,ye){var W=typeof y;(W==="undefined"||W==="boolean")&&(y=null);var Ne=!1;if(y===null)Ne=!0;else switch(W){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(y.$$typeof){case o:case s:Ne=!0;break;case G:return Ne=y._init,A(Ne(y._payload),k,Q,q,ye)}}if(Ne)return ye=ye(y),Ne=q===""?"."+We(y,0):q,D(ye)?(Q="",Ne!=null&&(Q=Ne.replace(Fe,"$&/")+"/"),A(ye,k,Q,"",function(xl){return xl})):ye!=null&&(Be(ye)&&(ye=ke(ye,Q+(ye.key==null||y&&y.key===ye.key?"":(""+ye.key).replace(Fe,"$&/")+"/")+Ne)),k.push(ye)),1;Ne=0;var pt=q===""?".":q+":";if(D(y))for(var at=0;at<y.length;at++)q=y[at],W=pt+We(q,at),Ne+=A(q,k,Q,W,ye);else if(at=ae(y),typeof at=="function")for(y=at.call(y),at=0;!(q=y.next()).done;)q=q.value,W=pt+We(q,at++),Ne+=A(q,k,Q,W,ye);else if(W==="object"){if(typeof y.then=="function")return A(_e(y),k,Q,q,ye);throw k=String(y),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function j(y,k,Q){if(y==null)return y;var q=[],ye=0;return A(y,q,"","",function(W){return k.call(Q,W,ye++)}),q}function J(y){if(y._status===-1){var k=y._result;k=k(),k.then(function(Q){(y._status===0||y._status===-1)&&(y._status=1,y._result=Q)},function(Q){(y._status===0||y._status===-1)&&(y._status=2,y._result=Q)}),y._status===-1&&(y._status=0,y._result=k)}if(y._status===1)return y._result.default;throw y._result}var ge=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},Se={map:j,forEach:function(y,k,Q){j(y,function(){k.apply(this,arguments)},Q)},count:function(y){var k=0;return j(y,function(){k++}),k},toArray:function(y){return j(y,function(k){return k})||[]},only:function(y){if(!Be(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return De.Activity=B,De.Children=Se,De.Component=ee,De.Fragment=h,De.Profiler=p,De.PureComponent=le,De.StrictMode=u,De.Suspense=L,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,De.__COMPILER_RUNTIME={__proto__:null,c:function(y){return Y.H.useMemoCache(y)}},De.cache=function(y){return function(){return y.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(y,k,Q){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var q=X({},y.props),ye=y.key;if(k!=null)for(W in k.key!==void 0&&(ye=""+k.key),k)!be.call(k,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&k.ref===void 0||(q[W]=k[W]);var W=arguments.length-2;if(W===1)q.children=Q;else if(1<W){for(var Ne=Array(W),pt=0;pt<W;pt++)Ne[pt]=arguments[pt+2];q.children=Ne}return Re(y.type,ye,q)},De.createContext=function(y){return y={$$typeof:_,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:g,_context:y},y},De.createElement=function(y,k,Q){var q,ye={},W=null;if(k!=null)for(q in k.key!==void 0&&(W=""+k.key),k)be.call(k,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(ye[q]=k[q]);var Ne=arguments.length-2;if(Ne===1)ye.children=Q;else if(1<Ne){for(var pt=Array(Ne),at=0;at<Ne;at++)pt[at]=arguments[at+2];ye.children=pt}if(y&&y.defaultProps)for(q in Ne=y.defaultProps,Ne)ye[q]===void 0&&(ye[q]=Ne[q]);return Re(y,W,ye)},De.createRef=function(){return{current:null}},De.forwardRef=function(y){return{$$typeof:R,render:y}},De.isValidElement=Be,De.lazy=function(y){return{$$typeof:G,_payload:{_status:-1,_result:y},_init:J}},De.memo=function(y,k){return{$$typeof:S,type:y,compare:k===void 0?null:k}},De.startTransition=function(y){var k=Y.T,Q={};Y.T=Q;try{var q=y(),ye=Y.S;ye!==null&&ye(Q,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(V,ge)}catch(W){ge(W)}finally{k!==null&&Q.types!==null&&(k.types=Q.types),Y.T=k}},De.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},De.use=function(y){return Y.H.use(y)},De.useActionState=function(y,k,Q){return Y.H.useActionState(y,k,Q)},De.useCallback=function(y,k){return Y.H.useCallback(y,k)},De.useContext=function(y){return Y.H.useContext(y)},De.useDebugValue=function(){},De.useDeferredValue=function(y,k){return Y.H.useDeferredValue(y,k)},De.useEffect=function(y,k){return Y.H.useEffect(y,k)},De.useEffectEvent=function(y){return Y.H.useEffectEvent(y)},De.useId=function(){return Y.H.useId()},De.useImperativeHandle=function(y,k,Q){return Y.H.useImperativeHandle(y,k,Q)},De.useInsertionEffect=function(y,k){return Y.H.useInsertionEffect(y,k)},De.useLayoutEffect=function(y,k){return Y.H.useLayoutEffect(y,k)},De.useMemo=function(y,k){return Y.H.useMemo(y,k)},De.useOptimistic=function(y,k){return Y.H.useOptimistic(y,k)},De.useReducer=function(y,k,Q){return Y.H.useReducer(y,k,Q)},De.useRef=function(y){return Y.H.useRef(y)},De.useState=function(y){return Y.H.useState(y)},De.useSyncExternalStore=function(y,k,Q){return Y.H.useSyncExternalStore(y,k,Q)},De.useTransition=function(){return Y.H.useTransition()},De.version="19.2.4",De}var V0;function Qs(){return V0||(V0=1,ks.exports=Ym()),ks.exports}var M=Qs();const uh=Bm(M),X0=Nm({__proto__:null,default:uh},[M]);function Gm(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 Vm(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 Xm=(function(){function o(h){var u=this;this._insertTag=function(p){var g;u.tags.length===0?u.insertionPoint?g=u.insertionPoint.nextSibling:u.prepend?g=u.container.firstChild:g=u.before:g=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(p,g),u.tags.push(p)},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(Vm(this));var p=this.tags[this.tags.length-1];if(this.isSpeedy){var g=Gm(p);try{g.insertRule(u,g.cssRules.length)}catch{}}else p.appendChild(document.createTextNode(u));this.ctr++},s.flush=function(){this.tags.forEach(function(u){var p;return(p=u.parentNode)==null?void 0:p.removeChild(u)}),this.tags=[],this.ctr=0},o})(),Nt="-ms-",fr="-moz-",Ke="-webkit-",fh="comm",Zs="rule",Ks="decl",Qm="@import",dh="@keyframes",Zm="@layer",Km=Math.abs,dr=String.fromCharCode,Jm=Object.assign;function Fm(o,s){return Lt(o,0)^45?(((s<<2^Lt(o,0))<<2^Lt(o,1))<<2^Lt(o,2))<<2^Lt(o,3):0}function hh(o){return o.trim()}function $m(o,s){return(o=s.exec(o))?o[0]:o}function Je(o,s,h){return o.replace(s,h)}function Ys(o,s){return o.indexOf(s)}function Lt(o,s){return o.charCodeAt(s)|0}function Ni(o,s,h){return o.slice(s,h)}function kl(o){return o.length}function Js(o){return o.length}function rr(o,s){return s.push(o),o}function Wm(o,s){return o.map(s).join("")}var hr=1,ja=1,ph=0,Wt=0,wt=0,Ya="";function pr(o,s,h,u,p,g,_){return{value:o,root:s,parent:h,type:u,props:p,children:g,line:hr,column:ja,length:_,return:""}}function Ri(o,s){return Jm(pr("",null,null,"",null,null,0),o,{length:-o.length},s)}function Im(){return wt}function Pm(){return wt=Wt>0?Lt(Ya,--Wt):0,ja--,wt===10&&(ja=1,hr--),wt}function rl(){return wt=Wt<ph?Lt(Ya,Wt++):0,ja++,wt===10&&(ja=1,hr++),wt}function Rl(){return Lt(Ya,Wt)}function cr(){return Wt}function qi(o,s){return Ni(Ya,o,s)}function Bi(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 mh(o){return hr=ja=1,ph=kl(Ya=o),Wt=0,[]}function gh(o){return Ya="",o}function sr(o){return hh(qi(Wt-1,Gs(o===91?o+2:o===40?o+1:o)))}function e1(o){for(;(wt=Rl())&&wt<33;)rl();return Bi(o)>2||Bi(wt)>3?"":" "}function t1(o,s){for(;--s&&rl()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return qi(o,cr()+(s<6&&Rl()==32&&rl()==32))}function Gs(o){for(;rl();)switch(wt){case o:return Wt;case 34:case 39:o!==34&&o!==39&&Gs(wt);break;case 40:o===41&&Gs(o);break;case 92:rl();break}return Wt}function l1(o,s){for(;rl()&&o+wt!==57;)if(o+wt===84&&Rl()===47)break;return"/*"+qi(s,Wt-1)+"*"+dr(o===47?o:rl())}function n1(o){for(;!Bi(Rl());)rl();return qi(o,Wt)}function a1(o){return gh(ur("",null,null,null,[""],o=mh(o),0,[0],o))}function ur(o,s,h,u,p,g,_,R,L){for(var S=0,G=0,B=_,K=0,ae=0,U=0,X=1,me=1,ee=1,fe=0,le="",ne=p,D=g,V=u,Y=le;me;)switch(U=fe,fe=rl()){case 40:if(U!=108&&Lt(Y,B-1)==58){Ys(Y+=Je(sr(fe),"&","&\f"),"&\f")!=-1&&(ee=-1);break}case 34:case 39:case 91:Y+=sr(fe);break;case 9:case 10:case 13:case 32:Y+=e1(U);break;case 92:Y+=t1(cr()-1,7);continue;case 47:switch(Rl()){case 42:case 47:rr(i1(l1(rl(),cr()),s,h),L);break;default:Y+="/"}break;case 123*X:R[S++]=kl(Y)*ee;case 125*X:case 59:case 0:switch(fe){case 0:case 125:me=0;case 59+G:ee==-1&&(Y=Je(Y,/\f/g,"")),ae>0&&kl(Y)-B&&rr(ae>32?Z0(Y+";",u,h,B-1):Z0(Je(Y," ","")+";",u,h,B-2),L);break;case 59:Y+=";";default:if(rr(V=Q0(Y,s,h,S,G,p,R,le,ne=[],D=[],B),g),fe===123)if(G===0)ur(Y,s,V,V,ne,g,B,R,D);else switch(K===99&&Lt(Y,3)===110?100:K){case 100:case 108:case 109:case 115:ur(o,V,V,u&&rr(Q0(o,V,V,0,0,p,R,le,p,ne=[],B),D),p,D,B,R,u?ne:D);break;default:ur(Y,V,V,V,[""],D,0,R,D)}}S=G=ae=0,X=ee=1,le=Y="",B=_;break;case 58:B=1+kl(Y),ae=U;default:if(X<1){if(fe==123)--X;else if(fe==125&&X++==0&&Pm()==125)continue}switch(Y+=dr(fe),fe*X){case 38:ee=G>0?1:(Y+="\f",-1);break;case 44:R[S++]=(kl(Y)-1)*ee,ee=1;break;case 64:Rl()===45&&(Y+=sr(rl())),K=Rl(),G=B=kl(le=Y+=n1(cr())),fe++;break;case 45:U===45&&kl(Y)==2&&(X=0)}}return g}function Q0(o,s,h,u,p,g,_,R,L,S,G){for(var B=p-1,K=p===0?g:[""],ae=Js(K),U=0,X=0,me=0;U<u;++U)for(var ee=0,fe=Ni(o,B+1,B=Km(X=_[U])),le=o;ee<ae;++ee)(le=hh(X>0?K[ee]+" "+fe:Je(fe,/&\f/g,K[ee])))&&(L[me++]=le);return pr(o,s,h,p===0?Zs:R,L,S,G)}function i1(o,s,h){return pr(o,s,h,fh,dr(Im()),Ni(o,2,-2),0)}function Z0(o,s,h,u){return pr(o,s,h,Ks,Ni(o,0,u),Ni(o,u+1,-1),u)}function Ba(o,s){for(var h="",u=Js(o),p=0;p<u;p++)h+=s(o[p],p,o,s)||"";return h}function o1(o,s,h,u){switch(o.type){case Zm:if(o.children.length)break;case Qm:case Ks:return o.return=o.return||o.value;case fh:return"";case dh:return o.return=o.value+"{"+Ba(o.children,u)+"}";case Zs:o.value=o.props.join(",")}return kl(h=Ba(o.children,u))?o.return=o.value+"{"+h+"}":""}function r1(o){var s=Js(o);return function(h,u,p,g){for(var _="",R=0;R<s;R++)_+=o[R](h,u,p,g)||"";return _}}function c1(o){return function(s){s.root||(s=s.return)&&o(s)}}function s1(o){var s=Object.create(null);return function(h){return s[h]===void 0&&(s[h]=o(h)),s[h]}}var u1=function(s,h,u){for(var p=0,g=0;p=g,g=Rl(),p===38&&g===12&&(h[u]=1),!Bi(g);)rl();return qi(s,Wt)},f1=function(s,h){var u=-1,p=44;do switch(Bi(p)){case 0:p===38&&Rl()===12&&(h[u]=1),s[u]+=u1(Wt-1,h,u);break;case 2:s[u]+=sr(p);break;case 4:if(p===44){s[++u]=Rl()===58?"&\f":"",h[u]=s[u].length;break}default:s[u]+=dr(p)}while(p=rl());return s},d1=function(s,h){return gh(f1(mh(s),h))},K0=new WeakMap,h1=function(s){if(!(s.type!=="rule"||!s.parent||s.length<1)){for(var h=s.value,u=s.parent,p=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&&!K0.get(u))&&!p){K0.set(s,!0);for(var g=[],_=d1(h,g),R=u.props,L=0,S=0;L<_.length;L++)for(var G=0;G<R.length;G++,S++)s.props[S]=g[L]?_[L].replace(/&\f/g,R[G]):R[G]+" "+_[L]}}},p1=function(s){if(s.type==="decl"){var h=s.value;h.charCodeAt(0)===108&&h.charCodeAt(2)===98&&(s.return="",s.value="")}};function yh(o,s){switch(Fm(o,s)){case 5103:return Ke+"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 Ke+o+o;case 5349:case 4246:case 4810:case 6968:case 2756:return Ke+o+fr+o+Nt+o+o;case 6828:case 4268:return Ke+o+Nt+o+o;case 6165:return Ke+o+Nt+"flex-"+o+o;case 5187:return Ke+o+Je(o,/(\w+).+(:[^]+)/,Ke+"box-$1$2"+Nt+"flex-$1$2")+o;case 5443:return Ke+o+Nt+"flex-item-"+Je(o,/flex-|-self/,"")+o;case 4675:return Ke+o+Nt+"flex-line-pack"+Je(o,/align-content|flex-|-self/,"")+o;case 5548:return Ke+o+Nt+Je(o,"shrink","negative")+o;case 5292:return Ke+o+Nt+Je(o,"basis","preferred-size")+o;case 6060:return Ke+"box-"+Je(o,"-grow","")+Ke+o+Nt+Je(o,"grow","positive")+o;case 4554:return Ke+Je(o,/([^-])(transform)/g,"$1"+Ke+"$2")+o;case 6187:return Je(Je(Je(o,/(zoom-|grab)/,Ke+"$1"),/(image-set)/,Ke+"$1"),o,"")+o;case 5495:case 3959:return Je(o,/(image-set\([^]*)/,Ke+"$1$`$1");case 4968:return Je(Je(o,/(.+:)(flex-)?(.*)/,Ke+"box-pack:$3"+Nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ke+o+o;case 4095:case 3583:case 4068:case 2532:return Je(o,/(.+)-inline(.+)/,Ke+"$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(kl(o)-1-s>6)switch(Lt(o,s+1)){case 109:if(Lt(o,s+4)!==45)break;case 102:return Je(o,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+fr+(Lt(o,s+3)==108?"$3":"$2-$3"))+o;case 115:return~Ys(o,"stretch")?yh(Je(o,"stretch","fill-available"),s)+o:o}break;case 4949:if(Lt(o,s+1)!==115)break;case 6444:switch(Lt(o,kl(o)-3-(~Ys(o,"!important")&&10))){case 107:return Je(o,":",":"+Ke)+o;case 101:return Je(o,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(Lt(o,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+Nt+"$2box$3")+o}break;case 5936:switch(Lt(o,s+11)){case 114:return Ke+o+Nt+Je(o,/[svh]\w+-[tblr]{2}/,"tb")+o;case 108:return Ke+o+Nt+Je(o,/[svh]\w+-[tblr]{2}/,"tb-rl")+o;case 45:return Ke+o+Nt+Je(o,/[svh]\w+-[tblr]{2}/,"lr")+o}return Ke+o+Nt+o+o}return o}var m1=function(s,h,u,p){if(s.length>-1&&!s.return)switch(s.type){case Ks:s.return=yh(s.value,s.length);break;case dh:return Ba([Ri(s,{value:Je(s.value,"@","@"+Ke)})],p);case Zs:if(s.length)return Wm(s.props,function(g){switch($m(g,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ba([Ri(s,{props:[Je(g,/:(read-\w+)/,":"+fr+"$1")]})],p);case"::placeholder":return Ba([Ri(s,{props:[Je(g,/:(plac\w+)/,":"+Ke+"input-$1")]}),Ri(s,{props:[Je(g,/:(plac\w+)/,":"+fr+"$1")]}),Ri(s,{props:[Je(g,/:(plac\w+)/,Nt+"input-$1")]})],p)}return""})}},g1=[m1],y1=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 me=X.getAttribute("data-emotion");me.indexOf(" ")!==-1&&(document.head.appendChild(X),X.setAttribute("data-s",""))})}var p=s.stylisPlugins||g1,g={},_,R=[];_=s.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+h+' "]'),function(X){for(var me=X.getAttribute("data-emotion").split(" "),ee=1;ee<me.length;ee++)g[me[ee]]=!0;R.push(X)});var L,S=[h1,p1];{var G,B=[o1,c1(function(X){G.insert(X)})],K=r1(S.concat(p,B)),ae=function(me){return Ba(a1(me),K)};L=function(me,ee,fe,le){G=fe,ae(me?me+"{"+ee.styles+"}":ee.styles),le&&(U.inserted[ee.name]=!0)}}var U={key:h,sheet:new Xm({key:h,container:_,nonce:s.nonce,speedy:s.speedy,prepend:s.prepend,insertionPoint:s.insertionPoint}),nonce:s.nonce,inserted:g,registered:{},insert:L};return U.sheet.hydrate(R),U},Os={exports:{}},$e={};var J0;function v1(){if(J0)return $e;J0=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,p=o?Symbol.for("react.strict_mode"):60108,g=o?Symbol.for("react.profiler"):60114,_=o?Symbol.for("react.provider"):60109,R=o?Symbol.for("react.context"):60110,L=o?Symbol.for("react.async_mode"):60111,S=o?Symbol.for("react.concurrent_mode"):60111,G=o?Symbol.for("react.forward_ref"):60112,B=o?Symbol.for("react.suspense"):60113,K=o?Symbol.for("react.suspense_list"):60120,ae=o?Symbol.for("react.memo"):60115,U=o?Symbol.for("react.lazy"):60116,X=o?Symbol.for("react.block"):60121,me=o?Symbol.for("react.fundamental"):60117,ee=o?Symbol.for("react.responder"):60118,fe=o?Symbol.for("react.scope"):60119;function le(D){if(typeof D=="object"&&D!==null){var V=D.$$typeof;switch(V){case s:switch(D=D.type,D){case L:case S:case u:case g:case p:case B:return D;default:switch(D=D&&D.$$typeof,D){case R:case G:case U:case ae:case _:return D;default:return V}}case h:return V}}}function ne(D){return le(D)===S}return $e.AsyncMode=L,$e.ConcurrentMode=S,$e.ContextConsumer=R,$e.ContextProvider=_,$e.Element=s,$e.ForwardRef=G,$e.Fragment=u,$e.Lazy=U,$e.Memo=ae,$e.Portal=h,$e.Profiler=g,$e.StrictMode=p,$e.Suspense=B,$e.isAsyncMode=function(D){return ne(D)||le(D)===L},$e.isConcurrentMode=ne,$e.isContextConsumer=function(D){return le(D)===R},$e.isContextProvider=function(D){return le(D)===_},$e.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===s},$e.isForwardRef=function(D){return le(D)===G},$e.isFragment=function(D){return le(D)===u},$e.isLazy=function(D){return le(D)===U},$e.isMemo=function(D){return le(D)===ae},$e.isPortal=function(D){return le(D)===h},$e.isProfiler=function(D){return le(D)===g},$e.isStrictMode=function(D){return le(D)===p},$e.isSuspense=function(D){return le(D)===B},$e.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===u||D===S||D===g||D===p||D===B||D===K||typeof D=="object"&&D!==null&&(D.$$typeof===U||D.$$typeof===ae||D.$$typeof===_||D.$$typeof===R||D.$$typeof===G||D.$$typeof===me||D.$$typeof===ee||D.$$typeof===fe||D.$$typeof===X)},$e.typeOf=le,$e}var F0;function b1(){return F0||(F0=1,Os.exports=v1()),Os.exports}var Rs,$0;function x1(){if($0)return Rs;$0=1;var o=b1(),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},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g={};g[o.ForwardRef]=u,g[o.Memo]=p;function _(U){return o.isMemo(U)?p:g[U.$$typeof]||s}var R=Object.defineProperty,L=Object.getOwnPropertyNames,S=Object.getOwnPropertySymbols,G=Object.getOwnPropertyDescriptor,B=Object.getPrototypeOf,K=Object.prototype;function ae(U,X,me){if(typeof X!="string"){if(K){var ee=B(X);ee&&ee!==K&&ae(U,ee,me)}var fe=L(X);S&&(fe=fe.concat(S(X)));for(var le=_(U),ne=_(X),D=0;D<fe.length;++D){var V=fe[D];if(!h[V]&&!(me&&me[V])&&!(ne&&ne[V])&&!(le&&le[V])){var Y=G(X,V);try{R(U,V,Y)}catch{}}}}return U}return Rs=ae,Rs}x1();var S1=!0;function C1(o,s,h){var u="";return h.split(" ").forEach(function(p){o[p]!==void 0?s.push(o[p]+";"):p&&(u+=p+" ")}),u}var vh=function(s,h,u){var p=s.key+"-"+h.name;(u===!1||S1===!1)&&s.registered[p]===void 0&&(s.registered[p]=h.styles)},w1=function(s,h,u){vh(s,h,u);var p=s.key+"-"+h.name;if(s.inserted[h.name]===void 0){var g=h;do s.insert(h===g?"."+p:"",g,s.sheet,!0),g=g.next;while(g!==void 0)}};function z1(o){for(var s=0,h,u=0,p=o.length;p>=4;++u,p-=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(p){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,bh=function(s){return s.charCodeAt(1)===45},W0=function(s){return s!=null&&typeof s!="boolean"},Ls=s1(function(o){return bh(o)?o:o.replace(T1,"-$&").toLowerCase()}),I0=function(s,h){switch(s){case"animation":case"animationName":if(typeof h=="string")return h.replace(A1,function(u,p,g){return Ol={name:p,styles:g,next:Ol},p})}return M1[s]!==1&&!bh(s)&&typeof h=="number"&&h!==0?h+"px":h};function ji(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 p=h;if(p.anim===1)return Ol={name:p.name,styles:p.styles,next:Ol},p.name;var g=h;if(g.styles!==void 0){var _=g.next;if(_!==void 0)for(;_!==void 0;)Ol={name:_.name,styles:_.styles,next:Ol},_=_.next;var R=g.styles+";";return R}return E1(o,s,h)}case"function":{if(o!==void 0){var L=Ol,S=h(o);return Ol=L,ji(o,s,S)}break}}var G=h;return G}function E1(o,s,h){var u="";if(Array.isArray(h))for(var p=0;p<h.length;p++)u+=ji(o,s,h[p])+";";else for(var g in h){var _=h[g];if(typeof _!="object"){var R=_;W0(R)&&(u+=Ls(g)+":"+I0(g,R)+";")}else if(Array.isArray(_)&&typeof _[0]=="string"&&s==null)for(var L=0;L<_.length;L++)W0(_[L])&&(u+=Ls(g)+":"+I0(g,_[L])+";");else{var S=ji(o,s,_);switch(g){case"animation":case"animationName":{u+=Ls(g)+":"+S+";";break}default:u+=g+"{"+S+"}"}}}return u}var P0=/label:\s*([^\s;{]+)\s*(;|$)/g,Ol;function xh(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,p="";Ol=void 0;var g=o[0];if(g==null||g.raw===void 0)u=!1,p+=ji(h,s,g);else{var _=g;p+=_[0]}for(var R=1;R<o.length;R++)if(p+=ji(h,s,o[R]),u){var L=g;p+=L[R]}P0.lastIndex=0;for(var S="",G;(G=P0.exec(p))!==null;)S+="-"+G[1];var B=z1(p)+S;return{name:B,styles:p,next:Ol}}var D1=function(s){return s()},_1=X0.useInsertionEffect?X0.useInsertionEffect:!1,k1=_1||D1,Sh=M.createContext(typeof HTMLElement<"u"?y1({key:"css"}):null);Sh.Provider;var O1=function(s){return M.forwardRef(function(h,u){var p=M.useContext(Sh);return s(h,p,u)})},R1=M.createContext({}),Yi={}.hasOwnProperty,Vs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fs=function(s,h){var u={};for(var p in h)Yi.call(h,p)&&(u[p]=h[p]);return u[Vs]=s,u},L1=function(s){var h=s.cache,u=s.serialized,p=s.isStringTag;return vh(h,u,p),k1(function(){return w1(h,u,p)}),null},U1=O1(function(o,s,h){var u=o.css;typeof u=="string"&&s.registered[u]!==void 0&&(u=s.registered[u]);var p=o[Vs],g=[u],_="";typeof o.className=="string"?_=C1(s.registered,g,o.className):o.className!=null&&(_=o.className+" ");var R=xh(g,void 0,M.useContext(R1));_+=s.key+"-"+R.name;var L={};for(var S in o)Yi.call(o,S)&&S!=="css"&&S!==Vs&&(L[S]=o[S]);return L.className=_,h&&(L.ref=h),M.createElement(M.Fragment,null,M.createElement(L1,{cache:s,serialized:R,isStringTag:typeof p=="string"}),M.createElement(p,L))}),$s=U1,Ct=Hi.Fragment,c=function(s,h,u){return Yi.call(h,"css")?Hi.jsx($s,Fs(s,h),u):Hi.jsx(s,h,u)},x=function(s,h,u){return Yi.call(h,"css")?Hi.jsxs($s,Fs(s,h),u):Hi.jsxs(s,h,u)},Us={exports:{}},Li={},Hs={exports:{}},Ns={};var eh;function H1(){return eh||(eh=1,(function(o){function s(A,j){var J=A.length;A.push(j);e:for(;0<J;){var ge=J-1>>>1,Se=A[ge];if(0<p(Se,j))A[ge]=j,A[J]=Se,J=ge;else break e}}function h(A){return A.length===0?null:A[0]}function u(A){if(A.length===0)return null;var j=A[0],J=A.pop();if(J!==j){A[0]=J;e:for(var ge=0,Se=A.length,y=Se>>>1;ge<y;){var k=2*(ge+1)-1,Q=A[k],q=k+1,ye=A[q];if(0>p(Q,J))q<Se&&0>p(ye,Q)?(A[ge]=ye,A[q]=J,ge=q):(A[ge]=Q,A[k]=J,ge=k);else if(q<Se&&0>p(ye,J))A[ge]=ye,A[q]=J,ge=q;else break e}}return j}function p(A,j){var J=A.sortIndex-j.sortIndex;return J!==0?J:A.id-j.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;o.unstable_now=function(){return g.now()}}else{var _=Date,R=_.now();o.unstable_now=function(){return _.now()-R}}var L=[],S=[],G=1,B=null,K=3,ae=!1,U=!1,X=!1,me=!1,ee=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,le=typeof setImmediate<"u"?setImmediate:null;function ne(A){for(var j=h(S);j!==null;){if(j.callback===null)u(S);else if(j.startTime<=A)u(S),j.sortIndex=j.expirationTime,s(L,j);else break;j=h(S)}}function D(A){if(X=!1,ne(A),!U)if(h(L)!==null)U=!0,V||(V=!0,He());else{var j=h(S);j!==null&&_e(D,j.startTime-A)}}var V=!1,Y=-1,be=5,Re=-1;function ke(){return me?!0:!(o.unstable_now()-Re<be)}function Be(){if(me=!1,V){var A=o.unstable_now();Re=A;var j=!0;try{e:{U=!1,X&&(X=!1,fe(Y),Y=-1),ae=!0;var J=K;try{t:{for(ne(A),B=h(L);B!==null&&!(B.expirationTime>A&&ke());){var ge=B.callback;if(typeof ge=="function"){B.callback=null,K=B.priorityLevel;var Se=ge(B.expirationTime<=A);if(A=o.unstable_now(),typeof Se=="function"){B.callback=Se,ne(A),j=!0;break t}B===h(L)&&u(L),ne(A)}else u(L);B=h(L)}if(B!==null)j=!0;else{var y=h(S);y!==null&&_e(D,y.startTime-A),j=!1}}break e}finally{B=null,K=J,ae=!1}j=void 0}}finally{j?He():V=!1}}}var He;if(typeof le=="function")He=function(){le(Be)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,We=Fe.port2;Fe.port1.onmessage=Be,He=function(){We.postMessage(null)}}else He=function(){ee(Be,0)};function _e(A,j){Y=ee(function(){A(o.unstable_now())},j)}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(A){A.callback=null},o.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):be=0<A?Math.floor(1e3/A):5},o.unstable_getCurrentPriorityLevel=function(){return K},o.unstable_next=function(A){switch(K){case 1:case 2:case 3:var j=3;break;default:j=K}var J=K;K=j;try{return A()}finally{K=J}},o.unstable_requestPaint=function(){me=!0},o.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=K;K=A;try{return j()}finally{K=J}},o.unstable_scheduleCallback=function(A,j,J){var ge=o.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ge+J:ge):J=ge,A){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=J+Se,A={id:G++,callback:j,priorityLevel:A,startTime:J,expirationTime:Se,sortIndex:-1},J>ge?(A.sortIndex=J,s(S,A),h(L)===null&&A===h(S)&&(X?(fe(Y),Y=-1):X=!0,_e(D,J-ge))):(A.sortIndex=Se,s(L,A),U||ae||(U=!0,V||(V=!0,He()))),A},o.unstable_shouldYield=ke,o.unstable_wrapCallback=function(A){var j=K;return function(){var J=K;K=j;try{return A.apply(this,arguments)}finally{K=J}}}})(Ns)),Ns}var th;function N1(){return th||(th=1,Hs.exports=H1()),Hs.exports}var Bs={exports:{}},Ht={};var lh;function B1(){if(lh)return Ht;lh=1;var o=Qs();function s(L){var S="https://react.dev/errors/"+L;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)S+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+L+"; visit "+S+" 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},p=Symbol.for("react.portal");function g(L,S,G){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:B==null?null:""+B,children:L,containerInfo:S,implementation:G}}var _=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(L,S){if(L==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Ht.createPortal=function(L,S){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(s(299));return g(L,S,null,G)},Ht.flushSync=function(L){var S=_.T,G=u.p;try{if(_.T=null,u.p=2,L)return L()}finally{_.T=S,u.p=G,u.d.f()}},Ht.preconnect=function(L,S){typeof L=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,u.d.C(L,S))},Ht.prefetchDNS=function(L){typeof L=="string"&&u.d.D(L)},Ht.preinit=function(L,S){if(typeof L=="string"&&S&&typeof S.as=="string"){var G=S.as,B=R(G,S.crossOrigin),K=typeof S.integrity=="string"?S.integrity:void 0,ae=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;G==="style"?u.d.S(L,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:B,integrity:K,fetchPriority:ae}):G==="script"&&u.d.X(L,{crossOrigin:B,integrity:K,fetchPriority:ae,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Ht.preinitModule=function(L,S){if(typeof L=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var G=R(S.as,S.crossOrigin);u.d.M(L,{crossOrigin:G,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&u.d.M(L)},Ht.preload=function(L,S){if(typeof L=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var G=S.as,B=R(G,S.crossOrigin);u.d.L(L,G,{crossOrigin:B,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},Ht.preloadModule=function(L,S){if(typeof L=="string")if(S){var G=R(S.as,S.crossOrigin);u.d.m(L,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:G,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else u.d.m(L)},Ht.requestFormReset=function(L){u.d.r(L)},Ht.unstable_batchedUpdates=function(L,S){return L(S)},Ht.useFormState=function(L,S,G){return _.H.useFormState(L,S,G)},Ht.useFormStatus=function(){return _.H.useHostTransitionStatus()},Ht.version="19.2.4",Ht}var nh;function j1(){if(nh)return Bs.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(),Bs.exports=B1(),Bs.exports}var ah;function q1(){if(ah)return Li;ah=1;var o=N1(),s=Qs(),h=j1();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 p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function _(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 R(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 L(e){if(g(e)!==e)throw Error(u(188))}function S(e){var t=e.alternate;if(!t){if(t=g(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 L(a),e;if(i===n)return L(a),t;i=i.sibling}throw Error(u(188))}if(l.return!==n.return)l=a,n=i;else{for(var r=!1,d=a.child;d;){if(d===l){r=!0,l=a,n=i;break}if(d===n){r=!0,n=a,l=i;break}d=d.sibling}if(!r){for(d=i.child;d;){if(d===l){r=!0,l=i,n=a;break}if(d===n){r=!0,n=i,l=a;break}d=d.sibling}if(!r)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 B=Object.assign,K=Symbol.for("react.element"),ae=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),me=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),le=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),Re=Symbol.for("react.activity"),ke=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function He(e){return e===null||typeof e!="object"?null:(e=Be&&e[Be]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case ee:return"Profiler";case me:return"StrictMode";case D:return"Suspense";case V:return"SuspenseList";case Re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case le:return e.displayName||"Context";case fe:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:We(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return We(e(t))}catch{}}return null}var _e=Array.isArray,A=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ge=[],Se=-1;function y(e){return{current:e}}function k(e){0>Se||(e.current=ge[Se],ge[Se]=null,Se--)}function Q(e,t){Se++,ge[Se]=e.current,e.current=t}var q=y(null),ye=y(null),W=y(null),Ne=y(null);function pt(e,t){switch(Q(W,t),Q(ye,e),Q(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?s0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=s0(t),e=u0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(q),Q(q,e)}function at(){k(q),k(ye),k(W)}function xl(e){e.memoizedState!==null&&Q(Ne,e);var t=q.current,l=u0(t,e.type);t!==l&&(Q(ye,e),Q(q,l))}function Ce(e){ye.current===e&&(k(q),k(ye)),Ne.current===e&&(k(Ne),Ei._currentValue=J)}var Sl,$n;function Me(e){if(Sl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Sl=t&&t[1]||"",$n=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Sl+e+$n}var zt=!1;function Bt(e,t){if(!e||zt)return"";zt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(E){var T=E}Reflect.construct(e,[],N)}else{try{N.call()}catch(E){T=E}e.call(N.prototype)}}else{try{throw Error()}catch(E){T=E}(N=e())&&typeof N.catch=="function"&&N.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(),r=i[0],d=i[1];if(r&&d){var m=r.split(`
4
+ `),z=d.split(`
5
+ `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<z.length&&!z[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===z.length)for(n=m.length-1,a=z.length-1;1<=n&&0<=a&&m[n]!==z[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==z[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==z[a]){var O=`
6
+ `+m[n].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=n&&0<=a);break}}}finally{zt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Me(l):""}function cl(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me("Lazy");case 13:return e.child!==t&&t!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return Bt(e.type,!1);case 11:return Bt(e.type.render,!1);case 1:return Bt(e.type,!0);case 31:return Me("Activity");default:return""}}function jt(e){try{var t="",l=null;do t+=cl(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var ln=Object.prototype.hasOwnProperty,Tl=o.unstable_scheduleCallback,It=o.unstable_cancelCallback,nn=o.unstable_shouldYield,Cl=o.unstable_requestPaint,Dt=o.unstable_now,gr=o.unstable_getCurrentPriorityLevel,Ga=o.unstable_ImmediatePriority,Vi=o.unstable_UserBlockingPriority,Wn=o.unstable_NormalPriority,yr=o.unstable_LowPriority,Xi=o.unstable_IdlePriority,vr=o.log,br=o.unstable_setDisableYieldValue,an=null,qt=null;function Ut(e){if(typeof vr=="function"&&br(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(an,e)}catch{}}var Yt=Math.clz32?Math.clz32:Sr,xr=Math.log,Qi=Math.LN2;function Sr(e){return e>>>=0,e===0?32:31-(xr(e)/Qi|0)|0}var In=256,Pn=262144,ea=4194304;function Ll(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 ta(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?a=Ll(n):(r&=d,r!==0?a=Ll(r):l||(l=d&~e,l!==0&&(a=Ll(l))))):(d=n&~i,d!==0?a=Ll(d):r!==0?a=Ll(r):l||(l=n&~e,l!==0&&(a=Ll(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 on(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kn(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 Zi(){var e=ea;return ea<<=1,(ea&62914560)===0&&(ea=4194304),e}function Va(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Vt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cr(e,t,l,n,a,i){var r=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,m=e.expirationTimes,z=e.hiddenUpdates;for(l=r&~l;0<l;){var O=31-Yt(l),N=1<<O;d[O]=0,m[O]=-1;var T=z[O];if(T!==null)for(z[O]=null,O=0;O<T.length;O++){var E=T[O];E!==null&&(E.lane&=-536870913)}l&=~N}n!==0&&la(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function la(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Yt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Ul(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Yt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Hl(e,t){var l=t&-t;return l=(l&42)!==0?1:na(l),(l&(e.suspendedLanes|t))!==0?0:l}function na(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 Xa(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function oe(){var e=j.p;return e!==0?e:(e=window.event,e===void 0?32:R0(e.type))}function F(e,t){var l=j.p;try{return j.p=e,t()}finally{j.p=l}}var P=Math.random().toString(36).slice(2),I="__reactFiber$"+P,ve="__reactProps$"+P,se="__reactContainer$"+P,Le="__reactEvents$"+P,Ae="__reactListeners$"+P,ue="__reactHandles$"+P,Ee="__reactResources$"+P,we="__reactMarker$"+P;function mt(e){delete e[I],delete e[ve],delete e[Le],delete e[Ae],delete e[ue]}function Tt(e){var t=e[I];if(t)return t;for(var l=e.parentNode;l;){if(t=l[se]||l[I]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=y0(e);e!==null;){if(l=e[I])return l;e=y0(e)}return t}e=l,l=e.parentNode}return null}function ct(e){if(e=e[I]||e[se]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pt(e){var t=e[Ee];return t||(t=e[Ee]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[we]=!0}var sl=new Set,Ki={};function On(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Ki[e]=t,e=0;e<t.length;e++)sl.add(t[e])}var Eh=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]*$"),Is={},Ps={};function Dh(e){return ln.call(Ps,e)?!0:ln.call(Is,e)?!1:Eh.test(e)?Ps[e]=!0:(Is[e]=!0,!1)}function Ji(e,t,l){if(Dh(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 Fi(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 Nl(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 ul(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eu(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(r){l=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wr(e){if(!e._valueTracker){var t=eu(e)?"checked":"value";e._valueTracker=_h(e,t,""+e[t])}}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=eu(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function $i(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var kh=/[\n"\\]/g;function fl(e){return e.replace(kh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zr(e,t,l,n,a,i,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ul(t)):e.value!==""+ul(t)&&(e.value=""+ul(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Mr(e,r,ul(t)):l!=null?Mr(e,r,ul(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=""+ul(d):e.removeAttribute("name")}function lu(e,t,l,n,a,i,r,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)){wr(e);return}l=l!=null?""+ul(l):"",t=t!=null?""+ul(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,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),wr(e)}function Mr(e,t,l){t==="number"&&$i(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ia(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=""+ul(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 nu(e,t,l){if(t!=null&&(t=""+ul(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ul(l):""}function au(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(u(92));if(_e(n)){if(1<n.length)throw Error(u(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=ul(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),wr(e)}function oa(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 iu(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 ou(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&&iu(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&iu(e,i,t[i])}function Tr(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"]]),Lh=/^[\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 Wi(e){return Lh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bl(){}var Ar=null;function Er(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ra=null,ca=null;function ru(e){var t=ct(e);if(t&&(e=t.stateNode)){var l=e[ve]||null;e:switch(e=t.stateNode,t.type){case"input":if(zr(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="'+fl(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[ve]||null;if(!a)throw Error(u(90));zr(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&&tu(n)}break e;case"textarea":nu(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ia(e,!!l.multiple,t,!1)}}}var Dr=!1;function cu(e,t,l){if(Dr)return e(t,l);Dr=!0;try{var n=e(t);return n}finally{if(Dr=!1,(ra!==null||ca!==null)&&(jo(),ra&&(t=ra,e=ca,ca=ra=null,ru(t),e)))for(t=0;t<e.length;t++)ru(e[t])}}function Qa(e,t){var l=e.stateNode;if(l===null)return null;var n=l[ve]||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 jl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_r=!1;if(jl)try{var Za={};Object.defineProperty(Za,"passive",{get:function(){_r=!0}}),window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{_r=!1}var rn=null,kr=null,Ii=null;function su(){if(Ii)return Ii;var e,t=kr,l=t.length,n,a="value"in rn?rn.value:rn.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var r=l-e;for(n=1;n<=r&&t[l-n]===a[i-n];n++);return Ii=a.slice(e,1<n?1-n:void 0)}function Pi(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 eo(){return!0}function uu(){return!1}function Qt(e){function t(l,n,a,i,r){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=r,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)?eo:uu,this.isPropagationStopped=uu,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=eo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},to=Qt(Rn),Ka=B({},Rn,{view:0,detail:0}),Uh=Qt(Ka),Or,Rr,Ja,lo=B({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ur,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!==Ja&&(Ja&&e.type==="mousemove"?(Or=e.screenX-Ja.screenX,Rr=e.screenY-Ja.screenY):Rr=Or=0,Ja=e),Or)},movementY:function(e){return"movementY"in e?e.movementY:Rr}}),fu=Qt(lo),Hh=B({},lo,{dataTransfer:0}),Nh=Qt(Hh),Bh=B({},Ka,{relatedTarget:0}),Lr=Qt(Bh),jh=B({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),qh=Qt(jh),Yh=B({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gh=Qt(Yh),Vh=B({},Rn,{data:0}),du=Qt(Vh),Xh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qh={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"},Zh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zh[e])?!!t[e]:!1}function Ur(){return Kh}var Jh=B({},Ka,{key:function(e){if(e.key){var t=Xh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ur,charCode:function(e){return e.type==="keypress"?Pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fh=Qt(Jh),$h=B({},lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hu=Qt($h),Wh=B({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ur}),Ih=Qt(Wh),Ph=B({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ep=Qt(Ph),tp=B({},lo,{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}),lp=Qt(tp),np=B({},Rn,{newState:0,oldState:0}),ap=Qt(np),ip=[9,13,27,32],Hr=jl&&"CompositionEvent"in window,Fa=null;jl&&"documentMode"in document&&(Fa=document.documentMode);var op=jl&&"TextEvent"in window&&!Fa,pu=jl&&(!Hr||Fa&&8<Fa&&11>=Fa),mu=" ",gu=!1;function yu(e,t){switch(e){case"keyup":return ip.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function rp(e,t){switch(e){case"compositionend":return vu(t);case"keypress":return t.which!==32?null:(gu=!0,mu);case"textInput":return e=t.data,e===mu&&gu?null:e;default:return null}}function cp(e,t){if(sa)return e==="compositionend"||!Hr&&yu(e,t)?(e=su(),Ii=kr=rn=null,sa=!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 pu&&t.locale!=="ko"?null:t.data;default:return null}}var sp={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 bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sp[e.type]:t==="textarea"}function xu(e,t,l,n){ra?ca?ca.push(n):ca=[n]:ra=n,t=Zo(t,"onChange"),0<t.length&&(l=new to("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var $a=null,Wa=null;function up(e){n0(e,0)}function no(e){var t=Xt(e);if(tu(t))return e}function Su(e,t){if(e==="change")return t}var Cu=!1;if(jl){var Nr;if(jl){var Br="oninput"in document;if(!Br){var wu=document.createElement("div");wu.setAttribute("oninput","return;"),Br=typeof wu.oninput=="function"}Nr=Br}else Nr=!1;Cu=Nr&&(!document.documentMode||9<document.documentMode)}function zu(){$a&&($a.detachEvent("onpropertychange",Mu),Wa=$a=null)}function Mu(e){if(e.propertyName==="value"&&no(Wa)){var t=[];xu(t,Wa,e,Er(e)),cu(up,t)}}function fp(e,t,l){e==="focusin"?(zu(),$a=t,Wa=l,$a.attachEvent("onpropertychange",Mu)):e==="focusout"&&zu()}function dp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return no(Wa)}function hp(e,t){if(e==="click")return no(t)}function pp(e,t){if(e==="input"||e==="change")return no(t)}function mp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var el=typeof Object.is=="function"?Object.is:mp;function Ia(e,t){if(el(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(!ln.call(t,a)||!el(e[a],t[a]))return!1}return!0}function Tu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Au(e,t){var l=Tu(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=Tu(l)}}function Eu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Du(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$i(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=$i(e.document)}return t}function jr(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 gp=jl&&"documentMode"in document&&11>=document.documentMode,ua=null,qr=null,Pa=null,Yr=!1;function _u(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Yr||ua==null||ua!==$i(n)||(n=ua,"selectionStart"in n&&jr(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}),Pa&&Ia(Pa,n)||(Pa=n,n=Zo(qr,"onSelect"),0<n.length&&(t=new to("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=ua)))}function Ln(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fa={animationend:Ln("Animation","AnimationEnd"),animationiteration:Ln("Animation","AnimationIteration"),animationstart:Ln("Animation","AnimationStart"),transitionrun:Ln("Transition","TransitionRun"),transitionstart:Ln("Transition","TransitionStart"),transitioncancel:Ln("Transition","TransitionCancel"),transitionend:Ln("Transition","TransitionEnd")},Gr={},ku={};jl&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Un(e){if(Gr[e])return Gr[e];if(!fa[e])return e;var t=fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ku)return Gr[e]=t[l];return e}var Ou=Un("animationend"),Ru=Un("animationiteration"),Lu=Un("animationstart"),yp=Un("transitionrun"),vp=Un("transitionstart"),bp=Un("transitioncancel"),Uu=Un("transitionend"),Hu=new Map,Vr="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(" ");Vr.push("scrollEnd");function wl(e,t){Hu.set(e,t),On(t,[e])}var ao=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)},dl=[],da=0,Xr=0;function io(){for(var e=da,t=Xr=da=0;t<e;){var l=dl[t];dl[t++]=null;var n=dl[t];dl[t++]=null;var a=dl[t];dl[t++]=null;var i=dl[t];if(dl[t++]=null,n!==null&&a!==null){var r=n.pending;r===null?a.next=a:(a.next=r.next,r.next=a),n.pending=a}i!==0&&Nu(l,a,i)}}function oo(e,t,l,n){dl[da++]=e,dl[da++]=t,dl[da++]=l,dl[da++]=n,Xr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Qr(e,t,l,n){return oo(e,t,l,n),ro(e)}function Hn(e,t){return oo(e,null,null,t),ro(e)}function Nu(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-Yt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function ro(e){if(50<Si)throw Si=0,es=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ha={};function xp(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 tl(e,t,l,n){return new xp(e,t,l,n)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ql(e,t){var l=e.alternate;return l===null?(l=tl(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 Bu(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 co(e,t,l,n,a,i){var r=0;if(n=e,typeof e=="function")Zr(e)&&(r=1);else if(typeof e=="string")r=Mm(e,l,q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Re:return e=tl(31,l,t,a),e.elementType=Re,e.lanes=i,e;case X:return Nn(l.children,a,i,t);case me:r=8,a|=24;break;case ee:return e=tl(12,l,t,a|2),e.elementType=ee,e.lanes=i,e;case D:return e=tl(13,l,t,a),e.elementType=D,e.lanes=i,e;case V:return e=tl(19,l,t,a),e.elementType=V,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case le:r=10;break e;case fe:r=9;break e;case ne:r=11;break e;case Y:r=14;break e;case be:r=16,n=null;break e}r=29,l=Error(u(130,e===null?"null":typeof e,"")),n=null}return t=tl(r,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Nn(e,t,l,n){return e=tl(7,e,n,t),e.lanes=l,e}function Kr(e,t,l){return e=tl(6,e,null,t),e.lanes=l,e}function ju(e){var t=tl(18,null,null,0);return t.stateNode=e,t}function Jr(e,t,l){return t=tl(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qu=new WeakMap;function hl(e,t){if(typeof e=="object"&&e!==null){var l=qu.get(e);return l!==void 0?l:(t={value:e,source:t,stack:jt(t)},qu.set(e,t),t)}return{value:e,source:t,stack:jt(t)}}var pa=[],ma=0,so=null,ei=0,pl=[],ml=0,cn=null,Al=1,El="";function Yl(e,t){pa[ma++]=ei,pa[ma++]=so,so=e,ei=t}function Yu(e,t,l){pl[ml++]=Al,pl[ml++]=El,pl[ml++]=cn,cn=e;var n=Al;e=El;var a=32-Yt(n)-1;n&=~(1<<a),l+=1;var i=32-Yt(t)+a;if(30<i){var r=a-a%5;i=(n&(1<<r)-1).toString(32),n>>=r,a-=r,Al=1<<32-Yt(t)+a|l<<a|n,El=i+e}else Al=1<<i|l<<a|n,El=e}function Fr(e){e.return!==null&&(Yl(e,1),Yu(e,1,0))}function $r(e){for(;e===so;)so=pa[--ma],pa[ma]=null,ei=pa[--ma],pa[ma]=null;for(;e===cn;)cn=pl[--ml],pl[ml]=null,El=pl[--ml],pl[ml]=null,Al=pl[--ml],pl[ml]=null}function Gu(e,t){pl[ml++]=Al,pl[ml++]=El,pl[ml++]=cn,Al=t.id,El=t.overflow,cn=e}var _t=null,ot=null,Ve=!1,sn=null,gl=!1,Wr=Error(u(519));function un(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ti(hl(t,e)),Wr}function Vu(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[I]=e,t[ve]=n,l){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(l=0;l<wi.length;l++)qe(wi[l],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),lu(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),au(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||r0(t.textContent,l)?(n.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),n.onScroll!=null&&qe("scroll",t),n.onScrollEnd!=null&&qe("scrollend",t),n.onClick!=null&&(t.onclick=Bl),t=!0):t=!1,t||un(e,!0)}function Xu(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 31:case 13:gl=!1;return;case 27:case 3:gl=!0;return;default:_t=_t.return}}function ga(e){if(e!==_t)return!1;if(!Ve)return Xu(e),Ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ms(e.type,e.memoizedProps)),l=!l),l&&ot&&un(e),Xu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));ot=g0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));ot=g0(e)}else t===27?(t=ot,zn(e.type)?(e=xs,xs=null,ot=e):ot=t):ot=_t?vl(e.stateNode.nextSibling):null;return!0}function Bn(){ot=_t=null,Ve=!1}function Ir(){var e=sn;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),sn=null),e}function ti(e){sn===null?sn=[e]:sn.push(e)}var Pr=y(null),jn=null,Gl=null;function fn(e,t,l){Q(Pr,t._currentValue),t._currentValue=l}function Vl(e){e._currentValue=Pr.current,k(Pr)}function ec(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 tc(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var r=a.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=a;for(var m=0;m<t.length;m++)if(d.context===t[m]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),ec(i.return,l,e),n||(r=null);break e}i=d.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(u(341));r.lanes|=l,i=r.alternate,i!==null&&(i.lanes|=l),ec(r,l,e),r=null}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function ya(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 r=a.alternate;if(r===null)throw Error(u(387));if(r=r.memoizedProps,r!==null){var d=a.type;el(a.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(a===Ne.current){if(r=a.alternate,r===null)throw Error(u(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ei):e=[Ei])}a=a.return}e!==null&&tc(t,e,l,n),t.flags|=262144}function uo(e){for(e=e.firstContext;e!==null;){if(!el(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qn(e){jn=e,Gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Qu(jn,e)}function fo(e,t){return jn===null&&qn(e),Qu(e,t)}function Qu(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Gl===null){if(e===null)throw Error(u(308));Gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gl=Gl.next=t;return l}var Sp=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()})}},Cp=o.unstable_scheduleCallback,wp=o.unstable_NormalPriority,vt={$$typeof:le,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Sp,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Cp(wp,function(){e.controller.abort()})}var ni=null,nc=0,va=0,ba=null;function zp(e,t){if(ni===null){var l=ni=[];nc=0,va=os(),ba={status:"pending",value:void 0,then:function(n){l.push(n)}}}return nc++,t.then(Zu,Zu),t}function Zu(){if(--nc===0&&ni!==null){ba!==null&&(ba.status="fulfilled");var e=ni;ni=null,va=0,ba=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 Ku=A.S;A.S=function(e,t){kd=Dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zp(e,t),Ku!==null&&Ku(e,t)};var Yn=y(null);function ac(){var e=Yn.current;return e!==null?e:nt.pooledCache}function ho(e,t){t===null?Q(Yn,Yn.current):Q(Yn,t.pool)}function Ju(){var e=ac();return e===null?null:{parent:vt._currentValue,pool:e}}var xa=Error(u(460)),ic=Error(u(474)),po=Error(u(542)),mo={then:function(){}};function Fu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $u(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Bl,Bl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Iu(e),e;default:if(typeof t.status=="string")t.then(Bl,Bl);else{if(e=nt,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,Iu(e),e}throw Vn=t,xa}}function Gn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vn=l,xa):l}}var Vn=null;function Wu(){if(Vn===null)throw Error(u(459));var e=Vn;return Vn=null,e}function Iu(e){if(e===xa||e===po)throw Error(u(483))}var Sa=null,ai=0;function go(e){var t=ai;return ai+=1,Sa===null&&(Sa=[]),$u(Sa,e,t)}function ii(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yo(e,t){throw t.$$typeof===K?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pu(e){function t(C,v){if(e){var w=C.deletions;w===null?(C.deletions=[v],C.flags|=16):w.push(v)}}function l(C,v){if(!e)return null;for(;v!==null;)t(C,v),v=v.sibling;return null}function n(C){for(var v=new Map;C!==null;)C.key!==null?v.set(C.key,C):v.set(C.index,C),C=C.sibling;return v}function a(C,v){return C=ql(C,v),C.index=0,C.sibling=null,C}function i(C,v,w){return C.index=w,e?(w=C.alternate,w!==null?(w=w.index,w<v?(C.flags|=67108866,v):w):(C.flags|=67108866,v)):(C.flags|=1048576,v)}function r(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function d(C,v,w,H){return v===null||v.tag!==6?(v=Kr(w,C.mode,H),v.return=C,v):(v=a(v,w),v.return=C,v)}function m(C,v,w,H){var pe=w.type;return pe===X?O(C,v,w.props.children,H,w.key):v!==null&&(v.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===be&&Gn(pe)===v.type)?(v=a(v,w.props),ii(v,w),v.return=C,v):(v=co(w.type,w.key,w.props,null,C.mode,H),ii(v,w),v.return=C,v)}function z(C,v,w,H){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Jr(w,C.mode,H),v.return=C,v):(v=a(v,w.children||[]),v.return=C,v)}function O(C,v,w,H,pe){return v===null||v.tag!==7?(v=Nn(w,C.mode,H,pe),v.return=C,v):(v=a(v,w),v.return=C,v)}function N(C,v,w){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Kr(""+v,C.mode,w),v.return=C,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ae:return w=co(v.type,v.key,v.props,null,C.mode,w),ii(w,v),w.return=C,w;case U:return v=Jr(v,C.mode,w),v.return=C,v;case be:return v=Gn(v),N(C,v,w)}if(_e(v)||He(v))return v=Nn(v,C.mode,w,null),v.return=C,v;if(typeof v.then=="function")return N(C,go(v),w);if(v.$$typeof===le)return N(C,fo(C,v),w);yo(C,v)}return null}function T(C,v,w,H){var pe=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return pe!==null?null:d(C,v,""+w,H);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ae:return w.key===pe?m(C,v,w,H):null;case U:return w.key===pe?z(C,v,w,H):null;case be:return w=Gn(w),T(C,v,w,H)}if(_e(w)||He(w))return pe!==null?null:O(C,v,w,H,null);if(typeof w.then=="function")return T(C,v,go(w),H);if(w.$$typeof===le)return T(C,v,fo(C,w),H);yo(C,w)}return null}function E(C,v,w,H,pe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return C=C.get(w)||null,d(v,C,""+H,pe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case ae:return C=C.get(H.key===null?w:H.key)||null,m(v,C,H,pe);case U:return C=C.get(H.key===null?w:H.key)||null,z(v,C,H,pe);case be:return H=Gn(H),E(C,v,w,H,pe)}if(_e(H)||He(H))return C=C.get(w)||null,O(v,C,H,pe,null);if(typeof H.then=="function")return E(C,v,w,go(H),pe);if(H.$$typeof===le)return E(C,v,w,fo(v,H),pe);yo(v,H)}return null}function ie(C,v,w,H){for(var pe=null,Xe=null,ce=v,Ue=v=0,Ge=null;ce!==null&&Ue<w.length;Ue++){ce.index>Ue?(Ge=ce,ce=null):Ge=ce.sibling;var Qe=T(C,ce,w[Ue],H);if(Qe===null){ce===null&&(ce=Ge);break}e&&ce&&Qe.alternate===null&&t(C,ce),v=i(Qe,v,Ue),Xe===null?pe=Qe:Xe.sibling=Qe,Xe=Qe,ce=Ge}if(Ue===w.length)return l(C,ce),Ve&&Yl(C,Ue),pe;if(ce===null){for(;Ue<w.length;Ue++)ce=N(C,w[Ue],H),ce!==null&&(v=i(ce,v,Ue),Xe===null?pe=ce:Xe.sibling=ce,Xe=ce);return Ve&&Yl(C,Ue),pe}for(ce=n(ce);Ue<w.length;Ue++)Ge=E(ce,C,Ue,w[Ue],H),Ge!==null&&(e&&Ge.alternate!==null&&ce.delete(Ge.key===null?Ue:Ge.key),v=i(Ge,v,Ue),Xe===null?pe=Ge:Xe.sibling=Ge,Xe=Ge);return e&&ce.forEach(function(Dn){return t(C,Dn)}),Ve&&Yl(C,Ue),pe}function xe(C,v,w,H){if(w==null)throw Error(u(151));for(var pe=null,Xe=null,ce=v,Ue=v=0,Ge=null,Qe=w.next();ce!==null&&!Qe.done;Ue++,Qe=w.next()){ce.index>Ue?(Ge=ce,ce=null):Ge=ce.sibling;var Dn=T(C,ce,Qe.value,H);if(Dn===null){ce===null&&(ce=Ge);break}e&&ce&&Dn.alternate===null&&t(C,ce),v=i(Dn,v,Ue),Xe===null?pe=Dn:Xe.sibling=Dn,Xe=Dn,ce=Ge}if(Qe.done)return l(C,ce),Ve&&Yl(C,Ue),pe;if(ce===null){for(;!Qe.done;Ue++,Qe=w.next())Qe=N(C,Qe.value,H),Qe!==null&&(v=i(Qe,v,Ue),Xe===null?pe=Qe:Xe.sibling=Qe,Xe=Qe);return Ve&&Yl(C,Ue),pe}for(ce=n(ce);!Qe.done;Ue++,Qe=w.next())Qe=E(ce,C,Ue,Qe.value,H),Qe!==null&&(e&&Qe.alternate!==null&&ce.delete(Qe.key===null?Ue:Qe.key),v=i(Qe,v,Ue),Xe===null?pe=Qe:Xe.sibling=Qe,Xe=Qe);return e&&ce.forEach(function(Hm){return t(C,Hm)}),Ve&&Yl(C,Ue),pe}function lt(C,v,w,H){if(typeof w=="object"&&w!==null&&w.type===X&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ae:e:{for(var pe=w.key;v!==null;){if(v.key===pe){if(pe=w.type,pe===X){if(v.tag===7){l(C,v.sibling),H=a(v,w.props.children),H.return=C,C=H;break e}}else if(v.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===be&&Gn(pe)===v.type){l(C,v.sibling),H=a(v,w.props),ii(H,w),H.return=C,C=H;break e}l(C,v);break}else t(C,v);v=v.sibling}w.type===X?(H=Nn(w.props.children,C.mode,H,w.key),H.return=C,C=H):(H=co(w.type,w.key,w.props,null,C.mode,H),ii(H,w),H.return=C,C=H)}return r(C);case U:e:{for(pe=w.key;v!==null;){if(v.key===pe)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){l(C,v.sibling),H=a(v,w.children||[]),H.return=C,C=H;break e}else{l(C,v);break}else t(C,v);v=v.sibling}H=Jr(w,C.mode,H),H.return=C,C=H}return r(C);case be:return w=Gn(w),lt(C,v,w,H)}if(_e(w))return ie(C,v,w,H);if(He(w)){if(pe=He(w),typeof pe!="function")throw Error(u(150));return w=pe.call(w),xe(C,v,w,H)}if(typeof w.then=="function")return lt(C,v,go(w),H);if(w.$$typeof===le)return lt(C,v,fo(C,w),H);yo(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,v!==null&&v.tag===6?(l(C,v.sibling),H=a(v,w),H.return=C,C=H):(l(C,v),H=Kr(w,C.mode,H),H.return=C,C=H),r(C)):l(C,v)}return function(C,v,w,H){try{ai=0;var pe=lt(C,v,w,H);return Sa=null,pe}catch(ce){if(ce===xa||ce===po)throw ce;var Xe=tl(29,ce,null,C.mode);return Xe.lanes=H,Xe.return=C,Xe}}}var Xn=Pu(!0),ef=Pu(!1),dn=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rc(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 hn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pn(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ze&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=ro(e),Nu(e,null,l),t}return oo(e,n,t,l),ro(e)}function oi(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,Ul(e,l)}}function cc(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 r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=r:i=i.next=r,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 sc=!1;function ri(){if(sc){var e=ba;if(e!==null)throw e}}function ci(e,t,l,n){sc=!1;var a=e.updateQueue;dn=!1;var i=a.firstBaseUpdate,r=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var m=d,z=m.next;m.next=null,r===null?i=z:r.next=z,r=m;var O=e.alternate;O!==null&&(O=O.updateQueue,d=O.lastBaseUpdate,d!==r&&(d===null?O.firstBaseUpdate=z:d.next=z,O.lastBaseUpdate=m))}if(i!==null){var N=a.baseState;r=0,O=z=m=null,d=i;do{var T=d.lane&-536870913,E=T!==d.lane;if(E?(Ye&T)===T:(n&T)===T){T!==0&&T===va&&(sc=!0),O!==null&&(O=O.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var ie=e,xe=d;T=t;var lt=l;switch(xe.tag){case 1:if(ie=xe.payload,typeof ie=="function"){N=ie.call(lt,N,T);break e}N=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=xe.payload,T=typeof ie=="function"?ie.call(lt,N,T):ie,T==null)break e;N=B({},N,T);break e;case 2:dn=!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},O===null?(z=O=E,m=N):O=O.next=E,r|=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);O===null&&(m=N),a.baseState=m,a.firstBaseUpdate=z,a.lastBaseUpdate=O,i===null&&(a.shared.lanes=0),bn|=r,e.lanes=r,e.memoizedState=N}}function tf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function lf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)tf(l[e],t)}var Ca=y(null),vo=y(0);function nf(e,t){e=Il,Q(vo,e),Q(Ca,t),Il=e|t.baseLanes}function uc(){Q(vo,Il),Q(Ca,Ca.current)}function fc(){Il=vo.current,k(Ca),k(vo)}var ll=y(null),yl=null;function mn(e){var t=e.alternate;Q(gt,gt.current&1),Q(ll,e),yl===null&&(t===null||Ca.current!==null||t.memoizedState!==null)&&(yl=e)}function dc(e){Q(gt,gt.current),Q(ll,e),yl===null&&(yl=e)}function af(e){e.tag===22?(Q(gt,gt.current),Q(ll,e),yl===null&&(yl=e)):gn()}function gn(){Q(gt,gt.current),Q(ll,ll.current)}function nl(e){k(ll),yl===e&&(yl=null),k(gt)}var gt=y(0);function bo(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vs(l)||bs(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 Xl=0,Oe=null,et=null,bt=null,xo=!1,wa=!1,Qn=!1,So=0,si=0,za=null,Tp=0;function ft(){throw Error(u(321))}function hc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!el(e[l],t[l]))return!1;return!0}function pc(e,t,l,n,a,i){return Xl=i,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Gf:Dc,Qn=!1,i=l(n,a),Qn=!1,wa&&(i=rf(t,l,n,a)),of(e),i}function of(e){A.H=di;var t=et!==null&&et.next!==null;if(Xl=0,bt=et=Oe=null,xo=!1,si=0,za=null,t)throw Error(u(300));e===null||xt||(e=e.dependencies,e!==null&&uo(e)&&(xt=!0))}function rf(e,t,l,n){Oe=e;var a=0;do{if(wa&&(za=null),si=0,wa=!1,25<=a)throw Error(u(301));if(a+=1,bt=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)}A.H=Vf,i=t(l,n)}while(wa);return i}function Ap(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?ui(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Oe.flags|=1024),t}function mc(){var e=So!==0;return So=0,e}function gc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function yc(e){if(xo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xo=!1}Xl=0,bt=et=Oe=null,wa=!1,si=So=0,za=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Oe.memoizedState=bt=e:bt=bt.next=e,bt}function yt(){if(et===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=bt===null?Oe.memoizedState:bt.next;if(t!==null)bt=t,et=e;else{if(e===null)throw Oe.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},bt===null?Oe.memoizedState=bt=e:bt=bt.next=e}return bt}function Co(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ui(e){var t=si;return si+=1,za===null&&(za=[]),e=$u(za,e,t),t=Oe,(bt===null?t.memoizedState:bt.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Gf:Dc),e}function wo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ui(e);if(e.$$typeof===le)return kt(e)}throw Error(u(438,String(e)))}function vc(e){var t=null,l=Oe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=Oe.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=Co(),Oe.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]=ke;return t.index++,l}function Ql(e,t){return typeof t=="function"?t(e):t}function zo(e){var t=yt();return bc(t,et,e)}function bc(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 r=a.next;a.next=i.next,i.next=r}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var d=r=null,m=null,z=t,O=!1;do{var N=z.lane&-536870913;if(N!==z.lane?(Ye&N)===N:(Xl&N)===N){var T=z.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),N===va&&(O=!0);else if((Xl&T)===T){z=z.next,T===va&&(O=!0);continue}else N={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},m===null?(d=m=N,r=i):m=m.next=N,Oe.lanes|=T,bn|=T;N=z.action,Qn&&l(i,N),i=z.hasEagerState?z.eagerState:l(i,N)}else T={lane:N,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},m===null?(d=m=T,r=i):m=m.next=T,Oe.lanes|=N,bn|=N;z=z.next}while(z!==null&&z!==t);if(m===null?r=i:m.next=d,!el(i,e.memoizedState)&&(xt=!0,O&&(l=ba,l!==null)))throw l;e.memoizedState=i,e.baseState=r,e.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function xc(e){var t=yt(),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 r=a=a.next;do i=e(i,r.action),r=r.next;while(r!==a);el(i,t.memoizedState)||(xt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function cf(e,t,l){var n=Oe,a=yt(),i=Ve;if(i){if(l===void 0)throw Error(u(407));l=l()}else l=t();var r=!el((et||a).memoizedState,l);if(r&&(a.memoizedState=l,xt=!0),a=a.queue,wc(ff.bind(null,n,a,e),[e]),a.getSnapshot!==t||r||bt!==null&&bt.memoizedState.tag&1){if(n.flags|=2048,Ma(9,{destroy:void 0},uf.bind(null,n,a,l,t),null),nt===null)throw Error(u(349));i||(Xl&127)!==0||sf(n,t,l)}return l}function sf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Oe.updateQueue,t===null?(t=Co(),Oe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function uf(e,t,l,n){t.value=l,t.getSnapshot=n,df(t)&&hf(e)}function ff(e,t,l){return l(function(){df(t)&&hf(e)})}function df(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!el(e,l)}catch{return!0}}function hf(e){var t=Hn(e,2);t!==null&&$t(t,e,2)}function Sc(e){var t=Gt();if(typeof e=="function"){var l=e;if(e=l(),Qn){Ut(!0);try{l()}finally{Ut(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t}function pf(e,t,l,n){return e.baseState=l,bc(e,et,typeof n=="function"?n:Ql)}function Ep(e,t,l,n,a){if(Ao(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(r){i.listeners.push(r)}};A.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,mf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function mf(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=A.T,r={};A.T=r;try{var d=l(a,n),m=A.S;m!==null&&m(r,d),gf(e,t,d)}catch(z){Cc(e,t,z)}finally{i!==null&&r.types!==null&&(i.types=r.types),A.T=i}}else try{i=l(a,n),gf(e,t,i)}catch(z){Cc(e,t,z)}}function gf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){yf(e,t,n)},function(n){return Cc(e,t,n)}):yf(e,t,l)}function yf(e,t,l){t.status="fulfilled",t.value=l,vf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,mf(e,l)))}function Cc(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,vf(t),t=t.next;while(t!==n)}e.action=null}function vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bf(e,t){return t}function xf(e,t){if(Ve){var l=nt.formState;if(l!==null){e:{var n=Oe;if(Ve){if(ot){t:{for(var a=ot,i=gl;a.nodeType!==8;){if(!i){a=null;break t}if(a=vl(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){ot=vl(a.nextSibling),n=a.data==="F!";break e}}un(n)}n=!1}n&&(t=l[0])}}return l=Gt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bf,lastRenderedState:t},l.queue=n,l=jf.bind(null,Oe,n),n.dispatch=l,n=Sc(!1),i=Ec.bind(null,Oe,!1,n.queue),n=Gt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=Ep.bind(null,Oe,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Sf(e){var t=yt();return Cf(t,et,e)}function Cf(e,t,l){if(t=bc(e,t,bf)[0],e=zo(Ql)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ui(t)}catch(r){throw r===xa?po:r}else n=t;t=yt();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(Oe.flags|=2048,Ma(9,{destroy:void 0},Dp.bind(null,a,l),null)),[n,i,e]}function Dp(e,t){e.action=t}function wf(e){var t=yt(),l=et;if(l!==null)return Cf(t,l,e);yt(),t=t.memoizedState,l=yt();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Ma(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=Co(),Oe.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 zf(){return yt().memoizedState}function Mo(e,t,l,n){var a=Gt();Oe.flags|=e,a.memoizedState=Ma(1|t,{destroy:void 0},l,n===void 0?null:n)}function To(e,t,l,n){var a=yt();n=n===void 0?null:n;var i=a.memoizedState.inst;et!==null&&n!==null&&hc(n,et.memoizedState.deps)?a.memoizedState=Ma(t,i,l,n):(Oe.flags|=e,a.memoizedState=Ma(1|t,i,l,n))}function Mf(e,t){Mo(8390656,8,e,t)}function wc(e,t){To(2048,8,e,t)}function _p(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=Co(),Oe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Tf(e){var t=yt().memoizedState;return _p({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Af(e,t){return To(4,2,e,t)}function Ef(e,t){return To(4,4,e,t)}function Df(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 _f(e,t,l){l=l!=null?l.concat([e]):null,To(4,4,Df.bind(null,t,e),l)}function zc(){}function kf(e,t){var l=yt();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&hc(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Of(e,t){var l=yt();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&hc(t,n[1]))return n[0];if(n=e(),Qn){Ut(!0);try{e()}finally{Ut(!1)}}return l.memoizedState=[n,t],n}function Mc(e,t,l){return l===void 0||(Xl&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Rd(),Oe.lanes|=e,bn|=e,l)}function Rf(e,t,l,n){return el(l,t)?l:Ca.current!==null?(e=Mc(e,l,n),el(e,t)||(xt=!0),e):(Xl&42)===0||(Xl&1073741824)!==0&&(Ye&261930)===0?(xt=!0,e.memoizedState=l):(e=Rd(),Oe.lanes|=e,bn|=e,t)}function Lf(e,t,l,n,a){var i=j.p;j.p=i!==0&&8>i?i:8;var r=A.T,d={};A.T=d,Ec(e,!1,t,l);try{var m=a(),z=A.S;if(z!==null&&z(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=Mp(m,n);fi(e,t,O,ol(e))}else fi(e,t,n,ol(e))}catch(N){fi(e,t,{then:function(){},status:"rejected",reason:N},ol())}finally{j.p=i,r!==null&&d.types!==null&&(r.types=d.types),A.T=r}}function kp(){}function Tc(e,t,l,n){if(e.tag!==5)throw Error(u(476));var a=Uf(e).queue;Lf(e,a,t,J,l===null?kp:function(){return Hf(e),l(n)})}function Uf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:J},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hf(e){var t=Uf(e);t.next===null&&(t=e.alternate.memoizedState),fi(e,t.next.queue,{},ol())}function Ac(){return kt(Ei)}function Nf(){return yt().memoizedState}function Bf(){return yt().memoizedState}function Op(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ol();e=hn(l);var n=pn(t,e,l);n!==null&&($t(n,t,l),oi(n,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function Rp(e,t,l){var n=ol();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ao(e)?qf(t,l):(l=Qr(e,t,l,n),l!==null&&($t(l,e,n),Yf(l,t,n)))}function jf(e,t,l){var n=ol();fi(e,t,l,n)}function fi(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ao(e))qf(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,d=i(r,l);if(a.hasEagerState=!0,a.eagerState=d,el(d,r))return oo(e,t,a,0),nt===null&&io(),!1}catch{}if(l=Qr(e,t,a,n),l!==null)return $t(l,e,n),Yf(l,t,n),!0}return!1}function Ec(e,t,l,n){if(n={lane:2,revertLane:os(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ao(e)){if(t)throw Error(u(479))}else t=Qr(e,l,n,2),t!==null&&$t(t,e,2)}function Ao(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function qf(e,t){wa=xo=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Yf(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ul(e,l)}}var di={readContext:kt,use:wo,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};di.useEffectEvent=ft;var Gf={readContext:kt,use:wo,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Mf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Mo(4194308,4,Df.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Mo(4194308,4,e,t)},useInsertionEffect:function(e,t){Mo(4,2,e,t)},useMemo:function(e,t){var l=Gt();t=t===void 0?null:t;var n=e();if(Qn){Ut(!0);try{e()}finally{Ut(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Gt();if(l!==void 0){var a=l(t);if(Qn){Ut(!0);try{l(t)}finally{Ut(!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,Oe,e),[n.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Sc(e);var t=e.queue,l=jf.bind(null,Oe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zc,useDeferredValue:function(e,t){var l=Gt();return Mc(l,e,t)},useTransition:function(){var e=Sc(!1);return e=Lf.bind(null,Oe,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=Oe,a=Gt();if(Ve){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),nt===null)throw Error(u(349));(Ye&127)!==0||sf(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,Mf(ff.bind(null,n,i,e),[e]),n.flags|=2048,Ma(9,{destroy:void 0},uf.bind(null,n,i,l,t),null),l},useId:function(){var e=Gt(),t=nt.identifierPrefix;if(Ve){var l=El,n=Al;l=(n&~(1<<32-Yt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=So++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Tp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ac,useFormState:xf,useActionState:xf,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ec.bind(null,Oe,!0,l),l.dispatch=t,[e,t]},useMemoCache:vc,useCacheRefresh:function(){return Gt().memoizedState=Op.bind(null,Oe)},useEffectEvent:function(e){var t=Gt(),l={impl:e};return t.memoizedState=l,function(){if((Ze&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Dc={readContext:kt,use:wo,useCallback:kf,useContext:kt,useEffect:wc,useImperativeHandle:_f,useInsertionEffect:Af,useLayoutEffect:Ef,useMemo:Of,useReducer:zo,useRef:zf,useState:function(){return zo(Ql)},useDebugValue:zc,useDeferredValue:function(e,t){var l=yt();return Rf(l,et.memoizedState,e,t)},useTransition:function(){var e=zo(Ql)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:ui(e),t]},useSyncExternalStore:cf,useId:Nf,useHostTransitionStatus:Ac,useFormState:Sf,useActionState:Sf,useOptimistic:function(e,t){var l=yt();return pf(l,et,e,t)},useMemoCache:vc,useCacheRefresh:Bf};Dc.useEffectEvent=Tf;var Vf={readContext:kt,use:wo,useCallback:kf,useContext:kt,useEffect:wc,useImperativeHandle:_f,useInsertionEffect:Af,useLayoutEffect:Ef,useMemo:Of,useReducer:xc,useRef:zf,useState:function(){return xc(Ql)},useDebugValue:zc,useDeferredValue:function(e,t){var l=yt();return et===null?Mc(l,e,t):Rf(l,et.memoizedState,e,t)},useTransition:function(){var e=xc(Ql)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:ui(e),t]},useSyncExternalStore:cf,useId:Nf,useHostTransitionStatus:Ac,useFormState:wf,useActionState:wf,useOptimistic:function(e,t){var l=yt();return et!==null?pf(l,et,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:vc,useCacheRefresh:Bf};Vf.useEffectEvent=Tf;function _c(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:B({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var kc={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=ol(),a=hn(n);a.payload=t,l!=null&&(a.callback=l),t=pn(e,a,n),t!==null&&($t(t,e,n),oi(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=ol(),a=hn(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=pn(e,a,n),t!==null&&($t(t,e,n),oi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ol(),n=hn(l);n.tag=2,t!=null&&(n.callback=t),t=pn(e,n,l),t!==null&&($t(t,e,l),oi(t,e,l))}};function Xf(e,t,l,n,a,i,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,r):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,n)||!Ia(a,i):!0}function Qf(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&&kc.enqueueReplaceState(t,t.state,null)}function Zn(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=B({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Zf(e){ao(e)}function Kf(e){console.error(e)}function Jf(e){ao(e)}function Eo(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ff(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 Oc(e,t,l){return l=hn(l),l.tag=3,l.payload={element:null},l.callback=function(){Eo(e,t)},l}function $f(e){return e=hn(e),e.tag=3,e}function Wf(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(){Ff(t,l,n)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Ff(t,l,n),typeof a!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function Lp(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&ya(t,l,a,!0),l=ll.current,l!==null){switch(l.tag){case 31:case 13:return yl===null?qo():l.alternate===null&&dt===0&&(dt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===mo?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),ns(e,n,a)),!1;case 22:return l.flags|=65536,n===mo?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)),ns(e,n,a)),!1}throw Error(u(435,l.tag))}return ns(e,n,a),qo(),!1}if(Ve)return t=ll.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Wr&&(e=Error(u(422),{cause:n}),ti(hl(e,l)))):(n!==Wr&&(t=Error(u(423),{cause:n}),ti(hl(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=hl(n,l),a=Oc(e.stateNode,n,a),cc(e,a),dt!==4&&(dt=2)),!1;var i=Error(u(520),{cause:n});if(i=hl(i,l),xi===null?xi=[i]:xi.push(i),dt!==4&&(dt=2),t===null)return!0;n=hl(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Oc(l.stateNode,n,e),cc(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"&&(xn===null||!xn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=$f(a),Wf(a,e,l,n),cc(l,a),!1}l=l.return}while(l!==null);return!1}var Rc=Error(u(461)),xt=!1;function Ot(e,t,l,n){t.child=e===null?ef(t,null,l,n):Xn(t,e.child,l,n)}function If(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var r={};for(var d in n)d!=="ref"&&(r[d]=n[d])}else r=n;return qn(t),n=pc(e,t,l,r,i,a),d=mc(),e!==null&&!xt?(gc(e,t,a),Zl(e,t,a)):(Ve&&d&&Fr(t),t.flags|=1,Ot(e,t,n,a),t.child)}function Pf(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Zr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,ed(e,t,i,n,a)):(e=co(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Yc(e,a)){var r=i.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(r,n)&&e.ref===t.ref)return Zl(e,t,a)}return t.flags|=1,e=ql(i,n),e.ref=t.ref,e.return=t,t.child=e}function ed(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(Ia(i,n)&&e.ref===t.ref)if(xt=!1,t.pendingProps=n=i,Yc(e,a))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Zl(e,t,a)}return Lc(e,t,l,n,a)}function td(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 ld(e,t,i,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(t,i!==null?i.cachePool:null),i!==null?nf(t,i):uc(),af(t);else return n=t.lanes=536870912,ld(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(ho(t,i.cachePool),nf(t,i),gn(),t.memoizedState=null):(e!==null&&ho(t,null),uc(),gn());return Ot(e,t,a,l),t.child}function hi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ld(e,t,l,n,a){var i=ac();return i=i===null?null:{parent:vt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&ho(t,null),uc(),af(t),e!==null&&ya(e,t,n,!0),t.childLanes=a,null}function Do(e,t){return t=ko({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nd(e,t,l){return Xn(t,e.child,null,l),e=Do(t,t.pendingProps),e.flags|=2,nl(t),t.memoizedState=null,e}function Up(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ve){if(n.mode==="hidden")return e=Do(t,n),t.lanes=536870912,hi(null,e);if(dc(t),(e=ot)?(e=m0(e,gl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:cn!==null?{id:Al,overflow:El}:null,retryLane:536870912,hydrationErrors:null},l=ju(e),l.return=t,t.child=l,_t=t,ot=null)):e=null,e===null)throw un(t);return t.lanes=536870912,null}return Do(t,n)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(dc(t),a)if(t.flags&256)t.flags&=-257,t=nd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(xt||ya(e,t,l,!1),a=(l&e.childLanes)!==0,xt||a){if(n=nt,n!==null&&(r=Hl(n,l),r!==0&&r!==i.retryLane))throw i.retryLane=r,Hn(e,r),$t(n,e,r),Rc;qo(),t=nd(e,t,l)}else e=i.treeContext,ot=vl(r.nextSibling),_t=t,Ve=!0,sn=null,gl=!1,e!==null&&Gu(t,e),t=Do(t,n),t.flags|=4096;return t}return e=ql(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _o(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 Lc(e,t,l,n,a){return qn(t),l=pc(e,t,l,n,void 0,a),n=mc(),e!==null&&!xt?(gc(e,t,a),Zl(e,t,a)):(Ve&&n&&Fr(t),t.flags|=1,Ot(e,t,l,a),t.child)}function ad(e,t,l,n,a,i){return qn(t),t.updateQueue=null,l=rf(t,n,l,a),of(e),n=mc(),e!==null&&!xt?(gc(e,t,i),Zl(e,t,i)):(Ve&&n&&Fr(t),t.flags|=1,Ot(e,t,l,i),t.child)}function id(e,t,l,n,a){if(qn(t),t.stateNode===null){var i=ha,r=l.contextType;typeof r=="object"&&r!==null&&(i=kt(r)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=kc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},oc(t),r=l.contextType,i.context=typeof r=="object"&&r!==null?kt(r):ha,i.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(_c(t,l,r,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&kc.enqueueReplaceState(i,i.state,null),ci(t,n,i,a),ri(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,m=Zn(l,d);i.props=m;var z=i.context,O=l.contextType;r=ha,typeof O=="object"&&O!==null&&(r=kt(O));var N=l.getDerivedStateFromProps;O=typeof N=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||z!==r)&&Qf(t,i,n,r),dn=!1;var T=t.memoizedState;i.state=T,ci(t,n,i,a),ri(),z=t.memoizedState,d||T!==z||dn?(typeof N=="function"&&(_c(t,l,N,n),z=t.memoizedState),(m=dn||Xf(t,l,m,n,T,z,r))?(O||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=z),i.props=n,i.state=z,i.context=r,n=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,rc(e,t),r=t.memoizedProps,O=Zn(l,r),i.props=O,N=t.pendingProps,T=i.context,z=l.contextType,m=ha,typeof z=="object"&&z!==null&&(m=kt(z)),d=l.getDerivedStateFromProps,(z=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==N||T!==m)&&Qf(t,i,n,m),dn=!1,T=t.memoizedState,i.state=T,ci(t,n,i,a),ri();var E=t.memoizedState;r!==N||T!==E||dn||e!==null&&e.dependencies!==null&&uo(e.dependencies)?(typeof d=="function"&&(_c(t,l,d,n),E=t.memoizedState),(O=dn||Xf(t,l,O,n,T,E,m)||e!==null&&e.dependencies!==null&&uo(e.dependencies))?(z||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,E,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,E,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),i.props=n,i.state=E,i.context=m,n=O):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,_o(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=Xn(t,e.child,null,a),t.child=Xn(t,null,l,a)):Ot(e,t,l,a),t.memoizedState=i.state,e=t.child):e=Zl(e,t,a),e}function od(e,t,l,n){return Bn(),t.flags|=256,Ot(e,t,l,n),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(e){return{baseLanes:e,cachePool:Ju()}}function Nc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=il),e}function rd(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,r;if((r=i)||(r=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ve){if(a?mn(t):gn(),(e=ot)?(e=m0(e,gl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:cn!==null?{id:Al,overflow:El}:null,retryLane:536870912,hydrationErrors:null},l=ju(e),l.return=t,t.child=l,_t=t,ot=null)):e=null,e===null)throw un(t);return bs(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(gn(),a=t.mode,d=ko({mode:"hidden",children:d},a),n=Nn(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=Hc(l),n.childLanes=Nc(e,r,l),t.memoizedState=Uc,hi(null,n)):(mn(t),Bc(t,d))}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(i)t.flags&256?(mn(t),t.flags&=-257,t=jc(e,t,l)):t.memoizedState!==null?(gn(),t.child=e.child,t.flags|=128,t=null):(gn(),d=n.fallback,a=t.mode,n=ko({mode:"visible",children:n.children},a),d=Nn(d,a,l,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,Xn(t,e.child,null,l),n=t.child,n.memoizedState=Hc(l),n.childLanes=Nc(e,r,l),t.memoizedState=Uc,t=hi(null,n));else if(mn(t),bs(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var z=r.dgst;r=z,n=Error(u(419)),n.stack="",n.digest=r,ti({value:n,source:null,stack:null}),t=jc(e,t,l)}else if(xt||ya(e,t,l,!1),r=(l&e.childLanes)!==0,xt||r){if(r=nt,r!==null&&(n=Hl(r,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,Hn(e,n),$t(r,e,n),Rc;vs(d)||qo(),t=jc(e,t,l)}else vs(d)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,ot=vl(d.nextSibling),_t=t,Ve=!0,sn=null,gl=!1,e!==null&&Gu(t,e),t=Bc(t,n.children),t.flags|=4096);return t}return a?(gn(),d=n.fallback,a=t.mode,m=e.child,z=m.sibling,n=ql(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,z!==null?d=ql(z,d):(d=Nn(d,a,l,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,hi(null,n),n=t.child,d=e.child.memoizedState,d===null?d=Hc(l):(a=d.cachePool,a!==null?(m=vt._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Ju(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=Nc(e,r,l),t.memoizedState=Uc,hi(e.child,n)):(mn(t),l=e.child,e=l.sibling,l=ql(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Bc(e,t){return t=ko({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ko(e,t){return e=tl(22,e,null,t),e.lanes=0,e}function jc(e,t,l){return Xn(t,e.child,null,l),e=Bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cd(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ec(e.return,t,l)}function qc(e,t,l,n,a,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=l,r.tailMode=a,r.treeForkCount=i)}function sd(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var r=gt.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,Q(gt,r),Ot(e,t,n,l),n=Ve?ei:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cd(e,l,t);else if(e.tag===19)cd(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&&bo(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),qc(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&&bo(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}qc(t,!0,l,null,i,n);break;case"together":qc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Zl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),bn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ya(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=ql(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ql(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Yc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uo(e)))}function Hp(e,t,l){switch(t.tag){case 3:pt(t,t.stateNode.containerInfo),fn(t,vt,e.memoizedState.cache),Bn();break;case 27:case 5:xl(t);break;case 4:pt(t,t.stateNode.containerInfo);break;case 10:fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(mn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?rd(e,t,l):(mn(t),e=Zl(e,t,l),e!==null?e.sibling:null);mn(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(ya(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return sd(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Q(gt,gt.current),n)break;return null;case 22:return t.lanes=0,td(e,t,l,t.pendingProps);case 24:fn(t,vt,e.memoizedState.cache)}return Zl(e,t,l)}function ud(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!Yc(e,l)&&(t.flags&128)===0)return xt=!1,Hp(e,t,l);xt=(e.flags&131072)!==0}else xt=!1,Ve&&(t.flags&1048576)!==0&&Yu(t,ei,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Gn(t.elementType),t.type=e,typeof e=="function")Zr(e)?(n=Zn(e,n),t.tag=1,t=id(null,t,e,n,l)):(t.tag=0,t=Lc(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ne){t.tag=11,t=If(null,t,e,n,l);break e}else if(a===Y){t.tag=14,t=Pf(null,t,e,n,l);break e}}throw t=We(e)||e,Error(u(306,t,""))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Zn(n,t.pendingProps),id(e,t,n,a,l);case 3:e:{if(pt(t,t.stateNode.containerInfo),e===null)throw Error(u(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,rc(e,t),ci(t,n,null,l);var r=t.memoizedState;if(n=r.cache,fn(t,vt,n),n!==i.cache&&tc(t,[vt],l,!0),ri(),n=r.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=od(e,t,n,l);break e}else if(n!==a){a=hl(Error(u(424)),t),ti(a),t=od(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=vl(e.firstChild),_t=t,Ve=!0,sn=null,gl=!0,l=ef(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Bn(),n===a){t=Zl(e,t,l);break e}Ot(e,t,n,l)}t=t.child}return t;case 26:return _o(e,t),e===null?(l=S0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ve||(l=t.type,e=t.pendingProps,n=Ko(W.current).createElement(l),n[I]=t,n[ve]=e,Rt(n,l,e),ut(n),t.stateNode=n):t.memoizedState=S0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xl(t),e===null&&Ve&&(n=t.stateNode=v0(t.type,t.pendingProps,W.current),_t=t,gl=!0,a=ot,zn(t.type)?(xs=a,ot=vl(n.firstChild)):ot=a),Ot(e,t,t.pendingProps.children,l),_o(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((a=n=ot)&&(n=dm(n,t.type,t.pendingProps,gl),n!==null?(t.stateNode=n,_t=t,ot=vl(n.firstChild),gl=!1,a=!0):a=!1),a||un(t)),xl(t),a=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,n=i.children,ms(a,i)?n=null:r!==null&&ms(a,r)&&(t.flags|=32),t.memoizedState!==null&&(a=pc(e,t,Ap,null,null,l),Ei._currentValue=a),_o(e,t),Ot(e,t,n,l),t.child;case 6:return e===null&&Ve&&((e=l=ot)&&(l=hm(l,t.pendingProps,gl),l!==null?(t.stateNode=l,_t=t,ot=null,e=!0):e=!1),e||un(t)),null;case 13:return rd(e,t,l);case 4:return pt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Xn(t,null,n,l):Ot(e,t,n,l),t.child;case 11:return If(e,t,t.type,t.pendingProps,l);case 7:return Ot(e,t,t.pendingProps,l),t.child;case 8:return Ot(e,t,t.pendingProps.children,l),t.child;case 12:return Ot(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,fn(t,t.type,n.value),Ot(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,qn(t),a=kt(a),n=n(a),t.flags|=1,Ot(e,t,n,l),t.child;case 14:return Pf(e,t,t.type,t.pendingProps,l);case 15:return ed(e,t,t.type,t.pendingProps,l);case 19:return sd(e,t,l);case 31:return Up(e,t,l);case 22:return td(e,t,l,t.pendingProps);case 24:return qn(t),n=kt(vt),e===null?(a=ac(),a===null&&(a=nt,i=lc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},oc(t),fn(t,vt,a)):((e.lanes&l)!==0&&(rc(e,t),ci(t,null,null,l),ri()),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),fn(t,vt,n)):(n=i.cache,fn(t,vt,n),n!==a.cache&&tc(t,[vt],l,!0))),Ot(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Kl(e){e.flags|=4}function Gc(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(Nd())e.flags|=8192;else throw Vn=mo,ic}else e.flags&=-16777217}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(Nd())e.flags|=8192;else throw Vn=mo,ic}function Oo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Zi():536870912,e.lanes|=t,Da|=t)}function pi(e,t){if(!Ve)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 rt(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 Np(e,t,l){var n=t.pendingProps;switch($r(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return rt(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vl(vt),at(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ga(t)?Kl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ir())),rt(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Kl(t),i!==null?(rt(t),fd(t,i)):(rt(t),Gc(t,a,null,n,l))):i?i!==e.memoizedState?(Kl(t),rt(t),fd(t,i)):(rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Kl(t),rt(t),Gc(t,a,e,n,l)),null;case 27:if(Ce(t),l=W.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Kl(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return rt(t),null}e=q.current,ga(t)?Vu(t):(e=v0(a,n,l),t.stateNode=e,Kl(t))}return rt(t),null;case 5:if(Ce(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Kl(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return rt(t),null}if(i=q.current,ga(t))Vu(t);else{var r=Ko(W.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?r.createElement(a,{is:n.is}):r.createElement(a)}}i[I]=t,i[ve]=n;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=i;e:switch(Rt(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&&Kl(t)}}return rt(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Kl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=W.current,ga(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=_t,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[I]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||r0(e.nodeValue,l)),e||un(t,!0)}else e=Ko(e).createTextNode(n),e[I]=t,t.stateNode=e}return rt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=ga(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[I]=t}else Bn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),e=!1}else l=Ir(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(nl(t),t):(nl(t),null);if((t.flags&128)!==0)throw Error(u(558))}return rt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ga(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[I]=t}else Bn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),a=!1}else a=Ir(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(nl(t),t):(nl(t),null)}return nl(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),Oo(t,t.updateQueue),rt(t),null);case 4:return at(),e===null&&us(t.stateNode.containerInfo),rt(t),null;case 10:return Vl(t.type),rt(t),null;case 19:if(k(gt),n=t.memoizedState,n===null)return rt(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)pi(n,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=bo(e),i!==null){for(t.flags|=128,pi(n,!1),e=i.updateQueue,t.updateQueue=e,Oo(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Bu(l,e),l=l.sibling;return Q(gt,gt.current&1|2),Ve&&Yl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Dt()>No&&(t.flags|=128,a=!0,pi(n,!1),t.lanes=4194304)}else{if(!a)if(e=bo(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Oo(t,e),pi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Ve)return rt(t),null}else 2*Dt()-n.renderingStartTime>No&&l!==536870912&&(t.flags|=128,a=!0,pi(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=Dt(),e.sibling=null,l=gt.current,Q(gt,a?l&1|2:l&1),Ve&&Yl(t,n.treeForkCount),e):(rt(t),null);case 22:case 23:return nl(t),fc(),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&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),l=t.updateQueue,l!==null&&Oo(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(Yn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vl(vt),rt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Bp(e,t){switch($r(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vl(vt),at(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(nl(t),t.alternate===null)throw Error(u(340));Bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nl(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(gt),null;case 4:return at(),null;case 10:return Vl(t.type),null;case 22:case 23:return nl(t),fc(),e!==null&&k(Yn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vl(vt),null;case 25:return null;default:return null}}function dd(e,t){switch($r(t),t.tag){case 3:Vl(vt),at();break;case 26:case 27:case 5:Ce(t);break;case 4:at();break;case 31:t.memoizedState!==null&&nl(t);break;case 13:nl(t);break;case 19:k(gt);break;case 10:Vl(t.type);break;case 22:case 23:nl(t),fc(),e!==null&&k(Yn);break;case 24:Vl(vt)}}function mi(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,r=l.inst;n=i(),r.destroy=n}l=l.next}while(l!==a)}}catch(d){Pe(t,t.return,d)}}function yn(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 r=n.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,a=t;var m=l,z=d;try{z()}catch(O){Pe(a,m,O)}}}n=n.next}while(n!==i)}}catch(O){Pe(t,t.return,O)}}function hd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{lf(t,l)}catch(n){Pe(e,e.return,n)}}}function pd(e,t,l){l.props=Zn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Pe(e,t,n)}}function gi(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){Pe(e,t,a)}}function Dl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Pe(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){Pe(e,t,a)}else l.current=null}function md(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){Pe(e,e.return,a)}}function Vc(e,t,l){try{var n=e.stateNode;om(n,e.type,l,t),n[ve]=t}catch(a){Pe(e,e.return,a)}}function gd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zn(e.type)||e.tag===4}function Xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gd(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&&zn(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 Qc(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=Bl));else if(n!==4&&(n===27&&zn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,l),e=e.sibling;e!==null;)Qc(e,t,l),e=e.sibling}function Ro(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&&zn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ro(e,t,l),e=e.sibling;e!==null;)Ro(e,t,l),e=e.sibling}function yd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Rt(t,n,l),t[I]=e,t[ve]=l}catch(i){Pe(e,e.return,i)}}var Jl=!1,St=!1,Zc=!1,vd=typeof WeakSet=="function"?WeakSet:Set,At=null;function jp(e,t){if(e=e.containerInfo,hs=er,e=Du(e),jr(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 r=0,d=-1,m=-1,z=0,O=0,N=e,T=null;t:for(;;){for(var E;N!==l||a!==0&&N.nodeType!==3||(d=r+a),N!==i||n!==0&&N.nodeType!==3||(m=r+n),N.nodeType===3&&(r+=N.nodeValue.length),(E=N.firstChild)!==null;)T=N,N=E;for(;;){if(N===e)break t;if(T===l&&++z===a&&(d=r),T===i&&++O===n&&(m=r),(E=N.nextSibling)!==null)break;N=T,T=N.parentNode}N=E}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ps={focusedElem:e,selectionRange:l},er=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,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 ie=Zn(l.type,a);e=n.getSnapshotBeforeUpdate(ie,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Pe(l,l.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ys(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ys(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,At=e;break}At=t.return}}function bd(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:$l(e,l),n&4&&mi(5,l);break;case 1:if($l(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){Pe(l,l.return,r)}else{var a=Zn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Pe(l,l.return,r)}}n&64&&hd(l),n&512&&gi(l,l.return);break;case 3:if($l(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{lf(e,t)}catch(r){Pe(l,l.return,r)}}break;case 27:t===null&&n&4&&yd(l);case 26:case 5:$l(e,l),t===null&&n&4&&md(l),n&512&&gi(l,l.return);break;case 12:$l(e,l);break;case 31:$l(e,l),n&4&&Cd(e,l);break;case 13:$l(e,l),n&4&&wd(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Jp.bind(null,l),pm(e,l))));break;case 22:if(n=l.memoizedState!==null||Jl,!n){t=t!==null&&t.memoizedState!==null||St,a=Jl;var i=St;Jl=n,(St=t)&&!i?Wl(e,l,(l.subtreeFlags&8772)!==0):$l(e,l),Jl=a,St=i}break;case 30:break;default:$l(e,l)}}function xd(e){var t=e.alternate;t!==null&&(e.alternate=null,xd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(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,Zt=!1;function Fl(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(an,l)}catch{}switch(l.tag){case 26:St||Dl(l,t),Fl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:St||Dl(l,t);var n=st,a=Zt;zn(l.type)&&(st=l.stateNode,Zt=!1),Fl(e,t,l),Mi(l.stateNode),st=n,Zt=a;break;case 5:St||Dl(l,t);case 6:if(n=st,a=Zt,st=null,Fl(e,t,l),st=n,Zt=a,st!==null)if(Zt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(l.stateNode)}catch(i){Pe(l,t,i)}else try{st.removeChild(l.stateNode)}catch(i){Pe(l,t,i)}break;case 18:st!==null&&(Zt?(e=st,h0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Na(e)):h0(st,l.stateNode));break;case 4:n=st,a=Zt,st=l.stateNode.containerInfo,Zt=!0,Fl(e,t,l),st=n,Zt=a;break;case 0:case 11:case 14:case 15:yn(2,l,t),St||yn(4,l,t),Fl(e,t,l);break;case 1:St||(Dl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&pd(l,t,n)),Fl(e,t,l);break;case 21:Fl(e,t,l);break;case 22:St=(n=St)||l.memoizedState!==null,Fl(e,t,l),St=n;break;default:Fl(e,t,l)}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Na(e)}catch(l){Pe(t,t.return,l)}}}function wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Na(e)}catch(l){Pe(t,t.return,l)}}function qp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vd),t;default:throw Error(u(435,e.tag))}}function Lo(e,t){var l=qp(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Fp.bind(null,e,n);n.then(a,a)}})}function Kt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(zn(d.type)){st=d.stateNode,Zt=!1;break e}break;case 5:st=d.stateNode,Zt=!1;break e;case 3:case 4:st=d.stateNode.containerInfo,Zt=!0;break e}d=d.return}if(st===null)throw Error(u(160));Sd(i,r,a),st=null,Zt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zd(t,e),t=t.sibling}var zl=null;function zd(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Jt(e),n&4&&(yn(3,e,e.return),mi(3,e),yn(5,e,e.return));break;case 1:Kt(t,e),Jt(e),n&512&&(St||l===null||Dl(l,l.return)),n&64&&Jl&&(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=zl;if(Kt(t,e),Jt(e),n&512&&(St||l===null||Dl(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[we]||i[I]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Rt(i,n,l),i[I]=e,ut(i),n=i;break e;case"link":var r=z0("link","href",a).get(n+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(i=r[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)){r.splice(d,1);break t}}i=a.createElement(n),Rt(i,n,l),a.head.appendChild(i);break;case"meta":if(r=z0("meta","content",a).get(n+(l.content||""))){for(d=0;d<r.length;d++)if(i=r[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)){r.splice(d,1);break t}}i=a.createElement(n),Rt(i,n,l),a.head.appendChild(i);break;default:throw Error(u(468,n))}i[I]=e,ut(i),n=i}e.stateNode=n}else M0(a,e.type,e.stateNode);else e.stateNode=w0(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?M0(a,e.type,e.stateNode):w0(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Vc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Kt(t,e),Jt(e),n&512&&(St||l===null||Dl(l,l.return)),l!==null&&n&4&&Vc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Kt(t,e),Jt(e),n&512&&(St||l===null||Dl(l,l.return)),e.flags&32){a=e.stateNode;try{oa(a,"")}catch(ie){Pe(e,e.return,ie)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Vc(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Zc=!0);break;case 6:if(Kt(t,e),Jt(e),n&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(ie){Pe(e,e.return,ie)}}break;case 3:if($o=null,a=zl,zl=Jo(t.containerInfo),Kt(t,e),zl=a,Jt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Na(t.containerInfo)}catch(ie){Pe(e,e.return,ie)}Zc&&(Zc=!1,Md(e));break;case 4:n=zl,zl=Jo(e.stateNode.containerInfo),Kt(t,e),Jt(e),zl=n;break;case 12:Kt(t,e),Jt(e);break;case 31:Kt(t,e),Jt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Lo(e,n)));break;case 13:Kt(t,e),Jt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ho=Dt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Lo(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,z=Jl,O=St;if(Jl=z||a,St=O||m,Kt(t,e),St=O,Jl=z,Jt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||Jl||St||Kn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(i=m.stateNode,a)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=m.stateNode;var N=m.memoizedProps.style,T=N!=null&&N.hasOwnProperty("display")?N.display:null;d.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(ie){Pe(m,m.return,ie)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(ie){Pe(m,m.return,ie)}}}else if(t.tag===18){if(l===null){m=t;try{var E=m.stateNode;a?p0(E,!0):p0(m.stateNode,!1)}catch(ie){Pe(m,m.return,ie)}}}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,Lo(e,l))));break;case 19:Kt(t,e),Jt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Lo(e,n)));break;case 30:break;case 21:break;default:Kt(t,e),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(gd(n)){l=n;break}n=n.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var a=l.stateNode,i=Xc(e);Ro(e,i,a);break;case 5:var r=l.stateNode;l.flags&32&&(oa(r,""),l.flags&=-33);var d=Xc(e);Ro(e,d,r);break;case 3:case 4:var m=l.stateNode.containerInfo,z=Xc(e);Qc(e,z,m);break;default:throw Error(u(161))}}catch(O){Pe(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $l(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bd(e,t.alternate,t),t=t.sibling}function Kn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yn(4,t,t.return),Kn(t);break;case 1:Dl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&pd(t,t.return,l),Kn(t);break;case 27:Mi(t.stateNode);case 26:case 5:Dl(t,t.return),Kn(t);break;case 22:t.memoizedState===null&&Kn(t);break;case 30:Kn(t);break;default:Kn(t)}e=e.sibling}}function Wl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,r=i.flags;switch(i.tag){case 0:case 11:case 15:Wl(a,i,l),mi(4,i);break;case 1:if(Wl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(z){Pe(n,n.return,z)}if(n=i,a=n.updateQueue,a!==null){var d=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)tf(m[a],d)}catch(z){Pe(n,n.return,z)}}l&&r&64&&hd(i),gi(i,i.return);break;case 27:yd(i);case 26:case 5:Wl(a,i,l),l&&n===null&&r&4&&md(i),gi(i,i.return);break;case 12:Wl(a,i,l);break;case 31:Wl(a,i,l),l&&r&4&&Cd(a,i);break;case 13:Wl(a,i,l),l&&r&4&&wd(a,i);break;case 22:i.memoizedState===null&&Wl(a,i,l),gi(i,i.return);break;case 30:break;default:Wl(a,i,l)}t=t.sibling}}function Kc(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&&li(l))}function Jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function Ml(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Td(e,t,l,n),t=t.sibling}function Td(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ml(e,t,l,n),a&2048&&mi(9,t);break;case 1:Ml(e,t,l,n);break;case 3:Ml(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&&li(e)));break;case 12:if(a&2048){Ml(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,d=i.onPostCommit;typeof d=="function"&&d(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Pe(t,t.return,m)}}else Ml(e,t,l,n);break;case 31:Ml(e,t,l,n);break;case 13:Ml(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?Ml(e,t,l,n):yi(e,t):i._visibility&2?Ml(e,t,l,n):(i._visibility|=2,Ta(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Kc(r,t);break;case 24:Ml(e,t,l,n),a&2048&&Jc(t.alternate,t);break;default:Ml(e,t,l,n)}}function Ta(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,d=l,m=n,z=r.flags;switch(r.tag){case 0:case 11:case 15:Ta(i,r,d,m,a),mi(8,r);break;case 23:break;case 22:var O=r.stateNode;r.memoizedState!==null?O._visibility&2?Ta(i,r,d,m,a):yi(i,r):(O._visibility|=2,Ta(i,r,d,m,a)),a&&z&2048&&Kc(r.alternate,r);break;case 24:Ta(i,r,d,m,a),a&&z&2048&&Jc(r.alternate,r);break;default:Ta(i,r,d,m,a)}t=t.sibling}}function yi(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:yi(l,n),a&2048&&Kc(n.alternate,n);break;case 24:yi(l,n),a&2048&&Jc(n.alternate,n);break;default:yi(l,n)}t=t.sibling}}var vi=8192;function Aa(e,t,l){if(e.subtreeFlags&vi)for(e=e.child;e!==null;)Ad(e,t,l),e=e.sibling}function Ad(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&vi&&e.memoizedState!==null&&Tm(l,zl,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var n=zl;zl=Jo(e.stateNode.containerInfo),Aa(e,t,l),zl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=vi,vi=16777216,Aa(e,t,l),vi=n):Aa(e,t,l));break;default:Aa(e,t,l)}}function Ed(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 bi(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];At=n,_d(n,e)}Ed(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dd(e),e=e.sibling}function Dd(e){switch(e.tag){case 0:case 11:case 15:bi(e),e.flags&2048&&yn(9,e,e.return);break;case 3:bi(e);break;case 12:bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uo(e)):bi(e);break;default:bi(e)}}function Uo(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];At=n,_d(n,e)}Ed(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yn(8,t,t.return),Uo(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Uo(t));break;default:Uo(t)}e=e.sibling}}function _d(e,t){for(;At!==null;){var l=At;switch(l.tag){case 0:case 11:case 15:yn(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:li(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,At=n;else e:for(l=e;At!==null;){n=At;var a=n.sibling,i=n.return;if(xd(n),n===l){At=null;break e}if(a!==null){a.return=i,At=a;break e}At=i}}}var Yp={getCacheForType:function(e){var t=kt(vt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return kt(vt).controller.signal}},Gp=typeof WeakMap=="function"?WeakMap:Map,Ze=0,nt=null,je=null,Ye=0,Ie=0,al=null,vn=!1,Ea=!1,Fc=!1,Il=0,dt=0,bn=0,Jn=0,$c=0,il=0,Da=0,xi=null,Ft=null,Wc=!1,Ho=0,kd=0,No=1/0,Bo=null,xn=null,Mt=0,Sn=null,_a=null,Pl=0,Ic=0,Pc=null,Od=null,Si=0,es=null;function ol(){return(Ze&2)!==0&&Ye!==0?Ye&-Ye:A.T!==null?os():oe()}function Rd(){if(il===0)if((Ye&536870912)===0||Ve){var e=Pn;Pn<<=1,(Pn&3932160)===0&&(Pn=262144),il=e}else il=536870912;return e=ll.current,e!==null&&(e.flags|=32),il}function $t(e,t,l){(e===nt&&(Ie===2||Ie===9)||e.cancelPendingCommit!==null)&&(ka(e,0),Cn(e,Ye,il,!1)),Vt(e,l),((Ze&2)===0||e!==nt)&&(e===nt&&((Ze&2)===0&&(Jn|=l),dt===4&&Cn(e,Ye,il,!1)),_l(e))}function Ld(e,t,l){if((Ze&6)!==0)throw Error(u(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||on(e,t),a=n?Qp(e,t):ls(e,t,!0),i=n;do{if(a===0){Ea&&!n&&Cn(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Vp(l)){a=ls(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;a=xi;var m=d.current.memoizedState.isDehydrated;if(m&&(ka(d,r).flags|=256),r=ls(d,r,!1),r!==2){if(Fc&&!m){d.errorRecoveryDisabledLanes|=i,Jn|=i,a=4;break e}i=Ft,Ft=a,i!==null&&(Ft===null?Ft=i:Ft.push.apply(Ft,i))}a=r}if(i=!1,a!==2)continue}}if(a===1){ka(e,0),Cn(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:Cn(n,t,il,!vn);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(a=Ho+300-Dt(),10<a)){if(Cn(n,t,il,!vn),ta(n,0,!0)!==0)break e;Pl=t,n.timeoutHandle=f0(Ud.bind(null,n,l,Ft,Bo,Wc,t,il,Jn,Da,vn,i,"Throttled",-0,0),a);break e}Ud(n,l,Ft,Bo,Wc,t,il,Jn,Da,vn,i,null,-0,0)}}break}while(!0);_l(e)}function Ud(e,t,l,n,a,i,r,d,m,z,O,N,T,E){if(e.timeoutHandle=-1,N=t.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bl},Ad(t,i,N);var ie=(i&62914560)===i?Ho-Dt():(i&4194048)===i?kd-Dt():0;if(ie=Am(N,ie),ie!==null){Pl=i,e.cancelPendingCommit=ie(Vd.bind(null,e,t,i,l,n,a,r,d,m,O,N,null,T,E)),Cn(e,i,r,!z);return}}Vd(e,t,i,l,n,a,r,d,m)}function Vp(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(!el(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 Cn(e,t,l,n){t&=~$c,t&=~Jn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-Yt(a),r=1<<i;n[i]=-1,a&=~r}l!==0&&la(e,l,t)}function jo(){return(Ze&6)===0?(Ci(0),!1):!0}function ts(){if(je!==null){if(Ie===0)var e=je.return;else e=je,Gl=jn=null,yc(e),Sa=null,ai=0,e=je;for(;e!==null;)dd(e.alternate,e),e=e.return;je=null}}function ka(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,sm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pl=0,ts(),nt=e,je=l=ql(e.current,null),Ye=t,Ie=0,al=null,vn=!1,Ea=on(e,t),Fc=!1,Da=il=$c=Jn=bn=dt=0,Ft=xi=null,Wc=!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-Yt(n),i=1<<a;t|=e[a],n&=~i}return Il=t,io(),l}function Hd(e,t){Oe=null,A.H=di,t===xa||t===po?(t=Wu(),Ie=3):t===ic?(t=Wu(),Ie=4):Ie=t===Rc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,al=t,je===null&&(dt=1,Eo(e,hl(t,e.current)))}function Nd(){var e=ll.current;return e===null?!0:(Ye&4194048)===Ye?yl===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===yl:!1}function Bd(){var e=A.H;return A.H=di,e===null?di:e}function jd(){var e=A.A;return A.A=Yp,e}function qo(){dt=4,vn||(Ye&4194048)!==Ye&&ll.current!==null||(Ea=!0),(bn&134217727)===0&&(Jn&134217727)===0||nt===null||Cn(nt,Ye,il,!1)}function ls(e,t,l){var n=Ze;Ze|=2;var a=Bd(),i=jd();(nt!==e||Ye!==t)&&(Bo=null,ka(e,t)),t=!1;var r=dt;e:do try{if(Ie!==0&&je!==null){var d=je,m=al;switch(Ie){case 8:ts(),r=6;break e;case 3:case 2:case 9:case 6:ll.current===null&&(t=!0);var z=Ie;if(Ie=0,al=null,Oa(e,d,m,z),l&&Ea){r=0;break e}break;default:z=Ie,Ie=0,al=null,Oa(e,d,m,z)}}Xp(),r=dt;break}catch(O){Hd(e,O)}while(!0);return t&&e.shellSuspendCounter++,Gl=jn=null,Ze=n,A.H=a,A.A=i,je===null&&(nt=null,Ye=0,io()),r}function Xp(){for(;je!==null;)qd(je)}function Qp(e,t){var l=Ze;Ze|=2;var n=Bd(),a=jd();nt!==e||Ye!==t?(Bo=null,No=Dt()+500,ka(e,t)):Ea=on(e,t);e:do try{if(Ie!==0&&je!==null){t=je;var i=al;t:switch(Ie){case 1:Ie=0,al=null,Oa(e,t,i,1);break;case 2:case 9:if(Fu(i)){Ie=0,al=null,Yd(t);break}t=function(){Ie!==2&&Ie!==9||nt!==e||(Ie=7),_l(e)},i.then(t,t);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:Fu(i)?(Ie=0,al=null,Yd(t)):(Ie=0,al=null,Oa(e,t,i,7));break;case 5:var r=null;switch(je.tag){case 26:r=je.memoizedState;case 5:case 27:var d=je;if(r?T0(r):d.stateNode.complete){Ie=0,al=null;var m=d.sibling;if(m!==null)je=m;else{var z=d.return;z!==null?(je=z,Yo(z)):je=null}break t}}Ie=0,al=null,Oa(e,t,i,5);break;case 6:Ie=0,al=null,Oa(e,t,i,6);break;case 8:ts(),dt=6;break e;default:throw Error(u(462))}}Zp();break}catch(O){Hd(e,O)}while(!0);return Gl=jn=null,A.H=n,A.A=a,Ze=l,je!==null?0:(nt=null,Ye=0,io(),dt)}function Zp(){for(;je!==null&&!nn();)qd(je)}function qd(e){var t=ud(e.alternate,e,Il);e.memoizedProps=e.pendingProps,t===null?Yo(e):je=t}function Yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ad(l,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=ad(l,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:yc(t);default:dd(l,t),t=je=Bu(t,Il),t=ud(l,t,Il)}e.memoizedProps=e.pendingProps,t===null?Yo(e):je=t}function Oa(e,t,l,n){Gl=jn=null,yc(t),Sa=null,ai=0;var a=t.return;try{if(Lp(e,a,t,l,Ye)){dt=1,Eo(e,hl(l,e.current)),je=null;return}}catch(i){if(a!==null)throw je=a,i;dt=1,Eo(e,hl(l,e.current)),je=null;return}t.flags&32768?(Ve||n===1?e=!0:Ea||(Ye&536870912)!==0?e=!1:(vn=e=!0,(n===2||n===9||n===3||n===6)&&(n=ll.current,n!==null&&n.tag===13&&(n.flags|=16384))),Gd(t,e)):Yo(t)}function Yo(e){var t=e;do{if((t.flags&32768)!==0){Gd(t,vn);return}e=t.return;var l=Np(t.alternate,t,Il);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);dt===0&&(dt=5)}function Gd(e,t){do{var l=Bp(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);dt=6,je=null}function Vd(e,t,l,n,a,i,r,d,m){e.cancelPendingCommit=null;do Go();while(Mt!==0);if((Ze&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(i=t.lanes|t.childLanes,i|=Xr,Cr(e,l,i,r,d,m),e===nt&&(je=nt=null,Ye=0),_a=t,Sn=e,Pl=l,Ic=i,Pc=a,Od=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$p(Wn,function(){return Jd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=A.T,A.T=null,a=j.p,j.p=2,r=Ze,Ze|=4;try{jp(e,t,l)}finally{Ze=r,j.p=a,A.T=n}}Mt=1,Xd(),Qd(),Zd()}}function Xd(){if(Mt===1){Mt=0;var e=Sn,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var n=j.p;j.p=2;var a=Ze;Ze|=4;try{zd(t,e);var i=ps,r=Du(e.containerInfo),d=i.focusedElem,m=i.selectionRange;if(r!==d&&d&&d.ownerDocument&&Eu(d.ownerDocument.documentElement,d)){if(m!==null&&jr(d)){var z=m.start,O=m.end;if(O===void 0&&(O=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(O,d.value.length);else{var N=d.ownerDocument||document,T=N&&N.defaultView||window;if(T.getSelection){var E=T.getSelection(),ie=d.textContent.length,xe=Math.min(m.start,ie),lt=m.end===void 0?xe:Math.min(m.end,ie);!E.extend&&xe>lt&&(r=lt,lt=xe,xe=r);var C=Au(d,xe),v=Au(d,lt);if(C&&v&&(E.rangeCount!==1||E.anchorNode!==C.node||E.anchorOffset!==C.offset||E.focusNode!==v.node||E.focusOffset!==v.offset)){var w=N.createRange();w.setStart(C.node,C.offset),E.removeAllRanges(),xe>lt?(E.addRange(w),E.extend(v.node,v.offset)):(w.setEnd(v.node,v.offset),E.addRange(w))}}}}for(N=[],E=d;E=E.parentNode;)E.nodeType===1&&N.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<N.length;d++){var H=N[d];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}er=!!hs,ps=hs=null}finally{Ze=a,j.p=n,A.T=l}}e.current=t,Mt=2}}function Qd(){if(Mt===2){Mt=0;var e=Sn,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var n=j.p;j.p=2;var a=Ze;Ze|=4;try{bd(e,t.alternate,t)}finally{Ze=a,j.p=n,A.T=l}}Mt=3}}function Zd(){if(Mt===4||Mt===3){Mt=0,Cl();var e=Sn,t=_a,l=Pl,n=Od;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Mt=5:(Mt=0,_a=Sn=null,Kd(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(xn=null),Xa(l),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(an,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=A.T,a=j.p,j.p=2,A.T=null;try{for(var i=e.onRecoverableError,r=0;r<n.length;r++){var d=n[r];i(d.value,{componentStack:d.stack})}}finally{A.T=t,j.p=a}}(Pl&3)!==0&&Go(),_l(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===es?Si++:(Si=0,es=e):Si=0,Ci(0)}}function Kd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function Go(){return Xd(),Qd(),Zd(),Jd()}function Jd(){if(Mt!==5)return!1;var e=Sn,t=Ic;Ic=0;var l=Xa(Pl),n=A.T,a=j.p;try{j.p=32>l?32:l,A.T=null,l=Pc,Pc=null;var i=Sn,r=Pl;if(Mt=0,_a=Sn=null,Pl=0,(Ze&6)!==0)throw Error(u(331));var d=Ze;if(Ze|=4,Dd(i.current),Td(i,i.current,r,l),Ze=d,Ci(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(an,i)}catch{}return!0}finally{j.p=a,A.T=n,Kd(e,t)}}function Fd(e,t,l){t=hl(l,t),t=Oc(e.stateNode,t,2),e=pn(e,t,2),e!==null&&(Vt(e,2),_l(e))}function Pe(e,t,l){if(e.tag===3)Fd(e,e,l);else for(;t!==null;){if(t.tag===3){Fd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xn===null||!xn.has(n))){e=hl(l,e),l=$f(2),n=pn(t,l,2),n!==null&&(Wf(l,n,t,e),Vt(n,2),_l(n));break}}t=t.return}}function ns(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Gp;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)||(Fc=!0,a.add(l),e=Kp.bind(null,e,t,l),t.then(e,e))}function Kp(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,nt===e&&(Ye&l)===l&&(dt===4||dt===3&&(Ye&62914560)===Ye&&300>Dt()-Ho?(Ze&2)===0&&ka(e,0):$c|=l,Da===Ye&&(Da=0)),_l(e)}function $d(e,t){t===0&&(t=Zi()),e=Hn(e,t),e!==null&&(Vt(e,t),_l(e))}function Jp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$d(e,l)}function Fp(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),$d(e,l)}function $p(e,t){return Tl(e,t)}var Vo=null,Ra=null,as=!1,Xo=!1,is=!1,wn=0;function _l(e){e!==Ra&&e.next===null&&(Ra===null?Vo=Ra=e:Ra=Ra.next=e),Xo=!0,as||(as=!0,Ip())}function Ci(e,t){if(!is&&Xo){is=!0;do for(var l=!1,n=Vo;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var r=n.suspendedLanes,d=n.pingedLanes;i=(1<<31-Yt(42|e)+1)-1,i&=a&~(r&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,e0(n,i))}else i=Ye,i=ta(n,n===nt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||on(n,i)||(l=!0,e0(n,i));n=n.next}while(l);is=!1}}function Wp(){Wd()}function Wd(){Xo=as=!1;var e=0;wn!==0&&cm()&&(e=wn);for(var t=Dt(),l=null,n=Vo;n!==null;){var a=n.next,i=Id(n,t);i===0?(n.next=null,l===null?Vo=a:l.next=a,a===null&&(Ra=l)):(l=n,(e!==0||(i&3)!==0)&&(Xo=!0)),n=a}Mt!==0&&Mt!==5||Ci(e),wn!==0&&(wn=0)}function Id(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-Yt(i),d=1<<r,m=a[r];m===-1?((d&l)===0||(d&n)!==0)&&(a[r]=kn(d,t)):m<=t&&(e.expiredLanes|=d),i&=~d}if(t=nt,l=Ye,l=ta(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Ie===2||Ie===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&It(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||on(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&It(n),Xa(l)){case 2:case 8:l=Vi;break;case 32:l=Wn;break;case 268435456:l=Xi;break;default:l=Wn}return n=Pd.bind(null,e),l=Tl(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&It(n),e.callbackPriority=2,e.callbackNode=null,2}function Pd(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Go()&&e.callbackNode!==l)return null;var n=Ye;return n=ta(e,e===nt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Ld(e,n,t),Id(e,Dt()),e.callbackNode!=null&&e.callbackNode===l?Pd.bind(null,e):null)}function e0(e,t){if(Go())return null;Ld(e,t,!0)}function Ip(){um(function(){(Ze&6)!==0?Tl(Ga,Wp):Wd()})}function os(){if(wn===0){var e=va;e===0&&(e=In,In<<=1,(In&261888)===0&&(In=256)),wn=e}return wn}function t0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wi(""+e)}function l0(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 Pp(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=t0((a[ve]||null).action),r=n.submitter;r&&(t=(t=r[ve]||null)?t0(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var d=new to("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(wn!==0){var m=r?l0(a,r):new FormData(a);Tc(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(d.preventDefault(),m=r?l0(a,r):new FormData(a),Tc(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var rs=0;rs<Vr.length;rs++){var cs=Vr[rs],em=cs.toLowerCase(),tm=cs[0].toUpperCase()+cs.slice(1);wl(em,"on"+tm)}wl(Ou,"onAnimationEnd"),wl(Ru,"onAnimationIteration"),wl(Lu,"onAnimationStart"),wl("dblclick","onDoubleClick"),wl("focusin","onFocus"),wl("focusout","onBlur"),wl(yp,"onTransitionRun"),wl(vp,"onTransitionStart"),wl(bp,"onTransitionCancel"),wl(Uu,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),On("onBeforeInput",["compositionend","keypress","textInput","paste"]),On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),lm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wi));function n0(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 r=n.length-1;0<=r;r--){var d=n[r],m=d.instance,z=d.currentTarget;if(d=d.listener,m!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=z;try{i(a)}catch(O){ao(O)}a.currentTarget=null,i=m}else for(r=0;r<n.length;r++){if(d=n[r],m=d.instance,z=d.currentTarget,d=d.listener,m!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=z;try{i(a)}catch(O){ao(O)}a.currentTarget=null,i=m}}}}function qe(e,t){var l=t[Le];l===void 0&&(l=t[Le]=new Set);var n=e+"__bubble";l.has(n)||(a0(t,e,2,!1),l.add(n))}function ss(e,t,l){var n=0;t&&(n|=4),a0(l,e,n,t)}var Qo="_reactListening"+Math.random().toString(36).slice(2);function us(e){if(!e[Qo]){e[Qo]=!0,sl.forEach(function(l){l!=="selectionchange"&&(lm.has(l)||ss(l,!1,e),ss(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qo]||(t[Qo]=!0,ss("selectionchange",!1,t))}}function a0(e,t,l,n){switch(R0(t)){case 2:var a=_m;break;case 8:a=km;break;default:a=Ms}l=a.bind(null,t,l,e),a=void 0,!_r||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 fs(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var d=n.stateNode.containerInfo;if(d===a)break;if(r===4)for(r=n.return;r!==null;){var m=r.tag;if((m===3||m===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;d!==null;){if(r=Tt(d),r===null)return;if(m=r.tag,m===5||m===6||m===26||m===27){n=i=r;continue e}d=d.parentNode}}n=n.return}cu(function(){var z=i,O=Er(l),N=[];e:{var T=Hu.get(e);if(T!==void 0){var E=to,ie=e;switch(e){case"keypress":if(Pi(l)===0)break e;case"keydown":case"keyup":E=Fh;break;case"focusin":ie="focus",E=Lr;break;case"focusout":ie="blur",E=Lr;break;case"beforeblur":case"afterblur":E=Lr;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=fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Ih;break;case Ou:case Ru:case Lu:E=qh;break;case Uu:E=ep;break;case"scroll":case"scrollend":E=Uh;break;case"wheel":E=lp;break;case"copy":case"cut":case"paste":E=Gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=hu;break;case"toggle":case"beforetoggle":E=ap}var xe=(t&4)!==0,lt=!xe&&(e==="scroll"||e==="scrollend"),C=xe?T!==null?T+"Capture":null:T;xe=[];for(var v=z,w;v!==null;){var H=v;if(w=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||w===null||C===null||(H=Qa(v,C),H!=null&&xe.push(zi(v,H,w))),lt)break;v=v.return}0<xe.length&&(T=new E(T,ie,null,l,O),N.push({event:T,listeners:xe}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",T&&l!==Ar&&(ie=l.relatedTarget||l.fromElement)&&(Tt(ie)||ie[se]))break e;if((E||T)&&(T=O.window===O?O:(T=O.ownerDocument)?T.defaultView||T.parentWindow:window,E?(ie=l.relatedTarget||l.toElement,E=z,ie=ie?Tt(ie):null,ie!==null&&(lt=g(ie),xe=ie.tag,ie!==lt||xe!==5&&xe!==27&&xe!==6)&&(ie=null)):(E=null,ie=z),E!==ie)){if(xe=fu,H="onMouseLeave",C="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(xe=hu,H="onPointerLeave",C="onPointerEnter",v="pointer"),lt=E==null?T:Xt(E),w=ie==null?T:Xt(ie),T=new xe(H,v+"leave",E,l,O),T.target=lt,T.relatedTarget=w,H=null,Tt(O)===z&&(xe=new xe(C,v+"enter",ie,l,O),xe.target=w,xe.relatedTarget=lt,H=xe),lt=H,E&&ie)t:{for(xe=nm,C=E,v=ie,w=0,H=C;H;H=xe(H))w++;H=0;for(var pe=v;pe;pe=xe(pe))H++;for(;0<w-H;)C=xe(C),w--;for(;0<H-w;)v=xe(v),H--;for(;w--;){if(C===v||v!==null&&C===v.alternate){xe=C;break t}C=xe(C),v=xe(v)}xe=null}else xe=null;E!==null&&i0(N,T,E,xe,!1),ie!==null&&lt!==null&&i0(N,lt,ie,xe,!0)}}e:{if(T=z?Xt(z):window,E=T.nodeName&&T.nodeName.toLowerCase(),E==="select"||E==="input"&&T.type==="file")var Xe=Su;else if(bu(T))if(Cu)Xe=pp;else{Xe=dp;var ce=fp}else E=T.nodeName,!E||E.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?z&&Tr(z.elementType)&&(Xe=Su):Xe=hp;if(Xe&&(Xe=Xe(e,z))){xu(N,Xe,l,O);break e}ce&&ce(e,T,z),e==="focusout"&&z&&T.type==="number"&&z.memoizedProps.value!=null&&Mr(T,"number",T.value)}switch(ce=z?Xt(z):window,e){case"focusin":(bu(ce)||ce.contentEditable==="true")&&(ua=ce,qr=z,Pa=null);break;case"focusout":Pa=qr=ua=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":Yr=!1,_u(N,l,O);break;case"selectionchange":if(gp)break;case"keydown":case"keyup":_u(N,l,O)}var Ue;if(Hr)e:{switch(e){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else sa?yu(e,l)&&(Ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ge="onCompositionStart");Ge&&(pu&&l.locale!=="ko"&&(sa||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&sa&&(Ue=su()):(rn=O,kr="value"in rn?rn.value:rn.textContent,sa=!0)),ce=Zo(z,Ge),0<ce.length&&(Ge=new du(Ge,e,null,l,O),N.push({event:Ge,listeners:ce}),Ue?Ge.data=Ue:(Ue=vu(l),Ue!==null&&(Ge.data=Ue)))),(Ue=op?rp(e,l):cp(e,l))&&(Ge=Zo(z,"onBeforeInput"),0<Ge.length&&(ce=new du("onBeforeInput","beforeinput",null,l,O),N.push({event:ce,listeners:Ge}),ce.data=Ue)),Pp(N,e,z,l,O)}n0(N,t)})}function zi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zo(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=Qa(e,l),a!=null&&n.unshift(zi(e,a,i)),a=Qa(e,t),a!=null&&n.push(zi(e,a,i))),e.tag===3)return n;e=e.return}return[]}function nm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function i0(e,t,l,n,a){for(var i=t._reactName,r=[];l!==null&&l!==n;){var d=l,m=d.alternate,z=d.stateNode;if(d=d.tag,m!==null&&m===n)break;d!==5&&d!==26&&d!==27||z===null||(m=z,a?(z=Qa(l,i),z!=null&&r.unshift(zi(l,z,m))):a||(z=Qa(l,i),z!=null&&r.push(zi(l,z,m)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var am=/\r\n?/g,im=/\u0000|\uFFFD/g;function o0(e){return(typeof e=="string"?e:""+e).replace(am,`
9
+ `).replace(im,"")}function r0(e,t){return t=o0(t),o0(e)===t}function tt(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||oa(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&oa(e,""+n);break;case"className":Fi(e,"class",n);break;case"tabIndex":Fi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Fi(e,l,n);break;case"style":ou(e,n,i);break;case"data":if(t!=="object"){Fi(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=Wi(""+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=Wi(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Bl);break;case"onScroll":n!=null&&qe("scroll",e);break;case"onScrollEnd":n!=null&&qe("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=Wi(""+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":qe("beforetoggle",e),qe("toggle",e),Ji(e,"popover",n);break;case"xlinkActuate":Nl(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Nl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Nl(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Nl(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Nl(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Nl(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Nl(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Nl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Nl(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ji(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,Ji(e,l,n))}}function ds(e,t,l,n,a,i){switch(l){case"style":ou(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"?oa(e,n):(typeof n=="number"||typeof n=="bigint")&&oa(e,""+n);break;case"onScroll":n!=null&&qe("scroll",e);break;case"onScrollEnd":n!=null&&qe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Bl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ki.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[ve]||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,""):Ji(e,l,n)}}}function Rt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var r=l[i];if(r!=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,r,l,null)}}a&&tt(e,t,"srcSet",l.srcSet,l,null),n&&tt(e,t,"src",l.src,l,null);return;case"input":qe("invalid",e);var d=i=r=a=null,m=null,z=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":r=O;break;case"checked":m=O;break;case"defaultChecked":z=O;break;case"value":i=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:tt(e,t,n,O,l,null)}}lu(e,i,d,m,z,r,a,!1);return;case"select":qe("invalid",e),n=r=i=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":i=d;break;case"defaultValue":r=d;break;case"multiple":n=d;default:tt(e,t,a,d,l,null)}t=i,l=r,e.multiple=!!n,t!=null?ia(e,!!n,t,!1):l!=null&&ia(e,!!n,l,!0);return;case"textarea":qe("invalid",e),i=a=n=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){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,r,d,l,null)}au(e,n,a,i);return;case"option":for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!=null)&&(m==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":tt(e,t,m,n,l,null));return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(n=0;n<wi.length;n++)qe(wi[n],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("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(z in l)if(l.hasOwnProperty(z)&&(n=l[z],n!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:tt(e,t,z,n,l,null)}return;default:if(Tr(t)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&ds(e,t,O,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 om(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,r=null,d=null,m=null,z=null,O=null;for(E in l){var N=l[E];if(l.hasOwnProperty(E)&&N!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":m=N;default:n.hasOwnProperty(E)||tt(e,t,E,null,n,N)}}for(var T in n){var E=n[T];if(N=l[T],n.hasOwnProperty(T)&&(E!=null||N!=null))switch(T){case"type":i=E;break;case"name":a=E;break;case"checked":z=E;break;case"defaultChecked":O=E;break;case"value":r=E;break;case"defaultValue":d=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(u(137,t));break;default:E!==N&&tt(e,t,T,E,n,N)}}zr(e,r,d,m,z,O,i,a);return;case"select":E=r=d=T=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":E=m;default:n.hasOwnProperty(i)||tt(e,t,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":T=i;break;case"defaultValue":d=i;break;case"multiple":r=i;default:i!==m&&tt(e,t,a,i,n,m)}t=d,l=r,n=E,T!=null?ia(e,!!l,T,!1):!!n!=!!l&&(t!=null?ia(e,!!l,t,!0):ia(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(r in n)if(a=n[r],i=l[r],n.hasOwnProperty(r)&&(a!=null||i!=null))switch(r){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,r,a,n,i)}nu(e,T,E);return;case"option":for(var ie in l)T=l[ie],l.hasOwnProperty(ie)&&T!=null&&!n.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:tt(e,t,ie,null,n,T));for(m in n)T=n[m],E=l[m],n.hasOwnProperty(m)&&T!==E&&(T!=null||E!=null)&&(m==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":tt(e,t,m,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 xe in l)T=l[xe],l.hasOwnProperty(xe)&&T!=null&&!n.hasOwnProperty(xe)&&tt(e,t,xe,null,n,T);for(z in n)if(T=n[z],E=l[z],n.hasOwnProperty(z)&&T!==E&&(T!=null||E!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(u(137,t));break;default:tt(e,t,z,T,n,E)}return;default:if(Tr(t)){for(var lt in l)T=l[lt],l.hasOwnProperty(lt)&&T!==void 0&&!n.hasOwnProperty(lt)&&ds(e,t,lt,void 0,n,T);for(O in n)T=n[O],E=l[O],!n.hasOwnProperty(O)||T===E||T===void 0&&E===void 0||ds(e,t,O,T,n,E);return}}for(var C in l)T=l[C],l.hasOwnProperty(C)&&T!=null&&!n.hasOwnProperty(C)&&tt(e,t,C,null,n,T);for(N in n)T=n[N],E=l[N],!n.hasOwnProperty(N)||T===E||T==null&&E==null||tt(e,t,N,T,n,E)}function c0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rm(){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,r=a.initiatorType,d=a.duration;if(i&&d&&c0(r)){for(r=0,d=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],z=m.startTime;if(z>d)break;var O=m.transferSize,N=m.initiatorType;O&&c0(N)&&(m=m.responseEnd,r+=O*(m<d?1:(d-z)/(m-z)))}if(--n,t+=8*(i+r)/(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 hs=null,ps=null;function Ko(e){return e.nodeType===9?e:e.ownerDocument}function s0(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 u0(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 ms(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 gs=null;function cm(){var e=window.event;return e&&e.type==="popstate"?e===gs?!1:(gs=e,!0):(gs=null,!1)}var f0=typeof setTimeout=="function"?setTimeout:void 0,sm=typeof clearTimeout=="function"?clearTimeout:void 0,d0=typeof Promise=="function"?Promise:void 0,um=typeof queueMicrotask=="function"?queueMicrotask:typeof d0<"u"?function(e){return d0.resolve(null).then(e).catch(fm)}:f0;function fm(e){setTimeout(function(){throw e})}function zn(e){return e==="head"}function h0(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),Na(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Mi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Mi(l);for(var i=l.firstChild;i;){var r=i.nextSibling,d=i.nodeName;i[we]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=r}}else l==="body"&&Mi(e.ownerDocument.body);l=a}while(l);Na(t)}function p0(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 ys(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":ys(l),mt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function dm(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[we])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=vl(e.nextSibling),e===null)break}return null}function hm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=vl(e.nextSibling),e===null))return null;return e}function m0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=vl(e.nextSibling),e===null))return null;return e}function vs(e){return e.data==="$?"||e.data==="$~"}function bs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pm(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 vl(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 xs=null;function g0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return vl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function y0(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 v0(e,t,l){switch(t=Ko(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 Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var bl=new Map,b0=new Set;function Jo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var en=j.d;j.d={f:mm,r:gm,D:ym,C:vm,L:bm,m:xm,X:Cm,S:Sm,M:wm};function mm(){var e=en.f(),t=jo();return e||t}function gm(e){var t=ct(e);t!==null&&t.tag===5&&t.type==="form"?Hf(t):en.r(e)}var La=typeof document>"u"?null:document;function x0(e,t,l){var n=La;if(n&&typeof t=="string"&&t){var a=fl(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),b0.has(a)||(b0.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Rt(t,"link",e),ut(t),n.head.appendChild(t)))}}function ym(e){en.D(e),x0("dns-prefetch",e,null)}function vm(e,t){en.C(e,t),x0("preconnect",e,t)}function bm(e,t,l){en.L(e,t,l);var n=La;if(n&&e&&t){var a='link[rel="preload"][as="'+fl(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+fl(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+fl(l.imageSizes)+'"]')):a+='[href="'+fl(e)+'"]';var i=a;switch(t){case"style":i=Ua(e);break;case"script":i=Ha(e)}bl.has(i)||(e=B({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),bl.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Ti(i))||t==="script"&&n.querySelector(Ai(i))||(t=n.createElement("link"),Rt(t,"link",e),ut(t),n.head.appendChild(t)))}}function xm(e,t){en.m(e,t);var l=La;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+fl(n)+'"][href="'+fl(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ha(e)}if(!bl.has(i)&&(e=B({rel:"modulepreload",href:e},t),bl.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ai(i)))return}n=l.createElement("link"),Rt(n,"link",e),ut(n),l.head.appendChild(n)}}}function Sm(e,t,l){en.S(e,t,l);var n=La;if(n&&e){var a=Pt(n).hoistableStyles,i=Ua(e);t=t||"default";var r=a.get(i);if(!r){var d={loading:0,preload:null};if(r=n.querySelector(Ti(i)))d.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":t},l),(l=bl.get(i))&&Ss(e,l);var m=r=n.createElement("link");ut(m),Rt(m,"link",e),m._p=new Promise(function(z,O){m.onload=z,m.onerror=O}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Fo(r,t,n)}r={type:"stylesheet",instance:r,count:1,state:d},a.set(i,r)}}}function Cm(e,t){en.X(e,t);var l=La;if(l&&e){var n=Pt(l).hoistableScripts,a=Ha(e),i=n.get(a);i||(i=l.querySelector(Ai(a)),i||(e=B({src:e,async:!0},t),(t=bl.get(a))&&Cs(e,t),i=l.createElement("script"),ut(i),Rt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function wm(e,t){en.M(e,t);var l=La;if(l&&e){var n=Pt(l).hoistableScripts,a=Ha(e),i=n.get(a);i||(i=l.querySelector(Ai(a)),i||(e=B({src:e,async:!0,type:"module"},t),(t=bl.get(a))&&Cs(e,t),i=l.createElement("script"),ut(i),Rt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function S0(e,t,l,n){var a=(a=W.current)?Jo(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=Ua(l.href),l=Pt(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=Ua(l.href);var i=Pt(a).hoistableStyles,r=i.get(e);if(r||(a=a.ownerDocument||a,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=a.querySelector(Ti(e)))&&!i._p&&(r.instance=i,r.state.loading=5),bl.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},bl.set(e,l),i||zm(a,e,l,r.state))),t&&n===null)throw Error(u(528,""));return r}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=Ha(l),l=Pt(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 Ua(e){return'href="'+fl(e)+'"'}function Ti(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return B({},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}),Rt(t,"link",l),ut(t),e.head.appendChild(t))}function Ha(e){return'[src="'+fl(e)+'"]'}function Ai(e){return"script[async]"+e}function w0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+fl(l.href)+'"]');if(n)return t.instance=n,ut(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ut(n),Rt(n,"style",a),Fo(n,l.precedence,e),t.instance=n;case"stylesheet":a=Ua(l.href);var i=e.querySelector(Ti(a));if(i)return t.state.loading|=4,t.instance=i,ut(i),i;n=C0(l),(a=bl.get(a))&&Ss(n,a),i=(e.ownerDocument||e).createElement("link"),ut(i);var r=i;return r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),Rt(i,"link",n),t.state.loading|=4,Fo(i,l.precedence,e),t.instance=i;case"script":return i=Ha(l.src),(a=e.querySelector(Ai(i)))?(t.instance=a,ut(a),a):(n=l,(a=bl.get(i))&&(n=B({},l),Cs(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),ut(a),Rt(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,Fo(n,l.precedence,e));return t.instance}function Fo(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,r=0;r<n.length;r++){var d=n[r];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 Ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $o=null;function z0(e,t,l){if($o===null){var n=new Map,a=$o=new Map;a.set(l,n)}else a=$o,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[we]||i[I]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var d=n.get(r);d?d.push(i):n.set(r,[i])}}return n}function M0(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 T0(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=Ua(n.href),i=t.querySelector(Ti(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wo.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,ut(i);return}i=t.ownerDocument||t,n=C0(n),(a=bl.get(a))&&Ss(n,a),i=i.createElement("link"),ut(i);var r=i;r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),Rt(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=Wo.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ws=0;function Am(e,t){return e.stylesheets&&e.count===0&&Po(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Po(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&ws===0&&(ws=62500*rm());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Po(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>ws?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Wo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Po(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Io=null;function Po(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Io=new Map,t.forEach(Em,e),Io=null,Wo.call(e))}function Em(e,t){if(!(t.state.loading&4)){var l=Io.get(e);if(l)var n=l.get(null);else{l=new Map,Io.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var r=a[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),n=r)}n&&l.set(null,n)}a=t.instance,r=a.getAttribute("data-precedence"),i=l.get(r)||n,i===n&&l.set(null,a),l.set(r,a),this.count++,n=Wo.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 Ei={$$typeof:le,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Dm(e,t,l,n,a,i,r,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function A0(e,t,l,n,a,i,r,d,m,z,O,N){return e=new Dm(e,t,l,r,m,z,O,N,d),t=1,i===!0&&(t|=24),i=tl(3,null,null,t),e.current=i,i.stateNode=e,t=lc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},oc(i),e}function E0(e){return e?(e=ha,e):ha}function D0(e,t,l,n,a,i){a=E0(a),n.context===null?n.context=a:n.pendingContext=a,n=hn(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=pn(e,n,t),l!==null&&($t(l,e,t),oi(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function zs(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function k0(e){if(e.tag===13||e.tag===31){var t=Hn(e,67108864);t!==null&&$t(t,e,67108864),zs(e,67108864)}}function O0(e){if(e.tag===13||e.tag===31){var t=ol();t=na(t);var l=Hn(e,t);l!==null&&$t(l,e,t),zs(e,t)}}var er=!0;function _m(e,t,l,n){var a=A.T;A.T=null;var i=j.p;try{j.p=2,Ms(e,t,l,n)}finally{j.p=i,A.T=a}}function km(e,t,l,n){var a=A.T;A.T=null;var i=j.p;try{j.p=8,Ms(e,t,l,n)}finally{j.p=i,A.T=a}}function Ms(e,t,l,n){if(er){var a=Ts(n);if(a===null)fs(e,t,n,tr,l),L0(e,n);else if(Rm(a,e,t,l,n))n.stopPropagation();else if(L0(e,n),t&4&&-1<Om.indexOf(e)){for(;a!==null;){var i=ct(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Ll(i.pendingLanes);if(r!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var m=1<<31-Yt(r);d.entanglements[1]|=m,r&=~m}_l(i),(Ze&6)===0&&(No=Dt()+500,Ci(0))}}break;case 31:case 13:d=Hn(i,2),d!==null&&$t(d,i,2),jo(),zs(i,2)}if(i=Ts(n),i===null&&fs(e,t,n,tr,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else fs(e,t,n,null,l)}}function Ts(e){return e=Er(e),As(e)}var tr=null;function As(e){if(tr=null,e=Tt(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=_(t),e!==null)return e;e=null}else if(l===31){if(e=R(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 tr=e,null}function R0(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(gr()){case Ga:return 2;case Vi:return 8;case Wn:case yr:return 32;case Xi:return 268435456;default:return 32}default:return 32}}var Es=!1,Mn=null,Tn=null,An=null,Di=new Map,_i=new Map,En=[],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 L0(e,t){switch(e){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":Di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_i.delete(t.pointerId)}}function ki(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=ct(t),t!==null&&k0(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 Mn=ki(Mn,e,t,l,n,a),!0;case"dragenter":return Tn=ki(Tn,e,t,l,n,a),!0;case"mouseover":return An=ki(An,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return Di.set(i,ki(Di.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,_i.set(i,ki(_i.get(i)||null,e,t,l,n,a)),!0}return!1}function U0(e){var t=Tt(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=_(l),t!==null){e.blockedOn=t,F(e.priority,function(){O0(l)});return}}else if(t===31){if(t=R(l),t!==null){e.blockedOn=t,F(e.priority,function(){O0(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 lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ts(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Ar=n,l.target.dispatchEvent(n),Ar=null}else return t=ct(l),t!==null&&k0(t),e.blockedOn=l,!1;t.shift()}return!0}function H0(e,t,l){lr(e)&&l.delete(t)}function Lm(){Es=!1,Mn!==null&&lr(Mn)&&(Mn=null),Tn!==null&&lr(Tn)&&(Tn=null),An!==null&&lr(An)&&(An=null),Di.forEach(H0),_i.forEach(H0)}function nr(e,t){e.blockedOn===t&&(e.blockedOn=null,Es||(Es=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Lm)))}var ar=null;function N0(e){ar!==e&&(ar=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){ar===e&&(ar=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(As(n||l)===null)continue;break}var i=ct(l);i!==null&&(e.splice(t,3),t-=3,Tc(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Na(e){function t(m){return nr(m,e)}Mn!==null&&nr(Mn,e),Tn!==null&&nr(Tn,e),An!==null&&nr(An,e),Di.forEach(t),_i.forEach(t);for(var l=0;l<En.length;l++){var n=En[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<En.length&&(l=En[0],l.blockedOn===null);)U0(l),l.blockedOn===null&&En.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],r=a[ve]||null;if(typeof i=="function")r||N0(l);else if(r){var d=null;if(i&&i.hasAttribute("formAction")){if(a=i,r=i[ve]||null)d=r.formAction;else if(As(a)!==null)continue}else d=r.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),N0(l)}}}function B0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return a=r})},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 Ds(e){this._internalRoot=e}ir.prototype.render=Ds.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,n=ol();D0(l,n,e,t,null,null)},ir.prototype.unmount=Ds.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;D0(e.current,2,null,e,null,null),jo(),t[se]=null}};function ir(e){this._internalRoot=e}ir.prototype.unstable_scheduleHydration=function(e){if(e){var t=oe();e={blockedOn:null,target:e,priority:t};for(var l=0;l<En.length&&t!==0&&t<En[l].priority;l++);En.splice(l,0,e),l===0&&U0(e)}};var j0=s.version;if(j0!=="19.2.4")throw Error(u(527,j0,"19.2.4"));j.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=S(t),e=e!==null?G(e):null,e=e===null?null:e.stateNode,e};var Um={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var or=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!or.isDisabled&&or.supportsFiber)try{an=or.inject(Um),qt=or}catch{}}return Li.createRoot=function(e,t){if(!p(e))throw Error(u(299));var l=!1,n="",a=Zf,i=Kf,r=Jf;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&&(r=t.onRecoverableError)),t=A0(e,1,!1,null,null,l,n,null,a,i,r,B0),e[se]=t.current,us(e),new Ds(t)},Li.hydrateRoot=function(e,t,l){if(!p(e))throw Error(u(299));var n=!1,a="",i=Zf,r=Kf,d=Jf,m=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&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=A0(e,1,!0,t,l??null,n,a,m,i,r,d,B0),t.context=E0(null),l=t.current,n=ol(),n=na(n),a=hn(n),a.callback=null,pn(l,a,n),l=n,t.current.lanes=l,Vt(t,l),_l(t),e[se]=t.current,us(e),new ir(t)},Li.version="19.2.4",Li}var ih;function Y1(){if(ih)return Us.exports;ih=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(),Us.exports=q1(),Us.exports}var G1=Y1(),oh=function(s,h){var u=arguments;if(h==null||!Yi.call(h,"css"))return M.createElement.apply(void 0,u);var p=u.length,g=new Array(p);g[0]=$s,g[1]=Fs(s,h);for(var _=2;_<p;_++)g[_]=u[_];return M.createElement.apply(null,g)};(function(o){var s;s||(s=o.JSX||(o.JSX={}))})(oh||(oh={}));function b(){for(var o=arguments.length,s=new Array(o),h=0;h<o;h++)s[h]=arguments[h];return xh(s)}function tn(){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 V1={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"},X1={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:V1,requestDelete:()=>{},requestMove:()=>{},requestSync:()=>{},requestProcess:()=>{},setProcessMode:()=>{},confirmDelete:async()=>{},confirmMove:async()=>{},confirmSync:async()=>{},confirmProcess:async()=>{},cancelAction:()=>{},closeProgress:()=>{},stopProcessing:()=>{},abortController:null,deleteOrphans:async()=>{}},Ch=M.createContext(X1);function qa(){return M.useContext(Ch)}const mr="-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"},$={xs:"13px",sm:"14px",base:"16px",lg:"19px",xl:"22px"},Gi=b("font-family:",mr,";font-size:",$.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;}",""),Q1=tn`
10
+ from { opacity: 0; }
11
+ to { opacity: 1; }
12
+ `,Z1=tn`
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
+ `,ze={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:",Q1," 0.15s ease-out;font-family:",mr,";",""),modal:b(Gi," 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:",Z1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",$.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:",$.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:",$.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 Ui({title:o,message:s,confirmLabel:h="Confirm",cancelLabel:u="Cancel",variant:p="default",onConfirm:g,onCancel:_}){return c("div",{css:ze.overlay,onClick:_,children:x("div",{css:ze.modal,onClick:R=>R.stopPropagation(),children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),c("div",{css:ze.body,children:c("p",{css:ze.message,children:s})}),x("div",{css:ze.footer,children:[c("button",{css:[ze.btn,ze.btnCancel,"",""],onClick:_,children:u}),c("button",{css:[ze.btn,p==="danger"?ze.btnDanger:ze.btnConfirm,"",""],onClick:g,children:h})]})]})})}const K1={input:b("width:100%;padding:10px 12px;font-size:",$.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 Xs({title:o,message:s,inputLabel:h,defaultValue:u="",placeholder:p,confirmLabel:g="Confirm",cancelLabel:_="Cancel",onConfirm:R,onCancel:L}){const[S,G]=uh.useState(u),B=K=>{K.preventDefault(),S.trim()&&R(S.trim())};return c("div",{css:ze.overlay,onClick:L,children:c("div",{css:ze.modal,onClick:K=>K.stopPropagation(),children:x("form",{onSubmit:B,children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),x("div",{css:ze.body,children:[s&&c("p",{css:ze.message,children:s}),h&&c("label",{css:ze.message,children:h}),c("input",{css:K1.input,type:"text",value:S,onChange:K=>G(K.target.value),placeholder:p,autoFocus:!0})]}),x("div",{css:ze.footer,children:[c("button",{type:"button",css:[ze.btn,ze.btnCancel,"",""],onClick:L,children:_}),c("button",{type:"submit",css:[ze.btn,ze.btnConfirm,"",""],disabled:!S.trim(),children:g})]})]})})})}function wh({title:o,message:s,buttonLabel:h="OK",onClose:u}){return c("div",{css:ze.overlay,onClick:u,children:x("div",{css:ze.modal,onClick:p=>p.stopPropagation(),children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),c("div",{css:ze.body,children:c("p",{css:ze.message,children:s})}),c("div",{css:ze.footer,children:c("button",{css:[ze.btn,ze.btnConfirm,"",""],onClick:u,children:h})})]})})}const _n={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:",$.sm,";color:",f.textSecondary,";margin:0;display:flex;justify-content:space-between;align-items:center;",""),currentFile:b("font-size:",$.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:",$.xs,";color:#991b1b;margin:0 0 4px;&:last-child{margin-bottom:0;}","")};function Ws({title:o,progress:s,onClose:h,onDeleteOrphans:u,onStop:p}){const g=s.status==="complete",_=s.status==="error",R=s.status==="stopped",L=s.status==="stopping",S=g||_||R,G=!S||L;return c("div",{css:ze.overlay,children:x("div",{css:ze.modal,onClick:B=>B.stopPropagation(),children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),c("div",{css:ze.body,children:_?c("p",{css:ze.message,children:s.message||"An error occurred"}):R?x("p",{css:ze.message,children:["Processing stopped. Processed ",s.processed??s.current," image",(s.processed??s.current)!==1?"s":""," before stopping."]}):g?x(Ct,{children:[x("p",{css:ze.message,children:[s.message?s.message:s.isMove?x(Ct,{children:["Moved ",s.processed," file",s.processed!==1?"s":"",".",s.errors!==void 0&&s.errors>0?x(Ct,{children:[" ",s.errors," error",s.errors!==1?"s":""," occurred."]}):null]}):s.isScan?x(Ct,{children:[s.alreadyProcessed!==void 0&&s.alreadyProcessed>0?x(Ct,{children:[s.alreadyProcessed," image",s.alreadyProcessed!==1?"s":""," already exist. "]}):null,"Scanned ",s.processed," new image",s.processed!==1?"s":"",".",s.orphanedEntries!==void 0&&s.orphanedEntries>0?x(Ct,{children:[" Removed ",s.orphanedEntries," orphaned entr",s.orphanedEntries!==1?"ies":"y","."]}):null,s.pendingUpdates!==void 0&&s.pendingUpdates>0?x(Ct,{children:[" ",s.pendingUpdates," file",s.pendingUpdates!==1?"s have":" has"," local updates pending."]}):null]}):x(Ct,{children:["Processed ",s.processed," new image",s.processed!==1?"s":"",".",s.alreadyProcessed!==void 0&&s.alreadyProcessed>0?x(Ct,{children:[" ",s.alreadyProcessed," already processed."]}):null]}),s.orphansRemoved!==void 0&&s.orphansRemoved>0?x(Ct,{children:[" Removed ",s.orphansRemoved," orphaned thumbnail",s.orphansRemoved!==1?"s":"","."]}):null]}),s.errorMessages&&s.errorMessages.length>0&&x("div",{css:_n.errorList,children:[s.errorMessages.slice(0,10).map((B,K)=>c("p",{css:_n.errorItem,children:B},K)),s.errorMessages.length>10&&x("p",{css:_n.errorItem,children:["...and ",s.errorMessages.length-10," more"]})]})]}):x(Ct,{children:[c("p",{css:ze.message,children:s.status==="cleanup"?s.message||"Cleaning up...":s.message||"Processing..."}),x("div",{css:_n.progressContainer,children:[c("div",{css:_n.progressBar,children:c("div",{css:_n.progressFill,style:{width:`${s.percent}%`}})}),x("div",{css:_n.progressText,children:[x("span",{children:[s.current," of ",s.total]}),x("span",{children:[s.percent,"%"]})]}),s.currentFile&&c("p",{css:_n.currentFile,title:s.currentFile,children:s.currentFile})]})]})}),x("div",{css:ze.footer,children:[G&&p&&c("button",{css:[ze.btn,ze.btnDanger,"",""],onClick:p,disabled:s.status==="stopping",children:s.status==="stopping"?"Stopping...":"Stop"}),S&&s.orphanedFiles&&s.orphanedFiles.length>0&&u&&x("button",{css:[ze.btn,ze.btnDanger,"",""],onClick:u,children:["Delete ",s.orphanedFiles.length," Orphan",s.orphanedFiles.length!==1?"s":""]}),S&&c("button",{css:[ze.btn,ze.btnConfirm,"",""],onClick:h,children:"Done"})]})]})})}const J1=tn`
22
+ from { opacity: 0; }
23
+ to { opacity: 1; }
24
+ `,F1=tn`
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
+ `,ht={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:",J1," 0.15s ease-out;font-family:",mr,";",""),modal:b(Gi," 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:",F1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",$.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:",$.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:",$.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:",$.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 zh({selectedItems:o,currentPath:s,onMove:h,onCancel:u}){const[p,g]=M.useState([]),[_,R]=M.useState(!0),[L,S]=M.useState(null);M.useEffect(()=>{async function U(){try{const X=await fetch("/api/studio/list-folders");if(X.ok){const me=await X.json();console.log("Loaded folders:",me),g(me.folders||[])}else console.error("Failed to load folders:",X.status,await X.text())}catch(X){console.error("Failed to load folders:",X)}finally{R(!1)}}U()},[]);const G=Array.from(o),B=p.filter(U=>!G.some(X=>U.path===X||U.path.startsWith(X+"/"))),K=U=>U===s,ae=()=>{L&&h(L)};return c("div",{css:ht.overlay,onClick:u,children:x("div",{css:ht.modal,onClick:U=>U.stopPropagation(),children:[c("div",{css:ht.header,children:c("h3",{css:ht.title,children:"Move Items"})}),x("div",{css:ht.body,children:[x("p",{css:ht.message,children:["Select a destination folder for ",o.size," item",o.size!==1?"s":"",":"]}),_?c("div",{css:ht.loading,children:c("div",{css:ht.spinner})}):B.length===0?c("div",{css:ht.loading,children:"No available folders to move to."}):c("div",{css:ht.folderList,children:B.map(U=>{const X=K(U.path);return x("div",{css:[ht.folderItem,L===U.path&&ht.folderItemSelected,X&&ht.folderItemDisabled,"",""],style:{paddingLeft:12},onClick:()=>!X&&S(U.path),children:[U.depth>0&&c("div",{css:ht.treeIndent,children:Array.from({length:U.depth}).map((me,ee)=>c("div",{css:ht.treeLine},ee))}),c("svg",{css:ht.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),x("span",{css:ht.folderName,children:[U.name,X&&" (current)"]})]},U.path)})})]}),x("div",{css:ht.footer,children:[c("button",{css:[ht.btn,ht.btnCancel,"",""],onClick:u,children:"Cancel"}),c("button",{css:[ht.btn,ht.btnConfirm,"",""],onClick:ae,disabled:!L,children:"Move Here"})]})]})})}const $1=`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`,re={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:",$.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:",$.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:",$.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:",$.base,";font-weight:500;color:",f.text,";margin:0 0 4px 0;",""),stepDesc:b("font-size:",$.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:",$.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:",$.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 Mh({isOpen:o,onClose:s}){const[h,u]=M.useState(!1),p=async()=>{try{await navigator.clipboard.writeText($1),u(!0),setTimeout(()=>u(!1),2e3)}catch(g){console.error("Failed to copy:",g)}};return o?c("div",{css:re.overlay,onClick:s,children:x("div",{css:re.modal,onClick:g=>g.stopPropagation(),children:[x("div",{css:re.header,children:[c("svg",{css:re.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("h2",{css:re.title,children:"Set Up CDN Storage"}),c("button",{css:re.closeBtn,onClick:s,children:c("svg",{css:re.closeIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x("div",{css:re.content,children:[c("p",{css:re.intro,children:"Sync your images to Cloudflare R2 for faster global delivery. R2 offers generous free tier with no egress fees."}),x("ol",{css:re.steps,children:[x("li",{css:re.step,children:[c("span",{css:re.stepNumber,children:"1"}),x("div",{css:re.stepContent,children:[c("h4",{css:re.stepTitle,children:"Create a Cloudflare account"}),x("p",{css:re.stepDesc,children:["Sign up at"," ",c("a",{css:re.link,href:"https://dash.cloudflare.com/sign-up",target:"_blank",rel:"noopener noreferrer",children:"dash.cloudflare.com"})," ","if you don't have one already."]})]})]}),x("li",{css:re.step,children:[c("span",{css:re.stepNumber,children:"2"}),x("div",{css:re.stepContent,children:[c("h4",{css:re.stepTitle,children:"Create an R2 bucket"}),x("p",{css:re.stepDesc,children:["Go to R2 in your Cloudflare dashboard and create a new bucket. Choose a name like ",c("code",{children:"my-images"}),"."]})]})]}),x("li",{css:re.step,children:[c("span",{css:re.stepNumber,children:"3"}),x("div",{css:re.stepContent,children:[c("h4",{css:re.stepTitle,children:"Enable public access"}),x("p",{css:re.stepDesc,children:['In bucket settings, enable "Public Access" and copy the public URL (e.g., ',c("code",{children:"https://pub-xxx.r2.dev"}),")."]})]})]}),x("li",{css:re.step,children:[c("span",{css:re.stepNumber,children:"4"}),x("div",{css:re.stepContent,children:[c("h4",{css:re.stepTitle,children:"Create API token"}),c("p",{css:re.stepDesc,children:'Go to R2 → Manage R2 API Tokens → Create API Token. Select "Object Read & Write" permissions for your bucket.'})]})]}),x("li",{css:re.step,children:[c("span",{css:re.stepNumber,children:"5"}),x("div",{css:re.stepContent,children:[c("h4",{css:re.stepTitle,children:"Add environment variables"}),x("p",{css:re.stepDesc,children:["Add these to your ",c("code",{children:".env.local"})," file:"]})]})]})]}),x("div",{css:re.envVarsWrapper,children:[x("div",{css:re.envVars,children:[x("span",{css:re.envVar,children:[c("span",{css:re.envKey,children:"CLOUDFLARE_R2_ACCOUNT_ID"}),"=",c("span",{css:re.envValue,children:"your_account_id"})]}),x("span",{css:re.envVar,children:[c("span",{css:re.envKey,children:"CLOUDFLARE_R2_ACCESS_KEY_ID"}),"=",c("span",{css:re.envValue,children:"your_access_key"})]}),x("span",{css:re.envVar,children:[c("span",{css:re.envKey,children:"CLOUDFLARE_R2_SECRET_ACCESS_KEY"}),"=",c("span",{css:re.envValue,children:"your_secret_key"})]}),x("span",{css:re.envVar,children:[c("span",{css:re.envKey,children:"CLOUDFLARE_R2_BUCKET_NAME"}),"=",c("span",{css:re.envValue,children:"your_bucket_name"})]}),x("span",{css:re.envVar,children:[c("span",{css:re.envKey,children:"CLOUDFLARE_R2_PUBLIC_URL"}),"=",c("span",{css:re.envValue,children:"https://pub-xxx.r2.dev"})]}),x("span",{css:re.envVar,children:[c("span",{css:re.envKey,children:"NEXT_PUBLIC_CLOUDFLARE_R2_PUBLIC_URL"}),"=",c("span",{css:re.envValue,children:"https://pub-xxx.r2.dev"})]})]}),x("button",{css:re.copyBtn,onClick:p,title:"Copy to clipboard",children:[h&&c("span",{css:re.copiedTooltip,children:"Copied!"}),c("svg",{css:re.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})]})]})]}),x("div",{css:re.footer,children:[x("a",{css:re.docsBtn,href:"https://developers.cloudflare.com/r2/get-started/",target:"_blank",rel:"noopener noreferrer",children:["R2 Documentation",c("svg",{css:re.externalIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})]}),c("button",{css:re.doneBtn,onClick:s,children:"Got it"})]})]})}):null}const W1=tn`
39
+ from { opacity: 0; }
40
+ to { opacity: 1; }
41
+ `,I1=tn`
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:",W1," 0.15s ease-out;font-family:",mr,";",""),modal:b(Gi," 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:",I1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",$.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:",$.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:",$.base,";color:",f.text,";margin:0 0 4px;",""),dropzoneHint:b("font-size:",$.sm,";color:",f.textSecondary,";margin:0;",""),textarea:b("width:100%;min-height:150px;padding:12px;font-size:",$.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:",$.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:",$.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:",$.sm,";color:",f.text,";","")};function P1({currentPath:o,onClose:s,onUploadComplete:h}){const[u,p]=M.useState("upload"),[g,_]=M.useState([]),[R,L]=M.useState(""),[S,G]=M.useState(!1),[B,K]=M.useState(!1),[ae,U]=M.useState(!1),X=M.useRef(null),me=M.useCallback(ne=>{ne&&_(Array.from(ne))},[]),ee=M.useCallback(ne=>{ne.preventDefault(),G(!1),me(ne.dataTransfer.files)},[me]),fe=M.useCallback(async()=>{if(g.length!==0){K(!0);try{for(const ne of g){const D=new FormData;D.append("file",ne),D.append("path",o),await fetch("/api/studio/upload",{method:"POST",body:D})}h(),s()}catch(ne){console.error("Upload failed:",ne)}finally{K(!1)}}},[g,o,h,s]),le=M.useCallback(async()=>{const ne=R.split(`
51
+ `).map(D=>D.trim()).filter(D=>D.length>0);if(ne.length!==0){U(!0);try{const V=(await fetch("/api/studio/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({urls:ne})})).body?.getReader();if(!V)throw new Error("No reader");const Y=new TextDecoder;for(;;){const{done:be,value:Re}=await V.read();if(be)break;const Be=Y.decode(Re).split(`
52
+
53
+ `).filter(He=>He.startsWith("data: "));for(const He of Be)JSON.parse(He.replace("data: ","")).type==="complete"&&(h(),s())}}catch(D){console.error("Import failed:",D)}finally{U(!1)}}},[R,h,s]);return c("div",{css:it.overlay,onClick:s,children:x("div",{css:it.modal,onClick:ne=>ne.stopPropagation(),children:[x("div",{css:it.header,children:[c("h3",{css:it.title,children:"Add New"}),x("div",{css:it.tabs,children:[c("button",{css:[it.tab,u==="upload"&&it.tabActive,"",""],onClick:()=>p("upload"),children:"Upload Files"}),c("button",{css:[it.tab,u==="import"&&it.tabActive,"",""],onClick:()=>p("import"),children:"Import URLs"})]})]}),c("div",{css:it.body,children:u==="upload"?x(Ct,{children:[x("div",{css:[it.dropzone,S&&it.dropzoneActive,"",""],onClick:()=>X.current?.click(),onDragOver:ne=>{ne.preventDefault(),G(!0)},onDragLeave:()=>G(!1),onDrop:ee,children:[c("svg",{css:it.dropzoneIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("p",{css:it.dropzoneText,children:"Drop files here or click to browse"}),c("p",{css:it.dropzoneHint,children:"Supports images and other media files"})]}),c("input",{ref:X,type:"file",multiple:!0,css:it.fileInput,onChange:ne=>me(ne.target.files)}),g.length>0&&x("div",{css:it.selectedFiles,children:[g.length," file",g.length!==1?"s":""," selected"]})]}):x(Ct,{children:[c("p",{css:it.textareaLabel,children:"Paste image URLs (one per line)"}),c("textarea",{css:it.textarea,value:R,onChange:ne=>L(ne.target.value),placeholder:`https://cdn.example.com/photos/image1.jpg
54
+ https://cdn.example.com/photos/image2.jpg`})]})}),x("div",{css:it.footer,children:[c("button",{css:[it.btn,it.btnCancel,"",""],onClick:s,children:"Cancel"}),u==="upload"?c("button",{css:[it.btn,it.btnConfirm,"",""],onClick:fe,disabled:g.length===0||B,children:B?"Uploading...":"Upload"}):c("button",{css:[it.btn,it.btnConfirm,"",""],onClick:le,disabled:!R.trim()||ae,children:ae?"Importing...":"Import"})]})]})})}const js="36px",eg=tn`
55
+ to { transform: rotate(360deg); }
56
+ `,he={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:visible;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:",js,";padding:0 14px;border-radius:6px;font-size:",$.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,";}",""),btnCloud:{name:"1lzbs29",styles:"color:#f59e0b;&:hover:not(:disabled){background-color:rgba(245, 158, 11, 0.1);border-color:#f59e0b;}"},cloudDropdownWrapper:{name:"bjn8wh",styles:"position:relative"},dropdownArrow:{name:"1j1hlpy",styles:"width:12px;height:12px;margin-left:4px"},cloudDropdown:b("position:absolute;top:100%;left:0;z-index:1000;min-width:160px;margin-top:4px;background:white;border:1px solid ",f.border,";border-radius:6px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow:hidden;",""),cloudDropdownItem:b("display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;border:none;background:none;font-size:",$.sm,";color:",f.text,";cursor:pointer;text-align:left;white-space:nowrap;&:hover{background-color:",f.hover,";}svg{width:16px;height:16px;flex-shrink:0;color:#f59e0b;}",""),cloudDropdownItemDefault:b("svg{color:",f.text,";}",""),cloudDropdownItemDanger:b("color:",f.danger,";svg{color:",f.danger,";}",""),cloudDropdownDivider:b("height:1px;background-color:",f.border,";margin:4px 0;",""),icon:{name:"157xhr7",styles:"width:16px;height:16px"},iconSpin:b("animation:",eg," 1s linear infinite;",""),selectionCount:b("font-size:",$.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:",$.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:",js,";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:",js,";padding:0 32px 0 12px;border:1px solid ",f.border,";border-radius:6px;font-size:",$.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 tg(){const{selectedItems:o,viewMode:s,setViewMode:h,clearSelection:u,currentPath:p,triggerRefresh:g,focusedItem:_,scanRequested:R,clearScanRequest:L,fileItems:S,requestProcess:G,setProcessMode:B,actionState:K}=qa(),ae=M.useRef(null),U=M.useRef(null),[X,me]=M.useState(!1),[ee,fe]=M.useState(!1),[le,ne]=M.useState(!1),[D,V]=M.useState(!1),[Y,be]=M.useState(!1),[Re,ke]=M.useState(0),[Be,He]=M.useState(!1),[Fe,We]=M.useState(!1),[_e,A]=M.useState(!1),[j,J]=M.useState(0),[ge,Se]=M.useState(!1),[y,k]=M.useState("Processing Images"),[Q,q]=M.useState({current:0,total:0,percent:0,status:"processing"}),[ye,W]=M.useState(null),[Ne,pt]=M.useState(!1),[at,xl]=M.useState(!1),[Ce,Sl]=M.useState(!1),[$n,Me]=M.useState(!1),[zt,Bt]=M.useState(!1),[cl,jt]=M.useState(!1),[ln,Tl]=M.useState(!1),It=M.useRef(null),nn=M.useRef(null),Cl=p==="public/images"||p.startsWith("public/images/");M.useCallback(()=>{ae.current?.click()},[]);const Dt=M.useCallback(async()=>{ne(!0),k("Scanning Files"),Se(!0),q({current:0,total:0,percent:0,status:"processing",message:"Scanning for files..."});try{const F=(await fetch("/api/studio/scan",{method:"POST"})).body?.getReader();if(!F)throw new Error("No reader");const P=new TextDecoder;let I="";for(;;){const{done:ve,value:se}=await F.read();if(ve)break;I+=P.decode(se,{stream:!0});const Le=I.split(`
57
+
58
+ `);I=Le.pop()||"";for(const Ae of Le){if(!Ae.startsWith("data: "))continue;const ue=JSON.parse(Ae.slice(6));if(ue.type==="start")q({current:0,total:ue.total,percent:0,status:"processing",message:`Scanning ${ue.total} files...`});else if(ue.type==="progress")q({current:ue.current,total:ue.total,percent:ue.percent,status:"processing",currentFile:ue.currentFile});else if(ue.type==="cleanup")q(Ee=>({...Ee,message:ue.message}));else if(ue.type==="complete"){let Ee=ue.renamed>0?`${ue.renamed} file(s) renamed due to conflicts. `:"";ue.orphanedFiles&&ue.orphanedFiles.length>0&&(Ee+=`Found ${ue.orphanedFiles.length} orphaned thumbnail(s) in images folder.`),q({current:ue.total||0,total:ue.total||0,percent:100,status:"complete",processed:ue.added,alreadyProcessed:ue.existingCount,errors:ue.errors,orphanedFiles:ue.orphanedFiles,pendingUpdates:ue.pendingUpdates,orphanedEntries:ue.orphanedEntries,message:Ee||void 0,isScan:!0}),g()}else ue.type==="error"&&q({current:0,total:0,percent:0,status:"error",message:ue.message||"Scan failed"})}}}catch(oe){console.error("Scan error:",oe),q({current:0,total:0,percent:0,status:"error",message:"Scan failed"})}finally{ne(!1)}},[g]);M.useEffect(()=>{const oe=F=>{It.current&&!It.current.contains(F.target)&&jt(!1),nn.current&&!nn.current.contains(F.target)&&Tl(!1)};return document.addEventListener("mousedown",oe),()=>document.removeEventListener("mousedown",oe)},[]),M.useEffect(()=>{R&&!le&&(L(),Dt())},[R,le,L,Dt]);const gr=M.useCallback(async oe=>{const F=oe.target.files;if(!F||F.length===0)return;const P=Array.from(F);P.length>1?(q({current:0,total:P.length,percent:0,status:"processing",message:"Uploading files..."}),Se(!0)):fe(!0);let I=0,ve=0;try{for(let se=0;se<P.length;se++){const Le=P[se],Ae=new FormData;Ae.append("file",Le),Ae.append("path",p);try{const ue=await fetch("/api/studio/upload",{method:"POST",body:Ae});if(ue.ok)I++;else{const Ee=await ue.json();ve++,P.length===1&&(ue.status>=500?(console.error("Upload error:",Ee),W({title:"Upload Failed",message:`Failed to upload ${Le.name}: ${Ee.error||"Unknown error"}`})):W({title:"Cannot Upload Here",message:Ee.error||"Upload not allowed in this location."}))}}catch{ve++}P.length>1&&q({current:se+1,total:P.length,percent:Math.round((se+1)/P.length*100),status:"processing",currentFile:Le.name})}P.length>1&&q({current:P.length,total:P.length,percent:100,status:"complete",processed:I,errors:ve}),g()}catch(se){console.error("Upload error:",se),P.length>1?q({current:0,total:0,percent:0,status:"error",message:"Upload failed."}):W({title:"Upload Failed",message:"Upload failed. Check console for details."})}finally{fe(!1),ae.current&&(ae.current.value="")}},[p,g]),Ga=M.useCallback(async oe=>{if(o.size>0){const P=Array.from(o),I=P.filter(se=>(se.split("/").pop()||"").includes(".")&&!se.endsWith("/")),ve=P.filter(se=>!(se.split("/").pop()||"").includes(".")||se.endsWith("/"));if(ve.length>0)try{const Le=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ve.join(","))}`)).json();if(Le.images)for(const Ae of Le.images){const ue=`public/${Ae}`;I.includes(ue)||I.push(ue)}}catch(se){console.error("Failed to get folder files:",se)}if(I.length===0){W({title:"No Files Found",message:"No files found in the selected items."});return}B(oe),G(I)}else try{const I=await(await fetch("/api/studio/count-images")).json();if(!I.images||I.images.length===0){W({title:"No Images Found",message:"No images found in the public folder to process."});return}const ve=I.images.map(se=>`public/${se}`);B(oe),G(ve)}catch(P){console.error("Failed to get images:",P),W({title:"Error",message:"Failed to get images."})}},[o,G,B]),Vi=M.useCallback(()=>{U.current&&(q(oe=>({...oe,status:"stopping"})),U.current.abort())},[]),Wn=M.useCallback(async()=>{const oe=Q.orphanedFiles;if(!(!oe||oe.length===0))try{const F=await fetch("/api/studio/delete-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:oe})}),P=await F.json();F.ok?(q(I=>({...I,orphanedFiles:void 0,orphansRemoved:P.deleted,message:`Deleted ${P.deleted} orphaned thumbnail${P.deleted!==1?"s":""}.`})),g()):W({title:"Delete Failed",message:P.error||"Failed to delete orphaned files."})}catch(F){console.error("Delete orphans error:",F),W({title:"Delete Failed",message:"Failed to delete orphaned files. Check console for details."})}},[Q.orphanedFiles,g]),yr=M.useCallback(()=>{o.size!==0&&V(!0)},[o]),Xi=M.useCallback(async()=>{V(!1);try{const oe=await fetch("/api/studio/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Array.from(o)})});if(oe.ok)u(),g();else{const F=await oe.json();W({title:"Delete Failed",message:F.error||"Unknown error"})}}catch(oe){console.error("Delete error:",oe),W({title:"Delete Failed",message:"Delete failed. Check console for details."})}},[o,u,g]),vr=M.useCallback(async()=>{if(o.size===0)return;const oe=Array.from(o),F=oe.filter(Ae=>(Ae.split("/").pop()||"").includes(".")&&!Ae.endsWith("/")),P=oe.filter(Ae=>!(Ae.split("/").pop()||"").includes(".")||Ae.endsWith("/")),I=P.length>0;if(I)try{const ue=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(P.join(","))}`)).json();if(ue.images)for(const Ee of ue.images){const we=`public/${Ee}`;F.includes(we)||F.push(we)}}catch(Ae){console.error("Failed to get folder files:",Ae)}if(F.length===0){W({title:"No Files Found",message:"No files found in the selected items."});return}let ve=!1,se=!1,Le=0;for(const Ae of F){const ue=S.find(Ee=>Ee.path===Ae);ue?ue.isRemote?ve=!0:ue.cdnPushed?Le++:se=!0:I&&(se=!0)}if(!I&&Le===F.length){W({title:"Already Pushed",message:`All ${F.length} file${F.length!==1?"s are":" is"} already on the CDN.`});return}ke(F.length),He(ve),We(se),be(!0)},[o,S]),br=M.useCallback(async()=>{be(!1);const oe=Array.from(o),F=oe.filter(Ee=>(Ee.split("/").pop()||"").includes(".")&&!Ee.endsWith("/")),P=oe.filter(Ee=>!(Ee.split("/").pop()||"").includes(".")||Ee.endsWith("/"));if(P.length>0)try{const we=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(P.join(","))}`)).json();if(we.images)for(const mt of we.images){const Tt=`public/${mt}`;F.includes(Tt)||F.push(Tt)}}catch(Ee){console.error("Failed to get folder files:",Ee)}const I=F.map(Ee=>"/"+Ee.replace(/^public\//,"")),ve=new AbortController;U.current=ve,k("Pushing to CDN"),q({current:0,total:I.length,percent:0,status:"processing",message:"Pushing to CDN..."}),Se(!0);let se=0,Le=0,Ae=0;const ue=[];try{for(let we=0;we<I.length;we++){if(ve.signal.aborted){q(Pt=>({...Pt,status:"stopped",message:`Stopped. ${se} file${se!==1?"s":""} pushed.`})),u(),g(),U.current=null;return}const mt=I[we];let Tt=!1,ct=!1,Xt;for(let Pt=0;Pt<3&&!Tt&&!ve.signal.aborted;Pt++)try{const ut=await fetch("/api/studio/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:[mt]}),signal:ve.signal}),sl=await ut.json();if(ut.ok)if(sl.pushed?.length>0)se++,Tt=!0;else if(sl.alreadyPushed?.length>0)ct=!0,Tt=!0;else if(sl.errors?.length>0)for(const Ki of sl.errors)Xt=Ki;else Tt=!0;else{if(sl.error?.includes("R2 not configured")||sl.error?.includes("CLOUDFLARE_R2")){Se(!1),Me(!0);return}Xt=sl.error||`Failed: ${mt}`}}catch{Xt=`Network error: ${mt}`,Pt<2&&await new Promise(sl=>setTimeout(sl,500*(Pt+1)))}ct?Le++:!Tt&&Xt&&(Ae++,ue.push(Xt)),q({current:we+1,total:I.length,percent:Math.round((we+1)/I.length*100),status:"processing",currentFile:mt.replace(/^\//,"")})}if(ve.signal.aborted){u(),g(),U.current=null;return}let Ee;se===0&&Ae===0?Ee=`${Le} file${Le!==1?"s":""} already on CDN. 0 new files pushed.`:Le>0&&Ae===0&&(Ee=`${se} file${se!==1?"s":""} pushed. ${Le} already on CDN.`),q({current:I.length,total:I.length,percent:100,status:"complete",processed:se,errors:Ae,errorMessages:ue.length>0?ue:void 0,message:Ee}),u(),g()}catch(Ee){if(ve.signal.aborted){U.current=null;return}console.error("Push error:",Ee),q({current:0,total:0,percent:0,status:"error",message:"Failed to push to CDN."})}finally{U.current=null}},[o,u,g]),[an,qt]=M.useState([]),[Ut,Yt]=M.useState(0),xr=M.useCallback(async()=>{if(o.size===0)return;const oe=Array.from(o),F=oe.filter(se=>(se.split("/").pop()||"").includes(".")&&!se.endsWith("/")),P=oe.filter(se=>!(se.split("/").pop()||"").includes(".")||se.endsWith("/")),I=P.length>0;if(I)try{const Le=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(P.join(","))}`)).json();if(Le.images)for(const Ae of Le.images){const ue=`public/${Ae}`;F.includes(ue)||F.push(ue)}}catch(se){console.error("Failed to get folder files:",se)}if(F.length===0){W({title:"No Files Found",message:"No files found in the selected items."});return}let ve;if(I)ve=F;else if(ve=F.filter(se=>{const Le=S.find(Ae=>Ae.path===se);return Le&&Le.cdnPushed&&!Le.isRemote}),ve.length===0){W({title:"No CDN Files",message:`None of the ${F.length} selected file${F.length!==1?"s are":" is"} on the CDN.`});return}qt(ve),Yt(F.length),J(ve.length),A(!0)},[o,S]),Qi=M.useRef(null),Sr=M.useCallback(async()=>{A(!1);const oe=new AbortController;U.current=oe;const F=`download-${Date.now()}-${Math.random().toString(36).slice(2)}`;Qi.current=F;const P=an.map(I=>"/"+I.replace(/^public\//,""));k("Downloading from CDN"),Se(!0),q({current:0,total:P.length,percent:0,status:"processing"});try{const I=await fetch("/api/studio/download-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:P,operationId:F}),signal:oe.signal});if(!I.ok||!I.body)throw new Error("Download request failed");const ve=I.body.getReader(),se=new TextDecoder;let Le="",Ae=0;const ue=async()=>{try{await fetch("/api/studio/cancel-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operationId:F})})}catch{}ve.cancel(),q(Ee=>({...Ee,status:"stopped",message:`Stopped. ${Ae} file${Ae!==1?"s":""} downloaded.`})),u(),g(),U.current=null,Qi.current=null};oe.signal.addEventListener("abort",ue);try{for(;;){const{done:Ee,value:we}=await ve.read();if(Ee)break;Le+=se.decode(we,{stream:!0});const mt=Le.split(`
59
+ `);Le=mt.pop()||"";for(const Tt of mt)if(Tt.startsWith("data: "))try{const ct=JSON.parse(Tt.slice(6));if(ct.type==="progress")ct.downloaded!==void 0&&(Ae=ct.downloaded),q({current:ct.current,total:ct.total,percent:Math.round(ct.current/ct.total*100),status:"processing",message:ct.message});else if(ct.type==="complete"){Ae=ct.downloaded||ct.total||P.length;let Xt=ct.message;Ut>Ae&&(Xt=`${Ae} file${Ae!==1?"s":""} downloaded out of ${Ut} selected.`),q({current:Ae,total:Ae,percent:100,status:"complete",message:Xt})}else ct.type==="error"&&q({current:0,total:0,percent:0,status:"error",message:ct.message})}catch{}}oe.signal.aborted||(u(),g())}catch(Ee){if(!oe.signal.aborted)throw Ee}finally{oe.signal.removeEventListener("abort",ue)}}catch(I){if(oe.signal.aborted)return;console.error("Download error:",I),q({current:0,total:0,percent:0,status:"error",message:"Failed to download from CDN."})}finally{U.current=null}},[an,Ut,u,g]),In=M.useCallback(async()=>{if(o.size===0)return;const F=Array.from(o).filter(P=>{const I=S.find(ve=>ve.path===P);return I&&I.hasUpdate});if(F.length===0){W({title:"No Updates",message:"No files with pending updates in selection."});return}k("Pushing Updates"),Se(!0),q({current:0,total:F.length,percent:0,status:"processing"});try{const I=(await fetch("/api/studio/push-updates-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:F})})).body?.getReader();if(!I)throw new Error("No response body");const ve=new TextDecoder;let se="";for(;;){const{done:Le,value:Ae}=await I.read();if(Le)break;se+=ve.decode(Ae,{stream:!0});const ue=se.split(`
60
+ `);se=ue.pop()||"";for(const Ee of ue)if(Ee.startsWith("data: "))try{const we=JSON.parse(Ee.slice(6));we.type==="progress"?q({current:we.current,total:we.total,percent:we.percent,status:"processing",currentFile:we.currentFile}):we.type==="cleanup"?q(mt=>({...mt,message:we.message})):we.type==="complete"?q({current:we.total||F.length,total:we.total||F.length,percent:100,status:"complete",message:we.message}):we.type==="error"&&q({current:0,total:0,percent:0,status:"error",message:we.message})}catch{}}u(),g()}catch(P){console.error("Push updates error:",P),q({current:0,total:0,percent:0,status:"error",message:"Failed to push updates."})}},[o,S,u,g]),Pn=M.useCallback(async()=>{if(o.size===0)return;const F=Array.from(o).filter(P=>{const I=S.find(ve=>ve.path===P);return I&&I.hasUpdate});if(F.length!==0)try{const P=await fetch("/api/studio/cancel-updates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:F})});if(P.ok)u(),g();else{const I=await P.json();W({title:"Cancel Failed",message:I.error||"Unknown error"})}}catch(P){console.error("Cancel updates error:",P),W({title:"Cancel Failed",message:"Failed to cancel updates. Check console for details."})}},[o,S,u,g]),ea=M.useCallback(async oe=>{pt(!1);try{const F=await fetch("/api/studio/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parentPath:p,name:oe})});if(F.ok)g();else{const P=await F.json();W({title:"Create Folder Failed",message:P.error||"Unknown error"})}}catch(F){console.error("Create folder error:",F),W({title:"Create Folder Failed",message:"Failed to create folder. Check console for details."})}},[p,g]),Ll=M.useCallback(()=>{o.size!==0&&Sl(!0)},[o]),ta=M.useCallback(async oe=>{const F=Array.from(o);k("Moving Files"),Se(!0),q({current:0,total:F.length,percent:0,status:"processing"});try{const P=await fetch("/api/studio/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:F,destination:oe})});if(!P.body)throw new Error("No response body");const I=P.body.getReader(),ve=new TextDecoder;let se="";for(;;){const{done:Le,value:Ae}=await I.read();if(Le)break;se+=ve.decode(Ae,{stream:!0});const ue=se.split(`
61
+
62
+ `);se=ue.pop()||"";for(const Ee of ue)if(Ee.startsWith("data: "))try{const we=JSON.parse(Ee.slice(6));we.type==="start"?q(mt=>({...mt,total:we.total})):we.type==="progress"?q({current:we.current,total:we.total,percent:we.percent,currentFile:we.currentFile,status:"processing"}):we.type==="complete"?(q(mt=>({...mt,status:"complete",processed:we.moved,errors:we.errors,errorMessages:we.errorMessages,isMove:!0})),u(),g()):we.type==="error"&&q(mt=>({...mt,status:"error",errorMessage:we.message}))}catch{}}}catch(P){console.error("Move error:",P),q(I=>({...I,status:"error",errorMessage:"Failed to move items. Check console for details."}))}},[o,u,g]),{searchQuery:on,setSearchQuery:kn}=qa(),Zi=M.useCallback(oe=>{kn(oe.target.value)},[kn]),Va=M.useCallback(oe=>{oe.key==="Escape"&&(oe.stopPropagation(),kn(""),oe.target.blur())},[kn]),Vt=o.size>0;Vt&&Array.from(o).some(oe=>{const F=S.find(P=>P.path===oe);return F&&F.cdnPushed&&!F.isRemote}),Vt&&Array.from(o).every(oe=>{const F=S.find(P=>P.path===oe);return F&&F.type==="file"&&F.cdnPushed&&!F.isRemote});const Cr=Vt&&Array.from(o).some(oe=>{const F=S.find(P=>P.path===oe);return F&&F.hasUpdate}),la=Array.from(o),Ul=la.length===1&&!la[0].includes("."),Hl=Ul?la[0]:null,na=Hl&&Hl.split("/").pop()||"",Xa=M.useCallback(async oe=>{if(Hl){xl(!1);try{(await fetch("/api/studio/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:Hl,newName:oe})})).ok&&(u(),g())}catch(F){console.error("Failed to rename folder:",F)}}},[Hl,u,g]);return _?null:x(Ct,{children:[D&&c(Ui,{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:Xi,onCancel:()=>V(!1)}),Y&&c(Ui,{title:"Push to CDN",message:`Push ${Re} image${Re!==1?"s":""} to Cloudflare R2?${Be?" Remote images will be downloaded first.":""}${Fe?" After pushing, local files will be deleted.":""}`,confirmLabel:"Push",onConfirm:br,onCancel:()=>be(!1)}),_e&&c(Ui,{title:"Download from CDN",message:Ut>j?`Download ${j} of ${Ut} selected file${Ut!==1?"s":""} from Cloudflare R2? (${Ut-j} not on CDN)`:`Download ${j} image${j!==1?"s":""} from Cloudflare R2 to local storage? Images will be removed from the CDN.`,confirmLabel:"Download",onConfirm:Sr,onCancel:()=>A(!1)}),ge&&c(Ws,{title:y,progress:Q,onStop:Vi,onDeleteOrphans:Wn,onClose:()=>{Se(!1),q({current:0,total:0,percent:0,status:"processing"}),g()}}),Ne&&c(Xs,{title:"New Folder",message:"Enter a name for the new folder:",placeholder:"Folder name",confirmLabel:"Create",onConfirm:ea,onCancel:()=>pt(!1)}),Ce&&c(zh,{selectedItems:o,currentPath:p,onMove:oe=>{Sl(!1),ta(oe)},onCancel:()=>Sl(!1)}),at&&Hl&&c(Xs,{title:"Rename Folder",message:"Enter a new name for the folder:",placeholder:na,defaultValue:na,confirmLabel:"Rename",onConfirm:Xa,onCancel:()=>xl(!1)}),ye&&c(wh,{title:ye.title,message:ye.message,onClose:()=>{W(null),g()}}),c(Mh,{isOpen:$n,onClose:()=>Me(!1)}),X&&c(P1,{currentPath:p,onClose:()=>me(!1),onUploadComplete:()=>{me(!1),g()}}),x("div",{css:he.toolbar,children:[c("input",{ref:ae,type:"file",multiple:!0,accept:"image/*,video/*,audio/*,.pdf",onChange:gr,style:{display:"none"}}),x("div",{css:he.left,children:[x("button",{css:[he.btn,he.btnPrimary,"",""],onClick:()=>me(!0),disabled:ee||Cl,children:[c(lg,{}),"Add New"]}),x("button",{css:he.btn,onClick:()=>Ul?xl(!0):pt(!0),disabled:Cl&&!Ul,title:Cl&&!Ul?"Cannot create folders in protected images folder":void 0,children:[Ul?c(og,{}):c(ig,{}),Ul?"Rename Folder":"New Folder"]}),c("div",{css:he.divider}),x("div",{css:he.cloudDropdownWrapper,ref:nn,children:[x("button",{css:he.btn,onClick:()=>Tl(!ln),disabled:K.showProgress||Cl,title:Cl?"Cannot process images folder":void 0,children:[c(hg,{}),"Thumbnails",c("svg",{css:he.dropdownArrow,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),ln&&x("div",{css:he.cloudDropdown,children:[x("button",{css:[he.cloudDropdownItem,he.cloudDropdownItemDefault,"",""],onClick:()=>{Tl(!1),Ga("generate")},children:[c(pg,{}),"Generate Thumbnails"]}),x("button",{css:[he.cloudDropdownItem,he.cloudDropdownItemDanger,"",""],onClick:()=>{Tl(!1),Ga("remove")},children:[c(mg,{}),"Remove Thumbnails"]})]})]}),x("button",{css:[he.btn,he.btnDanger,"",""],onClick:yr,disabled:!Vt,children:[c(ag,{}),"Delete"]}),x("button",{css:he.btn,onClick:Ll,disabled:!Vt,children:[c(rg,{}),"Move"]}),x("div",{css:he.cloudDropdownWrapper,ref:It,children:[x("button",{css:[he.btn,he.btnCloud,"",""],onClick:()=>jt(!cl),disabled:!Vt,children:[c(rh,{}),"Cloud",c("svg",{css:he.dropdownArrow,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),cl&&Vt&&x("div",{css:he.cloudDropdown,children:[Cr&&x(Ct,{children:[x("button",{css:he.cloudDropdownItem,onClick:()=>{jt(!1),In()},children:[c(cg,{}),"Push Update"]}),x("button",{css:[he.cloudDropdownItem,he.cloudDropdownItemDanger,"",""],onClick:()=>{jt(!1),Pn()},children:[c(sg,{}),"Cancel Update"]}),c("div",{css:he.cloudDropdownDivider})]}),x("button",{css:he.cloudDropdownItem,onClick:()=>{jt(!1),vr()},children:[c(rh,{}),"Push CDN"]}),x("button",{css:he.cloudDropdownItem,onClick:()=>{jt(!1),xr()},children:[c(ug,{}),"Download"]})]})]}),x("div",{css:he.searchWrapper,children:[c("input",{css:he.searchInput,type:"text",placeholder:"Search images...",value:on,onChange:Zi,onKeyDown:Va}),on&&c("button",{css:he.searchClearBtn,onClick:()=>kn(""),title:"Clear search",children:c("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),x("div",{css:he.right,children:[Vt&&x("span",{css:he.selectionCount,children:[o.size," selected",c("button",{css:he.clearBtn,onClick:u,children:"Clear"})]}),x("button",{css:he.btn,onClick:Dt,disabled:le,children:[c(ng,{spinning:le}),"Scan"]}),x("div",{css:he.viewToggle,children:[c("button",{css:[he.viewBtn,s==="grid"&&he.viewBtnActive,"",""],onClick:()=>h("grid"),"aria-label":"Grid view",children:c(fg,{})}),c("button",{css:[he.viewBtn,s==="list"&&he.viewBtnActive,"",""],onClick:()=>h("list"),"aria-label":"List view",children:c(dg,{})})]})]})]})]})}function lg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 ng({spinning:o}){return c("svg",{css:[he.icon,o&&he.iconSpin,"",""],fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}function ag(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 ig(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 og(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 rg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}function rh(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 cg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 sg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}function ug(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 fg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 dg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 10h16M4 14h16M4 18h16"})})}function hg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})}function pg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})}function mg(){return c("svg",{css:he.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})}class gg{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 p=await u.json().catch(()=>({}));throw new Error(p.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 p=await fetch("/api/studio/upload",{method:"POST",body:u});if(!p.ok){const g=await p.json().catch(()=>({}));throw new Error(g.error||`Upload failed: ${p.status}`)}return p.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 qs=new gg;function Th(){const{currentPath:o,setCurrentPath:s,navigateUp:h,selectedItems:u,toggleSelection:p,selectRange:g,lastSelectedPath:_,selectAll:R,clearSelection:L,refreshKey:S,setFocusedItem:G,triggerRefresh:B,triggerScan:K,searchQuery:ae,showError:U,setFileItems:X}=qa(),[me,ee]=M.useState([]),[fe,le]=M.useState(!0),[ne,D]=M.useState(!1),V=M.useRef(!0),Y=M.useRef(o);M.useEffect(()=>{async function j(){const J=Y.current!==o;(V.current||J)&&le(!0),Y.current=o;try{const ge=ae&&ae.length>=2?await qs.search(ae):await qs.list(o),Se=ge.items||[];ee(Se),X(Se),D(ge.isEmpty===!0)}catch(ge){const Se=ge instanceof Error?ge.message:"Failed to load items";U("Load Error",Se),ee([]),X([]),D(!1)}le(!1),V.current=!1}j()},[o,S,ae,U,X]);const be=o==="public",Re=ae&&ae.length>=2,ke=[...me].sort((j,J)=>j.type==="folder"&&J.type!=="folder"?-1:j.type!=="folder"&&J.type==="folder"?1:j.name.localeCompare(J.name)),Be=ke.length>0&&ke.every(j=>u.has(j.path)),He=ke.some(j=>u.has(j.path)),Fe=M.useCallback((j,J)=>{J.shiftKey&&_?g(_,j.path,ke):p(j.path)},[_,g,ke,p]),We=M.useCallback(j=>{j.type==="folder"?s(j.path):G(j)},[s,G]),_e=M.useCallback(async j=>{try{const J="/"+j.path.replace(/^public\//,"");await qs.reprocess([J]),B()}catch(J){const ge=J instanceof Error?J.message:"Failed to generate thumbnail";U("Processing Error",ge)}},[B,U]),A=M.useCallback(()=>{Be?L():R(ke)},[Be,L,R,ke]);return{items:me,loading:fe,sortedItems:ke,metaEmpty:ne,isAtRoot:be,isSearching:Re,allItemsSelected:Be,someItemsSelected:He,currentPath:o,selectedItems:u,navigateUp:h,handleItemClick:Fe,handleOpen:We,handleGenerateThumbnail:_e,handleSelectAll:A,triggerScan:K}}const yg=tn`
63
+ to { transform: rotate(360deg); }
64
+ `,te={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,";",""),emptyIcon:{name:"1o3cbsn",styles:"width:48px;height:48px;margin-bottom:16px;opacity:0.5"},emptyText:b("font-size:",$.base,";margin:0 0 4px 0;&:last-child{color:",f.textMuted,";font-size:",$.sm,";}",""),scanButton:b("margin-top:16px;padding:10px 24px;font-size:",$.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:",$.xs,";",""),folderStatLocal:b("color:",f.textMuted,";",""),folderStatCloud:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatRemote:{name:"1lukubv",styles:"color:#ef4444"},folderStatUpdate:{name:"1t8qh25",styles:"color:#f59e0b"},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"},folderStatIconUpdate:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateLabel:b("color:#f59e0b;font-size:",$.xs,";",""),updateCloudIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateSyncIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},statusRow:{name:"1b1nq65",styles:"display:flex;align-items:center;justify-content:space-between;margin:2px 0 0 0;gap:4px"},statusLeft:{name:"1j5vobt",styles:"display:flex;align-items:center;gap:4px"},thumbChips:{name:"x2l7ss",styles:"display:flex;align-items:center;gap:3px;margin-left:auto"},thumbChip:b("display:inline-flex;align-items:center;justify-content:center;padding:1px 4px;font-size:9px;font-weight:600;border-radius:3px;background:rgba(0, 0, 0, 0.08);color:",f.textMuted,";text-transform:uppercase;letter-spacing:0.02em;",""),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:",$.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:",$.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:",$.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:",$.base,";font-weight:500;color:",f.textSecondary,";cursor:pointer;&:hover{color:",f.text,";}",""),selectAllCheckbox:b("width:16px;height:16px;accent-color:",f.primary,";","")};function vg(){const{loading:o,sortedItems:s,metaEmpty:h,isAtRoot:u,isSearching:p,allItemsSelected:g,someItemsSelected:_,selectedItems:R,navigateUp:L,handleItemClick:S,handleOpen:G,handleGenerateThumbnail:B,handleSelectAll:K,triggerScan:ae}=Th();return o?c("div",{css:te.loading,children:c("div",{css:te.spinner})}):h&&u?x("div",{css:te.empty,children:[c("svg",{css:te.emptyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),c("p",{css:te.emptyText,children:"No files tracked yet"}),c("p",{css:te.emptyText,children:"Click Scan to discover files in your public folder"}),c("button",{css:te.scanButton,onClick:ae,children:"Scan for Files"})]}):s.length===0&&u?x("div",{css:te.empty,children:[c("svg",{css:te.emptyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("p",{css:te.emptyText,children:"No files in this folder"}),c("p",{css:te.emptyText,children:"Upload images or click Scan in the toolbar"})]}):x("div",{children:[s.length>0&&c("div",{css:te.selectAllRow,children:x("label",{css:te.selectAllLabel,children:[c("input",{type:"checkbox",css:te.selectAllCheckbox,checked:g,ref:U=>{U&&(U.indeterminate=_&&!g)},onChange:K}),"Select all (",s.length,")"]})}),x("div",{css:te.grid,children:[!u&&!p&&x("div",{css:[te.item,te.parentItem,"",""],onClick:L,children:[c("div",{css:te.content,children:c("svg",{css:te.parentIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})})}),x("div",{css:te.label,children:[c("p",{css:te.name,children:".."}),c("p",{css:te.size,children:"Parent folder"})]})]}),s.map(U=>c(xg,{item:U,isSelected:R.has(U.path),onClick:X=>S(U,X),onOpen:()=>G(U),onGenerateThumbnail:()=>B(U)},U.path))]})]})}function bg(o){return o.includes("/images/sm/")?"SM":o.includes("/images/md/")?"MD":o.includes("/images/lg/")?"LG":o.includes("/images/full/")?"FULL":null}function xg({item:o,isSelected:s,onClick:h,onOpen:u,onGenerateThumbnail:p}){const[g,_]=M.useState(!1),R=o.type==="folder",L=!R&&o.thumbnail!==void 0,S=o.isProtected||R&&o.name==="images"&&o.path==="public/images",G=bg(o.path),B=!R&&(o.hasSm||o.hasMd||o.hasLg||o.hasFull||G),K=U=>{U.stopPropagation();const X="/"+o.path.replace(/^public\//,"");navigator.clipboard.writeText(X),_(!0),setTimeout(()=>_(!1),1500)},ae=U=>{if(S){U.stopPropagation(),u();return}h(U)};return x("div",{css:[te.item,s&&!S&&te.itemSelected,"",""],onClick:ae,children:[!S&&c("div",{css:te.checkboxWrapper,onClick:U=>U.stopPropagation(),children:c("input",{type:"checkbox",css:te.checkbox,checked:s,onChange:()=>h({})})}),x("div",{css:te.content,children:[x("button",{css:te.copyBtn,onClick:K,title:"Copy file path",children:[g&&c("span",{css:te.tooltip,children:"Copied!"}),c("svg",{css:te.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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("button",{css:te.openBtn,onClick:U=>{U.stopPropagation(),u()},children:"Open"}),R?S?x("div",{css:te.imagesFolderWrapper,children:[c("svg",{css:te.imagesFolderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("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("svg",{css:te.lockIcon,fill:"currentColor",viewBox:"0 0 20 20",children:c("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"})})]}):c("svg",{css:te.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("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"})}):L&&o.thumbnail?c("img",{css:te.image,src:o.thumbnail,alt:o.name,loading:"lazy"}):c("svg",{css:te.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})]}),c("div",{css:te.label,children:c("div",{css:te.labelRow,children:x("div",{css:te.labelText,children:[c("p",{css:te.name,title:o.name,children:o.name}),R?x("div",{css:te.folderStats,children:[o.localCount!==void 0&&o.localCount>0&&x("span",{css:[te.folderStat,te.folderStatLocal,"",""],title:`${o.localCount} local`,children:[c("svg",{css:te.folderStatIconLocal,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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&&x("span",{css:[te.folderStat,te.folderStatCloud,"",""],title:`${o.cloudCount} in cloud`,children:[c("svg",{css:te.folderStatIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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&&x("span",{css:[te.folderStat,te.folderStatRemote,"",""],title:`${o.remoteCount} remote`,children:[c("svg",{css:te.folderStatIconRemote,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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.updateCount!==void 0&&o.updateCount>0&&x("span",{css:[te.folderStat,te.folderStatUpdate,"",""],title:`${o.updateCount} pending update${o.updateCount!==1?"s":""}`,children:[c("svg",{css:te.folderStatIconUpdate,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),o.updateCount]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&!o.updateCount&&o.fileCount!==void 0&&x("span",{css:te.size,children:[o.fileCount," files"]})]}):x("div",{css:te.statusRow,children:[c("div",{css:te.statusLeft,children:o.hasUpdate?x(Ct,{children:[c("svg",{css:te.updateCloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("svg",{css:te.updateSyncIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("span",{css:te.updateLabel,children:"update"})]}):o.cdnPushed?c("svg",{css:o.isRemote?te.storedIconRemote:te.storedIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.isRemote?c("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("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?c("span",{css:te.size,children:Sg(o.size)}):null}),B&&c("span",{css:te.thumbChips,children:G?c("span",{css:te.thumbChip,children:G}):x(Ct,{children:[o.hasSm&&c("span",{css:te.thumbChip,children:"SM"}),o.hasMd&&c("span",{css:te.thumbChip,children:"MD"}),o.hasLg&&c("span",{css:te.thumbChip,children:"LG"}),o.hasFull&&c("span",{css:te.thumbChip,children:"FULL"})]})})]})]})})})]})}function Sg(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}const Cg=tn`
65
+ to { transform: rotate(360deg); }
66
+ `,Z={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:",Cg," 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:",$.sm,";color:",f.textMuted,";margin-top:4px;",""),scanButton:b("margin-top:16px;padding:10px 24px;font-size:",$.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:",$.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:",$.xs,";",""),folderStatLocal:b("color:",f.textMuted,";",""),folderStatCloud:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatRemote:{name:"1lukubv",styles:"color:#ef4444"},folderStatUpdate:{name:"1t8qh25",styles:"color:#f59e0b"},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"},folderStatIconUpdate:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateLabel:b("display:flex;align-items:center;gap:4px;color:#f59e0b;font-size:",$.xs,";",""),updateCloudIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateSyncIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},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:",$.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:",$.sm,";color:",f.textSecondary,";",""),cdnBadge:b("display:inline-flex;align-items:center;gap:4px;font-size:",$.xs,";font-weight:500;color:",f.success,";",""),cdnBadgeRemote:b("display:inline-flex;align-items:center;font-size:",$.xs,";font-weight:500;color:#ef4444;",""),cdnIcon:{name:"1suksrg",styles:"width:12px;height:12px"},cdnEmpty:b("font-size:",$.sm,";color:",f.textMuted,";",""),openBtn:b("height:32px;font-size:",$.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 wg(){const{loading:o,sortedItems:s,metaEmpty:h,isAtRoot:u,isSearching:p,allItemsSelected:g,someItemsSelected:_,selectedItems:R,navigateUp:L,handleItemClick:S,handleOpen:G,handleGenerateThumbnail:B,handleSelectAll:K,triggerScan:ae}=Th();return o?c("div",{css:Z.loading,children:c("div",{css:Z.spinner})}):h&&u?x("div",{css:Z.empty,children:[c("p",{children:"No files tracked yet"}),c("p",{css:Z.emptyHint,children:"Click Scan to discover files in your public folder"}),c("button",{css:Z.scanButton,onClick:ae,children:"Scan for Files"})]}):s.length===0&&u?x("div",{css:Z.empty,children:[c("p",{children:"No files in this folder"}),c("p",{css:Z.emptyHint,children:"Upload images or click Scan in the toolbar"})]}):c("div",{css:Z.tableWrapper,children:x("table",{css:Z.table,children:[c("thead",{children:x("tr",{children:[c("th",{css:[Z.th,Z.thCheckbox,"",""],children:s.length>0&&c("input",{type:"checkbox",css:Z.checkbox,checked:g,ref:U=>{U&&(U.indeterminate=_&&!g)},onChange:K})}),c("th",{css:Z.th,children:"Name"}),c("th",{css:[Z.th,Z.thSize,"",""],children:"Size"}),c("th",{css:[Z.th,Z.thDimensions,"",""],children:"Dimensions"}),c("th",{css:[Z.th,Z.thCdn,"",""],children:"CDN"})]})}),x("tbody",{css:Z.tbody,children:[!u&&!p&&x("tr",{css:Z.parentRow,onClick:L,children:[c("td",{css:Z.td}),c("td",{css:Z.td,children:x("div",{css:Z.nameCell,children:[c("svg",{css:Z.parentIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})}),c("span",{css:Z.name,children:".."})]})}),c("td",{css:[Z.td,Z.meta,"",""],children:"--"}),c("td",{css:[Z.td,Z.meta,"",""],children:"Parent folder"}),c("td",{css:Z.td,children:"--"})]}),s.map(U=>c(zg,{item:U,isSelected:R.has(U.path),onClick:X=>S(U,X),onOpen:()=>G(U),onGenerateThumbnail:()=>B(U)},U.path))]})]})})}function zg({item:o,isSelected:s,onClick:h,onOpen:u,onGenerateThumbnail:p}){const[g,_]=M.useState(!1),R=o.type==="folder",L=!R&&o.thumbnail!==void 0,S=o.isProtected||R&&o.name==="images"&&o.path==="public/images",G=K=>{K.stopPropagation();const ae="/"+o.path.replace(/^public\//,"");navigator.clipboard.writeText(ae),_(!0),setTimeout(()=>_(!1),1500)},B=K=>{if(S){K.stopPropagation(),u();return}h(K)};return x("tr",{css:[Z.row,s&&!S&&Z.rowSelected,"",""],onClick:B,children:[c("td",{css:[Z.td,Z.checkboxCell,"",""],onClick:K=>K.stopPropagation(),children:!S&&c("input",{type:"checkbox",css:Z.checkbox,checked:s,onChange:()=>h({})})}),c("td",{css:Z.td,children:x("div",{css:Z.nameCell,children:[R?S?x("div",{css:Z.imagesFolderWrapper,children:[c("svg",{css:Z.imagesFolderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("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("svg",{css:Z.lockIcon,fill:"currentColor",viewBox:"0 0 20 20",children:c("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"})})]}):c("div",{css:Z.folderIconWrapper,children:c("svg",{css:Z.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("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"})})}):L&&o.thumbnail?c("div",{css:Z.thumbnailWrapper,children:c("img",{css:Z.thumbnail,src:o.thumbnail,alt:o.name,loading:"lazy"})}):c("div",{css:Z.thumbnailWrapper,children:c("svg",{css:Z.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})}),c("span",{css:Z.name,title:o.name,children:Mg(o.name)}),x("div",{css:Z.actionsCell,children:[x("button",{css:Z.copyBtn,onClick:G,title:"Copy file path",children:[g&&c("span",{css:Z.tooltip,children:"Copied!"}),c("svg",{css:Z.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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("button",{css:Z.openBtn,onClick:K=>{K.stopPropagation(),u()},children:"Open"})]})]})}),c("td",{css:[Z.td,Z.meta,"",""],children:R?x("div",{css:Z.folderStats,children:[o.localCount!==void 0&&o.localCount>0&&x("span",{css:[Z.folderStat,Z.folderStatLocal,"",""],title:`${o.localCount} local`,children:[c("svg",{css:Z.folderStatIconLocal,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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&&x("span",{css:[Z.folderStat,Z.folderStatCloud,"",""],title:`${o.cloudCount} in cloud`,children:[c("svg",{css:Z.folderStatIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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&&x("span",{css:[Z.folderStat,Z.folderStatRemote,"",""],title:`${o.remoteCount} remote`,children:[c("svg",{css:Z.folderStatIconRemote,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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.updateCount!==void 0&&o.updateCount>0&&x("span",{css:[Z.folderStat,Z.folderStatUpdate,"",""],title:`${o.updateCount} pending update${o.updateCount!==1?"s":""}`,children:[c("svg",{css:Z.folderStatIconUpdate,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),o.updateCount]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&!o.updateCount&&o.fileCount!==void 0&&x("span",{children:[o.fileCount," files"]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&!o.updateCount&&o.fileCount===void 0&&"--"]}):o.hasUpdate?x("span",{css:Z.updateLabel,children:[c("svg",{css:Z.updateCloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("svg",{css:Z.updateSyncIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),"update"]}):o.cdnPushed?c("span",{css:Z.storedLabel,children:c("svg",{css:o.isRemote?Z.storedIconRemote:Z.storedIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.isRemote?c("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("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?ch(o.size):"--"}),c("td",{css:[Z.td,Z.meta,"",""],children:R?o.totalSize!==void 0?ch(o.totalSize):"--":o.dimensions?`${o.dimensions.width}x${o.dimensions.height}`:"--"}),c("td",{css:Z.td,children:o.cdnPushed?o.isRemote?c("span",{css:Z.cdnBadgeRemote,children:"Remote"}):x("span",{css:Z.cdnBadge,children:[c("svg",{css:Z.cdnIcon,fill:"currentColor",viewBox:"0 0 20 20",children:c("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"]}):c("span",{css:Z.cdnEmpty,children:"--"})})]})}function ch(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}function Mg(o,s=32){if(o.length<=s)return o;const h=o.lastIndexOf("."),u=h>0?o.substring(h):"",p=h>0?o.substring(0,h):o,g=s-u.length-3;if(g<6)return o.substring(0,s-3)+"...";const _=Math.ceil(g/2),R=Math.floor(g/2);return p.substring(0,_)+"..."+p.substring(p.length-R)+u}const Tg=[".jpg",".jpeg",".png",".gif",".webp",".svg",".ico",".bmp",".tiff",".tif"],Ag=[".mp4",".webm",".mov",".avi",".mkv",".m4v"];function Eg(o){const s=o.toLowerCase().substring(o.lastIndexOf("."));return Tg.includes(s)}function Dg(o){const s=o.toLowerCase().substring(o.lastIndexOf("."));return Ag.includes(s)}const de={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:",$.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:",$.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:",$.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:",$.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 _g(){const{focusedItem:o,setFocusedItem:s,triggerRefresh:h,fileItems:u,requestDelete:p,requestMove:g,requestSync:_,requestProcess:R,actionState:L}=qa(),[S,G]=M.useState(!1),[B,K]=M.useState(!1),[ae,U]=M.useState(null),[X,me]=M.useState(!1),[ee,fe]=M.useState(!1),[le,ne]=M.useState({current:0,total:3,percent:0,status:"processing",message:"Generating favicons..."}),D=L.showProgress,V=o?o.name.toLowerCase()==="favicon.png"||o.name.toLowerCase()==="favicon.jpg":!1;if(!o)return null;const Y=Eg(o.name),be=Dg(o.name),Re="/"+o.path.replace(/^public\//,""),ke=o.cdnPushed&&o.cdnBaseUrl?`${o.cdnBaseUrl}${Re}`:Re,Be=typeof window<"u"?window.location.origin:"",He=o.cdnPushed&&o.cdnBaseUrl?`${o.cdnBaseUrl}${Re}`:`${Be}${Re}`,Fe=()=>{s(null)},We=()=>{navigator.clipboard.writeText(He),me(!0),setTimeout(()=>me(!1),1500)},_e=async J=>{if(G(!1),J&&J!==o.name)try{const ge=await fetch("/api/studio/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:o.path,newName:J})});if(ge.ok)h(),s(null);else{const Se=await ge.json();U({title:"Rename Failed",message:Se.error||"Failed to rename file"})}}catch(ge){console.error("Rename error:",ge),U({title:"Rename Failed",message:"An error occurred while renaming the file"})}},A=async()=>{if(o){fe(!0),ne({current:0,total:3,percent:0,status:"processing",message:"Generating favicons..."});try{const J=await fetch("/api/studio/generate-favicon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imagePath:"/"+o.path.replace(/^public\//,"")})});if(!J.ok){const y=await J.json();ne({current:0,total:3,percent:0,status:"error",message:y.error||"Failed to generate favicons"});return}const ge=J.body?.getReader(),Se=new TextDecoder;if(ge){let y="";for(;;){const{done:k,value:Q}=await ge.read();if(k)break;y+=Se.decode(Q,{stream:!0});const q=y.split(`
67
+ `);y=q.pop()||"";for(const ye of q)if(ye.startsWith("data: "))try{const W=JSON.parse(ye.slice(6));W.type==="start"?ne(Ne=>({...Ne,total:W.total})):W.type==="progress"?ne({current:W.current,total:W.total,percent:W.percent,status:"processing",message:W.message}):W.type==="complete"?ne({current:W.processed,total:W.processed,percent:100,status:W.errors>0?"error":"complete",message:W.message}):W.type==="error"&&ne(Ne=>({...Ne,status:"error",message:W.message}))}catch{}}}}catch(J){console.error("Favicon generation error:",J),ne({current:0,total:3,percent:0,status:"error",message:"An error occurred while generating favicons"})}}},j=()=>Y?c("img",{css:de.image,src:ke,alt:o.name}):be?c("video",{css:de.video,src:ke,controls:!0}):x("div",{css:de.filePlaceholder,children:[c("svg",{css:de.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("p",{css:de.fileName,children:o.name})]});return x(Ct,{children:[ae&&c(wh,{title:ae.title,message:ae.message,onClose:()=>U(null)}),c(Mh,{isOpen:B,onClose:()=>K(!1)}),S&&c(Xs,{title:"Rename File",message:"Enter a new name for the file:",defaultValue:o.name,placeholder:"Enter new filename",confirmLabel:"Rename",onConfirm:_e,onCancel:()=>G(!1)}),ee&&c(Ws,{title:"Generating Favicons",progress:le,onClose:()=>fe(!1)}),c("div",{css:de.overlay,onClick:Fe,children:x("div",{css:de.container,onClick:J=>J.stopPropagation(),children:[x("div",{css:de.main,children:[x("div",{css:de.headerButtons,children:[o.cdnPushed&&!o.isRemote&&c("span",{css:de.statusIcon,title:"Pushed to CDN",children:c("svg",{css:de.cloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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&&c("span",{css:de.statusIcon,title:"Remote image",children:c("svg",{css:de.globeIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})}),x("button",{css:de.copyBtn,onClick:We,title:"Copy file path",children:[X&&c("span",{css:de.tooltip,children:"Copied!"}),c("svg",{css:de.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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("button",{css:de.mainCloseBtn,onClick:Fe,"aria-label":"Close",children:c("svg",{css:de.mainCloseIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),c("div",{css:de.mediaWrapper,children:j()})]}),x("div",{css:de.sidebar,children:[c("div",{css:de.sidebarHeader,children:c("h3",{css:de.sidebarTitle,children:"Details"})}),x("div",{css:de.sidebarContent,children:[x("div",{css:de.info,children:[x("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Name"}),c("span",{css:de.infoValueWrap,children:o.name})]}),x("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Path"}),c("span",{css:de.infoValueWrap,children:o.path.replace(/^public\//,"")})]}),o.size!==void 0&&x("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Size"}),c("span",{css:de.infoValue,children:kg(o.size)})]}),o.dimensions&&x("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Dimensions"}),x("span",{css:de.infoValue,children:[o.dimensions.width," × ",o.dimensions.height]})]}),x("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"CDN Status"}),c("span",{css:de.infoValue,children:o.cdnPushed?o.isRemote?"Remote":"Pushed":"Local"})]}),x("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"URL"}),c("a",{href:He,target:"_blank",rel:"noopener noreferrer",css:de.infoLink,title:He,children:He})]})]}),x("div",{css:de.actions,children:[x("button",{css:de.actionBtn,onClick:()=>G(!0),disabled:o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"]}),x("button",{css:de.actionBtn,onClick:()=>g([o.path]),disabled:D||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})}),"Move"]}),x("button",{css:de.actionBtn,onClick:()=>_([o.path],u),disabled:D||o.isProtected||o.cdnPushed&&!o.isRemote,title:o.cdnPushed&&!o.isRemote?"Already in R2":void 0,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"]}),x("button",{css:de.actionBtn,onClick:()=>R([o.path]),disabled:D||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"]}),V&&x("button",{css:de.actionBtn,onClick:A,disabled:ee||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"]}),x("button",{css:[de.actionBtn,de.actionBtnDanger,"",""],onClick:()=>p([o.path]),disabled:D||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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 kg(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}const Og="36px",Te={btn:b("height:",Og,";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:"1cy1r91",styles:"position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;display:flex;align-items:flex-start;justify-content:center;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);overflow-y:auto;scroll-behavior:smooth;padding:48px 24px"},panel:b(Gi," 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;margin:auto 0;",""),header:{name:"1o4fids",styles:"display:flex;align-items:center;justify-content:space-between;margin-bottom:24px"},title:b("font-size:",$.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:",$.base,";font-weight:600;color:",f.text,";margin:0 0 12px 0;",""),description:b("font-size:",$.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:",$.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:",$.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:",$.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:",$.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:",$.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:",$.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:",$.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:",$.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:",$.xs,";color:",f.danger,";margin-top:8px;padding:8px 12px;background:",f.dangerLight,";border-radius:6px;","")};function Rg(){const[o,s]=M.useState(!1);return x(Ct,{children:[c("button",{css:Te.btn,onClick:()=>s(!0),"aria-label":"Settings",children:x("svg",{css:Te.icon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"3"}),c("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&&c(Ug,{onClose:()=>s(!1)})]})}const Lg=`# Dev site link (opens from Studio header)
68
+ STUDIO_DEV_SITE_URL=http://localhost:3000
69
+
70
+ # Cloudflare R2 Storage
71
+ CLOUDFLARE_R2_ACCOUNT_ID=your_account_id
72
+ CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id
73
+ CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_access_key
74
+ CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name
75
+ CLOUDFLARE_R2_PUBLIC_URL=https://your-cdn.example.com`;function Ug({onClose:o}){const{triggerRefresh:s}=qa(),[h,u]=M.useState(!1),[p,g]=M.useState([]),[_,R]=M.useState(!0),[L,S]=M.useState(!1),[G,B]=M.useState(!1);M.useEffect(()=>{async function ee(){try{const le=await(await fetch("/api/studio/cdns")).json();g(le.cdns||[])}catch(fe){console.error("Failed to load CDN URLs:",fe)}finally{R(!1)}}ee()},[]);const K=()=>{navigator.clipboard.writeText(Lg),u(!0),setTimeout(()=>u(!1),2e3)},ae=M.useCallback((ee,fe)=>{g(le=>{const ne=[...le];return ne[ee]=fe,ne}),B(!0)},[]),U=M.useCallback(()=>{g(ee=>[...ee,""]),B(!0)},[]),X=M.useCallback(ee=>{g(fe=>fe.filter((le,ne)=>ne!==ee)),B(!0)},[]),me=M.useCallback(async()=>{S(!0);try{(await fetch("/api/studio/cdns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cdns:p})})).ok&&(B(!1),s(),o())}catch(ee){console.error("Failed to save CDN URLs:",ee)}finally{S(!1)}},[p,s,o]);return c("div",{css:Te.overlay,onClick:o,children:x("div",{css:Te.panel,onClick:ee=>ee.stopPropagation(),children:[x("div",{css:Te.header,children:[c("h2",{css:Te.title,children:"Settings"}),c("button",{css:Te.closeBtn,onClick:o,children:c("svg",{css:Te.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x("div",{css:Te.sections,children:[x("section",{children:[c("h3",{css:Te.sectionTitle,children:"CDN URLs"}),c("p",{css:Te.description,children:"Manage CDN base URLs used by your images:"}),_?c("p",{css:Te.description,children:"Loading..."}):x(Ct,{children:[c("div",{css:Te.cdnList,children:p.map((ee,fe)=>x("div",{css:Te.cdnRow,children:[c("span",{css:Te.cdnIndex,children:fe}),c("input",{css:Te.cdnInput,type:"text",value:ee,onChange:le=>ae(fe,le.target.value),placeholder:"https://cdn.example.com"}),c("button",{css:Te.cdnDeleteBtn,onClick:()=>X(fe),title:"Delete CDN URL",children:c("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})})]},fe))}),x("button",{css:Te.cdnAddBtn,onClick:U,children:[c("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add CDN URL"]}),p.length>0&&c("p",{css:Te.warning,children:"Warning: Changing CDN URLs may break image references. The index numbers correspond to image `c` values."})]})]}),x("section",{children:[c("h3",{css:Te.sectionTitle,children:"Environment Variables"}),x("p",{css:Te.description,children:["Configure in ",c("code",{children:".env.studio"})," file:"]}),x("div",{css:Te.codeWrapper,children:[x("button",{css:Te.copyBtn,onClick:K,title:"Copy to clipboard",children:[h&&c("span",{css:Te.tooltip,children:"Copied!"}),c("svg",{css:Te.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})})]}),x("div",{css:Te.code,children:[c("p",{css:Te.codeLine,children:"STUDIO_DEV_SITE_URL=http://localhost:3000"}),c("p",{css:Te.codeLine,children:" "}),c("p",{css:Te.codeLine,children:"# Cloudflare R2 Storage"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_ACCOUNT_ID=your_account_id"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_access_key"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_PUBLIC_URL=https://your-cdn.example.com"})]})]})]}),x("section",{children:[c("h3",{css:Te.sectionTitle,children:"Thumbnail Sizes"}),x("div",{css:Te.grid,children:[x("div",{children:[c("label",{css:Te.label,children:"Small"}),c("input",{css:Te.input,type:"number",defaultValue:300})]}),x("div",{children:[c("label",{css:Te.label,children:"Medium"}),c("input",{css:Te.input,type:"number",defaultValue:700})]}),x("div",{children:[c("label",{css:Te.label,children:"Large"}),c("input",{css:Te.input,type:"number",defaultValue:1400})]})]})]})]}),x("div",{css:Te.footer,children:[c("button",{css:Te.cancelBtn,onClick:o,children:"Cancel"}),c("button",{css:Te.saveBtn,onClick:me,disabled:L||!G,children:L?"Saving...":"Save Changes"})]})]})})}const Fn={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:",$.lg,";font-weight:600;color:",f.text,";margin:0;",""),message:b("font-size:",$.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:",$.base,";font-weight:500;border:none;background:",f.primary,";color:white;cursor:pointer;transition:background 0.15s ease;&:hover{background:",f.primaryHover,";}","")};function Hg(){const{error:o,clearError:s}=qa();return o?c("div",{css:Fn.overlay,onClick:s,children:x("div",{css:Fn.modal,onClick:h=>h.stopPropagation(),children:[x("div",{css:Fn.header,children:[c("svg",{css:Fn.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("h3",{css:Fn.title,children:o.title})]}),c("p",{css:Fn.message,children:o.message}),c("button",{css:Fn.button,onClick:s,children:"OK"})]})}):null}const sh={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 Ng({triggerRefresh:o,clearSelection:s,setFocusedItem:h,showError:u}){const[p,g]=M.useState(sh),_=M.useRef(null),R=M.useCallback(D=>{g(V=>({...V,progressState:typeof D=="function"?D(V.progressState):{...V.progressState,...D}}))},[]),L=M.useCallback(D=>{g(V=>({...V,actionPaths:D,showDeleteConfirm:!0}))},[]),S=M.useCallback(D=>{g(V=>({...V,actionPaths:D,showMoveModal:!0}))},[]),G=M.useCallback((D,V)=>{const Y=D.map(ke=>"/"+ke.replace(/^public\//,""));let be=!1,Re=!1;for(const ke of D){const Be=V.find(He=>He.path===ke);Be&&(Be.isRemote?be=!0:Be.cdnPushed||(Re=!0))}g(ke=>({...ke,actionPaths:D,syncImageCount:Y.length,syncHasRemote:be,syncHasLocal:Re,showSyncConfirm:!0}))},[]),B=M.useCallback(D=>{g(V=>({...V,actionPaths:D,showProcessConfirm:!0,processMode:"generate"}))},[]),K=M.useCallback(D=>{g(V=>({...V,processMode:D}))},[]),ae=M.useCallback(()=>{g(D=>({...D,showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1}))},[]),U=M.useCallback(()=>{g(sh)},[]),X=M.useCallback(()=>{_.current&&_.current.abort()},[]),me=M.useCallback(async()=>{const D=p.actionPaths;g(V=>({...V,showDeleteConfirm:!1}));try{const V=await fetch("/api/studio/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:D})});if(V.ok)s(),h(null),o();else{const Y=await V.json();u("Delete Failed",Y.error||"Unknown error")}}catch(V){console.error("Delete error:",V),u("Delete Failed","Delete failed. Check console for details.")}},[p.actionPaths,s,h,o,u]),ee=M.useCallback(async D=>{const V=p.actionPaths;g(Y=>({...Y,showMoveModal:!1,showProgress:!0,progressTitle:"Moving Files",progressState:{current:0,total:V.length,percent:0,status:"processing",message:"Moving files..."}}));try{const Y=await fetch("/api/studio/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:V,destination:D})});if(!Y.ok){const ke=await Y.json();R({status:"error",message:ke.error||"Move failed"});return}const be=Y.body?.getReader(),Re=new TextDecoder;if(be){let ke="";for(;;){const{done:Be,value:He}=await be.read();if(Be)break;ke+=Re.decode(He,{stream:!0});const Fe=ke.split(`
76
+ `);ke=Fe.pop()||"";for(const We of Fe)if(We.startsWith("data: "))try{const _e=JSON.parse(We.slice(6));_e.type==="start"?R(A=>({...A,total:_e.total})):_e.type==="progress"?R({current:_e.current,total:_e.total,percent:Math.round(_e.current/_e.total*100),status:"processing",message:_e.message}):_e.type==="complete"?(R(A=>({...A,status:"complete",message:`Moved ${_e.moved} file${_e.moved!==1?"s":""}${_e.errors>0?`, ${_e.errors} error${_e.errors!==1?"s":""}`:""}`})),_e.errors>0&&_e.errorMessages?.length>0&&u("Move Failed",_e.errorMessages.join(`
77
+ `)),s(),h(null),o()):_e.type==="error"&&R(A=>({...A,status:"error",message:_e.message||"Unknown error"}))}catch{}}}}catch(Y){console.error("Move error:",Y),R(be=>({...be,status:"error",message:"Failed to move files. Check console for details."}))}},[p.actionPaths,s,h,o,u,R]),fe=M.useCallback(async()=>{const V=p.actionPaths.map(Re=>"/"+Re.replace(/^public\//,""));g(Re=>({...Re,showSyncConfirm:!1,showProgress:!0,progressTitle:"Pushing to CDN",progressState:{current:0,total:V.length,percent:0,status:"processing",message:"Pushing to CDN..."}}));let Y=0;const be=[];for(let Re=0;Re<V.length;Re++){const ke=V[Re];try{const Be=await fetch("/api/studio/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:[ke]})});if(Be.ok)Y++;else{const He=await Be.json();be.push(`${ke}: ${He.error||"Unknown error"}`)}}catch(Be){be.push(`${ke}: ${Be instanceof Error?Be.message:"Unknown error"}`)}R({current:Re+1,total:V.length,percent:Math.round((Re+1)/V.length*100),status:"processing",message:`Pushed ${ke}`})}R({current:V.length,total:V.length,percent:100,status:be.length>0?"error":"complete",message:`Pushed ${Y} file${Y!==1?"s":""}${be.length>0?`, ${be.length} error${be.length!==1?"s":""}`:""}`}),be.length>0&&u("Push Errors",be.join(`
78
+ `)),s(),o()},[p.actionPaths,s,o,u,R]),le=M.useCallback(async()=>{const D=p.actionPaths,V=p.processMode,Y=D.map(Fe=>{const We=Fe.replace(/^public\//,"");return We.startsWith("/")?We:`/${We}`}),be=V==="remove",Re=be?"/api/studio/unprocess-stream":"/api/studio/reprocess-stream",ke=be?"Removing Thumbnails":"Generating Thumbnails",Be=be?"Removing thumbnails...":"Generating thumbnails...";g(Fe=>({...Fe,showProcessConfirm:!1,showProgress:!0,progressTitle:ke,progressState:{current:0,total:Y.length,percent:0,status:"processing",message:Be}})),_.current=new AbortController;const He=_.current.signal;try{const Fe=await fetch(Re,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:Y}),signal:He});if(!Fe.ok){const A=await Fe.json();R({current:0,total:Y.length,percent:0,status:"error",message:A.error||(be?"Failed to remove thumbnails":"Processing failed")});return}const We=Fe.body?.getReader(),_e=new TextDecoder;if(We){let A="";for(;;){const{done:j,value:J}=await We.read();if(j)break;A+=_e.decode(J,{stream:!0});const ge=A.split(`
79
+ `);A=ge.pop()||"";for(const Se of ge)if(Se.startsWith("data: "))try{const y=JSON.parse(Se.slice(6));y.type==="start"?R(k=>({...k,total:y.total})):y.type==="progress"?R({current:y.current,total:y.total,percent:y.percent,status:"processing",message:y.message}):y.type==="cleanup"?R(k=>({...k,status:"cleanup",message:y.message})):y.type==="complete"?(R({current:y.processed,total:y.processed,percent:100,status:y.errors>0?"error":"complete",message:y.message}),o()):y.type==="error"&&R(k=>({...k,status:"error",message:y.message}))}catch{}}}}catch(Fe){He.aborted?R(We=>({...We,status:"stopped",message:be?"Removal stopped by user":"Processing stopped by user"})):(console.error("Processing error:",Fe),R({current:0,total:Y.length,percent:0,status:"error",message:be?"Failed to remove thumbnails. Check console for details.":"Processing failed. Check console for details."}))}finally{_.current=null}},[p.actionPaths,p.processMode,o,R]),ne=M.useCallback(async()=>{const D=p.progressState.orphanedFiles;if(!(!D||D.length===0))try{const V=await fetch("/api/studio/delete-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:D})});if(V.ok)R(Y=>({...Y,orphanedFiles:void 0,message:Y.message?.replace(/Found \d+ orphaned thumbnail\(s\).*/,"Orphaned thumbnails deleted.")})),o();else{const Y=await V.json();u("Delete Failed",Y.error||"Failed to delete orphaned files")}}catch(V){console.error("Delete orphans error:",V),u("Delete Failed","Failed to delete orphaned files. Check console for details.")}},[p.progressState.orphanedFiles,o,u,R]);return{actionState:p,setActionState:g,abortController:_.current,requestDelete:L,requestMove:S,requestSync:G,requestProcess:B,setProcessMode:K,cancelAction:ae,closeProgress:U,stopProcessing:X,confirmDelete:me,confirmMove:ee,confirmSync:fe,confirmProcess:le,deleteOrphans:ne}}const Bg="36px",Et={container:b(Gi," 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:",$.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:",$.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:",Bg,";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:",$.lg,";font-weight:600;",""),dropIcon:{name:"18jhpep",styles:"width:48px;height:48px"}};function jg({onClose:o,isVisible:s=!0,standaloneMode:h=!1,workspacePath:u,siteUrl:p}){const g=o||(()=>{}),[_,R]=M.useState("public"),[L,S]=M.useState(new Set),[G,B]=M.useState(null),[K,ae]=M.useState("grid"),[U,X]=M.useState(null),[me,ee]=M.useState(null),[fe,le]=M.useState(!1),[ne,D]=M.useState(0),[V,Y]=M.useState(!1),[be,Re]=M.useState(""),[ke,Be]=M.useState(null),[He,Fe]=M.useState([]),[We,_e]=M.useState(!1),A=M.useCallback(()=>{D(Me=>Me+1)},[]),j=M.useCallback(()=>{Y(!0)},[]),J=M.useCallback(()=>{Y(!1)},[]),ge=M.useCallback((Me,zt)=>{Be({title:Me,message:zt})},[]),Se=M.useCallback(()=>{Be(null)},[]),y=M.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),_e(!0)},[]),k=M.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),_e(!1)},[]),Q=M.useCallback(async Me=>{Me.preventDefault(),Me.stopPropagation(),_e(!1);const zt=Array.from(Me.dataTransfer.files);if(zt.length!==0&&!(_==="public/images"||_.startsWith("public/images/"))){for(const Bt of zt){const cl=new FormData;cl.append("file",Bt),cl.append("path",_);try{await fetch("/api/studio/upload",{method:"POST",body:cl})}catch(jt){console.error("Upload error:",jt)}}A()}},[_,A]),q=M.useCallback(()=>{if(_==="public")return;const Me=_.split("/");Me.pop(),R(Me.join("/")||"public"),S(new Set)},[_]),ye=M.useCallback(Me=>{R(Me),S(new Set),X(null)},[]),W=M.useCallback(Me=>{S(zt=>{const Bt=new Set(zt);return Bt.has(Me)?Bt.delete(Me):Bt.add(Me),Bt}),B(Me)},[]),Ne=M.useCallback((Me,zt,Bt)=>{const cl=Bt.findIndex(It=>It.path===Me),jt=Bt.findIndex(It=>It.path===zt);if(cl===-1||jt===-1)return;const ln=Math.min(cl,jt),Tl=Math.max(cl,jt);S(It=>{const nn=new Set(It);for(let Cl=ln;Cl<=Tl;Cl++)nn.add(Bt[Cl].path);return nn}),B(zt)},[]),pt=M.useCallback(Me=>{S(new Set(Me.map(zt=>zt.path)))},[]),at=M.useCallback(()=>{S(new Set)},[]),xl=M.useCallback(Me=>{X(Me)},[]),Ce=Ng({triggerRefresh:A,clearSelection:at,setFocusedItem:xl,showError:ge}),Sl=M.useCallback(Me=>{if(Me.key==="Escape"){const zt=Me.target;if(zt.tagName==="INPUT"||zt.tagName==="TEXTAREA")return;U?X(null):h||g()}},[g,U,h]);M.useEffect(()=>(s&&(document.addEventListener("keydown",Sl),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",Sl),document.body.style.overflow=""}),[Sl,s]);const $n={isOpen:!0,openStudio:()=>{},closeStudio:g,toggleStudio:g,currentPath:_,setCurrentPath:ye,navigateUp:q,selectedItems:L,toggleSelection:W,selectRange:Ne,selectAll:pt,clearSelection:at,lastSelectedPath:G,viewMode:K,setViewMode:ae,focusedItem:U,setFocusedItem:X,meta:me,setMeta:ee,isLoading:fe,setIsLoading:le,refreshKey:ne,triggerRefresh:A,scanRequested:V,triggerScan:j,clearScanRequest:J,searchQuery:be,setSearchQuery:Re,error:ke,showError:ge,clearError:Se,fileItems:He,setFileItems:Fe,actionState:Ce.actionState,requestDelete:Ce.requestDelete,requestMove:Ce.requestMove,requestSync:Ce.requestSync,requestProcess:Ce.requestProcess,setProcessMode:Ce.setProcessMode,confirmDelete:Ce.confirmDelete,confirmMove:Ce.confirmMove,confirmSync:Ce.confirmSync,confirmProcess:Ce.confirmProcess,cancelAction:Ce.cancelAction,closeProgress:Ce.closeProgress,stopProcessing:Ce.stopProcessing,abortController:Ce.abortController,deleteOrphans:Ce.deleteOrphans};return c(Ch.Provider,{value:$n,children:x("div",{css:Et.container,children:[x("div",{css:Et.header,children:[c("div",{css:Et.headerLeft,children:c("h1",{css:Et.title,children:"Studio"})}),c("div",{css:Et.headerCenter,children:c(Vg,{currentPath:_,onNavigate:ye,projectName:u?u.split("/").pop():void 0})}),x("div",{css:Et.headerActions,children:[p&&c("a",{href:p,target:"_blank",rel:"noopener noreferrer",css:Et.headerIconBtn,title:`Open ${p}`,children:c(Xg,{})}),c(Rg,{}),!h&&c("button",{css:Et.headerBtn,onClick:g,"aria-label":"Close Studio",children:c(Qg,{})})]})]}),c(tg,{}),x("div",{css:Et.content,onDragOver:y,onDragLeave:k,onDrop:Q,children:[We&&c("div",{css:Et.dropOverlay,children:x("div",{css:Et.dropMessage,children:[c("svg",{css:Et.dropIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("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"})}),c("span",{children:"Drop files to upload"})]})}),c("div",{css:Et.fileBrowser,children:K==="grid"?c(vg,{}):c(wg,{})})]}),U&&c(_g,{}),c(Hg,{}),Ce.actionState.showDeleteConfirm&&c(Ui,{title:"Delete Files",message:`Are you sure you want to delete ${Ce.actionState.actionPaths.length} item${Ce.actionState.actionPaths.length!==1?"s":""}? This action cannot be undone.`,confirmLabel:"Delete",variant:"danger",onConfirm:Ce.confirmDelete,onCancel:Ce.cancelAction}),Ce.actionState.showSyncConfirm&&c(Ui,{title:"Push to CDN",message:`Push ${Ce.actionState.syncImageCount} image${Ce.actionState.syncImageCount!==1?"s":""} to Cloudflare R2?${Ce.actionState.syncHasRemote?" Remote images will be downloaded first.":""}${Ce.actionState.syncHasLocal?" After pushing, local files will be deleted.":""}`,confirmLabel:"Push",onConfirm:Ce.confirmSync,onCancel:Ce.cancelAction}),Ce.actionState.showProcessConfirm&&c(Gg,{imageCount:Ce.actionState.actionPaths.length,mode:Ce.actionState.processMode,onConfirm:Ce.confirmProcess,onCancel:Ce.cancelAction}),Ce.actionState.showMoveModal&&c(zh,{selectedItems:new Set(Ce.actionState.actionPaths),currentPath:_,onMove:Me=>Ce.confirmMove(Me),onCancel:Ce.cancelAction}),Ce.actionState.showProgress&&c(Ws,{title:Ce.actionState.progressTitle,progress:Ce.actionState.progressState,onStop:Ce.stopProcessing,onDeleteOrphans:Ce.deleteOrphans,onClose:Ce.closeProgress})]})})}var qg={name:"1cm5yut",styles:"display:flex;gap:12px;justify-content:flex-end"},Yg={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 Gg({imageCount:o,mode:s,onConfirm:h,onCancel:u}){const p={overlay:Yg,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:",$.lg,";font-weight:600;color:",f.text,";margin:0 0 16px;",""),message:b("font-size:",$.base,";color:",f.textSecondary,";margin:0 0 20px;line-height:1.5;",""),actions:qg,cancelBtn:b("padding:10px 20px;border:1px solid ",f.border,";border-radius:8px;background:",f.background,";color:",f.text,";font-size:",$.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:",$.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{background:",f.primaryHover,";}",""),confirmBtnDanger:b("background:",f.danger,";&:hover{background:#dc2626;}","")},g=s==="remove",_=g?"Remove Thumbnails":"Generate Thumbnails",R=g?`Remove generated thumbnails for ${o} image${o!==1?"s":""}? Original images will be kept.`:`Generate thumbnails for ${o} image${o!==1?"s":""}?`,L=g?"Remove":"Generate";return c("div",{css:p.overlay,onClick:u,children:x("div",{css:p.container,onClick:S=>S.stopPropagation(),children:[c("h2",{css:p.title,children:_}),c("p",{css:p.message,children:R}),x("div",{css:p.actions,children:[c("button",{css:p.cancelBtn,onClick:u,children:"Cancel"}),c("button",{css:[p.confirmBtn,g&&p.confirmBtnDanger,"",""],onClick:h,children:L})]})]})})}function Vg({currentPath:o,onNavigate:s,projectName:h}){const u=o.split("/").filter(Boolean),p=u.map((g,_)=>({name:_===0&&g==="public"&&h?h:g,path:u.slice(0,_+1).join("/")}));return c("div",{css:Et.breadcrumbs,children:p.map((g,_)=>x("span",{style:{display:"flex",alignItems:"center",gap:6},children:[_>0&&c("span",{css:Et.breadcrumbSeparator,children:"/"}),_===p.length-1?c("span",{css:Et.breadcrumbCurrent,children:g.name}):c("span",{css:Et.breadcrumbItem,onClick:()=>s(g.path),children:g.name})]},g.path))})}function Xg(){return x("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"10"}),c("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),c("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 Qg(){return x("svg",{css:Et.headerIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[c("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Ah=document.getElementById("root");if(!Ah)throw new Error("Root element not found");const Zg=window.__STUDIO_WORKSPACE__||"Unknown",Kg=window.__STUDIO_SITE_URL__||"";G1.createRoot(Ah).render(c(M.StrictMode,{children:c("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"#0a0a0a"},children:c(jg,{isVisible:!0,standaloneMode:!0,workspacePath:Zg,siteUrl:Kg})})}));
@@ -11,7 +11,7 @@
11
11
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
12
12
  }
13
13
  </style>
14
- <script type="module" crossorigin src="/assets/index-HYnbxDJg.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-5mrVXxKd.js"></script>
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gallop.software/studio",
3
- "version": "2.3.24",
3
+ "version": "2.3.25",
4
4
  "description": "Standalone media manager - upload, process, and sync images to CDN",
5
5
  "type": "module",
6
6
  "bin": {