iterate-ui-overlay 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.d.ts +344 -0
- package/dist/index.js +4873 -0
- package/dist/standalone.global.js +123 -0
- package/package.json +58 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";(()=>{var th=Object.create;var gs=Object.defineProperty;var eh=Object.getOwnPropertyDescriptor;var nh=Object.getOwnPropertyNames;var lh=Object.getPrototypeOf,ah=Object.prototype.hasOwnProperty;var ln=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ih=(t,e,n,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of nh(e))!ah.call(t,a)&&a!==n&&gs(t,a,{get:()=>e[a],enumerable:!(l=eh(e,a))||l.enumerable});return t};var ot=(t,e,n)=>(n=t!=null?th(lh(t)):{},ih(e||!t||!t.__esModule?gs(n,"default",{value:t,enumerable:!0}):n,t));var _s=ln(P=>{"use strict";var xo=Symbol.for("react.transitional.element"),uh=Symbol.for("react.portal"),oh=Symbol.for("react.fragment"),ch=Symbol.for("react.strict_mode"),rh=Symbol.for("react.profiler"),sh=Symbol.for("react.consumer"),fh=Symbol.for("react.context"),dh=Symbol.for("react.forward_ref"),mh=Symbol.for("react.suspense"),hh=Symbol.for("react.memo"),Es=Symbol.for("react.lazy"),yh=Symbol.for("react.activity"),ps=Symbol.iterator;function gh(t){return t===null||typeof t!="object"?null:(t=ps&&t[ps]||t["@@iterator"],typeof t=="function"?t:null)}var xs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ts=Object.assign,Ms={};function ql(t,e,n){this.props=t,this.context=e,this.refs=Ms,this.updater=n||xs}ql.prototype.isReactComponent={};ql.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};ql.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Cs(){}Cs.prototype=ql.prototype;function To(t,e,n){this.props=t,this.context=e,this.refs=Ms,this.updater=n||xs}var Mo=To.prototype=new Cs;Mo.constructor=To;Ts(Mo,ql.prototype);Mo.isPureReactComponent=!0;var vs=Array.isArray;function Eo(){}var Dt={H:null,A:null,T:null,S:null},ws=Object.prototype.hasOwnProperty;function Co(t,e,n){var l=n.ref;return{$$typeof:xo,type:t,key:e,ref:l!==void 0?l:null,props:n}}function ph(t,e){return Co(t.type,e,t.props)}function wo(t){return typeof t=="object"&&t!==null&&t.$$typeof===xo}function vh(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var bs=/\/+/g;function So(t,e){return typeof t=="object"&&t!==null&&t.key!=null?vh(""+t.key):e.toString(36)}function bh(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Eo,Eo):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Ul(t,e,n,l,a){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var u=!1;if(t===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case xo:case uh:u=!0;break;case Es:return u=t._init,Ul(u(t._payload),e,n,l,a)}}if(u)return a=a(t),u=l===""?"."+So(t,0):l,vs(a)?(n="",u!=null&&(n=u.replace(bs,"$&/")+"/"),Ul(a,e,n,"",function(r){return r})):a!=null&&(wo(a)&&(a=ph(a,n+(a.key==null||t&&t.key===a.key?"":(""+a.key).replace(bs,"$&/")+"/")+u)),e.push(a)),1;u=0;var o=l===""?".":l+":";if(vs(t))for(var c=0;c<t.length;c++)l=t[c],i=o+So(l,c),u+=Ul(l,e,n,i,a);else if(c=gh(t),typeof c=="function")for(t=c.call(t),c=0;!(l=t.next()).done;)l=l.value,i=o+So(l,c++),u+=Ul(l,e,n,i,a);else if(i==="object"){if(typeof t.then=="function")return Ul(bh(t),e,n,l,a);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return u}function Ui(t,e,n){if(t==null)return t;var l=[],a=0;return Ul(t,l,"","",function(i){return e.call(n,i,a++)}),l}function Sh(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Ss=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Eh={map:Ui,forEach:function(t,e,n){Ui(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ui(t,function(){e++}),e},toArray:function(t){return Ui(t,function(e){return e})||[]},only:function(t){if(!wo(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};P.Activity=yh;P.Children=Eh;P.Component=ql;P.Fragment=oh;P.Profiler=rh;P.PureComponent=To;P.StrictMode=ch;P.Suspense=mh;P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Dt;P.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Dt.H.useMemoCache(t)}};P.cache=function(t){return function(){return t.apply(null,arguments)}};P.cacheSignal=function(){return null};P.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var l=Ts({},t.props),a=t.key;if(e!=null)for(i in e.key!==void 0&&(a=""+e.key),e)!ws.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(l[i]=e[i]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var u=Array(i),o=0;o<i;o++)u[o]=arguments[o+2];l.children=u}return Co(t.type,a,l)};P.createContext=function(t){return t={$$typeof:fh,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:sh,_context:t},t};P.createElement=function(t,e,n){var l,a={},i=null;if(e!=null)for(l in e.key!==void 0&&(i=""+e.key),e)ws.call(e,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(a[l]=e[l]);var u=arguments.length-2;if(u===1)a.children=n;else if(1<u){for(var o=Array(u),c=0;c<u;c++)o[c]=arguments[c+2];a.children=o}if(t&&t.defaultProps)for(l in u=t.defaultProps,u)a[l]===void 0&&(a[l]=u[l]);return Co(t,i,a)};P.createRef=function(){return{current:null}};P.forwardRef=function(t){return{$$typeof:dh,render:t}};P.isValidElement=wo;P.lazy=function(t){return{$$typeof:Es,_payload:{_status:-1,_result:t},_init:Sh}};P.memo=function(t,e){return{$$typeof:hh,type:t,compare:e===void 0?null:e}};P.startTransition=function(t){var e=Dt.T,n={};Dt.T=n;try{var l=t(),a=Dt.S;a!==null&&a(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Eo,Ss)}catch(i){Ss(i)}finally{e!==null&&n.types!==null&&(e.types=n.types),Dt.T=e}};P.unstable_useCacheRefresh=function(){return Dt.H.useCacheRefresh()};P.use=function(t){return Dt.H.use(t)};P.useActionState=function(t,e,n){return Dt.H.useActionState(t,e,n)};P.useCallback=function(t,e){return Dt.H.useCallback(t,e)};P.useContext=function(t){return Dt.H.useContext(t)};P.useDebugValue=function(){};P.useDeferredValue=function(t,e){return Dt.H.useDeferredValue(t,e)};P.useEffect=function(t,e){return Dt.H.useEffect(t,e)};P.useEffectEvent=function(t){return Dt.H.useEffectEvent(t)};P.useId=function(){return Dt.H.useId()};P.useImperativeHandle=function(t,e,n){return Dt.H.useImperativeHandle(t,e,n)};P.useInsertionEffect=function(t,e){return Dt.H.useInsertionEffect(t,e)};P.useLayoutEffect=function(t,e){return Dt.H.useLayoutEffect(t,e)};P.useMemo=function(t,e){return Dt.H.useMemo(t,e)};P.useOptimistic=function(t,e){return Dt.H.useOptimistic(t,e)};P.useReducer=function(t,e,n){return Dt.H.useReducer(t,e,n)};P.useRef=function(t){return Dt.H.useRef(t)};P.useState=function(t){return Dt.H.useState(t)};P.useSyncExternalStore=function(t,e,n){return Dt.H.useSyncExternalStore(t,e,n)};P.useTransition=function(){return Dt.H.useTransition()};P.version="19.2.4"});var be=ln((Vp,As)=>{"use strict";As.exports=_s()});var qs=ln(Nt=>{"use strict";function Do(t,e){var n=t.length;t.push(e);t:for(;0<n;){var l=n-1>>>1,a=t[l];if(0<qi(a,e))t[l]=e,t[n]=a,n=l;else break t}}function an(t){return t.length===0?null:t[0]}function Vi(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var l=0,a=t.length,i=a>>>1;l<i;){var u=2*(l+1)-1,o=t[u],c=u+1,r=t[c];if(0>qi(o,n))c<a&&0>qi(r,o)?(t[l]=r,t[c]=n,l=c):(t[l]=o,t[u]=n,l=u);else if(c<a&&0>qi(r,n))t[l]=r,t[c]=n,l=c;else break t}}return e}function qi(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Nt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(zs=performance,Nt.unstable_now=function(){return zs.now()}):(_o=Date,Ds=_o.now(),Nt.unstable_now=function(){return _o.now()-Ds});var zs,_o,Ds,hn=[],Nn=[],xh=1,qe=null,me=3,Ro=!1,Ra=!1,Oa=!1,Oo=!1,Hs=typeof setTimeout=="function"?setTimeout:null,Ls=typeof clearTimeout=="function"?clearTimeout:null,Rs=typeof setImmediate<"u"?setImmediate:null;function Yi(t){for(var e=an(Nn);e!==null;){if(e.callback===null)Vi(Nn);else if(e.startTime<=t)Vi(Nn),e.sortIndex=e.expirationTime,Do(hn,e);else break;e=an(Nn)}}function Ho(t){if(Oa=!1,Yi(t),!Ra)if(an(hn)!==null)Ra=!0,Vl||(Vl=!0,Yl());else{var e=an(Nn);e!==null&&Lo(Ho,e.startTime-t)}}var Vl=!1,Ha=-1,Bs=5,Ns=-1;function Us(){return Oo?!0:!(Nt.unstable_now()-Ns<Bs)}function Ao(){if(Oo=!1,Vl){var t=Nt.unstable_now();Ns=t;var e=!0;try{t:{Ra=!1,Oa&&(Oa=!1,Ls(Ha),Ha=-1),Ro=!0;var n=me;try{e:{for(Yi(t),qe=an(hn);qe!==null&&!(qe.expirationTime>t&&Us());){var l=qe.callback;if(typeof l=="function"){qe.callback=null,me=qe.priorityLevel;var a=l(qe.expirationTime<=t);if(t=Nt.unstable_now(),typeof a=="function"){qe.callback=a,Yi(t),e=!0;break e}qe===an(hn)&&Vi(hn),Yi(t)}else Vi(hn);qe=an(hn)}if(qe!==null)e=!0;else{var i=an(Nn);i!==null&&Lo(Ho,i.startTime-t),e=!1}}break t}finally{qe=null,me=n,Ro=!1}e=void 0}}finally{e?Yl():Vl=!1}}}var Yl;typeof Rs=="function"?Yl=function(){Rs(Ao)}:typeof MessageChannel<"u"?(zo=new MessageChannel,Os=zo.port2,zo.port1.onmessage=Ao,Yl=function(){Os.postMessage(null)}):Yl=function(){Hs(Ao,0)};var zo,Os;function Lo(t,e){Ha=Hs(function(){t(Nt.unstable_now())},e)}Nt.unstable_IdlePriority=5;Nt.unstable_ImmediatePriority=1;Nt.unstable_LowPriority=4;Nt.unstable_NormalPriority=3;Nt.unstable_Profiling=null;Nt.unstable_UserBlockingPriority=2;Nt.unstable_cancelCallback=function(t){t.callback=null};Nt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Bs=0<t?Math.floor(1e3/t):5};Nt.unstable_getCurrentPriorityLevel=function(){return me};Nt.unstable_next=function(t){switch(me){case 1:case 2:case 3:var e=3;break;default:e=me}var n=me;me=e;try{return t()}finally{me=n}};Nt.unstable_requestPaint=function(){Oo=!0};Nt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=me;me=t;try{return e()}finally{me=n}};Nt.unstable_scheduleCallback=function(t,e,n){var l=Nt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?l+n:l):n=l,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,t={id:xh++,callback:e,priorityLevel:t,startTime:n,expirationTime:a,sortIndex:-1},n>l?(t.sortIndex=n,Do(Nn,t),an(hn)===null&&t===an(Nn)&&(Oa?(Ls(Ha),Ha=-1):Oa=!0,Lo(Ho,n-l))):(t.sortIndex=a,Do(hn,t),Ra||Ro||(Ra=!0,Vl||(Vl=!0,Yl()))),t};Nt.unstable_shouldYield=Us;Nt.unstable_wrapCallback=function(t){var e=me;return function(){var n=me;me=e;try{return t.apply(this,arguments)}finally{me=n}}}});var Vs=ln((Zp,Ys)=>{"use strict";Ys.exports=qs()});var Zs=ln(ge=>{"use strict";var Th=be();function ks(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Un(){}var ye={d:{f:Un,r:function(){throw Error(ks(522))},D:Un,C:Un,L:Un,m:Un,X:Un,S:Un,M:Un},p:0,findDOMNode:null},Mh=Symbol.for("react.portal");function Ch(t,e,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mh,key:l==null?null:""+l,children:t,containerInfo:e,implementation:n}}var La=Th.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ki(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ye;ge.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(ks(299));return Ch(t,e,null,n)};ge.flushSync=function(t){var e=La.T,n=ye.p;try{if(La.T=null,ye.p=2,t)return t()}finally{La.T=e,ye.p=n,ye.d.f()}};ge.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ye.d.C(t,e))};ge.prefetchDNS=function(t){typeof t=="string"&&ye.d.D(t)};ge.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,l=ki(n,e.crossOrigin),a=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?ye.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:i}):n==="script"&&ye.d.X(t,{crossOrigin:l,integrity:a,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};ge.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=ki(e.as,e.crossOrigin);ye.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&ye.d.M(t)};ge.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,l=ki(n,e.crossOrigin);ye.d.L(t,n,{crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};ge.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=ki(e.as,e.crossOrigin);ye.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else ye.d.m(t)};ge.requestFormReset=function(t){ye.d.r(t)};ge.unstable_batchedUpdates=function(t,e){return t(e)};ge.useFormState=function(t,e,n){return La.H.useFormState(t,e,n)};ge.useFormStatus=function(){return La.H.useHostTransitionStatus()};ge.version="19.2.4"});var Ba=ln((Xp,Xs)=>{"use strict";function js(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(js)}catch(t){console.error(t)}}js(),Xs.exports=Zs()});var lm=ln(mo=>{"use strict";var Pt=Vs(),pd=be(),wh=Ba();function T(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ei(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function bd(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Sd(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Gs(t){if(Ei(t)!==t)throw Error(T(188))}function _h(t){var e=t.alternate;if(!e){if(e=Ei(t),e===null)throw Error(T(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Gs(a),t;if(i===l)return Gs(a),e;i=i.sibling}throw Error(T(188))}if(n.return!==l.return)n=a,l=i;else{for(var u=!1,o=a.child;o;){if(o===n){u=!0,n=a,l=i;break}if(o===l){u=!0,l=a,n=i;break}o=o.sibling}if(!u){for(o=i.child;o;){if(o===n){u=!0,n=i,l=a;break}if(o===l){u=!0,l=i,n=a;break}o=o.sibling}if(!u)throw Error(T(189))}}if(n.alternate!==l)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?t:e}function Ed(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Ed(t),e!==null)return e;t=t.sibling}return null}var Ht=Object.assign,Ah=Symbol.for("react.element"),Zi=Symbol.for("react.transitional.element"),ja=Symbol.for("react.portal"),Ql=Symbol.for("react.fragment"),xd=Symbol.for("react.strict_mode"),hc=Symbol.for("react.profiler"),Td=Symbol.for("react.consumer"),xn=Symbol.for("react.context"),rr=Symbol.for("react.forward_ref"),yc=Symbol.for("react.suspense"),gc=Symbol.for("react.suspense_list"),sr=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),pc=Symbol.for("react.activity"),zh=Symbol.for("react.memo_cache_sentinel"),Qs=Symbol.iterator;function Na(t){return t===null||typeof t!="object"?null:(t=Qs&&t[Qs]||t["@@iterator"],typeof t=="function"?t:null)}var Dh=Symbol.for("react.client.reference");function vc(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Dh?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ql:return"Fragment";case hc:return"Profiler";case xd:return"StrictMode";case yc:return"Suspense";case gc:return"SuspenseList";case pc:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case ja:return"Portal";case xn:return t.displayName||"Context";case Td:return(t._context.displayName||"Context")+".Consumer";case rr:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case sr:return e=t.displayName||null,e!==null?e:vc(t.type)||"Memo";case qn:e=t._payload,t=t._init;try{return vc(t(e))}catch{}}return null}var Xa=Array.isArray,J=pd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yt=wh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pl={pending:!1,data:null,method:null,action:null},bc=[],Kl=-1;function sn(t){return{current:t}}function ue(t){0>Kl||(t.current=bc[Kl],bc[Kl]=null,Kl--)}function At(t,e){Kl++,bc[Kl]=t.current,t.current=e}var rn=sn(null),oi=sn(null),$n=sn(null),Eu=sn(null);function xu(t,e){switch(At($n,e),At(oi,t),At(rn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?td(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=td(e),t=j0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ue(rn),At(rn,t)}function fa(){ue(rn),ue(oi),ue($n)}function Sc(t){t.memoizedState!==null&&At(Eu,t);var e=rn.current,n=j0(e,t.type);e!==n&&(At(oi,t),At(rn,n))}function Tu(t){oi.current===t&&(ue(rn),ue(oi)),Eu.current===t&&(ue(Eu),vi._currentValue=pl)}var Bo,Ks;function ml(t){if(Bo===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bo=e&&e[1]||"",Ks=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Bo+t+Ks}var No=!1;function Uo(t,e){if(!t||No)return"";No=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(m){var d=m}Reflect.construct(t,[],g)}else{try{g.call()}catch(m){d=m}t.call(g.prototype)}}else{try{throw Error()}catch(m){d=m}(g=t())&&typeof g.catch=="function"&&g.catch(function(){})}}catch(m){if(m&&d&&typeof m.stack=="string")return[m.stack,d.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),u=i[0],o=i[1];if(u&&o){var c=u.split(`
|
|
4
|
+
`),r=o.split(`
|
|
5
|
+
`);for(a=l=0;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;for(;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;if(l===c.length||a===r.length)for(l=c.length-1,a=r.length-1;1<=l&&0<=a&&c[l]!==r[a];)a--;for(;1<=l&&0<=a;l--,a--)if(c[l]!==r[a]){if(l!==1||a!==1)do if(l--,a--,0>a||c[l]!==r[a]){var y=`
|
|
6
|
+
`+c[l].replace(" at new "," at ");return t.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",t.displayName)),y}while(1<=l&&0<=a);break}}}finally{No=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ml(n):""}function Rh(t,e){switch(t.tag){case 26:case 27:case 5:return ml(t.type);case 16:return ml("Lazy");case 13:return t.child!==e&&e!==null?ml("Suspense Fallback"):ml("Suspense");case 19:return ml("SuspenseList");case 0:case 15:return Uo(t.type,!1);case 11:return Uo(t.type.render,!1);case 1:return Uo(t.type,!0);case 31:return ml("Activity");default:return""}}function Js(t){try{var e="",n=null;do e+=Rh(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var Ec=Object.prototype.hasOwnProperty,fr=Pt.unstable_scheduleCallback,qo=Pt.unstable_cancelCallback,Oh=Pt.unstable_shouldYield,Hh=Pt.unstable_requestPaint,Oe=Pt.unstable_now,Lh=Pt.unstable_getCurrentPriorityLevel,Md=Pt.unstable_ImmediatePriority,Cd=Pt.unstable_UserBlockingPriority,Mu=Pt.unstable_NormalPriority,Bh=Pt.unstable_LowPriority,wd=Pt.unstable_IdlePriority,Nh=Pt.log,Uh=Pt.unstable_setDisableYieldValue,xi=null,He=null;function Xn(t){if(typeof Nh=="function"&&Uh(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(xi,t)}catch{}}var Le=Math.clz32?Math.clz32:Vh,qh=Math.log,Yh=Math.LN2;function Vh(t){return t>>>=0,t===0?32:31-(qh(t)/Yh|0)|0}var ji=256,Xi=262144,Gi=4194304;function hl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Wu(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var o=l&134217727;return o!==0?(l=o&~i,l!==0?a=hl(l):(u&=o,u!==0?a=hl(u):n||(n=o&~t,n!==0&&(a=hl(n))))):(o=l&~i,o!==0?a=hl(o):u!==0?a=hl(u):n||(n=l&~t,n!==0&&(a=hl(n)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:a}function Ti(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function kh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 _d(){var t=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),t}function Yo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Mi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Zh(t,e,n,l,a,i){var u=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var o=t.entanglements,c=t.expirationTimes,r=t.hiddenUpdates;for(n=u&~n;0<n;){var y=31-Le(n),g=1<<y;o[y]=0,c[y]=-1;var d=r[y];if(d!==null)for(r[y]=null,y=0;y<d.length;y++){var m=d[y];m!==null&&(m.lane&=-536870913)}n&=~g}l!==0&&Ad(t,l,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e))}function Ad(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Le(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function zd(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Le(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function Dd(t,e){var n=e&-e;return n=(n&42)!==0?1:dr(n),(n&(t.suspendedLanes|e))!==0?0:n}function dr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function mr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Rd(){var t=yt.p;return t!==0?t:(t=window.event,t===void 0?32:tm(t.type))}function $s(t,e){var n=yt.p;try{return yt.p=t,e()}finally{yt.p=n}}var cl=Math.random().toString(36).slice(2),re="__reactFiber$"+cl,Ce="__reactProps$"+cl,xa="__reactContainer$"+cl,xc="__reactEvents$"+cl,jh="__reactListeners$"+cl,Xh="__reactHandles$"+cl,Ws="__reactResources$"+cl,Ci="__reactMarker$"+cl;function hr(t){delete t[re],delete t[Ce],delete t[xc],delete t[jh],delete t[Xh]}function Jl(t){var e=t[re];if(e)return e;for(var n=t.parentNode;n;){if(e=n[xa]||n[re]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=id(t);t!==null;){if(n=t[re])return n;t=id(t)}return e}t=n,n=t.parentNode}return null}function Ta(t){if(t=t[re]||t[xa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ga(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(T(33))}function aa(t){var e=t[Ws];return e||(e=t[Ws]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ie(t){t[Ci]=!0}var Od=new Set,Hd={};function _l(t,e){da(t,e),da(t+"Capture",e)}function da(t,e){for(Hd[t]=e,t=0;t<e.length;t++)Od.add(e[t])}var Gh=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]*$"),Fs={},Is={};function Qh(t){return Ec.call(Is,t)?!0:Ec.call(Fs,t)?!1:Gh.test(t)?Is[t]=!0:(Fs[t]=!0,!1)}function uu(t,e,n){if(Qh(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Qi(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function yn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Ve(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ld(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Kh(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(u){n=""+u,i.call(this,u)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(u){n=""+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Tc(t){if(!t._valueTracker){var e=Ld(t)?"checked":"value";t._valueTracker=Kh(t,e,""+t[e])}}function Bd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Ld(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Cu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Jh=/[\n"\\]/g;function je(t){return t.replace(Jh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Mc(t,e,n,l,a,i,u,o){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ve(e)):t.value!==""+Ve(e)&&(t.value=""+Ve(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?Cc(t,u,Ve(e)):n!=null?Cc(t,u,Ve(n)):l!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Ve(o):t.removeAttribute("name")}function Nd(t,e,n,l,a,i,u,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Tc(t);return}n=n!=null?""+Ve(n):"",e=e!=null?""+Ve(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=o?t.checked:!!l,t.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),Tc(t)}function Cc(t,e,n){e==="number"&&Cu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ia(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Ve(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function Ud(t,e,n){if(e!=null&&(e=""+Ve(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ve(n):""}function qd(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(T(92));if(Xa(l)){if(1<l.length)throw Error(T(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ve(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Tc(t)}function ma(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var $h=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 Ps(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||$h.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Yd(t,e,n){if(e!=null&&typeof e!="object")throw Error(T(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&Ps(t,a,l)}else for(var i in e)e.hasOwnProperty(i)&&Ps(t,i,e[i])}function yr(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Wh=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"]]),Fh=/^[\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 ou(t){return Fh.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Tn(){}var wc=null;function gr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $l=null,ua=null;function tf(t){var e=Ta(t);if(e&&(t=e.stateNode)){var n=t[Ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Mc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+je(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[Ce]||null;if(!a)throw Error(T(90));Mc(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Bd(l)}break t;case"textarea":Ud(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ia(t,!!n.multiple,e,!1)}}}var Vo=!1;function Vd(t,e,n){if(Vo)return t(e,n);Vo=!0;try{var l=t(e);return l}finally{if(Vo=!1,($l!==null||ua!==null)&&(co(),$l&&(e=$l,t=ua,ua=$l=null,tf(e),t)))for(e=0;e<t.length;e++)tf(t[e])}}function ci(t,e){var n=t.stateNode;if(n===null)return null;var l=n[Ce]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(T(231,e,typeof n));return n}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=!1;if(An)try{kl={},Object.defineProperty(kl,"passive",{get:function(){_c=!0}}),window.addEventListener("test",kl,kl),window.removeEventListener("test",kl,kl)}catch{_c=!1}var kl,Gn=null,pr=null,cu=null;function kd(){if(cu)return cu;var t,e=pr,n=e.length,l,a="value"in Gn?Gn.value:Gn.textContent,i=a.length;for(t=0;t<n&&e[t]===a[t];t++);var u=n-t;for(l=1;l<=u&&e[n-l]===a[i-l];l++);return cu=a.slice(t,1<l?1-l:void 0)}function ru(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ki(){return!0}function ef(){return!1}function we(t){function e(n,l,a,i,u){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ki:ef,this.isPropagationStopped=ef,this}return Ht(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),e}var Al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fu=we(Al),wi=Ht({},Al,{view:0,detail:0}),Ih=we(wi),ko,Zo,Ua,Iu=Ht({},wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ua&&(Ua&&t.type==="mousemove"?(ko=t.screenX-Ua.screenX,Zo=t.screenY-Ua.screenY):Zo=ko=0,Ua=t),ko)},movementY:function(t){return"movementY"in t?t.movementY:Zo}}),nf=we(Iu),Ph=Ht({},Iu,{dataTransfer:0}),ty=we(Ph),ey=Ht({},wi,{relatedTarget:0}),jo=we(ey),ny=Ht({},Al,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=we(ny),ay=Ht({},Al,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iy=we(ay),uy=Ht({},Al,{data:0}),lf=we(uy),oy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cy={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"},ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ry[t])?!!e[t]:!1}function vr(){return sy}var fy=Ht({},wi,{key:function(t){if(t.key){var e=oy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ru(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?cy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vr,charCode:function(t){return t.type==="keypress"?ru(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ru(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),dy=we(fy),my=Ht({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),af=we(my),hy=Ht({},wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vr}),yy=we(hy),gy=Ht({},Al,{propertyName:0,elapsedTime:0,pseudoElement:0}),py=we(gy),vy=Ht({},Iu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),by=we(vy),Sy=Ht({},Al,{newState:0,oldState:0}),Ey=we(Sy),xy=[9,13,27,32],br=An&&"CompositionEvent"in window,Ja=null;An&&"documentMode"in document&&(Ja=document.documentMode);var Ty=An&&"TextEvent"in window&&!Ja,Zd=An&&(!br||Ja&&8<Ja&&11>=Ja),uf=" ",of=!1;function jd(t,e){switch(t){case"keyup":return xy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Wl=!1;function My(t,e){switch(t){case"compositionend":return Xd(e);case"keypress":return e.which!==32?null:(of=!0,uf);case"textInput":return t=e.data,t===uf&&of?null:t;default:return null}}function Cy(t,e){if(Wl)return t==="compositionend"||!br&&jd(t,e)?(t=kd(),cu=pr=Gn=null,Wl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Zd&&e.locale!=="ko"?null:e.data;default:return null}}var wy={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 cf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!wy[t.type]:e==="textarea"}function Gd(t,e,n,l){$l?ua?ua.push(l):ua=[l]:$l=l,e=ju(e,"onChange"),0<e.length&&(n=new Fu("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var $a=null,ri=null;function _y(t){V0(t,0)}function Pu(t){var e=Ga(t);if(Bd(e))return t}function rf(t,e){if(t==="change")return e}var Qd=!1;An&&(An?($i="oninput"in document,$i||(Xo=document.createElement("div"),Xo.setAttribute("oninput","return;"),$i=typeof Xo.oninput=="function"),Ji=$i):Ji=!1,Qd=Ji&&(!document.documentMode||9<document.documentMode));var Ji,$i,Xo;function sf(){$a&&($a.detachEvent("onpropertychange",Kd),ri=$a=null)}function Kd(t){if(t.propertyName==="value"&&Pu(ri)){var e=[];Gd(e,ri,t,gr(t)),Vd(_y,e)}}function Ay(t,e,n){t==="focusin"?(sf(),$a=e,ri=n,$a.attachEvent("onpropertychange",Kd)):t==="focusout"&&sf()}function zy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Pu(ri)}function Dy(t,e){if(t==="click")return Pu(e)}function Ry(t,e){if(t==="input"||t==="change")return Pu(e)}function Oy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ne=typeof Object.is=="function"?Object.is:Oy;function si(t,e){if(Ne(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Ec.call(e,a)||!Ne(t[a],e[a]))return!1}return!0}function ff(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function df(t,e){var n=ff(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ff(n)}}function Jd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $d(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Cu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Cu(t.document)}return e}function Sr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Hy=An&&"documentMode"in document&&11>=document.documentMode,Fl=null,Ac=null,Wa=null,zc=!1;function mf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zc||Fl==null||Fl!==Cu(l)||(l=Fl,"selectionStart"in l&&Sr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Wa&&si(Wa,l)||(Wa=l,l=ju(Ac,"onSelect"),0<l.length&&(e=new Fu("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Fl)))}function dl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Il={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},Go={},Wd={};An&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function zl(t){if(Go[t])return Go[t];if(!Il[t])return t;var e=Il[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Wd)return Go[t]=e[n];return t}var Fd=zl("animationend"),Id=zl("animationiteration"),Pd=zl("animationstart"),Ly=zl("transitionrun"),By=zl("transitionstart"),Ny=zl("transitioncancel"),t1=zl("transitionend"),e1=new Map,Dc="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(" ");Dc.push("scrollEnd");function Pe(t,e){e1.set(t,e),_l(e,[t])}var wu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ye=[],Pl=0,Er=0;function to(){for(var t=Pl,e=Er=Pl=0;e<t;){var n=Ye[e];Ye[e++]=null;var l=Ye[e];Ye[e++]=null;var a=Ye[e];Ye[e++]=null;var i=Ye[e];if(Ye[e++]=null,l!==null&&a!==null){var u=l.pending;u===null?a.next=a:(a.next=u.next,u.next=a),l.pending=a}i!==0&&n1(n,a,i)}}function eo(t,e,n,l){Ye[Pl++]=t,Ye[Pl++]=e,Ye[Pl++]=n,Ye[Pl++]=l,Er|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function xr(t,e,n,l){return eo(t,e,n,l),_u(t)}function Dl(t,e){return eo(t,null,null,e),_u(t)}function n1(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=t.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-Le(n),t=i.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),i):null}function _u(t){if(50<ii)throw ii=0,Fc=null,Error(T(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ta={};function Uy(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(t,e,n,l){return new Uy(t,e,n,l)}function Tr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Cn(t,e){var n=t.alternate;return n===null?(n=De(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function l1(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function su(t,e,n,l,a,i){var u=0;if(l=t,typeof t=="function")Tr(t)&&(u=1);else if(typeof t=="string")u=Vg(t,n,rn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case pc:return t=De(31,n,e,a),t.elementType=pc,t.lanes=i,t;case Ql:return vl(n.children,a,i,e);case xd:u=8,a|=24;break;case hc:return t=De(12,n,e,a|2),t.elementType=hc,t.lanes=i,t;case yc:return t=De(13,n,e,a),t.elementType=yc,t.lanes=i,t;case gc:return t=De(19,n,e,a),t.elementType=gc,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case xn:u=10;break t;case Td:u=9;break t;case rr:u=11;break t;case sr:u=14;break t;case qn:u=16,l=null;break t}u=29,n=Error(T(130,t===null?"null":typeof t,"")),l=null}return e=De(u,n,e,a),e.elementType=t,e.type=l,e.lanes=i,e}function vl(t,e,n,l){return t=De(7,t,l,e),t.lanes=n,t}function Qo(t,e,n){return t=De(6,t,null,e),t.lanes=n,t}function a1(t){var e=De(18,null,null,0);return e.stateNode=t,e}function Ko(t,e,n){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var hf=new WeakMap;function Xe(t,e){if(typeof t=="object"&&t!==null){var n=hf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Js(e)},hf.set(t,e),e)}return{value:t,source:e,stack:Js(e)}}var ea=[],na=0,Au=null,fi=0,ke=[],Ze=0,al=null,un=1,on="";function Sn(t,e){ea[na++]=fi,ea[na++]=Au,Au=t,fi=e}function i1(t,e,n){ke[Ze++]=un,ke[Ze++]=on,ke[Ze++]=al,al=t;var l=un;t=on;var a=32-Le(l)-1;l&=~(1<<a),n+=1;var i=32-Le(e)+a;if(30<i){var u=a-a%5;i=(l&(1<<u)-1).toString(32),l>>=u,a-=u,un=1<<32-Le(e)+a|n<<a|l,on=i+t}else un=1<<i|n<<a|l,on=t}function Mr(t){t.return!==null&&(Sn(t,1),i1(t,1,0))}function Cr(t){for(;t===Au;)Au=ea[--na],ea[na]=null,fi=ea[--na],ea[na]=null;for(;t===al;)al=ke[--Ze],ke[Ze]=null,on=ke[--Ze],ke[Ze]=null,un=ke[--Ze],ke[Ze]=null}function u1(t,e){ke[Ze++]=un,ke[Ze++]=on,ke[Ze++]=al,un=e.id,on=e.overflow,al=t}var se=null,Ot=null,ct=!1,Wn=null,Ge=!1,Rc=Error(T(519));function il(t){var e=Error(T(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw di(Xe(e,t)),Rc}function yf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[re]=t,e[Ce]=l,n){case"dialog":lt("cancel",e),lt("close",e);break;case"iframe":case"object":case"embed":lt("load",e);break;case"video":case"audio":for(n=0;n<gi.length;n++)lt(gi[n],e);break;case"source":lt("error",e);break;case"img":case"image":case"link":lt("error",e),lt("load",e);break;case"details":lt("toggle",e);break;case"input":lt("invalid",e),Nd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":lt("invalid",e);break;case"textarea":lt("invalid",e),qd(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Z0(e.textContent,n)?(l.popover!=null&&(lt("beforetoggle",e),lt("toggle",e)),l.onScroll!=null&<("scroll",e),l.onScrollEnd!=null&<("scrollend",e),l.onClick!=null&&(e.onclick=Tn),e=!0):e=!1,e||il(t,!0)}function gf(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:se=se.return}}function Zl(t){if(t!==se)return!1;if(!ct)return gf(t),ct=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||nr(t.type,t.memoizedProps)),n=!n),n&&Ot&&il(t),gf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(T(317));Ot=ad(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(T(317));Ot=ad(t)}else e===27?(e=Ot,rl(t.type)?(t=ur,ur=null,Ot=t):Ot=e):Ot=se?Ke(t.stateNode.nextSibling):null;return!0}function xl(){Ot=se=null,ct=!1}function Jo(){var t=Wn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Wn=null),t}function di(t){Wn===null?Wn=[t]:Wn.push(t)}var Oc=sn(null),Rl=null,Mn=null;function Vn(t,e,n){At(Oc,e._currentValue),e._currentValue=n}function wn(t){t._currentValue=Oc.current,ue(Oc)}function Hc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Lc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var u=a.child;i=i.firstContext;t:for(;i!==null;){var o=i;i=a;for(var c=0;c<e.length;c++)if(o.context===e[c]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Hc(i.return,n,t),l||(u=null);break t}i=o.next}}else if(a.tag===18){if(u=a.return,u===null)throw Error(T(341));u.lanes|=n,i=u.alternate,i!==null&&(i.lanes|=n),Hc(u,n,t),u=null}else u=a.child;if(u!==null)u.return=a;else for(u=a;u!==null;){if(u===t){u=null;break}if(a=u.sibling,a!==null){a.return=u.return,u=a;break}u=u.return}a=u}}function Ma(t,e,n,l){t=null;for(var a=e,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 u=a.alternate;if(u===null)throw Error(T(387));if(u=u.memoizedProps,u!==null){var o=a.type;Ne(a.pendingProps.value,u.value)||(t!==null?t.push(o):t=[o])}}else if(a===Eu.current){if(u=a.alternate,u===null)throw Error(T(387));u.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(vi):t=[vi])}a=a.return}t!==null&&Lc(e,t,n,l),e.flags|=262144}function zu(t){for(t=t.firstContext;t!==null;){if(!Ne(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Tl(t){Rl=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return o1(Rl,t)}function Wi(t,e){return Rl===null&&Tl(t),o1(t,e)}function o1(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Mn===null){if(t===null)throw Error(T(308));Mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Mn=Mn.next=e;return n}var qy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Yy=Pt.unstable_scheduleCallback,Vy=Pt.unstable_NormalPriority,$t={$$typeof:xn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wr(){return{controller:new qy,data:new Map,refCount:0}}function _i(t){t.refCount--,t.refCount===0&&Yy(Vy,function(){t.controller.abort()})}var Fa=null,Bc=0,ha=0,oa=null;function ky(t,e){if(Fa===null){var n=Fa=[];Bc=0,ha=Fr(),oa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Bc++,e.then(pf,pf),e}function pf(){if(--Bc===0&&Fa!==null){oa!==null&&(oa.status="fulfilled");var t=Fa;Fa=null,ha=0,oa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Zy(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var vf=J.S;J.S=function(t,e){E0=Oe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ky(t,e),vf!==null&&vf(t,e)};var bl=sn(null);function _r(){var t=bl.current;return t!==null?t:Ct.pooledCache}function fu(t,e){e===null?At(bl,bl.current):At(bl,e.pool)}function c1(){var t=_r();return t===null?null:{parent:$t._currentValue,pool:t}}var Ca=Error(T(460)),Ar=Error(T(474)),no=Error(T(542)),Du={then:function(){}};function bf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function r1(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Tn,Tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ef(t),t;default:if(typeof e.status=="string")e.then(Tn,Tn);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(T(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ef(t),t}throw Sl=e,Ca}}function yl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sl=n,Ca):n}}var Sl=null;function Sf(){if(Sl===null)throw Error(T(459));var t=Sl;return Sl=null,t}function Ef(t){if(t===Ca||t===no)throw Error(T(483))}var ca=null,mi=0;function Fi(t){var e=mi;return mi+=1,ca===null&&(ca=[]),r1(ca,t,e)}function qa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ii(t,e){throw e.$$typeof===Ah?Error(T(525)):(t=Object.prototype.toString.call(e),Error(T(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function s1(t){function e(f,s){if(t){var h=f.deletions;h===null?(f.deletions=[s],f.flags|=16):h.push(s)}}function n(f,s){if(!t)return null;for(;s!==null;)e(f,s),s=s.sibling;return null}function l(f){for(var s=new Map;f!==null;)f.key!==null?s.set(f.key,f):s.set(f.index,f),f=f.sibling;return s}function a(f,s){return f=Cn(f,s),f.index=0,f.sibling=null,f}function i(f,s,h){return f.index=h,t?(h=f.alternate,h!==null?(h=h.index,h<s?(f.flags|=67108866,s):h):(f.flags|=67108866,s)):(f.flags|=1048576,s)}function u(f){return t&&f.alternate===null&&(f.flags|=67108866),f}function o(f,s,h,p){return s===null||s.tag!==6?(s=Qo(h,f.mode,p),s.return=f,s):(s=a(s,h),s.return=f,s)}function c(f,s,h,p){var C=h.type;return C===Ql?y(f,s,h.props.children,p,h.key):s!==null&&(s.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===qn&&yl(C)===s.type)?(s=a(s,h.props),qa(s,h),s.return=f,s):(s=su(h.type,h.key,h.props,null,f.mode,p),qa(s,h),s.return=f,s)}function r(f,s,h,p){return s===null||s.tag!==4||s.stateNode.containerInfo!==h.containerInfo||s.stateNode.implementation!==h.implementation?(s=Ko(h,f.mode,p),s.return=f,s):(s=a(s,h.children||[]),s.return=f,s)}function y(f,s,h,p,C){return s===null||s.tag!==7?(s=vl(h,f.mode,p,C),s.return=f,s):(s=a(s,h),s.return=f,s)}function g(f,s,h){if(typeof s=="string"&&s!==""||typeof s=="number"||typeof s=="bigint")return s=Qo(""+s,f.mode,h),s.return=f,s;if(typeof s=="object"&&s!==null){switch(s.$$typeof){case Zi:return h=su(s.type,s.key,s.props,null,f.mode,h),qa(h,s),h.return=f,h;case ja:return s=Ko(s,f.mode,h),s.return=f,s;case qn:return s=yl(s),g(f,s,h)}if(Xa(s)||Na(s))return s=vl(s,f.mode,h,null),s.return=f,s;if(typeof s.then=="function")return g(f,Fi(s),h);if(s.$$typeof===xn)return g(f,Wi(f,s),h);Ii(f,s)}return null}function d(f,s,h,p){var C=s!==null?s.key:null;if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return C!==null?null:o(f,s,""+h,p);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Zi:return h.key===C?c(f,s,h,p):null;case ja:return h.key===C?r(f,s,h,p):null;case qn:return h=yl(h),d(f,s,h,p)}if(Xa(h)||Na(h))return C!==null?null:y(f,s,h,p,null);if(typeof h.then=="function")return d(f,s,Fi(h),p);if(h.$$typeof===xn)return d(f,s,Wi(f,h),p);Ii(f,h)}return null}function m(f,s,h,p,C){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return f=f.get(h)||null,o(s,f,""+p,C);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Zi:return f=f.get(p.key===null?h:p.key)||null,c(s,f,p,C);case ja:return f=f.get(p.key===null?h:p.key)||null,r(s,f,p,C);case qn:return p=yl(p),m(f,s,h,p,C)}if(Xa(p)||Na(p))return f=f.get(h)||null,y(s,f,p,C,null);if(typeof p.then=="function")return m(f,s,h,Fi(p),C);if(p.$$typeof===xn)return m(f,s,h,Wi(s,p),C);Ii(s,p)}return null}function b(f,s,h,p){for(var C=null,L=null,A=s,q=s=0,z=null;A!==null&&q<h.length;q++){A.index>q?(z=A,A=null):z=A.sibling;var k=d(f,A,h[q],p);if(k===null){A===null&&(A=z);break}t&&A&&k.alternate===null&&e(f,A),s=i(k,s,q),L===null?C=k:L.sibling=k,L=k,A=z}if(q===h.length)return n(f,A),ct&&Sn(f,q),C;if(A===null){for(;q<h.length;q++)A=g(f,h[q],p),A!==null&&(s=i(A,s,q),L===null?C=A:L.sibling=A,L=A);return ct&&Sn(f,q),C}for(A=l(A);q<h.length;q++)z=m(A,f,q,h[q],p),z!==null&&(t&&z.alternate!==null&&A.delete(z.key===null?q:z.key),s=i(z,s,q),L===null?C=z:L.sibling=z,L=z);return t&&A.forEach(function(wt){return e(f,wt)}),ct&&Sn(f,q),C}function E(f,s,h,p){if(h==null)throw Error(T(151));for(var C=null,L=null,A=s,q=s=0,z=null,k=h.next();A!==null&&!k.done;q++,k=h.next()){A.index>q?(z=A,A=null):z=A.sibling;var wt=d(f,A,k.value,p);if(wt===null){A===null&&(A=z);break}t&&A&&wt.alternate===null&&e(f,A),s=i(wt,s,q),L===null?C=wt:L.sibling=wt,L=wt,A=z}if(k.done)return n(f,A),ct&&Sn(f,q),C;if(A===null){for(;!k.done;q++,k=h.next())k=g(f,k.value,p),k!==null&&(s=i(k,s,q),L===null?C=k:L.sibling=k,L=k);return ct&&Sn(f,q),C}for(A=l(A);!k.done;q++,k=h.next())k=m(A,f,q,k.value,p),k!==null&&(t&&k.alternate!==null&&A.delete(k.key===null?q:k.key),s=i(k,s,q),L===null?C=k:L.sibling=k,L=k);return t&&A.forEach(function(Vt){return e(f,Vt)}),ct&&Sn(f,q),C}function O(f,s,h,p){if(typeof h=="object"&&h!==null&&h.type===Ql&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Zi:t:{for(var C=h.key;s!==null;){if(s.key===C){if(C=h.type,C===Ql){if(s.tag===7){n(f,s.sibling),p=a(s,h.props.children),p.return=f,f=p;break t}}else if(s.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===qn&&yl(C)===s.type){n(f,s.sibling),p=a(s,h.props),qa(p,h),p.return=f,f=p;break t}n(f,s);break}else e(f,s);s=s.sibling}h.type===Ql?(p=vl(h.props.children,f.mode,p,h.key),p.return=f,f=p):(p=su(h.type,h.key,h.props,null,f.mode,p),qa(p,h),p.return=f,f=p)}return u(f);case ja:t:{for(C=h.key;s!==null;){if(s.key===C)if(s.tag===4&&s.stateNode.containerInfo===h.containerInfo&&s.stateNode.implementation===h.implementation){n(f,s.sibling),p=a(s,h.children||[]),p.return=f,f=p;break t}else{n(f,s);break}else e(f,s);s=s.sibling}p=Ko(h,f.mode,p),p.return=f,f=p}return u(f);case qn:return h=yl(h),O(f,s,h,p)}if(Xa(h))return b(f,s,h,p);if(Na(h)){if(C=Na(h),typeof C!="function")throw Error(T(150));return h=C.call(h),E(f,s,h,p)}if(typeof h.then=="function")return O(f,s,Fi(h),p);if(h.$$typeof===xn)return O(f,s,Wi(f,h),p);Ii(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,s!==null&&s.tag===6?(n(f,s.sibling),p=a(s,h),p.return=f,f=p):(n(f,s),p=Qo(h,f.mode,p),p.return=f,f=p),u(f)):n(f,s)}return function(f,s,h,p){try{mi=0;var C=O(f,s,h,p);return ca=null,C}catch(A){if(A===Ca||A===no)throw A;var L=De(29,A,null,f.mode);return L.lanes=p,L.return=f,L}}}var Ml=s1(!0),f1=s1(!1),Yn=!1;function zr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function In(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(ht&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=_u(t),n1(t,null,n),e}return eo(t,l,e,n),_u(t)}function Ia(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,zd(t,n)}}function $o(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?a=i=e:i=i.next=e}else a=i=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Uc=!1;function Pa(){if(Uc){var t=oa;if(t!==null)throw t}}function ti(t,e,n,l){Uc=!1;var a=t.updateQueue;Yn=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var c=o,r=c.next;c.next=null,u===null?i=r:u.next=r,u=c;var y=t.alternate;y!==null&&(y=y.updateQueue,o=y.lastBaseUpdate,o!==u&&(o===null?y.firstBaseUpdate=r:o.next=r,y.lastBaseUpdate=c))}if(i!==null){var g=a.baseState;u=0,y=r=c=null,o=i;do{var d=o.lane&-536870913,m=d!==o.lane;if(m?(ut&d)===d:(l&d)===d){d!==0&&d===ha&&(Uc=!0),y!==null&&(y=y.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var b=t,E=o;d=e;var O=n;switch(E.tag){case 1:if(b=E.payload,typeof b=="function"){g=b.call(O,g,d);break t}g=b;break t;case 3:b.flags=b.flags&-65537|128;case 0:if(b=E.payload,d=typeof b=="function"?b.call(O,g,d):b,d==null)break t;g=Ht({},g,d);break t;case 2:Yn=!0}}d=o.callback,d!==null&&(t.flags|=64,m&&(t.flags|=8192),m=a.callbacks,m===null?a.callbacks=[d]:m.push(d))}else m={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},y===null?(r=y=m,c=g):y=y.next=m,u|=d;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;m=o,o=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);y===null&&(c=g),a.baseState=c,a.firstBaseUpdate=r,a.lastBaseUpdate=y,i===null&&(a.shared.lanes=0),ol|=u,t.lanes=u,t.memoizedState=g}}function d1(t,e){if(typeof t!="function")throw Error(T(191,t));t.call(e)}function m1(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)d1(n[t],e)}var ya=sn(null),Ru=sn(0);function xf(t,e){t=On,At(Ru,t),At(ya,e),On=t|e.baseLanes}function qc(){At(Ru,On),At(ya,ya.current)}function Dr(){On=Ru.current,ue(ya),ue(Ru)}var Ue=sn(null),Qe=null;function kn(t){var e=t.alternate;At(Xt,Xt.current&1),At(Ue,t),Qe===null&&(e===null||ya.current!==null||e.memoizedState!==null)&&(Qe=t)}function Yc(t){At(Xt,Xt.current),At(Ue,t),Qe===null&&(Qe=t)}function h1(t){t.tag===22?(At(Xt,Xt.current),At(Ue,t),Qe===null&&(Qe=t)):Zn(t)}function Zn(){At(Xt,Xt.current),At(Ue,Ue.current)}function ze(t){ue(Ue),Qe===t&&(Qe=null),ue(Xt)}var Xt=sn(0);function Ou(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ar(n)||ir(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var zn=0,tt=null,xt=null,Kt=null,Hu=!1,ra=!1,Cl=!1,Lu=0,hi=0,sa=null,jy=0;function Zt(){throw Error(T(321))}function Rr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ne(t[n],e[n]))return!1;return!0}function Or(t,e,n,l,a,i){return zn=i,tt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,J.H=t===null||t.memoizedState===null?G1:jr,Cl=!1,i=n(l,a),Cl=!1,ra&&(i=g1(e,n,l,a)),y1(t),i}function y1(t){J.H=yi;var e=xt!==null&&xt.next!==null;if(zn=0,Kt=xt=tt=null,Hu=!1,hi=0,sa=null,e)throw Error(T(300));t===null||Wt||(t=t.dependencies,t!==null&&zu(t)&&(Wt=!0))}function g1(t,e,n,l){tt=t;var a=0;do{if(ra&&(sa=null),hi=0,ra=!1,25<=a)throw Error(T(301));if(a+=1,Kt=xt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}J.H=Q1,i=e(n,l)}while(ra);return i}function Xy(){var t=J.H,e=t.useState()[0];return e=typeof e.then=="function"?Ai(e):e,t=t.useState()[0],(xt!==null?xt.memoizedState:null)!==t&&(tt.flags|=1024),e}function Hr(){var t=Lu!==0;return Lu=0,t}function Lr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Br(t){if(Hu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Hu=!1}zn=0,Kt=xt=tt=null,ra=!1,hi=Lu=0,sa=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?tt.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Gt(){if(xt===null){var t=tt.alternate;t=t!==null?t.memoizedState:null}else t=xt.next;var e=Kt===null?tt.memoizedState:Kt.next;if(e!==null)Kt=e,xt=t;else{if(t===null)throw tt.alternate===null?Error(T(467)):Error(T(310));xt=t,t={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Kt===null?tt.memoizedState=Kt=t:Kt=Kt.next=t}return Kt}function lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ai(t){var e=hi;return hi+=1,sa===null&&(sa=[]),t=r1(sa,t,e),e=tt,(Kt===null?e.memoizedState:Kt.next)===null&&(e=e.alternate,J.H=e===null||e.memoizedState===null?G1:jr),t}function ao(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ai(t);if(t.$$typeof===xn)return fe(t)}throw Error(T(438,String(t)))}function Nr(t){var e=null,n=tt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=tt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=lo(),tt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=zh;return e.index++,n}function Dn(t,e){return typeof e=="function"?e(t):e}function du(t){var e=Gt();return Ur(e,xt,t)}function Ur(t,e,n){var l=t.queue;if(l===null)throw Error(T(311));l.lastRenderedReducer=n;var a=t.baseQueue,i=l.pending;if(i!==null){if(a!==null){var u=a.next;a.next=i.next,i.next=u}e.baseQueue=a=i,l.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var o=u=null,c=null,r=e,y=!1;do{var g=r.lane&-536870913;if(g!==r.lane?(ut&g)===g:(zn&g)===g){var d=r.revertLane;if(d===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null}),g===ha&&(y=!0);else if((zn&d)===d){r=r.next,d===ha&&(y=!0);continue}else g={lane:0,revertLane:r.revertLane,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},c===null?(o=c=g,u=i):c=c.next=g,tt.lanes|=d,ol|=d;g=r.action,Cl&&n(i,g),i=r.hasEagerState?r.eagerState:n(i,g)}else d={lane:g,revertLane:r.revertLane,gesture:r.gesture,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},c===null?(o=c=d,u=i):c=c.next=d,tt.lanes|=g,ol|=g;r=r.next}while(r!==null&&r!==e);if(c===null?u=i:c.next=o,!Ne(i,t.memoizedState)&&(Wt=!0,y&&(n=oa,n!==null)))throw n;t.memoizedState=i,t.baseState=u,t.baseQueue=c,l.lastRenderedState=i}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Wo(t){var e=Gt(),n=e.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,i=e.memoizedState;if(a!==null){n.pending=null;var u=a=a.next;do i=t(i,u.action),u=u.next;while(u!==a);Ne(i,e.memoizedState)||(Wt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,l]}function p1(t,e,n){var l=tt,a=Gt(),i=ct;if(i){if(n===void 0)throw Error(T(407));n=n()}else n=e();var u=!Ne((xt||a).memoizedState,n);if(u&&(a.memoizedState=n,Wt=!0),a=a.queue,qr(S1.bind(null,l,a,t),[t]),a.getSnapshot!==e||u||Kt!==null&&Kt.memoizedState.tag&1){if(l.flags|=2048,ga(9,{destroy:void 0},b1.bind(null,l,a,n,e),null),Ct===null)throw Error(T(349));i||(zn&127)!==0||v1(l,e,n)}return n}function v1(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=tt.updateQueue,e===null?(e=lo(),tt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function b1(t,e,n,l){e.value=n,e.getSnapshot=l,E1(e)&&x1(t)}function S1(t,e,n){return n(function(){E1(e)&&x1(t)})}function E1(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ne(t,n)}catch{return!0}}function x1(t){var e=Dl(t,2);e!==null&&Me(e,t,2)}function Vc(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),Cl){Xn(!0);try{n()}finally{Xn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:t},e}function T1(t,e,n,l){return t.baseState=n,Ur(t,xt,typeof l=="function"?l:Dn)}function Gy(t,e,n,l,a){if(uo(t))throw Error(T(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};J.T!==null?n(!0):i.isTransition=!1,l(i),n=e.pending,n===null?(i.next=e.pending=i,M1(e,i)):(i.next=n.next,e.pending=n.next=i)}}function M1(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var i=J.T,u={};J.T=u;try{var o=n(a,l),c=J.S;c!==null&&c(u,o),Tf(t,e,o)}catch(r){kc(t,e,r)}finally{i!==null&&u.types!==null&&(i.types=u.types),J.T=i}}else try{i=n(a,l),Tf(t,e,i)}catch(r){kc(t,e,r)}}function Tf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Mf(t,e,l)},function(l){return kc(t,e,l)}):Mf(t,e,n)}function Mf(t,e,n){e.status="fulfilled",e.value=n,C1(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,M1(t,n)))}function kc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,C1(e),e=e.next;while(e!==l)}t.action=null}function C1(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function w1(t,e){return e}function Cf(t,e){if(ct){var n=Ct.formState;if(n!==null){t:{var l=tt;if(ct){if(Ot){e:{for(var a=Ot,i=Ge;a.nodeType!==8;){if(!i){a=null;break e}if(a=Ke(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ot=Ke(a.nextSibling),l=a.data==="F!";break t}}il(l)}l=!1}l&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w1,lastRenderedState:e},n.queue=l,n=Z1.bind(null,tt,l),l.dispatch=n,l=Vc(!1),i=Zr.bind(null,tt,!1,l.queue),l=pe(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=Gy.bind(null,tt,a,i,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function wf(t){var e=Gt();return _1(e,xt,t)}function _1(t,e,n){if(e=Ur(t,e,w1)[0],t=du(Dn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ai(e)}catch(u){throw u===Ca?no:u}else l=e;e=Gt();var a=e.queue,i=a.dispatch;return n!==e.memoizedState&&(tt.flags|=2048,ga(9,{destroy:void 0},Qy.bind(null,a,n),null)),[l,i,t]}function Qy(t,e){t.action=e}function _f(t){var e=Gt(),n=xt;if(n!==null)return _1(e,n,t);Gt(),e=e.memoizedState,n=Gt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ga(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=tt.updateQueue,e===null&&(e=lo(),tt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function A1(){return Gt().memoizedState}function mu(t,e,n,l){var a=pe();tt.flags|=t,a.memoizedState=ga(1|e,{destroy:void 0},n,l===void 0?null:l)}function io(t,e,n,l){var a=Gt();l=l===void 0?null:l;var i=a.memoizedState.inst;xt!==null&&l!==null&&Rr(l,xt.memoizedState.deps)?a.memoizedState=ga(e,i,n,l):(tt.flags|=t,a.memoizedState=ga(1|e,i,n,l))}function Af(t,e){mu(8390656,8,t,e)}function qr(t,e){io(2048,8,t,e)}function Ky(t){tt.flags|=4;var e=tt.updateQueue;if(e===null)e=lo(),tt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function z1(t){var e=Gt().memoizedState;return Ky({ref:e,nextImpl:t}),function(){if((ht&2)!==0)throw Error(T(440));return e.impl.apply(void 0,arguments)}}function D1(t,e){return io(4,2,t,e)}function R1(t,e){return io(4,4,t,e)}function O1(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function H1(t,e,n){n=n!=null?n.concat([t]):null,io(4,4,O1.bind(null,e,t),n)}function Yr(){}function L1(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Rr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function B1(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Rr(e,l[1]))return l[0];if(l=t(),Cl){Xn(!0);try{t()}finally{Xn(!1)}}return n.memoizedState=[l,e],l}function Vr(t,e,n){return n===void 0||(zn&1073741824)!==0&&(ut&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=T0(),tt.lanes|=t,ol|=t,n)}function N1(t,e,n,l){return Ne(n,e)?n:ya.current!==null?(t=Vr(t,n,l),Ne(t,e)||(Wt=!0),t):(zn&42)===0||(zn&1073741824)!==0&&(ut&261930)===0?(Wt=!0,t.memoizedState=n):(t=T0(),tt.lanes|=t,ol|=t,e)}function U1(t,e,n,l,a){var i=yt.p;yt.p=i!==0&&8>i?i:8;var u=J.T,o={};J.T=o,Zr(t,!1,e,n);try{var c=a(),r=J.S;if(r!==null&&r(o,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var y=Zy(c,l);ei(t,e,y,Be(t))}else ei(t,e,l,Be(t))}catch(g){ei(t,e,{then:function(){},status:"rejected",reason:g},Be())}finally{yt.p=i,u!==null&&o.types!==null&&(u.types=o.types),J.T=u}}function Jy(){}function Zc(t,e,n,l){if(t.tag!==5)throw Error(T(476));var a=q1(t).queue;U1(t,a,e,pl,n===null?Jy:function(){return Y1(t),n(l)})}function q1(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:pl,baseState:pl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:pl},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Y1(t){var e=q1(t);e.next===null&&(e=t.alternate.memoizedState),ei(t,e.next.queue,{},Be())}function kr(){return fe(vi)}function V1(){return Gt().memoizedState}function k1(){return Gt().memoizedState}function $y(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Be();t=Fn(n);var l=In(e,t,n);l!==null&&(Me(l,e,n),Ia(l,e,n)),e={cache:wr()},t.payload=e;return}e=e.return}}function Wy(t,e,n){var l=Be();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uo(t)?j1(e,n):(n=xr(t,e,n,l),n!==null&&(Me(n,t,l),X1(n,e,l)))}function Z1(t,e,n){var l=Be();ei(t,e,n,l)}function ei(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uo(t))j1(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,o=i(u,n);if(a.hasEagerState=!0,a.eagerState=o,Ne(o,u))return eo(t,e,a,0),Ct===null&&to(),!1}catch{}if(n=xr(t,e,a,l),n!==null)return Me(n,t,l),X1(n,e,l),!0}return!1}function Zr(t,e,n,l){if(l={lane:2,revertLane:Fr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},uo(t)){if(e)throw Error(T(479))}else e=xr(t,n,l,2),e!==null&&Me(e,t,2)}function uo(t){var e=t.alternate;return t===tt||e!==null&&e===tt}function j1(t,e){ra=Hu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function X1(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,zd(t,n)}}var yi={readContext:fe,use:ao,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};yi.useEffectEvent=Zt;var G1={readContext:fe,use:ao,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Af,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,mu(4194308,4,O1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return mu(4194308,4,t,e)},useInsertionEffect:function(t,e){mu(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var l=t();if(Cl){Xn(!0);try{t()}finally{Xn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=pe();if(n!==void 0){var a=n(e);if(Cl){Xn(!0);try{n(e)}finally{Xn(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=Wy.bind(null,tt,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Vc(t);var e=t.queue,n=Z1.bind(null,tt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Yr,useDeferredValue:function(t,e){var n=pe();return Vr(n,t,e)},useTransition:function(){var t=Vc(!1);return t=U1.bind(null,tt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=tt,a=pe();if(ct){if(n===void 0)throw Error(T(407));n=n()}else{if(n=e(),Ct===null)throw Error(T(349));(ut&127)!==0||v1(l,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,Af(S1.bind(null,l,i,t),[t]),l.flags|=2048,ga(9,{destroy:void 0},b1.bind(null,l,i,n,e),null),n},useId:function(){var t=pe(),e=Ct.identifierPrefix;if(ct){var n=on,l=un;n=(l&~(1<<32-Le(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Lu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=jy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:kr,useFormState:Cf,useActionState:Cf,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Zr.bind(null,tt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Nr,useCacheRefresh:function(){return pe().memoizedState=$y.bind(null,tt)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((ht&2)!==0)throw Error(T(440));return n.impl.apply(void 0,arguments)}}},jr={readContext:fe,use:ao,useCallback:L1,useContext:fe,useEffect:qr,useImperativeHandle:H1,useInsertionEffect:D1,useLayoutEffect:R1,useMemo:B1,useReducer:du,useRef:A1,useState:function(){return du(Dn)},useDebugValue:Yr,useDeferredValue:function(t,e){var n=Gt();return N1(n,xt.memoizedState,t,e)},useTransition:function(){var t=du(Dn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Ai(t),e]},useSyncExternalStore:p1,useId:V1,useHostTransitionStatus:kr,useFormState:wf,useActionState:wf,useOptimistic:function(t,e){var n=Gt();return T1(n,xt,t,e)},useMemoCache:Nr,useCacheRefresh:k1};jr.useEffectEvent=z1;var Q1={readContext:fe,use:ao,useCallback:L1,useContext:fe,useEffect:qr,useImperativeHandle:H1,useInsertionEffect:D1,useLayoutEffect:R1,useMemo:B1,useReducer:Wo,useRef:A1,useState:function(){return Wo(Dn)},useDebugValue:Yr,useDeferredValue:function(t,e){var n=Gt();return xt===null?Vr(n,t,e):N1(n,xt.memoizedState,t,e)},useTransition:function(){var t=Wo(Dn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Ai(t),e]},useSyncExternalStore:p1,useId:V1,useHostTransitionStatus:kr,useFormState:_f,useActionState:_f,useOptimistic:function(t,e){var n=Gt();return xt!==null?T1(n,xt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Nr,useCacheRefresh:k1};Q1.useEffectEvent=z1;function Fo(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:Ht({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var jc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Be(),a=Fn(l);a.payload=e,n!=null&&(a.callback=n),e=In(t,a,l),e!==null&&(Me(e,t,l),Ia(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Be(),a=Fn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=In(t,a,l),e!==null&&(Me(e,t,l),Ia(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Be(),l=Fn(n);l.tag=2,e!=null&&(l.callback=e),e=In(t,l,n),e!==null&&(Me(e,t,n),Ia(e,t,n))}};function zf(t,e,n,l,a,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,u):e.prototype&&e.prototype.isPureReactComponent?!si(n,l)||!si(a,i):!0}function Df(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&jc.enqueueReplaceState(e,e.state,null)}function wl(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=Ht({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function K1(t){wu(t)}function J1(t){console.error(t)}function $1(t){wu(t)}function Bu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Rf(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Xc(t,e,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){Bu(t,e)},n}function W1(t){return t=Fn(t),t.tag=3,t}function F1(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;t.payload=function(){return a(i)},t.callback=function(){Rf(e,n,l)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){Rf(e,n,l),typeof a!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function Fy(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ma(e,n,a,!0),n=Ue.current,n!==null){switch(n.tag){case 31:case 13:return Qe===null?Vu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===Du?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),cc(t,l,a)),!1;case 22:return n.flags|=65536,l===Du?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),cc(t,l,a)),!1}throw Error(T(435,n.tag))}return cc(t,l,a),Vu(),!1}if(ct)return e=Ue.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==Rc&&(t=Error(T(422),{cause:l}),di(Xe(t,n)))):(l!==Rc&&(e=Error(T(423),{cause:l}),di(Xe(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Xe(l,n),a=Xc(t.stateNode,l,a),$o(t,a),jt!==4&&(jt=2)),!1;var i=Error(T(520),{cause:l});if(i=Xe(i,n),ai===null?ai=[i]:ai.push(i),jt!==4&&(jt=2),e===null)return!0;l=Xe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Xc(n.stateNode,l,t),$o(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Pn===null||!Pn.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=W1(a),F1(a,t,n,l),$o(n,a),!1}n=n.return}while(n!==null);return!1}var Xr=Error(T(461)),Wt=!1;function ce(t,e,n,l){e.child=t===null?f1(e,null,n,l):Ml(e,t.child,n,l)}function Of(t,e,n,l,a){n=n.render;var i=e.ref;if("ref"in l){var u={};for(var o in l)o!=="ref"&&(u[o]=l[o])}else u=l;return Tl(e),l=Or(t,e,n,u,i,a),o=Hr(),t!==null&&!Wt?(Lr(t,e,a),Rn(t,e,a)):(ct&&o&&Mr(e),e.flags|=1,ce(t,e,l,a),e.child)}function Hf(t,e,n,l,a){if(t===null){var i=n.type;return typeof i=="function"&&!Tr(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,I1(t,e,i,l,a)):(t=su(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Gr(t,a)){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:si,n(u,l)&&t.ref===e.ref)return Rn(t,e,a)}return e.flags|=1,t=Cn(i,l),t.ref=e.ref,t.return=e,e.child=t}function I1(t,e,n,l,a){if(t!==null){var i=t.memoizedProps;if(si(i,l)&&t.ref===e.ref)if(Wt=!1,e.pendingProps=l=i,Gr(t,a))(t.flags&131072)!==0&&(Wt=!0);else return e.lanes=t.lanes,Rn(t,e,a)}return Gc(t,e,n,l,a)}function P1(t,e,n,l){var a=l.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,e.child=null;return Lf(t,e,i,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&fu(e,i!==null?i.cachePool:null),i!==null?xf(e,i):qc(),h1(e);else return l=e.lanes=536870912,Lf(t,e,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(fu(e,i.cachePool),xf(e,i),Zn(e),e.memoizedState=null):(t!==null&&fu(e,null),qc(),Zn(e));return ce(t,e,a,n),e.child}function Qa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Lf(t,e,n,l,a){var i=_r();return i=i===null?null:{parent:$t._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&fu(e,null),qc(),h1(e),t!==null&&Ma(t,e,l,!0),e.childLanes=a,null}function hu(t,e){return e=Nu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Bf(t,e,n){return Ml(e,t.child,null,n),t=hu(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function Iy(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ct){if(l.mode==="hidden")return t=hu(e,l),e.lanes=536870912,Qa(null,t);if(Yc(e),(t=Ot)?(t=G0(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:al!==null?{id:un,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=a1(t),n.return=e,e.child=n,se=e,Ot=null)):t=null,t===null)throw il(e);return e.lanes=536870912,null}return hu(e,l)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(Yc(e),a)if(e.flags&256)e.flags&=-257,e=Bf(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(T(558));else if(Wt||Ma(t,e,n,!1),a=(n&t.childLanes)!==0,Wt||a){if(l=Ct,l!==null&&(u=Dd(l,n),u!==0&&u!==i.retryLane))throw i.retryLane=u,Dl(t,u),Me(l,t,u),Xr;Vu(),e=Bf(t,e,n)}else t=i.treeContext,Ot=Ke(u.nextSibling),se=e,ct=!0,Wn=null,Ge=!1,t!==null&&u1(e,t),e=hu(e,l),e.flags|=4096;return e}return t=Cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function yu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(T(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Gc(t,e,n,l,a){return Tl(e),n=Or(t,e,n,l,void 0,a),l=Hr(),t!==null&&!Wt?(Lr(t,e,a),Rn(t,e,a)):(ct&&l&&Mr(e),e.flags|=1,ce(t,e,n,a),e.child)}function Nf(t,e,n,l,a,i){return Tl(e),e.updateQueue=null,n=g1(e,l,n,a),y1(t),l=Hr(),t!==null&&!Wt?(Lr(t,e,i),Rn(t,e,i)):(ct&&l&&Mr(e),e.flags|=1,ce(t,e,n,i),e.child)}function Uf(t,e,n,l,a){if(Tl(e),e.stateNode===null){var i=ta,u=n.contextType;typeof u=="object"&&u!==null&&(i=fe(u)),i=new n(l,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=jc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=l,i.state=e.memoizedState,i.refs={},zr(e),u=n.contextType,i.context=typeof u=="object"&&u!==null?fe(u):ta,i.state=e.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(Fo(e,n,u,l),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&jc.enqueueReplaceState(i,i.state,null),ti(e,l,i,a),Pa(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){i=e.stateNode;var o=e.memoizedProps,c=wl(n,o);i.props=c;var r=i.context,y=n.contextType;u=ta,typeof y=="object"&&y!==null&&(u=fe(y));var g=n.getDerivedStateFromProps;y=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||r!==u)&&Df(e,i,l,u),Yn=!1;var d=e.memoizedState;i.state=d,ti(e,l,i,a),Pa(),r=e.memoizedState,o||d!==r||Yn?(typeof g=="function"&&(Fo(e,n,g,l),r=e.memoizedState),(c=Yn||zf(e,n,c,l,d,r,u))?(y||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"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=r),i.props=l,i.state=r,i.context=u,l=c):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{i=e.stateNode,Nc(t,e),u=e.memoizedProps,y=wl(n,u),i.props=y,g=e.pendingProps,d=i.context,r=n.contextType,c=ta,typeof r=="object"&&r!==null&&(c=fe(r)),o=n.getDerivedStateFromProps,(r=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==g||d!==c)&&Df(e,i,l,c),Yn=!1,d=e.memoizedState,i.state=d,ti(e,l,i,a),Pa();var m=e.memoizedState;u!==g||d!==m||Yn||t!==null&&t.dependencies!==null&&zu(t.dependencies)?(typeof o=="function"&&(Fo(e,n,o,l),m=e.memoizedState),(y=Yn||zf(e,n,y,l,d,m,c)||t!==null&&t.dependencies!==null&&zu(t.dependencies))?(r||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,m,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,m,c)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=m),i.props=l,i.state=m,i.context=c,l=y):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),l=!1)}return i=l,yu(t,e),l=(e.flags&128)!==0,i||l?(i=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&l?(e.child=Ml(e,t.child,null,a),e.child=Ml(e,null,n,a)):ce(t,e,n,a),e.memoizedState=i.state,t=e.child):t=Rn(t,e,a),t}function qf(t,e,n,l){return xl(),e.flags|=256,ce(t,e,n,l),e.child}var Io={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(t){return{baseLanes:t,cachePool:c1()}}function tc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function t0(t,e,n){var l=e.pendingProps,a=!1,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),u&&(a=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(ct){if(a?kn(e):Zn(e),(t=Ot)?(t=G0(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:al!==null?{id:un,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=a1(t),n.return=e,e.child=n,se=e,Ot=null)):t=null,t===null)throw il(e);return ir(t)?e.lanes=32:e.lanes=536870912,null}var o=l.children;return l=l.fallback,a?(Zn(e),a=e.mode,o=Nu({mode:"hidden",children:o},a),l=vl(l,a,n,null),o.return=e,l.return=e,o.sibling=l,e.child=o,l=e.child,l.memoizedState=Po(n),l.childLanes=tc(t,u,n),e.memoizedState=Io,Qa(null,l)):(kn(e),Qc(e,o))}var c=t.memoizedState;if(c!==null&&(o=c.dehydrated,o!==null)){if(i)e.flags&256?(kn(e),e.flags&=-257,e=ec(t,e,n)):e.memoizedState!==null?(Zn(e),e.child=t.child,e.flags|=128,e=null):(Zn(e),o=l.fallback,a=e.mode,l=Nu({mode:"visible",children:l.children},a),o=vl(o,a,n,null),o.flags|=2,l.return=e,o.return=e,l.sibling=o,e.child=l,Ml(e,t.child,null,n),l=e.child,l.memoizedState=Po(n),l.childLanes=tc(t,u,n),e.memoizedState=Io,e=Qa(null,l));else if(kn(e),ir(o)){if(u=o.nextSibling&&o.nextSibling.dataset,u)var r=u.dgst;u=r,l=Error(T(419)),l.stack="",l.digest=u,di({value:l,source:null,stack:null}),e=ec(t,e,n)}else if(Wt||Ma(t,e,n,!1),u=(n&t.childLanes)!==0,Wt||u){if(u=Ct,u!==null&&(l=Dd(u,n),l!==0&&l!==c.retryLane))throw c.retryLane=l,Dl(t,l),Me(u,t,l),Xr;ar(o)||Vu(),e=ec(t,e,n)}else ar(o)?(e.flags|=192,e.child=t.child,e=null):(t=c.treeContext,Ot=Ke(o.nextSibling),se=e,ct=!0,Wn=null,Ge=!1,t!==null&&u1(e,t),e=Qc(e,l.children),e.flags|=4096);return e}return a?(Zn(e),o=l.fallback,a=e.mode,c=t.child,r=c.sibling,l=Cn(c,{mode:"hidden",children:l.children}),l.subtreeFlags=c.subtreeFlags&65011712,r!==null?o=Cn(r,o):(o=vl(o,a,n,null),o.flags|=2),o.return=e,l.return=e,l.sibling=o,e.child=l,Qa(null,l),l=e.child,o=t.child.memoizedState,o===null?o=Po(n):(a=o.cachePool,a!==null?(c=$t._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=c1(),o={baseLanes:o.baseLanes|n,cachePool:a}),l.memoizedState=o,l.childLanes=tc(t,u,n),e.memoizedState=Io,Qa(t.child,l)):(kn(e),n=t.child,t=n.sibling,n=Cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=n,e.memoizedState=null,n)}function Qc(t,e){return e=Nu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Nu(t,e){return t=De(22,t,null,e),t.lanes=0,t}function ec(t,e,n){return Ml(e,t.child,null,n),t=Qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Yf(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Hc(t.return,e,n)}function nc(t,e,n,l,a,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=a,u.treeForkCount=i)}function e0(t,e,n){var l=e.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var u=Xt.current,o=(u&2)!==0;if(o?(u=u&1|2,e.flags|=128):u&=1,At(Xt,u),ce(t,e,l,n),l=ct?fi:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Yf(t,n,e);else if(t.tag===19)Yf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Ou(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),nc(e,!1,a,n,i,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ou(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}nc(e,!0,n,null,i,l);break;case"together":nc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Rn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ol|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ma(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(T(153));if(e.child!==null){for(t=e.child,n=Cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Gr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&zu(t)))}function Py(t,e,n){switch(e.tag){case 3:xu(e,e.stateNode.containerInfo),Vn(e,$t,t.memoizedState.cache),xl();break;case 27:case 5:Sc(e);break;case 4:xu(e,e.stateNode.containerInfo);break;case 10:Vn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Yc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(kn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?t0(t,e,n):(kn(e),t=Rn(t,e,n),t!==null?t.sibling:null);kn(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ma(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return e0(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),At(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,P1(t,e,n,e.pendingProps);case 24:Vn(e,$t,t.memoizedState.cache)}return Rn(t,e,n)}function n0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Wt=!0;else{if(!Gr(t,n)&&(e.flags&128)===0)return Wt=!1,Py(t,e,n);Wt=(t.flags&131072)!==0}else Wt=!1,ct&&(e.flags&1048576)!==0&&i1(e,fi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=yl(e.elementType),e.type=t,typeof t=="function")Tr(t)?(l=wl(t,l),e.tag=1,e=Uf(null,e,t,l,n)):(e.tag=0,e=Gc(null,e,t,l,n));else{if(t!=null){var a=t.$$typeof;if(a===rr){e.tag=11,e=Of(null,e,t,l,n);break t}else if(a===sr){e.tag=14,e=Hf(null,e,t,l,n);break t}}throw e=vc(t)||t,Error(T(306,e,""))}}return e;case 0:return Gc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=wl(l,e.pendingProps),Uf(t,e,l,a,n);case 3:t:{if(xu(e,e.stateNode.containerInfo),t===null)throw Error(T(387));l=e.pendingProps;var i=e.memoizedState;a=i.element,Nc(t,e),ti(e,l,null,n);var u=e.memoizedState;if(l=u.cache,Vn(e,$t,l),l!==i.cache&&Lc(e,[$t],n,!0),Pa(),l=u.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=qf(t,e,l,n);break t}else if(l!==a){a=Xe(Error(T(424)),e),di(a),e=qf(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ot=Ke(t.firstChild),se=e,ct=!0,Wn=null,Ge=!0,n=f1(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xl(),l===a){e=Rn(t,e,n);break t}ce(t,e,l,n)}e=e.child}return e;case 26:return yu(t,e),t===null?(n=od(e.type,null,e.pendingProps,null))?e.memoizedState=n:ct||(n=e.type,t=e.pendingProps,l=Xu($n.current).createElement(n),l[re]=e,l[Ce]=t,de(l,n,t),ie(l),e.stateNode=l):e.memoizedState=od(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Sc(e),t===null&&ct&&(l=e.stateNode=Q0(e.type,e.pendingProps,$n.current),se=e,Ge=!0,a=Ot,rl(e.type)?(ur=a,Ot=Ke(l.firstChild)):Ot=a),ce(t,e,e.pendingProps.children,n),yu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ct&&((a=l=Ot)&&(l=_g(l,e.type,e.pendingProps,Ge),l!==null?(e.stateNode=l,se=e,Ot=Ke(l.firstChild),Ge=!1,a=!0):a=!1),a||il(e)),Sc(e),a=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,l=i.children,nr(a,i)?l=null:u!==null&&nr(a,u)&&(e.flags|=32),e.memoizedState!==null&&(a=Or(t,e,Xy,null,null,n),vi._currentValue=a),yu(t,e),ce(t,e,l,n),e.child;case 6:return t===null&&ct&&((t=n=Ot)&&(n=Ag(n,e.pendingProps,Ge),n!==null?(e.stateNode=n,se=e,Ot=null,t=!0):t=!1),t||il(e)),null;case 13:return t0(t,e,n);case 4:return xu(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ml(e,null,l,n):ce(t,e,l,n),e.child;case 11:return Of(t,e,e.type,e.pendingProps,n);case 7:return ce(t,e,e.pendingProps,n),e.child;case 8:return ce(t,e,e.pendingProps.children,n),e.child;case 12:return ce(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Vn(e,e.type,l.value),ce(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,Tl(e),a=fe(a),l=l(a),e.flags|=1,ce(t,e,l,n),e.child;case 14:return Hf(t,e,e.type,e.pendingProps,n);case 15:return I1(t,e,e.type,e.pendingProps,n);case 19:return e0(t,e,n);case 31:return Iy(t,e,n);case 22:return P1(t,e,n,e.pendingProps);case 24:return Tl(e),l=fe($t),t===null?(a=_r(),a===null&&(a=Ct,i=wr(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),e.memoizedState={parent:l,cache:a},zr(e),Vn(e,$t,a)):((t.lanes&n)!==0&&(Nc(t,e),ti(e,null,null,n),Pa()),a=t.memoizedState,i=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Vn(e,$t,l)):(l=i.cache,Vn(e,$t,l),l!==a.cache&&Lc(e,[$t],n,!0))),ce(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(T(156,e.tag))}function gn(t){t.flags|=4}function lc(t,e,n,l,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(w0())t.flags|=8192;else throw Sl=Du,Ar}else t.flags&=-16777217}function Vf(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!$0(e))if(w0())t.flags|=8192;else throw Sl=Du,Ar}function Pi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?_d():536870912,t.lanes|=e,pa|=e)}function Ya(t,e){if(!ct)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Rt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function tg(t,e,n){var l=e.pendingProps;switch(Cr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(e),null;case 1:return Rt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),wn($t),fa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Zl(e)?gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Jo())),Rt(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(gn(e),i!==null?(Rt(e),Vf(e,i)):(Rt(e),lc(e,a,null,l,n))):i?i!==t.memoizedState?(gn(e),Rt(e),Vf(e,i)):(Rt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&gn(e),Rt(e),lc(e,a,t,l,n)),null;case 27:if(Tu(e),n=$n.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(T(166));return Rt(e),null}t=rn.current,Zl(e)?yf(e,t):(t=Q0(a,l,n),e.stateNode=t,gn(e))}return Rt(e),null;case 5:if(Tu(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(T(166));return Rt(e),null}if(i=rn.current,Zl(e))yf(e,i);else{var u=Xu($n.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?u.createElement(a,{is:l.is}):u.createElement(a)}}i[re]=e,i[Ce]=l;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=i;t:switch(de(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&gn(e)}}return Rt(e),lc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(T(166));if(t=$n.current,Zl(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=se,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[re]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Z0(t.nodeValue,n)),t||il(e,!0)}else t=Xu(t).createTextNode(l),t[re]=e,e.stateNode=t}return Rt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Zl(e),n!==null){if(t===null){if(!l)throw Error(T(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(T(557));t[re]=e}else xl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Rt(e),t=!1}else n=Jo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(T(558))}return Rt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Zl(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(T(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(T(317));a[re]=e}else xl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Rt(e),a=!1}else a=Jo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Pi(e,e.updateQueue),Rt(e),null);case 4:return fa(),t===null&&Ir(e.stateNode.containerInfo),Rt(e),null;case 10:return wn(e.type),Rt(e),null;case 19:if(ue(Xt),l=e.memoizedState,l===null)return Rt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)Ya(l,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Ou(t),i!==null){for(e.flags|=128,Ya(l,!1),t=i.updateQueue,e.updateQueue=t,Pi(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)l1(n,t),n=n.sibling;return At(Xt,Xt.current&1|2),ct&&Sn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Oe()>qu&&(e.flags|=128,a=!0,Ya(l,!1),e.lanes=4194304)}else{if(!a)if(t=Ou(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Pi(e,t),Ya(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!ct)return Rt(e),null}else 2*Oe()-l.renderingStartTime>qu&&n!==536870912&&(e.flags|=128,a=!0,Ya(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Oe(),t.sibling=null,n=Xt.current,At(Xt,a?n&1|2:n&1),ct&&Sn(e,l.treeForkCount),t):(Rt(e),null);case 22:case 23:return ze(e),Dr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Rt(e),e.subtreeFlags&6&&(e.flags|=8192)):Rt(e),n=e.updateQueue,n!==null&&Pi(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&ue(bl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),wn($t),Rt(e),null;case 25:return null;case 30:return null}throw Error(T(156,e.tag))}function eg(t,e){switch(Cr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wn($t),fa(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Tu(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(T(340));xl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(T(340));xl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ue(Xt),null;case 4:return fa(),null;case 10:return wn(e.type),null;case 22:case 23:return ze(e),Dr(),t!==null&&ue(bl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wn($t),null;case 25:return null;default:return null}}function l0(t,e){switch(Cr(e),e.tag){case 3:wn($t),fa();break;case 26:case 27:case 5:Tu(e);break;case 4:fa();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:ue(Xt);break;case 10:wn(e.type);break;case 22:case 23:ze(e),Dr(),t!==null&&ue(bl);break;case 24:wn($t)}}function zi(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var i=n.create,u=n.inst;l=i(),u.destroy=l}n=n.next}while(n!==a)}}catch(o){bt(e,e.return,o)}}function ul(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&t)===t){var u=l.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,a=e;var c=n,r=o;try{r()}catch(y){bt(a,c,y)}}}l=l.next}while(l!==i)}}catch(y){bt(e,e.return,y)}}function a0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{m1(e,n)}catch(l){bt(t,t.return,l)}}}function i0(t,e,n){n.props=wl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){bt(t,e,l)}}function ni(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){bt(t,e,a)}}function cn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){bt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){bt(t,e,a)}else n.current=null}function u0(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){bt(t,t.return,a)}}function ac(t,e,n){try{var l=t.stateNode;Eg(l,t.type,n,e),l[Ce]=e}catch(a){bt(t,t.return,a)}}function o0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&rl(t.type)||t.tag===4}function ic(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||o0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&rl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Kc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Tn));else if(l!==4&&(l===27&&rl(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Kc(t,e,n),t=t.sibling;t!==null;)Kc(t,e,n),t=t.sibling}function Uu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&rl(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Uu(t,e,n),t=t.sibling;t!==null;)Uu(t,e,n),t=t.sibling}function c0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);de(e,l,n),e[re]=t,e[Ce]=n}catch(i){bt(t,t.return,i)}}var En=!1,Jt=!1,uc=!1,kf=typeof WeakSet=="function"?WeakSet:Set,ae=null;function ng(t,e){if(t=t.containerInfo,tr=Ju,t=$d(t),Sr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var u=0,o=-1,c=-1,r=0,y=0,g=t,d=null;e:for(;;){for(var m;g!==n||a!==0&&g.nodeType!==3||(o=u+a),g!==i||l!==0&&g.nodeType!==3||(c=u+l),g.nodeType===3&&(u+=g.nodeValue.length),(m=g.firstChild)!==null;)d=g,g=m;for(;;){if(g===t)break e;if(d===n&&++r===a&&(o=u),d===i&&++y===l&&(c=u),(m=g.nextSibling)!==null)break;g=d,d=g.parentNode}g=m}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(er={focusedElem:t,selectionRange:n},Ju=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,n=e,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var b=wl(n.type,a);t=l.getSnapshotBeforeUpdate(b,i),l.__reactInternalSnapshotBeforeUpdate=t}catch(E){bt(n,n.return,E)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)lr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":lr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(T(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function r0(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:vn(t,n),l&4&&zi(5,n);break;case 1:if(vn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(u){bt(n,n.return,u)}else{var a=wl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){bt(n,n.return,u)}}l&64&&a0(n),l&512&&ni(n,n.return);break;case 3:if(vn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{m1(t,e)}catch(u){bt(n,n.return,u)}}break;case 27:e===null&&l&4&&c0(n);case 26:case 5:vn(t,n),e===null&&l&4&&u0(n),l&512&&ni(n,n.return);break;case 12:vn(t,n);break;case 31:vn(t,n),l&4&&d0(t,n);break;case 13:vn(t,n),l&4&&m0(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=fg.bind(null,n),zg(t,n))));break;case 22:if(l=n.memoizedState!==null||En,!l){e=e!==null&&e.memoizedState!==null||Jt,a=En;var i=Jt;En=l,(Jt=e)&&!i?bn(t,n,(n.subtreeFlags&8772)!==0):vn(t,n),En=a,Jt=i}break;case 30:break;default:vn(t,n)}}function s0(t){var e=t.alternate;e!==null&&(t.alternate=null,s0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,xe=!1;function pn(t,e,n){for(n=n.child;n!==null;)f0(t,e,n),n=n.sibling}function f0(t,e,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(xi,n)}catch{}switch(n.tag){case 26:Jt||cn(n,e),pn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||cn(n,e);var l=Ut,a=xe;rl(n.type)&&(Ut=n.stateNode,xe=!1),pn(t,e,n),ui(n.stateNode),Ut=l,xe=a;break;case 5:Jt||cn(n,e);case 6:if(l=Ut,a=xe,Ut=null,pn(t,e,n),Ut=l,xe=a,Ut!==null)if(xe)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(i){bt(n,e,i)}else try{Ut.removeChild(n.stateNode)}catch(i){bt(n,e,i)}break;case 18:Ut!==null&&(xe?(t=Ut,nd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ea(t)):nd(Ut,n.stateNode));break;case 4:l=Ut,a=xe,Ut=n.stateNode.containerInfo,xe=!0,pn(t,e,n),Ut=l,xe=a;break;case 0:case 11:case 14:case 15:ul(2,n,e),Jt||ul(4,n,e),pn(t,e,n);break;case 1:Jt||(cn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&i0(n,e,l)),pn(t,e,n);break;case 21:pn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,pn(t,e,n),Jt=l;break;default:pn(t,e,n)}}function d0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ea(t)}catch(n){bt(e,e.return,n)}}}function m0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ea(t)}catch(n){bt(e,e.return,n)}}function lg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new kf),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new kf),e;default:throw Error(T(435,t.tag))}}function tu(t,e){var n=lg(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=dg.bind(null,t,l);l.then(a,a)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=t,u=e,o=u;t:for(;o!==null;){switch(o.tag){case 27:if(rl(o.type)){Ut=o.stateNode,xe=!1;break t}break;case 5:Ut=o.stateNode,xe=!1;break t;case 3:case 4:Ut=o.stateNode.containerInfo,xe=!0;break t}o=o.return}if(Ut===null)throw Error(T(160));f0(i,u,a),Ut=null,xe=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)h0(e,t),e=e.sibling}var Ie=null;function h0(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),Ee(t),l&4&&(ul(3,t,t.return),zi(3,t),ul(5,t,t.return));break;case 1:Se(e,t),Ee(t),l&512&&(Jt||n===null||cn(n,n.return)),l&64&&En&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=Ie;if(Se(e,t),Ee(t),l&512&&(Jt||n===null||cn(n,n.return)),l&4){var i=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Ci]||i[re]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),de(i,l,n),i[re]=t,ie(i),l=i;break t;case"link":var u=rd("link","href",a).get(l+(n.href||""));if(u){for(var o=0;o<u.length;o++)if(i=u[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){u.splice(o,1);break e}}i=a.createElement(l),de(i,l,n),a.head.appendChild(i);break;case"meta":if(u=rd("meta","content",a).get(l+(n.content||""))){for(o=0;o<u.length;o++)if(i=u[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){u.splice(o,1);break e}}i=a.createElement(l),de(i,l,n),a.head.appendChild(i);break;default:throw Error(T(468,l))}i[re]=t,ie(i),l=i}t.stateNode=l}else sd(a,t.type,t.stateNode);else t.stateNode=cd(a,l,t.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?sd(a,t.type,t.stateNode):cd(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ac(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Ee(t),l&512&&(Jt||n===null||cn(n,n.return)),n!==null&&l&4&&ac(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Ee(t),l&512&&(Jt||n===null||cn(n,n.return)),t.flags&32){a=t.stateNode;try{ma(a,"")}catch(b){bt(t,t.return,b)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,ac(t,a,n!==null?n.memoizedProps:a)),l&1024&&(uc=!0);break;case 6:if(Se(e,t),Ee(t),l&4){if(t.stateNode===null)throw Error(T(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(b){bt(t,t.return,b)}}break;case 3:if(vu=null,a=Ie,Ie=Gu(e.containerInfo),Se(e,t),Ie=a,Ee(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ea(e.containerInfo)}catch(b){bt(t,t.return,b)}uc&&(uc=!1,y0(t));break;case 4:l=Ie,Ie=Gu(t.stateNode.containerInfo),Se(e,t),Ee(t),Ie=l;break;case 12:Se(e,t),Ee(t);break;case 31:Se(e,t),Ee(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tu(t,l)));break;case 13:Se(e,t),Ee(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(oo=Oe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tu(t,l)));break;case 22:a=t.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,r=En,y=Jt;if(En=r||a,Jt=y||c,Se(e,t),Jt=y,En=r,Ee(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||c||En||Jt||gl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){c=n=e;try{if(i=c.stateNode,a)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{o=c.stateNode;var g=c.memoizedProps.style,d=g!=null&&g.hasOwnProperty("display")?g.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(b){bt(c,c.return,b)}}}else if(e.tag===6){if(n===null){c=e;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(b){bt(c,c.return,b)}}}else if(e.tag===18){if(n===null){c=e;try{var m=c.stateNode;a?ld(m,!0):ld(c.stateNode,!1)}catch(b){bt(c,c.return,b)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,tu(t,n))));break;case 19:Se(e,t),Ee(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tu(t,l)));break;case 30:break;case 21:break;default:Se(e,t),Ee(t)}}function Ee(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(o0(l)){n=l;break}l=l.return}if(n==null)throw Error(T(160));switch(n.tag){case 27:var a=n.stateNode,i=ic(t);Uu(t,i,a);break;case 5:var u=n.stateNode;n.flags&32&&(ma(u,""),n.flags&=-33);var o=ic(t);Uu(t,o,u);break;case 3:case 4:var c=n.stateNode.containerInfo,r=ic(t);Kc(t,r,c);break;default:throw Error(T(161))}}catch(y){bt(t,t.return,y)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function y0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;y0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function vn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)r0(t,e.alternate,e),e=e.sibling}function gl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ul(4,e,e.return),gl(e);break;case 1:cn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&i0(e,e.return,n),gl(e);break;case 27:ui(e.stateNode);case 26:case 5:cn(e,e.return),gl(e);break;case 22:e.memoizedState===null&&gl(e);break;case 30:gl(e);break;default:gl(e)}t=t.sibling}}function bn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,i=e,u=i.flags;switch(i.tag){case 0:case 11:case 15:bn(a,i,n),zi(4,i);break;case 1:if(bn(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(r){bt(l,l.return,r)}if(l=i,a=l.updateQueue,a!==null){var o=l.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)d1(c[a],o)}catch(r){bt(l,l.return,r)}}n&&u&64&&a0(i),ni(i,i.return);break;case 27:c0(i);case 26:case 5:bn(a,i,n),n&&l===null&&u&4&&u0(i),ni(i,i.return);break;case 12:bn(a,i,n);break;case 31:bn(a,i,n),n&&u&4&&d0(a,i);break;case 13:bn(a,i,n),n&&u&4&&m0(a,i);break;case 22:i.memoizedState===null&&bn(a,i,n),ni(i,i.return);break;case 30:break;default:bn(a,i,n)}e=e.sibling}}function Qr(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&_i(n))}function Kr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&_i(t))}function Fe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)g0(t,e,n,l),e=e.sibling}function g0(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,n,l),a&2048&&zi(9,e);break;case 1:Fe(t,e,n,l);break;case 3:Fe(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&_i(t)));break;case 12:if(a&2048){Fe(t,e,n,l),t=e.stateNode;try{var i=e.memoizedProps,u=i.id,o=i.onPostCommit;typeof o=="function"&&o(u,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(c){bt(e,e.return,c)}}else Fe(t,e,n,l);break;case 31:Fe(t,e,n,l);break;case 13:Fe(t,e,n,l);break;case 23:break;case 22:i=e.stateNode,u=e.alternate,e.memoizedState!==null?i._visibility&2?Fe(t,e,n,l):li(t,e):i._visibility&2?Fe(t,e,n,l):(i._visibility|=2,Xl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),a&2048&&Qr(u,e);break;case 24:Fe(t,e,n,l),a&2048&&Kr(e.alternate,e);break;default:Fe(t,e,n,l)}}function Xl(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,u=e,o=n,c=l,r=u.flags;switch(u.tag){case 0:case 11:case 15:Xl(i,u,o,c,a),zi(8,u);break;case 23:break;case 22:var y=u.stateNode;u.memoizedState!==null?y._visibility&2?Xl(i,u,o,c,a):li(i,u):(y._visibility|=2,Xl(i,u,o,c,a)),a&&r&2048&&Qr(u.alternate,u);break;case 24:Xl(i,u,o,c,a),a&&r&2048&&Kr(u.alternate,u);break;default:Xl(i,u,o,c,a)}e=e.sibling}}function li(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:li(n,l),a&2048&&Qr(l.alternate,l);break;case 24:li(n,l),a&2048&&Kr(l.alternate,l);break;default:li(n,l)}e=e.sibling}}var Ka=8192;function jl(t,e,n){if(t.subtreeFlags&Ka)for(t=t.child;t!==null;)p0(t,e,n),t=t.sibling}function p0(t,e,n){switch(t.tag){case 26:jl(t,e,n),t.flags&Ka&&t.memoizedState!==null&&kg(n,Ie,t.memoizedState,t.memoizedProps);break;case 5:jl(t,e,n);break;case 3:case 4:var l=Ie;Ie=Gu(t.stateNode.containerInfo),jl(t,e,n),Ie=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ka,Ka=16777216,jl(t,e,n),Ka=l):jl(t,e,n));break;default:jl(t,e,n)}}function v0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Va(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,S0(l,t)}v0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)b0(t),t=t.sibling}function b0(t){switch(t.tag){case 0:case 11:case 15:Va(t),t.flags&2048&&ul(9,t,t.return);break;case 3:Va(t);break;case 12:Va(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,gu(t)):Va(t);break;default:Va(t)}}function gu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,S0(l,t)}v0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ul(8,e,e.return),gu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,gu(e));break;default:gu(e)}t=t.sibling}}function S0(t,e){for(;ae!==null;){var n=ae;switch(n.tag){case 0:case 11:case 15:ul(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:_i(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ae=l;else t:for(n=t;ae!==null;){l=ae;var a=l.sibling,i=l.return;if(s0(l),l===n){ae=null;break t}if(a!==null){a.return=i,ae=a;break t}ae=i}}}var ag={getCacheForType:function(t){var e=fe($t),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return fe($t).controller.signal}},ig=typeof WeakMap=="function"?WeakMap:Map,ht=0,Ct=null,at=null,ut=0,vt=0,Ae=null,Qn=!1,wa=!1,Jr=!1,On=0,jt=0,ol=0,El=0,$r=0,Re=0,pa=0,ai=null,Te=null,Jc=!1,oo=0,E0=0,qu=1/0,Yu=null,Pn=null,It=0,tl=null,va=null,_n=0,$c=0,Wc=null,x0=null,ii=0,Fc=null;function Be(){return(ht&2)!==0&&ut!==0?ut&-ut:J.T!==null?Fr():Rd()}function T0(){if(Re===0)if((ut&536870912)===0||ct){var t=Xi;Xi<<=1,(Xi&3932160)===0&&(Xi=262144),Re=t}else Re=536870912;return t=Ue.current,t!==null&&(t.flags|=32),Re}function Me(t,e,n){(t===Ct&&(vt===2||vt===9)||t.cancelPendingCommit!==null)&&(ba(t,0),Kn(t,ut,Re,!1)),Mi(t,n),((ht&2)===0||t!==Ct)&&(t===Ct&&((ht&2)===0&&(El|=n),jt===4&&Kn(t,ut,Re,!1)),fn(t))}function M0(t,e,n){if((ht&6)!==0)throw Error(T(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ti(t,e),a=l?cg(t,e):oc(t,e,!0),i=l;do{if(a===0){wa&&!l&&Kn(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!ug(n)){a=oc(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var o=t;a=ai;var c=o.current.memoizedState.isDehydrated;if(c&&(ba(o,u).flags|=256),u=oc(o,u,!1),u!==2){if(Jr&&!c){o.errorRecoveryDisabledLanes|=i,El|=i,a=4;break t}i=Te,Te=a,i!==null&&(Te===null?Te=i:Te.push.apply(Te,i))}a=u}if(i=!1,a!==2)continue}}if(a===1){ba(t,0),Kn(t,e,0,!0);break}t:{switch(l=t,i=a,i){case 0:case 1:throw Error(T(345));case 4:if((e&4194048)!==e)break;case 6:Kn(l,e,Re,!Qn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(T(329))}if((e&62914560)===e&&(a=oo+300-Oe(),10<a)){if(Kn(l,e,Re,!Qn),Wu(l,0,!0)!==0)break t;_n=e,l.timeoutHandle=X0(Zf.bind(null,l,n,Te,Yu,Jc,e,Re,El,pa,Qn,i,"Throttled",-0,0),a);break t}Zf(l,n,Te,Yu,Jc,e,Re,El,pa,Qn,i,null,-0,0)}}break}while(!0);fn(t)}function Zf(t,e,n,l,a,i,u,o,c,r,y,g,d,m){if(t.timeoutHandle=-1,g=e.subtreeFlags,g&8192||(g&16785408)===16785408){g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},p0(e,i,g);var b=(i&62914560)===i?oo-Oe():(i&4194048)===i?E0-Oe():0;if(b=Zg(g,b),b!==null){_n=i,t.cancelPendingCommit=b(Xf.bind(null,t,e,i,n,l,a,u,o,c,y,g,null,d,m)),Kn(t,i,u,!r);return}}Xf(t,e,i,n,l,a,u,o,c)}function ug(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!Ne(i(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Kn(t,e,n,l){e&=~$r,e&=~El,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var i=31-Le(a),u=1<<i;l[i]=-1,a&=~u}n!==0&&Ad(t,n,e)}function co(){return(ht&6)===0?(Di(0,!1),!1):!0}function Wr(){if(at!==null){if(vt===0)var t=at.return;else t=at,Mn=Rl=null,Br(t),ca=null,mi=0,t=at;for(;t!==null;)l0(t.alternate,t),t=t.return;at=null}}function ba(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Mg(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),_n=0,Wr(),Ct=t,at=n=Cn(t.current,null),ut=e,vt=0,Ae=null,Qn=!1,wa=Ti(t,e),Jr=!1,pa=Re=$r=El=ol=jt=0,Te=ai=null,Jc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-Le(l),i=1<<a;e|=t[a],l&=~i}return On=e,to(),n}function C0(t,e){tt=null,J.H=yi,e===Ca||e===no?(e=Sf(),vt=3):e===Ar?(e=Sf(),vt=4):vt=e===Xr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ae=e,at===null&&(jt=1,Bu(t,Xe(e,t.current)))}function w0(){var t=Ue.current;return t===null?!0:(ut&4194048)===ut?Qe===null:(ut&62914560)===ut||(ut&536870912)!==0?t===Qe:!1}function _0(){var t=J.H;return J.H=yi,t===null?yi:t}function A0(){var t=J.A;return J.A=ag,t}function Vu(){jt=4,Qn||(ut&4194048)!==ut&&Ue.current!==null||(wa=!0),(ol&134217727)===0&&(El&134217727)===0||Ct===null||Kn(Ct,ut,Re,!1)}function oc(t,e,n){var l=ht;ht|=2;var a=_0(),i=A0();(Ct!==t||ut!==e)&&(Yu=null,ba(t,e)),e=!1;var u=jt;t:do try{if(vt!==0&&at!==null){var o=at,c=Ae;switch(vt){case 8:Wr(),u=6;break t;case 3:case 2:case 9:case 6:Ue.current===null&&(e=!0);var r=vt;if(vt=0,Ae=null,la(t,o,c,r),n&&wa){u=0;break t}break;default:r=vt,vt=0,Ae=null,la(t,o,c,r)}}og(),u=jt;break}catch(y){C0(t,y)}while(!0);return e&&t.shellSuspendCounter++,Mn=Rl=null,ht=l,J.H=a,J.A=i,at===null&&(Ct=null,ut=0,to()),u}function og(){for(;at!==null;)z0(at)}function cg(t,e){var n=ht;ht|=2;var l=_0(),a=A0();Ct!==t||ut!==e?(Yu=null,qu=Oe()+500,ba(t,e)):wa=Ti(t,e);t:do try{if(vt!==0&&at!==null){e=at;var i=Ae;e:switch(vt){case 1:vt=0,Ae=null,la(t,e,i,1);break;case 2:case 9:if(bf(i)){vt=0,Ae=null,jf(e);break}e=function(){vt!==2&&vt!==9||Ct!==t||(vt=7),fn(t)},i.then(e,e);break t;case 3:vt=7;break t;case 4:vt=5;break t;case 7:bf(i)?(vt=0,Ae=null,jf(e)):(vt=0,Ae=null,la(t,e,i,7));break;case 5:var u=null;switch(at.tag){case 26:u=at.memoizedState;case 5:case 27:var o=at;if(u?$0(u):o.stateNode.complete){vt=0,Ae=null;var c=o.sibling;if(c!==null)at=c;else{var r=o.return;r!==null?(at=r,ro(r)):at=null}break e}}vt=0,Ae=null,la(t,e,i,5);break;case 6:vt=0,Ae=null,la(t,e,i,6);break;case 8:Wr(),jt=6;break t;default:throw Error(T(462))}}rg();break}catch(y){C0(t,y)}while(!0);return Mn=Rl=null,J.H=l,J.A=a,ht=n,at!==null?0:(Ct=null,ut=0,to(),jt)}function rg(){for(;at!==null&&!Oh();)z0(at)}function z0(t){var e=n0(t.alternate,t,On);t.memoizedProps=t.pendingProps,e===null?ro(t):at=e}function jf(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Nf(n,e,e.pendingProps,e.type,void 0,ut);break;case 11:e=Nf(n,e,e.pendingProps,e.type.render,e.ref,ut);break;case 5:Br(e);default:l0(n,e),e=at=l1(e,On),e=n0(n,e,On)}t.memoizedProps=t.pendingProps,e===null?ro(t):at=e}function la(t,e,n,l){Mn=Rl=null,Br(e),ca=null,mi=0;var a=e.return;try{if(Fy(t,a,e,n,ut)){jt=1,Bu(t,Xe(n,t.current)),at=null;return}}catch(i){if(a!==null)throw at=a,i;jt=1,Bu(t,Xe(n,t.current)),at=null;return}e.flags&32768?(ct||l===1?t=!0:wa||(ut&536870912)!==0?t=!1:(Qn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ue.current,l!==null&&l.tag===13&&(l.flags|=16384))),D0(e,t)):ro(e)}function ro(t){var e=t;do{if((e.flags&32768)!==0){D0(e,Qn);return}t=e.return;var n=tg(e.alternate,e,On);if(n!==null){at=n;return}if(e=e.sibling,e!==null){at=e;return}at=e=t}while(e!==null);jt===0&&(jt=5)}function D0(t,e){do{var n=eg(t.alternate,t);if(n!==null){n.flags&=32767,at=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){at=t;return}at=t=n}while(t!==null);jt=6,at=null}function Xf(t,e,n,l,a,i,u,o,c){t.cancelPendingCommit=null;do so();while(It!==0);if((ht&6)!==0)throw Error(T(327));if(e!==null){if(e===t.current)throw Error(T(177));if(i=e.lanes|e.childLanes,i|=Er,Zh(t,n,i,u,o,c),t===Ct&&(at=Ct=null,ut=0),va=e,tl=t,_n=n,$c=i,Wc=a,x0=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mg(Mu,function(){return B0(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=J.T,J.T=null,a=yt.p,yt.p=2,u=ht,ht|=4;try{ng(t,e,n)}finally{ht=u,yt.p=a,J.T=l}}It=1,R0(),O0(),H0()}}function R0(){if(It===1){It=0;var t=tl,e=va,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=J.T,J.T=null;var l=yt.p;yt.p=2;var a=ht;ht|=4;try{h0(e,t);var i=er,u=$d(t.containerInfo),o=i.focusedElem,c=i.selectionRange;if(u!==o&&o&&o.ownerDocument&&Jd(o.ownerDocument.documentElement,o)){if(c!==null&&Sr(o)){var r=c.start,y=c.end;if(y===void 0&&(y=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(y,o.value.length);else{var g=o.ownerDocument||document,d=g&&g.defaultView||window;if(d.getSelection){var m=d.getSelection(),b=o.textContent.length,E=Math.min(c.start,b),O=c.end===void 0?E:Math.min(c.end,b);!m.extend&&E>O&&(u=O,O=E,E=u);var f=df(o,E),s=df(o,O);if(f&&s&&(m.rangeCount!==1||m.anchorNode!==f.node||m.anchorOffset!==f.offset||m.focusNode!==s.node||m.focusOffset!==s.offset)){var h=g.createRange();h.setStart(f.node,f.offset),m.removeAllRanges(),E>O?(m.addRange(h),m.extend(s.node,s.offset)):(h.setEnd(s.node,s.offset),m.addRange(h))}}}}for(g=[],m=o;m=m.parentNode;)m.nodeType===1&&g.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<g.length;o++){var p=g[o];p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}Ju=!!tr,er=tr=null}finally{ht=a,yt.p=l,J.T=n}}t.current=e,It=2}}function O0(){if(It===2){It=0;var t=tl,e=va,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=J.T,J.T=null;var l=yt.p;yt.p=2;var a=ht;ht|=4;try{r0(t,e.alternate,e)}finally{ht=a,yt.p=l,J.T=n}}It=3}}function H0(){if(It===4||It===3){It=0,Hh();var t=tl,e=va,n=_n,l=x0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,va=tl=null,L0(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Pn=null),mr(n),e=e.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(xi,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=J.T,a=yt.p,yt.p=2,J.T=null;try{for(var i=t.onRecoverableError,u=0;u<l.length;u++){var o=l[u];i(o.value,{componentStack:o.stack})}}finally{J.T=e,yt.p=a}}(_n&3)!==0&&so(),fn(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===Fc?ii++:(ii=0,Fc=t):ii=0,Di(0,!1)}}function L0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,_i(e)))}function so(){return R0(),O0(),H0(),B0()}function B0(){if(It!==5)return!1;var t=tl,e=$c;$c=0;var n=mr(_n),l=J.T,a=yt.p;try{yt.p=32>n?32:n,J.T=null,n=Wc,Wc=null;var i=tl,u=_n;if(It=0,va=tl=null,_n=0,(ht&6)!==0)throw Error(T(331));var o=ht;if(ht|=4,b0(i.current),g0(i,i.current,u,n),ht=o,Di(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(xi,i)}catch{}return!0}finally{yt.p=a,J.T=l,L0(t,e)}}function Gf(t,e,n){e=Xe(n,e),e=Xc(t.stateNode,e,2),t=In(t,e,2),t!==null&&(Mi(t,2),fn(t))}function bt(t,e,n){if(t.tag===3)Gf(t,t,n);else for(;e!==null;){if(e.tag===3){Gf(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Pn===null||!Pn.has(l))){t=Xe(n,t),n=W1(2),l=In(e,n,2),l!==null&&(F1(n,l,e,t),Mi(l,2),fn(l));break}}e=e.return}}function cc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new ig;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(Jr=!0,a.add(n),t=sg.bind(null,t,e,n),e.then(t,t))}function sg(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ut&n)===n&&(jt===4||jt===3&&(ut&62914560)===ut&&300>Oe()-oo?(ht&2)===0&&ba(t,0):$r|=n,pa===ut&&(pa=0)),fn(t)}function N0(t,e){e===0&&(e=_d()),t=Dl(t,e),t!==null&&(Mi(t,e),fn(t))}function fg(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),N0(t,n)}function dg(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(T(314))}l!==null&&l.delete(e),N0(t,n)}function mg(t,e){return fr(t,e)}var ku=null,Gl=null,Ic=!1,Zu=!1,rc=!1,Jn=0;function fn(t){t!==Gl&&t.next===null&&(Gl===null?ku=Gl=t:Gl=Gl.next=t),Zu=!0,Ic||(Ic=!0,yg())}function Di(t,e){if(!rc&&Zu){rc=!0;do for(var n=!1,l=ku;l!==null;){if(!e)if(t!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var u=l.suspendedLanes,o=l.pingedLanes;i=(1<<31-Le(42|t)+1)-1,i&=a&~(u&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Qf(l,i))}else i=ut,i=Wu(l,l===Ct?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Ti(l,i)||(n=!0,Qf(l,i));l=l.next}while(n);rc=!1}}function hg(){U0()}function U0(){Zu=Ic=!1;var t=0;Jn!==0&&Tg()&&(t=Jn);for(var e=Oe(),n=null,l=ku;l!==null;){var a=l.next,i=q0(l,e);i===0?(l.next=null,n===null?ku=a:n.next=a,a===null&&(Gl=n)):(n=l,(t!==0||(i&3)!==0)&&(Zu=!0)),l=a}It!==0&&It!==5||Di(t,!1),Jn!==0&&(Jn=0)}function q0(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-Le(i),o=1<<u,c=a[u];c===-1?((o&n)===0||(o&l)!==0)&&(a[u]=kh(o,e)):c<=e&&(t.expiredLanes|=o),i&=~o}if(e=Ct,n=ut,n=Wu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(vt===2||vt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qo(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ti(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&qo(l),mr(n)){case 2:case 8:n=Cd;break;case 32:n=Mu;break;case 268435456:n=wd;break;default:n=Mu}return l=Y0.bind(null,t),n=fr(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&qo(l),t.callbackPriority=2,t.callbackNode=null,2}function Y0(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(so()&&t.callbackNode!==n)return null;var l=ut;return l=Wu(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(M0(t,l,e),q0(t,Oe()),t.callbackNode!=null&&t.callbackNode===n?Y0.bind(null,t):null)}function Qf(t,e){if(so())return null;M0(t,e,!0)}function yg(){Cg(function(){(ht&6)!==0?fr(Md,hg):U0()})}function Fr(){if(Jn===0){var t=ha;t===0&&(t=ji,ji<<=1,(ji&261888)===0&&(ji=256)),Jn=t}return Jn}function Kf(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ou(""+t)}function Jf(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function gg(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var i=Kf((a[Ce]||null).action),u=l.submitter;u&&(e=(e=u[Ce]||null)?Kf(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var o=new Fu("action","action",null,l,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Jn!==0){var c=u?Jf(a,u):new FormData(a);Zc(n,{pending:!0,data:c,method:a.method,action:i},null,c)}}else typeof i=="function"&&(o.preventDefault(),c=u?Jf(a,u):new FormData(a),Zc(n,{pending:!0,data:c,method:a.method,action:i},i,c))},currentTarget:a}]})}}for(eu=0;eu<Dc.length;eu++)nu=Dc[eu],$f=nu.toLowerCase(),Wf=nu[0].toUpperCase()+nu.slice(1),Pe($f,"on"+Wf);var nu,$f,Wf,eu;Pe(Fd,"onAnimationEnd");Pe(Id,"onAnimationIteration");Pe(Pd,"onAnimationStart");Pe("dblclick","onDoubleClick");Pe("focusin","onFocus");Pe("focusout","onBlur");Pe(Ly,"onTransitionRun");Pe(By,"onTransitionStart");Pe(Ny,"onTransitionCancel");Pe(t1,"onTransitionEnd");da("onMouseEnter",["mouseout","mouseover"]);da("onMouseLeave",["mouseout","mouseover"]);da("onPointerEnter",["pointerout","pointerover"]);da("onPointerLeave",["pointerout","pointerover"]);_l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_l("onBeforeInput",["compositionend","keypress","textInput","paste"]);_l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="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(" "),pg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gi));function V0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var i=void 0;if(e)for(var u=l.length-1;0<=u;u--){var o=l[u],c=o.instance,r=o.currentTarget;if(o=o.listener,c!==i&&a.isPropagationStopped())break t;i=o,a.currentTarget=r;try{i(a)}catch(y){wu(y)}a.currentTarget=null,i=c}else for(u=0;u<l.length;u++){if(o=l[u],c=o.instance,r=o.currentTarget,o=o.listener,c!==i&&a.isPropagationStopped())break t;i=o,a.currentTarget=r;try{i(a)}catch(y){wu(y)}a.currentTarget=null,i=c}}}}function lt(t,e){var n=e[xc];n===void 0&&(n=e[xc]=new Set);var l=t+"__bubble";n.has(l)||(k0(e,t,2,!1),n.add(l))}function sc(t,e,n){var l=0;e&&(l|=4),k0(n,t,l,e)}var lu="_reactListening"+Math.random().toString(36).slice(2);function Ir(t){if(!t[lu]){t[lu]=!0,Od.forEach(function(n){n!=="selectionchange"&&(pg.has(n)||sc(n,!1,t),sc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[lu]||(e[lu]=!0,sc("selectionchange",!1,e))}}function k0(t,e,n,l){switch(tm(e)){case 2:var a=Gg;break;case 8:a=Qg;break;default:a=ns}n=a.bind(null,e,n,t),a=void 0,!_c||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function fc(t,e,n,l,a){var i=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var o=l.stateNode.containerInfo;if(o===a)break;if(u===4)for(u=l.return;u!==null;){var c=u.tag;if((c===3||c===4)&&u.stateNode.containerInfo===a)return;u=u.return}for(;o!==null;){if(u=Jl(o),u===null)return;if(c=u.tag,c===5||c===6||c===26||c===27){l=i=u;continue t}o=o.parentNode}}l=l.return}Vd(function(){var r=i,y=gr(n),g=[];t:{var d=e1.get(t);if(d!==void 0){var m=Fu,b=t;switch(t){case"keypress":if(ru(n)===0)break t;case"keydown":case"keyup":m=dy;break;case"focusin":b="focus",m=jo;break;case"focusout":b="blur",m=jo;break;case"beforeblur":case"afterblur":m=jo;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=yy;break;case Fd:case Id:case Pd:m=ly;break;case t1:m=py;break;case"scroll":case"scrollend":m=Ih;break;case"wheel":m=by;break;case"copy":case"cut":case"paste":m=iy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=af;break;case"toggle":case"beforetoggle":m=Ey}var E=(e&4)!==0,O=!E&&(t==="scroll"||t==="scrollend"),f=E?d!==null?d+"Capture":null:d;E=[];for(var s=r,h;s!==null;){var p=s;if(h=p.stateNode,p=p.tag,p!==5&&p!==26&&p!==27||h===null||f===null||(p=ci(s,f),p!=null&&E.push(pi(s,p,h))),O)break;s=s.return}0<E.length&&(d=new m(d,b,null,n,y),g.push({event:d,listeners:E}))}}if((e&7)===0){t:{if(d=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",d&&n!==wc&&(b=n.relatedTarget||n.fromElement)&&(Jl(b)||b[xa]))break t;if((m||d)&&(d=y.window===y?y:(d=y.ownerDocument)?d.defaultView||d.parentWindow:window,m?(b=n.relatedTarget||n.toElement,m=r,b=b?Jl(b):null,b!==null&&(O=Ei(b),E=b.tag,b!==O||E!==5&&E!==27&&E!==6)&&(b=null)):(m=null,b=r),m!==b)){if(E=nf,p="onMouseLeave",f="onMouseEnter",s="mouse",(t==="pointerout"||t==="pointerover")&&(E=af,p="onPointerLeave",f="onPointerEnter",s="pointer"),O=m==null?d:Ga(m),h=b==null?d:Ga(b),d=new E(p,s+"leave",m,n,y),d.target=O,d.relatedTarget=h,p=null,Jl(y)===r&&(E=new E(f,s+"enter",b,n,y),E.target=h,E.relatedTarget=O,p=E),O=p,m&&b)e:{for(E=vg,f=m,s=b,h=0,p=f;p;p=E(p))h++;p=0;for(var C=s;C;C=E(C))p++;for(;0<h-p;)f=E(f),h--;for(;0<p-h;)s=E(s),p--;for(;h--;){if(f===s||s!==null&&f===s.alternate){E=f;break e}f=E(f),s=E(s)}E=null}else E=null;m!==null&&Ff(g,d,m,E,!1),b!==null&&O!==null&&Ff(g,O,b,E,!0)}}t:{if(d=r?Ga(r):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var L=rf;else if(cf(d))if(Qd)L=Ry;else{L=zy;var A=Ay}else m=d.nodeName,!m||m.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?r&&yr(r.elementType)&&(L=rf):L=Dy;if(L&&(L=L(t,r))){Gd(g,L,n,y);break t}A&&A(t,d,r),t==="focusout"&&r&&d.type==="number"&&r.memoizedProps.value!=null&&Cc(d,"number",d.value)}switch(A=r?Ga(r):window,t){case"focusin":(cf(A)||A.contentEditable==="true")&&(Fl=A,Ac=r,Wa=null);break;case"focusout":Wa=Ac=Fl=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,mf(g,n,y);break;case"selectionchange":if(Hy)break;case"keydown":case"keyup":mf(g,n,y)}var q;if(br)t:{switch(t){case"compositionstart":var z="onCompositionStart";break t;case"compositionend":z="onCompositionEnd";break t;case"compositionupdate":z="onCompositionUpdate";break t}z=void 0}else Wl?jd(t,n)&&(z="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(Zd&&n.locale!=="ko"&&(Wl||z!=="onCompositionStart"?z==="onCompositionEnd"&&Wl&&(q=kd()):(Gn=y,pr="value"in Gn?Gn.value:Gn.textContent,Wl=!0)),A=ju(r,z),0<A.length&&(z=new lf(z,t,null,n,y),g.push({event:z,listeners:A}),q?z.data=q:(q=Xd(n),q!==null&&(z.data=q)))),(q=Ty?My(t,n):Cy(t,n))&&(z=ju(r,"onBeforeInput"),0<z.length&&(A=new lf("onBeforeInput","beforeinput",null,n,y),g.push({event:A,listeners:z}),A.data=q)),gg(g,t,r,n,y)}V0(g,e)})}function pi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ju(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=ci(t,n),a!=null&&l.unshift(pi(t,a,i)),a=ci(t,e),a!=null&&l.push(pi(t,a,i))),t.tag===3)return l;t=t.return}return[]}function vg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ff(t,e,n,l,a){for(var i=e._reactName,u=[];n!==null&&n!==l;){var o=n,c=o.alternate,r=o.stateNode;if(o=o.tag,c!==null&&c===l)break;o!==5&&o!==26&&o!==27||r===null||(c=r,a?(r=ci(n,i),r!=null&&u.unshift(pi(n,r,c))):a||(r=ci(n,i),r!=null&&u.push(pi(n,r,c)))),n=n.return}u.length!==0&&t.push({event:e,listeners:u})}var bg=/\r\n?/g,Sg=/\u0000|\uFFFD/g;function If(t){return(typeof t=="string"?t:""+t).replace(bg,`
|
|
9
|
+
`).replace(Sg,"")}function Z0(t,e){return e=If(e),If(t)===e}function Et(t,e,n,l,a,i){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ma(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ma(t,""+l);break;case"className":Qi(t,"class",l);break;case"tabIndex":Qi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Qi(t,n,l);break;case"style":Yd(t,l,i);break;case"data":if(e!=="object"){Qi(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ou(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",a.name,a,null),Et(t,e,"formEncType",a.formEncType,a,null),Et(t,e,"formMethod",a.formMethod,a,null),Et(t,e,"formTarget",a.formTarget,a,null)):(Et(t,e,"encType",a.encType,a,null),Et(t,e,"method",a.method,a,null),Et(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ou(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Tn);break;case"onScroll":l!=null&<("scroll",t);break;case"onScrollEnd":l!=null&<("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(T(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(T(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=ou(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":lt("beforetoggle",t),lt("toggle",t),uu(t,"popover",l);break;case"xlinkActuate":yn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":yn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":yn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":yn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":yn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":yn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":yn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":yn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":yn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":uu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Wh.get(n)||n,uu(t,n,l))}}function Pc(t,e,n,l,a,i){switch(n){case"style":Yd(t,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(T(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(T(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ma(t,l):(typeof l=="number"||typeof l=="bigint")&&ma(t,""+l);break;case"onScroll":l!=null&<("scroll",t);break;case"onScrollEnd":l!=null&<("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hd.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),i=t[Ce]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):uu(t,n,l)}}}function de(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",t),lt("load",t);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(T(137,e));default:Et(t,e,i,u,n,null)}}a&&Et(t,e,"srcSet",n.srcSet,n,null),l&&Et(t,e,"src",n.src,n,null);return;case"input":lt("invalid",t);var o=i=u=a=null,c=null,r=null;for(l in n)if(n.hasOwnProperty(l)){var y=n[l];if(y!=null)switch(l){case"name":a=y;break;case"type":u=y;break;case"checked":c=y;break;case"defaultChecked":r=y;break;case"value":i=y;break;case"defaultValue":o=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(T(137,e));break;default:Et(t,e,l,y,n,null)}}Nd(t,i,o,c,r,u,a,!1);return;case"select":lt("invalid",t),l=u=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":u=o;break;case"multiple":l=o;default:Et(t,e,a,o,n,null)}e=i,n=u,t.multiple=!!l,e!=null?ia(t,!!l,e,!1):n!=null&&ia(t,!!l,n,!0);return;case"textarea":lt("invalid",t),i=a=l=null;for(u in n)if(n.hasOwnProperty(u)&&(o=n[u],o!=null))switch(u){case"value":l=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(T(91));break;default:Et(t,e,u,o,n,null)}qd(t,l,a,i);return;case"option":for(c in n)n.hasOwnProperty(c)&&(l=n[c],l!=null)&&(c==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Et(t,e,c,l,n,null));return;case"dialog":lt("beforetoggle",t),lt("toggle",t),lt("cancel",t),lt("close",t);break;case"iframe":case"object":lt("load",t);break;case"video":case"audio":for(l=0;l<gi.length;l++)lt(gi[l],t);break;case"image":lt("error",t),lt("load",t);break;case"details":lt("toggle",t);break;case"embed":case"source":case"link":lt("error",t),lt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(r in n)if(n.hasOwnProperty(r)&&(l=n[r],l!=null))switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(T(137,e));default:Et(t,e,r,l,n,null)}return;default:if(yr(e)){for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!==void 0&&Pc(t,e,y,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&Et(t,e,o,l,n,null))}function Eg(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,u=null,o=null,c=null,r=null,y=null;for(m in n){var g=n[m];if(n.hasOwnProperty(m)&&g!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":c=g;default:l.hasOwnProperty(m)||Et(t,e,m,null,l,g)}}for(var d in l){var m=l[d];if(g=n[d],l.hasOwnProperty(d)&&(m!=null||g!=null))switch(d){case"type":i=m;break;case"name":a=m;break;case"checked":r=m;break;case"defaultChecked":y=m;break;case"value":u=m;break;case"defaultValue":o=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(T(137,e));break;default:m!==g&&Et(t,e,d,m,l,g)}}Mc(t,u,o,c,r,y,i,a);return;case"select":m=u=o=d=null;for(i in n)if(c=n[i],n.hasOwnProperty(i)&&c!=null)switch(i){case"value":break;case"multiple":m=c;default:l.hasOwnProperty(i)||Et(t,e,i,null,l,c)}for(a in l)if(i=l[a],c=n[a],l.hasOwnProperty(a)&&(i!=null||c!=null))switch(a){case"value":d=i;break;case"defaultValue":o=i;break;case"multiple":u=i;default:i!==c&&Et(t,e,a,i,l,c)}e=o,n=u,l=m,d!=null?ia(t,!!n,d,!1):!!l!=!!n&&(e!=null?ia(t,!!n,e,!0):ia(t,!!n,n?[]:"",!1));return;case"textarea":m=d=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Et(t,e,o,null,l,a)}for(u in l)if(a=l[u],i=n[u],l.hasOwnProperty(u)&&(a!=null||i!=null))switch(u){case"value":d=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(T(91));break;default:a!==i&&Et(t,e,u,a,l,i)}Ud(t,d,m);return;case"option":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!l.hasOwnProperty(b)&&(b==="selected"?t.selected=!1:Et(t,e,b,null,l,d));for(c in l)d=l[c],m=n[c],l.hasOwnProperty(c)&&d!==m&&(d!=null||m!=null)&&(c==="selected"?t.selected=d&&typeof d!="function"&&typeof d!="symbol":Et(t,e,c,d,l,m));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 E in n)d=n[E],n.hasOwnProperty(E)&&d!=null&&!l.hasOwnProperty(E)&&Et(t,e,E,null,l,d);for(r in l)if(d=l[r],m=n[r],l.hasOwnProperty(r)&&d!==m&&(d!=null||m!=null))switch(r){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(T(137,e));break;default:Et(t,e,r,d,l,m)}return;default:if(yr(e)){for(var O in n)d=n[O],n.hasOwnProperty(O)&&d!==void 0&&!l.hasOwnProperty(O)&&Pc(t,e,O,void 0,l,d);for(y in l)d=l[y],m=n[y],!l.hasOwnProperty(y)||d===m||d===void 0&&m===void 0||Pc(t,e,y,d,l,m);return}}for(var f in n)d=n[f],n.hasOwnProperty(f)&&d!=null&&!l.hasOwnProperty(f)&&Et(t,e,f,null,l,d);for(g in l)d=l[g],m=n[g],!l.hasOwnProperty(g)||d===m||d==null&&m==null||Et(t,e,g,d,l,m)}function Pf(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,u=a.initiatorType,o=a.duration;if(i&&o&&Pf(u)){for(u=0,o=a.responseEnd,l+=1;l<n.length;l++){var c=n[l],r=c.startTime;if(r>o)break;var y=c.transferSize,g=c.initiatorType;y&&Pf(g)&&(c=c.responseEnd,u+=y*(c<o?1:(o-r)/(c-r)))}if(--l,e+=8*(i+u)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var tr=null,er=null;function Xu(t){return t.nodeType===9?t:t.ownerDocument}function td(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function nr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var dc=null;function Tg(){var t=window.event;return t&&t.type==="popstate"?t===dc?!1:(dc=t,!0):(dc=null,!1)}var X0=typeof setTimeout=="function"?setTimeout:void 0,Mg=typeof clearTimeout=="function"?clearTimeout:void 0,ed=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof ed<"u"?function(t){return ed.resolve(null).then(t).catch(wg)}:X0;function wg(t){setTimeout(function(){throw t})}function rl(t){return t==="head"}function nd(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),Ea(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ui(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ui(n);for(var i=n.firstChild;i;){var u=i.nextSibling,o=i.nodeName;i[Ci]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=u}}else n==="body"&&ui(t.ownerDocument.body);n=a}while(n);Ea(e)}function ld(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function lr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":lr(n),hr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function _g(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ci])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ke(t.nextSibling),t===null)break}return null}function Ag(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ke(t.nextSibling),t===null))return null;return t}function G0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ke(t.nextSibling),t===null))return null;return t}function ar(t){return t.data==="$?"||t.data==="$~"}function ir(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function zg(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ke(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ur=null;function ad(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ke(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function id(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Q0(t,e,n){switch(e=Xu(n),t){case"html":if(t=e.documentElement,!t)throw Error(T(452));return t;case"head":if(t=e.head,!t)throw Error(T(453));return t;case"body":if(t=e.body,!t)throw Error(T(454));return t;default:throw Error(T(451))}}function ui(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hr(t)}var Je=new Map,ud=new Set;function Gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Hn=yt.d;yt.d={f:Dg,r:Rg,D:Og,C:Hg,L:Lg,m:Bg,X:Ug,S:Ng,M:qg};function Dg(){var t=Hn.f(),e=co();return t||e}function Rg(t){var e=Ta(t);e!==null&&e.tag===5&&e.type==="form"?Y1(e):Hn.r(t)}var _a=typeof document>"u"?null:document;function K0(t,e,n){var l=_a;if(l&&typeof e=="string"&&e){var a=je(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),ud.has(a)||(ud.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),de(e,"link",t),ie(e),l.head.appendChild(e)))}}function Og(t){Hn.D(t),K0("dns-prefetch",t,null)}function Hg(t,e){Hn.C(t,e),K0("preconnect",t,e)}function Lg(t,e,n){Hn.L(t,e,n);var l=_a;if(l&&t&&e){var a='link[rel="preload"][as="'+je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+je(n.imageSizes)+'"]')):a+='[href="'+je(t)+'"]';var i=a;switch(e){case"style":i=Sa(t);break;case"script":i=Aa(t)}Je.has(i)||(t=Ht({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Je.set(i,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Ri(i))||e==="script"&&l.querySelector(Oi(i))||(e=l.createElement("link"),de(e,"link",t),ie(e),l.head.appendChild(e)))}}function Bg(t,e){Hn.m(t,e);var n=_a;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+je(l)+'"][href="'+je(t)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Aa(t)}if(!Je.has(i)&&(t=Ht({rel:"modulepreload",href:t},e),Je.set(i,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Oi(i)))return}l=n.createElement("link"),de(l,"link",t),ie(l),n.head.appendChild(l)}}}function Ng(t,e,n){Hn.S(t,e,n);var l=_a;if(l&&t){var a=aa(l).hoistableStyles,i=Sa(t);e=e||"default";var u=a.get(i);if(!u){var o={loading:0,preload:null};if(u=l.querySelector(Ri(i)))o.loading=5;else{t=Ht({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Je.get(i))&&Pr(t,n);var c=u=l.createElement("link");ie(c),de(c,"link",t),c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),c.addEventListener("load",function(){o.loading|=1}),c.addEventListener("error",function(){o.loading|=2}),o.loading|=4,pu(u,e,l)}u={type:"stylesheet",instance:u,count:1,state:o},a.set(i,u)}}}function Ug(t,e){Hn.X(t,e);var n=_a;if(n&&t){var l=aa(n).hoistableScripts,a=Aa(t),i=l.get(a);i||(i=n.querySelector(Oi(a)),i||(t=Ht({src:t,async:!0},e),(e=Je.get(a))&&ts(t,e),i=n.createElement("script"),ie(i),de(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function qg(t,e){Hn.M(t,e);var n=_a;if(n&&t){var l=aa(n).hoistableScripts,a=Aa(t),i=l.get(a);i||(i=n.querySelector(Oi(a)),i||(t=Ht({src:t,async:!0,type:"module"},e),(e=Je.get(a))&&ts(t,e),i=n.createElement("script"),ie(i),de(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function od(t,e,n,l){var a=(a=$n.current)?Gu(a):null;if(!a)throw Error(T(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Sa(n.href),n=aa(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Sa(n.href);var i=aa(a).hoistableStyles,u=i.get(t);if(u||(a=a.ownerDocument||a,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=a.querySelector(Ri(t)))&&!i._p&&(u.instance=i,u.state.loading=5),Je.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Je.set(t,n),i||Yg(a,t,n,u.state))),e&&l===null)throw Error(T(528,""));return u}if(e&&l!==null)throw Error(T(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Aa(n),n=aa(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(T(444,t))}}function Sa(t){return'href="'+je(t)+'"'}function Ri(t){return'link[rel="stylesheet"]['+t+"]"}function J0(t){return Ht({},t,{"data-precedence":t.precedence,precedence:null})}function Yg(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),de(e,"link",n),ie(e),t.head.appendChild(e))}function Aa(t){return'[src="'+je(t)+'"]'}function Oi(t){return"script[async]"+t}function cd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+je(n.href)+'"]');if(l)return e.instance=l,ie(l),l;var a=Ht({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ie(l),de(l,"style",a),pu(l,n.precedence,t),e.instance=l;case"stylesheet":a=Sa(n.href);var i=t.querySelector(Ri(a));if(i)return e.state.loading|=4,e.instance=i,ie(i),i;l=J0(n),(a=Je.get(a))&&Pr(l,a),i=(t.ownerDocument||t).createElement("link"),ie(i);var u=i;return u._p=new Promise(function(o,c){u.onload=o,u.onerror=c}),de(i,"link",l),e.state.loading|=4,pu(i,n.precedence,t),e.instance=i;case"script":return i=Aa(n.src),(a=t.querySelector(Oi(i)))?(e.instance=a,ie(a),a):(l=n,(a=Je.get(i))&&(l=Ht({},n),ts(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),ie(a),de(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(T(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,pu(l,n.precedence,t));return e.instance}function pu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,u=0;u<l.length;u++){var o=l[u];if(o.dataset.precedence===e)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Pr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function ts(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function rd(t,e,n){if(vu===null){var l=new Map,a=vu=new Map;a.set(n,l)}else a=vu,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var i=n[a];if(!(i[Ci]||i[re]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var o=l.get(u);o?o.push(i):l.set(u,[i])}}return l}function sd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Vg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function $0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function kg(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Sa(l.href),i=e.querySelector(Ri(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Qu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=i,ie(i);return}i=e.ownerDocument||e,l=J0(l),(a=Je.get(a))&&Pr(l,a),i=i.createElement("link"),ie(i);var u=i;u._p=new Promise(function(o,c){u.onload=o,u.onerror=c}),de(i,"link",l),n.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Qu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var mc=0;function Zg(t,e){return t.stylesheets&&t.count===0&&bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&mc===0&&(mc=62500*xg());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>mc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ku=null;function bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ku=new Map,e.forEach(jg,t),Ku=null,Qu.call(t))}function jg(t,e){if(!(e.state.loading&4)){var n=Ku.get(t);if(n)var l=n.get(null);else{n=new Map,Ku.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var u=a[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),l=u)}l&&n.set(null,l)}a=e.instance,u=a.getAttribute("data-precedence"),i=n.get(u)||l,i===l&&n.set(null,a),n.set(u,a),this.count++,l=Qu.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var vi={$$typeof:xn,Provider:null,Consumer:null,_currentValue:pl,_currentValue2:pl,_threadCount:0};function Xg(t,e,n,l,a,i,u,o,c){this.tag=1,this.containerInfo=t,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=Yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.hiddenUpdates=Yo(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function W0(t,e,n,l,a,i,u,o,c,r,y,g){return t=new Xg(t,e,n,u,c,r,y,g,o),e=1,i===!0&&(e|=24),i=De(3,null,null,e),t.current=i,i.stateNode=t,e=wr(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:e},zr(i),t}function F0(t){return t?(t=ta,t):ta}function I0(t,e,n,l,a,i){a=F0(a),l.context===null?l.context=a:l.pendingContext=a,l=Fn(e),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=In(t,l,e),n!==null&&(Me(n,t,e),Ia(n,t,e))}function fd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function es(t,e){fd(t,e),(t=t.alternate)&&fd(t,e)}function P0(t){if(t.tag===13||t.tag===31){var e=Dl(t,67108864);e!==null&&Me(e,t,67108864),es(t,67108864)}}function dd(t){if(t.tag===13||t.tag===31){var e=Be();e=dr(e);var n=Dl(t,e);n!==null&&Me(n,t,e),es(t,e)}}var Ju=!0;function Gg(t,e,n,l){var a=J.T;J.T=null;var i=yt.p;try{yt.p=2,ns(t,e,n,l)}finally{yt.p=i,J.T=a}}function Qg(t,e,n,l){var a=J.T;J.T=null;var i=yt.p;try{yt.p=8,ns(t,e,n,l)}finally{yt.p=i,J.T=a}}function ns(t,e,n,l){if(Ju){var a=or(l);if(a===null)fc(t,e,l,$u,n),md(t,l);else if(Jg(a,t,e,n,l))l.stopPropagation();else if(md(t,l),e&4&&-1<Kg.indexOf(t)){for(;a!==null;){var i=Ta(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=hl(i.pendingLanes);if(u!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var c=1<<31-Le(u);o.entanglements[1]|=c,u&=~c}fn(i),(ht&6)===0&&(qu=Oe()+500,Di(0,!1))}}break;case 31:case 13:o=Dl(i,2),o!==null&&Me(o,i,2),co(),es(i,2)}if(i=or(l),i===null&&fc(t,e,l,$u,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else fc(t,e,l,null,n)}}function or(t){return t=gr(t),ls(t)}var $u=null;function ls(t){if($u=null,t=Jl(t),t!==null){var e=Ei(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=bd(e),t!==null)return t;t=null}else if(n===31){if(t=Sd(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return $u=t,null}function tm(t){switch(t){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(Lh()){case Md:return 2;case Cd:return 8;case Mu:case Bh:return 32;case wd:return 268435456;default:return 32}default:return 32}}var cr=!1,el=null,nl=null,ll=null,bi=new Map,Si=new Map,jn=[],Kg="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 md(t,e){switch(t){case"focusin":case"focusout":el=null;break;case"dragenter":case"dragleave":nl=null;break;case"mouseover":case"mouseout":ll=null;break;case"pointerover":case"pointerout":bi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(e.pointerId)}}function ka(t,e,n,l,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Ta(e),e!==null&&P0(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Jg(t,e,n,l,a){switch(e){case"focusin":return el=ka(el,t,e,n,l,a),!0;case"dragenter":return nl=ka(nl,t,e,n,l,a),!0;case"mouseover":return ll=ka(ll,t,e,n,l,a),!0;case"pointerover":var i=a.pointerId;return bi.set(i,ka(bi.get(i)||null,t,e,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,Si.set(i,ka(Si.get(i)||null,t,e,n,l,a)),!0}return!1}function em(t){var e=Jl(t.target);if(e!==null){var n=Ei(e);if(n!==null){if(e=n.tag,e===13){if(e=bd(n),e!==null){t.blockedOn=e,$s(t.priority,function(){dd(n)});return}}else if(e===31){if(e=Sd(n),e!==null){t.blockedOn=e,$s(t.priority,function(){dd(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Su(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=or(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);wc=l,n.target.dispatchEvent(l),wc=null}else return e=Ta(n),e!==null&&P0(e),t.blockedOn=n,!1;e.shift()}return!0}function hd(t,e,n){Su(t)&&n.delete(e)}function $g(){cr=!1,el!==null&&Su(el)&&(el=null),nl!==null&&Su(nl)&&(nl=null),ll!==null&&Su(ll)&&(ll=null),bi.forEach(hd),Si.forEach(hd)}function au(t,e){t.blockedOn===e&&(t.blockedOn=null,cr||(cr=!0,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,$g)))}var iu=null;function yd(t){iu!==t&&(iu=t,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,function(){iu===t&&(iu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(ls(l||n)===null)continue;break}var i=Ta(n);i!==null&&(t.splice(e,3),e-=3,Zc(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Ea(t){function e(c){return au(c,t)}el!==null&&au(el,t),nl!==null&&au(nl,t),ll!==null&&au(ll,t),bi.forEach(e),Si.forEach(e);for(var n=0;n<jn.length;n++){var l=jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)em(n),n.blockedOn===null&&jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],u=a[Ce]||null;if(typeof i=="function")u||yd(n);else if(u){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,u=i[Ce]||null)o=u.formAction;else if(ls(a)!==null)continue}else o=u.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),yd(n)}}}function nm(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return a=u})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!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 l=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function as(t){this._internalRoot=t}fo.prototype.render=as.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(T(409));var n=e.current,l=Be();I0(n,l,t,e,null,null)};fo.prototype.unmount=as.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;I0(t.current,2,null,t,null,null),co(),e[xa]=null}};function fo(t){this._internalRoot=t}fo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Rd();t={blockedOn:null,target:t,priority:e};for(var n=0;n<jn.length&&e!==0&&e<jn[n].priority;n++);jn.splice(n,0,t),n===0&&em(t)}};var gd=pd.version;if(gd!=="19.2.4")throw Error(T(527,gd,"19.2.4"));yt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(T(188)):(t=Object.keys(t).join(","),Error(T(268,t)));return t=_h(e),t=t!==null?Ed(t):null,t=t===null?null:t.stateNode,t};var Wg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Za=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Za.isDisabled&&Za.supportsFiber))try{xi=Za.inject(Wg),He=Za}catch{}var Za;mo.createRoot=function(t,e){if(!vd(t))throw Error(T(299));var n=!1,l="",a=K1,i=J1,u=$1;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=W0(t,1,!1,null,null,n,l,null,a,i,u,nm),t[xa]=e.current,Ir(t),new as(e)};mo.hydrateRoot=function(t,e,n){if(!vd(t))throw Error(T(299));var l=!1,a="",i=K1,u=J1,o=$1,c=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),e=W0(t,1,!0,e,n??null,l,a,c,i,u,o,nm),e.context=F0(null),n=e.current,l=Be(),l=dr(l),a=Fn(l),a.callback=null,In(n,a,l),n=l,e.current.lanes=n,Mi(e,n),fn(e),t[xa]=e.current,Ir(t),new fo(e)};mo.version="19.2.4"});var um=ln((Qp,im)=>{"use strict";function am(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(am)}catch(t){console.error(t)}}am(),im.exports=lm()});var dm=ln(ho=>{"use strict";var up=Symbol.for("react.transitional.element"),op=Symbol.for("react.fragment");function fm(t,e,n){var l=null;if(n!==void 0&&(l=""+n),e.key!==void 0&&(l=""+e.key),"key"in e){n={};for(var a in e)a!=="key"&&(n[a]=e[a])}else n=e;return e=n.ref,{$$typeof:up,type:t,key:l,ref:e!==void 0?e:null,props:n}}ho.Fragment=op;ho.jsx=fm;ho.jsxs=fm});var Qt=ln((Wp,mm)=>{"use strict";mm.exports=dm()});var W=ot(be(),1),Im=ot(um(),1),Pm=ot(Ba(),1);var V=ot(be(),1),ss=ot(Ba(),1);function is(t,e,n){if(t.length===0&&e.length===0)return"No pending feedback.";let l=`# UI Feedback from iterate
|
|
10
|
+
|
|
11
|
+
`,a=new Set(t.map(u=>u.iteration??n).filter(Boolean)),i=a.size===1?[...a][0]:null;i&&(l+=`**Iteration**: ${i}
|
|
12
|
+
|
|
13
|
+
`),l+=`I've reviewed the UI and have the following feedback:
|
|
14
|
+
|
|
15
|
+
`;for(let u=0;u<t.length;u++){let o=t[u];if(l+=`## ${u+1}. "${o.comment}"
|
|
16
|
+
`,!i&&o.iteration&&(l+=`- **Iteration**: ${o.iteration}
|
|
17
|
+
`),o.url&&(l+=`- **Page**: ${o.url}
|
|
18
|
+
`),o.elements.length>0){l+=`- **Elements** (${o.elements.length}):
|
|
19
|
+
`;for(let c of o.elements){let r=c.componentName?`<${c.componentName}>`:c.elementName||c.selector,y=c.sourceLocation?` \u2014 \`${c.sourceLocation}\``:"";l+=` - **${r}**${y}
|
|
20
|
+
`,l+=` Selector: \`${c.selector}\`
|
|
21
|
+
`,l+=` Size: ${c.rect.width.toFixed(0)}\xD7${c.rect.height.toFixed(0)} at (${c.rect.x.toFixed(0)}, ${c.rect.y.toFixed(0)})
|
|
22
|
+
`,c.nearbyText&&(l+=` Text: "${c.nearbyText}"
|
|
23
|
+
`);let g=Object.entries(c.computedStyles).slice(0,6).map(([d,m])=>`${d}: ${m}`).join(", ");g&&(l+=` Styles: ${g}
|
|
24
|
+
`)}}if(o.textSelection){l+=`- **Selected text**: "${o.textSelection.text}"
|
|
25
|
+
`;let c=o.textSelection.containingElement,r=c.componentName?`<${c.componentName}>`:c.elementName||c.selector;l+=` In: ${r} (\`${c.selector}\`)
|
|
26
|
+
`}o.drawing&&(l+=`- **Drawing annotation** (marker tool)
|
|
27
|
+
`,l+=` Region: ${o.drawing.bounds.width.toFixed(0)}\xD7${o.drawing.bounds.height.toFixed(0)} at (${o.drawing.bounds.x.toFixed(0)}, ${o.drawing.bounds.y.toFixed(0)})
|
|
28
|
+
`),l+=`
|
|
29
|
+
`}if(e.length>0){l+=`## DOM Changes (${e.length})
|
|
30
|
+
|
|
31
|
+
`;for(let u of e){let o=u.componentName?`<${u.componentName}>`:u.selector,c=u.sourceLocation?` \u2014 \`${u.sourceLocation}\``:"",r=u.targetParentSelector&&u.targetParentSelector!==u.parentSelector,y=r?"reparent":u.type;if(l+=`- **${y}** on ${o}${c}
|
|
32
|
+
`,u.url&&(l+=` Page: ${u.url}
|
|
33
|
+
`),l+=` Selector: \`${u.selector}\`
|
|
34
|
+
`,u.type==="reorder"&&u.before.siblingIndex!==void 0)r?(l+=` From: \`${u.parentSelector}\` (index ${u.before.siblingIndex})
|
|
35
|
+
`,l+=` To: \`${u.targetParentSelector}\` (index ${u.after.siblingIndex})
|
|
36
|
+
`):(l+=` Reordered: index ${u.before.siblingIndex} \u2192 ${u.after.siblingIndex}`,u.parentSelector&&(l+=` in \`${u.parentSelector}\``),l+=`
|
|
37
|
+
`);else{let g=u.before.rect,d=u.after.rect;l+=` Before: ${g.width.toFixed(0)}\xD7${g.height.toFixed(0)} at (${g.x.toFixed(0)}, ${g.y.toFixed(0)})
|
|
38
|
+
`,l+=` After: ${d.width.toFixed(0)}\xD7${d.height.toFixed(0)} at (${d.x.toFixed(0)}, ${d.y.toFixed(0)})
|
|
39
|
+
`}}l+=`
|
|
40
|
+
`}return l+="Please process this feedback and make the requested changes.",l}var Ln=ot(be(),1);function Ol(t){if(t.id)return`#${CSS.escape(t.id)}`;let e=[],n=t;for(;n&&n!==document.documentElement;){let l=n.tagName.toLowerCase(),a=Array.from(n.classList).filter(i=>!i.startsWith("__")&&!i.includes("svelte-")&&!/^[a-z]{1,2}$/.test(i)&&!/[_][a-zA-Z0-9]{5,}/.test(i)).slice(0,2);if(a.length>0&&(l+=a.map(i=>`.${CSS.escape(i)}`).join("")),n.parentElement&&n.parentElement.querySelectorAll(`:scope > ${l}`).length>1){let u=Array.from(n.parentElement.children).indexOf(n)+1;l+=`:nth-child(${u})`}if(e.unshift(l),document.querySelectorAll(e.join(" > ")).length===1)break;n=n.parentElement}return e.join(" > ")}function rm(t,e=4){let n=[],l=t,a=0;for(;l&&l!==document.documentElement&&a<e;){let i=l.tagName.toLowerCase(),u=Array.from(l.classList).filter(o=>!/[_][a-zA-Z0-9]{5,}/.test(o)).slice(0,1);n.unshift(u.length>0?`${i}.${u[0]}`:i),l=l.parentElement,a++}return n.join(" > ")}function us(t){let e=t.tagName.toLowerCase(),n=t.getAttribute("data-element");if(n)return n;if(e==="button"||t.getAttribute("role")==="button"){let a=t.getAttribute("aria-label");if(a)return`button [${a}]`;let i=t.textContent?.trim().slice(0,30);return i?`button "${i}"`:"button"}if(e==="a"){let a=t.textContent?.trim().slice(0,30);return a?`link "${a}"`:"link"}if(e==="input"){let a=t.type||"text",i=t.name,u=t.placeholder;return i?`input[${a}] "${i}"`:u?`input[${a}] "${u}"`:`input[${a}]`}if(e==="img"){let a=t.alt;return a?`image "${a.slice(0,30)}"`:"image"}if(/^h[1-6]$/.test(e)){let a=t.textContent?.trim().slice(0,30);return a?`${e} "${a}"`:e}if(t.id)return`#${t.id}`;let l=Array.from(t.classList).filter(a=>!/[_][a-zA-Z0-9]{5,}/.test(a)&&a.length>2).at(0);return l?`${e}.${l}`:e}function sm(t){let e=[],n=t.previousElementSibling;n?.textContent?.trim()&&e.push(`[prev] ${n.textContent.trim().slice(0,50)}`);let l=t.textContent?.trim();l&&e.push(l.slice(0,80));let a=t.nextElementSibling;return a?.textContent?.trim()&&e.push(`[next] ${a.textContent.trim().slice(0,50)}`),e.join(" | ")}function Fg(t){for(let e of Object.keys(t))if(e.startsWith("__reactFiber$")||e.startsWith("__reactInternalInstance$"))return t[e];return null}var Ig=new Set(["AppRouter","Router","HotReload","InnerLayoutRouter","OuterLayoutRouter","RenderFromTemplateContext","ScrollAndFocusHandler","InnerScrollAndFocusHandler","ClientPageRoot","SegmentViewNode","SegmentStateProvider","RootErrorBoundary","AppDevOverlayErrorBoundary","DevRootHTTPAccessFallbackBoundary","Root","ServerRoot","ErrorBoundary","ErrorBoundaryHandler","Suspense","RedirectBoundary","RedirectErrorBoundary","HTTPAccessFallbackBoundary","HTTPAccessFallbackErrorBoundary","LoadingBoundary"]);function Pg(t){if(!t||!t.type||typeof t.type=="string")return!1;let e=t.type.displayName||t.type.name;return!(!e||!/^[A-Z]/.test(e)||Ig.has(e)||/Context$|Provider$/.test(e))}function Hi(t){let e=Fg(t);if(e){let l=e,a=!0;for(;l;){if(Pg(l)){let i=l.type.displayName||l.type.name,u=l._debugSource,o=u?`${u.fileName}:${u.lineNumber}`:null;return{component:i,source:o,isComponentRoot:a}}l===e.return&&(a=!1),l=l.return}}let n=t;for(;n&&n!==document.documentElement;){let l=n.getAttribute("data-iterate-component"),a=n.getAttribute("data-iterate-source");if(l)return{component:l,source:a,isComponentRoot:!1};n=n.parentElement}return{component:null,source:null,isComponentRoot:!1}}var tp=new Set(["p","span","h1","h2","h3","h4","h5","h6","label","a","li"]),ep=new Set(["div","section","main","article","aside","nav","header","footer"]),np=new Set(["button","input","select","textarea"]),om=["color","font-size","font-weight","font-family","line-height","text-align","text-decoration","letter-spacing"],cm=["display","flex-direction","justify-content","align-items","gap","grid-template-columns","grid-template-rows","padding","margin","background-color","border-radius","overflow"],lp=["background-color","color","padding","border-radius","font-size","font-weight","border","cursor","outline"],ap=["position","top","left","right","bottom","z-index","width","height"],ip=new Set(["none","normal","auto","0px","transparent","rgba(0, 0, 0, 0)"]);function za(t){let e=window.getComputedStyle(t),n=t.tagName.toLowerCase(),l={},a=[...ap];tp.has(n)?a=a.concat(om):np.has(n)?a=a.concat(lp):ep.has(n)?a=a.concat(cm):a=a.concat(cm,om);for(let i of a){let u=e.getPropertyValue(i);u&&!ip.has(u)&&(l[i]=u)}return l}var sl=ot(Qt(),1);function hm({active:t,iframeRef:e,selectedElements:n,onSelect:l,suppressHover:a,justFinishedDragRef:i}){let[u,o]=(0,Ln.useState)(null),[c,r]=(0,Ln.useState)(""),[y,g]=(0,Ln.useState)(null),d=(0,Ln.useCallback)(()=>{try{return e.current?.contentDocument??document}catch{return document}},[e]);return(0,Ln.useEffect)(()=>{a&&(o(null),g(null))},[a]),(0,Ln.useEffect)(()=>{if(!t){o(null),g(null);return}let m=d(),b=f=>!!f.closest("#__iterate-overlay-root__")||!!f.closest("#__iterate-markers-layer__")||!!f.closest("#__iterate-fixed-markers-layer__"),E=f=>{if(a)return;let s=f.target;if(!s||s===m.documentElement||b(s)){o(null),g(null);return}let h=s.getBoundingClientRect();o({x:h.x,y:h.y,width:h.width,height:h.height}),g({x:f.clientX,y:f.clientY});let{component:p,isComponentRoot:C}=Hi(s);r(p&&C?`<${p}>`:us(s))},O=f=>{if(i?.current){i.current=!1;return}let s=f.target;if(!s||b(s))return;f.preventDefault(),f.stopPropagation();let h=Hl(s),p={x:f.clientX,y:f.clientY};if(f.ctrlKey||f.metaKey){let L=n.findIndex(A=>A.selector===h.selector);if(L>=0){let A=[...n];A.splice(L,1),l(A,p)}else l([...n,h],p)}else l([h],p)};return m.addEventListener("mousemove",E),m.addEventListener("click",O,{capture:!0}),()=>{m.removeEventListener("mousemove",E),m.removeEventListener("click",O,{capture:!0})}},[t,d,l,n,a]),t?(0,sl.jsx)("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:u&&(0,sl.jsxs)(sl.Fragment,{children:[(0,sl.jsx)("div",{style:{position:"absolute",left:u.x,top:u.y,width:u.width,height:u.height,border:"1.5px solid #6b9eff",backgroundColor:"rgba(107, 158, 255, 0.06)",borderRadius:4,pointerEvents:"none",boxSizing:"border-box",transition:"all 0.1s ease"}}),y&&(0,sl.jsx)("div",{style:{position:"absolute",left:y.x+12,top:y.y+16,background:"#6b9eff",color:"#fff",padding:"2px 8px",borderRadius:4,fontSize:11,fontFamily:"monospace",whiteSpace:"nowrap",pointerEvents:"none",maxWidth:400,overflow:"hidden",textOverflow:"ellipsis"},children:c})]})}):null}function Hl(t){let e=t.getBoundingClientRect(),{component:n,source:l,isComponentRoot:a}=Hi(t);return{domElement:t,selector:Ol(t),elementName:us(t),elementPath:rm(t),rect:{x:e.x,y:e.y,width:e.width,height:e.height},computedStyles:za(t),nearbyText:sm(t),componentName:a?n:null,sourceLocation:a?l:null}}var dn=ot(be(),1);var Li=ot(Qt(),1);function ym({active:t,iframeRef:e,onSelect:n,onDragStateChange:l,justFinishedDragRef:a}){let[i,u]=(0,dn.useState)(null),[o,c]=(0,dn.useState)(null),[r,y]=(0,dn.useState)([]),g=(0,dn.useRef)(0),d=(0,dn.useCallback)(()=>{try{return e.current?.contentDocument??document}catch{return document}},[e]);return(0,dn.useEffect)(()=>{if(!t){u(null),c(null);return}let m=d(),b=!1,E={x:0,y:0},O=h=>{if(h.button!==0||h.ctrlKey||h.metaKey)return;let p=h.target;p.closest("#__iterate-overlay-root__")||p.closest("#__iterate-markers-layer__")||(h.preventDefault(),b=!0,E={x:h.clientX,y:h.clientY},c(E),l?.(!0))},f=h=>{if(!b)return;let p=Math.min(E.x,h.clientX),C=Math.min(E.y,h.clientY),L=Math.abs(h.clientX-E.x),A=Math.abs(h.clientY-E.y);if(L>10||A>10){let q={x:p,y:C,width:L,height:A};u(q);let z=Date.now();if(z-g.current>80){g.current=z;let k=cp(m,q);y(k)}}},s=h=>{if(!b)return;b=!1,l?.(!1);let p={x:Math.min(E.x,h.clientX),y:Math.min(E.y,h.clientY),width:Math.abs(h.clientX-E.x),height:Math.abs(h.clientY-E.y)};if(u(null),c(null),y([]),p.width<20||p.height<20)return;let C=rp(m,p);C.length>0&&(a&&(a.current=!0),n(C))};return m.addEventListener("mousedown",O),m.addEventListener("mousemove",f),m.addEventListener("mouseup",s),()=>{m.removeEventListener("mousedown",O),m.removeEventListener("mousemove",f),m.removeEventListener("mouseup",s)}},[t,d,n,l]),!t||!i?null:(0,Li.jsxs)("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[(0,Li.jsx)("div",{style:{position:"absolute",left:i.x,top:i.y,width:i.width,height:i.height,border:"1.5px dashed #6b9eff",backgroundColor:"rgba(107, 158, 255, 0.06)",borderRadius:3,pointerEvents:"none"}}),r.map((m,b)=>(0,Li.jsx)("div",{style:{position:"absolute",left:m.x,top:m.y,width:m.width,height:m.height,border:"1.5px solid #6b9eff",borderRadius:4,pointerEvents:"none",boxSizing:"border-box"}},b))]})}function gm(t,e,n){return t.left>=e.x-n&&t.right<=e.x+e.width+n&&t.top>=e.y-n&&t.bottom<=e.y+e.height+n}var pm=new Set(["html","body","head","script","style","meta","link","noscript"]),vm=t=>!!t.closest("#__iterate-overlay-root__")||!!t.closest("#__iterate-markers-layer__"),bm=8;function cp(t,e){let n=new Set,l=t.querySelectorAll("*");for(let i of l){if(pm.has(i.tagName.toLowerCase())||vm(i))continue;let u=i.getBoundingClientRect();u.width===0||u.height===0||u.width>e.width*2&&u.height>e.height*2||gm(u,e,bm)&&n.add(i)}let a=[];for(let i of n){let u=i.parentElement,o=!1;for(;u;){if(n.has(u)){o=!0;break}u=u.parentElement}if(!o){let c=i.getBoundingClientRect();a.push({x:c.x,y:c.y,width:c.width,height:c.height})}}return a}function rp(t,e){let n=new Set,l=t.querySelectorAll("*");for(let i of l){if(pm.has(i.tagName.toLowerCase())||vm(i))continue;let u=i.getBoundingClientRect();u.width===0||u.height===0||u.width>e.width*2&&u.height>e.height*2||gm(u,e,bm)&&n.add(i)}let a=[];for(let i of n){let u=i.parentElement,o=!1;for(;u;){if(n.has(u)){o=!0;break}u=u.parentElement}o||a.push(Hl(i))}return a}var Ll=ot(be(),1);var yo=ot(Qt(),1);function Sm({active:t,iframeRef:e,onTextSelect:n}){let[l,a]=(0,Ll.useState)(null),[i,u]=(0,Ll.useState)(""),o=(0,Ll.useCallback)(()=>{try{return e.current?.contentDocument??document}catch{return document}},[e]);return(0,Ll.useEffect)(()=>{if(!t){a(null),u("");return}let c=o(),r=()=>{let m=c.getSelection();if(!m||m.isCollapsed||!m.rangeCount){a(null),u(""),n(null);return}let b=m.getRangeAt(0),E=m.toString().trim();if(!E||E.length<2){a(null),u("");return}let O=b.commonAncestorContainer,f=O.nodeType===Node.ELEMENT_NODE?O:O.parentElement;if(!f)return;let s=Hl(f),h=b.getBoundingClientRect();a({x:h.x+h.width/2,y:h.y-4}),u(E),n({text:E,containingElement:{selector:s.selector,elementName:s.elementName,elementPath:s.elementPath,rect:s.rect,computedStyles:s.computedStyles,nearbyText:s.nearbyText,componentName:s.componentName,sourceLocation:s.sourceLocation},startOffset:b.startOffset,endOffset:b.endOffset})},y,g=()=>{clearTimeout(y),y=setTimeout(r,150)};c.addEventListener("selectionchange",g);let d=()=>{setTimeout(r,50)};return c.addEventListener("mouseup",d),()=>{clearTimeout(y),c.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",d)}},[t,o,n]),!t||!l||!i?null:(0,yo.jsx)("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:(0,yo.jsxs)("div",{style:{position:"absolute",left:l.x,top:l.y,transform:"translate(-50%, -100%)",background:"#2563eb",color:"#fff",padding:"3px 8px",borderRadius:4,fontSize:10,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",whiteSpace:"nowrap",pointerEvents:"none",maxWidth:250,overflow:"hidden",textOverflow:"ellipsis"},children:['"',i.slice(0,50),i.length>50?"...":"",'"']})})}var tn=ot(be(),1);var Bl=ot(Qt(),1),Em="#2563eb",xm=3;function Mm({active:t,iframeRef:e,onDrawComplete:n}){let[l,a]=(0,tn.useState)(!1),[i,u]=(0,tn.useState)([]),[o,c]=(0,tn.useState)([]),r=(0,tn.useRef)([]),y=(0,tn.useCallback)(()=>{try{return e.current?.contentDocument??document}catch{return document}},[e]);if((0,tn.useEffect)(()=>{t||c([])},[t]),(0,tn.useEffect)(()=>{if(!t){a(!1),u([]),r.current=[];return}let d=y(),m=O=>{if(O.button!==0||O.target?.closest?.("#__iterate-markers-layer__, #__iterate-fixed-markers-layer__, [data-iterate-popup], [data-iterate-panel]"))return;O.preventDefault(),O.stopPropagation(),a(!0);let s={x:O.clientX,y:O.clientY};r.current=[s],u([s])},b=O=>{if(!l)return;let f={x:O.clientX,y:O.clientY};r.current.push(f),r.current.length%2===0&&u([...r.current])},E=O=>{if(!l)return;a(!1);let f=r.current;if(f.length<3){u([]),r.current=[];return}let s=Tm(f),h=sp(f),p={path:s,bounds:h,strokeColor:Em,strokeWidth:xm},C=fp(d,h);c(L=>[...L,p]),u([]),r.current=[],n(C,p)};return d.addEventListener("mousedown",m,{capture:!0}),d.addEventListener("mousemove",b),d.addEventListener("mouseup",E),()=>{d.removeEventListener("mousedown",m,{capture:!0}),d.removeEventListener("mousemove",b),d.removeEventListener("mouseup",E)}},[t,l,y,n]),!t)return null;let g=i.length>=2?Tm(i):null;return(0,Bl.jsxs)("div",{style:{position:"absolute",inset:0,pointerEvents:"none",cursor:"crosshair"},children:[(0,Bl.jsxs)("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none",overflow:"visible"},children:[o.map((d,m)=>(0,Bl.jsx)("path",{d:d.path,fill:"none",stroke:d.strokeColor,strokeWidth:d.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round",opacity:.6},`completed-${m}`)),g&&(0,Bl.jsx)("path",{d:g,fill:"none",stroke:Em,strokeWidth:xm,strokeLinecap:"round",strokeLinejoin:"round"})]}),!l&&(0,Bl.jsx)("div",{style:{position:"absolute",inset:0,pointerEvents:"auto",cursor:"crosshair"}})]})}function Tm(t){if(t.length===0)return"";let e=[`M ${t[0].x} ${t[0].y}`];for(let n=1;n<t.length-1;n++){let l=t[n],a=t[n+1],i=(l.x+a.x)/2,u=(l.y+a.y)/2;e.push(`Q ${l.x} ${l.y} ${i} ${u}`)}if(t.length>1){let n=t[t.length-1];e.push(`L ${n.x} ${n.y}`)}return e.join(" ")}function sp(t){let e=1/0,n=1/0,l=-1/0,a=-1/0;for(let i of t)i.x<e&&(e=i.x),i.y<n&&(n=i.y),i.x>l&&(l=i.x),i.y>a&&(a=i.y);return{x:e,y:n,width:l-e,height:a-n}}function fp(t,e){let n=[],l=new Set,a=10,i={x:e.x-a,y:e.y-a,width:e.width+a*2,height:e.height+a*2},u=t.querySelectorAll("*");for(let o of u){let c=o.tagName.toLowerCase();if(["html","body","head","script","style","meta","link","noscript"].includes(c)||o.closest("#__iterate-overlay-root__")||o.closest("#__iterate-markers-layer__"))continue;let r=o.getBoundingClientRect();if(!(r.width===0||r.height===0)&&!(r.width>i.width*3&&r.height>i.height*3)&&r.left<i.x+i.width&&r.right>i.x&&r.top<i.y+i.height&&r.bottom>i.y){let y=!1,g=o.parentElement;for(;g;){if(l.has(g)){y=!0;break}g=g.parentElement}if(!y){for(let d=n.length-1;d>=0;d--)o.contains(n[d].domElement)&&n.splice(d,1);l.add(o),n.push(Hl(o))}}}return n}var Yt=ot(be(),1);var r2=ot(be(),1),gt=ot(Qt(),1);function Cm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M10 4H11C11 3.44772 10.5523 3 10 3V4ZM10 10V11C10.5523 11 11 10.5523 11 10H10ZM4 10H3C3 10.5523 3.44772 11 4 11V10ZM4.54601 4.10899L5 5L4.54601 4.10899ZM4.10899 4.54601L5 5L4.10899 4.54601ZM14 4V3C13.4477 3 13 3.44772 13 4H14ZM20 10V11C20.5523 11 21 10.5523 21 10H20ZM14 10H13C13 10.5523 13.4477 11 14 11V10ZM19.454 4.10899L19 5L19.454 4.10899ZM19.891 4.54601L19 5L19.891 4.54601ZM4 14V13C3.44772 13 3 13.4477 3 14H4ZM10 14H11C11 13.4477 10.5523 13 10 13V14ZM10 20V21C10.5523 21 11 20.5523 11 20H10ZM4.54601 19.891L5 19L4.54601 19.891ZM4.10899 19.454L5 19L4.10899 19.454ZM20.2929 21.7076C20.6834 22.0981 21.3166 22.0981 21.7071 21.7076C22.0976 21.317 22.0976 20.6839 21.7071 20.2934L21 21.0005L20.2929 21.7076ZM5.6 4V5H10V4V3H5.6V4ZM10 4H9V10H10H11V4H10ZM10 10V9H4V10V11H10V10ZM4 10H5V5.6H4H3V10H4ZM5.6 4V3C5.33647 3 5.07869 2.99922 4.86177 3.01695C4.63318 3.03562 4.36344 3.07969 4.09202 3.21799L4.54601 4.10899L5 5C4.94249 5.0293 4.91972 5.01887 5.02463 5.0103C5.14122 5.00078 5.30347 5 5.6 5V4ZM4 5.6H5C5 5.30347 5.00078 5.14122 5.0103 5.02463C5.01887 4.91972 5.0293 4.94249 5 5L4.10899 4.54601L3.21799 4.09202C3.07969 4.36344 3.03562 4.63318 3.01695 4.86177C2.99922 5.07869 3 5.33647 3 5.6H4ZM4.54601 4.10899L4.09202 3.21799C3.71569 3.40973 3.40973 3.71569 3.21799 4.09202L4.10899 4.54601L5 5V5L4.54601 4.10899ZM14 4V5H18.4V4V3H14V4ZM20 5.6H19V10H20H21V5.6H20ZM20 10V9H14V10V11H20V10ZM14 10H15V4H14H13V10H14ZM18.4 4V5C18.6965 5 18.8588 5.00078 18.9754 5.0103C19.0803 5.01887 19.0575 5.0293 19 5L19.454 4.10899L19.908 3.21799C19.6366 3.07969 19.3668 3.03562 19.1382 3.01695C18.9213 2.99922 18.6635 3 18.4 3V4ZM20 5.6H21C21 5.33647 21.0008 5.07869 20.9831 4.86177C20.9644 4.63318 20.9203 4.36344 20.782 4.09202L19.891 4.54601L19 5C18.9707 4.94249 18.9811 4.91972 18.9897 5.02463C18.9992 5.14122 19 5.30347 19 5.6H20ZM19.454 4.10899L19 5V5L19.891 4.54601L20.782 4.09202C20.5903 3.7157 20.2843 3.40973 19.908 3.21799L19.454 4.10899ZM4 14V15H10V14V13H4V14ZM10 14H9V20H10H11V14H10ZM10 20V19H5.6V20V21H10V20ZM4 18.4H5V14H4H3V18.4H4ZM5.6 20V19C5.30347 19 5.14122 18.9992 5.02463 18.9897C4.91972 18.9811 4.94249 18.9707 5 19L4.54601 19.891L4.09202 20.782C4.36344 20.9203 4.63318 20.9644 4.86177 20.9831C5.07869 21.0008 5.33647 21 5.6 21V20ZM4 18.4H3C3 18.6635 2.99922 18.9213 3.01695 19.1382C3.03562 19.3668 3.07969 19.6366 3.21799 19.908L4.10899 19.454L5 19C5.0293 19.0575 5.01887 19.0803 5.0103 18.9754C5.00078 18.8588 5 18.6965 5 18.4H4ZM4.54601 19.891L5 19V19L4.10899 19.454L3.21799 19.908C3.40973 20.2843 3.7157 20.5903 4.09202 20.782L4.54601 19.891ZM19.1213 19.1218L18.4142 18.4147C17.6332 19.1957 16.3668 19.1957 15.5858 18.4147L14.8787 19.1218L14.1716 19.8289C15.7337 21.391 18.2663 21.391 19.8284 19.8289L19.1213 19.1218ZM14.8787 19.1218L15.5858 18.4147C14.8047 17.6336 14.8047 16.3673 15.5858 15.5862L14.8787 14.8791L14.1716 14.172C12.6095 15.7341 12.6095 18.2668 14.1716 19.8289L14.8787 19.1218ZM14.8787 14.8791L15.5858 15.5862C16.3668 14.8052 17.6332 14.8052 18.4142 15.5862L19.1213 14.8791L19.8284 14.172C18.2663 12.6099 15.7337 12.6099 14.1716 14.172L14.8787 14.8791ZM19.1213 14.8791L18.4142 15.5862C19.1953 16.3673 19.1953 17.6336 18.4142 18.4147L19.1213 19.1218L19.8284 19.8289C21.3905 18.2668 21.3905 15.7341 19.8284 14.172L19.1213 14.8791ZM19.1213 19.1218L18.4142 19.8289L20.2929 21.7076L21 21.0005L21.7071 20.2934L19.8284 18.4147L19.1213 19.1218Z",fill:e})})}function wm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M15 9L9 15M15 15L9 9M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function _m({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M11 3V4.5M16.6569 5.34326L15.5962 6.40392M6.40381 15.5962L5.34315 16.6569M4.5 11H3M6.40381 6.40381L5.34315 5.34315M14.3136 20.7675L10.4536 10.7769C10.3754 10.5745 10.5745 10.3754 10.7769 10.4536L20.7675 14.3136C20.9626 14.3889 20.9844 14.6562 20.8042 14.7623L17.0559 16.9671C17.0192 16.9887 16.9887 17.0192 16.9671 17.0559L14.7623 20.8042C14.6562 20.9844 14.3889 20.9626 14.3136 20.7675Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Am({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M8.99989 5.74989L11.4696 3.28022C11.7624 2.98732 12.2373 2.98732 12.5302 3.28022L14.9999 5.74989M5.74989 8.99989L3.28022 11.4696C2.98732 11.7624 2.98732 12.2373 3.28022 12.5302L5.74989 14.9999M18.2499 8.99989L20.7196 11.4696C21.0125 11.7624 21.0125 12.2373 20.7196 12.5302L18.2499 14.9999M14.9999 18.2499L12.5302 20.7196C12.2373 21.0125 11.7624 21.0125 11.4696 20.7196L8.99989 18.2499M11.9999 3.99989V11.9999M11.9999 11.9999V19.9999M11.9999 11.9999H3.99989M11.9999 11.9999H19.9999",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Da({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M5.93777 20.0665L6.93555 20L5.93777 20.0665ZM18.0622 20.0665L17.0644 20L18.0622 20.0665ZM3 5C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7V6V5ZM21 7C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5V6V7ZM11 11C11 10.4477 10.5523 10 10 10C9.44772 10 9 10.4477 9 11H10H11ZM9 16C9 16.5523 9.44772 17 10 17C10.5523 17 11 16.5523 11 16H10H9ZM15 11C15 10.4477 14.5523 10 14 10C13.4477 10 13 10.4477 13 11H14H15ZM13 16C13 16.5523 13.4477 17 14 17C14.5523 17 15 16.5523 15 16H14H13ZM14.9056 6.24926C15.0432 6.78411 15.5884 7.1061 16.1233 6.96844C16.6581 6.83078 16.9801 6.28559 16.8424 5.75074L15.874 6L14.9056 6.24926ZM5 6L4.00221 6.06652L4.93998 20.133L5.93777 20.0665L6.93555 20L5.99779 5.93348L5 6ZM6.93555 21V22H17.0644V21V20H6.93555V21ZM18.0622 20.0665L19.06 20.133L19.9978 6.06652L19 6L18.0022 5.93348L17.0644 20L18.0622 20.0665ZM19 6V5H5V6V7H19V6ZM3 6V7H5V6V5H3V6ZM19 6V7H21V6V5H19V6ZM17.0644 21V22C18.1174 22 18.99 21.1836 19.06 20.133L18.0622 20.0665L17.0644 20H17.0644V21ZM5.93777 20.0665L4.93998 20.133C5.01002 21.1836 5.88262 22 6.93555 22V21V20V20L5.93777 20.0665ZM10 11H9V16H10H11V11H10ZM14 11H13V16H14H15V11H14ZM12 3V4C13.3965 4 14.5725 4.95512 14.9056 6.24926L15.874 6L16.8424 5.75074C16.2874 3.59442 14.3312 2 12 2V3ZM8.12604 6L9.09447 6.24926C9.42756 4.95512 10.6035 4 12 4V3V2C9.66885 2 7.7126 3.59442 7.1576 5.75074L8.12604 6Z",fill:e})})}function zm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M4.4834 14.6667C5.58163 17.7738 8.54493 20 12.0282 20C16.4465 20 20.0282 16.4183 20.0282 12C20.0282 7.58172 16.4465 4 12.0282 4C9.14453 4 7.27034 5.30135 5.41072 7.5M4.99986 4V7.5C4.99986 7.77614 5.22372 8 5.49986 8H8.99986",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Dm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M6.5 8C7.88071 8 9 6.88071 9 5.5C9 4.11929 7.88071 3 6.5 3C5.11929 3 4 4.11929 4 5.5C4 6.88071 5.11929 8 6.5 8ZM6.5 8V11C6.5 11.5523 6.94772 12 7.5 12H11C11.5523 12 12 12.4477 12 13M17.5 8C18.8807 8 20 6.88071 20 5.5C20 4.11929 18.8807 3 17.5 3C16.1193 3 15 4.11929 15 5.5C15 6.88071 16.1193 8 17.5 8ZM17.5 8V11C17.5 11.5523 17.0523 12 16.5 12H13C12.4477 12 12 12.4477 12 13M12 16C10.6193 16 9.5 17.1193 9.5 18.5C9.5 19.8807 10.6193 21 12 21C13.3807 21 14.5 19.8807 14.5 18.5C14.5 17.1193 13.3807 16 12 16ZM12 16V13",stroke:e,strokeWidth:2})})}function Rm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M6.5 8C7.88071 8 9 6.88071 9 5.5C9 4.11929 7.88071 3 6.5 3C5.11929 3 4 4.11929 4 5.5C4 6.88071 5.11929 8 6.5 8ZM6.5 8V16M6.5 16C5.11929 16 4 17.1193 4 18.5C4 19.8807 5.11929 21 6.5 21C7.88071 21 9 19.8807 9 18.5C9 17.1193 7.88071 16 6.5 16ZM17.5 16C16.1193 16 15 17.1193 15 18.5C15 19.8807 16.1193 21 17.5 21C18.8807 21 20 19.8807 20 18.5C20 17.1193 18.8807 16 17.5 16ZM17.5 16V6.5C17.5 5.94772 17.0523 5.5 16.5 5.5H12M12 5.5L14.5 3M12 5.5L14.5 8",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Om({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M9 9V3.5C9 3.22386 9.22386 3 9.5 3H20.5C20.7761 3 21 3.22386 21 3.5V14.5C21 14.7761 20.7761 15 20.5 15H15M14.5 9H3.5C3.22386 9 3 9.22386 3 9.5V20.5C3 20.7761 3.22386 21 3.5 21H14.5C14.7761 21 15 20.7761 15 20.5V9.5C15 9.22386 14.7761 9 14.5 9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Hm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M11.2479 10L15.2496 14.0017M15.2513 10L11.2496 14.0017M3.41478 11.4188L7.7005 5.41876C7.88821 5.15597 8.19128 5 8.51423 5H19.9996C20.5519 5 20.9996 5.44772 20.9996 6V18C20.9996 18.5523 20.5519 19 19.9996 19H8.51423C8.19128 19 7.88821 18.844 7.7005 18.5812L3.41478 12.5812C3.16643 12.2335 3.16643 11.7665 3.41478 11.4188Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Lm({size:t=24,color:e="currentColor"}){return(0,gt.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,gt.jsx)("path",{d:"M12.0003 21C11.5003 21 8.93732 20.1294 6.71782 17.9099C3.00784 14.1999 2.05809 9.13461 4.5965 6.5962C6.68218 4.51052 10.4738 4.77972 13.8179 7.00001M17.1066 10C19.9927 13.3312 21.2146 16.7286 19.0003 18.5C17.3415 19.8271 15.2424 18.2924 14.0176 17.1094M11.0003 13H13.6027C13.8683 13 14.1231 12.8943 14.3107 12.7062L20.2949 6.70711C20.6846 6.31644 20.6842 5.68395 20.294 5.29377L18.7074 3.70711C18.3168 3.31659 17.6837 3.31659 17.2931 3.70711L11.2932 9.70712C11.1057 9.89465 11.0003 10.149 11.0003 10.4142V13Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function Bm({size:t=24,color:e="currentColor",animate:n=!1}){return(0,gt.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,gt.jsx)("path",{d:"M7 13L10 16L17 8",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n?{strokeDasharray:20,strokeDashoffset:20,style:{animation:"iterate-check-draw 0.35s ease-out 0.1s forwards"}}:{}}),n&&(0,gt.jsx)("style",{children:"@keyframes iterate-check-draw { to { stroke-dashoffset: 0; } }"})]})}function go({size:t=24,color:e="currentColor"}){return(0,gt.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{animation:"iterate-spin 0.8s linear infinite"},children:[(0,gt.jsx)("style",{children:"@keyframes iterate-spin { to { transform: rotate(360deg); } }"}),(0,gt.jsx)("circle",{cx:12,cy:12,r:9,stroke:e,strokeWidth:2,strokeLinecap:"round",strokeDasharray:"42 14"})]})}var en=ot(be(),1),Nm={panelBg:"#f7f7f7",cardBg:"#fff",toolbarBg:"#fff",drawerBg:"#efefef",hoverBg:"#f0f0f0",activeBg:"#e8e8e8",border:"#e0e0e0",textPrimary:"#333",textSecondary:"#666",textTertiary:"#999",textDisabled:"#888",iconDefault:"#666",iconHover:"#141414",suspenseOverlay:"rgba(255,255,255,0.75)",spinnerBg:"#e0e0e0",spinnerFg:"#666",tooltipBg:"#fff",tooltipText:"#333",tooltipKeyBg:"#f0f0f0",tooltipKeyText:"#888",buttonBg:"#333",buttonText:"#fff"},dp={panelBg:"#1e1e1e",cardBg:"#2a2a2a",toolbarBg:"#2a2a2a",drawerBg:"#252525",hoverBg:"#333",activeBg:"#3a3a3a",border:"#3a3a3a",textPrimary:"#e0e0e0",textSecondary:"#999",textTertiary:"#666",textDisabled:"#555",iconDefault:"#999",iconHover:"#e0e0e0",suspenseOverlay:"rgba(30,30,30,0.75)",spinnerBg:"#3a3a3a",spinnerFg:"#999",tooltipBg:"#2a2a2a",tooltipText:"#e0e0e0",tooltipKeyBg:"rgba(255,255,255,0.1)",tooltipKeyText:"#777",buttonBg:"#e0e0e0",buttonText:"#1e1e1e"};function mp(t){let e=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(!e)return null;let[n,l,a]=[Number(e[1])/255,Number(e[2])/255,Number(e[3])/255],i=u=>u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4);return .2126*i(n)+.7152*i(l)+.0722*i(a)}function os(t){let e=t??document,n=e.documentElement,l=n.getAttribute("data-theme")??n.getAttribute("data-color-mode")??"";if(l==="dark")return!0;if(l==="light")return!1;if(n.classList.contains("dark"))return!0;if(n.classList.contains("light"))return!1;let a=e.defaultView?.getComputedStyle(n).colorScheme??"";if(a==="dark")return!0;if(a==="light")return!1;let i=e.body;if(i){let u=e.defaultView?.getComputedStyle(i).colorScheme??"";if(u==="dark")return!0;if(u==="light")return!1}if(i){let u=e.defaultView?.getComputedStyle(i).backgroundColor??"",o=mp(u);if(o!==null&&o<.2)return!0;if(o!==null&&o>.8)return!1}return window.matchMedia("(prefers-color-scheme: dark)").matches}var Um=(0,en.createContext)(Nm);function ve(){return(0,en.useContext)(Um)}function cs({children:t,targetDocument:e}){let[n,l]=(0,en.useState)(()=>os(e));return(0,en.useEffect)(()=>{l(os(e))},[e]),(0,en.useEffect)(()=>{let a=e??document,i=()=>l(os(a)),u=window.matchMedia("(prefers-color-scheme: dark)");u.addEventListener("change",i);let o=new MutationObserver(i);return o.observe(a.documentElement,{attributes:!0,attributeFilter:["class","data-theme","data-color-mode","style"]}),a.body&&o.observe(a.body,{attributes:!0,attributeFilter:["class","style"]}),()=>{u.removeEventListener("change",i),o.disconnect()}},[e]),en.default.createElement(Um.Provider,{value:n?dp:Nm},t)}var St=ot(Qt(),1),Bi="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",hp="cubic-bezier(0.34, 1.56, 0.64, 1)";function yp(){let t=ve();return(0,St.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:(0,St.jsx)("path",{d:"M20 9L12.7071 16.2929C12.3166 16.6834 11.6834 16.6834 11.2929 16.2929L4 9",stroke:t.textTertiary,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function qm({selectedElements:t,textSelection:e,onAddToBatch:n,onClearSelection:l,clickPosition:a,isDrawing:i,initialComment:u,onDelete:o,iframeRef:c}){let r=ve(),[y,g]=(0,Yt.useState)(""),[d,m]=(0,Yt.useState)(new Set),b=(0,Yt.useRef)(null),E=(0,Yt.useRef)(null),[O,f]=(0,Yt.useState)(0),[s,h]=(0,Yt.useState)("hidden"),p=(0,Yt.useRef)(null),C=t.length>0||e!==null||i===!0,L=(0,Yt.useRef)(!1);(0,Yt.useEffect)(()=>{C&&!L.current&&(g(u??""),m(new Set)),L.current=C},[C,u]),(0,Yt.useEffect)(()=>{if(C){p.current&&(clearTimeout(p.current),p.current=null),h("entering");let w=0,j=requestAnimationFrame(()=>{w=requestAnimationFrame(()=>{h("visible")})});return()=>{cancelAnimationFrame(j),cancelAnimationFrame(w)}}else h(w=>w==="hidden"?"hidden":"exiting"),p.current=setTimeout(()=>{h("hidden"),p.current=null},200)},[C]),(0,Yt.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]),(0,Yt.useEffect)(()=>{C&&setTimeout(()=>b.current?.focus(),100)},[C]);let[A,q]=(0,Yt.useState)(!1),z=(0,Yt.useRef)(null);if((0,Yt.useEffect)(()=>{if(s!=="visible")return;let w=N=>{E.current?.contains(N.target)||(N.preventDefault(),N.stopPropagation(),q(!0),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{q(!1),z.current=null},400),b.current?.focus())};document.addEventListener("mousedown",w,{capture:!0});let j=null;try{j=c?.current?.contentDocument??null}catch{}return j?.addEventListener("mousedown",w,{capture:!0}),()=>{document.removeEventListener("mousedown",w,{capture:!0}),j?.removeEventListener("mousedown",w,{capture:!0})}},[s,c]),(0,Yt.useEffect)(()=>()=>{z.current&&clearTimeout(z.current)},[]),(0,Yt.useLayoutEffect)(()=>{if(s==="hidden"||!E.current)return;let w=new ResizeObserver(j=>{for(let N of j)f(N.borderBoxSize?.[0]?.blockSize??N.target.getBoundingClientRect().height)});return w.observe(E.current),()=>w.disconnect()},[s]),s==="hidden")return null;let k=s==="visible",wt=w=>{w.preventDefault(),y.trim()&&(n(y.trim()),g(""),m(new Set))},Vt=w=>{w.key==="Enter"&&(w.metaKey||w.ctrlKey)&&wt(w),w.key==="Escape"&&l()},_t=w=>{m(j=>{let N=new Set(j);return N.has(w)?N.delete(w):N.add(w),N})},ee=[];if(i)ee.push({name:"Path",styles:{},key:"drawing-path"});else if(t.forEach((w,j)=>{ee.push({name:w.componentName||w.elementName,styles:w.computedStyles||{},key:w.selector+j})}),e&&t.length===0){let w=e.containingElement;ee.push({name:w.componentName||w.elementName,styles:w.computedStyles||{},key:"text-selection"})}let zt=300,kt=16,ne=window.innerHeight*.8,Tt=O>0?Math.min(O,ne):ne,qt=a??{x:window.scrollX+window.innerWidth-kt-zt,y:window.scrollY+window.innerHeight/2},he=qt.x-window.scrollX,Bt=qt.x+kt;he+kt+zt+kt>window.innerWidth&&(Bt=qt.x-zt-kt),Bt=Math.max(window.scrollX+kt,Math.min(Bt,window.scrollX+window.innerWidth-zt-kt));let Z=qt.y-Tt/2;return Z=Math.max(window.scrollY+kt,Math.min(Z,window.scrollY+window.innerHeight-Tt-kt)),(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("style",{children:`
|
|
41
|
+
@keyframes iterate-panel-shake {
|
|
42
|
+
0% { transform: translateX(0); }
|
|
43
|
+
15% { transform: translateX(-6px); }
|
|
44
|
+
30% { transform: translateX(5px); }
|
|
45
|
+
45% { transform: translateX(-4px); }
|
|
46
|
+
60% { transform: translateX(2px); }
|
|
47
|
+
75% { transform: translateX(-1px); }
|
|
48
|
+
100% { transform: translateX(0); }
|
|
49
|
+
}
|
|
50
|
+
`}),(0,St.jsx)("div",{ref:E,style:{position:"absolute",left:Bt,top:Z,zIndex:10002,pointerEvents:k?"auto":"none",width:zt,maxHeight:"80vh",opacity:k?1:0,transform:k?"scale(1)":"scale(0.92)",transition:`opacity 0.2s ease, transform 0.25s ${hp}`,animation:A?"iterate-panel-shake 0.4s ease":void 0},children:(0,St.jsxs)("form",{onSubmit:wt,style:{borderRadius:12,overflow:"hidden",border:"none",boxShadow:"0 4px 16px rgba(0,0,0,0.12)",fontFamily:Bi,background:r.panelBg,padding:4},children:[(0,St.jsx)("div",{style:{background:r.panelBg,padding:"4px 8px",maxHeight:400,overflowY:"auto"},children:ee.map((w,j)=>{let N=d.has(j),Mt=Object.entries(w.styles),ft=Mt.length>0,B=i;return(0,St.jsxs)("div",{children:[(0,St.jsxs)("button",{type:"button",onClick:()=>!B&&ft&&_t(j),style:{display:"flex",alignItems:"center",width:"100%",padding:"4px 0",background:"transparent",border:"none",cursor:B||!ft?"default":"pointer",fontSize:12,fontWeight:500,color:r.textPrimary,fontFamily:Bi,textAlign:"left"},children:[w.name,!B&&ft&&(0,St.jsx)("span",{style:{display:"inline-flex",color:r.textTertiary,transition:"transform 0.15s ease",transform:N?"rotate(180deg)":"rotate(0deg)",flexShrink:0,marginLeft:6},children:(0,St.jsx)(yp,{})})]}),!B&&ft&&(0,St.jsx)("div",{style:{maxHeight:N?200:0,overflow:"hidden",transition:"max-height 0.2s ease"},children:(0,St.jsx)("div",{style:{padding:"6px 8px",marginTop:4,marginBottom:4,background:r.drawerBg,borderRadius:4,fontSize:10,fontFamily:"monospace",color:r.textSecondary,lineHeight:1.7,maxHeight:180,overflow:"auto"},children:Mt.map(([et,dt])=>(0,St.jsxs)("div",{children:[(0,St.jsxs)("span",{style:{color:r.textTertiary},children:[et,":"]})," ",dt]},et))})})]},w.key)})}),(0,St.jsxs)("div",{style:{position:"relative",background:r.cardBg,border:`1px solid ${r.border}`,borderRadius:10,padding:8,display:"flex",flexDirection:"column",gap:8},children:[(0,St.jsx)("textarea",{ref:b,value:y,onChange:w=>{g(w.target.value),w.target.style.height="auto",w.target.style.height=w.target.scrollHeight+"px"},onKeyDown:Vt,placeholder:"Change this...",rows:3,style:{width:"100%",background:r.cardBg,border:`1px solid ${r.border}`,borderRadius:6,color:r.textPrimary,padding:8,fontSize:13,fontFamily:Bi,resize:"none",outline:"none",boxSizing:"border-box",overflow:"hidden"}}),(0,St.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"space-between",alignItems:"center"},children:[o?(0,St.jsx)(gp,{onClick:o}):(0,St.jsx)("div",{}),(0,St.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,St.jsx)("button",{type:"button",onClick:l,style:{padding:"6px 14px",background:"transparent",border:`1px solid ${r.border}`,borderRadius:6,color:r.textSecondary,cursor:"pointer",fontSize:12,fontFamily:Bi},children:"Discard"}),(0,St.jsx)("button",{type:"submit",disabled:!y.trim(),style:{padding:"6px 14px",background:y.trim()?r.buttonBg:r.hoverBg,border:`1px solid ${y.trim()?r.buttonBg:r.border}`,borderRadius:6,color:y.trim()?r.buttonText:r.textTertiary,cursor:y.trim()?"pointer":"default",fontSize:12,fontWeight:600,fontFamily:Bi},children:o?"Update":"Add"})]})]})]})]})})]})}function gp({onClick:t}){let e=ve(),[n,l]=Yt.default.useState(!1);return(0,St.jsx)("button",{type:"button",onClick:t,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:8,border:"none",background:n?"rgba(229, 57, 53, 0.12)":"transparent",color:"#e53935",cursor:"pointer",padding:0,flexShrink:0,transition:"background 0.1s ease"},children:(0,St.jsx)(Da,{size:16})})}var rt=ot(be(),1);var Y=ot(Qt(),1);function Ym({active:t,iframeRef:e,onMove:n,pendingMoves:l,previewMode:a,onDeleteMove:i,moveDeltas:u={}}){let[o,c]=(0,rt.useState)(-1),[r,y]=(0,rt.useState)(!1),[g,d]=(0,rt.useState)(null),[m,b]=(0,rt.useState)(null),[E,O]=(0,rt.useState)(null),[f,s]=(0,rt.useState)(null),[h,p]=(0,rt.useState)(null),[C,L]=(0,rt.useState)(!1),[A,q]=(0,rt.useState)(null),z=(0,rt.useRef)(null),k=(0,rt.useRef)(null),wt=(0,rt.useRef)(null),Vt=(0,rt.useRef)({component:null,source:null,isComponentRoot:!1}),_t=(0,rt.useRef)(""),ee=(0,rt.useRef)({x:0,y:0}),zt=(0,rt.useRef)(null),kt=(0,rt.useRef)({x:0,y:0}),ne=(0,rt.useRef)(0),Tt=(0,rt.useCallback)(()=>{try{return e.current?.contentDocument??document}catch{return document}},[e]),qt=(0,rt.useCallback)((Z,w,j,N)=>{let Mt=window.getComputedStyle(Z),ft=Mt.display,B=ft.includes("flex")||ft.includes("grid");if(!B&&!(ft==="block"||ft==="flow-root"||ft==="list-item"))return null;let dt=B&&(ft.includes("grid")||Mt.flexDirection==="row"||Mt.flexDirection==="row-reverse"||Mt.flexDirection===""),mt=Array.from(Z.children).filter(nt=>nt!==w&&nt.getBoundingClientRect().width>0&&nt.getBoundingClientRect().height>0);if(mt.length===0)return{index:0,indicator:{x:0,y:0,width:0,height:0,isVertical:dt}};for(let nt=0;nt<=mt.length;nt++){let F=nt>0?mt[nt-1].getBoundingClientRect():null,it=nt<mt.length?mt[nt].getBoundingClientRect():null;if(dt){let le=F?it?(F.right+it.left)/2:F.right+4:it?it.left-4:0;if(nt===0&&j<(it?it.left+it.width/2:1/0)||nt===mt.length&&j>=(F?F.left+F.width/2:0)||F&&it&&j>=F.left+F.width/2&&j<it.left+it.width/2){let Ft=Z.getBoundingClientRect();return{index:nt,indicator:{x:le,y:Ft.top+4,width:2,height:Ft.height-8,isVertical:!0}}}}else{let le=F?it?(F.bottom+it.top)/2:F.bottom+4:it?it.top-4:0;if(nt===0&&N<(it?it.top+it.height/2:1/0)||nt===mt.length&&N>=(F?F.top+F.height/2:0)||F&&it&&N>=F.top+F.height/2&&N<it.top+it.height/2){let Ft=Z.getBoundingClientRect();return{index:nt,indicator:{x:Ft.left+4,y:le,width:Ft.width-8,height:2,isVertical:!1}}}}}return null},[]),he=(0,rt.useCallback)((Z,w,j,N)=>{let ft=Tt().elementsFromPoint(Z,w);for(let B of ft){if(B===j||j.contains(B))continue;let et=B.tagName?.toLowerCase();if(et==="body"||et==="html"||N&&B===N||B.closest?.("#__iterate-markers-layer__, #__iterate-fixed-markers-layer__, [data-iterate-popup], [data-iterate-panel]"))continue;let dt=window.getComputedStyle(B).display;if(dt.includes("flex")||dt.includes("grid")||dt==="block"||dt==="flow-root"||dt==="list-item"){let mt=B.getBoundingClientRect();if(Z>=mt.left&&Z<=mt.right&&w>=mt.top&&w<=mt.bottom)return B}}return null},[Tt]),Bt=(0,rt.useCallback)((Z,w)=>{let j=Z.parentElement;if(!j)return;let Mt=Array.from(j.children).filter(ft=>ft!==Z)[w]??null;j.insertBefore(Z,Mt),Z.style.opacity="",Z.style.transition=""},[]);return(0,rt.useEffect)(()=>{if(!t)return;let Z=Tt(),w=Z.createElement("style");return w.textContent="* { cursor: move !important; }",Z.head.appendChild(w),()=>{w.remove()}},[t,Tt]),(0,rt.useEffect)(()=>{if(!t){y(!1),d(null),p(null);return}let Z=Tt(),w=B=>{let et=B.target;if(!et)return;let dt=et.tagName.toLowerCase();if(["html","body","head","script","style"].includes(dt)||et.closest?.("#__iterate-markers-layer__, #__iterate-fixed-markers-layer__, [data-iterate-popup], [data-iterate-panel]"))return;B.preventDefault(),B.stopPropagation();let mt=et.getBoundingClientRect(),nt=et.parentElement,F=nt?window.getComputedStyle(nt).display:"",it=window.getComputedStyle(et).position,le=it==="absolute"||it==="fixed"||it==="sticky",Ft=F.includes("flex")||F.includes("grid"),x=!le&&(Ft||(F==="block"||F==="flow-root"||F==="list-item"));if(x&&nt){let G=Array.from(nt.children).indexOf(et);k.current=G,wt.current=G}else k.current=null,wt.current=null;Vt.current=Hi(et),_t.current=Ol(et),x?(ee.current={x:B.clientX-mt.x,y:B.clientY-mt.y},zt.current=et,z.current=nt,et.style.opacity="0.3"):(ee.current={x:0,y:0},zt.current=null,z.current=null),d(et),b({x:B.clientX,y:B.clientY}),O({x:B.clientX,y:B.clientY}),s({x:mt.x,y:mt.y,width:mt.width,height:mt.height}),L(x),y(!0)},j=B=>{if(!(!r||!m||!g)&&(kt.current={x:B.clientX,y:B.clientY},O({x:B.clientX,y:B.clientY}),C&&g.parentElement)){let et=z.current,dt=null;if(et){let F=et.getBoundingClientRect();(B.clientX<F.left||B.clientX>F.right||B.clientY<F.top||B.clientY>F.bottom)&&(dt=he(B.clientX,B.clientY,g,et))}let mt=dt??g.parentElement;if(dt){let F=dt.getBoundingClientRect();q({element:dt,rect:{x:F.x,y:F.y,width:F.width,height:F.height}})}else q(null);let nt=qt(mt,g,B.clientX,B.clientY);if(nt){let F=!dt&&nt.index===k.current;p(F?null:nt.indicator),wt.current=nt.index}else p(null)}},N=()=>{zt.current&&(zt.current.style.opacity="",zt.current=null),y(!1),d(null),b(null),O(null),s(null),p(null),q(null)},Mt=B=>{if(!r||!g||!f||!m){N();return}let et=B.clientX-m.x,dt=B.clientY-m.y;if(C){let Ft=z.current,S=null;if(Ft){let G=Ft.getBoundingClientRect();(B.clientX<G.left||B.clientX>G.right||B.clientY<G.top||B.clientY>G.bottom)&&(S=he(B.clientX,B.clientY,g,Ft))}let x=!!S;if(!x&&(wt.current===null||wt.current===k.current)){N();return}let H=z.current?Ol(z.current):void 0;if(x&&S){let Q=qt(S,g,B.clientX,B.clientY)?.index??S.children.length,I=Array.from(S.children)[Q]??null;S.insertBefore(g,I);let pt=g.getBoundingClientRect(),{component:v,source:_,isComponentRoot:M}=Vt.current,D={selector:_t.current,from:{x:pt.x,y:pt.y,width:pt.width,height:pt.height},to:{x:pt.x,y:pt.y,width:pt.width,height:pt.height},computedStyles:za(g),componentName:v,sourceLocation:_,isComponentRoot:M,reorderIndex:Q,originalSiblingIndex:k.current,parentSelector:H,targetParentSelector:Ol(S),scrollOffset:{x:0,y:0}};n(D)}else{let G=g.parentElement;if(G){let M=Array.from(G.children).filter(D=>D!==g)[wt.current]??null;G.insertBefore(g,M)}let Q=g.getBoundingClientRect(),{component:X,source:I,isComponentRoot:pt}=Vt.current,v={selector:_t.current,from:{x:Q.x,y:Q.y,width:Q.width,height:Q.height},to:{x:Q.x,y:Q.y,width:Q.width,height:Q.height},computedStyles:za(g),componentName:X,sourceLocation:I,isComponentRoot:pt,reorderIndex:wt.current,originalSiblingIndex:k.current,parentSelector:H,scrollOffset:{x:0,y:0}};n(v)}N();return}if(Math.abs(et)<3&&Math.abs(dt)<3){N();return}let mt={x:f.x+et,y:f.y+dt,width:f.width,height:f.height},{component:nt,source:F,isComponentRoot:it}=Vt.current,le={selector:Ol(g),from:f,to:mt,computedStyles:za(g),componentName:nt,sourceLocation:F,isComponentRoot:it,scrollOffset:{x:0,y:0}};n(le),N()},ft=B=>{B.key==="Escape"&&r&&N()};return Z.addEventListener("mousedown",w,{capture:!0}),Z.addEventListener("mousemove",j),Z.addEventListener("mouseup",Mt),Z.addEventListener("keydown",ft),()=>{Z.removeEventListener("mousedown",w,{capture:!0}),Z.removeEventListener("mousemove",j),Z.removeEventListener("mouseup",Mt),Z.removeEventListener("keydown",ft)}},[t,r,m,g,f,C,Tt,n,qt,he,Bt]),(0,rt.useEffect)(()=>{if(!r)return;let Z=60,w=15,j=()=>{let N=kt.current,Mt=null;try{let et=e.current?.contentDocument;Mt=et?.scrollingElement??et?.documentElement??null}catch{}Mt||(Mt=document.scrollingElement??document.documentElement);let ft=0,B=0;N.y<Z?B=-w*(1-N.y/Z):N.y>window.innerHeight-Z&&(B=w*(1-(window.innerHeight-N.y)/Z)),N.x<Z?ft=-w*(1-N.x/Z):N.x>window.innerWidth-Z&&(ft=w*(1-(window.innerWidth-N.x)/Z)),(ft||B)&&Mt.scrollBy(ft,B),ne.current=requestAnimationFrame(j)};return ne.current=requestAnimationFrame(j),()=>cancelAnimationFrame(ne.current)},[r,e]),(0,Y.jsxs)("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[r&&f&&E&&m&&(0,Y.jsxs)(Y.Fragment,{children:[!C&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{position:"absolute",left:f.x,top:f.y,width:f.width,height:f.height,border:"2px dashed #2563eb",borderRadius:4,pointerEvents:"none"}}),(Math.abs(E.x-m.x)>10||Math.abs(E.y-m.y)>10)&&(0,Y.jsxs)("svg",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",overflow:"visible"},children:[(0,Y.jsx)("defs",{children:(0,Y.jsx)("marker",{id:"drag-arrowhead",markerWidth:"8",markerHeight:"6",refX:"8",refY:"3",orient:"auto",children:(0,Y.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:"rgba(37, 99, 235, 0.7)"})})}),(0,Y.jsx)("line",{x1:f.x+f.width/2,y1:f.y+f.height/2,x2:E.x,y2:E.y,stroke:"rgba(37, 99, 235, 0.5)",strokeWidth:"2",strokeDasharray:"6 4",markerEnd:"url(#drag-arrowhead)"})]}),(0,Y.jsx)("div",{style:{position:"absolute",left:f.x+(E.x-m.x),top:f.y+(E.y-m.y),width:f.width,height:f.height,border:"2px dashed rgba(37, 99, 235, 0.4)",backgroundColor:"rgba(37, 99, 235, 0.06)",borderRadius:4,pointerEvents:"none"}})]}),C&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{position:"fixed",left:f.x-1,top:f.y-1,width:f.width+2,height:f.height+2,border:"2px dashed rgba(37, 99, 235, 0.35)",borderRadius:4,background:"rgba(37, 99, 235, 0.03)",pointerEvents:"none"}}),(0,Y.jsx)("div",{style:{position:"fixed",left:E.x-ee.current.x,top:E.y-ee.current.y,width:f.width,height:f.height,opacity:.7,borderRadius:4,border:"1.5px solid #2563eb",background:"rgba(37, 99, 235, 0.06)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",pointerEvents:"none",zIndex:99999}})]}),h&&(0,Y.jsx)("div",{style:{position:"absolute",left:h.x-(h.isVertical?1:0),top:h.y-(h.isVertical?0:1),width:h.isVertical?2:h.width,height:h.isVertical?h.height:2,background:"#2563eb",borderRadius:2,pointerEvents:"none",boxShadow:"0 0 6px rgba(37, 99, 235, 0.4)"}}),A&&(0,Y.jsx)("div",{style:{position:"fixed",left:A.rect.x-2,top:A.rect.y-2,width:A.rect.width+4,height:A.rect.height+4,border:"2px dashed #2563eb",borderRadius:6,background:"rgba(37, 99, 235, 0.04)",pointerEvents:"none",transition:"all 0.15s ease"}})]}),l.map((Z,w)=>{let j=Z.reorderIndex!==void 0;return(0,Y.jsx)(vp,{move:Z,idx:w,isReorder:j,editing:o===w,onToggleEdit:()=>c(o===w?-1:w),onDelete:()=>{i?.(w),c(-1)},onClose:()=>c(-1),iframeRef:e},`move-${w}`)})]})}var rs="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",pp="cubic-bezier(0.34, 1.56, 0.64, 1)";function vp({move:t,idx:e,isReorder:n,editing:l,onToggleEdit:a,onDelete:i,onClose:u,iframeRef:o}){let[c,r]=(0,rt.useState)(null);return(0,rt.useEffect)(()=>{let y=(()=>{try{return o.current?.contentDocument??document}catch{return document}})(),g=(()=>{try{return o.current?.contentWindow??window}catch{return window}})(),d=()=>{let m=null;if(n&&t.parentSelector&&t.reorderIndex!==void 0){let b=t.targetParentSelector??t.parentSelector,E=y.querySelector(b);E&&(m=E.children[t.reorderIndex]??null)}if(m||(m=y.querySelector(t.selector)),m){let b=m.getBoundingClientRect();r({x:b.x,y:b.y,width:b.width,height:b.height})}};return d(),g.addEventListener("scroll",d,{passive:!0}),g.addEventListener("resize",d,{passive:!0}),()=>{g.removeEventListener("scroll",d),g.removeEventListener("resize",d)}},[o,t.selector,t.parentSelector,t.targetParentSelector,t.reorderIndex,n]),c?(0,Y.jsxs)(Y.Fragment,{children:[!n&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{position:"fixed",left:c.x,top:c.y,width:c.width,height:c.height,border:"2px dashed rgba(37, 99, 235, 0.5)",borderRadius:4,pointerEvents:"none"}}),(0,Y.jsxs)("svg",{style:{position:"fixed",left:0,top:0,width:"100vw",height:"100vh",pointerEvents:"none",overflow:"visible"},children:[(0,Y.jsx)("defs",{children:(0,Y.jsx)("marker",{id:`arrowhead-${e}`,markerWidth:"8",markerHeight:"6",refX:"8",refY:"3",orient:"auto",children:(0,Y.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:"rgba(37, 99, 235, 0.6)"})})}),(0,Y.jsx)("line",{x1:c.x+c.width/2,y1:c.y+c.height/2,x2:t.to.x+t.to.width/2,y2:t.to.y+t.to.height/2,stroke:"rgba(37, 99, 235, 0.4)",strokeWidth:"1.5",strokeDasharray:"4 3",markerEnd:`url(#arrowhead-${e})`})]})]}),(0,Y.jsx)("div",{onClick:y=>{y.stopPropagation(),a()},style:{position:"fixed",left:c.x+c.width-8,top:c.y-8,width:18,height:18,borderRadius:"50% 50% 50% 2px",background:"#2563eb",color:"#fff",fontSize:10,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",cursor:"pointer",fontFamily:rs,boxShadow:l?"0 0 0 3px #2563eb44":"none",zIndex:10001},children:e+1}),l&&(0,Y.jsx)(bp,{x:c.x+c.width+12,y:c.y-8,move:t,onDelete:i,onClose:u})]}):null}function bp({x:t,y:e,move:n,onDelete:l,onClose:a}){let i=ve(),[u,o]=(0,rt.useState)(!1);(0,rt.useEffect)(()=>{let b=0,E=requestAnimationFrame(()=>{b=requestAnimationFrame(()=>o(!0))});return()=>{cancelAnimationFrame(E),cancelAnimationFrame(b)}},[]);let c=n.reorderIndex!==void 0,r=!!(n.targetParentSelector&&n.targetParentSelector!==n.parentSelector),y=240,g=16,d=t;d+y+g>window.innerWidth&&(d=t-y-30),d=Math.max(g,d);let m=Math.max(g,Math.min(e,window.innerHeight-200));return(0,Y.jsx)("div",{"data-iterate-popup":!0,style:{position:"fixed",left:d,top:m,zIndex:10002,pointerEvents:"auto",width:y,opacity:u?1:0,transform:u?"scale(1)":"scale(0.92)",transition:`opacity 0.2s ease, transform 0.25s ${pp}`},children:(0,Y.jsxs)("div",{style:{borderRadius:12,overflow:"hidden",boxShadow:"0 4px 16px rgba(0,0,0,0.12)",fontFamily:rs,background:i.panelBg,padding:4},children:[(0,Y.jsx)("div",{style:{padding:"4px 8px",fontSize:12,fontWeight:500,color:i.textPrimary},children:(()=>{if(n.isComponentRoot&&n.componentName)return`<${n.componentName}>`;let E=(n.selector.split(" ").pop()||"").replace(/[:.#\[].*$/,"").toLowerCase();return E?`<${E}>`:n.componentName||"Element"})()}),(0,Y.jsxs)("div",{style:{background:i.cardBg,border:`1px solid ${i.border}`,borderRadius:10,padding:8,display:"flex",flexDirection:"column",gap:8},children:[(0,Y.jsx)("div",{style:{fontSize:10,fontFamily:"monospace",color:i.textSecondary,lineHeight:1.7,background:i.drawerBg,borderRadius:6,padding:"6px 8px"},children:c?r?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{style:{color:i.textTertiary},children:"from:"})," ",n.parentSelector?.split(" ").pop()??"parent"]}),(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{style:{color:i.textTertiary},children:"to:"})," ",n.targetParentSelector?.split(" ").pop()??"parent"]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{style:{color:i.textTertiary},children:"from:"})," index ",n.originalSiblingIndex??"?"]}),(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{style:{color:i.textTertiary},children:"to:"})," index ",n.reorderIndex]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{style:{color:i.textTertiary},children:"from:"})," ",Math.round(n.from.x),", ",Math.round(n.from.y)]}),(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{style:{color:i.textTertiary},children:"to:"})," ",Math.round(n.to.x),", ",Math.round(n.to.y)]})]})}),(0,Y.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Y.jsx)(Sp,{onClick:b=>{b.stopPropagation(),l()}}),(0,Y.jsx)("button",{type:"button",onClick:b=>{b.stopPropagation(),a()},style:{padding:"6px 14px",background:"transparent",border:`1px solid ${i.border}`,borderRadius:6,color:i.textSecondary,cursor:"pointer",fontSize:12,fontFamily:rs},children:"Cancel"})]})]})]})})}function Sp({onClick:t}){let[e,n]=rt.default.useState(!1),l=ve();return(0,Y.jsx)("button",{type:"button",onClick:t,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),style:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:8,border:"none",background:e?l.hoverBg:"transparent",color:"#dc2626",cursor:"pointer",padding:0,flexShrink:0,transition:"background 0.1s ease"},children:(0,Y.jsx)(Da,{size:16})})}var Nl=class{ws=null;handlers=new Set;iterationsHandlers=new Set;toolModeHandlers=new Set;url;reconnectTimer=null;_iterations={};constructor(e){this.url=e??`ws://${window.location.host}/ws`}connect(){this.ws=new WebSocket(this.url),this.ws.onmessage=e=>{try{let n=JSON.parse(e.data);this.trackIterations(n),this.trackToolMode(n);for(let l of this.handlers)l(n)}catch{}},this.ws.onclose=()=>{this.reconnectTimer=setTimeout(()=>this.connect(),2e3)},this.ws.onerror=()=>{this.ws?.close()}}disconnect(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.ws?.close(),this.ws=null}send(e){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(e))}onMessage(e){return this.handlers.add(e),()=>this.handlers.delete(e)}onIterationsChange(e){return this.iterationsHandlers.add(e),()=>this.iterationsHandlers.delete(e)}get iterations(){return this._iterations}get connected(){return this.ws?.readyState===WebSocket.OPEN}sendToolMode(e){this.send({type:"tool:set-mode",payload:{mode:e}})}onToolModeChange(e){return this.toolModeHandlers.add(e),()=>this.toolModeHandlers.delete(e)}trackToolMode(e){if(e.type==="tool:mode-changed")for(let n of this.toolModeHandlers)n(e.payload.mode)}trackIterations(e){let n=!1;switch(e.type){case"state:sync":this._iterations={...e.payload.iterations},n=!0;break;case"iteration:created":this._iterations={...this._iterations,[e.payload.name]:e.payload},n=!0;break;case"iteration:status":this._iterations[e.payload.name]&&(this._iterations={...this._iterations,[e.payload.name]:{...this._iterations[e.payload.name],status:e.payload.status}},n=!0);break;case"iteration:removed":if(this._iterations[e.payload.name]){let{[e.payload.name]:l,...a}=this._iterations;this._iterations=a,n=!0}break}if(n)for(let l of this.iterationsHandlers)l(this._iterations)}};function Vm(t){return`iterate:state:${t}`}function km(t,e,n){try{let l={changes:e,domChanges:n};localStorage.setItem(Vm(t),JSON.stringify(l))}catch{}}function Zm(t){try{let e=localStorage.getItem(Vm(t));return e?JSON.parse(e):null}catch{return null}}var st=ot(Qt(),1);function Ep(t){try{return t.current?.contentWindow?.location.href}catch{return t.current?.src||void 0}}function po(t){return Ep(t)??window.location.href}function xp(t,e){try{return new URL(t).pathname===new URL(e).pathname}catch{return t===e}}function Ni(){return{x:window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0,y:window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0}}function Tp(t){let e=t;for(;e&&e!==document.documentElement;){let n=window.getComputedStyle(e).position;if(n==="fixed"||n==="sticky")return!0;e=e.parentElement}return!1}function Xm(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.cssText=e,document.body.appendChild(n)),n}function Mp(){return Xm("__iterate-markers-layer__","position:absolute;top:0;left:0;width:0;height:0;overflow:visible;pointer-events:none;z-index:10001;")}function Cp(){return Xm("__iterate-fixed-markers-layer__","position:fixed;top:0;left:0;width:0;height:0;overflow:visible;pointer-events:none;z-index:9998;")}function fs({mode:t,iteration:e,wsUrl:n,iframeRef:l,onBatchCountChange:a,onMoveCountChange:i,onProcessingChange:u,previewMode:o=!0,visible:c=!0}){let r=(0,V.useRef)(null),[y,g]=(0,V.useState)([]),[d,m]=(0,V.useState)(null),[b,E]=(0,V.useState)(null),[O,f]=(0,V.useState)(null),[s,h]=(0,V.useState)({x:0,y:0}),[p,C]=(0,V.useState)([]),[L,A]=(0,V.useState)([]),q=(0,V.useRef)([]),z=(0,V.useRef)(new Set),[k,wt]=(0,V.useState)(!1),Vt=(0,V.useRef)(!1),_t=(0,V.useRef)(null),[ee]=(0,V.useState)(()=>typeof document<"u"?Mp():null),[zt]=(0,V.useState)(()=>typeof document<"u"?Cp():null),[kt,ne]=(0,V.useState)(()=>po(l));(0,V.useEffect)(()=>{let v=()=>ne(po(l));v();let _=history.pushState.bind(history),M=history.replaceState.bind(history);history.pushState=(...U)=>{_(...U),v()},history.replaceState=(...U)=>{M(...U),v()},window.addEventListener("popstate",v);let D=setInterval(v,500);return()=>{history.pushState=_,history.replaceState=M,window.removeEventListener("popstate",v),clearInterval(D)}},[l]);let[Tt,qt]=(0,V.useState)(null),[he,Bt]=(0,V.useState)(void 0),[Z,w]=(0,V.useState)(!1),j=c?t:"browse",N=y.length>0||d!==null||b!==null;(0,V.useEffect)(()=>{let v=new Nl(n);r.current=v,v.connect();let _=v.onMessage(M=>{switch(M.type){case"state:sync":{let D=M.payload.changes.filter(K=>K.iteration===e),U=M.payload.domChanges.filter(K=>K.iteration===e);if(D.length===0&&U.length===0){let K=Zm(e);if(K&&(K.changes.length>0||K.domChanges.length>0)){for(let nn of K.changes){let{id:oe,timestamp:mn,status:Bn,...vo}=nn;v.send({type:"change:create",payload:vo})}for(let nn of K.domChanges){let{id:oe,timestamp:mn,...Bn}=nn;v.send({type:"dom-change:create",payload:Bn})}break}}C(D),A(U);break}case"change:created":M.payload.iteration===e&&C(D=>[...D,M.payload]);break;case"change:updated":C(D=>D.map(U=>U.id===M.payload.id?M.payload:U));break;case"change:deleted":C(D=>D.filter(U=>U.id!==M.payload.id));break;case"dom:changed":M.payload.iteration===e&&(z.current.add(M.payload.id),A(D=>D.some(K=>K.id===M.payload.id)?D:[...M.payload.type==="reorder"?D.filter(K=>!(K.type==="reorder"&&K.selector===M.payload.selector)):D,M.payload]));break;case"dom:deleted":z.current.delete(M.payload.id),A(D=>D.filter(U=>U.id!==M.payload.id));break}});return()=>{_(),v.disconnect()}},[n,e]),(0,V.useEffect)(()=>{km(e,p,L)},[e,p,L]);let Mt=p.filter(v=>!(v.status==="implemented"||v.url&&kt&&!xp(v.url,kt))),ft=p.filter(v=>v.status==="queued"||v.status==="in-progress").length,B=L.length,et=p.some(v=>v.status==="in-progress");(0,V.useEffect)(()=>{a?.(ft)},[ft,a]),(0,V.useEffect)(()=>{i?.(B)},[B,i]),(0,V.useEffect)(()=>{u?.(et)},[et,u]);let dt=(0,V.useCallback)((v,_)=>{let M=Ni();g(v.map(D=>({...D,rect:{...D.rect,x:D.rect.x+M.x,y:D.rect.y+M.y}}))),_&&f({x:_.x+M.x,y:_.y+M.y})},[]),mt=(0,V.useCallback)(v=>{let _=Ni();if(g(v.map(M=>({...M,rect:{...M.rect,x:M.rect.x+_.x,y:M.rect.y+_.y}}))),v.length>0){let M=-1/0,D=0;for(let U of v){let K=U.rect;K.x+K.width>M&&(M=K.x+K.width),D+=K.y+K.height/2}f({x:M+_.x,y:D/v.length+_.y})}},[]),nt=(0,V.useCallback)(v=>{m(v)},[]),F=(0,V.useCallback)((v,_)=>{let M=Ni();g(v.map(U=>({...U,rect:{...U.rect,x:U.rect.x+M.x,y:U.rect.y+M.y}}))),E(_),h(M);let D=_.path.match(/^M\s+([\d.]+)\s+([\d.]+)/);f(D?{x:parseFloat(D[1])+M.x,y:parseFloat(D[2])+M.y}:{x:_.bounds.x+_.bounds.width+M.x,y:_.bounds.y+_.bounds.height/2+M.y})},[]),it=(0,V.useCallback)(v=>{g(_=>{let M=[..._];return M.splice(v,1),M})},[]),le=(0,V.useCallback)(v=>{if(y.length===0&&!d&&!b)return;let _=r.current;if(!_)return;let M=Tt!==null?Z:y.length>0&&Tp(y[0].domElement),D=Ni(),U;if(O)U=M?{x:O.x-D.x,y:O.y-D.y}:{x:O.x,y:O.y};else if(y.length>0){let K=y[0];U=M?{x:K.rect.x-D.x+K.rect.width/2,y:K.rect.y-D.y+K.rect.height/2}:{x:K.rect.x+K.rect.width/2,y:K.rect.y+K.rect.height/2}}else b&&(U={x:b.bounds.x+b.bounds.width/2+D.x,y:b.bounds.y+b.bounds.height/2+D.y});Tt!==null&&(_.send({type:"change:delete",payload:{id:Tt}}),qt(null),Bt(void 0)),_.send({type:"change:create",payload:{iteration:e,url:po(l),elements:y.map(K=>({selector:K.selector,elementName:K.elementName,elementPath:K.elementPath,rect:K.rect,computedStyles:K.computedStyles,nearbyText:K.nearbyText,componentName:K.componentName,sourceLocation:K.sourceLocation})),textSelection:d??void 0,drawing:b??void 0,comment:v,pagePosition:U,isFixedPosition:M||void 0,drawingScrollOffset:b?{x:D.x,y:D.y}:void 0}}),g([]),m(null),E(null)},[y,d,b,e,l,O,Tt,Z]),Ft=(0,V.useCallback)(v=>{r.current?.send({type:"change:delete",payload:{id:v}})},[]),S=(0,V.useCallback)(v=>{let _=p.find(M=>M.id===v);if(_){if(g(_.elements.map(M=>({...M,domElement:null}))),m(_.textSelection??null),E(_.drawing??null),_.pagePosition){let M=Ni();f(_.isFixedPosition?{x:_.pagePosition.x+M.x,y:_.pagePosition.y+M.y}:_.pagePosition)}else f(null);qt(v),w(!!_.isFixedPosition),Bt(_.comment)}},[p]),x=(0,V.useCallback)(()=>{Tt!==null&&Ft(Tt),qt(null),w(!1),Bt(void 0),g([]),m(null),E(null)},[Tt,Ft]),H=(0,V.useCallback)(()=>{g([]),m(null),E(null),qt(null),w(!1),Bt(void 0)},[]);(0,V.useEffect)(()=>{q.current=L},[L]);let G=(0,V.useCallback)(v=>{let _=r.current;if(!_)return;let M=v.reorderIndex!==void 0,D=v.originalSiblingIndex,U=v.parentSelector;if(M){let K=q.current.find(oe=>oe.type==="reorder"&&oe.selector===v.selector);if(K&&(D=K.before.siblingIndex,U=K.parentSelector,_.send({type:"dom-change:delete",payload:{id:K.id}})),(!v.targetParentSelector||v.targetParentSelector===U)&&v.reorderIndex===D)return}_.send({type:"dom-change:create",payload:{iteration:e,url:po(l),selector:v.selector,parentSelector:U,targetParentSelector:v.targetParentSelector,type:M?"reorder":"move",componentName:v.componentName,sourceLocation:v.sourceLocation,before:{rect:v.from,computedStyles:v.computedStyles,siblingIndex:D},after:{rect:v.to,computedStyles:v.computedStyles,siblingIndex:v.reorderIndex}}})},[e,l]),Q=(0,V.useCallback)(v=>{if(v.type!=="reorder"||v.after.siblingIndex===void 0)return;let _=(()=>{try{return l.current?.contentDocument??document}catch{return document}})();try{if(v.targetParentSelector&&v.targetParentSelector!==v.parentSelector){let oe=v.parentSelector?_.querySelector(v.parentSelector):null,mn=_.querySelector(v.targetParentSelector);if(!oe||!mn)return;let Bn=v.before.siblingIndex!==void 0?oe.children[v.before.siblingIndex]??null:null;if(!Bn)return;let bo=Array.from(mn.children)[v.after.siblingIndex]??null;mn.insertBefore(Bn,bo);return}let D=v.parentSelector?_.querySelector(v.parentSelector):null;if(!D)return;let U=v.before.siblingIndex!==void 0?D.children[v.before.siblingIndex]??null:null;if(!U)return;let nn=Array.from(D.children).filter(oe=>oe!==U)[v.after.siblingIndex]??null;D.insertBefore(U,nn)}catch{}},[l]);(0,V.useEffect)(()=>{if(L.length===0)return;let v=L.filter(_=>_.type==="reorder"&&!z.current.has(_.id)).sort((_,M)=>_.timestamp-M.timestamp);for(let _ of v)Q(_),z.current.add(_.id)},[L,Q]);let X=(0,V.useCallback)(v=>{if(v.type!=="reorder"||v.before.siblingIndex===void 0)return;let _=(()=>{try{return l.current?.contentDocument??document}catch{return document}})();try{if(v.targetParentSelector&&v.targetParentSelector!==v.parentSelector){let oe=_.querySelector(v.targetParentSelector),mn=v.parentSelector?_.querySelector(v.parentSelector):null;if(!oe||!mn)return;let Bn=v.after.siblingIndex!==void 0?oe.children[v.after.siblingIndex]??null:null;if(!Bn)return;let bo=Array.from(mn.children)[v.before.siblingIndex]??null;mn.insertBefore(Bn,bo);return}let D=null;if(v.parentSelector&&v.after.siblingIndex!==void 0){let oe=_.querySelector(v.parentSelector);oe&&(D=oe.children[v.after.siblingIndex]??null)}if(D||(D=_.querySelector(v.selector)),!D||!D.parentElement)return;let U=D.parentElement,nn=Array.from(U.children).filter(oe=>oe!==D)[v.before.siblingIndex]??null;U.insertBefore(D,nn)}catch{}},[l]),I=(0,V.useCallback)(v=>{let _=L.find(M=>M.id===v);_&&X(_),r.current?.send({type:"dom-change:delete",payload:{id:v}})},[L,X]),pt=L.map(v=>({iteration:v.iteration,url:v.url,selector:v.selector,from:v.before.rect,to:v.after.rect,computedStyles:v.before.computedStyles,componentName:v.componentName,sourceLocation:v.sourceLocation,reorderIndex:v.after.siblingIndex,originalSiblingIndex:v.before.siblingIndex,parentSelector:v.parentSelector,targetParentSelector:v.targetParentSelector}));return(0,V.useEffect)(()=>{let v=()=>{let _=r.current;if(_){for(let M of p)M.status==="queued"&&_.send({type:"change:delete",payload:{id:M.id}});for(let M=L.length-1;M>=0;M--)X(L[M]),_.send({type:"dom-change:delete",payload:{id:L[M].id}});g([]),m(null),E(null)}};return window.addEventListener("iterate:clear-batch",v),()=>window.removeEventListener("iterate:clear-batch",v)},[p,L,X]),(0,V.useEffect)(()=>{let v=()=>{let _=r.current;if(!_)return;let M=p.filter(nn=>nn.status==="queued").at(-1),D=L.at(-1);if(!M&&!D)return;let U=M?.timestamp??0,K=D?.timestamp??0;U>=K&&M?_.send({type:"change:delete",payload:{id:M.id}}):D&&(X(D),_.send({type:"dom-change:delete",payload:{id:D.id}}))};return window.addEventListener("iterate:undo",v),()=>window.removeEventListener("iterate:undo",v)},[p,L,X]),(0,V.useEffect)(()=>{let v=()=>{let _=p.filter(U=>U.status==="queued"||U.status==="in-progress");if(_.length===0&&L.length===0){window.dispatchEvent(new CustomEvent("iterate:batch-text-response",{detail:{text:""}}));return}let M=L.map(U=>({type:U.type,selector:U.selector,componentName:U.componentName,sourceLocation:U.sourceLocation,before:{rect:U.before.rect},after:{rect:U.after.rect},url:U.url})),D=is(_,M,e);window.dispatchEvent(new CustomEvent("iterate:batch-text-response",{detail:{text:D}}))};return window.addEventListener("iterate:request-batch-text",v),()=>window.removeEventListener("iterate:request-batch-text",v)},[p,L,e]),(0,V.useEffect)(()=>{let v=()=>{let _=p.filter(U=>U.status==="queued"||U.status==="in-progress");if(_.length===0&&L.length===0)return;let M=L.map(U=>({type:U.type,selector:U.selector,componentName:U.componentName,sourceLocation:U.sourceLocation,before:{rect:U.before.rect},after:{rect:U.after.rect},url:U.url})),D=is(_,M,e);navigator.clipboard.writeText(D)};return window.addEventListener("iterate:copy-batch",v),()=>window.removeEventListener("iterate:copy-batch",v)},[p,L,e]),(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)("div",{ref:_t,style:{position:"absolute",inset:0,pointerEvents:"none",zIndex:9999},children:[(0,st.jsx)(hm,{active:j==="select"&&!N,iframeRef:l,selectedElements:y,onSelect:dt,suppressHover:k,justFinishedDragRef:Vt}),(0,st.jsx)(ym,{active:j==="select"&&!N,iframeRef:l,onSelect:mt,onDragStateChange:wt,justFinishedDragRef:Vt}),(0,st.jsx)(Sm,{active:j==="select"&&!N,iframeRef:l,onTextSelect:nt}),(0,st.jsx)(Mm,{active:j==="draw"&&!N,iframeRef:l,onDrawComplete:F}),(0,st.jsx)(Ym,{active:j==="move",iframeRef:l,onMove:G,pendingMoves:pt,previewMode:o,onDeleteMove:v=>{let _=L[v];_&&I(_.id)}})]}),c&&ee&&(0,ss.createPortal)((0,st.jsxs)(st.Fragment,{children:[N&&b&&(0,st.jsx)("svg",{style:{position:"absolute",left:s.x,top:s.y,width:"100vw",height:"100vh",pointerEvents:"none",overflow:"visible"},children:(0,st.jsx)("path",{d:b.path,fill:"none",stroke:b.strokeColor,strokeWidth:b.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round",opacity:.7})}),!b&&y.map((v,_)=>{let M=v.rect.x,D=v.rect.y;return(0,st.jsxs)(V.default.Fragment,{children:[(0,st.jsx)("div",{style:{position:"absolute",left:M,top:D,width:v.rect.width,height:v.rect.height,border:"1.5px solid #6b9eff",backgroundColor:"rgba(107, 158, 255, 0.06)",borderRadius:4,pointerEvents:"none",boxSizing:"border-box"}}),!N&&(0,st.jsxs)("div",{style:{position:"absolute",left:M,top:D-26,background:"#6b9eff",color:"#fff",padding:"2px 8px",borderRadius:4,fontSize:10,fontFamily:"monospace",whiteSpace:"nowrap",pointerEvents:"none",display:"flex",gap:6,alignItems:"center",maxWidth:400,overflow:"hidden"},children:[(0,st.jsx)("span",{style:{fontWeight:700},children:v.elementName}),v.sourceLocation&&(0,st.jsx)("span",{style:{opacity:.7,fontSize:9},children:v.sourceLocation})]})]},v.selector+_)}),(0,st.jsx)(qm,{selectedElements:y,textSelection:d,onRemoveElement:it,onAddToBatch:le,onClearSelection:H,clickPosition:O,isDrawing:b!=null,initialComment:he,onDelete:Tt!==null?x:void 0}),N&&O&&Tt===null&&(0,st.jsx)(wp,{number:Mt.length+1,x:O.x,y:O.y,color:"#2563eb",elementRect:b?{...b.bounds,x:b.bounds.x+s.x,y:b.bounds.y+s.y}:y[0]?.rect},`preview-${Mt.length}-${O.x}-${O.y}`),Mt.map((v,_)=>{if(v.isFixedPosition)return null;let M=v.pagePosition;if(!M)return null;let D=v.drawingScrollOffset??{x:0,y:0},U=v.drawing?{x:v.drawing.bounds.x+D.x,y:v.drawing.bounds.y+D.y,width:v.drawing.bounds.width,height:v.drawing.bounds.height}:v.elements[0]?.rect;return(0,st.jsxs)(V.default.Fragment,{children:[v.drawing&&(0,st.jsx)("svg",{style:{position:"absolute",left:D.x,top:D.y,width:"100vw",height:"100vh",pointerEvents:"none",overflow:"visible"},children:(0,st.jsx)("path",{d:v.drawing.path,fill:"none",stroke:v.drawing.strokeColor,strokeWidth:v.drawing.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round",opacity:.5})}),(0,st.jsx)(jm,{number:_+1,x:M.x,y:M.y,color:v.status==="in-progress"?"#16a34a":"#2563eb",onEdit:()=>S(v.id),isEditing:Tt===v.id,elementRect:U})]},v.id)})]}),ee),c&&zt&&(0,ss.createPortal)((0,st.jsx)(st.Fragment,{children:Mt.map((v,_)=>{if(!v.isFixedPosition)return null;let M=v.pagePosition;if(!M)return null;let D=v.drawing?v.drawing.bounds:v.elements[0]?.rect;return(0,st.jsxs)(V.default.Fragment,{children:[v.drawing&&(0,st.jsx)("svg",{style:{position:"absolute",left:0,top:0,width:"100vw",height:"100vh",pointerEvents:"none",overflow:"visible"},children:(0,st.jsx)("path",{d:v.drawing.path,fill:"none",stroke:v.drawing.strokeColor,strokeWidth:v.drawing.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round",opacity:.5})}),(0,st.jsx)(jm,{number:_+1,x:M.x,y:M.y,color:v.status==="in-progress"?"#16a34a":"#2563eb",onEdit:()=>S(v.id),isEditing:Tt===v.id,elementRect:D})]},v.id)})}),zt)]})}var Gm="cubic-bezier(0.34, 1.56, 0.64, 1)";function Qm(t,e,n){if(!n)return"50% 50% 2px 50%";let l=n.x+n.width/2,a=n.y+n.height/2,i=t<=l,u=e<=a;return i&&u?"50% 50% 2px 50%":!i&&u?"50% 50% 50% 2px":!i&&!u?"2px 50% 50% 50%":"50% 2px 50% 50%"}function wp({number:t,x:e,y:n,color:l,elementRect:a}){let[i,u]=(0,V.useState)(!1);return(0,V.useEffect)(()=>{let o=0,c=requestAnimationFrame(()=>{o=requestAnimationFrame(()=>{u(!0)})});return()=>{cancelAnimationFrame(c),cancelAnimationFrame(o)}},[]),(0,st.jsx)("div",{style:{position:"absolute",left:e-9,top:n-9,width:18,height:18,borderRadius:Qm(e,n,a),background:l,color:"#fff",fontSize:10,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",transform:i?"scale(1)":"scale(0.75)",opacity:i?1:0,transition:`transform 0.35s ${Gm}, opacity 0.2s ease`},children:t})}function jm({number:t,x:e,y:n,color:l,onEdit:a,isEditing:i,elementRect:u}){let[o,c]=(0,V.useState)(!1);return(0,V.useEffect)(()=>{let r=0,y=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{c(!0)})});return()=>{cancelAnimationFrame(y),cancelAnimationFrame(r)}},[]),(0,st.jsx)("div",{onClick:r=>{r.stopPropagation(),a()},style:{position:"absolute",left:e-9,top:n-9,width:18,height:18,borderRadius:Qm(e,n,u),background:l,color:"#fff",fontSize:10,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",cursor:"pointer",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",transform:o?"scale(1)":"scale(0.75)",opacity:o?1:0,transition:`transform 0.35s ${Gm}, opacity 0.2s ease`,boxShadow:i?`0 0 0 3px ${l}44`:"none"},children:t})}var $=ot(be(),1),ms=ot(Ba(),1);var R=ot(Qt(),1),Lt="__original__",fl=16,te=24,We="cubic-bezier(0.34, 1.56, 0.64, 1)",hs=$.default.createContext(!1),_p="0.8s",Km={ready:"#22c55e",creating:"#eab308",installing:"#eab308",starting:"#eab308",error:"#ef4444",stopped:"#888"};function Wm({mode:t,onModeChange:e,visible:n,onVisibilityChange:l,batchCount:a=0,moveCount:i=0,onClearBatch:u,onCopyBatch:o,onUndoMove:c,iterations:r,activeIteration:y,onIterationChange:g,onFork:d,onPick:m,onDiscard:b,isViewingIteration:E=!1,tabBadgeCounts:O={},readyIframes:f,processing:s=!1}){let h=ve(),p=(0,$.useRef)(null),[C,L]=(0,$.useState)("bottom-right"),[A,q]=(0,$.useState)(!1),[z,k]=(0,$.useState)({x:0,y:0}),[wt,Vt]=(0,$.useState)(null),[_t,ee]=(0,$.useState)(!1),[zt,kt]=(0,$.useState)(!1),[ne,Tt]=(0,$.useState)(!1),[qt,he]=(0,$.useState)(!1),Bt=(0,$.useRef)(null),Z=r?Object.keys(r).sort((X,I)=>X.localeCompare(I,void 0,{numeric:!0})):[],w=Z.length>0,j=w?Z.map(X=>r[X]?.status):[],N=j.some(X=>X==="creating"||X==="installing"||X==="starting"),Mt=["creating","installing","starting"],ft=j.includes("starting")?2:j.includes("installing")?1:j.includes("ready")?2:0,B=(0,$.useRef)(-1);!N&&!_t?B.current=-1:ft>B.current&&(B.current=ft);let et=B.current>=0?Mt[B.current]:null,dt=a+i,mt=C==="top-left"||C==="bottom-left",nt=C==="top-left"||C==="top-right",F=!w&&!_t&&!N||_t||N||w&&E&&!zt&&!N||zt||w&&!E&&!ne&&!N||ne;(0,$.useEffect)(()=>()=>{Bt.current&&clearTimeout(Bt.current)},[]),(0,$.useEffect)(()=>{w&&ee(!1)},[w]),(0,$.useEffect)(()=>{w||(kt(!1),Tt(!1))},[w]);let it=(0,$.useRef)(!1);(N||_t)&&(it.current=!0);let le=f!=null&&w&&Z.every(X=>r[X]?.status!=="ready"||f.has(X));le&&it.current&&(it.current=!1);let Ft=it.current&&w&&!le&&!zt&&!ne,S=_t||N||zt||ne||Ft,x=zt?"Merging preferred changes\u2026":ne?"Removing iteration worktrees\u2026":Ft&&!N&&!_t?"Loading page\u2026":et==="installing"?"Installing dependencies\u2026":et==="starting"?"Starting dev server\u2026":"Creating iteration branches\u2026";(0,$.useEffect)(()=>{let X=I=>{if((I.metaKey||I.ctrlKey)&&I.key==="i"){I.preventDefault(),l(!n);return}if(!n)return;let pt=I.target?.tagName;if(!(pt==="INPUT"||pt==="TEXTAREA"||I.target?.isContentEditable)&&!(I.metaKey||I.ctrlKey||I.altKey))switch(I.key){case"Escape":I.preventDefault(),l(!1);break;case"s":I.preventDefault(),document.activeElement?.blur?.(),e(t==="select"?"browse":"select");break;case"d":I.preventDefault(),document.activeElement?.blur?.(),e(t==="draw"?"browse":"draw");break;case"m":I.preventDefault(),document.activeElement?.blur?.(),e(t==="move"?"browse":"move");break;case"u":I.preventDefault(),c?.();break;case"x":I.preventDefault(),u?.();break;case"c":I.preventDefault(),o?.(),he(!0),Bt.current&&clearTimeout(Bt.current),Bt.current=setTimeout(()=>he(!1),3e3);break}};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[n,l,t,e,c,u,o]);let H=(0,$.useCallback)(X=>{if(X.target.closest("button"))return;let I=p.current;if(!I)return;let pt=I.getBoundingClientRect();q(!0),k({x:X.clientX-pt.left,y:X.clientY-pt.top}),Vt({x:pt.left,y:pt.top}),X.preventDefault()},[]);(0,$.useEffect)(()=>{if(!A)return;let X=pt=>{Vt({x:pt.clientX-z.x,y:pt.clientY-z.y})},I=pt=>{q(!1);let v=pt.clientX,_=pt.clientY,M=window.innerWidth/2,D=window.innerHeight/2,U=v<M?_<D?"top-left":"bottom-left":_<D?"top-right":"bottom-right";L(U),Vt(null)};return window.addEventListener("mousemove",X),window.addEventListener("mouseup",I),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("mouseup",I)}},[A,z]);let G=wt?{left:wt.x,top:wt.y}:Np(C),Q=A?"none":"left 0.3s ease, top 0.3s ease, right 0.3s ease, bottom 0.3s ease";return(0,R.jsxs)(hs.Provider,{value:nt,children:[(0,R.jsx)(Ap,{active:S,message:x}),(0,R.jsxs)("div",{ref:p,"data-iterate-panel":"",onMouseDown:H,style:{position:"fixed",...G,zIndex:10001,pointerEvents:"auto",background:h.panelBg,border:"none",borderRadius:12,boxShadow:"0 4px 16px rgba(0,0,0,0.12)",display:"flex",flexDirection:nt?"column-reverse":"column",gap:0,cursor:A?"grabbing":"grab",userSelect:"none",overflow:"visible",padding:4,transition:Q},children:[dt>0&&(0,R.jsx)(Lp,{count:dt,isLeftSide:mt,processing:s}),w&&(0,R.jsx)("div",{style:{background:h.panelBg,maxHeight:n?56:0,maxWidth:n?999:0,opacity:n?1:0,overflow:"hidden",...nt?{marginBottom:n?2:0}:{marginTop:n?2:0},transition:n?"max-height 0.2s ease 0.2s, max-width 0.2s ease 0.2s, opacity 0.15s ease 0.2s, margin 0.2s ease 0.2s":"max-height 0.12s ease 0s, max-width 0.12s ease 0s, opacity 0.1s ease 0s, margin 0.12s ease 0s"},children:(0,R.jsx)("div",{style:{padding:"4px 4px 4px 4px"},children:(0,R.jsxs)("div",{ref:X=>{if(X&&!X.dataset.scrollbarHidden){let I=document.createElement("style");I.textContent="[data-iterate-tabs]::-webkit-scrollbar { display: none; }",X.appendChild(I),X.dataset.scrollbarHidden="1"}},"data-iterate-tabs":"",style:{display:"flex",alignItems:"center",gap:2,overflowX:"auto",scrollbarWidth:"none",paddingTop:6,paddingRight:6,marginTop:-6,marginRight:-6},children:[(0,R.jsxs)($m,{active:y===Lt,badgeCount:O[Lt]??0,title:"Root directory",onClick:()=>g?.(Lt),children:[(0,R.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:Km.ready,flexShrink:0}}),"Original"]}),Z.map(X=>{let I=r[X],pt=X===y,v=O[X]??0;return(0,R.jsxs)($m,{active:pt,badgeCount:v,title:`${X} worktree`,onClick:()=>g?.(X),children:[(0,R.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:Km[I?.status??"stopped"],flexShrink:0}}),X]},X)})]})})}),(0,R.jsxs)("div",{style:{position:"relative",display:"flex",flexDirection:mt?"row-reverse":"row",justifyContent:"flex-end",alignItems:"center",background:h.toolbarBg,border:`1px solid ${h.border}`,borderRadius:10,padding:4},children:[(0,R.jsxs)(Dp,{reversed:mt,visible:n,children:[(0,R.jsx)($e,{icon:(0,R.jsx)(_m,{size:te}),label:"Select (S)",active:t==="select",onClick:()=>e(t==="select"?"browse":"select")}),(0,R.jsx)($e,{icon:(0,R.jsx)(Lm,{size:te}),label:"Draw (D)",active:t==="draw",onClick:()=>e(t==="draw"?"browse":"draw")}),(0,R.jsx)($e,{icon:(0,R.jsx)(Am,{size:te}),label:"Move (M)",active:t==="move",onClick:()=>e(t==="move"?"browse":"move")}),(0,R.jsx)(ds,{}),(0,R.jsx)($e,{icon:(0,R.jsx)(zm,{size:te}),label:"Undo last change (U)",disabled:dt===0,onClick:()=>c?.()}),(0,R.jsx)($e,{icon:(0,R.jsx)(Da,{size:te}),label:"Clear all changes (X)",disabled:dt===0,onClick:()=>u?.()}),(0,R.jsx)($e,{icon:(0,R.jsxs)("div",{style:{position:"relative",width:te,height:te},children:[(0,R.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",opacity:qt?0:1,transform:qt?"scale(0.6)":"scale(1)",filter:qt?"blur(4px)":"blur(0px)",transition:`opacity 0.25s ${We}, transform 0.3s ${We}, filter 0.25s ease`},children:(0,R.jsx)(Om,{size:te})}),(0,R.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",opacity:qt?1:0,transform:qt?"scale(1)":"scale(0.6)",filter:qt?"blur(0px)":"blur(4px)",transition:`opacity 0.25s ${We}, transform 0.3s ${We}, filter 0.25s ease`},children:(0,R.jsx)(Bm,{size:te,color:"#22c55e",animate:!0})})]}),label:qt?"Copied!":"Copy changes to clipboard (C)",disabled:dt===0,onClick:()=>{o?.(),he(!0),Bt.current&&clearTimeout(Bt.current),Bt.current=setTimeout(()=>he(!1),3e3)}}),F&&(0,R.jsx)(ds,{}),!w&&!_t&&!N&&(0,R.jsx)($e,{icon:(0,R.jsx)(Dm,{size:te}),label:"Create iterations",onClick:()=>{ee(!0),d?.()}}),(_t||N)&&(0,R.jsx)($e,{icon:(0,R.jsx)(go,{size:te}),label:"Creating iterations",onClick:()=>{}}),w&&E&&!zt&&!N&&(0,R.jsx)($e,{icon:(0,R.jsx)(Rm,{size:te}),label:`Merge "${y}"`,onClick:async()=>{if(!(!y||y===Lt)){kt(!0);try{await m?.(y)}finally{kt(!1)}}}}),zt&&(0,R.jsx)($e,{icon:(0,R.jsx)(go,{size:te}),label:"Merging\\u2026",onClick:()=>{}}),w&&!E&&!ne&&!N&&(0,R.jsx)($e,{icon:(0,R.jsx)(Hm,{size:te}),label:"Discard all iterations",onClick:async()=>{Tt(!0);try{await b?.()}finally{Tt(!1)}}}),ne&&(0,R.jsx)($e,{icon:(0,R.jsx)(go,{size:te}),label:"Removing iteration worktrees\\u2026",onClick:()=>{}}),(0,R.jsx)(ds,{})]}),(0,R.jsx)(Rp,{visible:n,onVisibilityChange:l})]})]})]})}function Ap({active:t,message:e}){let n=ve();return(0,R.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:1e4,background:n.suspenseOverlay,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:20,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:t?1:0,pointerEvents:t?"auto":"none",transition:"opacity 0.3s ease"},children:[(0,R.jsx)("style",{children:`
|
|
51
|
+
@keyframes iterate-suspense-spin {
|
|
52
|
+
to { transform: rotate(360deg); }
|
|
53
|
+
}
|
|
54
|
+
@keyframes iterate-suspense-shimmer {
|
|
55
|
+
0% { background-position: 200% center; }
|
|
56
|
+
100% { background-position: -200% center; }
|
|
57
|
+
}
|
|
58
|
+
`}),(0,R.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",style:{animation:t?`iterate-suspense-spin ${_p} linear infinite`:"none"},children:[(0,R.jsx)("circle",{cx:"20",cy:"20",r:"17",fill:"none",stroke:n.spinnerBg,strokeWidth:"4"}),(0,R.jsx)("circle",{cx:"20",cy:"20",r:"17",fill:"none",stroke:n.spinnerFg,strokeWidth:"4",strokeLinecap:"round",strokeDasharray:`${Math.PI*34*.25} ${Math.PI*34*.75}`})]}),(0,R.jsx)("div",{style:{fontSize:14,fontWeight:500,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",backgroundImage:`linear-gradient(90deg, ${n.textTertiary} 0%, ${n.textPrimary} 50%, ${n.textTertiary} 100%)`,backgroundSize:"200% 100%",backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent",animation:t?"iterate-suspense-shimmer 1.6s linear infinite":"none"},children:e})]})}var Jm=15,zp=250;function Dp({visible:t,reversed:e,children:n}){let l=$.default.Children.toArray(n).filter(Boolean),a=l.length;return(0,R.jsx)("div",{style:{display:"flex",flexDirection:e?"row-reverse":"row",alignItems:"center",gap:2,overflow:"hidden",paddingTop:6,paddingBottom:2,marginTop:-6,marginBottom:-2,maxWidth:t?800:0,transition:t?`max-width ${zp}ms ease-out`:"max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:t?"auto":"none"},children:l.map((i,u)=>{let o=a-1-u,c=o*Jm,r=(a-1-o)*Jm*.5;return(0,R.jsx)("div",{style:{opacity:t?1:0,transform:t?"scale(1)":"scale(0.85)",transition:t?`opacity 0.15s ease ${c}ms, transform 0.2s ${We} ${c}ms`:`opacity 0.1s ease ${r}ms, transform 0.12s ease ${r}ms`,pointerEvents:t?"auto":"none"},children:i},u)})})}function ds(){let t=ve();return(0,R.jsx)("div",{style:{width:1,height:20,background:t.border,margin:"0 2px",flexShrink:0}})}function Rp({visible:t,onVisibilityChange:e}){let n=ve(),[l,a]=(0,$.useState)(!1),[i,u]=(0,$.useState)(!1);return(0,R.jsxs)("button",{onClick:o=>{o.stopPropagation(),e(!t)},onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),u(!1)},onMouseDown:()=>u(!0),onMouseUp:()=>u(!1),title:void 0,style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",padding:4,borderRadius:8,border:"none",background:"transparent",cursor:"pointer",width:te+8,height:te+8,flexShrink:0,transform:i?"scale(0.97)":"scale(1)",transition:"transform 0.1s ease"},children:[(0,R.jsx)("div",{style:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",opacity:t?0:1,transform:t?"scale(0.6)":"scale(1)",filter:t?"blur(4px)":"blur(0px)",transition:`opacity 0.25s ${We}, transform 0.3s ${We}, filter 0.25s ease, color 0.15s ease`,color:l?n.iconHover:n.iconDefault},children:(0,R.jsx)(Cm,{size:te})}),(0,R.jsx)("div",{style:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",opacity:t?1:0,transform:t?"scale(1)":"scale(0.6)",filter:t?"blur(0px)":"blur(4px)",transition:`opacity 0.25s ${We}, transform 0.3s ${We}, filter 0.25s ease, color 0.15s ease`,color:l?n.iconHover:n.textTertiary},children:(0,R.jsx)(wm,{size:te})})]})}function $m({active:t,badgeCount:e=0,title:n,onClick:l,children:a}){let i=ve(),[u,o]=(0,$.useState)(!1),[c,r]=(0,$.useState)(null),[y,g]=(0,$.useState)(!1),d=(0,$.useRef)(null),m=$.default.useContext(hs);return(0,R.jsxs)("button",{ref:d,onClick:b=>{b.stopPropagation(),l()},onMouseEnter:()=>{o(!0),d.current&&(r(d.current.getBoundingClientRect()),g(d.current.scrollWidth>d.current.clientWidth))},onMouseLeave:()=>o(!1),title:y?void 0:n,style:{position:"relative",display:"flex",alignItems:"center",gap:4,maxWidth:80,padding:"3px 8px",borderRadius:6,border:"1px solid transparent",background:t?i.activeBg:"transparent",color:t||u?i.iconHover:i.iconDefault,cursor:"pointer",fontSize:11,fontWeight:500,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",whiteSpace:"nowrap",overflow:"visible",textOverflow:"ellipsis",flexShrink:0,transition:"all 0.15s ease"},children:[a,e>0&&(0,R.jsx)(Hp,{count:e}),u&&y&&c&&(0,ms.createPortal)((0,R.jsx)(Fm,{label:n,anchorRect:c,below:m}),document.body)]})}function $e({icon:t,label:e,active:n,disabled:l,badge:a,onClick:i}){let u=ve(),[o,c]=(0,$.useState)(!1),[r,y]=(0,$.useState)(!1),[g,d]=(0,$.useState)(null),m=(0,$.useRef)(null),b=$.default.useContext(hs);return(0,R.jsxs)("button",{ref:m,onClick:E=>{E.stopPropagation(),l||i()},onMouseEnter:()=>{c(!0),m.current&&d(m.current.getBoundingClientRect())},onMouseLeave:()=>{c(!1),y(!1)},onMouseDown:()=>{l||y(!0)},onMouseUp:()=>y(!1),style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",padding:4,borderRadius:8,border:"none",outline:"none",background:n?u.activeBg:o?u.hoverBg:"transparent",color:n||o?u.iconHover:u.iconDefault,cursor:l?"not-allowed":"pointer",opacity:l?.35:1,transform:r?"scale(0.97)":"scale(1)",transition:"background 0.1s, color 0.1s, opacity 0.15s, transform 0.1s ease",flexShrink:0},children:[t,a!=null&&a>0&&(0,R.jsx)(Bp,{count:a}),o&&g&&(0,ms.createPortal)((0,R.jsx)(Fm,{label:e,anchorRect:g,below:b}),document.body)]})}function Op(t){let e=t.match(/^(.+?)\s+\(([A-Za-z])\)$/);return e?{text:e[1],hotkey:e[2]}:{text:t,hotkey:null}}function Fm({label:t,anchorRect:e,below:n}){let l=ve(),a=e.left+e.width/2,i=n?e.bottom+8:e.top-8,{text:u,hotkey:o}=Op(t);return(0,R.jsxs)("div",{style:{position:"fixed",left:a,top:i,transform:n?"translateX(-50%)":"translateX(-50%) translateY(-100%)",background:l.tooltipBg,color:l.tooltipText,border:`1px solid ${l.border}`,borderRadius:6,padding:"4px 8px",fontSize:11,fontWeight:500,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.08)",zIndex:10003,display:"flex",alignItems:"center",gap:6},children:[(0,R.jsx)("div",{style:{position:"absolute",left:"50%",width:8,height:8,background:l.tooltipBg,...n?{top:-4,transform:"translateX(-50%) rotate(45deg)",boxShadow:`-1px -1px 0 0 ${l.border}`}:{bottom:-4,transform:"translateX(-50%) rotate(45deg)",boxShadow:`1px 1px 0 0 ${l.border}`}}}),u,o&&(0,R.jsx)("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:18,height:18,padding:"0 4px",borderRadius:4,background:l.tooltipKeyBg,color:l.tooltipKeyText,fontSize:10,fontWeight:600,lineHeight:1},children:o})]})}function Hp({count:t}){let e=t>=10,[n,l]=(0,$.useState)(!1),a=(0,$.useRef)(t);return(0,$.useEffect)(()=>{l(!1);let i=0,u=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{l(!0)})});return a.current=t,()=>{cancelAnimationFrame(u),cancelAnimationFrame(i)}},[t]),(0,R.jsx)("span",{style:{position:"absolute",top:-5,right:-5,display:"flex",alignItems:"center",justifyContent:"center",...e?{minWidth:14,height:14,borderRadius:7,padding:"0 3px"}:{width:14,height:14,borderRadius:"50%"},background:"#2563eb",color:"#fff",fontSize:8,fontWeight:700,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",lineHeight:1,pointerEvents:"none",zIndex:1,boxShadow:"0 1px 3px rgba(0,0,0,0.12)",transform:n?"scale(1)":"scale(0)",transition:`transform 0.3s ${We}`},children:t})}function Lp({count:t,isLeftSide:e,processing:n=!1}){let l=t>=10,[a,i]=(0,$.useState)(!1),u=(0,$.useRef)(null),[o,c]=(0,$.useState)(18);(0,$.useEffect)(()=>{i(!1);let f=0,s=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{i(!0),u.current&&c(u.current.offsetWidth)})});return()=>{cancelAnimationFrame(s),cancelAnimationFrame(f)}},[t]);let r=2,y=1.5,g=18,d=9,m=o+2*(r+y),b=g+2*(r+y),E=d+r+y/2,O=r+y;return(0,R.jsxs)("span",{ref:u,style:{position:"absolute",top:-6,...e?{left:-6}:{right:-6},display:"flex",alignItems:"center",justifyContent:"center",...l?{minWidth:18,height:18,borderRadius:9,padding:"0 4px"}:{width:18,height:18,borderRadius:"50%"},background:n?"#16a34a":"#2563eb",color:"#fff",fontSize:10,fontWeight:700,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",lineHeight:1,pointerEvents:"none",zIndex:1,boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transform:a?"scale(1)":"scale(0)",transition:`transform 0.3s ${We}, background 0.3s ease`,overflow:"visible"},children:[t,n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("style",{children:`
|
|
59
|
+
@keyframes iterate-badge-spin {
|
|
60
|
+
to { stroke-dashoffset: -100; }
|
|
61
|
+
}
|
|
62
|
+
`}),(0,R.jsxs)("svg",{width:m,height:b,style:{position:"absolute",top:-O,left:-O},children:[(0,R.jsx)("rect",{x:y/2,y:y/2,width:m-y,height:b-y,rx:E,fill:"none",stroke:"rgba(34, 197, 94, 0.2)",strokeWidth:y}),(0,R.jsx)("rect",{x:y/2,y:y/2,width:m-y,height:b-y,rx:E,fill:"none",stroke:"#22c55e",strokeWidth:y,pathLength:100,strokeDasharray:"25 75",strokeLinecap:"round",style:{animation:"iterate-badge-spin 1s linear infinite"}})]})]})]})}function Bp({count:t}){let e=t>=10,[n,l]=(0,$.useState)(!1);return(0,$.useEffect)(()=>{l(!1);let a=0,i=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{l(!0)})});return()=>{cancelAnimationFrame(i),cancelAnimationFrame(a)}},[t]),(0,R.jsx)("span",{style:{position:"absolute",top:-4,left:-4,display:"flex",alignItems:"center",justifyContent:"center",...e?{minWidth:16,height:16,borderRadius:8,padding:"0 4px"}:{width:16,height:16,borderRadius:"50%"},background:"#2563eb",color:"#fff",fontSize:9,fontWeight:700,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",lineHeight:1,pointerEvents:"none",transform:n?"scale(1)":"scale(0)",transition:`transform 0.3s ${We}`},children:t})}function Np(t){switch(t){case"top-left":return{left:fl,top:fl};case"top-right":return{right:fl,top:fl};case"bottom-left":return{left:fl,bottom:fl};case"bottom-right":return{right:fl,bottom:fl}}}var _e=ot(Qt(),1);function ys(t){return typeof t=="object"&&t!==null&&t.__iterate===!0}function Up(){let t=(0,W.useRef)(null),e=(0,W.useRef)({}),n=(0,W.useRef)(null),l=(0,W.useRef)("browse"),a=(0,W.useRef)("browse"),i=(0,W.useRef)(Lt),u=(0,W.useRef)(!0),[o,c]=(0,W.useState)("browse"),[r,y]=(0,W.useState)(()=>{let S=sessionStorage.getItem("iterate:activeTab");if(S)return S;let x=window.__iterate_shell__?.activeIteration;return x&&x!=="default"&&x!==Lt?x:Lt}),g=S=>{y(x=>{let H=typeof S=="function"?S(x):S;return sessionStorage.setItem("iterate:activeTab",H),H})},[d,m]=(0,W.useState)(!0),[b,E]=(0,W.useState)({}),[O,f]=(0,W.useState)({}),[s,h]=(0,W.useState)(!0),[p,C]=(0,W.useState)({}),[L,A]=(0,W.useState)(new Set),q=typeof document<"u"&&!!document.getElementById("viewport"),z=typeof window<"u"&&window.self!==window.top,k=window.__iterate_shell__,wt=k?.daemonPort??4e3,Vt=!q&&k?.daemonPort?`ws://${window.location.hostname}:${k.daemonPort}/ws`:void 0;a.current=o,i.current=r,u.current=s;let _t=r!==Lt,ee=b[r]??{batch:0,move:0},zt=ee.batch,kt=ee.move,ne=Object.values(b).reduce((S,x)=>S+x.batch,0),Tt=Object.values(b).reduce((S,x)=>S+x.move,0),qt=Object.values(O).some(Boolean),he={};for(let[S,x]of Object.entries(b)){let H=x.batch+x.move;H>0&&(he[S]=H)}let Bt=!q&&!z?Object.entries(p).filter(([,S])=>S.status==="ready"&&S.port):[],Z=Bt.length>0;(0,W.useEffect)(()=>{if(!z)return;let S=new Nl(Vt);n.current=S;let x=S.onToolModeChange(H=>{(H==="select"||H==="move"||H==="draw"||H==="browse")&&c(H)});return S.connect(),()=>{x(),S.disconnect()}},[Vt,z]),(0,W.useEffect)(()=>{z&&window.parent.postMessage({__iterate:!0,type:"ready"},"*")},[z]),(0,W.useEffect)(()=>{if(!z)return;let S=x=>{if(!ys(x.data))return;let H=x.data;switch(H.type){case"set-mode":H.mode&&c(H.mode);break;case"set-iteration":H.iteration&&g(H.iteration);break;case"clear-batch":window.dispatchEvent(new CustomEvent("iterate:clear-batch"));break;case"copy-batch":window.dispatchEvent(new CustomEvent("iterate:copy-batch"));break;case"undo":window.dispatchEvent(new CustomEvent("iterate:undo"));break;case"set-preview":H.previewMode!==void 0&&h(H.previewMode);break;case"request-batch-text":window.dispatchEvent(new CustomEvent("iterate:request-batch-text"));break}};return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[z]),(0,W.useEffect)(()=>{if(!z)return;let S=x=>{let H=x.target?.tagName;H==="INPUT"||H==="TEXTAREA"||x.target?.isContentEditable||window.parent.postMessage({__iterate:!0,type:"keydown",key:x.key,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey,shiftKey:x.shiftKey},"*")};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[z]),(0,W.useEffect)(()=>{if(!z)return;let S=x=>{let H=x.detail.text;window.parent.postMessage({__iterate:!0,type:"batch-text",text:H},"*")};return window.addEventListener("iterate:batch-text-response",S),()=>window.removeEventListener("iterate:batch-text-response",S)},[z]);let w=O[r]??!1;(0,W.useEffect)(()=>{if(!z)return;let S={__iterate:!0,type:"batch-counts",batchCount:zt,moveCount:kt,processing:w};window.parent.postMessage(S,"*")},[z,zt,kt,w]);let j=(0,W.useCallback)((S,x)=>{let H=x??i.current;e.current[H]?.contentWindow?.postMessage(S,"*")},[]),N=(0,W.useCallback)(S=>{for(let x of Object.values(e.current))x?.contentWindow?.postMessage(S,"*")},[]);(0,W.useEffect)(()=>{!_t||z||j({__iterate:!0,type:"set-mode",mode:o})},[o,r,_t,z,j]),(0,W.useEffect)(()=>{z||N({__iterate:!0,type:"set-preview",previewMode:s})},[s,z,N]),(0,W.useEffect)(()=>{if(z)return;let S=x=>{if(ys(x.data)){if(x.data.type==="batch-counts"){for(let[H,G]of Object.entries(e.current))if(G?.contentWindow===x.source){E(Q=>({...Q,[H]:{batch:x.data.batchCount??0,move:x.data.moveCount??0}})),f(Q=>({...Q,[H]:x.data.processing??!1}));break}}else if(x.data.type==="keydown")window.dispatchEvent(new KeyboardEvent("keydown",{key:x.data.key??"",metaKey:x.data.metaKey??!1,ctrlKey:x.data.ctrlKey??!1,altKey:x.data.altKey??!1,shiftKey:x.data.shiftKey??!1,bubbles:!0}));else if(x.data.type==="ready"){for(let[H,G]of Object.entries(e.current))if(G?.contentWindow===x.source){A(X=>{if(X.has(H))return X;let I=new Set(X);return I.add(H),I});let Q=x.source;Q.postMessage({__iterate:!0,type:"set-iteration",iteration:H},"*"),Q.postMessage({__iterate:!0,type:"set-mode",mode:H===i.current?a.current:"browse"},"*"),Q.postMessage({__iterate:!0,type:"set-preview",previewMode:u.current},"*");break}}}};return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[z]),(0,W.useEffect)(()=>{if(z)return;let S=new Nl(Vt);n.current=S;let x=S.onIterationsChange(H=>{C(H)});return S.connect(),()=>{x(),S.disconnect()}},[Vt,z]),(0,W.useEffect)(()=>{if(z)return;let S=G=>{let Q=G.detail.tool;Q==="annotate"?c("select"):(Q==="select"||Q==="move"||Q==="draw"||Q==="browse")&&c(Q)},x=G=>{g(G.detail.iteration??Lt)};window.addEventListener("iterate:tool-change",S),window.addEventListener("iterate:iteration-change",x);let H=window.__iterate_shell__;if(H){let G=H.activeTool??"browse";c(G==="annotate"?"select":G);let Q=H.activeIteration;g(Q&&Q!=="default"?Q:Lt)}return()=>{window.removeEventListener("iterate:tool-change",S),window.removeEventListener("iterate:iteration-change",x)}},[z]),(0,W.useEffect)(()=>{if(!q)return;let S=document.getElementById("viewport"),x=()=>{let G=S.querySelector("iframe");t.current=G};x();let H=new MutationObserver(x);return H.observe(S,{childList:!0,subtree:!0}),()=>H.disconnect()},[q]);let Mt=(0,W.useCallback)(S=>{c(S);let x=window.__iterate_shell__;x&&(x.activeTool=S),window.dispatchEvent(new CustomEvent("iterate:tool-change",{detail:{tool:S}})),n.current?.sendToolMode(S)},[]),ft=(0,W.useCallback)(S=>{let x=r!==Lt,H=S!==Lt;if(H&&!x)l.current=o,c("browse"),n.current?.sendToolMode("browse");else if(!H&&x){let Q=l.current;c(Q),n.current?.sendToolMode(Q)}g(S);let G=window.__iterate_shell__;G&&(G.activeIteration=S),window.dispatchEvent(new CustomEvent("iterate:iteration-change",{detail:{iteration:S}})),window.dispatchEvent(new CustomEvent("iterate:request-switch",{detail:{iteration:S}}))},[r,o]),B=(0,W.useRef)(!1);(0,W.useEffect)(()=>{if(z||B.current)return;let S=Object.keys(p);if(S.length>0&&r===Lt){let x=S.sort((H,G)=>H.localeCompare(G,void 0,{numeric:!0}));ft(x[0]),B.current=!0}},[p,r,z,ft]);let et=(0,W.useCallback)(()=>{window.dispatchEvent(new CustomEvent("iterate:clear-batch")),N({__iterate:!0,type:"clear-batch"})},[N]),dt=(0,W.useCallback)(()=>{let S=[],x=b[Lt];x&&(x.batch>0||x.move>0)&&S.push(new Promise(H=>{let G=Q=>{H(Q.detail.text??""),window.removeEventListener("iterate:batch-text-response",G)};window.addEventListener("iterate:batch-text-response",G),window.dispatchEvent(new CustomEvent("iterate:request-batch-text")),setTimeout(()=>{window.removeEventListener("iterate:batch-text-response",G),H("")},2e3)}));for(let[H,G]of Object.entries(b))H!==Lt&&(G.batch>0||G.move>0)&&S.push(new Promise(Q=>{let X=I=>{ys(I.data)&&I.data.type==="batch-text"&&e.current[H]?.contentWindow===I.source&&(Q(I.data.text??""),window.removeEventListener("message",X))};window.addEventListener("message",X),j({__iterate:!0,type:"request-batch-text"},H),setTimeout(()=>{window.removeEventListener("message",X),Q("")},2e3)}));S.length!==0&&Promise.all(S).then(H=>{let G=H.filter(Boolean).join(`
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
`);G&&navigator.clipboard.writeText(G)})},[b,j]),mt=(0,W.useCallback)(()=>{_t?j({__iterate:!0,type:"undo"}):window.dispatchEvent(new CustomEvent("iterate:undo"))},[_t,j]),nt=(0,W.useCallback)(async()=>{try{let S=await fetch("/api/command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:"iterate",count:3})});if(!S.ok){let x=await S.json().catch(()=>({message:"Unknown error"}));console.error("[iterate] Fork failed:",x.message)}}catch(S){console.error("[iterate] Fork failed:",S)}},[]),F=(0,W.useCallback)(async S=>{try{let x=await fetch("/api/iterations/pick",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:S})});if(x.ok)g(Lt),c(l.current);else{let H=await x.json().catch(()=>({message:"Unknown error"}));console.error("[iterate] Pick failed:",H.message)}}catch(x){console.error("[iterate] Pick failed:",x)}},[]),it=(0,W.useCallback)(async()=>{let S=Object.keys(p);if(S.length!==0)try{await Promise.allSettled(S.map(x=>fetch(`/api/iterations/${x}`,{method:"DELETE"}))),g(Lt),c(l.current)}catch(x){console.error("[iterate] Discard failed:",x)}},[p]);(0,W.useEffect)(()=>{let S=new Set(Object.keys(p));for(let x of Object.keys(e.current))S.has(x)||delete e.current[x];A(x=>{let H=!1;for(let Q of x)if(!S.has(Q)){H=!0;break}if(!H)return x;let G=new Set;for(let Q of x)S.has(Q)&&G.add(Q);return G}),E(x=>{let H={};for(let[G,Q]of Object.entries(x))(G===Lt||S.has(G))&&(H[G]=Q);return H})},[p]);let le=(0,W.useRef)(null);if(!le.current&&typeof document<"u"){let S=document.getElementById("__iterate-iframe-portal__");S||(S=document.createElement("div"),S.id="__iterate-iframe-portal__",S.style.cssText="position:fixed;inset:0;z-index:9998;pointer-events:none;display:none;background:#000;",document.body.appendChild(S)),le.current=S}(0,W.useEffect)(()=>{let S=le.current;S&&(_t&&Z?(S.style.display="block",S.style.pointerEvents="auto"):(S.style.display="none",S.style.pointerEvents="none"))},[_t,Z]);let Ft=t;return z?(0,_e.jsx)(cs,{children:(0,_e.jsx)(fs,{mode:o,iteration:r,wsUrl:Vt,iframeRef:t,onBatchCountChange:S=>{E(x=>({...x,[r]:{batch:S,move:x[r]?.move??0}}))},onMoveCountChange:S=>{E(x=>({...x,[r]:{batch:x[r]?.batch??0,move:S}}))},onProcessingChange:S=>{f(x=>({...x,[r]:S}))},previewMode:s})}):(0,_e.jsx)(cs,{children:(0,_e.jsxs)(_e.Fragment,{children:[le.current&&Bt.length>0&&(0,Pm.createPortal)((0,_e.jsx)(_e.Fragment,{children:Bt.map(([S,x])=>(0,_e.jsx)("iframe",{ref:H=>{e.current[S]=H},src:`http://${window.location.hostname}:${x.port}/`,style:{width:"100%",height:"100%",border:"none",display:S===r?"block":"none",position:"absolute",inset:0},title:`Iteration: ${S}`},S))}),le.current),(0,_e.jsx)(fs,{mode:_t?"browse":o,iteration:Lt,wsUrl:Vt,iframeRef:Ft,onBatchCountChange:S=>{E(x=>({...x,[Lt]:{batch:S,move:x[Lt]?.move??0}}))},onMoveCountChange:S=>{E(x=>({...x,[Lt]:{batch:x[Lt]?.batch??0,move:S}}))},onProcessingChange:S=>{f(x=>({...x,[Lt]:S}))},previewMode:s,visible:d&&!_t}),(0,_e.jsx)(Wm,{mode:o,onModeChange:Mt,visible:d,onVisibilityChange:m,batchCount:ne,moveCount:Tt,processing:qt,onClearBatch:et,onCopyBatch:dt,onUndoMove:mt,iterations:p,activeIteration:r,onIterationChange:ft,onFork:nt,onPick:F,onDiscard:it,isViewingIteration:_t,tabBadgeCounts:he,readyIframes:L})]})})}if(!document.getElementById("__iterate-overlay-root__")){let t=document.createElement("div");t.id="__iterate-overlay-root__",t.style.cssText="position:fixed;inset:0;z-index:9999;pointer-events:none;",document.body.appendChild(t),(0,Im.createRoot)(t).render((0,_e.jsx)(Up,{}))}})();
|
|
67
|
+
/*! Bundled license information:
|
|
68
|
+
|
|
69
|
+
react/cjs/react.production.js:
|
|
70
|
+
(**
|
|
71
|
+
* @license React
|
|
72
|
+
* react.production.js
|
|
73
|
+
*
|
|
74
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the MIT license found in the
|
|
77
|
+
* LICENSE file in the root directory of this source tree.
|
|
78
|
+
*)
|
|
79
|
+
|
|
80
|
+
scheduler/cjs/scheduler.production.js:
|
|
81
|
+
(**
|
|
82
|
+
* @license React
|
|
83
|
+
* scheduler.production.js
|
|
84
|
+
*
|
|
85
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the MIT license found in the
|
|
88
|
+
* LICENSE file in the root directory of this source tree.
|
|
89
|
+
*)
|
|
90
|
+
|
|
91
|
+
react-dom/cjs/react-dom.production.js:
|
|
92
|
+
(**
|
|
93
|
+
* @license React
|
|
94
|
+
* react-dom.production.js
|
|
95
|
+
*
|
|
96
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the MIT license found in the
|
|
99
|
+
* LICENSE file in the root directory of this source tree.
|
|
100
|
+
*)
|
|
101
|
+
|
|
102
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
103
|
+
(**
|
|
104
|
+
* @license React
|
|
105
|
+
* react-dom-client.production.js
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the MIT license found in the
|
|
110
|
+
* LICENSE file in the root directory of this source tree.
|
|
111
|
+
*)
|
|
112
|
+
|
|
113
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
114
|
+
(**
|
|
115
|
+
* @license React
|
|
116
|
+
* react-jsx-runtime.production.js
|
|
117
|
+
*
|
|
118
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the MIT license found in the
|
|
121
|
+
* LICENSE file in the root directory of this source tree.
|
|
122
|
+
*)
|
|
123
|
+
*/
|