@atlas-viewer/atlas 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +26 -29
- package/dist/index.d.cts +2077 -1945
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +2077 -1945
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -29
- package/dist/index.js.map +1 -0
- package/package.json +17 -20
- package/dist/index.global.js +0 -165
package/dist/index.global.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";var AtlasViewer=(()=>{var pA=Object.create;var _o=Object.defineProperty;var SA=Object.getOwnPropertyDescriptor;var bA=Object.getOwnPropertyNames;var EA=Object.getPrototypeOf,xA=Object.prototype.hasOwnProperty;var TA=(t,e,i)=>e in t?_o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Be=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zA=(t,e)=>{for(var i in e)_o(t,i,{get:e[i],enumerable:!0})},cS=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of bA(e))!xA.call(t,u)&&u!==i&&_o(t,u,{get:()=>e[u],enumerable:!(n=SA(e,u))||n.enumerable});return t};var F=(t,e,i)=>(i=t!=null?pA(EA(t)):{},cS(e||!t||!t.__esModule?_o(i,"default",{value:t,enumerable:!0}):i,t)),_A=t=>cS(_o({},"__esModule",{value:!0}),t);var b=(t,e,i)=>(TA(t,typeof e!="symbol"?e+"":e,i),i);var NS=Be((n6,RS)=>{"use strict";var _S=!1,Va,km,$m,sf,of,AS,cf,tg,eg,ig,OS,ng,lg,MS,CS;function si(){if(!_S){_S=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),i=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(ng=/\b(iPhone|iP[ao]d)/.exec(t),lg=/\b(iP[ao]d)/.exec(t),ig=/Android/i.exec(t),MS=/FBAN\/\w+;/i.exec(t),CS=/Mobile/i.exec(t),OS=!!/Win64/.exec(t),e){Va=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Va&&document&&document.documentMode&&(Va=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(t);AS=n?parseFloat(n[1])+4:Va,km=e[2]?parseFloat(e[2]):NaN,$m=e[3]?parseFloat(e[3]):NaN,sf=e[4]?parseFloat(e[4]):NaN,sf?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),of=e&&e[1]?parseFloat(e[1]):NaN):of=NaN}else Va=km=$m=of=sf=NaN;if(i){if(i[1]){var u=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);cf=u?parseFloat(u[1].replace("_",".")):!0}else cf=!1;tg=!!i[2],eg=!!i[3]}else cf=tg=eg=!1}}var ag={ie:function(){return si()||Va},ieCompatibilityMode:function(){return si()||AS>Va},ie64:function(){return ag.ie()&&OS},firefox:function(){return si()||km},opera:function(){return si()||$m},webkit:function(){return si()||sf},safari:function(){return ag.webkit()},chrome:function(){return si()||of},windows:function(){return si()||tg},osx:function(){return si()||cf},linux:function(){return si()||eg},iphone:function(){return si()||ng},mobile:function(){return si()||ng||lg||ig||CS},nativeApp:function(){return si()||MS},android:function(){return si()||ig},ipad:function(){return si()||lg}};RS.exports=ag});var HS=Be((l6,DS)=>{"use strict";var rf=!!(typeof window<"u"&&window.document&&window.document.createElement),BA={canUseDOM:rf,canUseWorkers:typeof Worker<"u",canUseEventListeners:rf&&!!(window.addEventListener||window.attachEvent),canUseViewport:rf&&!!window.screen,isInWorker:!rf};DS.exports=BA});var jS=Be((a6,wS)=>{"use strict";var US=HS(),BS;US.canUseDOM&&(BS=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function wA(t,e){if(!US.canUseDOM||e&&!("addEventListener"in document))return!1;var i="on"+t,n=i in document;if(!n){var u=document.createElement("div");u.setAttribute(i,"return;"),n=typeof u[i]=="function"}return!n&&BS&&t==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}wS.exports=wA});var XS=Be((u6,QS)=>{"use strict";var jA=NS(),LA=jS(),LS=10,qS=40,GS=800;function YS(t){var e=0,i=0,n=0,u=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=e*LS,u=i*LS,"deltaY"in t&&(u=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||u)&&t.deltaMode&&(t.deltaMode==1?(n*=qS,u*=qS):(n*=GS,u*=GS)),n&&!e&&(e=n<1?-1:1),u&&!i&&(i=u<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:u}}YS.getEventType=function(){return jA.firefox()?"DOMMouseScroll":LA("wheel")?"wheel":"mousewheel"};QS.exports=YS});var ZS=Be((s6,VS)=>{"use strict";VS.exports=XS()});var sb=Be(nt=>{"use strict";var og=Symbol.for("react.transitional.element"),GA=Symbol.for("react.portal"),YA=Symbol.for("react.fragment"),QA=Symbol.for("react.strict_mode"),XA=Symbol.for("react.profiler"),VA=Symbol.for("react.consumer"),ZA=Symbol.for("react.context"),KA=Symbol.for("react.forward_ref"),JA=Symbol.for("react.suspense"),FA=Symbol.for("react.memo"),eb=Symbol.for("react.lazy"),WA=Symbol.for("react.activity"),IS=Symbol.iterator;function PA(t){return t===null||typeof t!="object"?null:(t=IS&&t[IS]||t["@@iterator"],typeof t=="function"?t:null)}var ib={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nb=Object.assign,lb={};function Pu(t,e,i){this.props=t,this.context=e,this.refs=lb,this.updater=i||ib}Pu.prototype.isReactComponent={};Pu.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")};Pu.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function ab(){}ab.prototype=Pu.prototype;function cg(t,e,i){this.props=t,this.context=e,this.refs=lb,this.updater=i||ib}var rg=cg.prototype=new ab;rg.constructor=cg;nb(rg,Pu.prototype);rg.isPureReactComponent=!0;var kS=Array.isArray;function sg(){}var wt={H:null,A:null,T:null,S:null},ub=Object.prototype.hasOwnProperty;function fg(t,e,i){var n=i.ref;return{$$typeof:og,type:t,key:e,ref:n!==void 0?n:null,props:i}}function IA(t,e){return fg(t.type,e,t.props)}function hg(t){return typeof t=="object"&&t!==null&&t.$$typeof===og}function kA(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(i){return e[i]})}var $S=/\/+/g;function ug(t,e){return typeof t=="object"&&t!==null&&t.key!=null?kA(""+t.key):e.toString(36)}function $A(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(sg,sg):(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 Wu(t,e,i,n,u){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var r=!1;if(t===null)r=!0;else switch(s){case"bigint":case"string":case"number":r=!0;break;case"object":switch(t.$$typeof){case og:case GA:r=!0;break;case eb:return r=t._init,Wu(r(t._payload),e,i,n,u)}}if(r)return u=u(t),r=n===""?"."+ug(t,0):n,kS(u)?(i="",r!=null&&(i=r.replace($S,"$&/")+"/"),Wu(u,e,i,"",function(y){return y})):u!=null&&(hg(u)&&(u=IA(u,i+(u.key==null||t&&t.key===u.key?"":(""+u.key).replace($S,"$&/")+"/")+r)),e.push(u)),1;r=0;var f=n===""?".":n+":";if(kS(t))for(var m=0;m<t.length;m++)n=t[m],s=f+ug(n,m),r+=Wu(n,e,i,s,u);else if(m=PA(t),typeof m=="function")for(t=m.call(t),m=0;!(n=t.next()).done;)n=n.value,s=f+ug(n,m++),r+=Wu(n,e,i,s,u);else if(s==="object"){if(typeof t.then=="function")return Wu($A(t),e,i,n,u);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 r}function ff(t,e,i){if(t==null)return t;var n=[],u=0;return Wu(t,n,"","",function(s){return e.call(i,s,u++)}),n}function t4(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(i){(t._status===0||t._status===-1)&&(t._status=1,t._result=i)},function(i){(t._status===0||t._status===-1)&&(t._status=2,t._result=i)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var tb=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)},e4={map:ff,forEach:function(t,e,i){ff(t,function(){e.apply(this,arguments)},i)},count:function(t){var e=0;return ff(t,function(){e++}),e},toArray:function(t){return ff(t,function(e){return e})||[]},only:function(t){if(!hg(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};nt.Activity=WA;nt.Children=e4;nt.Component=Pu;nt.Fragment=YA;nt.Profiler=XA;nt.PureComponent=cg;nt.StrictMode=QA;nt.Suspense=JA;nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wt;nt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return wt.H.useMemoCache(t)}};nt.cache=function(t){return function(){return t.apply(null,arguments)}};nt.cacheSignal=function(){return null};nt.cloneElement=function(t,e,i){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=nb({},t.props),u=t.key;if(e!=null)for(s in e.key!==void 0&&(u=""+e.key),e)!ub.call(e,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&e.ref===void 0||(n[s]=e[s]);var s=arguments.length-2;if(s===1)n.children=i;else if(1<s){for(var r=Array(s),f=0;f<s;f++)r[f]=arguments[f+2];n.children=r}return fg(t.type,u,n)};nt.createContext=function(t){return t={$$typeof:ZA,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:VA,_context:t},t};nt.createElement=function(t,e,i){var n,u={},s=null;if(e!=null)for(n in e.key!==void 0&&(s=""+e.key),e)ub.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(u[n]=e[n]);var r=arguments.length-2;if(r===1)u.children=i;else if(1<r){for(var f=Array(r),m=0;m<r;m++)f[m]=arguments[m+2];u.children=f}if(t&&t.defaultProps)for(n in r=t.defaultProps,r)u[n]===void 0&&(u[n]=r[n]);return fg(t,s,u)};nt.createRef=function(){return{current:null}};nt.forwardRef=function(t){return{$$typeof:KA,render:t}};nt.isValidElement=hg;nt.lazy=function(t){return{$$typeof:eb,_payload:{_status:-1,_result:t},_init:t4}};nt.memo=function(t,e){return{$$typeof:FA,type:t,compare:e===void 0?null:e}};nt.startTransition=function(t){var e=wt.T,i={};wt.T=i;try{var n=t(),u=wt.S;u!==null&&u(i,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(sg,tb)}catch(s){tb(s)}finally{e!==null&&i.types!==null&&(e.types=i.types),wt.T=e}};nt.unstable_useCacheRefresh=function(){return wt.H.useCacheRefresh()};nt.use=function(t){return wt.H.use(t)};nt.useActionState=function(t,e,i){return wt.H.useActionState(t,e,i)};nt.useCallback=function(t,e){return wt.H.useCallback(t,e)};nt.useContext=function(t){return wt.H.useContext(t)};nt.useDebugValue=function(){};nt.useDeferredValue=function(t,e){return wt.H.useDeferredValue(t,e)};nt.useEffect=function(t,e){return wt.H.useEffect(t,e)};nt.useEffectEvent=function(t){return wt.H.useEffectEvent(t)};nt.useId=function(){return wt.H.useId()};nt.useImperativeHandle=function(t,e,i){return wt.H.useImperativeHandle(t,e,i)};nt.useInsertionEffect=function(t,e){return wt.H.useInsertionEffect(t,e)};nt.useLayoutEffect=function(t,e){return wt.H.useLayoutEffect(t,e)};nt.useMemo=function(t,e){return wt.H.useMemo(t,e)};nt.useOptimistic=function(t,e){return wt.H.useOptimistic(t,e)};nt.useReducer=function(t,e,i){return wt.H.useReducer(t,e,i)};nt.useRef=function(t){return wt.H.useRef(t)};nt.useState=function(t){return wt.H.useState(t)};nt.useSyncExternalStore=function(t,e,i){return wt.H.useSyncExternalStore(t,e,i)};nt.useTransition=function(){return wt.H.useTransition()};nt.version="19.2.0"});var vt=Be((y6,ob)=>{"use strict";ob.exports=sb()});var rb=Be(hf=>{"use strict";var i4=Symbol.for("react.transitional.element"),n4=Symbol.for("react.fragment");function cb(t,e,i){var n=null;if(i!==void 0&&(n=""+i),e.key!==void 0&&(n=""+e.key),"key"in e){i={};for(var u in e)u!=="key"&&(i[u]=e[u])}else i=e;return e=i.ref,{$$typeof:i4,type:t,key:n,ref:e!==void 0?e:null,props:i}}hf.Fragment=n4;hf.jsx=cb;hf.jsxs=cb});var Ft=Be((p6,fb)=>{"use strict";fb.exports=rb()});var zb=Be(Yt=>{"use strict";function vg(t,e){var i=t.length;t.push(e);t:for(;0<i;){var n=i-1>>>1,u=t[n];if(0<gf(u,e))t[n]=e,t[i]=u,i=n;else break t}}function Mn(t){return t.length===0?null:t[0]}function vf(t){if(t.length===0)return null;var e=t[0],i=t.pop();if(i!==e){t[0]=i;t:for(var n=0,u=t.length,s=u>>>1;n<s;){var r=2*(n+1)-1,f=t[r],m=r+1,y=t[m];if(0>gf(f,i))m<u&&0>gf(y,f)?(t[n]=y,t[m]=i,n=m):(t[n]=f,t[r]=i,n=r);else if(m<u&&0>gf(y,i))t[n]=y,t[m]=i,n=m;else break t}}return e}function gf(t,e){var i=t.sortIndex-e.sortIndex;return i!==0?i:t.id-e.id}Yt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(gb=performance,Yt.unstable_now=function(){return gb.now()}):(mg=Date,yb=mg.now(),Yt.unstable_now=function(){return mg.now()-yb});var gb,mg,yb,nl=[],Kl=[],c4=1,Fi=null,Ke=3,pg=!1,Bo=!1,wo=!1,Sg=!1,Sb=typeof setTimeout=="function"?setTimeout:null,bb=typeof clearTimeout=="function"?clearTimeout:null,vb=typeof setImmediate<"u"?setImmediate:null;function yf(t){for(var e=Mn(Kl);e!==null;){if(e.callback===null)vf(Kl);else if(e.startTime<=t)vf(Kl),e.sortIndex=e.expirationTime,vg(nl,e);else break;e=Mn(Kl)}}function bg(t){if(wo=!1,yf(t),!Bo)if(Mn(nl)!==null)Bo=!0,ku||(ku=!0,Iu());else{var e=Mn(Kl);e!==null&&Eg(bg,e.startTime-t)}}var ku=!1,jo=-1,Eb=5,xb=-1;function Tb(){return Sg?!0:!(Yt.unstable_now()-xb<Eb)}function gg(){if(Sg=!1,ku){var t=Yt.unstable_now();xb=t;var e=!0;try{t:{Bo=!1,wo&&(wo=!1,bb(jo),jo=-1),pg=!0;var i=Ke;try{e:{for(yf(t),Fi=Mn(nl);Fi!==null&&!(Fi.expirationTime>t&&Tb());){var n=Fi.callback;if(typeof n=="function"){Fi.callback=null,Ke=Fi.priorityLevel;var u=n(Fi.expirationTime<=t);if(t=Yt.unstable_now(),typeof u=="function"){Fi.callback=u,yf(t),e=!0;break e}Fi===Mn(nl)&&vf(nl),yf(t)}else vf(nl);Fi=Mn(nl)}if(Fi!==null)e=!0;else{var s=Mn(Kl);s!==null&&Eg(bg,s.startTime-t),e=!1}}break t}finally{Fi=null,Ke=i,pg=!1}e=void 0}}finally{e?Iu():ku=!1}}}var Iu;typeof vb=="function"?Iu=function(){vb(gg)}:typeof MessageChannel<"u"?(yg=new MessageChannel,pb=yg.port2,yg.port1.onmessage=gg,Iu=function(){pb.postMessage(null)}):Iu=function(){Sb(gg,0)};var yg,pb;function Eg(t,e){jo=Sb(function(){t(Yt.unstable_now())},e)}Yt.unstable_IdlePriority=5;Yt.unstable_ImmediatePriority=1;Yt.unstable_LowPriority=4;Yt.unstable_NormalPriority=3;Yt.unstable_Profiling=null;Yt.unstable_UserBlockingPriority=2;Yt.unstable_cancelCallback=function(t){t.callback=null};Yt.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"):Eb=0<t?Math.floor(1e3/t):5};Yt.unstable_getCurrentPriorityLevel=function(){return Ke};Yt.unstable_next=function(t){switch(Ke){case 1:case 2:case 3:var e=3;break;default:e=Ke}var i=Ke;Ke=e;try{return t()}finally{Ke=i}};Yt.unstable_requestPaint=function(){Sg=!0};Yt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var i=Ke;Ke=t;try{return e()}finally{Ke=i}};Yt.unstable_scheduleCallback=function(t,e,i){var n=Yt.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?n+i:n):i=n,t){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return u=i+u,t={id:c4++,callback:e,priorityLevel:t,startTime:i,expirationTime:u,sortIndex:-1},i>n?(t.sortIndex=i,vg(Kl,t),Mn(nl)===null&&t===Mn(Kl)&&(wo?(bb(jo),jo=-1):wo=!0,Eg(bg,i-n))):(t.sortIndex=u,vg(nl,t),Bo||pg||(Bo=!0,ku||(ku=!0,Iu()))),t};Yt.unstable_shouldYield=Tb;Yt.unstable_wrapCallback=function(t){var e=Ke;return function(){var i=Ke;Ke=e;try{return t.apply(this,arguments)}finally{Ke=i}}}});var xg=Be((z6,_b)=>{"use strict";_b.exports=zb()});var Ab=Be((_6,Lo)=>{"use strict";Lo.exports=function(t){function e(l,a,o,c){return new T_(l,a,o,c)}function i(){}function n(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(l){var a=l,o=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,a.flags&4098&&(o=a.return),l=a.return;while(l)}return a.tag===3?o:null}function s(l){if(u(l)!==l)throw Error(n(188))}function r(l){var a=l.alternate;if(!a){if(a=u(l),a===null)throw Error(n(188));return a!==l?null:l}for(var o=l,c=a;;){var h=o.return;if(h===null)break;var d=h.alternate;if(d===null){if(c=h.return,c!==null){o=c;continue}break}if(h.child===d.child){for(d=h.child;d;){if(d===o)return s(h),l;if(d===c)return s(h),a;d=d.sibling}throw Error(n(188))}if(o.return!==c.return)o=h,c=d;else{for(var v=!1,_=h.child;_;){if(_===o){v=!0,o=h,c=d;break}if(_===c){v=!0,c=h,o=d;break}_=_.sibling}if(!v){for(_=d.child;_;){if(_===o){v=!0,o=d,c=h;break}if(_===c){v=!0,c=d,o=h;break}_=_.sibling}if(!v)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?l:a}function f(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=f(l),a!==null)return a;l=l.sibling}return null}function m(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(l.tag!==4&&(a=m(l),a!==null))return a;l=l.sibling}return null}function y(l){return l===null||typeof l!="object"?null:(l=M1&&l[M1]||l["@@iterator"],typeof l=="function"?l:null)}function g(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===M_?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Au:return"Fragment";case cm:return"Profiler";case A1:return"StrictMode";case fm:return"Suspense";case hm:return"SuspenseList";case mm:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case _u:return"Portal";case Nl:return l.displayName||"Context";case O1:return(l._context.displayName||"Context")+".Consumer";case rm:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case dm:return a=l.displayName||null,a!==null?a:g(l.type)||"Memo";case Dl:a=l._payload,l=l._init;try{return g(l(a))}catch{}}return null}function S(l){return{current:l}}function p(l){0>Cu||(l.current=bm[Cu],bm[Cu]=null,Cu--)}function x(l,a){Cu++,bm[Cu]=l.current,l.current=a}function A(l){return l>>>=0,l===0?32:31-(iA(l)/nA|0)|0}function R(l){var a=l&42;if(a!==0)return a;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function w(l,a,o){var c=l.pendingLanes;if(c===0)return 0;var h=0,d=l.suspendedLanes,v=l.pingedLanes;l=l.warmLanes;var _=c&134217727;return _!==0?(c=_&~d,c!==0?h=R(c):(v&=_,v!==0?h=R(v):o||(o=_&~l,o!==0&&(h=R(o))))):(_=c&~d,_!==0?h=R(_):v!==0?h=R(v):o||(o=c&~l,o!==0&&(h=R(o)))),h===0?0:a!==0&&a!==h&&!(a&d)&&(d=h&-h,o=a&-a,d>=o||d===32&&(o&4194048)!==0)?a:h}function T(l,a){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&a)===0}function E(l,a){switch(l){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 z(){var l=Or;return Or<<=1,!(Or&62914560)&&(Or=4194304),l}function O(l){for(var a=[],o=0;31>o;o++)a.push(l);return a}function H(l,a){l.pendingLanes|=a,a!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function q(l,a,o,c,h,d){var v=l.pendingLanes;l.pendingLanes=o,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=o,l.entangledLanes&=o,l.errorRecoveryDisabledLanes&=o,l.shellSuspendCounter=0;var _=l.entanglements,D=l.expirationTimes,j=l.hiddenUpdates;for(o=v&~o;0<o;){var V=31-Si(o),Y=1<<V;_[V]=0,D[V]=-1;var K=j[V];if(K!==null)for(j[V]=null,V=0;V<K.length;V++){var it=K[V];it!==null&&(it.lane&=-536870913)}o&=~Y}c!==0&&L(l,c,0),d!==0&&h===0&&l.tag!==0&&(l.suspendedLanes|=d&~(v&~a))}function L(l,a,o){l.pendingLanes|=a,l.suspendedLanes&=~a;var c=31-Si(a);l.entangledLanes|=a,l.entanglements[c]=l.entanglements[c]|1073741824|o&261930}function G(l,a){var o=l.entangledLanes|=a;for(l=l.entanglements;o;){var c=31-Si(o),h=1<<c;h&a|l[c]&a&&(l[c]|=a),o&=~h}}function J(l,a){var o=a&-a;return o=o&42?1:B(o),o&(l.suspendedLanes|a)?0:o}function B(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function I(l){return l&=-l,2<l?8<l?l&134217727?32:268435456:8:2}function ht(l){if(typeof oA=="function"&&cA(l),bi&&typeof bi.setStrictMode=="function")try{bi.setStrictMode(ho,l)}catch{}}function qn(l,a){return l===a&&(l!==0||1/l===1/a)||l!==l&&a!==a}function At(l){if(Tm===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Tm=a&&a[1]||"",tS=-1<o.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Tm+l+tS}function ei(l,a){if(!l||zm)return"";zm=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(it){var K=it}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(it){K=it}l.call(Y.prototype)}}else{try{throw Error()}catch(it){K=it}(Y=l())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(it){if(it&&K&&typeof it.stack=="string")return[it.stack,K.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=c.DetermineComponentFrameRoot(),v=d[0],_=d[1];if(v&&_){var D=v.split(`
|
|
4
|
-
`),j=_.split(`
|
|
5
|
-
`);for(h=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;h<j.length&&!j[h].includes("DetermineComponentFrameRoot");)h++;if(c===D.length||h===j.length)for(c=D.length-1,h=j.length-1;1<=c&&0<=h&&D[c]!==j[h];)h--;for(;1<=c&&0<=h;c--,h--)if(D[c]!==j[h]){if(c!==1||h!==1)do if(c--,h--,0>h||D[c]!==j[h]){var V=`
|
|
6
|
-
`+D[c].replace(" at new "," at ");return l.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",l.displayName)),V}while(1<=c&&0<=h);break}}}finally{zm=!1,Error.prepareStackTrace=o}return(o=l?l.displayName||l.name:"")?At(o):""}function Qe(l,a){switch(l.tag){case 26:case 27:case 5:return At(l.type);case 16:return At("Lazy");case 13:return l.child!==a&&a!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return ei(l.type,!1);case 11:return ei(l.type.render,!1);case 1:return ei(l.type,!0);case 31:return At("Activity");default:return""}}function Gn(l){try{var a="",o=null;do a+=Qe(l,o),o=l,l=l.return;while(l);return a}catch(c){return`
|
|
7
|
-
Error generating stack: `+c.message+`
|
|
8
|
-
`+c.stack}}function ue(l,a){if(typeof l=="object"&&l!==null){var o=eS.get(l);return o!==void 0?o:(a={value:l,source:a,stack:Gn(a)},eS.set(l,a),a)}return{value:l,source:a,stack:Gn(a)}}function ye(l,a){Nu[Du++]=mo,Nu[Du++]=Cr,Cr=l,mo=a}function Fs(l,a,o){Yi[Qi++]=En,Yi[Qi++]=xn,Yi[Qi++]=Hl,Hl=l;var c=En;l=xn;var h=32-Si(c)-1;c&=~(1<<h),o+=1;var d=32-Si(a)+h;if(30<d){var v=h-h%5;d=(c&(1<<v)-1).toString(32),c>>=v,h-=v,En=1<<32-Si(a)+h|o<<h|c,xn=d+l}else En=1<<d|o<<h|c,xn=l}function X(l){l.return!==null&&(ye(l,1),Fs(l,1,0))}function Ut(l){for(;l===Cr;)Cr=Nu[--Du],Nu[Du]=null,mo=Nu[--Du],Nu[Du]=null;for(;l===Hl;)Hl=Yi[--Qi],Yi[Qi]=null,xn=Yi[--Qi],Yi[Qi]=null,En=Yi[--Qi],Yi[Qi]=null}function Ea(l,a){Yi[Qi++]=En,Yi[Qi++]=xn,Yi[Qi++]=Hl,En=a.id,xn=a.overflow,Hl=l}function pu(l,a){x(Ul,a),x(go,l),x(De,null),l=N_(a),p(De),x(De,l)}function Yn(){p(De),p(go),p(Ul)}function Su(l){l.memoizedState!==null&&x(Rr,l);var a=De.current,o=D_(a,l.type);a!==o&&(x(go,l),x(De,o))}function xa(l){go.current===l&&(p(De),p(go)),Rr.current===l&&(p(Rr),Fn?Da._currentValue=Ou:Da._currentValue2=Ou)}function qi(l){var a=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zl(ue(a,l)),_m}function Jc(l,a){if(!Ze)throw Error(n(175));D3(l.stateNode,l.type,l.memoizedProps,a,l)||qi(l,!0)}function sd(l){for(He=l.return;He;)switch(He.tag){case 5:case 31:case 13:Xi=!1;return;case 27:case 3:Xi=!0;return;default:He=He.return}}function Ta(l){if(!Ze||l!==He)return!1;if(!gt)return sd(l),gt=!0,!1;var a=l.tag;if(pe?a!==3&&a!==27&&(a!==5||Y1(l.type)&&!zr(l.type,l.memoizedProps))&&Xt&&qi(l):a!==3&&(a!==5||Y1(l.type)&&!zr(l.type,l.memoizedProps))&&Xt&&qi(l),sd(l),a===13){if(!Ze)throw Error(n(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));Xt=j3(l)}else if(a===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));Xt=w3(l)}else Xt=pe&&a===27?x3(l.type,Xt):He?G1(l.stateNode):null;return!0}function Qn(){Ze&&(Xt=He=null,gt=!1)}function za(){var l=Bl;return l!==null&&(ai===null?ai=l:ai.push.apply(ai,l),Bl=null),l}function zl(l){Bl===null?Bl=[l]:Bl.push(l)}function k(l,a,o){Fn?(x(Nr,a._currentValue),a._currentValue=o):(x(Nr,a._currentValue2),a._currentValue2=o)}function lt(l){var a=Nr.current;Fn?l._currentValue=a:l._currentValue2=a,p(Nr)}function Rt(l,a,o){for(;l!==null;){var c=l.alternate;if((l.childLanes&a)!==a?(l.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),l===o)break;l=l.return}}function ve(l,a,o,c){var h=l.child;for(h!==null&&(h.return=l);h!==null;){var d=h.dependencies;if(d!==null){var v=h.child;d=d.firstContext;t:for(;d!==null;){var _=d;d=h;for(var D=0;D<a.length;D++)if(_.context===a[D]){d.lanes|=o,_=d.alternate,_!==null&&(_.lanes|=o),Rt(d.return,o,l),c||(v=null);break t}d=_.next}}else if(h.tag===18){if(v=h.return,v===null)throw Error(n(341));v.lanes|=o,d=v.alternate,d!==null&&(d.lanes|=o),Rt(v,o,l),v=null}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===l){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}}function Gi(l,a,o,c){l=null;for(var h=a,d=!1;h!==null;){if(!d){if(h.flags&524288)d=!0;else if(h.flags&262144)break}if(h.tag===10){var v=h.alternate;if(v===null)throw Error(n(387));if(v=v.memoizedProps,v!==null){var _=h.type;Ei(h.pendingProps.value,v.value)||(l!==null?l.push(_):l=[_])}}else if(h===Rr.current){if(v=h.alternate,v===null)throw Error(n(387));v.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(l!==null?l.push(Da):l=[Da])}h=h.return}l!==null&&ve(a,l,o,c),a.flags|=262144}function gi(l){for(l=l.firstContext;l!==null;){var a=l.context;if(!Ei(Fn?a._currentValue:a._currentValue2,l.memoizedValue))return!0;l=l.next}return!1}function Je(l){Ha=l,Pn=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function ee(l){return mp(Ha,l)}function Fc(l,a){return Ha===null&&Je(l),mp(l,a)}function mp(l,a){var o=Fn?a._currentValue:a._currentValue2;if(a={context:a,memoizedValue:o,next:null},Pn===null){if(l===null)throw Error(n(308));Pn=a,l.dependencies={lanes:0,firstContext:a},l.flags|=524288}else Pn=Pn.next=a;return o}function od(){return{controller:new fA,data:new Map,refCount:0}}function Ws(l){l.refCount--,l.refCount===0&&hA(dA,function(){l.controller.abort()})}function Wc(){}function pn(l){l!==Hu&&l.next===null&&(Hu===null?Dr=Hu=l:Hu=Hu.next=l),Hr=!0,Am||(Am=!0,$z())}function bu(l,a){if(!Om&&Hr){Om=!0;do for(var o=!1,c=Dr;c!==null;){if(!a)if(l!==0){var h=c.pendingLanes;if(h===0)var d=0;else{var v=c.suspendedLanes,_=c.pingedLanes;d=(1<<31-Si(42|l)+1)-1,d&=h&~(v&~_),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,Sp(c,d))}else d=dt,d=w(c,c===Nt?d:0,c.cancelPendingCommit!==null||c.timeoutHandle!==Na),!(d&3)||T(c,d)||(o=!0,Sp(c,d));c=c.next}while(o);Om=!1}}function gp(){yp()}function yp(){Hr=Am=!1;var l=0;Ua!==0&&Y_()&&(l=Ua);for(var a=ni(),o=null,c=Dr;c!==null;){var h=c.next,d=vp(c,a);d===0?(c.next=null,o===null?Dr=h:o.next=h,h===null&&(Hu=o)):(o=c,(l!==0||d&3)&&(Hr=!0)),c=h}Se!==0&&Se!==5||bu(l,!1),Ua!==0&&(Ua=0)}function vp(l,a){for(var o=l.suspendedLanes,c=l.pingedLanes,h=l.expirationTimes,d=l.pendingLanes&-62914561;0<d;){var v=31-Si(d),_=1<<v,D=h[v];D===-1?(!(_&o)||_&c)&&(h[v]=E(_,a)):D<=a&&(l.expiredLanes|=_),d&=~_}if(a=Nt,o=dt,o=w(l,l===a?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Na),c=l.callbackNode,o===0||l===a&&(Tt===2||Tt===9)||l.cancelPendingCommit!==null)return c!==null&&c!==null&&Em(c),l.callbackNode=null,l.callbackPriority=0;if(!(o&3)||T(l,o)){if(a=o&-o,a===l.callbackPriority)return a;switch(c!==null&&Em(c),I(o)){case 2:case 8:o=uA;break;case 32:o=xm;break;case 268435456:o=sA;break;default:o=xm}return c=pp.bind(null,l),o=Mr(o,c),l.callbackPriority=a,l.callbackNode=o,a}return c!==null&&c!==null&&Em(c),l.callbackPriority=2,l.callbackNode=null,2}function pp(l,a){if(Se!==0&&Se!==5)return l.callbackNode=null,l.callbackPriority=0,null;var o=l.callbackNode;if(oo()&&l.callbackNode!==o)return null;var c=dt;return c=w(l,l===Nt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Na),c===0?null:(e1(l,c,a),vp(l,ni()),l.callbackNode!=null&&l.callbackNode===o?pp.bind(null,l):null)}function Sp(l,a){if(oo())return null;e1(l,a,!0)}function $z(){F_?W_(function(){ot&6?Mr(k1,gp):yp()}):Mr(k1,gp)}function cd(){if(Ua===0){var l=Uu;l===0&&(l=_r,_r<<=1,!(_r&261888)&&(_r=256)),Ua=l}return Ua}function t_(l,a){if(yo===null){var o=yo=[];Mm=0,Uu=cd(),Bu={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Mm++,a.then(bp,bp),a}function bp(){if(--Mm===0&&yo!==null){Bu!==null&&(Bu.status="fulfilled");var l=yo;yo=null,Uu=0,Bu=null;for(var a=0;a<l.length;a++)(0,l[a])()}}function e_(l,a){var o=[],c={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return l.then(function(){c.status="fulfilled",c.value=a;for(var h=0;h<o.length;h++)(0,o[h])(a)},function(h){for(c.status="rejected",c.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),c}function rd(){var l=Ba.current;return l!==null?l:Nt.pooledCache}function Pc(l,a){a===null?x(Ba,Ba.current):x(Ba,a.pool)}function Ep(){var l=rd();return l===null?null:{parent:Fn?Vt._currentValue:Vt._currentValue2,pool:l}}function Ic(l,a){if(Ei(l,a))return!0;if(typeof l!="object"||l===null||typeof a!="object"||a===null)return!1;var o=Object.keys(l),c=Object.keys(a);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var h=o[c];if(!rA.call(a,h)||!Ei(l[h],a[h]))return!1}return!0}function xp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Tp(l,a,o){switch(o=l[o],o===void 0?l.push(a):o!==a&&(a.then(Wc,Wc),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,_p(l),l;default:if(typeof a.status=="string")a.then(Wc,Wc);else{if(l=Nt,l!==null&&100<l.shellSuspendCounter)throw Error(n(482));l=a,l.status="pending",l.then(function(c){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=c}},function(c){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,_p(l),l}throw wa=a,wu}}function _a(l){try{var a=l._init;return a(l._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(wa=o,wu):o}}function zp(){if(wa===null)throw Error(n(459));var l=wa;return wa=null,l}function _p(l){if(l===wu||l===Ur)throw Error(n(483))}function kc(l){var a=vo;return vo+=1,ju===null&&(ju=[]),Tp(ju,l,a)}function Ps(l,a){a=a.props.ref,l.ref=a!==void 0?a:null}function $c(l,a){throw a.$$typeof===A_?Error(n(525)):(l=Object.prototype.toString.call(a),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":l)))}function Ap(l){function a(C,M){if(l){var N=C.deletions;N===null?(C.deletions=[M],C.flags|=16):N.push(M)}}function o(C,M){if(!l)return null;for(;M!==null;)a(C,M),M=M.sibling;return null}function c(C){for(var M=new Map;C!==null;)C.key!==null?M.set(C.key,C):M.set(C.index,C),C=C.sibling;return M}function h(C,M){return C=Jn(C,M),C.index=0,C.sibling=null,C}function d(C,M,N){return C.index=N,l?(N=C.alternate,N!==null?(N=N.index,N<M?(C.flags|=67108866,M):N):(C.flags|=67108866,M)):(C.flags|=1048576,M)}function v(C){return l&&C.alternate===null&&(C.flags|=67108866),C}function _(C,M,N,Q){return M===null||M.tag!==6?(M=am(N,C.mode,Q),M.return=C,M):(M=h(M,N),M.return=C,M)}function D(C,M,N,Q){var P=N.type;return P===Au?V(C,M,N.props.children,Q,N.key):M!==null&&(M.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Dl&&_a(P)===M.type)?(M=h(M,N.props),Ps(M,N),M.return=C,M):(M=Er(N.type,N.key,N.props,null,C.mode,Q),Ps(M,N),M.return=C,M)}function j(C,M,N,Q){return M===null||M.tag!==4||M.stateNode.containerInfo!==N.containerInfo||M.stateNode.implementation!==N.implementation?(M=um(N,C.mode,Q),M.return=C,M):(M=h(M,N.children||[]),M.return=C,M)}function V(C,M,N,Q,P){return M===null||M.tag!==7?(M=Ra(N,C.mode,Q,P),M.return=C,M):(M=h(M,N),M.return=C,M)}function Y(C,M,N){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=am(""+M,C.mode,N),M.return=C,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case xr:return N=Er(M.type,M.key,M.props,null,C.mode,N),Ps(N,M),N.return=C,N;case _u:return M=um(M,C.mode,N),M.return=C,M;case Dl:return M=_a(M),Y(C,M,N)}if(Tr(M)||y(M))return M=Ra(M,C.mode,N,null),M.return=C,M;if(typeof M.then=="function")return Y(C,kc(M),N);if(M.$$typeof===Nl)return Y(C,Fc(C,M),N);$c(C,M)}return null}function K(C,M,N,Q){var P=M!==null?M.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return P!==null?null:_(C,M,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case xr:return N.key===P?D(C,M,N,Q):null;case _u:return N.key===P?j(C,M,N,Q):null;case Dl:return N=_a(N),K(C,M,N,Q)}if(Tr(N)||y(N))return P!==null?null:V(C,M,N,Q,null);if(typeof N.then=="function")return K(C,M,kc(N),Q);if(N.$$typeof===Nl)return K(C,M,Fc(C,N),Q);$c(C,N)}return null}function it(C,M,N,Q,P){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(N)||null,_(M,C,""+Q,P);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case xr:return C=C.get(Q.key===null?N:Q.key)||null,D(M,C,Q,P);case _u:return C=C.get(Q.key===null?N:Q.key)||null,j(M,C,Q,P);case Dl:return Q=_a(Q),it(C,M,N,Q,P)}if(Tr(Q)||y(Q))return C=C.get(N)||null,V(M,C,Q,P,null);if(typeof Q.then=="function")return it(C,M,N,kc(Q),P);if(Q.$$typeof===Nl)return it(C,M,N,Fc(M,Q),P);$c(M,Q)}return null}function Ue(C,M,N,Q){for(var P=null,Zt=null,$=M,St=M=0,Oe=null;$!==null&&St<N.length;St++){$.index>St?(Oe=$,$=null):Oe=$.sibling;var bt=K(C,$,N[St],Q);if(bt===null){$===null&&($=Oe);break}l&&$&&bt.alternate===null&&a(C,$),M=d(bt,M,St),Zt===null?P=bt:Zt.sibling=bt,Zt=bt,$=Oe}if(St===N.length)return o(C,$),gt&&ye(C,St),P;if($===null){for(;St<N.length;St++)$=Y(C,N[St],Q),$!==null&&(M=d($,M,St),Zt===null?P=$:Zt.sibling=$,Zt=$);return gt&&ye(C,St),P}for($=c($);St<N.length;St++)Oe=it($,C,St,N[St],Q),Oe!==null&&(l&&Oe.alternate!==null&&$.delete(Oe.key===null?St:Oe.key),M=d(Oe,M,St),Zt===null?P=Oe:Zt.sibling=Oe,Zt=Oe);return l&&$.forEach(function(Yl){return a(C,Yl)}),gt&&ye(C,St),P}function zo(C,M,N,Q){if(N==null)throw Error(n(151));for(var P=null,Zt=null,$=M,St=M=0,Oe=null,bt=N.next();$!==null&&!bt.done;St++,bt=N.next()){$.index>St?(Oe=$,$=null):Oe=$.sibling;var Yl=K(C,$,bt.value,Q);if(Yl===null){$===null&&($=Oe);break}l&&$&&Yl.alternate===null&&a(C,$),M=d(Yl,M,St),Zt===null?P=Yl:Zt.sibling=Yl,Zt=Yl,$=Oe}if(bt.done)return o(C,$),gt&&ye(C,St),P;if($===null){for(;!bt.done;St++,bt=N.next())bt=Y(C,bt.value,Q),bt!==null&&(M=d(bt,M,St),Zt===null?P=bt:Zt.sibling=bt,Zt=bt);return gt&&ye(C,St),P}for($=c($);!bt.done;St++,bt=N.next())bt=it($,C,St,bt.value,Q),bt!==null&&(l&&bt.alternate!==null&&$.delete(bt.key===null?St:bt.key),M=d(bt,M,St),Zt===null?P=bt:Zt.sibling=bt,Zt=bt);return l&&$.forEach(function(vA){return a(C,vA)}),gt&&ye(C,St),P}function Ga(C,M,N,Q){if(typeof N=="object"&&N!==null&&N.type===Au&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case xr:t:{for(var P=N.key;M!==null;){if(M.key===P){if(P=N.type,P===Au){if(M.tag===7){o(C,M.sibling),Q=h(M,N.props.children),Q.return=C,C=Q;break t}}else if(M.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Dl&&_a(P)===M.type){o(C,M.sibling),Q=h(M,N.props),Ps(Q,N),Q.return=C,C=Q;break t}o(C,M);break}else a(C,M);M=M.sibling}N.type===Au?(Q=Ra(N.props.children,C.mode,Q,N.key),Q.return=C,C=Q):(Q=Er(N.type,N.key,N.props,null,C.mode,Q),Ps(Q,N),Q.return=C,C=Q)}return v(C);case _u:t:{for(P=N.key;M!==null;){if(M.key===P)if(M.tag===4&&M.stateNode.containerInfo===N.containerInfo&&M.stateNode.implementation===N.implementation){o(C,M.sibling),Q=h(M,N.children||[]),Q.return=C,C=Q;break t}else{o(C,M);break}else a(C,M);M=M.sibling}Q=um(N,C.mode,Q),Q.return=C,C=Q}return v(C);case Dl:return N=_a(N),Ga(C,M,N,Q)}if(Tr(N))return Ue(C,M,N,Q);if(y(N)){if(P=y(N),typeof P!="function")throw Error(n(150));return N=P.call(N),zo(C,M,N,Q)}if(typeof N.then=="function")return Ga(C,M,kc(N),Q);if(N.$$typeof===Nl)return Ga(C,M,Fc(C,N),Q);$c(C,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,M!==null&&M.tag===6?(o(C,M.sibling),Q=h(M,N),Q.return=C,C=Q):(o(C,M),Q=am(N,C.mode,Q),Q.return=C,C=Q),v(C)):o(C,M)}return function(C,M,N,Q){try{vo=0;var P=Ga(C,M,N,Q);return ju=null,P}catch($){if($===wu||$===Ur)throw $;var Zt=e(29,$,null,C.mode);return Zt.lanes=Q,Zt.return=C,Zt}finally{}}}function tr(){for(var l=Lu,a=Rm=Lu=0;a<l;){var o=Vi[a];Vi[a++]=null;var c=Vi[a];Vi[a++]=null;var h=Vi[a];Vi[a++]=null;var d=Vi[a];if(Vi[a++]=null,c!==null&&h!==null){var v=c.pending;v===null?h.next=h:(h.next=v.next,v.next=h),c.pending=h}d!==0&&Op(o,h,d)}}function er(l,a,o,c){Vi[Lu++]=l,Vi[Lu++]=a,Vi[Lu++]=o,Vi[Lu++]=c,Rm|=c,l.lanes|=c,l=l.alternate,l!==null&&(l.lanes|=c)}function fd(l,a,o,c){return er(l,a,o,c),ir(l)}function Aa(l,a){return er(l,null,null,a),ir(l)}function Op(l,a,o){l.lanes|=o;var c=l.alternate;c!==null&&(c.lanes|=o);for(var h=!1,d=l.return;d!==null;)d.childLanes|=o,c=d.alternate,c!==null&&(c.childLanes|=o),d.tag===22&&(l=d.stateNode,l===null||l._visibility&1||(h=!0)),l=d,d=d.return;return l.tag===3?(d=l.stateNode,h&&a!==null&&(h=31-Si(o),l=d.hiddenUpdates,c=l[h],c===null?l[h]=[a]:c.push(a),a.lane=o|536870912),d):null}function ir(l){if(50<To)throw To=0,Qm=null,Error(n(185));for(var a=l.return;a!==null;)l=a,a=l.return;return l.tag===3?l.stateNode:null}function hd(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dd(l,a){l=l.updateQueue,a.updateQueue===l&&(a.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function _l(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Al(l,a,o){var c=l.updateQueue;if(c===null)return null;if(c=c.shared,ot&2){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,a=ir(l),Op(l,null,o),a}return er(l,c,a,o),ir(l)}function Is(l,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var c=a.lanes;c&=l.pendingLanes,o|=c,a.lanes=o,G(l,o)}}function md(l,a){var o=l.updateQueue,c=l.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var h=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?h=d=v:d=d.next=v,o=o.next}while(o!==null);d===null?h=d=a:d=d.next=a}else h=d=a;o={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:d,shared:c.shared,callbacks:c.callbacks},l.updateQueue=o;return}l=o.lastBaseUpdate,l===null?o.firstBaseUpdate=a:l.next=a,o.lastBaseUpdate=a}function ks(){if(Nm){var l=Bu;if(l!==null)throw l}}function $s(l,a,o,c){Nm=!1;var h=l.updateQueue;wl=!1;var d=h.firstBaseUpdate,v=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var D=_,j=D.next;D.next=null,v===null?d=j:v.next=j,v=D;var V=l.alternate;V!==null&&(V=V.updateQueue,_=V.lastBaseUpdate,_!==v&&(_===null?V.firstBaseUpdate=j:_.next=j,V.lastBaseUpdate=D))}if(d!==null){var Y=h.baseState;v=0,V=j=D=null,_=d;do{var K=_.lane&-536870913,it=K!==_.lane;if(it?(dt&K)===K:(c&K)===K){K!==0&&K===Uu&&(Nm=!0),V!==null&&(V=V.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});t:{var Ue=l,zo=_;K=a;var Ga=o;switch(zo.tag){case 1:if(Ue=zo.payload,typeof Ue=="function"){Y=Ue.call(Ga,Y,K);break t}Y=Ue;break t;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=zo.payload,K=typeof Ue=="function"?Ue.call(Ga,Y,K):Ue,K==null)break t;Y=om({},Y,K);break t;case 2:wl=!0}}K=_.callback,K!==null&&(l.flags|=64,it&&(l.flags|=8192),it=h.callbacks,it===null?h.callbacks=[K]:it.push(K))}else it={lane:K,tag:_.tag,payload:_.payload,callback:_.callback,next:null},V===null?(j=V=it,D=Y):V=V.next=it,v|=K;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;it=_,_=it.next,it.next=null,h.lastBaseUpdate=it,h.shared.pending=null}}while(!0);V===null&&(D=Y),h.baseState=D,h.firstBaseUpdate=j,h.lastBaseUpdate=V,d===null&&(h.shared.lanes=0),Ll|=v,l.lanes=v,l.memoizedState=Y}}function Mp(l,a){if(typeof l!="function")throw Error(n(191,l));l.call(a)}function Cp(l,a){var o=l.callbacks;if(o!==null)for(l.callbacks=null,l=0;l<o.length;l++)Mp(o[l],a)}function Rp(l,a){l=$n,x(wr,l),x(qu,a),$n=l|a.baseLanes}function gd(){x(wr,$n),x(qu,qu.current)}function yd(){$n=wr.current,p(qu),p(wr)}function Ol(l){var a=l.alternate;x(ne,ne.current&1),x(xi,l),Zi===null&&(a===null||qu.current!==null||a.memoizedState!==null)&&(Zi=l)}function vd(l){x(ne,ne.current),x(xi,l),Zi===null&&(Zi=l)}function Np(l){l.tag===22?(x(ne,ne.current),x(xi,l),Zi===null&&(Zi=l)):Ml(l)}function Ml(){x(ne,ne.current),x(xi,xi.current)}function yi(l){p(xi),Zi===l&&(Zi=null),p(ne)}function nr(l){for(var a=l;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||vm(o)||pm(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Wt(){throw Error(n(321))}function pd(l,a){if(a===null)return!1;for(var o=0;o<a.length&&o<l.length;o++)if(!Ei(l[o],a[o]))return!1;return!0}function Sd(l,a,o,c,h,d){return In=d,at=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,W.H=l===null||l.memoizedState===null?lS:Dm,La=!1,d=o(c,h),La=!1,Gu&&(d=Hp(a,o,c,h)),Dp(l),d}function Dp(l){W.H=So;var a=Ot!==null&&Ot.next!==null;if(In=0,se=Ot=at=null,jr=!1,po=0,Yu=null,a)throw Error(n(300));l===null||oe||(l=l.dependencies,l!==null&&gi(l)&&(oe=!0))}function Hp(l,a,o,c){at=l;var h=0;do{if(Gu&&(Yu=null),po=0,Gu=!1,25<=h)throw Error(n(301));if(h+=1,se=Ot=null,l.updateQueue!=null){var d=l.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}W.H=aS,d=a(o,c)}while(Gu);return d}function i_(){var l=W.H,a=l.useState()[0];return a=typeof a.then=="function"?to(a):a,l=l.useState()[0],(Ot!==null?Ot.memoizedState:null)!==l&&(at.flags|=1024),a}function bd(){var l=Lr!==0;return Lr=0,l}function Ed(l,a,o){a.updateQueue=l.updateQueue,a.flags&=-2053,l.lanes&=~o}function xd(l){if(jr){for(l=l.memoizedState;l!==null;){var a=l.queue;a!==null&&(a.pending=null),l=l.next}jr=!1}In=0,se=Ot=at=null,Gu=!1,po=Lr=0,Yu=null}function Fe(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?at.memoizedState=se=l:se=se.next=l,se}function ie(){if(Ot===null){var l=at.alternate;l=l!==null?l.memoizedState:null}else l=Ot.next;var a=se===null?at.memoizedState:se.next;if(a!==null)se=a,Ot=l;else{if(l===null)throw at.alternate===null?Error(n(467)):Error(n(310));Ot=l,l={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},se===null?at.memoizedState=se=l:se=se.next=l}return se}function lr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(l){var a=po;return po+=1,Yu===null&&(Yu=[]),l=Tp(Yu,l,a),a=at,(se===null?a.memoizedState:se.next)===null&&(a=a.alternate,W.H=a===null||a.memoizedState===null?lS:Dm),l}function ar(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return to(l);if(l.$$typeof===Nl)return ee(l)}throw Error(n(438,String(l)))}function Td(l){var a=null,o=at.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=at.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=lr(),at.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(l),c=0;c<l;c++)o[c]=O_;return a.index++,o}function Xn(l,a){return typeof a=="function"?a(l):a}function ur(l){var a=ie();return zd(a,Ot,l)}function zd(l,a,o){var c=l.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=o;var h=l.baseQueue,d=c.pending;if(d!==null){if(h!==null){var v=h.next;h.next=d.next,d.next=v}a.baseQueue=h=d,c.pending=null}if(d=l.baseState,h===null)l.memoizedState=d;else{a=h.next;var _=v=null,D=null,j=a,V=!1;do{var Y=j.lane&-536870913;if(Y!==j.lane?(dt&Y)===Y:(In&Y)===Y){var K=j.revertLane;if(K===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Y===Uu&&(V=!0);else if((In&K)===K){j=j.next,K===Uu&&(V=!0);continue}else Y={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},D===null?(_=D=Y,v=d):D=D.next=Y,at.lanes|=K,Ll|=K;Y=j.action,La&&o(d,Y),d=j.hasEagerState?j.eagerState:o(d,Y)}else K={lane:Y,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},D===null?(_=D=K,v=d):D=D.next=K,at.lanes|=Y,Ll|=Y;j=j.next}while(j!==null&&j!==a);if(D===null?v=d:D.next=_,!Ei(d,l.memoizedState)&&(oe=!0,V&&(o=Bu,o!==null)))throw o;l.memoizedState=d,l.baseState=v,l.baseQueue=D,c.lastRenderedState=d}return h===null&&(c.lanes=0),[l.memoizedState,c.dispatch]}function _d(l){var a=ie(),o=a.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=l;var c=o.dispatch,h=o.pending,d=a.memoizedState;if(h!==null){o.pending=null;var v=h=h.next;do d=l(d,v.action),v=v.next;while(v!==h);Ei(d,a.memoizedState)||(oe=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),o.lastRenderedState=d}return[d,c]}function Up(l,a,o){var c=at,h=ie(),d=gt;if(d){if(o===void 0)throw Error(n(407));o=o()}else o=a();var v=!Ei((Ot||h).memoizedState,o);if(v&&(h.memoizedState=o,oe=!0),h=h.queue,Md(jp.bind(null,c,h,l),[l]),h.getSnapshot!==a||v||se!==null&&se.memoizedState.tag&1){if(c.flags|=2048,Eu(9,{destroy:void 0},wp.bind(null,c,h,o,a),null),Nt===null)throw Error(n(349));d||In&127||Bp(c,a,o)}return o}function Bp(l,a,o){l.flags|=16384,l={getSnapshot:a,value:o},a=at.updateQueue,a===null?(a=lr(),at.updateQueue=a,a.stores=[l]):(o=a.stores,o===null?a.stores=[l]:o.push(l))}function wp(l,a,o,c){a.value=o,a.getSnapshot=c,Lp(a)&&qp(l)}function jp(l,a,o){return o(function(){Lp(a)&&qp(l)})}function Lp(l){var a=l.getSnapshot;l=l.value;try{var o=a();return!Ei(l,o)}catch{return!0}}function qp(l){var a=Aa(l,2);a!==null&&ii(a,l,2)}function Ad(l){var a=Fe();if(typeof l=="function"){var o=l;if(l=o(),La){ht(!0);try{o()}finally{ht(!1)}}}return a.memoizedState=a.baseState=l,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:l},a}function Gp(l,a,o,c){return l.baseState=o,zd(l,Ot,typeof c=="function"?c:Xn)}function n_(l,a,o,c,h){if(cr(l))throw Error(n(485));if(l=a.action,l!==null){var d={payload:h,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};W.T!==null?o(!0):d.isTransition=!1,c(d),o=a.pending,o===null?(d.next=a.pending=d,Yp(a,d)):(d.next=o.next,a.pending=o.next=d)}}function Yp(l,a){var o=a.action,c=a.payload,h=l.state;if(a.isTransition){var d=W.T,v={};W.T=v;try{var _=o(h,c),D=W.S;D!==null&&D(v,_),Qp(l,a,_)}catch(j){Od(l,a,j)}finally{d!==null&&v.types!==null&&(d.types=v.types),W.T=d}}else try{d=o(h,c),Qp(l,a,d)}catch(j){Od(l,a,j)}}function Qp(l,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Xp(l,a,c)},function(c){return Od(l,a,c)}):Xp(l,a,o)}function Xp(l,a,o){a.status="fulfilled",a.value=o,Vp(a),l.state=o,a=l.pending,a!==null&&(o=a.next,o===a?l.pending=null:(o=o.next,a.next=o,Yp(l,o)))}function Od(l,a,o){var c=l.pending;if(l.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,Vp(a),a=a.next;while(a!==c)}l.action=null}function Vp(l){l=l.listeners;for(var a=0;a<l.length;a++)(0,l[a])()}function Zp(l,a){return a}function Kp(l,a){if(gt){var o=Nt.formState;if(o!==null){t:{var c=at;if(gt){if(Xt){var h=b3(Xt,Xi);if(h){Xt=G1(h),c=E3(h);break t}}qi(c)}c=!1}c&&(a=o[0])}}o=Fe(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zp,lastRenderedState:a},o.queue=c,o=r0.bind(null,at,c),c.dispatch=o,c=Ad(!1);var d=Dd.bind(null,at,!1,c.queue);return c=Fe(),h={state:a,dispatch:null,action:l,pending:null},c.queue=h,o=n_.bind(null,at,h,d,o),h.dispatch=o,c.memoizedState=l,[a,o,!1]}function Jp(l){var a=ie();return Fp(a,Ot,l)}function Fp(l,a,o){if(a=zd(l,a,Zp)[0],l=ur(Xn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=to(a)}catch(v){throw v===wu?Ur:v}else c=a;a=ie();var h=a.queue,d=h.dispatch;return o!==a.memoizedState&&(at.flags|=2048,Eu(9,{destroy:void 0},l_.bind(null,h,o),null)),[c,d,l]}function l_(l,a){l.action=a}function Wp(l){var a=ie(),o=Ot;if(o!==null)return Fp(a,o,l);ie(),a=a.memoizedState,o=ie();var c=o.queue.dispatch;return o.memoizedState=l,[a,c,!1]}function Eu(l,a,o,c){return l={tag:l,create:o,deps:c,inst:a,next:null},a=at.updateQueue,a===null&&(a=lr(),at.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=l.next=l:(c=o.next,o.next=l,l.next=c,a.lastEffect=l),l}function Pp(){return ie().memoizedState}function sr(l,a,o,c){var h=Fe();at.flags|=l,h.memoizedState=Eu(1|a,{destroy:void 0},o,c===void 0?null:c)}function or(l,a,o,c){var h=ie();c=c===void 0?null:c;var d=h.memoizedState.inst;Ot!==null&&c!==null&&pd(c,Ot.memoizedState.deps)?h.memoizedState=Eu(a,d,o,c):(at.flags|=l,h.memoizedState=Eu(1|a,d,o,c))}function Ip(l,a){sr(8390656,8,l,a)}function Md(l,a){or(2048,8,l,a)}function a_(l){at.flags|=4;var a=at.updateQueue;if(a===null)a=lr(),at.updateQueue=a,a.events=[l];else{var o=a.events;o===null?a.events=[l]:o.push(l)}}function kp(l){var a=ie().memoizedState;return a_({ref:a,nextImpl:l}),function(){if(ot&2)throw Error(n(440));return a.impl.apply(void 0,arguments)}}function $p(l,a){return or(4,2,l,a)}function t0(l,a){return or(4,4,l,a)}function e0(l,a){if(typeof a=="function"){l=l();var o=a(l);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return l=l(),a.current=l,function(){a.current=null}}function i0(l,a,o){o=o!=null?o.concat([l]):null,or(4,4,e0.bind(null,a,l),o)}function Cd(){}function n0(l,a){var o=ie();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&pd(a,c[1])?c[0]:(o.memoizedState=[l,a],l)}function l0(l,a){var o=ie();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&pd(a,c[1]))return c[0];if(c=l(),La){ht(!0);try{l()}finally{ht(!1)}}return o.memoizedState=[c,a],c}function Rd(l,a,o){return o===void 0||In&1073741824&&!(dt&261930)?l.memoizedState=a:(l.memoizedState=o,l=t1(),at.lanes|=l,Ll|=l,o)}function a0(l,a,o,c){return Ei(o,a)?o:qu.current!==null?(l=Rd(l,o,c),Ei(l,a)||(oe=!0),l):!(In&42)||In&1073741824&&!(dt&261930)?(oe=!0,l.memoizedState=o):(l=t1(),at.lanes|=l,Ll|=l,a)}function u0(l,a,o,c,h){var d=Wn();_e(d!==0&&8>d?d:8);var v=W.T,_={};W.T=_,Dd(l,!1,a,o);try{var D=h(),j=W.S;if(j!==null&&j(_,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var V=e_(D,c);eo(l,a,V,vi(l))}else eo(l,a,c,vi(l))}catch(Y){eo(l,a,{then:function(){},status:"rejected",reason:Y},vi())}finally{_e(d),v!==null&&_.types!==null&&(v.types=_.types),W.T=v}}function s0(l){var a=l.memoizedState;if(a!==null)return a;a={memoizedState:Ou,baseState:Ou,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:Ou},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:o},next:null},l.memoizedState=a,l=l.alternate,l!==null&&(l.memoizedState=a),a}function Nd(){return ee(Da)}function o0(){return ie().memoizedState}function c0(){return ie().memoizedState}function u_(l){for(var a=l.return;a!==null;){switch(a.tag){case 24:case 3:var o=vi();l=_l(o);var c=Al(a,l,o);c!==null&&(ii(c,a,o),Is(c,a,o)),a={cache:od()},l.payload=a;return}a=a.return}}function s_(l,a,o){var c=vi();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},cr(l)?f0(a,o):(o=fd(l,a,o,c),o!==null&&(ii(o,l,c),h0(o,a,c)))}function r0(l,a,o){var c=vi();eo(l,a,o,c)}function eo(l,a,o,c){var h={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(cr(l))f0(a,h);else{var d=l.alternate;if(l.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var v=a.lastRenderedState,_=d(v,o);if(h.hasEagerState=!0,h.eagerState=_,Ei(_,v))return er(l,a,h,0),Nt===null&&tr(),!1}catch{}finally{}if(o=fd(l,a,h,c),o!==null)return ii(o,l,c),h0(o,a,c),!0}return!1}function Dd(l,a,o,c){if(c={lane:2,revertLane:cd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},cr(l)){if(a)throw Error(n(479))}else a=fd(l,o,c,2),a!==null&&ii(a,l,2)}function cr(l){var a=l.alternate;return l===at||a!==null&&a===at}function f0(l,a){Gu=jr=!0;var o=l.pending;o===null?a.next=a:(a.next=o.next,o.next=a),l.pending=a}function h0(l,a,o){if(o&4194048){var c=a.lanes;c&=l.pendingLanes,o|=c,a.lanes=o,G(l,o)}}function Hd(l,a,o,c){a=l.memoizedState,o=o(c,a),o=o==null?a:om({},a,o),l.memoizedState=o,l.lanes===0&&(l.updateQueue.baseState=o)}function d0(l,a,o,c,h,d,v){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(c,d,v):a.prototype&&a.prototype.isPureReactComponent?!Ic(o,c)||!Ic(h,d):!0}function m0(l,a,o,c){l=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,c),a.state!==l&&Hm.enqueueReplaceState(a,a.state,null)}function Oa(l,a){var o=a;if("ref"in a){o={};for(var c in a)c!=="ref"&&(o[c]=a[c])}if(l=l.defaultProps){o===a&&(o=om({},o));for(var h in l)o[h]===void 0&&(o[h]=l[h])}return o}function rr(l,a){try{var o=l.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function g0(l,a,o){try{var c=l.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ud(l,a,o){return o=_l(o),o.tag=3,o.payload={element:null},o.callback=function(){rr(l,a)},o}function y0(l){return l=_l(l),l.tag=3,l}function v0(l,a,o,c){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var d=c.value;l.payload=function(){return h(d)},l.callback=function(){g0(a,o,c)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(l.callback=function(){g0(a,o,c),typeof h!="function"&&(ql===null?ql=new Set([this]):ql.add(this));var _=c.stack;this.componentDidCatch(c.value,{componentStack:_!==null?_:""})})}function o_(l,a,o,c,h){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&Gi(a,o,h,!0),o=xi.current,o!==null){switch(o.tag){case 31:case 13:return Zi===null?Sr():o.alternate===null&&Pt===0&&(Pt=3),o.flags&=-257,o.flags|=65536,o.lanes=h,c===Br?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),nm(l,c,h)),!1;case 22:return o.flags|=65536,c===Br?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([c]):o.add(c)),nm(l,c,h)),!1}throw Error(n(435,o.tag))}return nm(l,c,h),Sr(),!1}if(gt)return a=xi.current,a!==null?(!(a.flags&65536)&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==_m&&(l=Error(n(422),{cause:c}),zl(ue(l,o)))):(c!==_m&&(a=Error(n(423),{cause:c}),zl(ue(a,o))),l=l.current.alternate,l.flags|=65536,h&=-h,l.lanes|=h,c=ue(c,o),h=Ud(l.stateNode,c,h),md(l,h),Pt!==4&&(Pt=2)),!1;var d=Error(n(520),{cause:c});if(d=ue(d,o),Eo===null?Eo=[d]:Eo.push(d),Pt!==4&&(Pt=2),a===null)return!0;c=ue(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,l=h&-h,o.lanes|=l,l=Ud(o.stateNode,c,l),md(o,l),!1;case 1:if(a=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ql===null||!ql.has(d))))return o.flags|=65536,h&=-h,o.lanes|=h,h=y0(h),v0(h,l,o,c),md(o,h),!1}o=o.return}while(o!==null);return!1}function Ne(l,a,o,c){a.child=l===null?nS(a,null,o,c):ja(a,l.child,o,c)}function p0(l,a,o,c,h){o=o.render;var d=a.ref;if("ref"in c){var v={};for(var _ in c)_!=="ref"&&(v[_]=c[_])}else v=c;return Je(a),c=Sd(l,a,o,v,d,h),_=bd(),l!==null&&!oe?(Ed(l,a,h),Vn(l,a,h)):(gt&&_&&X(a),a.flags|=1,Ne(l,a,c,h),a.child)}function S0(l,a,o,c,h){if(l===null){var d=o.type;return typeof d=="function"&&!lm(d)&&d.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=d,b0(l,a,d,c,h)):(l=Er(o.type,null,c,a,a.mode,h),l.ref=a.ref,l.return=a,a.child=l)}if(d=l.child,!Yd(l,h)){var v=d.memoizedProps;if(o=o.compare,o=o!==null?o:Ic,o(v,c)&&l.ref===a.ref)return Vn(l,a,h)}return a.flags|=1,l=Jn(d,c),l.ref=a.ref,l.return=a,a.child=l}function b0(l,a,o,c,h){if(l!==null){var d=l.memoizedProps;if(Ic(d,c)&&l.ref===a.ref)if(oe=!1,a.pendingProps=c=d,Yd(l,h))l.flags&131072&&(oe=!0);else return a.lanes=l.lanes,Vn(l,a,h)}return Bd(l,a,o,c,h)}function E0(l,a,o,c){var h=c.children,d=l!==null?l.memoizedState:null;if(l===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if(a.flags&128){if(d=d!==null?d.baseLanes|o:o,l!==null){for(c=a.child=l.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~d}else c=0,a.child=null;return x0(l,a,d,o,c)}if(o&536870912)a.memoizedState={baseLanes:0,cachePool:null},l!==null&&Pc(a,d!==null?d.cachePool:null),d!==null?Rp(a,d):gd(),Np(a);else return c=a.lanes=536870912,x0(l,a,d!==null?d.baseLanes|o:o,o,c)}else d!==null?(Pc(a,d.cachePool),Rp(a,d),Ml(a),a.memoizedState=null):(l!==null&&Pc(a,null),gd(),Ml(a));return Ne(l,a,h,o),a.child}function io(l,a){return l!==null&&l.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function x0(l,a,o,c,h){var d=rd();return d=d===null?null:{parent:Fn?Vt._currentValue:Vt._currentValue2,pool:d},a.memoizedState={baseLanes:o,cachePool:d},l!==null&&Pc(a,null),gd(),Np(a),l!==null&&Gi(l,a,c,!0),a.childLanes=h,null}function fr(l,a){return a=dr({mode:a.mode,children:a.children},l.mode),a.ref=l.ref,l.child=a,a.return=l,a}function T0(l,a,o){return ja(a,l.child,null,o),l=fr(a,a.pendingProps),l.flags|=2,yi(a),a.memoizedState=null,l}function c_(l,a,o){var c=a.pendingProps,h=(a.flags&128)!==0;if(a.flags&=-129,l===null){if(gt){if(c.mode==="hidden")return l=fr(a,c),a.lanes=536870912,io(null,l);if(vd(a),(l=Xt)?(l=R3(l,Xi),l!==null&&(a.memoizedState={dehydrated:l,treeContext:Hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},o=b1(l),o.return=a,a.child=o,He=a,Xt=null)):l=null,l===null)throw qi(a);return a.lanes=536870912,null}return fr(a,c)}var d=l.memoizedState;if(d!==null){var v=d.dehydrated;if(vd(a),h)if(a.flags&256)a.flags&=-257,a=T0(l,a,o);else if(a.memoizedState!==null)a.child=l.child,a.flags|=128,a=null;else throw Error(n(558));else if(oe||Gi(l,a,o,!1),h=(o&l.childLanes)!==0,oe||h){if(c=Nt,c!==null&&(v=J(c,o),v!==0&&v!==d.retryLane))throw d.retryLane=v,Aa(l,v),ii(c,l,v),Um;Sr(),a=T0(l,a,o)}else l=d.treeContext,Ze&&(Xt=_3(v),He=a,gt=!0,Bl=null,Xi=!1,l!==null&&Ea(a,l)),a=fr(a,c),a.flags|=4096;return a}return l=Jn(l.child,{mode:c.mode,children:c.children}),l.ref=a.ref,a.child=l,l.return=a,l}function hr(l,a){var o=a.ref;if(o===null)l!==null&&l.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(n(284));(l===null||l.ref!==o)&&(a.flags|=4194816)}}function Bd(l,a,o,c,h){return Je(a),o=Sd(l,a,o,c,void 0,h),c=bd(),l!==null&&!oe?(Ed(l,a,h),Vn(l,a,h)):(gt&&c&&X(a),a.flags|=1,Ne(l,a,o,h),a.child)}function z0(l,a,o,c,h,d){return Je(a),a.updateQueue=null,o=Hp(a,c,o,h),Dp(l),c=bd(),l!==null&&!oe?(Ed(l,a,d),Vn(l,a,d)):(gt&&c&&X(a),a.flags|=1,Ne(l,a,o,d),a.child)}function _0(l,a,o,c,h){if(Je(a),a.stateNode===null){var d=Ru,v=o.contextType;typeof v=="object"&&v!==null&&(d=ee(v)),d=new o(c,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Hm,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=c,d.state=a.memoizedState,d.refs={},hd(a),v=o.contextType,d.context=typeof v=="object"&&v!==null?ee(v):Ru,d.state=a.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Hd(a,o,v,c),d.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&Hm.enqueueReplaceState(d,d.state,null),$s(a,c,d,h),ks(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(l===null){d=a.stateNode;var _=a.memoizedProps,D=Oa(o,_);d.props=D;var j=d.context,V=o.contextType;v=Ru,typeof V=="object"&&V!==null&&(v=ee(V));var Y=o.getDerivedStateFromProps;V=typeof Y=="function"||typeof d.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_||j!==v)&&m0(a,d,c,v),wl=!1;var K=a.memoizedState;d.state=K,$s(a,c,d,h),ks(),j=a.memoizedState,_||K!==j||wl?(typeof Y=="function"&&(Hd(a,o,Y,c),j=a.memoizedState),(D=wl||d0(a,o,D,c,K,j,v))?(V||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(a.flags|=4194308)):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=j),d.props=c,d.state=j,d.context=v,c=D):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{d=a.stateNode,dd(l,a),v=a.memoizedProps,V=Oa(o,v),d.props=V,Y=a.pendingProps,K=d.context,j=o.contextType,D=Ru,typeof j=="object"&&j!==null&&(D=ee(j)),_=o.getDerivedStateFromProps,(j=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==Y||K!==D)&&m0(a,d,c,D),wl=!1,K=a.memoizedState,d.state=K,$s(a,c,d,h),ks();var it=a.memoizedState;v!==Y||K!==it||wl||l!==null&&l.dependencies!==null&&gi(l.dependencies)?(typeof _=="function"&&(Hd(a,o,_,c),it=a.memoizedState),(V=wl||d0(a,o,V,c,K,it,D)||l!==null&&l.dependencies!==null&&gi(l.dependencies))?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(c,it,D),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(c,it,D)),typeof d.componentDidUpdate=="function"&&(a.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=it),d.props=c,d.state=it,d.context=D,c=V):(typeof d.componentDidUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=1024),c=!1)}return d=c,hr(l,a),c=(a.flags&128)!==0,d||c?(d=a.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:d.render(),a.flags|=1,l!==null&&c?(a.child=ja(a,l.child,null,h),a.child=ja(a,null,o,h)):Ne(l,a,o,h),a.memoizedState=d.state,l=a.child):l=Vn(l,a,h),l}function A0(l,a,o,c){return Qn(),a.flags|=256,Ne(l,a,o,c),a.child}function wd(l){return{baseLanes:l,cachePool:Ep()}}function jd(l,a,o){return l=l!==null?l.childLanes&~o:0,a&&(l|=zi),l}function O0(l,a,o){var c=a.pendingProps,h=!1,d=(a.flags&128)!==0,v;if((v=d)||(v=l!==null&&l.memoizedState===null?!1:(ne.current&2)!==0),v&&(h=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,l===null){if(gt){if(h?Ol(a):Ml(a),(l=Xt)?(l=N3(l,Xi),l!==null&&(a.memoizedState={dehydrated:l,treeContext:Hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},o=b1(l),o.return=a,a.child=o,He=a,Xt=null)):l=null,l===null)throw qi(a);return pm(l)?a.lanes=32:a.lanes=536870912,null}var _=c.children;return c=c.fallback,h?(Ml(a),h=a.mode,_=dr({mode:"hidden",children:_},h),c=Ra(c,h,o,null),_.return=a,c.return=a,_.sibling=c,a.child=_,c=a.child,c.memoizedState=wd(o),c.childLanes=jd(l,v,o),a.memoizedState=Bm,io(null,c)):(Ol(a),Ld(a,_))}var D=l.memoizedState;if(D!==null&&(_=D.dehydrated,_!==null)){if(d)a.flags&256?(Ol(a),a.flags&=-257,a=qd(l,a,o)):a.memoizedState!==null?(Ml(a),a.child=l.child,a.flags|=128,a=null):(Ml(a),_=c.fallback,h=a.mode,c=dr({mode:"visible",children:c.children},h),_=Ra(_,h,o,null),_.flags|=2,c.return=a,_.return=a,c.sibling=_,a.child=c,ja(a,l.child,null,o),c=a.child,c.memoizedState=wd(o),c.childLanes=jd(l,v,o),a.memoizedState=Bm,a=io(null,c));else if(Ol(a),pm(_))v=p3(_).digest,c=Error(n(419)),c.stack="",c.digest=v,zl({value:c,source:null,stack:null}),a=qd(l,a,o);else if(oe||Gi(l,a,o,!1),v=(o&l.childLanes)!==0,oe||v){if(v=Nt,v!==null&&(c=J(v,o),c!==0&&c!==D.retryLane))throw D.retryLane=c,Aa(l,c),ii(v,l,c),Um;vm(_)||Sr(),a=qd(l,a,o)}else vm(_)?(a.flags|=192,a.child=l.child,a=null):(l=D.treeContext,Ze&&(Xt=A3(_),He=a,gt=!0,Bl=null,Xi=!1,l!==null&&Ea(a,l)),a=Ld(a,c.children),a.flags|=4096);return a}return h?(Ml(a),_=c.fallback,h=a.mode,D=l.child,d=D.sibling,c=Jn(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,d!==null?_=Jn(d,_):(_=Ra(_,h,o,null),_.flags|=2),_.return=a,c.return=a,c.sibling=_,a.child=c,io(null,c),c=a.child,_=l.child.memoizedState,_===null?_=wd(o):(h=_.cachePool,h!==null?(D=Fn?Vt._currentValue:Vt._currentValue2,h=h.parent!==D?{parent:D,pool:D}:h):h=Ep(),_={baseLanes:_.baseLanes|o,cachePool:h}),c.memoizedState=_,c.childLanes=jd(l,v,o),a.memoizedState=Bm,io(l.child,c)):(Ol(a),o=l.child,l=o.sibling,o=Jn(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,l!==null&&(v=a.deletions,v===null?(a.deletions=[l],a.flags|=16):v.push(l)),a.child=o,a.memoizedState=null,o)}function Ld(l,a){return a=dr({mode:"visible",children:a},l.mode),a.return=l,l.child=a}function dr(l,a){return l=e(22,l,null,a),l.lanes=0,l}function qd(l,a,o){return ja(a,l.child,null,o),l=Ld(a,a.pendingProps.children),l.flags|=2,a.memoizedState=null,l}function M0(l,a,o){l.lanes|=a;var c=l.alternate;c!==null&&(c.lanes|=a),Rt(l.return,a,o)}function Gd(l,a,o,c,h,d){var v=l.memoizedState;v===null?l.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h,treeForkCount:d}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=c,v.tail=o,v.tailMode=h,v.treeForkCount=d)}function C0(l,a,o){var c=a.pendingProps,h=c.revealOrder,d=c.tail;c=c.children;var v=ne.current,_=(v&2)!==0;if(_?(v=v&1|2,a.flags|=128):v&=1,x(ne,v),Ne(l,a,c,o),c=gt?mo:0,!_&&l!==null&&l.flags&128)t:for(l=a.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&M0(l,o,a);else if(l.tag===19)M0(l,o,a);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break t;for(;l.sibling===null;){if(l.return===null||l.return===a)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(h){case"forwards":for(o=a.child,h=null;o!==null;)l=o.alternate,l!==null&&nr(l)===null&&(h=o),o=o.sibling;o=h,o===null?(h=a.child,a.child=null):(h=o.sibling,o.sibling=null),Gd(a,!1,h,o,d,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,h=a.child,a.child=null;h!==null;){if(l=h.alternate,l!==null&&nr(l)===null){a.child=h;break}l=h.sibling,h.sibling=o,o=h,h=l}Gd(a,!0,o,null,d,c);break;case"together":Gd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Vn(l,a,o){if(l!==null&&(a.dependencies=l.dependencies),Ll|=a.lanes,!(o&a.childLanes))if(l!==null){if(Gi(l,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(l!==null&&a.child!==l.child)throw Error(n(153));if(a.child!==null){for(l=a.child,o=Jn(l,l.pendingProps),a.child=o,o.return=a;l.sibling!==null;)l=l.sibling,o=o.sibling=Jn(l,l.pendingProps),o.return=a;o.sibling=null}return a.child}function Yd(l,a){return l.lanes&a?!0:(l=l.dependencies,!!(l!==null&&gi(l)))}function r_(l,a,o){switch(a.tag){case 3:pu(a,a.stateNode.containerInfo),k(a,Vt,l.memoizedState.cache),Qn();break;case 27:case 5:Su(a);break;case 4:pu(a,a.stateNode.containerInfo);break;case 10:k(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,vd(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Ol(a),a.flags|=128,null):o&a.child.childLanes?O0(l,a,o):(Ol(a),l=Vn(l,a,o),l!==null?l.sibling:null);Ol(a);break;case 19:var h=(l.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(Gi(l,a,o,!1),c=(o&a.childLanes)!==0),h){if(c)return C0(l,a,o);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),x(ne,ne.current),c)break;return null;case 22:return a.lanes=0,E0(l,a,o,a.pendingProps);case 24:k(a,Vt,l.memoizedState.cache)}return Vn(l,a,o)}function R0(l,a,o){if(l!==null)if(l.memoizedProps!==a.pendingProps)oe=!0;else{if(!Yd(l,o)&&!(a.flags&128))return oe=!1,r_(l,a,o);oe=!!(l.flags&131072)}else oe=!1,gt&&a.flags&1048576&&Fs(a,mo,a.index);switch(a.lanes=0,a.tag){case 16:t:{var c=a.pendingProps;if(l=_a(a.elementType),a.type=l,typeof l=="function")lm(l)?(c=Oa(l,c),a.tag=1,a=_0(null,a,l,c,o)):(a.tag=0,a=Bd(null,a,l,c,o));else{if(l!=null){var h=l.$$typeof;if(h===rm){a.tag=11,a=p0(null,a,l,c,o);break t}else if(h===dm){a.tag=14,a=S0(null,a,l,c,o);break t}}throw a=g(l)||l,Error(n(306,a,""))}}return a;case 0:return Bd(l,a,a.type,a.pendingProps,o);case 1:return c=a.type,h=Oa(c,a.pendingProps),_0(l,a,c,h,o);case 3:t:{if(pu(a,a.stateNode.containerInfo),l===null)throw Error(n(387));var d=a.pendingProps;h=a.memoizedState,c=h.element,dd(l,a),$s(a,d,null,o);var v=a.memoizedState;if(d=v.cache,k(a,Vt,d),d!==h.cache&&ve(a,[Vt],o,!0),ks(),d=v.element,Ze&&h.isDehydrated)if(h={element:d,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=A0(l,a,d,o);break t}else if(d!==c){c=ue(Error(n(424)),a),zl(c),a=A0(l,a,d,o);break t}else for(Ze&&(Xt=z3(a.stateNode.containerInfo),He=a,gt=!0,Bl=null,Xi=!0),o=nS(a,null,d,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Qn(),d===c){a=Vn(l,a,o);break t}Ne(l,a,d,o)}a=a.child}return a;case 26:if(rn)return hr(l,a),l===null?(o=X1(a.type,null,a.pendingProps,null))?a.memoizedState=o:gt||(a.stateNode=I3(a.type,a.pendingProps,Ul.current,a)):a.memoizedState=X1(a.type,l.memoizedProps,a.pendingProps,l.memoizedState),null;case 27:if(pe)return Su(a),l===null&&pe&>&&(c=a.stateNode=W1(a.type,a.pendingProps,Ul.current,De.current,!1),He=a,Xi=!0,Xt=O3(a.type,c,Xt)),Ne(l,a,a.pendingProps.children,o),hr(l,a),l===null&&(a.flags|=4194304),a.child;case 5:return l===null&>&&(F3(a.type,a.pendingProps,De.current),(h=c=Xt)&&(c=M3(c,a.type,a.pendingProps,Xi),c!==null?(a.stateNode=c,He=a,Xt=T3(c),Xi=!1,h=!0):h=!1),h||qi(a)),Su(a),h=a.type,d=a.pendingProps,v=l!==null?l.memoizedProps:null,c=d.children,zr(h,d)?c=null:v!==null&&zr(h,v)&&(a.flags|=32),a.memoizedState!==null&&(h=Sd(l,a,i_,null,null,o),Fn?Da._currentValue=h:Da._currentValue2=h),hr(l,a),Ne(l,a,c,o),a.child;case 6:return l===null&>&&(W3(a.pendingProps,De.current),(l=o=Xt)&&(o=C3(o,a.pendingProps,Xi),o!==null?(a.stateNode=o,He=a,Xt=null,l=!0):l=!1),l||qi(a)),null;case 13:return O0(l,a,o);case 4:return pu(a,a.stateNode.containerInfo),c=a.pendingProps,l===null?a.child=ja(a,null,c,o):Ne(l,a,c,o),a.child;case 11:return p0(l,a,a.type,a.pendingProps,o);case 7:return Ne(l,a,a.pendingProps,o),a.child;case 8:return Ne(l,a,a.pendingProps.children,o),a.child;case 12:return Ne(l,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,k(a,a.type,c.value),Ne(l,a,c.children,o),a.child;case 9:return h=a.type._context,c=a.pendingProps.children,Je(a),h=ee(h),c=c(h),a.flags|=1,Ne(l,a,c,o),a.child;case 14:return S0(l,a,a.type,a.pendingProps,o);case 15:return b0(l,a,a.type,a.pendingProps,o);case 19:return C0(l,a,o);case 31:return c_(l,a,o);case 22:return E0(l,a,o,a.pendingProps);case 24:return Je(a),c=ee(Vt),l===null?(h=rd(),h===null&&(h=Nt,d=od(),h.pooledCache=d,d.refCount++,d!==null&&(h.pooledCacheLanes|=o),h=d),a.memoizedState={parent:c,cache:h},hd(a),k(a,Vt,h)):(l.lanes&o&&(dd(l,a),$s(a,null,null,o),ks()),h=l.memoizedState,d=a.memoizedState,h.parent!==c?(h={parent:c,cache:c},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),k(a,Vt,c)):(c=d.cache,k(a,Vt,c),c!==h.cache&&ve(a,[Vt],o,!0))),Ne(l,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(n(156,a.tag))}function sn(l){l.flags|=4}function mr(l){bn&&(l.flags|=8)}function N0(l,a){if(l!==null&&l.child===a.child)return!1;if(a.flags&16)return!0;for(l=a.child;l!==null;){if(l.flags&8218||l.subtreeFlags&8218)return!0;l=l.sibling}return!1}function Qd(l,a,o,c){if(Ve)for(o=a.child;o!==null;){if(o.tag===5||o.tag===6)gm(l,o.stateNode);else if(!(o.tag===4||pe&&o.tag===27)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return;o=o.return}o.sibling.return=o.return,o=o.sibling}else if(bn)for(var h=a.child;h!==null;){if(h.tag===5){var d=h.stateNode;o&&c&&(d=L1(d,h.type,h.memoizedProps)),gm(l,d)}else if(h.tag===6)d=h.stateNode,o&&c&&(d=q1(d,h.memoizedProps)),gm(l,d);else if(h.tag!==4){if(h.tag===22&&h.memoizedState!==null)d=h.child,d!==null&&(d.return=h),Qd(l,h,!0,!0);else if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===a)break;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function D0(l,a,o,c){var h=!1;if(bn)for(var d=a.child;d!==null;){if(d.tag===5){var v=d.stateNode;o&&c&&(v=L1(v,d.type,d.memoizedProps)),w1(l,v)}else if(d.tag===6)v=d.stateNode,o&&c&&(v=q1(v,d.memoizedProps)),w1(l,v);else if(d.tag!==4){if(d.tag===22&&d.memoizedState!==null)h=d.child,h!==null&&(h.return=d),D0(l,d,!0,!0),h=!0;else if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return h;d=d.return}d.sibling.return=d.return,d=d.sibling}return h}function H0(l,a){if(bn&&N0(l,a)){l=a.stateNode;var o=l.containerInfo,c=B1();D0(c,a,!1,!1),l.pendingChildren=c,sn(a),v3(o,c)}}function Xd(l,a,o,c){if(Ve)l.memoizedProps!==c&&sn(a);else if(bn){var h=l.stateNode,d=l.memoizedProps;if((l=N0(l,a))||d!==c){var v=De.current;d=y3(h,o,d,c,!l,null),d===h?a.stateNode=h:(mr(a),R1(d,o,c,v)&&sn(a),a.stateNode=d,l&&Qd(d,a,!1,!1))}else a.stateNode=h}}function Vd(l,a,o,c,h){if(l.mode&32&&(o===null?X_(a,c):V_(a,o,c))){if(l.flags|=16777216,(h&335544128)===h||ym(a,c))if(D1(l.stateNode,a,c))l.flags|=8192;else if(a1())l.flags|=8192;else throw wa=Br,Cm}else l.flags&=-16777217}function U0(l,a){if($3(a)){if(l.flags|=16777216,!F1(a))if(a1())l.flags|=8192;else throw wa=Br,Cm}else l.flags&=-16777217}function gr(l,a){a!==null&&(l.flags|=4),l.flags&16384&&(a=l.tag!==22?z():536870912,l.lanes|=a,Vu|=a)}function no(l,a){if(!gt)switch(l.tailMode){case"hidden":a=l.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?l.tail=null:o.sibling=null;break;case"collapsed":o=l.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||l.tail===null?l.tail=null:l.tail.sibling=null:c.sibling=null}}function Bt(l){var a=l.alternate!==null&&l.alternate.child===l.child,o=0,c=0;if(a)for(var h=l.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=l,h=h.sibling;else for(h=l.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=l,h=h.sibling;return l.subtreeFlags|=c,l.childLanes=o,a}function f_(l,a,o){var c=a.pendingProps;switch(Ut(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(a),null;case 1:return Bt(a),null;case 3:return o=a.stateNode,c=null,l!==null&&(c=l.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),lt(Vt),Yn(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(l===null||l.child===null)&&(Ta(a)?sn(a):l===null||l.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,za())),H0(l,a),Bt(a),null;case 26:if(rn){var h=a.type,d=a.memoizedState;return l===null?(sn(a),d!==null?(Bt(a),U0(a,d)):(Bt(a),Vd(a,h,null,c,o))):d?d!==l.memoizedState?(sn(a),Bt(a),U0(a,d)):(Bt(a),a.flags&=-16777217):(d=l.memoizedProps,Ve?d!==c&&sn(a):Xd(l,a,h,c),Bt(a),Vd(a,h,d,c,o)),null}case 27:if(pe){if(xa(a),o=Ul.current,h=a.type,l!==null&&a.stateNode!=null)Ve?l.memoizedProps!==c&&sn(a):Xd(l,a,h,c);else{if(!c){if(a.stateNode===null)throw Error(n(166));return Bt(a),null}l=De.current,Ta(a)?Jc(a,l):(l=W1(h,c,o,l,!0),a.stateNode=l,sn(a))}return Bt(a),null}case 5:if(xa(a),h=a.type,l!==null&&a.stateNode!=null)Xd(l,a,h,c);else{if(!c){if(a.stateNode===null)throw Error(n(166));return Bt(a),null}if(d=De.current,Ta(a))Jc(a,d),Q3(a.stateNode,h,c,d)&&(a.flags|=64);else{var v=B_(h,c,Ul.current,d,a);mr(a),Qd(v,a,!1,!1),a.stateNode=v,R1(v,h,c,d)&&sn(a)}}return Bt(a),Vd(a,a.type,l===null?null:l.memoizedProps,a.pendingProps,o),null;case 6:if(l&&a.stateNode!=null)o=l.memoizedProps,Ve?o!==c&&sn(a):bn&&(o!==c?(l=Ul.current,o=De.current,mr(a),a.stateNode=N1(c,l,o,a)):a.stateNode=l.stateNode);else{if(typeof c!="string"&&a.stateNode===null)throw Error(n(166));if(l=Ul.current,o=De.current,Ta(a)){if(!Ze)throw Error(n(176));if(l=a.stateNode,o=a.memoizedProps,c=null,h=He,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}H3(l,o,a,c)||qi(a,!0)}else mr(a),a.stateNode=N1(c,l,o,a)}return Bt(a),null;case 31:if(o=a.memoizedState,l===null||l.memoizedState!==null){if(c=Ta(a),o!==null){if(l===null){if(!c)throw Error(n(318));if(!Ze)throw Error(n(556));if(l=a.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(557));U3(l,a)}else Qn(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Bt(a),l=!1}else o=za(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=o),l=!0;if(!l)return a.flags&256?(yi(a),a):(yi(a),null);if(a.flags&128)throw Error(n(558))}return Bt(a),null;case 13:if(c=a.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(h=Ta(a),c!==null&&c.dehydrated!==null){if(l===null){if(!h)throw Error(n(318));if(!Ze)throw Error(n(344));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));B3(h,a)}else Qn(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Bt(a),h=!1}else h=za(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(yi(a),a):(yi(a),null)}return yi(a),a.flags&128?(a.lanes=o,a):(o=c!==null,l=l!==null&&l.memoizedState!==null,o&&(c=a.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),d=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(d=c.memoizedState.cachePool.pool),d!==h&&(c.flags|=2048)),o!==l&&o&&(a.child.flags|=8192),gr(a,a.updateQueue),Bt(a),null);case 4:return Yn(),H0(l,a),l===null&&q_(a.stateNode.containerInfo),Bt(a),null;case 10:return lt(a.type),Bt(a),null;case 19:if(p(ne),c=a.memoizedState,c===null)return Bt(a),null;if(h=(a.flags&128)!==0,d=c.rendering,d===null)if(h)no(c,!1);else{if(Pt!==0||l!==null&&l.flags&128)for(l=a.child;l!==null;){if(d=nr(l),d!==null){for(a.flags|=128,no(c,!1),l=d.updateQueue,a.updateQueue=l,gr(a,l),a.subtreeFlags=0,l=o,o=a.child;o!==null;)S1(o,l),o=o.sibling;return x(ne,ne.current&1|2),gt&&ye(a,c.treeForkCount),a.child}l=l.sibling}c.tail!==null&&ni()>xo&&(a.flags|=128,h=!0,no(c,!1),a.lanes=4194304)}else{if(!h)if(l=nr(d),l!==null){if(a.flags|=128,h=!0,l=l.updateQueue,a.updateQueue=l,gr(a,l),no(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!gt)return Bt(a),null}else 2*ni()-c.renderingStartTime>xo&&o!==536870912&&(a.flags|=128,h=!0,no(c,!1),a.lanes=4194304);c.isBackwards?(d.sibling=a.child,a.child=d):(l=c.last,l!==null?l.sibling=d:a.child=d,c.last=d)}return c.tail!==null?(l=c.tail,c.rendering=l,c.tail=l.sibling,c.renderingStartTime=ni(),l.sibling=null,o=ne.current,x(ne,h?o&1|2:o&1),gt&&ye(a,c.treeForkCount),l):(Bt(a),null);case 22:case 23:return yi(a),yd(),c=a.memoizedState!==null,l!==null?l.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?o&536870912&&!(a.flags&128)&&(Bt(a),a.subtreeFlags&6&&(a.flags|=8192)):Bt(a),o=a.updateQueue,o!==null&&gr(a,o.retryQueue),o=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048),l!==null&&p(Ba),null;case 24:return o=null,l!==null&&(o=l.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),lt(Vt),Bt(a),null;case 25:return null;case 30:return null}throw Error(n(156,a.tag))}function h_(l,a){switch(Ut(a),a.tag){case 1:return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 3:return lt(Vt),Yn(),l=a.flags,l&65536&&!(l&128)?(a.flags=l&-65537|128,a):null;case 26:case 27:case 5:return xa(a),null;case 31:if(a.memoizedState!==null){if(yi(a),a.alternate===null)throw Error(n(340));Qn()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 13:if(yi(a),l=a.memoizedState,l!==null&&l.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Qn()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 19:return p(ne),null;case 4:return Yn(),null;case 10:return lt(a.type),null;case 22:case 23:return yi(a),yd(),l!==null&&p(Ba),l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 24:return lt(Vt),null;case 25:return null;default:return null}}function B0(l,a){switch(Ut(a),a.tag){case 3:lt(Vt),Yn();break;case 26:case 27:case 5:xa(a);break;case 4:Yn();break;case 31:a.memoizedState!==null&&yi(a);break;case 13:yi(a);break;case 19:p(ne);break;case 10:lt(a.type);break;case 22:case 23:yi(a),yd(),l!==null&&p(Ba);break;case 24:lt(Vt)}}function lo(l,a){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var h=c.next;o=h;do{if((o.tag&l)===l){c=void 0;var d=o.create,v=o.inst;c=d(),v.destroy=c}o=o.next}while(o!==h)}}catch(_){pt(a,a.return,_)}}function Cl(l,a,o){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var d=h.next;c=d;do{if((c.tag&l)===l){var v=c.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,h=a;var D=o,j=_;try{j()}catch(V){pt(h,D,V)}}}c=c.next}while(c!==d)}}catch(V){pt(a,a.return,V)}}function w0(l){var a=l.updateQueue;if(a!==null){var o=l.stateNode;try{Cp(a,o)}catch(c){pt(l,l.return,c)}}}function j0(l,a,o){o.props=Oa(l.type,l.memoizedProps),o.state=l.memoizedState;try{o.componentWillUnmount()}catch(c){pt(l,a,c)}}function ao(l,a){try{var o=l.ref;if(o!==null){switch(l.tag){case 26:case 27:case 5:var c=co(l.stateNode);break;case 30:c=l.stateNode;break;default:c=l.stateNode}typeof o=="function"?l.refCleanup=o(c):o.current=c}}catch(h){pt(l,a,h)}}function Sn(l,a){var o=l.ref,c=l.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(h){pt(l,a,h)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){pt(l,a,h)}else o.current=null}function L0(l){var a=l.type,o=l.memoizedProps,c=l.stateNode;try{a3(c,a,o,l)}catch(h){pt(l,l.return,h)}}function Zd(l,a,o){try{u3(l.stateNode,l.type,o,a,l)}catch(c){pt(l,l.return,c)}}function q0(l){return l.tag===5||l.tag===3||(rn?l.tag===26:!1)||(pe?l.tag===27&&Mu(l.type):!1)||l.tag===4}function Kd(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||q0(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(pe&&l.tag===27&&Mu(l.type)||l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Jd(l,a,o){var c=l.tag;if(c===5||c===6)l=l.stateNode,a?o3(o,l,a):n3(o,l);else if(c!==4&&(pe&&c===27&&Mu(l.type)&&(o=l.stateNode,a=null),l=l.child,l!==null))for(Jd(l,a,o),l=l.sibling;l!==null;)Jd(l,a,o),l=l.sibling}function yr(l,a,o){var c=l.tag;if(c===5||c===6)l=l.stateNode,a?s3(o,l,a):i3(o,l);else if(c!==4&&(pe&&c===27&&Mu(l.type)&&(o=l.stateNode),l=l.child,l!==null))for(yr(l,a,o),l=l.sibling;l!==null;)yr(l,a,o),l=l.sibling}function G0(l,a,o){l=l.containerInfo;try{j1(l,o)}catch(c){pt(a,a.return,c)}}function Y0(l){var a=l.stateNode,o=l.memoizedProps;try{eA(l.type,o,a,l)}catch(c){pt(l,l.return,c)}}function d_(l,a){for(H_(l.containerInfo),Ae=a;Ae!==null;)if(l=Ae,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,Ae=a;else for(;Ae!==null;){l=Ae;var o=l.alternate;switch(a=l.flags,l.tag){case 0:if(a&4&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(var c=0;c<a.length;c++){var h=a[c];h.ref.impl=h.nextImpl}break;case 11:case 15:break;case 1:if(a&1024&&o!==null){a=void 0,c=l,h=o.memoizedProps,o=o.memoizedState;var d=c.stateNode;try{var v=Oa(c.type,h);a=d.getSnapshotBeforeUpdate(v,o),d.__reactInternalSnapshotBeforeUpdate=a}catch(_){pt(c,c.return,_)}}break;case 3:a&1024&&Ve&&g3(l.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(a&1024)throw Error(n(163))}if(a=l.sibling,a!==null){a.return=l.return,Ae=a;break}Ae=l.return}}function Q0(l,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:Zn(l,o),c&4&&lo(5,o);break;case 1:if(Zn(l,o),c&4)if(l=o.stateNode,a===null)try{l.componentDidMount()}catch(v){pt(o,o.return,v)}else{var h=Oa(o.type,a.memoizedProps);a=a.memoizedState;try{l.componentDidUpdate(h,a,l.__reactInternalSnapshotBeforeUpdate)}catch(v){pt(o,o.return,v)}}c&64&&w0(o),c&512&&ao(o,o.return);break;case 3:if(Zn(l,o),c&64&&(c=o.updateQueue,c!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=co(o.child.stateNode);break;case 1:l=o.child.stateNode}try{Cp(c,l)}catch(v){pt(o,o.return,v)}}break;case 27:pe&&a===null&&c&4&&Y0(o);case 26:case 5:if(Zn(l,o),a===null){if(c&4)L0(o);else if(c&64){l=o.type,a=o.memoizedProps,h=o.stateNode;try{L3(h,l,a,o)}catch(v){pt(o,o.return,v)}}}c&512&&ao(o,o.return);break;case 12:Zn(l,o);break;case 31:Zn(l,o),c&4&&V0(l,o);break;case 13:Zn(l,o),c&4&&Z0(l,o),c&64&&(c=o.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(o=b_.bind(null,o),S3(c,o))));break;case 22:if(c=o.memoizedState!==null||kn,!c){a=a!==null&&a.memoizedState!==null||ce,h=kn;var d=ce;kn=c,(ce=a)&&!d?Kn(l,o,(o.subtreeFlags&8772)!==0):Zn(l,o),kn=h,ce=d}break;case 30:break;default:Zn(l,o)}}function X0(l){var a=l.alternate;a!==null&&(l.alternate=null,X0(a)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(a=l.stateNode,a!==null&&Q_(a)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function on(l,a,o){for(o=o.child;o!==null;)Fd(l,a,o),o=o.sibling}function Fd(l,a,o){if(bi&&typeof bi.onCommitFiberUnmount=="function")try{bi.onCommitFiberUnmount(ho,o)}catch{}switch(o.tag){case 26:if(rn){ce||Sn(o,a),on(l,a,o),o.memoizedState?Z1(o.memoizedState):o.stateNode&&J1(o.stateNode);break}case 27:if(pe){ce||Sn(o,a);var c=re,h=li;Mu(o.type)&&(re=o.stateNode,li=!1),on(l,a,o),P1(o.stateNode),re=c,li=h;break}case 5:ce||Sn(o,a);case 6:if(Ve){if(c=re,h=li,re=null,on(l,a,o),re=c,li=h,re!==null)if(li)try{r3(re,o.stateNode)}catch(d){pt(o,a,d)}else try{c3(re,o.stateNode)}catch(d){pt(o,a,d)}}else on(l,a,o);break;case 18:Ve&&re!==null&&(li?Z3(re,o.stateNode):V3(re,o.stateNode));break;case 4:Ve?(c=re,h=li,re=o.stateNode.containerInfo,li=!0,on(l,a,o),re=c,li=h):(bn&&G0(o.stateNode,o,B1()),on(l,a,o));break;case 0:case 11:case 14:case 15:Cl(2,o,a),ce||Cl(4,o,a),on(l,a,o);break;case 1:ce||(Sn(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&j0(o,a,c)),on(l,a,o);break;case 21:on(l,a,o);break;case 22:ce=(c=ce)||o.memoizedState!==null,on(l,a,o),ce=c;break;default:on(l,a,o)}}function V0(l,a){if(Ze&&a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{G3(l)}catch(o){pt(a,a.return,o)}}}function Z0(l,a){if(Ze&&a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Y3(l)}catch(o){pt(a,a.return,o)}}function m_(l){switch(l.tag){case 31:case 13:case 19:var a=l.stateNode;return a===null&&(a=l.stateNode=new uS),a;case 22:return l=l.stateNode,a=l._retryCache,a===null&&(a=l._retryCache=new uS),a;default:throw Error(n(435,l.tag))}}function vr(l,a){var o=m_(l);a.forEach(function(c){if(!o.has(c)){o.add(c);var h=E_.bind(null,l,c);c.then(h,h)}})}function Xe(l,a){var o=a.deletions;if(o!==null)for(var c=0;c<o.length;c++){var h=o[c],d=l,v=a;if(Ve){var _=v;t:for(;_!==null;){switch(_.tag){case 27:if(pe){if(Mu(_.type)){re=_.stateNode,li=!1;break t}break}case 5:re=_.stateNode,li=!1;break t;case 3:case 4:re=_.stateNode.containerInfo,li=!0;break t}_=_.return}if(re===null)throw Error(n(160));Fd(d,v,h),re=null,li=!1}else Fd(d,v,h);d=h.alternate,d!==null&&(d.return=null),h.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)K0(a,l),a=a.sibling}function K0(l,a){var o=l.alternate,c=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Xe(a,l),We(l),c&4&&(Cl(3,l,l.return),lo(3,l),Cl(5,l,l.return));break;case 1:Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),c&64&&kn&&(l=l.updateQueue,l!==null&&(c=l.callbacks,c!==null&&(o=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:if(rn){var h=fn;if(Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),c&4){c=o!==null?o.memoizedState:null;var d=l.memoizedState;o===null?d===null?l.stateNode===null?l.stateNode=P3(h,l.type,l.memoizedProps,l):K1(h,l.type,l.stateNode):l.stateNode=V1(h,d,l.memoizedProps):c!==d?(c===null?o.stateNode!==null&&J1(o.stateNode):Z1(c),d===null?K1(h,l.type,l.stateNode):V1(h,d,l.memoizedProps)):d===null&&l.stateNode!==null&&Zd(l,l.memoizedProps,o.memoizedProps)}break}case 27:if(pe){Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),o!==null&&c&4&&Zd(l,l.memoizedProps,o.memoizedProps);break}case 5:if(Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),Ve){if(l.flags&32){h=l.stateNode;try{U1(h)}catch(Y){pt(l,l.return,Y)}}c&4&&l.stateNode!=null&&(h=l.memoizedProps,Zd(l,h,o!==null?o.memoizedProps:h)),c&1024&&(wm=!0)}else bn&&l.alternate!==null&&(l.alternate.stateNode=l.stateNode);break;case 6:if(Xe(a,l),We(l),c&4&&Ve){if(l.stateNode===null)throw Error(n(162));c=l.memoizedProps,o=o!==null?o.memoizedProps:c,h=l.stateNode;try{l3(h,o,c)}catch(Y){pt(l,l.return,Y)}}break;case 3:if(rn?(k3(),h=fn,fn=Sm(a.containerInfo),Xe(a,l),fn=h):Xe(a,l),We(l),c&4){if(Ve&&Ze&&o!==null&&o.memoizedState.isDehydrated)try{q3(a.containerInfo)}catch(Y){pt(l,l.return,Y)}if(bn){c=a.containerInfo,o=a.pendingChildren;try{j1(c,o)}catch(Y){pt(l,l.return,Y)}}}wm&&(wm=!1,J0(l));break;case 4:rn?(o=fn,fn=Sm(l.stateNode.containerInfo),Xe(a,l),We(l),fn=o):(Xe(a,l),We(l)),c&4&&bn&&G0(l.stateNode,l,l.stateNode.pendingChildren);break;case 12:Xe(a,l),We(l);break;case 31:Xe(a,l),We(l),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,vr(l,c)));break;case 13:Xe(a,l),We(l),l.child.flags&8192&&l.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Vr=ni()),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,vr(l,c)));break;case 22:h=l.memoizedState!==null;var v=o!==null&&o.memoizedState!==null,_=kn,D=ce;if(kn=_||h,ce=D||v,Xe(a,l),ce=D,kn=_,We(l),c&8192&&(a=l.stateNode,a._visibility=h?a._visibility&-2:a._visibility|1,h&&(o===null||v||kn||ce||Ma(l)),Ve)){t:if(o=null,Ve)for(a=l;;){if(a.tag===5||rn&&a.tag===26){if(o===null){v=o=a;try{d=v.stateNode,h?f3(d):d3(v.stateNode,v.memoizedProps)}catch(Y){pt(v,v.return,Y)}}}else if(a.tag===6){if(o===null){v=a;try{var j=v.stateNode;h?h3(j):m3(j,v.memoizedProps)}catch(Y){pt(v,v.return,Y)}}}else if(a.tag===18){if(o===null){v=a;try{var V=v.stateNode;h?K3(V):J3(v.stateNode)}catch(Y){pt(v,v.return,Y)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===l)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break t;for(;a.sibling===null;){if(a.return===null||a.return===l)break t;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}}c&4&&(c=l.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,vr(l,o))));break;case 19:Xe(a,l),We(l),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,vr(l,c)));break;case 30:break;case 21:break;default:Xe(a,l),We(l)}}function We(l){var a=l.flags;if(a&2){try{for(var o,c=l.return;c!==null;){if(q0(c)){o=c;break}c=c.return}if(Ve){if(o==null)throw Error(n(160));switch(o.tag){case 27:if(pe){var h=o.stateNode,d=Kd(l);yr(l,d,h);break}case 5:var v=o.stateNode;o.flags&32&&(U1(v),o.flags&=-33);var _=Kd(l);yr(l,_,v);break;case 3:case 4:var D=o.stateNode.containerInfo,j=Kd(l);Jd(l,j,D);break;default:throw Error(n(161))}}}catch(V){pt(l,l.return,V)}l.flags&=-3}a&4096&&(l.flags&=-4097)}function J0(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var a=l;J0(a),a.tag===5&&a.flags&1024&&J_(a.stateNode),l=l.sibling}}function Zn(l,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Q0(l,a.alternate,a),a=a.sibling}function Ma(l){for(l=l.child;l!==null;){var a=l;switch(a.tag){case 0:case 11:case 14:case 15:Cl(4,a,a.return),Ma(a);break;case 1:Sn(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&j0(a,a.return,o),Ma(a);break;case 27:pe&&P1(a.stateNode);case 26:case 5:Sn(a,a.return),Ma(a);break;case 22:a.memoizedState===null&&Ma(a);break;case 30:Ma(a);break;default:Ma(a)}l=l.sibling}}function Kn(l,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,h=l,d=a,v=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(h,d,o),lo(4,d);break;case 1:if(Kn(h,d,o),c=d,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(j){pt(c,c.return,j)}if(c=d,h=c.updateQueue,h!==null){var _=c.stateNode;try{var D=h.shared.hiddenCallbacks;if(D!==null)for(h.shared.hiddenCallbacks=null,h=0;h<D.length;h++)Mp(D[h],_)}catch(j){pt(c,c.return,j)}}o&&v&64&&w0(d),ao(d,d.return);break;case 27:pe&&Y0(d);case 26:case 5:Kn(h,d,o),o&&c===null&&v&4&&L0(d),ao(d,d.return);break;case 12:Kn(h,d,o);break;case 31:Kn(h,d,o),o&&v&4&&V0(h,d);break;case 13:Kn(h,d,o),o&&v&4&&Z0(h,d);break;case 22:d.memoizedState===null&&Kn(h,d,o),ao(d,d.return);break;case 30:break;default:Kn(h,d,o)}a=a.sibling}}function Wd(l,a){var o=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==o&&(l!=null&&l.refCount++,o!=null&&Ws(o))}function Pd(l,a){l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&Ws(l))}function cn(l,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)F0(l,a,o,c),a=a.sibling}function F0(l,a,o,c){var h=a.flags;switch(a.tag){case 0:case 11:case 15:cn(l,a,o,c),h&2048&&lo(9,a);break;case 1:cn(l,a,o,c);break;case 3:cn(l,a,o,c),h&2048&&(l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&Ws(l)));break;case 12:if(h&2048){cn(l,a,o,c),l=a.stateNode;try{var d=a.memoizedProps,v=d.id,_=d.onPostCommit;typeof _=="function"&&_(v,a.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(D){pt(a,a.return,D)}}else cn(l,a,o,c);break;case 31:cn(l,a,o,c);break;case 13:cn(l,a,o,c);break;case 23:break;case 22:d=a.stateNode,v=a.alternate,a.memoizedState!==null?d._visibility&2?cn(l,a,o,c):uo(l,a):d._visibility&2?cn(l,a,o,c):(d._visibility|=2,xu(l,a,o,c,(a.subtreeFlags&10256)!==0||!1)),h&2048&&Wd(v,a);break;case 24:cn(l,a,o,c),h&2048&&Pd(a.alternate,a);break;default:cn(l,a,o,c)}}function xu(l,a,o,c,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var d=l,v=a,_=o,D=c,j=v.flags;switch(v.tag){case 0:case 11:case 15:xu(d,v,_,D,h),lo(8,v);break;case 23:break;case 22:var V=v.stateNode;v.memoizedState!==null?V._visibility&2?xu(d,v,_,D,h):uo(d,v):(V._visibility|=2,xu(d,v,_,D,h)),h&&j&2048&&Wd(v.alternate,v);break;case 24:xu(d,v,_,D,h),h&&j&2048&&Pd(v.alternate,v);break;default:xu(d,v,_,D,h)}a=a.sibling}}function uo(l,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=l,c=a,h=c.flags;switch(c.tag){case 22:uo(o,c),h&2048&&Wd(c.alternate,c);break;case 24:uo(o,c),h&2048&&Pd(c.alternate,c);break;default:uo(o,c)}a=a.sibling}}function Ca(l,a,o){if(l.subtreeFlags&Qu)for(l=l.child;l!==null;)W0(l,a,o),l=l.sibling}function W0(l,a,o){switch(l.tag){case 26:if(Ca(l,a,o),l.flags&Qu)if(l.memoizedState!==null)tA(o,fn,l.memoizedState,l.memoizedProps);else{var c=l.stateNode,h=l.type;l=l.memoizedProps,((a&335544128)===a||ym(h,l))&&H1(o,c,h,l)}break;case 5:Ca(l,a,o),l.flags&Qu&&(c=l.stateNode,h=l.type,l=l.memoizedProps,((a&335544128)===a||ym(h,l))&&H1(o,c,h,l));break;case 3:case 4:rn?(c=fn,fn=Sm(l.stateNode.containerInfo),Ca(l,a,o),fn=c):Ca(l,a,o);break;case 22:l.memoizedState===null&&(c=l.alternate,c!==null&&c.memoizedState!==null?(c=Qu,Qu=16777216,Ca(l,a,o),Qu=c):Ca(l,a,o));break;default:Ca(l,a,o)}}function P0(l){var a=l.alternate;if(a!==null&&(l=a.child,l!==null)){a.child=null;do a=l.sibling,l.sibling=null,l=a;while(l!==null)}}function so(l){var a=l.deletions;if(l.flags&16){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];Ae=c,k0(c,l)}P0(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)I0(l),l=l.sibling}function I0(l){switch(l.tag){case 0:case 11:case 15:so(l),l.flags&2048&&Cl(9,l,l.return);break;case 3:so(l);break;case 12:so(l);break;case 22:var a=l.stateNode;l.memoizedState!==null&&a._visibility&2&&(l.return===null||l.return.tag!==13)?(a._visibility&=-3,pr(l)):so(l);break;default:so(l)}}function pr(l){var a=l.deletions;if(l.flags&16){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];Ae=c,k0(c,l)}P0(l)}for(l=l.child;l!==null;){switch(a=l,a.tag){case 0:case 11:case 15:Cl(8,a,a.return),pr(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,pr(a));break;default:pr(a)}l=l.sibling}}function k0(l,a){for(;Ae!==null;){var o=Ae;switch(o.tag){case 0:case 11:case 15:Cl(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Ws(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Ae=c;else t:for(o=l;Ae!==null;){c=Ae;var h=c.sibling,d=c.return;if(X0(c),c===o){Ae=null;break t}if(h!==null){h.return=d,Ae=h;break t}Ae=d}}}function Id(l){var a=L_(l);if(a!=null){if(typeof a.memoizedProps["data-testname"]!="string")throw Error(n(364));return a}if(l=P_(l),l===null)throw Error(n(362));return l.stateNode.current}function kd(l,a){var o=l.tag;switch(a.$$typeof){case qr:if(l.type===a.value)return!0;break;case Gr:t:{for(a=a.value,l=[l,0],o=0;o<l.length;){var c=l[o++],h=c.tag,d=l[o++],v=a[d];if(h!==5&&h!==26&&h!==27||!fo(c)){for(;v!=null&&kd(c,v);)d++,v=a[d];if(d===a.length){a=!0;break t}else for(c=c.child;c!==null;)l.push(c,d),c=c.sibling}}a=!1}return a;case Yr:if((o===5||o===26||o===27)&&$_(l.stateNode,a.value))return!0;break;case Xr:if((o===5||o===6||o===26||o===27)&&(l=k_(l),l!==null&&0<=l.indexOf(a.value)))return!0;break;case Qr:if((o===5||o===26||o===27)&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===a.value.toLowerCase()))return!0;break;default:throw Error(n(365))}return!1}function $d(l){switch(l.$$typeof){case qr:return"<"+(g(l.value)||"Unknown")+">";case Gr:return":has("+($d(l)||"")+")";case Yr:return'[role="'+l.value+'"]';case Xr:return'"'+l.value+'"';case Qr:return'[data-testname="'+l.value+'"]';default:throw Error(n(365))}}function $0(l,a){var o=[];l=[l,0];for(var c=0;c<l.length;){var h=l[c++],d=h.tag,v=l[c++],_=a[v];if(d!==5&&d!==26&&d!==27||!fo(h)){for(;_!=null&&kd(h,_);)v++,_=a[v];if(v===a.length)o.push(h);else for(h=h.child;h!==null;)l.push(h,v),h=h.sibling}}return o}function tm(l,a){if(!ro)throw Error(n(363));l=Id(l),l=$0(l,a),a=[],l=Array.from(l);for(var o=0;o<l.length;){var c=l[o++],h=c.tag;if(h===5||h===26||h===27)fo(c)||a.push(c.stateNode);else for(c=c.child;c!==null;)l.push(c),c=c.sibling}return a}function vi(){return ot&2&&dt!==0?dt&-dt:W.T!==null?cd():G_()}function t1(){if(zi===0)if(!(dt&536870912)||gt){var l=Ar;Ar<<=1,!(Ar&3932160)&&(Ar=262144),zi=l}else zi=536870912;return l=xi.current,l!==null&&(l.flags|=32),zi}function ii(l,a,o){(l===Nt&&(Tt===2||Tt===9)||l.cancelPendingCommit!==null)&&(Tu(l,0),Rl(l,dt,zi,!1)),H(l,o),(!(ot&2)||l!==Nt)&&(l===Nt&&(!(ot&2)&&(qa|=o),Pt===4&&Rl(l,dt,zi,!1)),pn(l))}function e1(l,a,o){if(ot&6)throw Error(n(327));var c=!o&&(a&127)===0&&(a&l.expiredLanes)===0||T(l,a),h=c?v_(l,a):im(l,a,!0),d=c;do{if(h===0){Xu&&!c&&Rl(l,a,0,!1);break}else{if(o=l.current.alternate,d&&!g_(o)){h=im(l,a,!1),d=!1;continue}if(h===2){if(d=a,l.errorRecoveryDisabledLanes&d)var v=0;else v=l.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;t:{var _=l;h=Eo;var D=Ze&&_.current.memoizedState.isDehydrated;if(D&&(Tu(_,v).flags|=256),v=im(_,v,!1),v!==2){if(jm&&!D){_.errorRecoveryDisabledLanes|=d,qa|=d,h=4;break t}d=ai,ai=h,d!==null&&(ai===null?ai=d:ai.push.apply(ai,d))}h=v}if(d=!1,h!==2)continue}}if(h===1){Tu(l,0),Rl(l,a,0,!0);break}t:{switch(c=l,d=h,d){case 0:case 1:throw Error(n(345));case 4:if((a&4194048)!==a)break;case 6:Rl(c,a,zi,!jl);break t;case 2:ai=null;break;case 3:case 5:break;default:throw Error(n(329))}if((a&62914560)===a&&(h=Vr+300-ni(),10<h)){if(Rl(c,a,zi,!jl),w(c,0,!0)!==0)break t;tl=a,c.timeoutHandle=w_(i1.bind(null,c,o,ai,Zr,qm,a,zi,qa,Vu,jl,d,"Throttled",-0,0),h);break t}i1(c,o,ai,Zr,qm,a,zi,qa,Vu,jl,d,null,-0,0)}}break}while(!0);pn(l)}function i1(l,a,o,c,h,d,v,_,D,j,V,Y,K,it){if(l.timeoutHandle=Na,Y=a.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y=Z_(),W0(a,d,Y);var Ue=(d&62914560)===d?Vr-ni():(d&4194048)===d?sS-ni():0;if(Ue=K_(Y,Ue),Ue!==null){tl=d,l.cancelPendingCommit=Ue(f1.bind(null,l,a,d,o,c,h,v,_,D,V,Y,null,K,it)),Rl(l,d,v,!j);return}}f1(l,a,d,o,c,h,v,_,D)}function g_(l){for(var a=l;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var h=o[c],d=h.getSnapshot;h=h.value;try{if(!Ei(d(),h))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Rl(l,a,o,c){a&=~Lm,a&=~qa,l.suspendedLanes|=a,l.pingedLanes&=~a,c&&(l.warmLanes|=a),c=l.expirationTimes;for(var h=a;0<h;){var d=31-Si(h),v=1<<d;c[d]=-1,h&=~v}o!==0&&L(l,o,a)}function n1(){return ot&6?!0:(bu(0,!1),!1)}function em(){if(ct!==null){if(Tt===0)var l=ct.return;else l=ct,Pn=Ha=null,xd(l),ju=null,vo=0,l=ct;for(;l!==null;)B0(l.alternate,l),l=l.return;ct=null}}function Tu(l,a){var o=l.timeoutHandle;o!==Na&&(l.timeoutHandle=Na,j_(o)),o=l.cancelPendingCommit,o!==null&&(l.cancelPendingCommit=null,o()),tl=0,em(),Nt=l,ct=o=Jn(l.current,null),dt=a,Tt=0,Ti=null,jl=!1,Xu=T(l,a),jm=!1,Vu=zi=Lm=qa=Ll=Pt=0,ai=Eo=null,qm=!1,a&8&&(a|=a&32);var c=l.entangledLanes;if(c!==0)for(l=l.entanglements,c&=a;0<c;){var h=31-Si(c),d=1<<h;a|=l[h],c&=~d}return $n=a,tr(),o}function l1(l,a){at=null,W.H=So,a===wu||a===Ur?(a=zp(),Tt=3):a===Cm?(a=zp(),Tt=4):Tt=a===Um?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Ti=a,ct===null&&(Pt=1,rr(l,ue(a,l.current)))}function a1(){var l=xi.current;return l===null?!0:(dt&4194048)===dt?Zi===null:(dt&62914560)===dt||dt&536870912?l===Zi:!1}function u1(){var l=W.H;return W.H=So,l===null?So:l}function s1(){var l=W.A;return W.A=gA,l}function Sr(){Pt=4,jl||(dt&4194048)!==dt&&xi.current!==null||(Xu=!0),!(Ll&134217727)&&!(qa&134217727)||Nt===null||Rl(Nt,dt,zi,!1)}function im(l,a,o){var c=ot;ot|=2;var h=u1(),d=s1();(Nt!==l||dt!==a)&&(Zr=null,Tu(l,a)),a=!1;var v=Pt;t:do try{if(Tt!==0&&ct!==null){var _=ct,D=Ti;switch(Tt){case 8:em(),v=6;break t;case 3:case 2:case 9:case 6:xi.current===null&&(a=!0);var j=Tt;if(Tt=0,Ti=null,zu(l,_,D,j),o&&Xu){v=0;break t}break;default:j=Tt,Tt=0,Ti=null,zu(l,_,D,j)}}y_(),v=Pt;break}catch(V){l1(l,V)}while(!0);return a&&l.shellSuspendCounter++,Pn=Ha=null,ot=c,W.H=h,W.A=d,ct===null&&(Nt=null,dt=0,tr()),v}function y_(){for(;ct!==null;)o1(ct)}function v_(l,a){var o=ot;ot|=2;var c=u1(),h=s1();Nt!==l||dt!==a?(Zr=null,xo=ni()+500,Tu(l,a)):Xu=T(l,a);t:do try{if(Tt!==0&&ct!==null){a=ct;var d=Ti;e:switch(Tt){case 1:Tt=0,Ti=null,zu(l,a,d,1);break;case 2:case 9:if(xp(d)){Tt=0,Ti=null,c1(a);break}a=function(){Tt!==2&&Tt!==9||Nt!==l||(Tt=7),pn(l)},d.then(a,a);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:xp(d)?(Tt=0,Ti=null,c1(a)):(Tt=0,Ti=null,zu(l,a,d,7));break;case 5:var v=null;switch(ct.tag){case 26:v=ct.memoizedState;case 5:case 27:var _=ct,D=_.type,j=_.pendingProps;if(v?F1(v):D1(_.stateNode,D,j)){Tt=0,Ti=null;var V=_.sibling;if(V!==null)ct=V;else{var Y=_.return;Y!==null?(ct=Y,br(Y)):ct=null}break e}}Tt=0,Ti=null,zu(l,a,d,5);break;case 6:Tt=0,Ti=null,zu(l,a,d,6);break;case 8:em(),Pt=6;break t;default:throw Error(n(462))}}p_();break}catch(K){l1(l,K)}while(!0);return Pn=Ha=null,W.H=c,W.A=h,ot=o,ct!==null?0:(Nt=null,dt=0,tr(),Pt)}function p_(){for(;ct!==null&&!lA();)o1(ct)}function o1(l){var a=R0(l.alternate,l,$n);l.memoizedProps=l.pendingProps,a===null?br(l):ct=a}function c1(l){var a=l,o=a.alternate;switch(a.tag){case 15:case 0:a=z0(o,a,a.pendingProps,a.type,void 0,dt);break;case 11:a=z0(o,a,a.pendingProps,a.type.render,a.ref,dt);break;case 5:xd(a);default:B0(o,a),a=ct=S1(a,$n),a=R0(o,a,$n)}l.memoizedProps=l.pendingProps,a===null?br(l):ct=a}function zu(l,a,o,c){Pn=Ha=null,xd(a),ju=null,vo=0;var h=a.return;try{if(o_(l,h,a,o,dt)){Pt=1,rr(l,ue(o,l.current)),ct=null;return}}catch(d){if(h!==null)throw ct=h,d;Pt=1,rr(l,ue(o,l.current)),ct=null;return}a.flags&32768?(gt||c===1?l=!0:Xu||dt&536870912?l=!1:(jl=l=!0,(c===2||c===9||c===3||c===6)&&(c=xi.current,c!==null&&c.tag===13&&(c.flags|=16384))),r1(a,l)):br(a)}function br(l){var a=l;do{if(a.flags&32768){r1(a,jl);return}l=a.return;var o=f_(a.alternate,a,$n);if(o!==null){ct=o;return}if(a=a.sibling,a!==null){ct=a;return}ct=a=l}while(a!==null);Pt===0&&(Pt=5)}function r1(l,a){do{var o=h_(l.alternate,l);if(o!==null){o.flags&=32767,ct=o;return}if(o=l.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(l=l.sibling,l!==null)){ct=l;return}ct=l=o}while(l!==null);Pt=6,ct=null}function f1(l,a,o,c,h,d,v,_,D){l.cancelPendingCommit=null;do oo();while(Se!==0);if(ot&6)throw Error(n(327));if(a!==null){if(a===l.current)throw Error(n(177));if(d=a.lanes|a.childLanes,d|=Rm,q(l,o,d,v,_,D),l===Nt&&(ct=Nt=null,dt=0),Zu=a,Gl=l,tl=o,Gm=d,Ym=h,oS=c,a.subtreeFlags&10256||a.flags&10256?(l.callbackNode=null,l.callbackPriority=0,x_(xm,function(){return y1(),null})):(l.callbackNode=null,l.callbackPriority=0),c=(a.flags&13878)!==0,a.subtreeFlags&13878||c){c=W.T,W.T=null,h=Wn(),_e(2),v=ot,ot|=4;try{d_(l,a,o)}finally{ot=v,_e(h),W.T=c}}Se=1,h1(),d1(),m1()}}function h1(){if(Se===1){Se=0;var l=Gl,a=Zu,o=(a.flags&13878)!==0;if(a.subtreeFlags&13878||o){o=W.T,W.T=null;var c=Wn();_e(2);var h=ot;ot|=4;try{K0(a,l),U_(l.containerInfo)}finally{ot=h,_e(c),W.T=o}}l.current=a,Se=2}}function d1(){if(Se===2){Se=0;var l=Gl,a=Zu,o=(a.flags&8772)!==0;if(a.subtreeFlags&8772||o){o=W.T,W.T=null;var c=Wn();_e(2);var h=ot;ot|=4;try{Q0(l,a.alternate,a)}finally{ot=h,_e(c),W.T=o}}Se=3}}function m1(){if(Se===4||Se===3){Se=0,aA();var l=Gl,a=Zu,o=tl,c=oS;a.subtreeFlags&10256||a.flags&10256?Se=5:(Se=0,Zu=Gl=null,g1(l,l.pendingLanes));var h=l.pendingLanes;if(h===0&&(ql=null),I(o),a=a.stateNode,bi&&typeof bi.onCommitFiberRoot=="function")try{bi.onCommitFiberRoot(ho,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=W.T,h=Wn(),_e(2),W.T=null;try{for(var d=l.onRecoverableError,v=0;v<c.length;v++){var _=c[v];d(_.value,{componentStack:_.stack})}}finally{W.T=a,_e(h)}}tl&3&&oo(),pn(l),h=l.pendingLanes,o&261930&&h&42?l===Qm?To++:(To=0,Qm=l):To=0,Ze&&X3(),bu(0,!1)}}function g1(l,a){(l.pooledCacheLanes&=a)===0&&(a=l.pooledCache,a!=null&&(l.pooledCache=null,Ws(a)))}function oo(){return h1(),d1(),m1(),y1()}function y1(){if(Se!==5)return!1;var l=Gl,a=Gm;Gm=0;var o=I(tl),c=32>o?32:o;o=W.T;var h=Wn();try{_e(c),W.T=null,c=Ym,Ym=null;var d=Gl,v=tl;if(Se=0,Zu=Gl=null,tl=0,ot&6)throw Error(n(331));var _=ot;if(ot|=4,I0(d.current),F0(d,d.current,v,c),ot=_,bu(0,!1),bi&&typeof bi.onPostCommitFiberRoot=="function")try{bi.onPostCommitFiberRoot(ho,d)}catch{}return!0}finally{_e(h),W.T=o,g1(l,a)}}function v1(l,a,o){a=ue(o,a),a=Ud(l.stateNode,a,2),l=Al(l,a,2),l!==null&&(H(l,2),pn(l))}function pt(l,a,o){if(l.tag===3)v1(l,l,o);else for(;a!==null;){if(a.tag===3){v1(a,l,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ql===null||!ql.has(c))){l=ue(o,l),o=y0(2),c=Al(a,o,2),c!==null&&(v0(o,c,a,l),H(c,2),pn(c));break}}a=a.return}}function nm(l,a,o){var c=l.pingCache;if(c===null){c=l.pingCache=new yA;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(o)||(jm=!0,h.add(o),l=S_.bind(null,l,a,o),a.then(l,l))}function S_(l,a,o){var c=l.pingCache;c!==null&&c.delete(a),l.pingedLanes|=l.suspendedLanes&o,l.warmLanes&=~o,Nt===l&&(dt&o)===o&&(Pt===4||Pt===3&&(dt&62914560)===dt&&300>ni()-Vr?!(ot&2)&&Tu(l,0):Lm|=o,Vu===dt&&(Vu=0)),pn(l)}function p1(l,a){a===0&&(a=z()),l=Aa(l,a),l!==null&&(H(l,a),pn(l))}function b_(l){var a=l.memoizedState,o=0;a!==null&&(o=a.retryLane),p1(l,o)}function E_(l,a){var o=0;switch(l.tag){case 31:case 13:var c=l.stateNode,h=l.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=l.stateNode;break;case 22:c=l.stateNode._retryCache;break;default:throw Error(n(314))}c!==null&&c.delete(a),p1(l,o)}function x_(l,a){return Mr(l,a)}function T_(l,a,o,c){this.tag=l,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lm(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Jn(l,a){var o=l.alternate;return o===null?(o=e(l.tag,a,l.key,l.mode),o.elementType=l.elementType,o.type=l.type,o.stateNode=l.stateNode,o.alternate=l,l.alternate=o):(o.pendingProps=a,o.type=l.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=l.flags&65011712,o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,a=l.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=l.sibling,o.index=l.index,o.ref=l.ref,o.refCleanup=l.refCleanup,o}function S1(l,a){l.flags&=65011714;var o=l.alternate;return o===null?(l.childLanes=0,l.lanes=a,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,a=o.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),l}function Er(l,a,o,c,h,d){var v=0;if(c=l,typeof l=="function")lm(l)&&(v=1);else if(typeof l=="string")v=rn&&pe?Q1(l,o,De.current)?26:I1(l)?27:5:rn?Q1(l,o,De.current)?26:5:pe&&I1(l)?27:5;else t:switch(l){case mm:return l=e(31,o,a,h),l.elementType=mm,l.lanes=d,l;case Au:return Ra(o.children,h,d,a);case A1:v=8,h|=24;break;case cm:return l=e(12,o,a,h|2),l.elementType=cm,l.lanes=d,l;case fm:return l=e(13,o,a,h),l.elementType=fm,l.lanes=d,l;case hm:return l=e(19,o,a,h),l.elementType=hm,l.lanes=d,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Nl:v=10;break t;case O1:v=9;break t;case rm:v=11;break t;case dm:v=14;break t;case Dl:v=16,c=null;break t}v=29,o=Error(n(130,l===null?"null":typeof l,"")),c=null}return a=e(v,o,a,h),a.elementType=l,a.type=c,a.lanes=d,a}function Ra(l,a,o,c){return l=e(7,l,c,a),l.lanes=o,l}function am(l,a,o){return l=e(6,l,null,a),l.lanes=o,l}function b1(l){var a=e(18,null,null,0);return a.stateNode=l,a}function um(l,a,o){return a=e(4,l.children!==null?l.children:[],l.key,a),a.lanes=o,a.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},a}function z_(l,a,o,c,h,d,v,_,D){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Na,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=O(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=O(0),this.hiddenUpdates=O(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function E1(l,a,o,c,h,d,v,_,D,j,V,Y){return l=new z_(l,a,o,v,D,j,V,Y,_),a=1,d===!0&&(a|=24),d=e(3,null,null,a),l.current=d,d.stateNode=l,a=od(),a.refCount++,l.pooledCache=a,a.refCount++,d.memoizedState={element:c,isDehydrated:o,cache:a},hd(d),l}function x1(l){return l?(l=Ru,l):Ru}function T1(l){var a=l._reactInternals;if(a===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=r(a),l=l!==null?f(l):null,l===null?null:co(l.stateNode)}function z1(l,a,o,c,h,d){h=x1(h),c.context===null?c.context=h:c.pendingContext=h,c=_l(a),c.payload={element:o},d=d===void 0?null:d,d!==null&&(c.callback=d),o=Al(l,c,a),o!==null&&(ii(o,l,a),Is(o,l,a))}function _1(l,a){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var o=l.retryLane;l.retryLane=o!==0&&o<a?o:a}}function sm(l,a){_1(l,a),(l=l.alternate)&&_1(l,a)}var st={},__=vt(),pi=xg(),om=Object.assign,A_=Symbol.for("react.element"),xr=Symbol.for("react.transitional.element"),_u=Symbol.for("react.portal"),Au=Symbol.for("react.fragment"),A1=Symbol.for("react.strict_mode"),cm=Symbol.for("react.profiler"),O1=Symbol.for("react.consumer"),Nl=Symbol.for("react.context"),rm=Symbol.for("react.forward_ref"),fm=Symbol.for("react.suspense"),hm=Symbol.for("react.suspense_list"),dm=Symbol.for("react.memo"),Dl=Symbol.for("react.lazy");Symbol.for("react.scope");var mm=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var O_=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var M1=Symbol.iterator,M_=Symbol.for("react.client.reference"),Tr=Array.isArray,W=__.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C_=t.rendererVersion,R_=t.rendererPackageName,C1=t.extraDevToolsConfig,co=t.getPublicInstance,N_=t.getRootHostContext,D_=t.getChildHostContext,H_=t.prepareForCommit,U_=t.resetAfterCommit,B_=t.createInstance;t.cloneMutableInstance;var gm=t.appendInitialChild,R1=t.finalizeInitialChildren,zr=t.shouldSetTextContent,N1=t.createTextInstance;t.cloneMutableTextInstance;var w_=t.scheduleTimeout,j_=t.cancelTimeout,Na=t.noTimeout,Fn=t.isPrimaryRenderer;t.warnsIfNotActing;var Ve=t.supportsMutation,bn=t.supportsPersistence,Ze=t.supportsHydration,L_=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var q_=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var _e=t.setCurrentUpdatePriority,Wn=t.getCurrentUpdatePriority,G_=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var Y_=t.shouldAttemptEagerTransition,Q_=t.detachDeletedInstance;t.requestPostPaintCallback;var X_=t.maySuspendCommit,V_=t.maySuspendCommitOnUpdate,ym=t.maySuspendCommitInSyncRender,D1=t.preloadInstance,Z_=t.startSuspendingCommit,H1=t.suspendInstance;t.suspendOnActiveViewTransition;var K_=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var Ou=t.NotPendingTransition,Da=t.HostTransitionContext,J_=t.resetFormInstance;t.bindToConsole;var F_=t.supportsMicrotasks,W_=t.scheduleMicrotask,ro=t.supportsTestSelectors,P_=t.findFiberRoot,I_=t.getBoundingRect,k_=t.getTextContent,fo=t.isHiddenSubtree,$_=t.matchAccessibilityRole,t3=t.setFocusIfFocusable,e3=t.setupIntersectionObserver,i3=t.appendChild,n3=t.appendChildToContainer,l3=t.commitTextUpdate,a3=t.commitMount,u3=t.commitUpdate,s3=t.insertBefore,o3=t.insertInContainerBefore,c3=t.removeChild,r3=t.removeChildFromContainer,U1=t.resetTextContent,f3=t.hideInstance,h3=t.hideTextInstance,d3=t.unhideInstance,m3=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var g3=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var y3=t.cloneInstance,B1=t.createContainerChildSet,w1=t.appendChildToContainerChildSet,v3=t.finalizeContainerChildren,j1=t.replaceContainerChildren,L1=t.cloneHiddenInstance,q1=t.cloneHiddenTextInstance,vm=t.isSuspenseInstancePending,pm=t.isSuspenseInstanceFallback,p3=t.getSuspenseInstanceFallbackErrorDetails,S3=t.registerSuspenseInstanceRetry,b3=t.canHydrateFormStateMarker,E3=t.isFormStateMarkerMatching,G1=t.getNextHydratableSibling,x3=t.getNextHydratableSiblingAfterSingleton,T3=t.getFirstHydratableChild,z3=t.getFirstHydratableChildWithinContainer,_3=t.getFirstHydratableChildWithinActivityInstance,A3=t.getFirstHydratableChildWithinSuspenseInstance,O3=t.getFirstHydratableChildWithinSingleton,M3=t.canHydrateInstance,C3=t.canHydrateTextInstance,R3=t.canHydrateActivityInstance,N3=t.canHydrateSuspenseInstance,D3=t.hydrateInstance,H3=t.hydrateTextInstance,U3=t.hydrateActivityInstance,B3=t.hydrateSuspenseInstance,w3=t.getNextHydratableInstanceAfterActivityInstance,j3=t.getNextHydratableInstanceAfterSuspenseInstance,L3=t.commitHydratedInstance,q3=t.commitHydratedContainer,G3=t.commitHydratedActivityInstance,Y3=t.commitHydratedSuspenseInstance,Q3=t.finalizeHydratedChildren,X3=t.flushHydrationEvents;t.clearActivityBoundary;var V3=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var Z3=t.clearSuspenseBoundaryFromContainer,K3=t.hideDehydratedBoundary,J3=t.unhideDehydratedBoundary,Y1=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var F3=t.validateHydratableInstance,W3=t.validateHydratableTextInstance,rn=t.supportsResources,Q1=t.isHostHoistableType,Sm=t.getHoistableRoot,X1=t.getResource,V1=t.acquireResource,Z1=t.releaseResource,P3=t.hydrateHoistable,K1=t.mountHoistable,J1=t.unmountHoistable,I3=t.createHoistableInstance,k3=t.prepareToCommitHoistables,$3=t.mayResourceSuspendCommit,F1=t.preloadResource,tA=t.suspendResource,pe=t.supportsSingletons,W1=t.resolveSingletonInstance,eA=t.acquireSingletonInstance,P1=t.releaseSingletonInstance,I1=t.isHostSingletonType,Mu=t.isSingletonScope,bm=[],Cu=-1,Ru={},Si=Math.clz32?Math.clz32:A,iA=Math.log,nA=Math.LN2,_r=256,Ar=262144,Or=4194304,Mr=pi.unstable_scheduleCallback,Em=pi.unstable_cancelCallback,lA=pi.unstable_shouldYield,aA=pi.unstable_requestPaint,ni=pi.unstable_now,k1=pi.unstable_ImmediatePriority,uA=pi.unstable_UserBlockingPriority,xm=pi.unstable_NormalPriority,sA=pi.unstable_IdlePriority,oA=pi.log,cA=pi.unstable_setDisableYieldValue,ho=null,bi=null,Ei=typeof Object.is=="function"?Object.is:qn,$1=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},rA=Object.prototype.hasOwnProperty,Tm,tS,zm=!1,eS=new WeakMap,Nu=[],Du=0,Cr=null,mo=0,Yi=[],Qi=0,Hl=null,En=1,xn="",De=S(null),go=S(null),Ul=S(null),Rr=S(null),He=null,Xt=null,gt=!1,Bl=null,Xi=!1,_m=Error(n(519)),Nr=S(null),Ha=null,Pn=null,fA=typeof AbortController<"u"?AbortController:function(){var l=[],a=this.signal={aborted:!1,addEventListener:function(o,c){l.push(c)}};this.abort=function(){a.aborted=!0,l.forEach(function(o){return o()})}},hA=pi.unstable_scheduleCallback,dA=pi.unstable_NormalPriority,Vt={$$typeof:Nl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},Dr=null,Hu=null,Am=!1,Hr=!1,Om=!1,Ua=0,yo=null,Mm=0,Uu=0,Bu=null,iS=W.S;W.S=function(l,a){sS=ni(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&t_(l,a),iS!==null&&iS(l,a)};var Ba=S(null),wu=Error(n(460)),Cm=Error(n(474)),Ur=Error(n(542)),Br={then:function(){}},wa=null,ju=null,vo=0,ja=Ap(!0),nS=Ap(!1),Vi=[],Lu=0,Rm=0,wl=!1,Nm=!1,qu=S(null),wr=S(0),xi=S(null),Zi=null,ne=S(0),In=0,at=null,Ot=null,se=null,jr=!1,Gu=!1,La=!1,Lr=0,po=0,Yu=null,mA=0,So={readContext:ee,use:ar,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt,useHostTransitionStatus:Wt,useFormState:Wt,useActionState:Wt,useOptimistic:Wt,useMemoCache:Wt,useCacheRefresh:Wt};So.useEffectEvent=Wt;var lS={readContext:ee,use:ar,useCallback:function(l,a){return Fe().memoizedState=[l,a===void 0?null:a],l},useContext:ee,useEffect:Ip,useImperativeHandle:function(l,a,o){o=o!=null?o.concat([l]):null,sr(4194308,4,e0.bind(null,a,l),o)},useLayoutEffect:function(l,a){return sr(4194308,4,l,a)},useInsertionEffect:function(l,a){sr(4,2,l,a)},useMemo:function(l,a){var o=Fe();a=a===void 0?null:a;var c=l();if(La){ht(!0);try{l()}finally{ht(!1)}}return o.memoizedState=[c,a],c},useReducer:function(l,a,o){var c=Fe();if(o!==void 0){var h=o(a);if(La){ht(!0);try{o(a)}finally{ht(!1)}}}else h=a;return c.memoizedState=c.baseState=h,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:h},c.queue=l,l=l.dispatch=s_.bind(null,at,l),[c.memoizedState,l]},useRef:function(l){var a=Fe();return l={current:l},a.memoizedState=l},useState:function(l){l=Ad(l);var a=l.queue,o=r0.bind(null,at,a);return a.dispatch=o,[l.memoizedState,o]},useDebugValue:Cd,useDeferredValue:function(l,a){var o=Fe();return Rd(o,l,a)},useTransition:function(){var l=Ad(!1);return l=u0.bind(null,at,l.queue,!0,!1),Fe().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,a,o){var c=at,h=Fe();if(gt){if(o===void 0)throw Error(n(407));o=o()}else{if(o=a(),Nt===null)throw Error(n(349));dt&127||Bp(c,a,o)}h.memoizedState=o;var d={value:o,getSnapshot:a};return h.queue=d,Ip(jp.bind(null,c,d,l),[l]),c.flags|=2048,Eu(9,{destroy:void 0},wp.bind(null,c,d,o,a),null),o},useId:function(){var l=Fe(),a=Nt.identifierPrefix;if(gt){var o=xn,c=En;o=(c&~(1<<32-Si(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Lr++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=mA++,a="_"+a+"r_"+o.toString(32)+"_";return l.memoizedState=a},useHostTransitionStatus:Nd,useFormState:Kp,useActionState:Kp,useOptimistic:function(l){var a=Fe();a.memoizedState=a.baseState=l;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Dd.bind(null,at,!0,o),o.dispatch=a,[l,a]},useMemoCache:Td,useCacheRefresh:function(){return Fe().memoizedState=u_.bind(null,at)},useEffectEvent:function(l){var a=Fe(),o={impl:l};return a.memoizedState=o,function(){if(ot&2)throw Error(n(440));return o.impl.apply(void 0,arguments)}}},Dm={readContext:ee,use:ar,useCallback:n0,useContext:ee,useEffect:Md,useImperativeHandle:i0,useInsertionEffect:$p,useLayoutEffect:t0,useMemo:l0,useReducer:ur,useRef:Pp,useState:function(){return ur(Xn)},useDebugValue:Cd,useDeferredValue:function(l,a){var o=ie();return a0(o,Ot.memoizedState,l,a)},useTransition:function(){var l=ur(Xn)[0],a=ie().memoizedState;return[typeof l=="boolean"?l:to(l),a]},useSyncExternalStore:Up,useId:o0,useHostTransitionStatus:Nd,useFormState:Jp,useActionState:Jp,useOptimistic:function(l,a){var o=ie();return Gp(o,Ot,l,a)},useMemoCache:Td,useCacheRefresh:c0};Dm.useEffectEvent=kp;var aS={readContext:ee,use:ar,useCallback:n0,useContext:ee,useEffect:Md,useImperativeHandle:i0,useInsertionEffect:$p,useLayoutEffect:t0,useMemo:l0,useReducer:_d,useRef:Pp,useState:function(){return _d(Xn)},useDebugValue:Cd,useDeferredValue:function(l,a){var o=ie();return Ot===null?Rd(o,l,a):a0(o,Ot.memoizedState,l,a)},useTransition:function(){var l=_d(Xn)[0],a=ie().memoizedState;return[typeof l=="boolean"?l:to(l),a]},useSyncExternalStore:Up,useId:o0,useHostTransitionStatus:Nd,useFormState:Wp,useActionState:Wp,useOptimistic:function(l,a){var o=ie();return Ot!==null?Gp(o,Ot,l,a):(o.baseState=l,[l,o.queue.dispatch])},useMemoCache:Td,useCacheRefresh:c0};aS.useEffectEvent=kp;var Hm={enqueueSetState:function(l,a,o){l=l._reactInternals;var c=vi(),h=_l(c);h.payload=a,o!=null&&(h.callback=o),a=Al(l,h,c),a!==null&&(ii(a,l,c),Is(a,l,c))},enqueueReplaceState:function(l,a,o){l=l._reactInternals;var c=vi(),h=_l(c);h.tag=1,h.payload=a,o!=null&&(h.callback=o),a=Al(l,h,c),a!==null&&(ii(a,l,c),Is(a,l,c))},enqueueForceUpdate:function(l,a){l=l._reactInternals;var o=vi(),c=_l(o);c.tag=2,a!=null&&(c.callback=a),a=Al(l,c,o),a!==null&&(ii(a,l,o),Is(a,l,o))}},Um=Error(n(461)),oe=!1,Bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},kn=!1,ce=!1,wm=!1,uS=typeof WeakSet=="function"?WeakSet:Set,Ae=null,re=null,li=!1,fn=null,Qu=8192,gA={getCacheForType:function(l){var a=ee(Vt),o=a.data.get(l);return o===void 0&&(o=l(),a.data.set(l,o)),o},cacheSignal:function(){return ee(Vt).controller.signal}},qr=0,Gr=1,Yr=2,Qr=3,Xr=4;if(typeof Symbol=="function"&&Symbol.for){var bo=Symbol.for;qr=bo("selector.component"),Gr=bo("selector.has_pseudo_class"),Yr=bo("selector.role"),Qr=bo("selector.test_id"),Xr=bo("selector.text")}var yA=typeof WeakMap=="function"?WeakMap:Map,ot=0,Nt=null,ct=null,dt=0,Tt=0,Ti=null,jl=!1,Xu=!1,jm=!1,$n=0,Pt=0,Ll=0,qa=0,Lm=0,zi=0,Vu=0,Eo=null,ai=null,qm=!1,Vr=0,sS=0,xo=1/0,Zr=null,ql=null,Se=0,Gl=null,Zu=null,tl=0,Gm=0,Ym=null,oS=null,To=0,Qm=null;return st.attemptContinuousHydration=function(l){if(l.tag===13||l.tag===31){var a=Aa(l,67108864);a!==null&&ii(a,l,67108864),sm(l,67108864)}},st.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13||l.tag===31){var a=vi();a=B(a);var o=Aa(l,a);o!==null&&ii(o,l,a),sm(l,a)}},st.attemptSynchronousHydration=function(l){switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var a=R(l.pendingLanes);if(a!==0){for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var o=1<<31-Si(a);l.entanglements[1]|=o,a&=~o}pn(l),!(ot&6)&&(xo=ni()+500,bu(0,!1))}}break;case 31:case 13:a=Aa(l,2),a!==null&&ii(a,l,2),n1(),sm(l,2)}},st.batchedUpdates=function(l,a){return l(a)},st.createComponentSelector=function(l){return{$$typeof:qr,value:l}},st.createContainer=function(l,a,o,c,h,d,v,_,D,j){return E1(l,a,!1,null,o,c,d,null,v,_,D,j)},st.createHasPseudoClassSelector=function(l){return{$$typeof:Gr,value:l}},st.createHydrationContainer=function(l,a,o,c,h,d,v,_,D,j,V,Y,K,it){return l=E1(o,c,!0,l,h,d,_,it,D,j,V,Y),l.context=x1(null),o=l.current,c=vi(),c=B(c),h=_l(c),h.callback=a??null,Al(o,h,c),a=c,l.current.lanes=a,H(l,a),pn(l),l},st.createPortal=function(l,a,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_u,key:c==null?null:""+c,children:l,containerInfo:a,implementation:o}},st.createRoleSelector=function(l){return{$$typeof:Yr,value:l}},st.createTestNameSelector=function(l){return{$$typeof:Qr,value:l}},st.createTextSelector=function(l){return{$$typeof:Xr,value:l}},st.defaultOnCaughtError=function(l){console.error(l)},st.defaultOnRecoverableError=function(l){$1(l)},st.defaultOnUncaughtError=function(l){$1(l)},st.deferredUpdates=function(l){var a=W.T,o=Wn();try{return _e(32),W.T=null,l()}finally{_e(o),W.T=a}},st.discreteUpdates=function(l,a,o,c,h){var d=W.T,v=Wn();try{return _e(2),W.T=null,l(a,o,c,h)}finally{_e(v),W.T=d,ot===0&&(xo=ni()+500)}},st.findAllNodes=tm,st.findBoundingRects=function(l,a){if(!ro)throw Error(n(363));a=tm(l,a),l=[];for(var o=0;o<a.length;o++)l.push(I_(a[o]));for(a=l.length-1;0<a;a--){o=l[a];for(var c=o.x,h=c+o.width,d=o.y,v=d+o.height,_=a-1;0<=_;_--)if(a!==_){var D=l[_],j=D.x,V=j+D.width,Y=D.y,K=Y+D.height;if(c>=j&&d>=Y&&h<=V&&v<=K){l.splice(a,1);break}else if(c!==j||o.width!==D.width||K<d||Y>v){if(!(d!==Y||o.height!==D.height||V<c||j>h)){j>c&&(D.width+=j-c,D.x=c),V<h&&(D.width=h-j),l.splice(a,1);break}}else{Y>d&&(D.height+=Y-d,D.y=d),K<v&&(D.height=v-Y),l.splice(a,1);break}}}return l},st.findHostInstance=T1,st.findHostInstanceWithNoPortals=function(l){return l=r(l),l=l!==null?m(l):null,l===null?null:co(l.stateNode)},st.findHostInstanceWithWarning=function(l){return T1(l)},st.flushPassiveEffects=oo,st.flushSyncFromReconciler=function(l){var a=ot;ot|=1;var o=W.T,c=Wn();try{if(_e(2),W.T=null,l)return l()}finally{_e(c),W.T=o,ot=a,!(ot&6)&&bu(0,!1)}},st.flushSyncWork=n1,st.focusWithin=function(l,a){if(!ro)throw Error(n(363));for(l=Id(l),a=$0(l,a),a=Array.from(a),l=0;l<a.length;){var o=a[l++],c=o.tag;if(!fo(o)){if((c===5||c===26||c===27)&&t3(o.stateNode))return!0;for(o=o.child;o!==null;)a.push(o),o=o.sibling}}return!1},st.getFindAllNodesFailureDescription=function(l,a){if(!ro)throw Error(n(363));var o=0,c=[];l=[Id(l),0];for(var h=0;h<l.length;){var d=l[h++],v=d.tag,_=l[h++],D=a[_];if((v!==5&&v!==26&&v!==27||!fo(d))&&(kd(d,D)&&(c.push($d(D)),_++,_>o&&(o=_)),_<a.length))for(d=d.child;d!==null;)l.push(d,_),d=d.sibling}if(o<a.length){for(l=[];o<a.length;o++)l.push($d(a[o]));return`findAllNodes was able to match part of the selector:
|
|
9
|
-
`+(c.join(" > ")+`
|
|
10
|
-
|
|
11
|
-
No matching component was found for:
|
|
12
|
-
`)+l.join(" > ")}return null},st.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 27:case 5:return co(l.child.stateNode);default:return l.child.stateNode}},st.injectIntoDevTools=function(){var l={bundleType:0,version:C_,rendererPackageName:R_,currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(C1!==null&&(l.rendererConfig=C1),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled||!a.supportsFiber)l=!0;else{try{ho=a.inject(l),bi=a}catch{}l=!!a.checkDCE}}return l},st.isAlreadyRendering=function(){return(ot&6)!==0},st.observeVisibleRects=function(l,a,o,c){if(!ro)throw Error(n(363));l=tm(l,a);var h=e3(l,o,c).disconnect;return{disconnect:function(){h()}}},st.shouldError=function(){return null},st.shouldSuspend=function(){return!1},st.startHostTransition=function(l,a,o,c){if(l.tag!==5)throw Error(n(476));var h=s0(l).queue;u0(l,h,a,Ou,o===null?i:function(){var d=s0(l);return d.next===null&&(d=l.alternate.memoizedState),eo(l,d.next.queue,{},vi()),o(c)})},st.updateContainer=function(l,a,o,c){var h=a.current,d=vi();return z1(h,d,l,a,o,c),d},st.updateContainerSync=function(l,a,o,c){return z1(a.current,2,l,a,o,c),2},st};Lo.exports.default=Lo.exports;Object.defineProperty(Lo.exports,"__esModule",{value:!0})});var Mb=Be((A6,Ob)=>{"use strict";Ob.exports=Ab()});var Ib=Be($e=>{"use strict";var E4=vt();function Pb(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}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 Fl(){}var ke={d:{f:Fl,r:function(){throw Error(Pb(522))},D:Fl,C:Fl,L:Fl,m:Fl,X:Fl,S:Fl,M:Fl},p:0,findDOMNode:null},x4=Symbol.for("react.portal");function T4(t,e,i){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:x4,key:n==null?null:""+n,children:t,containerInfo:e,implementation:i}}var Jo=E4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Tf(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}$e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ke;$e.createPortal=function(t,e){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Pb(299));return T4(t,e,null,i)};$e.flushSync=function(t){var e=Jo.T,i=ke.p;try{if(Jo.T=null,ke.p=2,t)return t()}finally{Jo.T=e,ke.p=i,ke.d.f()}};$e.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ke.d.C(t,e))};$e.prefetchDNS=function(t){typeof t=="string"&&ke.d.D(t)};$e.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var i=e.as,n=Tf(i,e.crossOrigin),u=typeof e.integrity=="string"?e.integrity:void 0,s=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;i==="style"?ke.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:u,fetchPriority:s}):i==="script"&&ke.d.X(t,{crossOrigin:n,integrity:u,fetchPriority:s,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};$e.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var i=Tf(e.as,e.crossOrigin);ke.d.M(t,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&ke.d.M(t)};$e.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var i=e.as,n=Tf(i,e.crossOrigin);ke.d.L(t,i,{crossOrigin:n,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})}};$e.preloadModule=function(t,e){if(typeof t=="string")if(e){var i=Tf(e.as,e.crossOrigin);ke.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else ke.d.m(t)};$e.requestFormReset=function(t){ke.d.r(t)};$e.unstable_batchedUpdates=function(t,e){return t(e)};$e.useFormState=function(t,e,i){return Jo.H.useFormState(t,e,i)};$e.useFormStatus=function(){return Jo.H.useHostTransitionStatus()};$e.version="19.2.0"});var Rg=Be((VD,$b)=>{"use strict";function kb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kb)}catch(t){console.error(t)}}kb(),$b.exports=Ib()});var fz=Be(Fh=>{"use strict";var xe=xg(),_E=vt(),z4=Rg();function U(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}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 AE(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Hc(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function OE(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 ME(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 t2(t){if(Hc(t)!==t)throw Error(U(188))}function _4(t){var e=t.alternate;if(!e){if(e=Hc(t),e===null)throw Error(U(188));return e!==t?null:t}for(var i=t,n=e;;){var u=i.return;if(u===null)break;var s=u.alternate;if(s===null){if(n=u.return,n!==null){i=n;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===i)return t2(u),t;if(s===n)return t2(u),e;s=s.sibling}throw Error(U(188))}if(i.return!==n.return)i=u,n=s;else{for(var r=!1,f=u.child;f;){if(f===i){r=!0,i=u,n=s;break}if(f===n){r=!0,n=u,i=s;break}f=f.sibling}if(!r){for(f=s.child;f;){if(f===i){r=!0,i=s,n=u;break}if(f===n){r=!0,n=s,i=u;break}f=f.sibling}if(!r)throw Error(U(189))}}if(i.alternate!==n)throw Error(U(190))}if(i.tag!==3)throw Error(U(188));return i.stateNode.current===i?t:e}function CE(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=CE(t),e!==null)return e;t=t.sibling}return null}var Gt=Object.assign,A4=Symbol.for("react.element"),zf=Symbol.for("react.transitional.element"),ec=Symbol.for("react.portal"),rs=Symbol.for("react.fragment"),RE=Symbol.for("react.strict_mode"),ry=Symbol.for("react.profiler"),NE=Symbol.for("react.consumer"),fl=Symbol.for("react.context"),av=Symbol.for("react.forward_ref"),fy=Symbol.for("react.suspense"),hy=Symbol.for("react.suspense_list"),uv=Symbol.for("react.memo"),Wl=Symbol.for("react.lazy");Symbol.for("react.scope");var dy=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var O4=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var e2=Symbol.iterator;function Fo(t){return t===null||typeof t!="object"?null:(t=e2&&t[e2]||t["@@iterator"],typeof t=="function"?t:null)}var M4=Symbol.for("react.client.reference");function my(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===M4?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case rs:return"Fragment";case ry:return"Profiler";case RE:return"StrictMode";case fy:return"Suspense";case hy:return"SuspenseList";case dy:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case ec:return"Portal";case fl:return t.displayName||"Context";case NE:return(t._context.displayName||"Context")+".Consumer";case av:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case uv:return e=t.displayName||null,e!==null?e:my(t.type)||"Memo";case Wl:e=t._payload,t=t._init;try{return my(t(e))}catch{}}return null}var ic=Array.isArray,tt=_E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xt=z4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tu={pending:!1,data:null,method:null,action:null},gy=[],fs=-1;function Bn(t){return{current:t}}function Re(t){0>fs||(t.current=gy[fs],gy[fs]=null,fs--)}function Ht(t,e){fs++,gy[fs]=t.current,t.current=e}var Un=Bn(null),Sc=Bn(null),ua=Bn(null),nh=Bn(null);function lh(t,e){switch(Ht(ua,e),Ht(Sc,t),Ht(Un,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?oE(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=oE(e),t=IT(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Re(Un),Ht(Un,t)}function Cs(){Re(Un),Re(Sc),Re(ua)}function yy(t){t.memoizedState!==null&&Ht(nh,t);var e=Un.current,i=IT(e,t.type);e!==i&&(Ht(Sc,t),Ht(Un,i))}function ah(t){Sc.current===t&&(Re(Un),Re(Sc)),nh.current===t&&(Re(nh),Rc._currentValue=tu)}var Ng,i2;function Pa(t){if(Ng===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Ng=e&&e[1]||"",i2=-1<i.stack.indexOf(`
|
|
13
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
14
|
-
`+Ng+t+i2}var Dg=!1;function Hg(t,e){if(!t||Dg)return"";Dg=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(x){var p=x}Reflect.construct(t,[],S)}else{try{S.call()}catch(x){p=x}t.call(S.prototype)}}else{try{throw Error()}catch(x){p=x}(S=t())&&typeof S.catch=="function"&&S.catch(function(){})}}catch(x){if(x&&p&&typeof x.stack=="string")return[x.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),r=s[0],f=s[1];if(r&&f){var m=r.split(`
|
|
15
|
-
`),y=f.split(`
|
|
16
|
-
`);for(u=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;u<y.length&&!y[u].includes("DetermineComponentFrameRoot");)u++;if(n===m.length||u===y.length)for(n=m.length-1,u=y.length-1;1<=n&&0<=u&&m[n]!==y[u];)u--;for(;1<=n&&0<=u;n--,u--)if(m[n]!==y[u]){if(n!==1||u!==1)do if(n--,u--,0>u||m[n]!==y[u]){var g=`
|
|
17
|
-
`+m[n].replace(" at new "," at ");return t.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",t.displayName)),g}while(1<=n&&0<=u);break}}}finally{Dg=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Pa(i):""}function C4(t,e){switch(t.tag){case 26:case 27:case 5:return Pa(t.type);case 16:return Pa("Lazy");case 13:return t.child!==e&&e!==null?Pa("Suspense Fallback"):Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 15:return Hg(t.type,!1);case 11:return Hg(t.type.render,!1);case 1:return Hg(t.type,!0);case 31:return Pa("Activity");default:return""}}function n2(t){try{var e="",i=null;do e+=C4(t,i),i=t,t=t.return;while(t);return e}catch(n){return`
|
|
18
|
-
Error generating stack: `+n.message+`
|
|
19
|
-
`+n.stack}}var vy=Object.prototype.hasOwnProperty,sv=xe.unstable_scheduleCallback,Ug=xe.unstable_cancelCallback,R4=xe.unstable_shouldYield,N4=xe.unstable_requestPaint,Hi=xe.unstable_now,D4=xe.unstable_getCurrentPriorityLevel,DE=xe.unstable_ImmediatePriority,HE=xe.unstable_UserBlockingPriority,uh=xe.unstable_NormalPriority,H4=xe.unstable_LowPriority,UE=xe.unstable_IdlePriority,U4=xe.log,B4=xe.unstable_setDisableYieldValue,Uc=null,Ui=null;function ea(t){if(typeof U4=="function"&&B4(t),Ui&&typeof Ui.setStrictMode=="function")try{Ui.setStrictMode(Uc,t)}catch{}}var Bi=Math.clz32?Math.clz32:L4,w4=Math.log,j4=Math.LN2;function L4(t){return t>>>=0,t===0?32:31-(w4(t)/j4|0)|0}var _f=256,Af=262144,Of=4194304;function Ia(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 Dh(t,e,i){var n=t.pendingLanes;if(n===0)return 0;var u=0,s=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var f=n&134217727;return f!==0?(n=f&~s,n!==0?u=Ia(n):(r&=f,r!==0?u=Ia(r):i||(i=f&~t,i!==0&&(u=Ia(i))))):(f=n&~s,f!==0?u=Ia(f):r!==0?u=Ia(r):i||(i=n&~t,i!==0&&(u=Ia(i)))),u===0?0:e!==0&&e!==u&&!(e&s)&&(s=u&-u,i=e&-e,s>=i||s===32&&(i&4194048)!==0)?e:u}function Bc(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function q4(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 BE(){var t=Of;return Of<<=1,!(Of&62914560)&&(Of=4194304),t}function Bg(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function wc(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function G4(t,e,i,n,u,s){var r=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var f=t.entanglements,m=t.expirationTimes,y=t.hiddenUpdates;for(i=r&~i;0<i;){var g=31-Bi(i),S=1<<g;f[g]=0,m[g]=-1;var p=y[g];if(p!==null)for(y[g]=null,g=0;g<p.length;g++){var x=p[g];x!==null&&(x.lane&=-536870913)}i&=~S}n!==0&&wE(t,n,0),s!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=s&~(r&~e))}function wE(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Bi(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|i&261930}function jE(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var n=31-Bi(i),u=1<<n;u&e|t[n]&e&&(t[n]|=e),i&=~u}}function LE(t,e){var i=e&-e;return i=i&42?1:ov(i),i&(t.suspendedLanes|e)?0:i}function ov(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 cv(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function qE(){var t=xt.p;return t!==0?t:(t=window.event,t===void 0?32:oz(t.type))}function l2(t,e){var i=xt.p;try{return xt.p=t,e()}finally{xt.p=i}}var Sa=Math.random().toString(36).slice(2),Le="__reactFiber$"+Sa,di="__reactProps$"+Sa,Gs="__reactContainer$"+Sa,py="__reactEvents$"+Sa,Y4="__reactListeners$"+Sa,Q4="__reactHandles$"+Sa,a2="__reactResources$"+Sa,jc="__reactMarker$"+Sa;function rv(t){delete t[Le],delete t[di],delete t[py],delete t[Y4],delete t[Q4]}function hs(t){var e=t[Le];if(e)return e;for(var i=t.parentNode;i;){if(e=i[Gs]||i[Le]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=dE(t);t!==null;){if(i=t[Le])return i;t=dE(t)}return e}t=i,i=t.parentNode}return null}function Ys(t){if(t=t[Le]||t[Gs]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function nc(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(U(33))}function xs(t){var e=t[a2];return e||(e=t[a2]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ce(t){t[jc]=!0}var GE=new Set,YE={};function ru(t,e){Rs(t,e),Rs(t+"Capture",e)}function Rs(t,e){for(YE[t]=e,t=0;t<e.length;t++)GE.add(e[t])}var X4=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]*$"),u2={},s2={};function V4(t){return vy.call(s2,t)?!0:vy.call(u2,t)?!1:X4.test(t)?s2[t]=!0:(u2[t]=!0,!1)}function Qf(t,e,i){if(V4(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function Mf(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function ll(t,e,i,n){if(n===null)t.removeAttribute(i);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+n)}}function Ii(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function QE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Z4(t,e,i){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(r){i=""+r,s.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(r){i=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Sy(t){if(!t._valueTracker){var e=QE(t)?"checked":"value";t._valueTracker=Z4(t,e,""+t[e])}}function XE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),n="";return t&&(n=QE(t)?t.checked?"true":"false":t.value),t=n,t!==i?(e.setValue(t),!0):!1}function sh(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 K4=/[\n"\\]/g;function tn(t){return t.replace(K4,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function by(t,e,i,n,u,s,r,f){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ii(e)):t.value!==""+Ii(e)&&(t.value=""+Ii(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Ey(t,r,Ii(e)):i!=null?Ey(t,r,Ii(i)):n!=null&&t.removeAttribute("value"),u==null&&s!=null&&(t.defaultChecked=!!s),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+Ii(f):t.removeAttribute("name")}function VE(t,e,i,n,u,s,r,f){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||i!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Sy(t);return}i=i!=null?""+Ii(i):"",e=e!=null?""+Ii(e):i,f||e===t.value||(t.value=e),t.defaultValue=e}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=f?t.checked:!!n,t.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r),Sy(t)}function Ey(t,e,i){e==="number"&&sh(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ts(t,e,i,n){if(t=t.options,e){e={};for(var u=0;u<i.length;u++)e["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=e.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&n&&(t[i].defaultSelected=!0)}else{for(i=""+Ii(i),e=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,n&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function ZE(t,e,i){if(e!=null&&(e=""+Ii(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Ii(i):""}function KE(t,e,i,n){if(e==null){if(n!=null){if(i!=null)throw Error(U(92));if(ic(n)){if(1<n.length)throw Error(U(93));n=n[0]}i=n}i==null&&(i=""),e=i}i=Ii(e),t.defaultValue=i,n=t.textContent,n===i&&n!==""&&n!==null&&(t.value=n),Sy(t)}function Ns(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var J4=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 o2(t,e,i){var n=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,i):typeof i!="number"||i===0||J4.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function JE(t,e,i){if(e!=null&&typeof e!="object")throw Error(U(62));if(t=t.style,i!=null){for(var n in i)!i.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var u in e)n=e[u],e.hasOwnProperty(u)&&i[u]!==n&&o2(t,u,n)}else for(var s in e)e.hasOwnProperty(s)&&o2(t,s,e[s])}function fv(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 F4=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"]]),W4=/^[\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 Xf(t){return W4.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function hl(){}var xy=null;function hv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ds=null,zs=null;function c2(t){var e=Ys(t);if(e&&(t=e.stateNode)){var i=t[di]||null;t:switch(t=e.stateNode,e.type){case"input":if(by(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+tn(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var n=i[e];if(n!==t&&n.form===t.form){var u=n[di]||null;if(!u)throw Error(U(90));by(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<i.length;e++)n=i[e],n.form===t.form&&XE(n)}break t;case"textarea":ZE(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&Ts(t,!!i.multiple,e,!1)}}}var wg=!1;function FE(t,e,i){if(wg)return t(e,i);wg=!0;try{var n=t(e);return n}finally{if(wg=!1,(ds!==null||zs!==null)&&(Vh(),ds&&(e=ds,t=zs,zs=ds=null,c2(e),t)))for(e=0;e<t.length;e++)c2(t[e])}}function bc(t,e){var i=t.stateNode;if(i===null)return null;var n=i[di]||null;if(n===null)return null;i=n[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":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(U(231,e,typeof i));return i}var vl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ty=!1;if(vl)try{as={},Object.defineProperty(as,"passive",{get:function(){Ty=!0}}),window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{Ty=!1}var as,ia=null,dv=null,Vf=null;function WE(){if(Vf)return Vf;var t,e=dv,i=e.length,n,u="value"in ia?ia.value:ia.textContent,s=u.length;for(t=0;t<i&&e[t]===u[t];t++);var r=i-t;for(n=1;n<=r&&e[i-n]===u[s-n];n++);return Vf=u.slice(t,1<n?1-n:void 0)}function Zf(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 Cf(){return!0}function r2(){return!1}function mi(t){function e(i,n,u,s,r){this._reactName=i,this._targetInst=u,this.type=n,this.nativeEvent=s,this.target=r,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(i=t[f],this[f]=i?i(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Cf:r2,this.isPropagationStopped=r2,this}return Gt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Cf)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Cf)},persist:function(){},isPersistent:Cf}),e}var fu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hh=mi(fu),Lc=Gt({},fu,{view:0,detail:0}),P4=mi(Lc),jg,Lg,Wo,Uh=Gt({},Lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mv,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!==Wo&&(Wo&&t.type==="mousemove"?(jg=t.screenX-Wo.screenX,Lg=t.screenY-Wo.screenY):Lg=jg=0,Wo=t),jg)},movementY:function(t){return"movementY"in t?t.movementY:Lg}}),f2=mi(Uh),I4=Gt({},Uh,{dataTransfer:0}),k4=mi(I4),$4=Gt({},Lc,{relatedTarget:0}),qg=mi($4),tO=Gt({},fu,{animationName:0,elapsedTime:0,pseudoElement:0}),eO=mi(tO),iO=Gt({},fu,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),nO=mi(iO),lO=Gt({},fu,{data:0}),h2=mi(lO),aO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uO={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"},sO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oO(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=sO[t])?!!e[t]:!1}function mv(){return oO}var cO=Gt({},Lc,{key:function(t){if(t.key){var e=aO[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zf(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?uO[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mv,charCode:function(t){return t.type==="keypress"?Zf(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zf(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),rO=mi(cO),fO=Gt({},Uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),d2=mi(fO),hO=Gt({},Lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mv}),dO=mi(hO),mO=Gt({},fu,{propertyName:0,elapsedTime:0,pseudoElement:0}),gO=mi(mO),yO=Gt({},Uh,{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}),vO=mi(yO),pO=Gt({},fu,{newState:0,oldState:0}),SO=mi(pO),bO=[9,13,27,32],gv=vl&&"CompositionEvent"in window,uc=null;vl&&"documentMode"in document&&(uc=document.documentMode);var EO=vl&&"TextEvent"in window&&!uc,PE=vl&&(!gv||uc&&8<uc&&11>=uc),m2=" ",g2=!1;function IE(t,e){switch(t){case"keyup":return bO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kE(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ms=!1;function xO(t,e){switch(t){case"compositionend":return kE(e);case"keypress":return e.which!==32?null:(g2=!0,m2);case"textInput":return t=e.data,t===m2&&g2?null:t;default:return null}}function TO(t,e){if(ms)return t==="compositionend"||!gv&&IE(t,e)?(t=WE(),Vf=dv=ia=null,ms=!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 PE&&e.locale!=="ko"?null:e.data;default:return null}}var zO={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 y2(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!zO[t.type]:e==="textarea"}function $E(t,e,i,n){ds?zs?zs.push(n):zs=[n]:ds=n,e=_h(e,"onChange"),0<e.length&&(i=new Hh("onChange","change",null,i,n),t.push({event:i,listeners:e}))}var sc=null,Ec=null;function _O(t){FT(t,0)}function Bh(t){var e=nc(t);if(XE(e))return t}function v2(t,e){if(t==="change")return e}var tx=!1;vl&&(vl?(Nf="oninput"in document,Nf||(Gg=document.createElement("div"),Gg.setAttribute("oninput","return;"),Nf=typeof Gg.oninput=="function"),Rf=Nf):Rf=!1,tx=Rf&&(!document.documentMode||9<document.documentMode));var Rf,Nf,Gg;function p2(){sc&&(sc.detachEvent("onpropertychange",ex),Ec=sc=null)}function ex(t){if(t.propertyName==="value"&&Bh(Ec)){var e=[];$E(e,Ec,t,hv(t)),FE(_O,e)}}function AO(t,e,i){t==="focusin"?(p2(),sc=e,Ec=i,sc.attachEvent("onpropertychange",ex)):t==="focusout"&&p2()}function OO(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bh(Ec)}function MO(t,e){if(t==="click")return Bh(e)}function CO(t,e){if(t==="input"||t==="change")return Bh(e)}function RO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ji=typeof Object.is=="function"?Object.is:RO;function xc(t,e){if(ji(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(n=0;n<i.length;n++){var u=i[n];if(!vy.call(e,u)||!ji(t[u],e[u]))return!1}return!0}function S2(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function b2(t,e){var i=S2(t);t=0;for(var n;i;){if(i.nodeType===3){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=S2(i)}}function ix(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ix(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function nx(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=sh(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=sh(t.document)}return e}function yv(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 NO=vl&&"documentMode"in document&&11>=document.documentMode,gs=null,zy=null,oc=null,_y=!1;function E2(t,e,i){var n=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;_y||gs==null||gs!==sh(n)||(n=gs,"selectionStart"in n&&yv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),oc&&xc(oc,n)||(oc=n,n=_h(zy,"onSelect"),0<n.length&&(e=new Hh("onSelect","select",null,e,i),t.push({event:e,listeners:n}),e.target=gs)))}function Wa(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var ys={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},Yg={},lx={};vl&&(lx=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function hu(t){if(Yg[t])return Yg[t];if(!ys[t])return t;var e=ys[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in lx)return Yg[t]=e[i];return t}var ax=hu("animationend"),ux=hu("animationiteration"),sx=hu("animationstart"),DO=hu("transitionrun"),HO=hu("transitionstart"),UO=hu("transitioncancel"),ox=hu("transitionend"),cx=new Map,Ay="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(" ");Ay.push("scrollEnd");function vn(t,e){cx.set(t,e),ru(e,[t])}var oh=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)},Pi=[],vs=0,vv=0;function wh(){for(var t=vs,e=vv=vs=0;e<t;){var i=Pi[e];Pi[e++]=null;var n=Pi[e];Pi[e++]=null;var u=Pi[e];Pi[e++]=null;var s=Pi[e];if(Pi[e++]=null,n!==null&&u!==null){var r=n.pending;r===null?u.next=u:(u.next=r.next,r.next=u),n.pending=u}s!==0&&rx(i,u,s)}}function jh(t,e,i,n){Pi[vs++]=t,Pi[vs++]=e,Pi[vs++]=i,Pi[vs++]=n,vv|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function pv(t,e,i,n){return jh(t,e,i,n),ch(t)}function du(t,e){return jh(t,null,null,e),ch(t)}function rx(t,e,i){t.lanes|=i;var n=t.alternate;n!==null&&(n.lanes|=i);for(var u=!1,s=t.return;s!==null;)s.childLanes|=i,n=s.alternate,n!==null&&(n.childLanes|=i),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(u=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,u&&e!==null&&(u=31-Bi(i),t=s.hiddenUpdates,n=t[u],n===null?t[u]=[e]:n.push(e),e.lane=i|536870912),s):null}function ch(t){if(50<vc)throw vc=0,Jy=null,Error(U(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ps={};function BO(t,e,i,n){this.tag=t,this.key=i,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ni(t,e,i,n){return new BO(t,e,i,n)}function Sv(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ml(t,e){var i=t.alternate;return i===null?(i=Ni(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function fx(t,e){t.flags&=65011714;var i=t.alternate;return i===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=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Kf(t,e,i,n,u,s){var r=0;if(n=t,typeof t=="function")Sv(t)&&(r=1);else if(typeof t=="string")r=LM(t,i,Un.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case dy:return t=Ni(31,i,e,u),t.elementType=dy,t.lanes=s,t;case rs:return eu(i.children,u,s,e);case RE:r=8,u|=24;break;case ry:return t=Ni(12,i,e,u|2),t.elementType=ry,t.lanes=s,t;case fy:return t=Ni(13,i,e,u),t.elementType=fy,t.lanes=s,t;case hy:return t=Ni(19,i,e,u),t.elementType=hy,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case fl:r=10;break t;case NE:r=9;break t;case av:r=11;break t;case uv:r=14;break t;case Wl:r=16,n=null;break t}r=29,i=Error(U(130,t===null?"null":typeof t,"")),n=null}return e=Ni(r,i,e,u),e.elementType=t,e.type=n,e.lanes=s,e}function eu(t,e,i,n){return t=Ni(7,t,n,e),t.lanes=i,t}function Qg(t,e,i){return t=Ni(6,t,null,e),t.lanes=i,t}function hx(t){var e=Ni(18,null,null,0);return e.stateNode=t,e}function Xg(t,e,i){return e=Ni(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var x2=new WeakMap;function en(t,e){if(typeof t=="object"&&t!==null){var i=x2.get(t);return i!==void 0?i:(e={value:t,source:e,stack:n2(e)},x2.set(t,e),e)}return{value:t,source:e,stack:n2(e)}}var Ss=[],bs=0,rh=null,Tc=0,ki=[],$i=0,ga=null,Nn=1,Dn="";function cl(t,e){Ss[bs++]=Tc,Ss[bs++]=rh,rh=t,Tc=e}function dx(t,e,i){ki[$i++]=Nn,ki[$i++]=Dn,ki[$i++]=ga,ga=t;var n=Nn;t=Dn;var u=32-Bi(n)-1;n&=~(1<<u),i+=1;var s=32-Bi(e)+u;if(30<s){var r=u-u%5;s=(n&(1<<r)-1).toString(32),n>>=r,u-=r,Nn=1<<32-Bi(e)+u|i<<u|n,Dn=s+t}else Nn=1<<s|i<<u|n,Dn=t}function bv(t){t.return!==null&&(cl(t,1),dx(t,1,0))}function Ev(t){for(;t===rh;)rh=Ss[--bs],Ss[bs]=null,Tc=Ss[--bs],Ss[bs]=null;for(;t===ga;)ga=ki[--$i],ki[$i]=null,Dn=ki[--$i],ki[$i]=null,Nn=ki[--$i],ki[$i]=null}function mx(t,e){ki[$i++]=Nn,ki[$i++]=Dn,ki[$i++]=ga,Nn=e.id,Dn=e.overflow,ga=t}var qe=null,qt=null,yt=!1,sa=null,nn=!1,Oy=Error(U(519));function ya(t){var e=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zc(en(e,t)),Oy}function T2(t){var e=t.stateNode,i=t.type,n=t.memoizedProps;switch(e[Le]=t,e[di]=n,i){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(i=0;i<Mc.length;i++)rt(Mc[i],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":rt("invalid",e),VE(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":rt("invalid",e);break;case"textarea":rt("invalid",e),KE(e,n.value,n.defaultValue,n.children)}i=n.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||n.suppressHydrationWarning===!0||PT(e.textContent,i)?(n.popover!=null&&(rt("beforetoggle",e),rt("toggle",e)),n.onScroll!=null&&rt("scroll",e),n.onScrollEnd!=null&&rt("scrollend",e),n.onClick!=null&&(e.onclick=hl),e=!0):e=!1,e||ya(t,!0)}function z2(t){for(qe=t.return;qe;)switch(qe.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:qe=qe.return}}function us(t){if(t!==qe)return!1;if(!yt)return z2(t),yt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ky(t.type,t.memoizedProps)),i=!i),i&&qt&&ya(t),z2(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(317));qt=hE(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(317));qt=hE(t)}else e===27?(e=qt,ba(t.type)?(t=iv,iv=null,qt=t):qt=e):qt=qe?an(t.stateNode.nextSibling):null;return!0}function au(){qt=qe=null,yt=!1}function Vg(){var t=sa;return t!==null&&(fi===null?fi=t:fi.push.apply(fi,t),sa=null),t}function zc(t){sa===null?sa=[t]:sa.push(t)}var My=Bn(null),mu=null,dl=null;function Il(t,e,i){Ht(My,e._currentValue),e._currentValue=i}function gl(t){t._currentValue=My.current,Re(My)}function Cy(t,e,i){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===i)break;t=t.return}}function Ry(t,e,i,n){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var s=u.dependencies;if(s!==null){var r=u.child;s=s.firstContext;t:for(;s!==null;){var f=s;s=u;for(var m=0;m<e.length;m++)if(f.context===e[m]){s.lanes|=i,f=s.alternate,f!==null&&(f.lanes|=i),Cy(s.return,i,t),n||(r=null);break t}s=f.next}}else if(u.tag===18){if(r=u.return,r===null)throw Error(U(341));r.lanes|=i,s=r.alternate,s!==null&&(s.lanes|=i),Cy(r,i,t),r=null}else r=u.child;if(r!==null)r.return=u;else for(r=u;r!==null;){if(r===t){r=null;break}if(u=r.sibling,u!==null){u.return=r.return,r=u;break}r=r.return}u=r}}function Qs(t,e,i,n){t=null;for(var u=e,s=!1;u!==null;){if(!s){if(u.flags&524288)s=!0;else if(u.flags&262144)break}if(u.tag===10){var r=u.alternate;if(r===null)throw Error(U(387));if(r=r.memoizedProps,r!==null){var f=u.type;ji(u.pendingProps.value,r.value)||(t!==null?t.push(f):t=[f])}}else if(u===nh.current){if(r=u.alternate,r===null)throw Error(U(387));r.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Rc):t=[Rc])}u=u.return}t!==null&&Ry(e,t,i,n),e.flags|=262144}function fh(t){for(t=t.firstContext;t!==null;){if(!ji(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function uu(t){mu=t,dl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ge(t){return gx(mu,t)}function Df(t,e){return mu===null&&uu(t),gx(t,e)}function gx(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},dl===null){if(t===null)throw Error(U(308));dl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dl=dl.next=e;return i}var wO=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},jO=xe.unstable_scheduleCallback,LO=xe.unstable_NormalPriority,de={$$typeof:fl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xv(){return{controller:new wO,data:new Map,refCount:0}}function qc(t){t.refCount--,t.refCount===0&&jO(LO,function(){t.controller.abort()})}var cc=null,Ny=0,Ds=0,_s=null;function qO(t,e){if(cc===null){var i=cc=[];Ny=0,Ds=Jv(),_s={status:"pending",value:void 0,then:function(n){i.push(n)}}}return Ny++,e.then(_2,_2),e}function _2(){if(--Ny===0&&cc!==null){_s!==null&&(_s.status="fulfilled");var t=cc;cc=null,Ds=0,_s=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function GO(t,e){var i=[],n={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var u=0;u<i.length;u++)(0,i[u])(e)},function(u){for(n.status="rejected",n.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),n}var A2=tt.S;tt.S=function(t,e){CT=Hi(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&qO(t,e),A2!==null&&A2(t,e)};var iu=Bn(null);function Tv(){var t=iu.current;return t!==null?t:Dt.pooledCache}function Jf(t,e){e===null?Ht(iu,iu.current):Ht(iu,e.pool)}function yx(){var t=Tv();return t===null?null:{parent:de._currentValue,pool:t}}var Xs=Error(U(460)),zv=Error(U(474)),Lh=Error(U(542)),hh={then:function(){}};function O2(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vx(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(hl,hl),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,C2(t),t;default:if(typeof e.status=="string")e.then(hl,hl);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(U(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=n}},function(n){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,C2(t),t}throw nu=e,Xs}}function ka(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(nu=i,Xs):i}}var nu=null;function M2(){if(nu===null)throw Error(U(459));var t=nu;return nu=null,t}function C2(t){if(t===Xs||t===Lh)throw Error(U(483))}var As=null,_c=0;function Hf(t){var e=_c;return _c+=1,As===null&&(As=[]),vx(As,t,e)}function Po(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Uf(t,e){throw e.$$typeof===A4?Error(U(525)):(t=Object.prototype.toString.call(e),Error(U(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function px(t){function e(T,E){if(t){var z=T.deletions;z===null?(T.deletions=[E],T.flags|=16):z.push(E)}}function i(T,E){if(!t)return null;for(;E!==null;)e(T,E),E=E.sibling;return null}function n(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function u(T,E){return T=ml(T,E),T.index=0,T.sibling=null,T}function s(T,E,z){return T.index=z,t?(z=T.alternate,z!==null?(z=z.index,z<E?(T.flags|=67108866,E):z):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function r(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function f(T,E,z,O){return E===null||E.tag!==6?(E=Qg(z,T.mode,O),E.return=T,E):(E=u(E,z),E.return=T,E)}function m(T,E,z,O){var H=z.type;return H===rs?g(T,E,z.props.children,O,z.key):E!==null&&(E.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Wl&&ka(H)===E.type)?(E=u(E,z.props),Po(E,z),E.return=T,E):(E=Kf(z.type,z.key,z.props,null,T.mode,O),Po(E,z),E.return=T,E)}function y(T,E,z,O){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=Xg(z,T.mode,O),E.return=T,E):(E=u(E,z.children||[]),E.return=T,E)}function g(T,E,z,O,H){return E===null||E.tag!==7?(E=eu(z,T.mode,O,H),E.return=T,E):(E=u(E,z),E.return=T,E)}function S(T,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Qg(""+E,T.mode,z),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case zf:return z=Kf(E.type,E.key,E.props,null,T.mode,z),Po(z,E),z.return=T,z;case ec:return E=Xg(E,T.mode,z),E.return=T,E;case Wl:return E=ka(E),S(T,E,z)}if(ic(E)||Fo(E))return E=eu(E,T.mode,z,null),E.return=T,E;if(typeof E.then=="function")return S(T,Hf(E),z);if(E.$$typeof===fl)return S(T,Df(T,E),z);Uf(T,E)}return null}function p(T,E,z,O){var H=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return H!==null?null:f(T,E,""+z,O);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case zf:return z.key===H?m(T,E,z,O):null;case ec:return z.key===H?y(T,E,z,O):null;case Wl:return z=ka(z),p(T,E,z,O)}if(ic(z)||Fo(z))return H!==null?null:g(T,E,z,O,null);if(typeof z.then=="function")return p(T,E,Hf(z),O);if(z.$$typeof===fl)return p(T,E,Df(T,z),O);Uf(T,z)}return null}function x(T,E,z,O,H){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return T=T.get(z)||null,f(E,T,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case zf:return T=T.get(O.key===null?z:O.key)||null,m(E,T,O,H);case ec:return T=T.get(O.key===null?z:O.key)||null,y(E,T,O,H);case Wl:return O=ka(O),x(T,E,z,O,H)}if(ic(O)||Fo(O))return T=T.get(z)||null,g(E,T,O,H,null);if(typeof O.then=="function")return x(T,E,z,Hf(O),H);if(O.$$typeof===fl)return x(T,E,z,Df(E,O),H);Uf(E,O)}return null}function A(T,E,z,O){for(var H=null,q=null,L=E,G=E=0,J=null;L!==null&&G<z.length;G++){L.index>G?(J=L,L=null):J=L.sibling;var B=p(T,L,z[G],O);if(B===null){L===null&&(L=J);break}t&&L&&B.alternate===null&&e(T,L),E=s(B,E,G),q===null?H=B:q.sibling=B,q=B,L=J}if(G===z.length)return i(T,L),yt&&cl(T,G),H;if(L===null){for(;G<z.length;G++)L=S(T,z[G],O),L!==null&&(E=s(L,E,G),q===null?H=L:q.sibling=L,q=L);return yt&&cl(T,G),H}for(L=n(L);G<z.length;G++)J=x(L,T,G,z[G],O),J!==null&&(t&&J.alternate!==null&&L.delete(J.key===null?G:J.key),E=s(J,E,G),q===null?H=J:q.sibling=J,q=J);return t&&L.forEach(function(I){return e(T,I)}),yt&&cl(T,G),H}function R(T,E,z,O){if(z==null)throw Error(U(151));for(var H=null,q=null,L=E,G=E=0,J=null,B=z.next();L!==null&&!B.done;G++,B=z.next()){L.index>G?(J=L,L=null):J=L.sibling;var I=p(T,L,B.value,O);if(I===null){L===null&&(L=J);break}t&&L&&I.alternate===null&&e(T,L),E=s(I,E,G),q===null?H=I:q.sibling=I,q=I,L=J}if(B.done)return i(T,L),yt&&cl(T,G),H;if(L===null){for(;!B.done;G++,B=z.next())B=S(T,B.value,O),B!==null&&(E=s(B,E,G),q===null?H=B:q.sibling=B,q=B);return yt&&cl(T,G),H}for(L=n(L);!B.done;G++,B=z.next())B=x(L,T,G,B.value,O),B!==null&&(t&&B.alternate!==null&&L.delete(B.key===null?G:B.key),E=s(B,E,G),q===null?H=B:q.sibling=B,q=B);return t&&L.forEach(function(ht){return e(T,ht)}),yt&&cl(T,G),H}function w(T,E,z,O){if(typeof z=="object"&&z!==null&&z.type===rs&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case zf:t:{for(var H=z.key;E!==null;){if(E.key===H){if(H=z.type,H===rs){if(E.tag===7){i(T,E.sibling),O=u(E,z.props.children),O.return=T,T=O;break t}}else if(E.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Wl&&ka(H)===E.type){i(T,E.sibling),O=u(E,z.props),Po(O,z),O.return=T,T=O;break t}i(T,E);break}else e(T,E);E=E.sibling}z.type===rs?(O=eu(z.props.children,T.mode,O,z.key),O.return=T,T=O):(O=Kf(z.type,z.key,z.props,null,T.mode,O),Po(O,z),O.return=T,T=O)}return r(T);case ec:t:{for(H=z.key;E!==null;){if(E.key===H)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){i(T,E.sibling),O=u(E,z.children||[]),O.return=T,T=O;break t}else{i(T,E);break}else e(T,E);E=E.sibling}O=Xg(z,T.mode,O),O.return=T,T=O}return r(T);case Wl:return z=ka(z),w(T,E,z,O)}if(ic(z))return A(T,E,z,O);if(Fo(z)){if(H=Fo(z),typeof H!="function")throw Error(U(150));return z=H.call(z),R(T,E,z,O)}if(typeof z.then=="function")return w(T,E,Hf(z),O);if(z.$$typeof===fl)return w(T,E,Df(T,z),O);Uf(T,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(i(T,E.sibling),O=u(E,z),O.return=T,T=O):(i(T,E),O=Qg(z,T.mode,O),O.return=T,T=O),r(T)):i(T,E)}return function(T,E,z,O){try{_c=0;var H=w(T,E,z,O);return As=null,H}catch(L){if(L===Xs||L===Lh)throw L;var q=Ni(29,L,null,T.mode);return q.lanes=O,q.return=T,q}finally{}}}var su=px(!0),Sx=px(!1),Pl=!1;function _v(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dy(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 oa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ca(t,e,i){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Et&2){var u=n.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),n.pending=e,e=ch(t),rx(t,null,i),e}return jh(t,n,e,i),ch(t)}function rc(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,i|=n,e.lanes=i,jE(t,i)}}function Zg(t,e){var i=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,i===n)){var u=null,s=null;if(i=i.firstBaseUpdate,i!==null){do{var r={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};s===null?u=s=r:s=s.next=r,i=i.next}while(i!==null);s===null?u=s=e:s=s.next=e}else u=s=e;i={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var Hy=!1;function fc(){if(Hy){var t=_s;if(t!==null)throw t}}function hc(t,e,i,n){Hy=!1;var u=t.updateQueue;Pl=!1;var s=u.firstBaseUpdate,r=u.lastBaseUpdate,f=u.shared.pending;if(f!==null){u.shared.pending=null;var m=f,y=m.next;m.next=null,r===null?s=y:r.next=y,r=m;var g=t.alternate;g!==null&&(g=g.updateQueue,f=g.lastBaseUpdate,f!==r&&(f===null?g.firstBaseUpdate=y:f.next=y,g.lastBaseUpdate=m))}if(s!==null){var S=u.baseState;r=0,g=y=m=null,f=s;do{var p=f.lane&-536870913,x=p!==f.lane;if(x?(mt&p)===p:(n&p)===p){p!==0&&p===Ds&&(Hy=!0),g!==null&&(g=g.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var A=t,R=f;p=e;var w=i;switch(R.tag){case 1:if(A=R.payload,typeof A=="function"){S=A.call(w,S,p);break t}S=A;break t;case 3:A.flags=A.flags&-65537|128;case 0:if(A=R.payload,p=typeof A=="function"?A.call(w,S,p):A,p==null)break t;S=Gt({},S,p);break t;case 2:Pl=!0}}p=f.callback,p!==null&&(t.flags|=64,x&&(t.flags|=8192),x=u.callbacks,x===null?u.callbacks=[p]:x.push(p))}else x={lane:p,tag:f.tag,payload:f.payload,callback:f.callback,next:null},g===null?(y=g=x,m=S):g=g.next=x,r|=p;if(f=f.next,f===null){if(f=u.shared.pending,f===null)break;x=f,f=x.next,x.next=null,u.lastBaseUpdate=x,u.shared.pending=null}}while(!0);g===null&&(m=S),u.baseState=m,u.firstBaseUpdate=y,u.lastBaseUpdate=g,s===null&&(u.shared.lanes=0),pa|=r,t.lanes=r,t.memoizedState=S}}function bx(t,e){if(typeof t!="function")throw Error(U(191,t));t.call(e)}function Ex(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)bx(i[t],e)}var Hs=Bn(null),dh=Bn(0);function R2(t,e){t=El,Ht(dh,t),Ht(Hs,e),El=t|e.baseLanes}function Uy(){Ht(dh,El),Ht(Hs,Hs.current)}function Av(){El=dh.current,Re(Hs),Re(dh)}var Li=Bn(null),ln=null;function kl(t){var e=t.alternate;Ht(le,le.current&1),Ht(Li,t),ln===null&&(e===null||Hs.current!==null||e.memoizedState!==null)&&(ln=t)}function By(t){Ht(le,le.current),Ht(Li,t),ln===null&&(ln=t)}function xx(t){t.tag===22?(Ht(le,le.current),Ht(Li,t),ln===null&&(ln=t)):$l(t)}function $l(){Ht(le,le.current),Ht(Li,Li.current)}function Ri(t){Re(Li),ln===t&&(ln=null),Re(le)}var le=Bn(0);function mh(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||tv(i)||ev(i)))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)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 pl=0,ut=null,Ct=null,fe=null,gh=!1,Os=!1,ou=!1,yh=0,Ac=0,Ms=null,YO=0;function kt(){throw Error(U(321))}function Ov(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!ji(t[i],e[i]))return!1;return!0}function Mv(t,e,i,n,u,s){return pl=s,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,tt.H=t===null||t.memoizedState===null?$x:qv,ou=!1,s=i(n,u),ou=!1,Os&&(s=zx(e,i,n,u)),Tx(t),s}function Tx(t){tt.H=Oc;var e=Ct!==null&&Ct.next!==null;if(pl=0,fe=Ct=ut=null,gh=!1,Ac=0,Ms=null,e)throw Error(U(300));t===null||me||(t=t.dependencies,t!==null&&fh(t)&&(me=!0))}function zx(t,e,i,n){ut=t;var u=0;do{if(Os&&(Ms=null),Ac=0,Os=!1,25<=u)throw Error(U(301));if(u+=1,fe=Ct=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}tt.H=tT,s=e(i,n)}while(Os);return s}function QO(){var t=tt.H,e=t.useState()[0];return e=typeof e.then=="function"?Gc(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ut.flags|=1024),e}function Cv(){var t=yh!==0;return yh=0,t}function Rv(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Nv(t){if(gh){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}gh=!1}pl=0,fe=Ct=ut=null,Os=!1,Ac=yh=0,Ms=null}function ti(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?ut.memoizedState=fe=t:fe=fe.next=t,fe}function ae(){if(Ct===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=fe===null?ut.memoizedState:fe.next;if(e!==null)fe=e,Ct=t;else{if(t===null)throw ut.alternate===null?Error(U(467)):Error(U(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},fe===null?ut.memoizedState=fe=t:fe=fe.next=t}return fe}function qh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gc(t){var e=Ac;return Ac+=1,Ms===null&&(Ms=[]),t=vx(Ms,t,e),e=ut,(fe===null?e.memoizedState:fe.next)===null&&(e=e.alternate,tt.H=e===null||e.memoizedState===null?$x:qv),t}function Gh(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Gc(t);if(t.$$typeof===fl)return Ge(t)}throw Error(U(438,String(t)))}function Dv(t){var e=null,i=ut.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var n=ut.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=qh(),ut.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),n=0;n<t;n++)i[n]=O4;return e.index++,i}function Sl(t,e){return typeof e=="function"?e(t):e}function Ff(t){var e=ae();return Hv(e,Ct,t)}function Hv(t,e,i){var n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=i;var u=t.baseQueue,s=n.pending;if(s!==null){if(u!==null){var r=u.next;u.next=s.next,s.next=r}e.baseQueue=u=s,n.pending=null}if(s=t.baseState,u===null)t.memoizedState=s;else{e=u.next;var f=r=null,m=null,y=e,g=!1;do{var S=y.lane&-536870913;if(S!==y.lane?(mt&S)===S:(pl&S)===S){var p=y.revertLane;if(p===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),S===Ds&&(g=!0);else if((pl&p)===p){y=y.next,p===Ds&&(g=!0);continue}else S={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=S,r=s):m=m.next=S,ut.lanes|=p,pa|=p;S=y.action,ou&&i(s,S),s=y.hasEagerState?y.eagerState:i(s,S)}else p={lane:S,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=p,r=s):m=m.next=p,ut.lanes|=S,pa|=S;y=y.next}while(y!==null&&y!==e);if(m===null?r=s:m.next=f,!ji(s,t.memoizedState)&&(me=!0,g&&(i=_s,i!==null)))throw i;t.memoizedState=s,t.baseState=r,t.baseQueue=m,n.lastRenderedState=s}return u===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Kg(t){var e=ae(),i=e.queue;if(i===null)throw Error(U(311));i.lastRenderedReducer=t;var n=i.dispatch,u=i.pending,s=e.memoizedState;if(u!==null){i.pending=null;var r=u=u.next;do s=t(s,r.action),r=r.next;while(r!==u);ji(s,e.memoizedState)||(me=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),i.lastRenderedState=s}return[s,n]}function _x(t,e,i){var n=ut,u=ae(),s=yt;if(s){if(i===void 0)throw Error(U(407));i=i()}else i=e();var r=!ji((Ct||u).memoizedState,i);if(r&&(u.memoizedState=i,me=!0),u=u.queue,Uv(Mx.bind(null,n,u,t),[t]),u.getSnapshot!==e||r||fe!==null&&fe.memoizedState.tag&1){if(n.flags|=2048,Us(9,{destroy:void 0},Ox.bind(null,n,u,i,e),null),Dt===null)throw Error(U(349));s||pl&127||Ax(n,e,i)}return i}function Ax(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=ut.updateQueue,e===null?(e=qh(),ut.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Ox(t,e,i,n){e.value=i,e.getSnapshot=n,Cx(e)&&Rx(t)}function Mx(t,e,i){return i(function(){Cx(e)&&Rx(t)})}function Cx(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!ji(t,i)}catch{return!0}}function Rx(t){var e=du(t,2);e!==null&&hi(e,t,2)}function wy(t){var e=ti();if(typeof t=="function"){var i=t;if(t=i(),ou){ea(!0);try{i()}finally{ea(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:t},e}function Nx(t,e,i,n){return t.baseState=i,Hv(t,Ct,typeof n=="function"?n:Sl)}function XO(t,e,i,n,u){if(Qh(t))throw Error(U(485));if(t=e.action,t!==null){var s={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){s.listeners.push(r)}};tt.T!==null?i(!0):s.isTransition=!1,n(s),i=e.pending,i===null?(s.next=e.pending=s,Dx(e,s)):(s.next=i.next,e.pending=i.next=s)}}function Dx(t,e){var i=e.action,n=e.payload,u=t.state;if(e.isTransition){var s=tt.T,r={};tt.T=r;try{var f=i(u,n),m=tt.S;m!==null&&m(r,f),N2(t,e,f)}catch(y){jy(t,e,y)}finally{s!==null&&r.types!==null&&(s.types=r.types),tt.T=s}}else try{s=i(u,n),N2(t,e,s)}catch(y){jy(t,e,y)}}function N2(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(n){D2(t,e,n)},function(n){return jy(t,e,n)}):D2(t,e,i)}function D2(t,e,i){e.status="fulfilled",e.value=i,Hx(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Dx(t,i)))}function jy(t,e,i){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=i,Hx(e),e=e.next;while(e!==n)}t.action=null}function Hx(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ux(t,e){return e}function H2(t,e){if(yt){var i=Dt.formState;if(i!==null){t:{var n=ut;if(yt){if(qt){e:{for(var u=qt,s=nn;u.nodeType!==8;){if(!s){u=null;break e}if(u=an(u.nextSibling),u===null){u=null;break e}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){qt=an(u.nextSibling),n=u.data==="F!";break t}}ya(n)}n=!1}n&&(e=i[0])}}return i=ti(),i.memoizedState=i.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ux,lastRenderedState:e},i.queue=n,i=Px.bind(null,ut,n),n.dispatch=i,n=wy(!1),s=Lv.bind(null,ut,!1,n.queue),n=ti(),u={state:e,dispatch:null,action:t,pending:null},n.queue=u,i=XO.bind(null,ut,u,s,i),u.dispatch=i,n.memoizedState=t,[e,i,!1]}function U2(t){var e=ae();return Bx(e,Ct,t)}function Bx(t,e,i){if(e=Hv(t,e,Ux)[0],t=Ff(Sl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Gc(e)}catch(r){throw r===Xs?Lh:r}else n=e;e=ae();var u=e.queue,s=u.dispatch;return i!==e.memoizedState&&(ut.flags|=2048,Us(9,{destroy:void 0},VO.bind(null,u,i),null)),[n,s,t]}function VO(t,e){t.action=e}function B2(t){var e=ae(),i=Ct;if(i!==null)return Bx(e,i,t);ae(),e=e.memoizedState,i=ae();var n=i.queue.dispatch;return i.memoizedState=t,[e,n,!1]}function Us(t,e,i,n){return t={tag:t,create:i,deps:n,inst:e,next:null},e=ut.updateQueue,e===null&&(e=qh(),ut.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(n=i.next,i.next=t,t.next=n,e.lastEffect=t),t}function wx(){return ae().memoizedState}function Wf(t,e,i,n){var u=ti();ut.flags|=t,u.memoizedState=Us(1|e,{destroy:void 0},i,n===void 0?null:n)}function Yh(t,e,i,n){var u=ae();n=n===void 0?null:n;var s=u.memoizedState.inst;Ct!==null&&n!==null&&Ov(n,Ct.memoizedState.deps)?u.memoizedState=Us(e,s,i,n):(ut.flags|=t,u.memoizedState=Us(1|e,s,i,n))}function w2(t,e){Wf(8390656,8,t,e)}function Uv(t,e){Yh(2048,8,t,e)}function ZO(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=qh(),ut.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function jx(t){var e=ae().memoizedState;return ZO({ref:e,nextImpl:t}),function(){if(Et&2)throw Error(U(440));return e.impl.apply(void 0,arguments)}}function Lx(t,e){return Yh(4,2,t,e)}function qx(t,e){return Yh(4,4,t,e)}function Gx(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Yx(t,e,i){i=i!=null?i.concat([t]):null,Yh(4,4,Gx.bind(null,e,t),i)}function Bv(){}function Qx(t,e){var i=ae();e=e===void 0?null:e;var n=i.memoizedState;return e!==null&&Ov(e,n[1])?n[0]:(i.memoizedState=[t,e],t)}function Xx(t,e){var i=ae();e=e===void 0?null:e;var n=i.memoizedState;if(e!==null&&Ov(e,n[1]))return n[0];if(n=t(),ou){ea(!0);try{t()}finally{ea(!1)}}return i.memoizedState=[n,e],n}function wv(t,e,i){return i===void 0||pl&1073741824&&!(mt&261930)?t.memoizedState=e:(t.memoizedState=i,t=NT(),ut.lanes|=t,pa|=t,i)}function Vx(t,e,i,n){return ji(i,e)?i:Hs.current!==null?(t=wv(t,i,n),ji(t,e)||(me=!0),t):!(pl&42)||pl&1073741824&&!(mt&261930)?(me=!0,t.memoizedState=i):(t=NT(),ut.lanes|=t,pa|=t,e)}function Zx(t,e,i,n,u){var s=xt.p;xt.p=s!==0&&8>s?s:8;var r=tt.T,f={};tt.T=f,Lv(t,!1,e,i);try{var m=u(),y=tt.S;if(y!==null&&y(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var g=GO(m,n);dc(t,e,g,wi(t))}else dc(t,e,n,wi(t))}catch(S){dc(t,e,{then:function(){},status:"rejected",reason:S},wi())}finally{xt.p=s,r!==null&&f.types!==null&&(r.types=f.types),tt.T=r}}function KO(){}function Ly(t,e,i,n){if(t.tag!==5)throw Error(U(476));var u=Kx(t).queue;Zx(t,u,e,tu,i===null?KO:function(){return Jx(t),i(n)})}function Kx(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tu,baseState:tu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:tu},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Jx(t){var e=Kx(t);e.next===null&&(e=t.alternate.memoizedState),dc(t,e.next.queue,{},wi())}function jv(){return Ge(Rc)}function Fx(){return ae().memoizedState}function Wx(){return ae().memoizedState}function JO(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=wi();t=oa(i);var n=ca(e,t,i);n!==null&&(hi(n,e,i),rc(n,e,i)),e={cache:xv()},t.payload=e;return}e=e.return}}function FO(t,e,i){var n=wi();i={lane:n,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Qh(t)?Ix(e,i):(i=pv(t,e,i,n),i!==null&&(hi(i,t,n),kx(i,e,n)))}function Px(t,e,i){var n=wi();dc(t,e,i,n)}function dc(t,e,i,n){var u={lane:n,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Qh(t))Ix(e,u);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var r=e.lastRenderedState,f=s(r,i);if(u.hasEagerState=!0,u.eagerState=f,ji(f,r))return jh(t,e,u,0),Dt===null&&wh(),!1}catch{}finally{}if(i=pv(t,e,u,n),i!==null)return hi(i,t,n),kx(i,e,n),!0}return!1}function Lv(t,e,i,n){if(n={lane:2,revertLane:Jv(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Qh(t)){if(e)throw Error(U(479))}else e=pv(t,i,n,2),e!==null&&hi(e,t,2)}function Qh(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function Ix(t,e){Os=gh=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function kx(t,e,i){if(i&4194048){var n=e.lanes;n&=t.pendingLanes,i|=n,e.lanes=i,jE(t,i)}}var Oc={readContext:Ge,use:Gh,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Oc.useEffectEvent=kt;var $x={readContext:Ge,use:Gh,useCallback:function(t,e){return ti().memoizedState=[t,e===void 0?null:e],t},useContext:Ge,useEffect:w2,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,Wf(4194308,4,Gx.bind(null,e,t),i)},useLayoutEffect:function(t,e){return Wf(4194308,4,t,e)},useInsertionEffect:function(t,e){Wf(4,2,t,e)},useMemo:function(t,e){var i=ti();e=e===void 0?null:e;var n=t();if(ou){ea(!0);try{t()}finally{ea(!1)}}return i.memoizedState=[n,e],n},useReducer:function(t,e,i){var n=ti();if(i!==void 0){var u=i(e);if(ou){ea(!0);try{i(e)}finally{ea(!1)}}}else u=e;return n.memoizedState=n.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},n.queue=t,t=t.dispatch=FO.bind(null,ut,t),[n.memoizedState,t]},useRef:function(t){var e=ti();return t={current:t},e.memoizedState=t},useState:function(t){t=wy(t);var e=t.queue,i=Px.bind(null,ut,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Bv,useDeferredValue:function(t,e){var i=ti();return wv(i,t,e)},useTransition:function(){var t=wy(!1);return t=Zx.bind(null,ut,t.queue,!0,!1),ti().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var n=ut,u=ti();if(yt){if(i===void 0)throw Error(U(407));i=i()}else{if(i=e(),Dt===null)throw Error(U(349));mt&127||Ax(n,e,i)}u.memoizedState=i;var s={value:i,getSnapshot:e};return u.queue=s,w2(Mx.bind(null,n,s,t),[t]),n.flags|=2048,Us(9,{destroy:void 0},Ox.bind(null,n,s,i,e),null),i},useId:function(){var t=ti(),e=Dt.identifierPrefix;if(yt){var i=Dn,n=Nn;i=(n&~(1<<32-Bi(n)-1)).toString(32)+i,e="_"+e+"R_"+i,i=yh++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=YO++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:jv,useFormState:H2,useActionState:H2,useOptimistic:function(t){var e=ti();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Lv.bind(null,ut,!0,i),i.dispatch=e,[t,e]},useMemoCache:Dv,useCacheRefresh:function(){return ti().memoizedState=JO.bind(null,ut)},useEffectEvent:function(t){var e=ti(),i={impl:t};return e.memoizedState=i,function(){if(Et&2)throw Error(U(440));return i.impl.apply(void 0,arguments)}}},qv={readContext:Ge,use:Gh,useCallback:Qx,useContext:Ge,useEffect:Uv,useImperativeHandle:Yx,useInsertionEffect:Lx,useLayoutEffect:qx,useMemo:Xx,useReducer:Ff,useRef:wx,useState:function(){return Ff(Sl)},useDebugValue:Bv,useDeferredValue:function(t,e){var i=ae();return Vx(i,Ct.memoizedState,t,e)},useTransition:function(){var t=Ff(Sl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Gc(t),e]},useSyncExternalStore:_x,useId:Fx,useHostTransitionStatus:jv,useFormState:U2,useActionState:U2,useOptimistic:function(t,e){var i=ae();return Nx(i,Ct,t,e)},useMemoCache:Dv,useCacheRefresh:Wx};qv.useEffectEvent=jx;var tT={readContext:Ge,use:Gh,useCallback:Qx,useContext:Ge,useEffect:Uv,useImperativeHandle:Yx,useInsertionEffect:Lx,useLayoutEffect:qx,useMemo:Xx,useReducer:Kg,useRef:wx,useState:function(){return Kg(Sl)},useDebugValue:Bv,useDeferredValue:function(t,e){var i=ae();return Ct===null?wv(i,t,e):Vx(i,Ct.memoizedState,t,e)},useTransition:function(){var t=Kg(Sl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Gc(t),e]},useSyncExternalStore:_x,useId:Fx,useHostTransitionStatus:jv,useFormState:B2,useActionState:B2,useOptimistic:function(t,e){var i=ae();return Ct!==null?Nx(i,Ct,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Dv,useCacheRefresh:Wx};tT.useEffectEvent=jx;function Jg(t,e,i,n){e=t.memoizedState,i=i(n,e),i=i==null?e:Gt({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var qy={enqueueSetState:function(t,e,i){t=t._reactInternals;var n=wi(),u=oa(n);u.payload=e,i!=null&&(u.callback=i),e=ca(t,u,n),e!==null&&(hi(e,t,n),rc(e,t,n))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var n=wi(),u=oa(n);u.tag=1,u.payload=e,i!=null&&(u.callback=i),e=ca(t,u,n),e!==null&&(hi(e,t,n),rc(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=wi(),n=oa(i);n.tag=2,e!=null&&(n.callback=e),e=ca(t,n,i),e!==null&&(hi(e,t,i),rc(e,t,i))}};function j2(t,e,i,n,u,s,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,r):e.prototype&&e.prototype.isPureReactComponent?!xc(i,n)||!xc(u,s):!0}function L2(t,e,i,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,n),e.state!==t&&qy.enqueueReplaceState(e,e.state,null)}function cu(t,e){var i=e;if("ref"in e){i={};for(var n in e)n!=="ref"&&(i[n]=e[n])}if(t=t.defaultProps){i===e&&(i=Gt({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function eT(t){oh(t)}function iT(t){console.error(t)}function nT(t){oh(t)}function vh(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function q2(t,e,i){try{var n=t.onCaughtError;n(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Gy(t,e,i){return i=oa(i),i.tag=3,i.payload={element:null},i.callback=function(){vh(t,e)},i}function lT(t){return t=oa(t),t.tag=3,t}function aT(t,e,i,n){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var s=n.value;t.payload=function(){return u(s)},t.callback=function(){q2(e,i,n)}}var r=i.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){q2(e,i,n),typeof u!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})})}function WO(t,e,i,n,u){if(i.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=i.alternate,e!==null&&Qs(e,i,u,!0),i=Li.current,i!==null){switch(i.tag){case 31:case 13:return ln===null?xh():i.alternate===null&&$t===0&&($t=3),i.flags&=-257,i.flags|=65536,i.lanes=u,n===hh?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([n]):e.add(n),ly(t,n,u)),!1;case 22:return i.flags|=65536,n===hh?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([n]):i.add(n)),ly(t,n,u)),!1}throw Error(U(435,i.tag))}return ly(t,n,u),xh(),!1}if(yt)return e=Li.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=u,n!==Oy&&(t=Error(U(422),{cause:n}),zc(en(t,i)))):(n!==Oy&&(e=Error(U(423),{cause:n}),zc(en(e,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,n=en(n,i),u=Gy(t.stateNode,n,u),Zg(t,u),$t!==4&&($t=2)),!1;var s=Error(U(520),{cause:n});if(s=en(s,i),yc===null?yc=[s]:yc.push(s),$t!==4&&($t=2),e===null)return!0;n=en(n,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=Gy(i.stateNode,n,t),Zg(i,t),!1;case 1:if(e=i.type,s=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(ra===null||!ra.has(s))))return i.flags|=65536,u&=-u,i.lanes|=u,u=lT(u),aT(u,t,i,n),Zg(i,u),!1}i=i.return}while(i!==null);return!1}var Gv=Error(U(461)),me=!1;function je(t,e,i,n){e.child=t===null?Sx(e,null,i,n):su(e,t.child,i,n)}function G2(t,e,i,n,u){i=i.render;var s=e.ref;if("ref"in n){var r={};for(var f in n)f!=="ref"&&(r[f]=n[f])}else r=n;return uu(e),n=Mv(t,e,i,r,s,u),f=Cv(),t!==null&&!me?(Rv(t,e,u),bl(t,e,u)):(yt&&f&&bv(e),e.flags|=1,je(t,e,n,u),e.child)}function Y2(t,e,i,n,u){if(t===null){var s=i.type;return typeof s=="function"&&!Sv(s)&&s.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=s,uT(t,e,s,n,u)):(t=Kf(i.type,null,n,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Yv(t,u)){var r=s.memoizedProps;if(i=i.compare,i=i!==null?i:xc,i(r,n)&&t.ref===e.ref)return bl(t,e,u)}return e.flags|=1,t=ml(s,n),t.ref=e.ref,t.return=e,e.child=t}function uT(t,e,i,n,u){if(t!==null){var s=t.memoizedProps;if(xc(s,n)&&t.ref===e.ref)if(me=!1,e.pendingProps=n=s,Yv(t,u))t.flags&131072&&(me=!0);else return e.lanes=t.lanes,bl(t,e,u)}return Yy(t,e,i,n,u)}function sT(t,e,i,n){var u=n.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(e.flags&128){if(s=s!==null?s.baseLanes|i:i,t!==null){for(n=e.child=t.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;n=u&~s}else n=0,e.child=null;return Q2(t,e,s,i,n)}if(i&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Jf(e,s!==null?s.cachePool:null),s!==null?R2(e,s):Uy(),xx(e);else return n=e.lanes=536870912,Q2(t,e,s!==null?s.baseLanes|i:i,i,n)}else s!==null?(Jf(e,s.cachePool),R2(e,s),$l(e),e.memoizedState=null):(t!==null&&Jf(e,null),Uy(),$l(e));return je(t,e,u,i),e.child}function lc(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Q2(t,e,i,n,u){var s=Tv();return s=s===null?null:{parent:de._currentValue,pool:s},e.memoizedState={baseLanes:i,cachePool:s},t!==null&&Jf(e,null),Uy(),xx(e),t!==null&&Qs(t,e,n,!0),e.childLanes=u,null}function Pf(t,e){return e=ph({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function X2(t,e,i){return su(e,t.child,null,i),t=Pf(e,e.pendingProps),t.flags|=2,Ri(e),e.memoizedState=null,t}function PO(t,e,i){var n=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(n.mode==="hidden")return t=Pf(e,n),e.lanes=536870912,lc(null,t);if(By(e),(t=qt)?(t=$T(t,nn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ga!==null?{id:Nn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},i=hx(t),i.return=e,e.child=i,qe=e,qt=null)):t=null,t===null)throw ya(e);return e.lanes=536870912,null}return Pf(e,n)}var s=t.memoizedState;if(s!==null){var r=s.dehydrated;if(By(e),u)if(e.flags&256)e.flags&=-257,e=X2(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(U(558));else if(me||Qs(t,e,i,!1),u=(i&t.childLanes)!==0,me||u){if(n=Dt,n!==null&&(r=LE(n,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,du(t,r),hi(n,t,r),Gv;xh(),e=X2(t,e,i)}else t=s.treeContext,qt=an(r.nextSibling),qe=e,yt=!0,sa=null,nn=!1,t!==null&&mx(e,t),e=Pf(e,n),e.flags|=4096;return e}return t=ml(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function If(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(U(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Yy(t,e,i,n,u){return uu(e),i=Mv(t,e,i,n,void 0,u),n=Cv(),t!==null&&!me?(Rv(t,e,u),bl(t,e,u)):(yt&&n&&bv(e),e.flags|=1,je(t,e,i,u),e.child)}function V2(t,e,i,n,u,s){return uu(e),e.updateQueue=null,i=zx(e,n,i,u),Tx(t),n=Cv(),t!==null&&!me?(Rv(t,e,s),bl(t,e,s)):(yt&&n&&bv(e),e.flags|=1,je(t,e,i,s),e.child)}function Z2(t,e,i,n,u){if(uu(e),e.stateNode===null){var s=ps,r=i.contextType;typeof r=="object"&&r!==null&&(s=Ge(r)),s=new i(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=qy,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},_v(e),r=i.contextType,s.context=typeof r=="object"&&r!==null?Ge(r):ps,s.state=e.memoizedState,r=i.getDerivedStateFromProps,typeof r=="function"&&(Jg(e,i,r,n),s.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(r=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),r!==s.state&&qy.enqueueReplaceState(s,s.state,null),hc(e,n,s,u),fc(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){s=e.stateNode;var f=e.memoizedProps,m=cu(i,f);s.props=m;var y=s.context,g=i.contextType;r=ps,typeof g=="object"&&g!==null&&(r=Ge(g));var S=i.getDerivedStateFromProps;g=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f||y!==r)&&L2(e,s,n,r),Pl=!1;var p=e.memoizedState;s.state=p,hc(e,n,s,u),fc(),y=e.memoizedState,f||p!==y||Pl?(typeof S=="function"&&(Jg(e,i,S,n),y=e.memoizedState),(m=Pl||j2(e,i,m,n,p,y,r))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=y),s.props=n,s.state=y,s.context=r,n=m):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,Dy(t,e),r=e.memoizedProps,g=cu(i,r),s.props=g,S=e.pendingProps,p=s.context,y=i.contextType,m=ps,typeof y=="object"&&y!==null&&(m=Ge(y)),f=i.getDerivedStateFromProps,(y=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(r!==S||p!==m)&&L2(e,s,n,m),Pl=!1,p=e.memoizedState,s.state=p,hc(e,n,s,u),fc();var x=e.memoizedState;r!==S||p!==x||Pl||t!==null&&t.dependencies!==null&&fh(t.dependencies)?(typeof f=="function"&&(Jg(e,i,f,n),x=e.memoizedState),(g=Pl||j2(e,i,g,n,p,x,m)||t!==null&&t.dependencies!==null&&fh(t.dependencies))?(y||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,x,m),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,x,m)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=x),s.props=n,s.state=x,s.context=m,n=g):(typeof s.componentDidUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return s=n,If(t,e),n=(e.flags&128)!==0,s||n?(s=e.stateNode,i=n&&typeof i.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&n?(e.child=su(e,t.child,null,u),e.child=su(e,null,i,u)):je(t,e,i,u),e.memoizedState=s.state,t=e.child):t=bl(t,e,u),t}function K2(t,e,i,n){return au(),e.flags|=256,je(t,e,i,n),e.child}var Fg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wg(t){return{baseLanes:t,cachePool:yx()}}function Pg(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Di),t}function oT(t,e,i){var n=e.pendingProps,u=!1,s=(e.flags&128)!==0,r;if((r=s)||(r=t!==null&&t.memoizedState===null?!1:(le.current&2)!==0),r&&(u=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(u?kl(e):$l(e),(t=qt)?(t=$T(t,nn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ga!==null?{id:Nn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},i=hx(t),i.return=e,e.child=i,qe=e,qt=null)):t=null,t===null)throw ya(e);return ev(t)?e.lanes=32:e.lanes=536870912,null}var f=n.children;return n=n.fallback,u?($l(e),u=e.mode,f=ph({mode:"hidden",children:f},u),n=eu(n,u,i,null),f.return=e,n.return=e,f.sibling=n,e.child=f,n=e.child,n.memoizedState=Wg(i),n.childLanes=Pg(t,r,i),e.memoizedState=Fg,lc(null,n)):(kl(e),Qy(e,f))}var m=t.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(s)e.flags&256?(kl(e),e.flags&=-257,e=Ig(t,e,i)):e.memoizedState!==null?($l(e),e.child=t.child,e.flags|=128,e=null):($l(e),f=n.fallback,u=e.mode,n=ph({mode:"visible",children:n.children},u),f=eu(f,u,i,null),f.flags|=2,n.return=e,f.return=e,n.sibling=f,e.child=n,su(e,t.child,null,i),n=e.child,n.memoizedState=Wg(i),n.childLanes=Pg(t,r,i),e.memoizedState=Fg,e=lc(null,n));else if(kl(e),ev(f)){if(r=f.nextSibling&&f.nextSibling.dataset,r)var y=r.dgst;r=y,n=Error(U(419)),n.stack="",n.digest=r,zc({value:n,source:null,stack:null}),e=Ig(t,e,i)}else if(me||Qs(t,e,i,!1),r=(i&t.childLanes)!==0,me||r){if(r=Dt,r!==null&&(n=LE(r,i),n!==0&&n!==m.retryLane))throw m.retryLane=n,du(t,n),hi(r,t,n),Gv;tv(f)||xh(),e=Ig(t,e,i)}else tv(f)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,qt=an(f.nextSibling),qe=e,yt=!0,sa=null,nn=!1,t!==null&&mx(e,t),e=Qy(e,n.children),e.flags|=4096);return e}return u?($l(e),f=n.fallback,u=e.mode,m=t.child,y=m.sibling,n=ml(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,y!==null?f=ml(y,f):(f=eu(f,u,i,null),f.flags|=2),f.return=e,n.return=e,n.sibling=f,e.child=n,lc(null,n),n=e.child,f=t.child.memoizedState,f===null?f=Wg(i):(u=f.cachePool,u!==null?(m=de._currentValue,u=u.parent!==m?{parent:m,pool:m}:u):u=yx(),f={baseLanes:f.baseLanes|i,cachePool:u}),n.memoizedState=f,n.childLanes=Pg(t,r,i),e.memoizedState=Fg,lc(t.child,n)):(kl(e),i=t.child,t=i.sibling,i=ml(i,{mode:"visible",children:n.children}),i.return=e,i.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=i,e.memoizedState=null,i)}function Qy(t,e){return e=ph({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ph(t,e){return t=Ni(22,t,null,e),t.lanes=0,t}function Ig(t,e,i){return su(e,t.child,null,i),t=Qy(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function J2(t,e,i){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Cy(t.return,e,i)}function kg(t,e,i,n,u,s){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:i,tailMode:u,treeForkCount:s}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=i,r.tailMode=u,r.treeForkCount=s)}function cT(t,e,i){var n=e.pendingProps,u=n.revealOrder,s=n.tail;n=n.children;var r=le.current,f=(r&2)!==0;if(f?(r=r&1|2,e.flags|=128):r&=1,Ht(le,r),je(t,e,n,i),n=yt?Tc:0,!f&&t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&J2(t,i,e);else if(t.tag===19)J2(t,i,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(u){case"forwards":for(i=e.child,u=null;i!==null;)t=i.alternate,t!==null&&mh(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=e.child,e.child=null):(u=i.sibling,i.sibling=null),kg(e,!1,u,i,s,n);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&mh(t)===null){e.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}kg(e,!0,i,null,s,n);break;case"together":kg(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function bl(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),pa|=e.lanes,!(i&e.childLanes))if(t!==null){if(Qs(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(U(153));if(e.child!==null){for(t=e.child,i=ml(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=ml(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Yv(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&fh(t)))}function IO(t,e,i){switch(e.tag){case 3:lh(e,e.stateNode.containerInfo),Il(e,de,t.memoizedState.cache),au();break;case 27:case 5:yy(e);break;case 4:lh(e,e.stateNode.containerInfo);break;case 10:Il(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,By(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(kl(e),e.flags|=128,null):i&e.child.childLanes?oT(t,e,i):(kl(e),t=bl(t,e,i),t!==null?t.sibling:null);kl(e);break;case 19:var u=(t.flags&128)!==0;if(n=(i&e.childLanes)!==0,n||(Qs(t,e,i,!1),n=(i&e.childLanes)!==0),u){if(n)return cT(t,e,i);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Ht(le,le.current),n)break;return null;case 22:return e.lanes=0,sT(t,e,i,e.pendingProps);case 24:Il(e,de,t.memoizedState.cache)}return bl(t,e,i)}function rT(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)me=!0;else{if(!Yv(t,i)&&!(e.flags&128))return me=!1,IO(t,e,i);me=!!(t.flags&131072)}else me=!1,yt&&e.flags&1048576&&dx(e,Tc,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=ka(e.elementType),e.type=t,typeof t=="function")Sv(t)?(n=cu(t,n),e.tag=1,e=Z2(null,e,t,n,i)):(e.tag=0,e=Yy(null,e,t,n,i));else{if(t!=null){var u=t.$$typeof;if(u===av){e.tag=11,e=G2(null,e,t,n,i);break t}else if(u===uv){e.tag=14,e=Y2(null,e,t,n,i);break t}}throw e=my(t)||t,Error(U(306,e,""))}}return e;case 0:return Yy(t,e,e.type,e.pendingProps,i);case 1:return n=e.type,u=cu(n,e.pendingProps),Z2(t,e,n,u,i);case 3:t:{if(lh(e,e.stateNode.containerInfo),t===null)throw Error(U(387));n=e.pendingProps;var s=e.memoizedState;u=s.element,Dy(t,e),hc(e,n,null,i);var r=e.memoizedState;if(n=r.cache,Il(e,de,n),n!==s.cache&&Ry(e,[de],i,!0),fc(),n=r.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=K2(t,e,n,i);break t}else if(n!==u){u=en(Error(U(424)),e),zc(u),e=K2(t,e,n,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(qt=an(t.firstChild),qe=e,yt=!0,sa=null,nn=!0,i=Sx(e,null,n,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(au(),n===u){e=bl(t,e,i);break t}je(t,e,n,i)}e=e.child}return e;case 26:return If(t,e),t===null?(i=gE(e.type,null,e.pendingProps,null))?e.memoizedState=i:yt||(i=e.type,t=e.pendingProps,n=Ah(ua.current).createElement(i),n[Le]=e,n[di]=t,Ye(n,i,t),Ce(n),e.stateNode=n):e.memoizedState=gE(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return yy(e),t===null&&yt&&(n=e.stateNode=tz(e.type,e.pendingProps,ua.current),qe=e,nn=!0,u=qt,ba(e.type)?(iv=u,qt=an(n.firstChild)):qt=u),je(t,e,e.pendingProps.children,i),If(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=n=qt)&&(n=_M(n,e.type,e.pendingProps,nn),n!==null?(e.stateNode=n,qe=e,qt=an(n.firstChild),nn=!1,u=!0):u=!1),u||ya(e)),yy(e),u=e.type,s=e.pendingProps,r=t!==null?t.memoizedProps:null,n=s.children,ky(u,s)?n=null:r!==null&&ky(u,r)&&(e.flags|=32),e.memoizedState!==null&&(u=Mv(t,e,QO,null,null,i),Rc._currentValue=u),If(t,e),je(t,e,n,i),e.child;case 6:return t===null&&yt&&((t=i=qt)&&(i=AM(i,e.pendingProps,nn),i!==null?(e.stateNode=i,qe=e,qt=null,t=!0):t=!1),t||ya(e)),null;case 13:return oT(t,e,i);case 4:return lh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=su(e,null,n,i):je(t,e,n,i),e.child;case 11:return G2(t,e,e.type,e.pendingProps,i);case 7:return je(t,e,e.pendingProps,i),e.child;case 8:return je(t,e,e.pendingProps.children,i),e.child;case 12:return je(t,e,e.pendingProps.children,i),e.child;case 10:return n=e.pendingProps,Il(e,e.type,n.value),je(t,e,n.children,i),e.child;case 9:return u=e.type._context,n=e.pendingProps.children,uu(e),u=Ge(u),n=n(u),e.flags|=1,je(t,e,n,i),e.child;case 14:return Y2(t,e,e.type,e.pendingProps,i);case 15:return uT(t,e,e.type,e.pendingProps,i);case 19:return cT(t,e,i);case 31:return PO(t,e,i);case 22:return sT(t,e,i,e.pendingProps);case 24:return uu(e),n=Ge(de),t===null?(u=Tv(),u===null&&(u=Dt,s=xv(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=i),u=s),e.memoizedState={parent:n,cache:u},_v(e),Il(e,de,u)):(t.lanes&i&&(Dy(t,e),hc(e,null,null,i),fc()),u=t.memoizedState,s=e.memoizedState,u.parent!==n?(u={parent:n,cache:n},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Il(e,de,n)):(n=s.cache,Il(e,de,n),n!==u.cache&&Ry(e,[de],i,!0))),je(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(U(156,e.tag))}function al(t){t.flags|=4}function $g(t,e,i,n,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(UT())t.flags|=8192;else throw nu=hh,zv}else t.flags&=-16777217}function F2(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!nz(e))if(UT())t.flags|=8192;else throw nu=hh,zv}function Bf(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?BE():536870912,t.lanes|=e,Bs|=e)}function Io(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var n=null;i!==null;)i.alternate!==null&&(n=i),i=i.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,n=0;if(e)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,n|=u.subtreeFlags&65011712,n|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,n|=u.subtreeFlags,n|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=n,t.childLanes=i,e}function kO(t,e,i){var n=e.pendingProps;switch(Ev(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return i=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),gl(de),Cs(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(us(e)?al(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Vg())),Lt(e),null;case 26:var u=e.type,s=e.memoizedState;return t===null?(al(e),s!==null?(Lt(e),F2(e,s)):(Lt(e),$g(e,u,null,n,i))):s?s!==t.memoizedState?(al(e),Lt(e),F2(e,s)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&al(e),Lt(e),$g(e,u,t,n,i)),null;case 27:if(ah(e),i=ua.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&al(e);else{if(!n){if(e.stateNode===null)throw Error(U(166));return Lt(e),null}t=Un.current,us(e)?T2(e,t):(t=tz(u,n,i),e.stateNode=t,al(e))}return Lt(e),null;case 5:if(ah(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&al(e);else{if(!n){if(e.stateNode===null)throw Error(U(166));return Lt(e),null}if(s=Un.current,us(e))T2(e,s);else{var r=Ah(ua.current);switch(s){case 1:s=r.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=r.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=r.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=r.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=r.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?r.createElement(u,{is:n.is}):r.createElement(u)}}s[Le]=e,s[di]=n;t:for(r=e.child;r!==null;){if(r.tag===5||r.tag===6)s.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}e.stateNode=s;t:switch(Ye(s,u,n),u){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&al(e)}}return Lt(e),$g(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&al(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(U(166));if(t=ua.current,us(e)){if(t=e.stateNode,i=e.memoizedProps,n=null,u=qe,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}t[Le]=e,t=!!(t.nodeValue===i||n!==null&&n.suppressHydrationWarning===!0||PT(t.nodeValue,i)),t||ya(e,!0)}else t=Ah(t).createTextNode(n),t[Le]=e,e.stateNode=t}return Lt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(n=us(e),i!==null){if(t===null){if(!n)throw Error(U(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(557));t[Le]=e}else au(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else i=Vg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Ri(e),e):(Ri(e),null);if(e.flags&128)throw Error(U(558))}return Lt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=us(e),n!==null&&n.dehydrated!==null){if(t===null){if(!u)throw Error(U(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(U(317));u[Le]=e}else au(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=Vg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Ri(e),e):(Ri(e),null)}return Ri(e),e.flags&128?(e.lanes=i,e):(i=n!==null,t=t!==null&&t.memoizedState!==null,i&&(n=e.child,u=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(u=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==u&&(n.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),Bf(e,e.updateQueue),Lt(e),null);case 4:return Cs(),t===null&&Fv(e.stateNode.containerInfo),Lt(e),null;case 10:return gl(e.type),Lt(e),null;case 19:if(Re(le),n=e.memoizedState,n===null)return Lt(e),null;if(u=(e.flags&128)!==0,s=n.rendering,s===null)if(u)Io(n,!1);else{if($t!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=mh(t),s!==null){for(e.flags|=128,Io(n,!1),t=s.updateQueue,e.updateQueue=t,Bf(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)fx(i,t),i=i.sibling;return Ht(le,le.current&1|2),yt&&cl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Hi()>bh&&(e.flags|=128,u=!0,Io(n,!1),e.lanes=4194304)}else{if(!u)if(t=mh(s),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Bf(e,t),Io(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!yt)return Lt(e),null}else 2*Hi()-n.renderingStartTime>bh&&i!==536870912&&(e.flags|=128,u=!0,Io(n,!1),e.lanes=4194304);n.isBackwards?(s.sibling=e.child,e.child=s):(t=n.last,t!==null?t.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Hi(),t.sibling=null,i=le.current,Ht(le,u?i&1|2:i&1),yt&&cl(e,n.treeForkCount),t):(Lt(e),null);case 22:case 23:return Ri(e),Av(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?i&536870912&&!(e.flags&128)&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),i=e.updateQueue,i!==null&&Bf(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==i&&(e.flags|=2048),t!==null&&Re(iu),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),gl(de),Lt(e),null;case 25:return null;case 30:return null}throw Error(U(156,e.tag))}function $O(t,e){switch(Ev(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return gl(de),Cs(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ah(e),null;case 31:if(e.memoizedState!==null){if(Ri(e),e.alternate===null)throw Error(U(340));au()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ri(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(U(340));au()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Re(le),null;case 4:return Cs(),null;case 10:return gl(e.type),null;case 22:case 23:return Ri(e),Av(),t!==null&&Re(iu),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return gl(de),null;case 25:return null;default:return null}}function fT(t,e){switch(Ev(e),e.tag){case 3:gl(de),Cs();break;case 26:case 27:case 5:ah(e);break;case 4:Cs();break;case 31:e.memoizedState!==null&&Ri(e);break;case 13:Ri(e);break;case 19:Re(le);break;case 10:gl(e.type);break;case 22:case 23:Ri(e),Av(),t!==null&&Re(iu);break;case 24:gl(de)}}function Yc(t,e){try{var i=e.updateQueue,n=i!==null?i.lastEffect:null;if(n!==null){var u=n.next;i=u;do{if((i.tag&t)===t){n=void 0;var s=i.create,r=i.inst;n=s(),r.destroy=n}i=i.next}while(i!==u)}}catch(f){_t(e,e.return,f)}}function va(t,e,i){try{var n=e.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var s=u.next;n=s;do{if((n.tag&t)===t){var r=n.inst,f=r.destroy;if(f!==void 0){r.destroy=void 0,u=e;var m=i,y=f;try{y()}catch(g){_t(u,m,g)}}}n=n.next}while(n!==s)}}catch(g){_t(e,e.return,g)}}function hT(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Ex(e,i)}catch(n){_t(t,t.return,n)}}}function dT(t,e,i){i.props=cu(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(n){_t(t,e,n)}}function mc(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof i=="function"?t.refCleanup=i(n):i.current=n}}catch(u){_t(t,e,u)}}function Hn(t,e){var i=t.ref,n=t.refCleanup;if(i!==null)if(typeof n=="function")try{n()}catch(u){_t(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){_t(t,e,u)}else i.current=null}function mT(t){var e=t.type,i=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&n.focus();break t;case"img":i.src?n.src=i.src:i.srcSet&&(n.srcset=i.srcSet)}}catch(u){_t(t,t.return,u)}}function ty(t,e,i){try{var n=t.stateNode;SM(n,t.type,i,e),n[di]=e}catch(u){_t(t,t.return,u)}}function gT(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ba(t.type)||t.tag===4}function ey(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gT(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&&ba(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 Xy(t,e,i){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=hl));else if(n!==4&&(n===27&&ba(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(Xy(t,e,i),t=t.sibling;t!==null;)Xy(t,e,i),t=t.sibling}function Sh(t,e,i){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(n!==4&&(n===27&&ba(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Sh(t,e,i),t=t.sibling;t!==null;)Sh(t,e,i),t=t.sibling}function yT(t){var e=t.stateNode,i=t.memoizedProps;try{for(var n=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);Ye(e,n,i),e[Le]=t,e[di]=i}catch(s){_t(t,t.return,s)}}var rl=!1,he=!1,iy=!1,W2=typeof WeakSet=="function"?WeakSet:Set,Me=null;function tM(t,e){if(t=t.containerInfo,Py=Rh,t=nx(t),yv(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var n=i.getSelection&&i.getSelection();if(n&&n.rangeCount!==0){i=n.anchorNode;var u=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{i.nodeType,s.nodeType}catch{i=null;break t}var r=0,f=-1,m=-1,y=0,g=0,S=t,p=null;e:for(;;){for(var x;S!==i||u!==0&&S.nodeType!==3||(f=r+u),S!==s||n!==0&&S.nodeType!==3||(m=r+n),S.nodeType===3&&(r+=S.nodeValue.length),(x=S.firstChild)!==null;)p=S,S=x;for(;;){if(S===t)break e;if(p===i&&++y===u&&(f=r),p===s&&++g===n&&(m=r),(x=S.nextSibling)!==null)break;S=p,p=S.parentNode}S=x}i=f===-1||m===-1?null:{start:f,end:m}}else i=null}i=i||{start:0,end:0}}else i=null;for(Iy={focusedElem:t,selectionRange:i},Rh=!1,Me=e;Me!==null;)if(e=Me,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Me=t;else for(;Me!==null;){switch(e=Me,s=e.alternate,t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)u=t[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if(t&1024&&s!==null){t=void 0,i=e,u=s.memoizedProps,s=s.memoizedState,n=i.stateNode;try{var A=cu(i.type,u);t=n.getSnapshotBeforeUpdate(A,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(R){_t(i,i.return,R)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)$y(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":$y(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(U(163))}if(t=e.sibling,t!==null){t.return=e.return,Me=t;break}Me=e.return}}function vT(t,e,i){var n=i.flags;switch(i.tag){case 0:case 11:case 15:sl(t,i),n&4&&Yc(5,i);break;case 1:if(sl(t,i),n&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(r){_t(i,i.return,r)}else{var u=cu(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){_t(i,i.return,r)}}n&64&&hT(i),n&512&&mc(i,i.return);break;case 3:if(sl(t,i),n&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{Ex(t,e)}catch(r){_t(i,i.return,r)}}break;case 27:e===null&&n&4&&yT(i);case 26:case 5:sl(t,i),e===null&&n&4&&mT(i),n&512&&mc(i,i.return);break;case 12:sl(t,i);break;case 31:sl(t,i),n&4&&bT(t,i);break;case 13:sl(t,i),n&4&&ET(t,i),n&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=cM.bind(null,i),OM(t,i))));break;case 22:if(n=i.memoizedState!==null||rl,!n){e=e!==null&&e.memoizedState!==null||he,u=rl;var s=he;rl=n,(he=e)&&!s?ol(t,i,(i.subtreeFlags&8772)!==0):sl(t,i),rl=u,he=s}break;case 30:break;default:sl(t,i)}}function pT(t){var e=t.alternate;e!==null&&(t.alternate=null,pT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&rv(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 Qt=null,ri=!1;function ul(t,e,i){for(i=i.child;i!==null;)ST(t,e,i),i=i.sibling}function ST(t,e,i){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(Uc,i)}catch{}switch(i.tag){case 26:he||Hn(i,e),ul(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:he||Hn(i,e);var n=Qt,u=ri;ba(i.type)&&(Qt=i.stateNode,ri=!1),ul(t,e,i),pc(i.stateNode),Qt=n,ri=u;break;case 5:he||Hn(i,e);case 6:if(n=Qt,u=ri,Qt=null,ul(t,e,i),Qt=n,ri=u,Qt!==null)if(ri)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(i.stateNode)}catch(s){_t(i,e,s)}else try{Qt.removeChild(i.stateNode)}catch(s){_t(i,e,s)}break;case 18:Qt!==null&&(ri?(t=Qt,rE(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),qs(t)):rE(Qt,i.stateNode));break;case 4:n=Qt,u=ri,Qt=i.stateNode.containerInfo,ri=!0,ul(t,e,i),Qt=n,ri=u;break;case 0:case 11:case 14:case 15:va(2,i,e),he||va(4,i,e),ul(t,e,i);break;case 1:he||(Hn(i,e),n=i.stateNode,typeof n.componentWillUnmount=="function"&&dT(i,e,n)),ul(t,e,i);break;case 21:ul(t,e,i);break;case 22:he=(n=he)||i.memoizedState!==null,ul(t,e,i),he=n;break;default:ul(t,e,i)}}function bT(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{qs(t)}catch(i){_t(e,e.return,i)}}}function ET(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{qs(t)}catch(i){_t(e,e.return,i)}}function eM(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new W2),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new W2),e;default:throw Error(U(435,t.tag))}}function wf(t,e){var i=eM(t);e.forEach(function(n){if(!i.has(n)){i.add(n);var u=rM.bind(null,t,n);n.then(u,u)}})}function oi(t,e){var i=e.deletions;if(i!==null)for(var n=0;n<i.length;n++){var u=i[n],s=t,r=e,f=r;t:for(;f!==null;){switch(f.tag){case 27:if(ba(f.type)){Qt=f.stateNode,ri=!1;break t}break;case 5:Qt=f.stateNode,ri=!1;break t;case 3:case 4:Qt=f.stateNode.containerInfo,ri=!0;break t}f=f.return}if(Qt===null)throw Error(U(160));ST(s,r,u),Qt=null,ri=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)xT(e,t),e=e.sibling}var yn=null;function xT(t,e){var i=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oi(e,t),ci(t),n&4&&(va(3,t,t.return),Yc(3,t),va(5,t,t.return));break;case 1:oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),n&64&&rl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?n:i.concat(n))));break;case 26:var u=yn;if(oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),n&4){var s=i!==null?i.memoizedState:null;if(n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null){t:{n=t.type,i=t.memoizedProps,u=u.ownerDocument||u;e:switch(n){case"title":s=u.getElementsByTagName("title")[0],(!s||s[jc]||s[Le]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(n),u.head.insertBefore(s,u.querySelector("head > title"))),Ye(s,n,i),s[Le]=t,Ce(s),n=s;break t;case"link":var r=vE("link","href",u).get(n+(i.href||""));if(r){for(var f=0;f<r.length;f++)if(s=r[f],s.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&s.getAttribute("rel")===(i.rel==null?null:i.rel)&&s.getAttribute("title")===(i.title==null?null:i.title)&&s.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){r.splice(f,1);break e}}s=u.createElement(n),Ye(s,n,i),u.head.appendChild(s);break;case"meta":if(r=vE("meta","content",u).get(n+(i.content||""))){for(f=0;f<r.length;f++)if(s=r[f],s.getAttribute("content")===(i.content==null?null:""+i.content)&&s.getAttribute("name")===(i.name==null?null:i.name)&&s.getAttribute("property")===(i.property==null?null:i.property)&&s.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&s.getAttribute("charset")===(i.charSet==null?null:i.charSet)){r.splice(f,1);break e}}s=u.createElement(n),Ye(s,n,i),u.head.appendChild(s);break;default:throw Error(U(468,n))}s[Le]=t,Ce(s),n=s}t.stateNode=n}else pE(u,t.type,t.stateNode);else t.stateNode=yE(u,n,t.memoizedProps);else s!==n?(s===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):s.count--,n===null?pE(u,t.type,t.stateNode):yE(u,n,t.memoizedProps)):n===null&&t.stateNode!==null&&ty(t,t.memoizedProps,i.memoizedProps)}break;case 27:oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),i!==null&&n&4&&ty(t,t.memoizedProps,i.memoizedProps);break;case 5:if(oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),t.flags&32){u=t.stateNode;try{Ns(u,"")}catch(A){_t(t,t.return,A)}}n&4&&t.stateNode!=null&&(u=t.memoizedProps,ty(t,u,i!==null?i.memoizedProps:u)),n&1024&&(iy=!0);break;case 6:if(oi(e,t),ci(t),n&4){if(t.stateNode===null)throw Error(U(162));n=t.memoizedProps,i=t.stateNode;try{i.nodeValue=n}catch(A){_t(t,t.return,A)}}break;case 3:if(th=null,u=yn,yn=Oh(e.containerInfo),oi(e,t),yn=u,ci(t),n&4&&i!==null&&i.memoizedState.isDehydrated)try{qs(e.containerInfo)}catch(A){_t(t,t.return,A)}iy&&(iy=!1,TT(t));break;case 4:n=yn,yn=Oh(t.stateNode.containerInfo),oi(e,t),ci(t),yn=n;break;case 12:oi(e,t),ci(t);break;case 31:oi(e,t),ci(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,wf(t,n)));break;case 13:oi(e,t),ci(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Xh=Hi()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,wf(t,n)));break;case 22:u=t.memoizedState!==null;var m=i!==null&&i.memoizedState!==null,y=rl,g=he;if(rl=y||u,he=g||m,oi(e,t),he=g,rl=y,ci(t),n&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(i===null||m||rl||he||$a(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){m=i=e;try{if(s=m.stateNode,u)r=s.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{f=m.stateNode;var S=m.memoizedProps.style,p=S!=null&&S.hasOwnProperty("display")?S.display:null;f.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(A){_t(m,m.return,A)}}}else if(e.tag===6){if(i===null){m=e;try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(A){_t(m,m.return,A)}}}else if(e.tag===18){if(i===null){m=e;try{var x=m.stateNode;u?fE(x,!0):fE(m.stateNode,!1)}catch(A){_t(m,m.return,A)}}}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;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(i=n.retryQueue,i!==null&&(n.retryQueue=null,wf(t,i))));break;case 19:oi(e,t),ci(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,wf(t,n)));break;case 30:break;case 21:break;default:oi(e,t),ci(t)}}function ci(t){var e=t.flags;if(e&2){try{for(var i,n=t.return;n!==null;){if(gT(n)){i=n;break}n=n.return}if(i==null)throw Error(U(160));switch(i.tag){case 27:var u=i.stateNode,s=ey(t);Sh(t,s,u);break;case 5:var r=i.stateNode;i.flags&32&&(Ns(r,""),i.flags&=-33);var f=ey(t);Sh(t,f,r);break;case 3:case 4:var m=i.stateNode.containerInfo,y=ey(t);Xy(t,y,m);break;default:throw Error(U(161))}}catch(g){_t(t,t.return,g)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function TT(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;TT(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function sl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)vT(t,e.alternate,e),e=e.sibling}function $a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:va(4,e,e.return),$a(e);break;case 1:Hn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&dT(e,e.return,i),$a(e);break;case 27:pc(e.stateNode);case 26:case 5:Hn(e,e.return),$a(e);break;case 22:e.memoizedState===null&&$a(e);break;case 30:$a(e);break;default:$a(e)}t=t.sibling}}function ol(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,u=t,s=e,r=s.flags;switch(s.tag){case 0:case 11:case 15:ol(u,s,i),Yc(4,s);break;case 1:if(ol(u,s,i),n=s,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(y){_t(n,n.return,y)}if(n=s,u=n.updateQueue,u!==null){var f=n.stateNode;try{var m=u.shared.hiddenCallbacks;if(m!==null)for(u.shared.hiddenCallbacks=null,u=0;u<m.length;u++)bx(m[u],f)}catch(y){_t(n,n.return,y)}}i&&r&64&&hT(s),mc(s,s.return);break;case 27:yT(s);case 26:case 5:ol(u,s,i),i&&n===null&&r&4&&mT(s),mc(s,s.return);break;case 12:ol(u,s,i);break;case 31:ol(u,s,i),i&&r&4&&bT(u,s);break;case 13:ol(u,s,i),i&&r&4&&ET(u,s);break;case 22:s.memoizedState===null&&ol(u,s,i),mc(s,s.return);break;case 30:break;default:ol(u,s,i)}e=e.sibling}}function Qv(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&qc(i))}function Xv(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qc(t))}function gn(t,e,i,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zT(t,e,i,n),e=e.sibling}function zT(t,e,i,n){var u=e.flags;switch(e.tag){case 0:case 11:case 15:gn(t,e,i,n),u&2048&&Yc(9,e);break;case 1:gn(t,e,i,n);break;case 3:gn(t,e,i,n),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qc(t)));break;case 12:if(u&2048){gn(t,e,i,n),t=e.stateNode;try{var s=e.memoizedProps,r=s.id,f=s.onPostCommit;typeof f=="function"&&f(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){_t(e,e.return,m)}}else gn(t,e,i,n);break;case 31:gn(t,e,i,n);break;case 13:gn(t,e,i,n);break;case 23:break;case 22:s=e.stateNode,r=e.alternate,e.memoizedState!==null?s._visibility&2?gn(t,e,i,n):gc(t,e):s._visibility&2?gn(t,e,i,n):(s._visibility|=2,os(t,e,i,n,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Qv(r,e);break;case 24:gn(t,e,i,n),u&2048&&Xv(e.alternate,e);break;default:gn(t,e,i,n)}}function os(t,e,i,n,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,r=e,f=i,m=n,y=r.flags;switch(r.tag){case 0:case 11:case 15:os(s,r,f,m,u),Yc(8,r);break;case 23:break;case 22:var g=r.stateNode;r.memoizedState!==null?g._visibility&2?os(s,r,f,m,u):gc(s,r):(g._visibility|=2,os(s,r,f,m,u)),u&&y&2048&&Qv(r.alternate,r);break;case 24:os(s,r,f,m,u),u&&y&2048&&Xv(r.alternate,r);break;default:os(s,r,f,m,u)}e=e.sibling}}function gc(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,n=e,u=n.flags;switch(n.tag){case 22:gc(i,n),u&2048&&Qv(n.alternate,n);break;case 24:gc(i,n),u&2048&&Xv(n.alternate,n);break;default:gc(i,n)}e=e.sibling}}var ac=8192;function ss(t,e,i){if(t.subtreeFlags&ac)for(t=t.child;t!==null;)_T(t,e,i),t=t.sibling}function _T(t,e,i){switch(t.tag){case 26:ss(t,e,i),t.flags&ac&&t.memoizedState!==null&&qM(i,yn,t.memoizedState,t.memoizedProps);break;case 5:ss(t,e,i);break;case 3:case 4:var n=yn;yn=Oh(t.stateNode.containerInfo),ss(t,e,i),yn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=ac,ac=16777216,ss(t,e,i),ac=n):ss(t,e,i));break;default:ss(t,e,i)}}function AT(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 ko(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var i=0;i<e.length;i++){var n=e[i];Me=n,MT(n,t)}AT(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)OT(t),t=t.sibling}function OT(t){switch(t.tag){case 0:case 11:case 15:ko(t),t.flags&2048&&va(9,t,t.return);break;case 3:ko(t);break;case 12:ko(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,kf(t)):ko(t);break;default:ko(t)}}function kf(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var i=0;i<e.length;i++){var n=e[i];Me=n,MT(n,t)}AT(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:va(8,e,e.return),kf(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,kf(e));break;default:kf(e)}t=t.sibling}}function MT(t,e){for(;Me!==null;){var i=Me;switch(i.tag){case 0:case 11:case 15:va(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var n=i.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:qc(i.memoizedState.cache)}if(n=i.child,n!==null)n.return=i,Me=n;else t:for(i=t;Me!==null;){n=Me;var u=n.sibling,s=n.return;if(pT(n),n===i){Me=null;break t}if(u!==null){u.return=s,Me=u;break t}Me=s}}}var iM={getCacheForType:function(t){var e=Ge(de),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return Ge(de).controller.signal}},nM=typeof WeakMap=="function"?WeakMap:Map,Et=0,Dt=null,ft=null,mt=0,zt=0,Ci=null,na=!1,Vs=!1,Vv=!1,El=0,$t=0,pa=0,lu=0,Zv=0,Di=0,Bs=0,yc=null,fi=null,Vy=!1,Xh=0,CT=0,bh=1/0,Eh=null,ra=null,Ee=0,fa=null,ws=null,yl=0,Zy=0,Ky=null,RT=null,vc=0,Jy=null;function wi(){return Et&2&&mt!==0?mt&-mt:tt.T!==null?Jv():qE()}function NT(){if(Di===0)if(!(mt&536870912)||yt){var t=Af;Af<<=1,!(Af&3932160)&&(Af=262144),Di=t}else Di=536870912;return t=Li.current,t!==null&&(t.flags|=32),Di}function hi(t,e,i){(t===Dt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(js(t,0),la(t,mt,Di,!1)),wc(t,i),(!(Et&2)||t!==Dt)&&(t===Dt&&(!(Et&2)&&(lu|=i),$t===4&&la(t,mt,Di,!1)),wn(t))}function DT(t,e,i){if(Et&6)throw Error(U(327));var n=!i&&(e&127)===0&&(e&t.expiredLanes)===0||Bc(t,e),u=n?uM(t,e):ny(t,e,!0),s=n;do{if(u===0){Vs&&!n&&la(t,e,0,!1);break}else{if(i=t.current.alternate,s&&!lM(i)){u=ny(t,e,!1),s=!1;continue}if(u===2){if(s=e,t.errorRecoveryDisabledLanes&s)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var f=t;u=yc;var m=f.current.memoizedState.isDehydrated;if(m&&(js(f,r).flags|=256),r=ny(f,r,!1),r!==2){if(Vv&&!m){f.errorRecoveryDisabledLanes|=s,lu|=s,u=4;break t}s=fi,fi=u,s!==null&&(fi===null?fi=s:fi.push.apply(fi,s))}u=r}if(s=!1,u!==2)continue}}if(u===1){js(t,0),la(t,e,0,!0);break}t:{switch(n=t,s=u,s){case 0:case 1:throw Error(U(345));case 4:if((e&4194048)!==e)break;case 6:la(n,e,Di,!na);break t;case 2:fi=null;break;case 3:case 5:break;default:throw Error(U(329))}if((e&62914560)===e&&(u=Xh+300-Hi(),10<u)){if(la(n,e,Di,!na),Dh(n,0,!0)!==0)break t;yl=e,n.timeoutHandle=kT(P2.bind(null,n,i,fi,Eh,Vy,e,Di,lu,Bs,na,s,"Throttled",-0,0),u);break t}P2(n,i,fi,Eh,Vy,e,Di,lu,Bs,na,s,null,-0,0)}}break}while(!0);wn(t)}function P2(t,e,i,n,u,s,r,f,m,y,g,S,p,x){if(t.timeoutHandle=-1,S=e.subtreeFlags,S&8192||(S&16785408)===16785408){S={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hl},_T(e,s,S);var A=(s&62914560)===s?Xh-Hi():(s&4194048)===s?CT-Hi():0;if(A=GM(S,A),A!==null){yl=s,t.cancelPendingCommit=A(k2.bind(null,t,e,s,i,n,u,r,f,m,g,S,null,p,x)),la(t,s,r,!y);return}}k2(t,e,s,i,n,u,r,f,m)}function lM(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var n=0;n<i.length;n++){var u=i[n],s=u.getSnapshot;u=u.value;try{if(!ji(s(),u))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;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 la(t,e,i,n){e&=~Zv,e&=~lu,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var u=e;0<u;){var s=31-Bi(u),r=1<<s;n[s]=-1,u&=~r}i!==0&&wE(t,i,e)}function Vh(){return Et&6?!0:(Qc(0,!1),!1)}function Kv(){if(ft!==null){if(zt===0)var t=ft.return;else t=ft,dl=mu=null,Nv(t),As=null,_c=0,t=ft;for(;t!==null;)fT(t.alternate,t),t=t.return;ft=null}}function js(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,xM(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),yl=0,Kv(),Dt=t,ft=i=ml(t.current,null),mt=e,zt=0,Ci=null,na=!1,Vs=Bc(t,e),Vv=!1,Bs=Di=Zv=lu=pa=$t=0,fi=yc=null,Vy=!1,e&8&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var u=31-Bi(n),s=1<<u;e|=t[u],n&=~s}return El=e,wh(),i}function HT(t,e){ut=null,tt.H=Oc,e===Xs||e===Lh?(e=M2(),zt=3):e===zv?(e=M2(),zt=4):zt=e===Gv?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ci=e,ft===null&&($t=1,vh(t,en(e,t.current)))}function UT(){var t=Li.current;return t===null?!0:(mt&4194048)===mt?ln===null:(mt&62914560)===mt||mt&536870912?t===ln:!1}function BT(){var t=tt.H;return tt.H=Oc,t===null?Oc:t}function wT(){var t=tt.A;return tt.A=iM,t}function xh(){$t=4,na||(mt&4194048)!==mt&&Li.current!==null||(Vs=!0),!(pa&134217727)&&!(lu&134217727)||Dt===null||la(Dt,mt,Di,!1)}function ny(t,e,i){var n=Et;Et|=2;var u=BT(),s=wT();(Dt!==t||mt!==e)&&(Eh=null,js(t,e)),e=!1;var r=$t;t:do try{if(zt!==0&&ft!==null){var f=ft,m=Ci;switch(zt){case 8:Kv(),r=6;break t;case 3:case 2:case 9:case 6:Li.current===null&&(e=!0);var y=zt;if(zt=0,Ci=null,Es(t,f,m,y),i&&Vs){r=0;break t}break;default:y=zt,zt=0,Ci=null,Es(t,f,m,y)}}aM(),r=$t;break}catch(g){HT(t,g)}while(!0);return e&&t.shellSuspendCounter++,dl=mu=null,Et=n,tt.H=u,tt.A=s,ft===null&&(Dt=null,mt=0,wh()),r}function aM(){for(;ft!==null;)jT(ft)}function uM(t,e){var i=Et;Et|=2;var n=BT(),u=wT();Dt!==t||mt!==e?(Eh=null,bh=Hi()+500,js(t,e)):Vs=Bc(t,e);t:do try{if(zt!==0&&ft!==null){e=ft;var s=Ci;e:switch(zt){case 1:zt=0,Ci=null,Es(t,e,s,1);break;case 2:case 9:if(O2(s)){zt=0,Ci=null,I2(e);break}e=function(){zt!==2&&zt!==9||Dt!==t||(zt=7),wn(t)},s.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:O2(s)?(zt=0,Ci=null,I2(e)):(zt=0,Ci=null,Es(t,e,s,7));break;case 5:var r=null;switch(ft.tag){case 26:r=ft.memoizedState;case 5:case 27:var f=ft;if(r?nz(r):f.stateNode.complete){zt=0,Ci=null;var m=f.sibling;if(m!==null)ft=m;else{var y=f.return;y!==null?(ft=y,Zh(y)):ft=null}break e}}zt=0,Ci=null,Es(t,e,s,5);break;case 6:zt=0,Ci=null,Es(t,e,s,6);break;case 8:Kv(),$t=6;break t;default:throw Error(U(462))}}sM();break}catch(g){HT(t,g)}while(!0);return dl=mu=null,tt.H=n,tt.A=u,Et=i,ft!==null?0:(Dt=null,mt=0,wh(),$t)}function sM(){for(;ft!==null&&!R4();)jT(ft)}function jT(t){var e=rT(t.alternate,t,El);t.memoizedProps=t.pendingProps,e===null?Zh(t):ft=e}function I2(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=V2(i,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=V2(i,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Nv(e);default:fT(i,e),e=ft=fx(e,El),e=rT(i,e,El)}t.memoizedProps=t.pendingProps,e===null?Zh(t):ft=e}function Es(t,e,i,n){dl=mu=null,Nv(e),As=null,_c=0;var u=e.return;try{if(WO(t,u,e,i,mt)){$t=1,vh(t,en(i,t.current)),ft=null;return}}catch(s){if(u!==null)throw ft=u,s;$t=1,vh(t,en(i,t.current)),ft=null;return}e.flags&32768?(yt||n===1?t=!0:Vs||mt&536870912?t=!1:(na=t=!0,(n===2||n===9||n===3||n===6)&&(n=Li.current,n!==null&&n.tag===13&&(n.flags|=16384))),LT(e,t)):Zh(e)}function Zh(t){var e=t;do{if(e.flags&32768){LT(e,na);return}t=e.return;var i=kO(e.alternate,e,El);if(i!==null){ft=i;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);$t===0&&($t=5)}function LT(t,e){do{var i=$O(t.alternate,t);if(i!==null){i.flags&=32767,ft=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=i}while(t!==null);$t=6,ft=null}function k2(t,e,i,n,u,s,r,f,m){t.cancelPendingCommit=null;do Kh();while(Ee!==0);if(Et&6)throw Error(U(327));if(e!==null){if(e===t.current)throw Error(U(177));if(s=e.lanes|e.childLanes,s|=vv,G4(t,i,s,r,f,m),t===Dt&&(ft=Dt=null,mt=0),ws=e,fa=t,yl=i,Zy=s,Ky=u,RT=n,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,fM(uh,function(){return XT(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,e.subtreeFlags&13878||n){n=tt.T,tt.T=null,u=xt.p,xt.p=2,r=Et,Et|=4;try{tM(t,e,i)}finally{Et=r,xt.p=u,tt.T=n}}Ee=1,qT(),GT(),YT()}}function qT(){if(Ee===1){Ee=0;var t=fa,e=ws,i=(e.flags&13878)!==0;if(e.subtreeFlags&13878||i){i=tt.T,tt.T=null;var n=xt.p;xt.p=2;var u=Et;Et|=4;try{xT(e,t);var s=Iy,r=nx(t.containerInfo),f=s.focusedElem,m=s.selectionRange;if(r!==f&&f&&f.ownerDocument&&ix(f.ownerDocument.documentElement,f)){if(m!==null&&yv(f)){var y=m.start,g=m.end;if(g===void 0&&(g=y),"selectionStart"in f)f.selectionStart=y,f.selectionEnd=Math.min(g,f.value.length);else{var S=f.ownerDocument||document,p=S&&S.defaultView||window;if(p.getSelection){var x=p.getSelection(),A=f.textContent.length,R=Math.min(m.start,A),w=m.end===void 0?R:Math.min(m.end,A);!x.extend&&R>w&&(r=w,w=R,R=r);var T=b2(f,R),E=b2(f,w);if(T&&E&&(x.rangeCount!==1||x.anchorNode!==T.node||x.anchorOffset!==T.offset||x.focusNode!==E.node||x.focusOffset!==E.offset)){var z=S.createRange();z.setStart(T.node,T.offset),x.removeAllRanges(),R>w?(x.addRange(z),x.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),x.addRange(z))}}}}for(S=[],x=f;x=x.parentNode;)x.nodeType===1&&S.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<S.length;f++){var O=S[f];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Rh=!!Py,Iy=Py=null}finally{Et=u,xt.p=n,tt.T=i}}t.current=e,Ee=2}}function GT(){if(Ee===2){Ee=0;var t=fa,e=ws,i=(e.flags&8772)!==0;if(e.subtreeFlags&8772||i){i=tt.T,tt.T=null;var n=xt.p;xt.p=2;var u=Et;Et|=4;try{vT(t,e.alternate,e)}finally{Et=u,xt.p=n,tt.T=i}}Ee=3}}function YT(){if(Ee===4||Ee===3){Ee=0,N4();var t=fa,e=ws,i=yl,n=RT;e.subtreeFlags&10256||e.flags&10256?Ee=5:(Ee=0,ws=fa=null,QT(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(ra=null),cv(i),e=e.stateNode,Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(Uc,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=tt.T,u=xt.p,xt.p=2,tt.T=null;try{for(var s=t.onRecoverableError,r=0;r<n.length;r++){var f=n[r];s(f.value,{componentStack:f.stack})}}finally{tt.T=e,xt.p=u}}yl&3&&Kh(),wn(t),u=t.pendingLanes,i&261930&&u&42?t===Jy?vc++:(vc=0,Jy=t):vc=0,Qc(0,!1)}}function QT(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,qc(e)))}function Kh(){return qT(),GT(),YT(),XT()}function XT(){if(Ee!==5)return!1;var t=fa,e=Zy;Zy=0;var i=cv(yl),n=tt.T,u=xt.p;try{xt.p=32>i?32:i,tt.T=null,i=Ky,Ky=null;var s=fa,r=yl;if(Ee=0,ws=fa=null,yl=0,Et&6)throw Error(U(331));var f=Et;if(Et|=4,OT(s.current),zT(s,s.current,r,i),Et=f,Qc(0,!1),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(Uc,s)}catch{}return!0}finally{xt.p=u,tt.T=n,QT(t,e)}}function $2(t,e,i){e=en(i,e),e=Gy(t.stateNode,e,2),t=ca(t,e,2),t!==null&&(wc(t,2),wn(t))}function _t(t,e,i){if(t.tag===3)$2(t,t,i);else for(;e!==null;){if(e.tag===3){$2(e,t,i);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ra===null||!ra.has(n))){t=en(i,t),i=lT(2),n=ca(e,i,2),n!==null&&(aT(i,n,e,t),wc(n,2),wn(n));break}}e=e.return}}function ly(t,e,i){var n=t.pingCache;if(n===null){n=t.pingCache=new nM;var u=new Set;n.set(e,u)}else u=n.get(e),u===void 0&&(u=new Set,n.set(e,u));u.has(i)||(Vv=!0,u.add(i),t=oM.bind(null,t,e,i),e.then(t,t))}function oM(t,e,i){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Dt===t&&(mt&i)===i&&($t===4||$t===3&&(mt&62914560)===mt&&300>Hi()-Xh?!(Et&2)&&js(t,0):Zv|=i,Bs===mt&&(Bs=0)),wn(t)}function VT(t,e){e===0&&(e=BE()),t=du(t,e),t!==null&&(wc(t,e),wn(t))}function cM(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),VT(t,i)}function rM(t,e){var i=0;switch(t.tag){case 31:case 13:var n=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(U(314))}n!==null&&n.delete(e),VT(t,i)}function fM(t,e){return sv(t,e)}var Th=null,cs=null,Fy=!1,zh=!1,ay=!1,aa=0;function wn(t){t!==cs&&t.next===null&&(cs===null?Th=cs=t:cs=cs.next=t),zh=!0,Fy||(Fy=!0,dM())}function Qc(t,e){if(!ay&&zh){ay=!0;do for(var i=!1,n=Th;n!==null;){if(!e)if(t!==0){var u=n.pendingLanes;if(u===0)var s=0;else{var r=n.suspendedLanes,f=n.pingedLanes;s=(1<<31-Bi(42|t)+1)-1,s&=u&~(r&~f),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(i=!0,tE(n,s))}else s=mt,s=Dh(n,n===Dt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(s&3)||Bc(n,s)||(i=!0,tE(n,s));n=n.next}while(i);ay=!1}}function hM(){ZT()}function ZT(){zh=Fy=!1;var t=0;aa!==0&&EM()&&(t=aa);for(var e=Hi(),i=null,n=Th;n!==null;){var u=n.next,s=KT(n,e);s===0?(n.next=null,i===null?Th=u:i.next=u,u===null&&(cs=i)):(i=n,(t!==0||s&3)&&(zh=!0)),n=u}Ee!==0&&Ee!==5||Qc(t,!1),aa!==0&&(aa=0)}function KT(t,e){for(var i=t.suspendedLanes,n=t.pingedLanes,u=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var r=31-Bi(s),f=1<<r,m=u[r];m===-1?(!(f&i)||f&n)&&(u[r]=q4(f,e)):m<=e&&(t.expiredLanes|=f),s&=~f}if(e=Dt,i=mt,i=Dh(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,i===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Ug(n),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||Bc(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(n!==null&&Ug(n),cv(i)){case 2:case 8:i=HE;break;case 32:i=uh;break;case 268435456:i=UE;break;default:i=uh}return n=JT.bind(null,t),i=sv(i,n),t.callbackPriority=e,t.callbackNode=i,e}return n!==null&&n!==null&&Ug(n),t.callbackPriority=2,t.callbackNode=null,2}function JT(t,e){if(Ee!==0&&Ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Kh()&&t.callbackNode!==i)return null;var n=mt;return n=Dh(t,t===Dt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(DT(t,n,e),KT(t,Hi()),t.callbackNode!=null&&t.callbackNode===i?JT.bind(null,t):null)}function tE(t,e){if(Kh())return null;DT(t,e,!0)}function dM(){TM(function(){Et&6?sv(DE,hM):ZT()})}function Jv(){if(aa===0){var t=Ds;t===0&&(t=_f,_f<<=1,!(_f&261888)&&(_f=256)),aa=t}return aa}function eE(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Xf(""+t)}function iE(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function mM(t,e,i,n,u){if(e==="submit"&&i&&i.stateNode===u){var s=eE((u[di]||null).action),r=n.submitter;r&&(e=(e=r[di]||null)?eE(e.formAction):r.getAttribute("formAction"),e!==null&&(s=e,r=null));var f=new Hh("action","action",null,n,u);t.push({event:f,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(aa!==0){var m=r?iE(u,r):new FormData(u);Ly(i,{pending:!0,data:m,method:u.method,action:s},null,m)}}else typeof s=="function"&&(f.preventDefault(),m=r?iE(u,r):new FormData(u),Ly(i,{pending:!0,data:m,method:u.method,action:s},s,m))},currentTarget:u}]})}}for(jf=0;jf<Ay.length;jf++)Lf=Ay[jf],nE=Lf.toLowerCase(),lE=Lf[0].toUpperCase()+Lf.slice(1),vn(nE,"on"+lE);var Lf,nE,lE,jf;vn(ax,"onAnimationEnd");vn(ux,"onAnimationIteration");vn(sx,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(DO,"onTransitionRun");vn(HO,"onTransitionStart");vn(UO,"onTransitionCancel");vn(ox,"onTransitionEnd");Rs("onMouseEnter",["mouseout","mouseover"]);Rs("onMouseLeave",["mouseout","mouseover"]);Rs("onPointerEnter",["pointerout","pointerover"]);Rs("onPointerLeave",["pointerout","pointerover"]);ru("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ru("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ru("onBeforeInput",["compositionend","keypress","textInput","paste"]);ru("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ru("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ru("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mc="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(" "),gM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mc));function FT(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var n=t[i],u=n.event;n=n.listeners;t:{var s=void 0;if(e)for(var r=n.length-1;0<=r;r--){var f=n[r],m=f.instance,y=f.currentTarget;if(f=f.listener,m!==s&&u.isPropagationStopped())break t;s=f,u.currentTarget=y;try{s(u)}catch(g){oh(g)}u.currentTarget=null,s=m}else for(r=0;r<n.length;r++){if(f=n[r],m=f.instance,y=f.currentTarget,f=f.listener,m!==s&&u.isPropagationStopped())break t;s=f,u.currentTarget=y;try{s(u)}catch(g){oh(g)}u.currentTarget=null,s=m}}}}function rt(t,e){var i=e[py];i===void 0&&(i=e[py]=new Set);var n=t+"__bubble";i.has(n)||(WT(e,t,2,!1),i.add(n))}function uy(t,e,i){var n=0;e&&(n|=4),WT(i,t,n,e)}var qf="_reactListening"+Math.random().toString(36).slice(2);function Fv(t){if(!t[qf]){t[qf]=!0,GE.forEach(function(i){i!=="selectionchange"&&(gM.has(i)||uy(i,!1,t),uy(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qf]||(e[qf]=!0,uy("selectionchange",!1,e))}}function WT(t,e,i,n){switch(oz(e)){case 2:var u=XM;break;case 8:u=VM;break;default:u=kv}i=u.bind(null,e,i,t),u=void 0,!Ty||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),n?u!==void 0?t.addEventListener(e,i,{capture:!0,passive:u}):t.addEventListener(e,i,!0):u!==void 0?t.addEventListener(e,i,{passive:u}):t.addEventListener(e,i,!1)}function sy(t,e,i,n,u){var s=n;if(!(e&1)&&!(e&2)&&n!==null)t:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var f=n.stateNode.containerInfo;if(f===u)break;if(r===4)for(r=n.return;r!==null;){var m=r.tag;if((m===3||m===4)&&r.stateNode.containerInfo===u)return;r=r.return}for(;f!==null;){if(r=hs(f),r===null)return;if(m=r.tag,m===5||m===6||m===26||m===27){n=s=r;continue t}f=f.parentNode}}n=n.return}FE(function(){var y=s,g=hv(i),S=[];t:{var p=cx.get(t);if(p!==void 0){var x=Hh,A=t;switch(t){case"keypress":if(Zf(i)===0)break t;case"keydown":case"keyup":x=rO;break;case"focusin":A="focus",x=qg;break;case"focusout":A="blur",x=qg;break;case"beforeblur":case"afterblur":x=qg;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=f2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=k4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=dO;break;case ax:case ux:case sx:x=eO;break;case ox:x=gO;break;case"scroll":case"scrollend":x=P4;break;case"wheel":x=vO;break;case"copy":case"cut":case"paste":x=nO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=d2;break;case"toggle":case"beforetoggle":x=SO}var R=(e&4)!==0,w=!R&&(t==="scroll"||t==="scrollend"),T=R?p!==null?p+"Capture":null:p;R=[];for(var E=y,z;E!==null;){var O=E;if(z=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||z===null||T===null||(O=bc(E,T),O!=null&&R.push(Cc(E,O,z))),w)break;E=E.return}0<R.length&&(p=new x(p,A,null,i,g),S.push({event:p,listeners:R}))}}if(!(e&7)){t:{if(p=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout",p&&i!==xy&&(A=i.relatedTarget||i.fromElement)&&(hs(A)||A[Gs]))break t;if((x||p)&&(p=g.window===g?g:(p=g.ownerDocument)?p.defaultView||p.parentWindow:window,x?(A=i.relatedTarget||i.toElement,x=y,A=A?hs(A):null,A!==null&&(w=Hc(A),R=A.tag,A!==w||R!==5&&R!==27&&R!==6)&&(A=null)):(x=null,A=y),x!==A)){if(R=f2,O="onMouseLeave",T="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(R=d2,O="onPointerLeave",T="onPointerEnter",E="pointer"),w=x==null?p:nc(x),z=A==null?p:nc(A),p=new R(O,E+"leave",x,i,g),p.target=w,p.relatedTarget=z,O=null,hs(g)===y&&(R=new R(T,E+"enter",A,i,g),R.target=z,R.relatedTarget=w,O=R),w=O,x&&A)e:{for(R=yM,T=x,E=A,z=0,O=T;O;O=R(O))z++;O=0;for(var H=E;H;H=R(H))O++;for(;0<z-O;)T=R(T),z--;for(;0<O-z;)E=R(E),O--;for(;z--;){if(T===E||E!==null&&T===E.alternate){R=T;break e}T=R(T),E=R(E)}R=null}else R=null;x!==null&&aE(S,p,x,R,!1),A!==null&&w!==null&&aE(S,w,A,R,!0)}}t:{if(p=y?nc(y):window,x=p.nodeName&&p.nodeName.toLowerCase(),x==="select"||x==="input"&&p.type==="file")var q=v2;else if(y2(p))if(tx)q=CO;else{q=OO;var L=AO}else x=p.nodeName,!x||x.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?y&&fv(y.elementType)&&(q=v2):q=MO;if(q&&(q=q(t,y))){$E(S,q,i,g);break t}L&&L(t,p,y),t==="focusout"&&y&&p.type==="number"&&y.memoizedProps.value!=null&&Ey(p,"number",p.value)}switch(L=y?nc(y):window,t){case"focusin":(y2(L)||L.contentEditable==="true")&&(gs=L,zy=y,oc=null);break;case"focusout":oc=zy=gs=null;break;case"mousedown":_y=!0;break;case"contextmenu":case"mouseup":case"dragend":_y=!1,E2(S,i,g);break;case"selectionchange":if(NO)break;case"keydown":case"keyup":E2(S,i,g)}var G;if(gv)t:{switch(t){case"compositionstart":var J="onCompositionStart";break t;case"compositionend":J="onCompositionEnd";break t;case"compositionupdate":J="onCompositionUpdate";break t}J=void 0}else ms?IE(t,i)&&(J="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(J="onCompositionStart");J&&(PE&&i.locale!=="ko"&&(ms||J!=="onCompositionStart"?J==="onCompositionEnd"&&ms&&(G=WE()):(ia=g,dv="value"in ia?ia.value:ia.textContent,ms=!0)),L=_h(y,J),0<L.length&&(J=new h2(J,t,null,i,g),S.push({event:J,listeners:L}),G?J.data=G:(G=kE(i),G!==null&&(J.data=G)))),(G=EO?xO(t,i):TO(t,i))&&(J=_h(y,"onBeforeInput"),0<J.length&&(L=new h2("onBeforeInput","beforeinput",null,i,g),S.push({event:L,listeners:J}),L.data=G)),mM(S,t,y,i,g)}FT(S,e)})}function Cc(t,e,i){return{instance:t,listener:e,currentTarget:i}}function _h(t,e){for(var i=e+"Capture",n=[];t!==null;){var u=t,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=bc(t,i),u!=null&&n.unshift(Cc(t,u,s)),u=bc(t,e),u!=null&&n.push(Cc(t,u,s))),t.tag===3)return n;t=t.return}return[]}function yM(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function aE(t,e,i,n,u){for(var s=e._reactName,r=[];i!==null&&i!==n;){var f=i,m=f.alternate,y=f.stateNode;if(f=f.tag,m!==null&&m===n)break;f!==5&&f!==26&&f!==27||y===null||(m=y,u?(y=bc(i,s),y!=null&&r.unshift(Cc(i,y,m))):u||(y=bc(i,s),y!=null&&r.push(Cc(i,y,m)))),i=i.return}r.length!==0&&t.push({event:e,listeners:r})}var vM=/\r\n?/g,pM=/\u0000|\uFFFD/g;function uE(t){return(typeof t=="string"?t:""+t).replace(vM,`
|
|
20
|
-
`).replace(pM,"")}function PT(t,e){return e=uE(e),uE(t)===e}function Mt(t,e,i,n,u,s){switch(i){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Ns(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Ns(t,""+n);break;case"className":Mf(t,"class",n);break;case"tabIndex":Mf(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Mf(t,i,n);break;case"style":JE(t,n,s);break;case"data":if(e!=="object"){Mf(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(i);break}n=Xf(""+n),t.setAttribute(i,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(i==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(i);break}n=Xf(""+n),t.setAttribute(i,n);break;case"onClick":n!=null&&(t.onclick=hl);break;case"onScroll":n!=null&&rt("scroll",t);break;case"onScrollEnd":n!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(U(61));if(i=n.__html,i!=null){if(u.children!=null)throw Error(U(60));t.innerHTML=i}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}i=Xf(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(i,""+n):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":n===!0?t.setAttribute(i,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(i,n):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(i,n):t.removeAttribute(i);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(i):t.setAttribute(i,n);break;case"popover":rt("beforetoggle",t),rt("toggle",t),Qf(t,"popover",n);break;case"xlinkActuate":ll(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ll(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ll(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ll(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ll(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ll(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ll(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ll(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ll(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Qf(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=F4.get(i)||i,Qf(t,i,n))}}function Wy(t,e,i,n,u,s){switch(i){case"style":JE(t,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(U(61));if(i=n.__html,i!=null){if(u.children!=null)throw Error(U(60));t.innerHTML=i}}break;case"children":typeof n=="string"?Ns(t,n):(typeof n=="number"||typeof n=="bigint")&&Ns(t,""+n);break;case"onScroll":n!=null&&rt("scroll",t);break;case"onScrollEnd":n!=null&&rt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!YE.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),e=i.slice(2,u?i.length-7:void 0),s=t[di]||null,s=s!=null?s[i]:null,typeof s=="function"&&t.removeEventListener(e,s,u),typeof n=="function")){typeof s!="function"&&s!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,n,u);break t}i in t?t[i]=n:n===!0?t.setAttribute(i,""):Qf(t,i,n)}}}function Ye(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",t),rt("load",t);var n=!1,u=!1,s;for(s in i)if(i.hasOwnProperty(s)){var r=i[s];if(r!=null)switch(s){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,e));default:Mt(t,e,s,r,i,null)}}u&&Mt(t,e,"srcSet",i.srcSet,i,null),n&&Mt(t,e,"src",i.src,i,null);return;case"input":rt("invalid",t);var f=s=r=u=null,m=null,y=null;for(n in i)if(i.hasOwnProperty(n)){var g=i[n];if(g!=null)switch(n){case"name":u=g;break;case"type":r=g;break;case"checked":m=g;break;case"defaultChecked":y=g;break;case"value":s=g;break;case"defaultValue":f=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(U(137,e));break;default:Mt(t,e,n,g,i,null)}}VE(t,s,f,m,y,r,u,!1);return;case"select":rt("invalid",t),n=r=s=null;for(u in i)if(i.hasOwnProperty(u)&&(f=i[u],f!=null))switch(u){case"value":s=f;break;case"defaultValue":r=f;break;case"multiple":n=f;default:Mt(t,e,u,f,i,null)}e=s,i=r,t.multiple=!!n,e!=null?Ts(t,!!n,e,!1):i!=null&&Ts(t,!!n,i,!0);return;case"textarea":rt("invalid",t),s=u=n=null;for(r in i)if(i.hasOwnProperty(r)&&(f=i[r],f!=null))switch(r){case"value":n=f;break;case"defaultValue":u=f;break;case"children":s=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(91));break;default:Mt(t,e,r,f,i,null)}KE(t,n,u,s);return;case"option":for(m in i)if(i.hasOwnProperty(m)&&(n=i[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Mt(t,e,m,n,i,null)}return;case"dialog":rt("beforetoggle",t),rt("toggle",t),rt("cancel",t),rt("close",t);break;case"iframe":case"object":rt("load",t);break;case"video":case"audio":for(n=0;n<Mc.length;n++)rt(Mc[n],t);break;case"image":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"embed":case"source":case"link":rt("error",t),rt("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(y in i)if(i.hasOwnProperty(y)&&(n=i[y],n!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,e));default:Mt(t,e,y,n,i,null)}return;default:if(fv(e)){for(g in i)i.hasOwnProperty(g)&&(n=i[g],n!==void 0&&Wy(t,e,g,n,i,void 0));return}}for(f in i)i.hasOwnProperty(f)&&(n=i[f],n!=null&&Mt(t,e,f,n,i,null))}function SM(t,e,i,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,r=null,f=null,m=null,y=null,g=null;for(x in i){var S=i[x];if(i.hasOwnProperty(x)&&S!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":m=S;default:n.hasOwnProperty(x)||Mt(t,e,x,null,n,S)}}for(var p in n){var x=n[p];if(S=i[p],n.hasOwnProperty(p)&&(x!=null||S!=null))switch(p){case"type":s=x;break;case"name":u=x;break;case"checked":y=x;break;case"defaultChecked":g=x;break;case"value":r=x;break;case"defaultValue":f=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(U(137,e));break;default:x!==S&&Mt(t,e,p,x,n,S)}}by(t,r,f,m,y,g,s,u);return;case"select":x=r=f=p=null;for(s in i)if(m=i[s],i.hasOwnProperty(s)&&m!=null)switch(s){case"value":break;case"multiple":x=m;default:n.hasOwnProperty(s)||Mt(t,e,s,null,n,m)}for(u in n)if(s=n[u],m=i[u],n.hasOwnProperty(u)&&(s!=null||m!=null))switch(u){case"value":p=s;break;case"defaultValue":f=s;break;case"multiple":r=s;default:s!==m&&Mt(t,e,u,s,n,m)}e=f,i=r,n=x,p!=null?Ts(t,!!i,p,!1):!!n!=!!i&&(e!=null?Ts(t,!!i,e,!0):Ts(t,!!i,i?[]:"",!1));return;case"textarea":x=p=null;for(f in i)if(u=i[f],i.hasOwnProperty(f)&&u!=null&&!n.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Mt(t,e,f,null,n,u)}for(r in n)if(u=n[r],s=i[r],n.hasOwnProperty(r)&&(u!=null||s!=null))switch(r){case"value":p=u;break;case"defaultValue":x=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(U(91));break;default:u!==s&&Mt(t,e,r,u,n,s)}ZE(t,p,x);return;case"option":for(var A in i)if(p=i[A],i.hasOwnProperty(A)&&p!=null&&!n.hasOwnProperty(A))switch(A){case"selected":t.selected=!1;break;default:Mt(t,e,A,null,n,p)}for(m in n)if(p=n[m],x=i[m],n.hasOwnProperty(m)&&p!==x&&(p!=null||x!=null))switch(m){case"selected":t.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Mt(t,e,m,p,n,x)}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 R in i)p=i[R],i.hasOwnProperty(R)&&p!=null&&!n.hasOwnProperty(R)&&Mt(t,e,R,null,n,p);for(y in n)if(p=n[y],x=i[y],n.hasOwnProperty(y)&&p!==x&&(p!=null||x!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,e));break;default:Mt(t,e,y,p,n,x)}return;default:if(fv(e)){for(var w in i)p=i[w],i.hasOwnProperty(w)&&p!==void 0&&!n.hasOwnProperty(w)&&Wy(t,e,w,void 0,n,p);for(g in n)p=n[g],x=i[g],!n.hasOwnProperty(g)||p===x||p===void 0&&x===void 0||Wy(t,e,g,p,n,x);return}}for(var T in i)p=i[T],i.hasOwnProperty(T)&&p!=null&&!n.hasOwnProperty(T)&&Mt(t,e,T,null,n,p);for(S in n)p=n[S],x=i[S],!n.hasOwnProperty(S)||p===x||p==null&&x==null||Mt(t,e,S,p,n,x)}function sE(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bM(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),n=0;n<i.length;n++){var u=i[n],s=u.transferSize,r=u.initiatorType,f=u.duration;if(s&&f&&sE(r)){for(r=0,f=u.responseEnd,n+=1;n<i.length;n++){var m=i[n],y=m.startTime;if(y>f)break;var g=m.transferSize,S=m.initiatorType;g&&sE(S)&&(m=m.responseEnd,r+=g*(m<f?1:(f-y)/(m-y)))}if(--n,e+=8*(s+r)/(u.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 Py=null,Iy=null;function Ah(t){return t.nodeType===9?t:t.ownerDocument}function oE(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 IT(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 ky(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 oy=null;function EM(){var t=window.event;return t&&t.type==="popstate"?t===oy?!1:(oy=t,!0):(oy=null,!1)}var kT=typeof setTimeout=="function"?setTimeout:void 0,xM=typeof clearTimeout=="function"?clearTimeout:void 0,cE=typeof Promise=="function"?Promise:void 0,TM=typeof queueMicrotask=="function"?queueMicrotask:typeof cE<"u"?function(t){return cE.resolve(null).then(t).catch(zM)}:kT;function zM(t){setTimeout(function(){throw t})}function ba(t){return t==="head"}function rE(t,e){var i=e,n=0;do{var u=i.nextSibling;if(t.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(n===0){t.removeChild(u),qs(e);return}n--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")n++;else if(i==="html")pc(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,pc(i);for(var s=i.firstChild;s;){var r=s.nextSibling,f=s.nodeName;s[jc]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&s.rel.toLowerCase()==="stylesheet"||i.removeChild(s),s=r}}else i==="body"&&pc(t.ownerDocument.body);i=u}while(i);qs(e)}function fE(t,e){var i=t;t=0;do{var n=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),n&&n.nodeType===8)if(i=n.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=n}while(i)}function $y(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":$y(i),rv(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function _M(t,e,i,n){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[jc])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=an(t.nextSibling),t===null)break}return null}function AM(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=an(t.nextSibling),t===null))return null;return t}function $T(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=an(t.nextSibling),t===null))return null;return t}function tv(t){return t.data==="$?"||t.data==="$~"}function ev(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function OM(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var n=function(){e(),i.removeEventListener("DOMContentLoaded",n)};i.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function an(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 iv=null;function hE(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return an(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function dE(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function tz(t,e,i){switch(e=Ah(i),t){case"html":if(t=e.documentElement,!t)throw Error(U(452));return t;case"head":if(t=e.head,!t)throw Error(U(453));return t;case"body":if(t=e.body,!t)throw Error(U(454));return t;default:throw Error(U(451))}}function pc(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);rv(t)}var un=new Map,mE=new Set;function Oh(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xl=xt.d;xt.d={f:MM,r:CM,D:RM,C:NM,L:DM,m:HM,X:BM,S:UM,M:wM};function MM(){var t=xl.f(),e=Vh();return t||e}function CM(t){var e=Ys(t);e!==null&&e.tag===5&&e.type==="form"?Jx(e):xl.r(t)}var Zs=typeof document>"u"?null:document;function ez(t,e,i){var n=Zs;if(n&&typeof e=="string"&&e){var u=tn(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),mE.has(u)||(mE.add(u),t={rel:t,crossOrigin:i,href:e},n.querySelector(u)===null&&(e=n.createElement("link"),Ye(e,"link",t),Ce(e),n.head.appendChild(e)))}}function RM(t){xl.D(t),ez("dns-prefetch",t,null)}function NM(t,e){xl.C(t,e),ez("preconnect",t,e)}function DM(t,e,i){xl.L(t,e,i);var n=Zs;if(n&&t&&e){var u='link[rel="preload"][as="'+tn(e)+'"]';e==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+tn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+tn(i.imageSizes)+'"]')):u+='[href="'+tn(t)+'"]';var s=u;switch(e){case"style":s=Ls(t);break;case"script":s=Ks(t)}un.has(s)||(t=Gt({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),un.set(s,t),n.querySelector(u)!==null||e==="style"&&n.querySelector(Xc(s))||e==="script"&&n.querySelector(Vc(s))||(e=n.createElement("link"),Ye(e,"link",t),Ce(e),n.head.appendChild(e)))}}function HM(t,e){xl.m(t,e);var i=Zs;if(i&&t){var n=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+tn(n)+'"][href="'+tn(t)+'"]',s=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ks(t)}if(!un.has(s)&&(t=Gt({rel:"modulepreload",href:t},e),un.set(s,t),i.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Vc(s)))return}n=i.createElement("link"),Ye(n,"link",t),Ce(n),i.head.appendChild(n)}}}function UM(t,e,i){xl.S(t,e,i);var n=Zs;if(n&&t){var u=xs(n).hoistableStyles,s=Ls(t);e=e||"default";var r=u.get(s);if(!r){var f={loading:0,preload:null};if(r=n.querySelector(Xc(s)))f.loading=5;else{t=Gt({rel:"stylesheet",href:t,"data-precedence":e},i),(i=un.get(s))&&Wv(t,i);var m=r=n.createElement("link");Ce(m),Ye(m,"link",t),m._p=new Promise(function(y,g){m.onload=y,m.onerror=g}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,$f(r,e,n)}r={type:"stylesheet",instance:r,count:1,state:f},u.set(s,r)}}}function BM(t,e){xl.X(t,e);var i=Zs;if(i&&t){var n=xs(i).hoistableScripts,u=Ks(t),s=n.get(u);s||(s=i.querySelector(Vc(u)),s||(t=Gt({src:t,async:!0},e),(e=un.get(u))&&Pv(t,e),s=i.createElement("script"),Ce(s),Ye(s,"link",t),i.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function wM(t,e){xl.M(t,e);var i=Zs;if(i&&t){var n=xs(i).hoistableScripts,u=Ks(t),s=n.get(u);s||(s=i.querySelector(Vc(u)),s||(t=Gt({src:t,async:!0,type:"module"},e),(e=un.get(u))&&Pv(t,e),s=i.createElement("script"),Ce(s),Ye(s,"link",t),i.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function gE(t,e,i,n){var u=(u=ua.current)?Oh(u):null;if(!u)throw Error(U(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Ls(i.href),i=xs(u).hoistableStyles,n=i.get(e),n||(n={type:"style",instance:null,count:0,state:null},i.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ls(i.href);var s=xs(u).hoistableStyles,r=s.get(t);if(r||(u=u.ownerDocument||u,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,r),(s=u.querySelector(Xc(t)))&&!s._p&&(r.instance=s,r.state.loading=5),un.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},un.set(t,i),s||jM(u,t,i,r.state))),e&&n===null)throw Error(U(528,""));return r}if(e&&n!==null)throw Error(U(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ks(i),i=xs(u).hoistableScripts,n=i.get(e),n||(n={type:"script",instance:null,count:0,state:null},i.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,t))}}function Ls(t){return'href="'+tn(t)+'"'}function Xc(t){return'link[rel="stylesheet"]['+t+"]"}function iz(t){return Gt({},t,{"data-precedence":t.precedence,precedence:null})}function jM(t,e,i,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Ye(e,"link",i),Ce(e),t.head.appendChild(e))}function Ks(t){return'[src="'+tn(t)+'"]'}function Vc(t){return"script[async]"+t}function yE(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+tn(i.href)+'"]');if(n)return e.instance=n,Ce(n),n;var u=Gt({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Ce(n),Ye(n,"style",u),$f(n,i.precedence,t),e.instance=n;case"stylesheet":u=Ls(i.href);var s=t.querySelector(Xc(u));if(s)return e.state.loading|=4,e.instance=s,Ce(s),s;n=iz(i),(u=un.get(u))&&Wv(n,u),s=(t.ownerDocument||t).createElement("link"),Ce(s);var r=s;return r._p=new Promise(function(f,m){r.onload=f,r.onerror=m}),Ye(s,"link",n),e.state.loading|=4,$f(s,i.precedence,t),e.instance=s;case"script":return s=Ks(i.src),(u=t.querySelector(Vc(s)))?(e.instance=u,Ce(u),u):(n=i,(u=un.get(s))&&(n=Gt({},i),Pv(n,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ce(u),Ye(u,"link",n),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(U(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(n=e.instance,e.state.loading|=4,$f(n,i.precedence,t));return e.instance}function $f(t,e,i){for(var n=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,s=u,r=0;r<n.length;r++){var f=n[r];if(f.dataset.precedence===e)s=f;else if(s!==u)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Wv(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Pv(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var th=null;function vE(t,e,i){if(th===null){var n=new Map,u=th=new Map;u.set(i,n)}else u=th,n=u.get(i),n||(n=new Map,u.set(i,n));if(n.has(t))return n;for(n.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var s=i[u];if(!(s[jc]||s[Le]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var r=s.getAttribute(e)||"";r=t+r;var f=n.get(r);f?f.push(s):n.set(r,[s])}}return n}function pE(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function LM(t,e,i){if(i===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;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!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 nz(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function qM(t,e,i,n){if(i.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(i.state.loading&4)){if(i.instance===null){var u=Ls(n.href),s=e.querySelector(Xc(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Mh.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=s,Ce(s);return}s=e.ownerDocument||e,n=iz(n),(u=un.get(u))&&Wv(n,u),s=s.createElement("link"),Ce(s);var r=s;r._p=new Promise(function(f,m){r.onload=f,r.onerror=m}),Ye(s,"link",n),i.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&!(i.state.loading&3)&&(t.count++,i=Mh.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var cy=0;function GM(t,e){return t.stylesheets&&t.count===0&&eh(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var n=setTimeout(function(){if(t.stylesheets&&eh(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&cy===0&&(cy=62500*bM());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&eh(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>cy?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function Mh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ch=null;function eh(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ch=new Map,e.forEach(YM,t),Ch=null,Mh.call(t))}function YM(t,e){if(!(e.state.loading&4)){var i=Ch.get(t);if(i)var n=i.get(null);else{i=new Map,Ch.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var r=u[s];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(i.set(r.dataset.precedence,r),n=r)}n&&i.set(null,n)}u=e.instance,r=u.getAttribute("data-precedence"),s=i.get(r)||n,s===n&&i.set(null,u),i.set(r,u),this.count++,n=Mh.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),s?s.parentNode.insertBefore(u,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Rc={$$typeof:fl,Provider:null,Consumer:null,_currentValue:tu,_currentValue2:tu,_threadCount:0};function QM(t,e,i,n,u,s,r,f,m){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=Bg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bg(0),this.hiddenUpdates=Bg(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function lz(t,e,i,n,u,s,r,f,m,y,g,S){return t=new QM(t,e,i,r,m,y,g,S,f),e=1,s===!0&&(e|=24),s=Ni(3,null,null,e),t.current=s,s.stateNode=t,e=xv(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:i,cache:e},_v(s),t}function az(t){return t?(t=ps,t):ps}function uz(t,e,i,n,u,s){u=az(u),n.context===null?n.context=u:n.pendingContext=u,n=oa(e),n.payload={element:i},s=s===void 0?null:s,s!==null&&(n.callback=s),i=ca(t,n,e),i!==null&&(hi(i,t,e),rc(i,t,e))}function SE(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Iv(t,e){SE(t,e),(t=t.alternate)&&SE(t,e)}function sz(t){if(t.tag===13||t.tag===31){var e=du(t,67108864);e!==null&&hi(e,t,67108864),Iv(t,67108864)}}function bE(t){if(t.tag===13||t.tag===31){var e=wi();e=ov(e);var i=du(t,e);i!==null&&hi(i,t,e),Iv(t,e)}}var Rh=!0;function XM(t,e,i,n){var u=tt.T;tt.T=null;var s=xt.p;try{xt.p=2,kv(t,e,i,n)}finally{xt.p=s,tt.T=u}}function VM(t,e,i,n){var u=tt.T;tt.T=null;var s=xt.p;try{xt.p=8,kv(t,e,i,n)}finally{xt.p=s,tt.T=u}}function kv(t,e,i,n){if(Rh){var u=nv(n);if(u===null)sy(t,e,n,Nh,i),EE(t,n);else if(KM(u,t,e,i,n))n.stopPropagation();else if(EE(t,n),e&4&&-1<ZM.indexOf(t)){for(;u!==null;){var s=Ys(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var r=Ia(s.pendingLanes);if(r!==0){var f=s;for(f.pendingLanes|=2,f.entangledLanes|=2;r;){var m=1<<31-Bi(r);f.entanglements[1]|=m,r&=~m}wn(s),!(Et&6)&&(bh=Hi()+500,Qc(0,!1))}}break;case 31:case 13:f=du(s,2),f!==null&&hi(f,s,2),Vh(),Iv(s,2)}if(s=nv(n),s===null&&sy(t,e,n,Nh,i),s===u)break;u=s}u!==null&&n.stopPropagation()}else sy(t,e,n,null,i)}}function nv(t){return t=hv(t),$v(t)}var Nh=null;function $v(t){if(Nh=null,t=hs(t),t!==null){var e=Hc(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=OE(e),t!==null)return t;t=null}else if(i===31){if(t=ME(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Nh=t,null}function oz(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(D4()){case DE:return 2;case HE:return 8;case uh:case H4:return 32;case UE:return 268435456;default:return 32}default:return 32}}var lv=!1,ha=null,da=null,ma=null,Nc=new Map,Dc=new Map,ta=[],ZM="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 EE(t,e){switch(t){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Nc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dc.delete(e.pointerId)}}function $o(t,e,i,n,u,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:i,eventSystemFlags:n,nativeEvent:s,targetContainers:[u]},e!==null&&(e=Ys(e),e!==null&&sz(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function KM(t,e,i,n,u){switch(e){case"focusin":return ha=$o(ha,t,e,i,n,u),!0;case"dragenter":return da=$o(da,t,e,i,n,u),!0;case"mouseover":return ma=$o(ma,t,e,i,n,u),!0;case"pointerover":var s=u.pointerId;return Nc.set(s,$o(Nc.get(s)||null,t,e,i,n,u)),!0;case"gotpointercapture":return s=u.pointerId,Dc.set(s,$o(Dc.get(s)||null,t,e,i,n,u)),!0}return!1}function cz(t){var e=hs(t.target);if(e!==null){var i=Hc(e);if(i!==null){if(e=i.tag,e===13){if(e=OE(i),e!==null){t.blockedOn=e,l2(t.priority,function(){bE(i)});return}}else if(e===31){if(e=ME(i),e!==null){t.blockedOn=e,l2(t.priority,function(){bE(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ih(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=nv(t.nativeEvent);if(i===null){i=t.nativeEvent;var n=new i.constructor(i.type,i);xy=n,i.target.dispatchEvent(n),xy=null}else return e=Ys(i),e!==null&&sz(e),t.blockedOn=i,!1;e.shift()}return!0}function xE(t,e,i){ih(t)&&i.delete(e)}function JM(){lv=!1,ha!==null&&ih(ha)&&(ha=null),da!==null&&ih(da)&&(da=null),ma!==null&&ih(ma)&&(ma=null),Nc.forEach(xE),Dc.forEach(xE)}function Gf(t,e){t.blockedOn===e&&(t.blockedOn=null,lv||(lv=!0,xe.unstable_scheduleCallback(xe.unstable_NormalPriority,JM)))}var Yf=null;function TE(t){Yf!==t&&(Yf=t,xe.unstable_scheduleCallback(xe.unstable_NormalPriority,function(){Yf===t&&(Yf=null);for(var e=0;e<t.length;e+=3){var i=t[e],n=t[e+1],u=t[e+2];if(typeof n!="function"){if($v(n||i)===null)continue;break}var s=Ys(i);s!==null&&(t.splice(e,3),e-=3,Ly(s,{pending:!0,data:u,method:i.method,action:n},n,u))}}))}function qs(t){function e(m){return Gf(m,t)}ha!==null&&Gf(ha,t),da!==null&&Gf(da,t),ma!==null&&Gf(ma,t),Nc.forEach(e),Dc.forEach(e);for(var i=0;i<ta.length;i++){var n=ta[i];n.blockedOn===t&&(n.blockedOn=null)}for(;0<ta.length&&(i=ta[0],i.blockedOn===null);)cz(i),i.blockedOn===null&&ta.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(n=0;n<i.length;n+=3){var u=i[n],s=i[n+1],r=u[di]||null;if(typeof s=="function")r||TE(i);else if(r){var f=null;if(s&&s.hasAttribute("formAction")){if(u=s,r=s[di]||null)f=r.formAction;else if($v(u)!==null)continue}else f=r.action;typeof f=="function"?i[n+1]=f:(i.splice(n,3),n-=3),TE(i)}}}function rz(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(r){return u=r})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),n||setTimeout(i,20)}function i(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function tp(t){this._internalRoot=t}Jh.prototype.render=tp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(U(409));var i=e.current,n=wi();uz(i,n,t,e,null,null)};Jh.prototype.unmount=tp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;uz(t.current,2,null,t,null,null),Vh(),e[Gs]=null}};function Jh(t){this._internalRoot=t}Jh.prototype.unstable_scheduleHydration=function(t){if(t){var e=qE();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ta.length&&e!==0&&e<ta[i].priority;i++);ta.splice(i,0,t),i===0&&cz(t)}};var zE=_E.version;if(zE!=="19.2.0")throw Error(U(527,zE,"19.2.0"));xt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(U(188)):(t=Object.keys(t).join(","),Error(U(268,t)));return t=_4(e),t=t!==null?CE(t):null,t=t===null?null:t.stateNode,t};var FM={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:tt,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(tc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!tc.isDisabled&&tc.supportsFiber))try{Uc=tc.inject(FM),Ui=tc}catch{}var tc;Fh.createRoot=function(t,e){if(!AE(t))throw Error(U(299));var i=!1,n="",u=eT,s=iT,r=nT;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=lz(t,1,!1,null,null,i,n,null,u,s,r,rz),t[Gs]=e.current,Fv(t),new tp(e)};Fh.hydrateRoot=function(t,e,i){if(!AE(t))throw Error(U(299));var n=!1,u="",s=eT,r=iT,f=nT,m=null;return i!=null&&(i.unstable_strictMode===!0&&(n=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(s=i.onUncaughtError),i.onCaughtError!==void 0&&(r=i.onCaughtError),i.onRecoverableError!==void 0&&(f=i.onRecoverableError),i.formState!==void 0&&(m=i.formState)),e=lz(t,1,!0,e,i??null,n,u,m,s,r,f,rz),e.context=az(null),i=e.current,n=wi(),n=ov(n),u=oa(n),u.callback=null,ca(i,u,n),i=n,e.current.lanes=i,wc(e,i),wn(e),t[Gs]=e.current,Fv(t),new Jh(e)};Fh.version="19.2.0"});var mz=Be((KD,dz)=>{"use strict";function hz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hz)}catch(t){console.error(t)}}hz(),dz.exports=fz()});var KC={};zA(KC,{Atlas:()=>Og,AtlasAuto:()=>S4,AtlasContext:()=>On,BoundsContext:()=>Zl,Box:()=>dn,BrowserEventManager:()=>Ka,CanvasRenderer:()=>No,CompositeRenderer:()=>Xa,CompositeResource:()=>Ao,DebugRenderer:()=>Do,DrawBox:()=>b4,Geometry:()=>Qa,GridBuilder:()=>Im,HTMLPortal:()=>Wh,ImageService:()=>qC,ImageTexture:()=>Xl,ModeContext:()=>An,ModeProvider:()=>l4,OverlayRenderer:()=>Za,ReactAtlas:()=>ts,RegionHighlight:()=>WM,ResizeWorldItem:()=>ap,Runtime:()=>_n,SingleImage:()=>be,StaticRenderer:()=>Vo,Text:()=>il,TileSet:()=>sp,TiledImage:()=>Ki,WebGLRenderer:()=>Yo,World:()=>Ji,WorldObject:()=>zn,Zone:()=>Zm,activateEvents:()=>zg,applyProps:()=>Tg,bounceOut:()=>Mo,canDrag:()=>VC,createDefaultEventMap:()=>Xm,defaultConfig:()=>PS,defaultPreset:()=>Xo,easingFunctions:()=>mn,fromImage:()=>AA,getId:()=>op,getTileFromCanvas:()=>Wz,getTileFromImageService:()=>ld,getTiles:()=>LC,getTilesFromManifest:()=>Pz,mergeStyles:()=>ZC,popmotionController:()=>Ho,presets:()=>Ag,staticPreset:()=>_g,supportedEventAttributes:()=>Ku,supportedEventMap:()=>hn,unmountComponentAtNode:()=>$u,useAfterFrame:()=>Mg,useAfterPaint:()=>GC,useAtlas:()=>Ko,useAtlasImage:()=>YC,useBeforeFrame:()=>QC,useCanvas:()=>Cg,useControlledAnnotationList:()=>XC,useFrame:()=>Fa,useMode:()=>Uo,useResizeWorldItem:()=>lp,useRuntime:()=>we,useWorldEvent:()=>Ph});var Ku=["onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onClick","onDragStart","onDragEnd","onDragEnter","onDragExit","onDrag","onDragOver","onContextMenu"];function Xm(){return Ku.reduce((t,e)=>(t[e]=[],t),{})}var hn=Ku.reduce((t,e)=>(t[e.slice(2).toLowerCase()]=e,t[e]=e,t),{});var Ql=(t,e,i)=>{let n=t.length,u=i||Z(n);for(let s=0;s<n;s++)u[s]=s%5===0?t[s+1]<e[3]&&t[s+3]>e[1]&&t[s+2]<e[4]&&t[s+4]>e[2]?1:0:t[s];return u};function Z(t,e,i){return new Float32Array(t,e,i)}var rS=(t,e,i)=>{let n=t[1]<=e[3]&&t[3]>=e[1]&&t[2]<=e[4]&&t[4]>=e[2],u=i||Z(5);return n?(u[0]=1,u[1]=Math.max(t[1],e[1]),u[2]=Math.max(t[2],e[2]),u[3]=Math.min(t[3],e[3]),u[4]=Math.min(t[4],e[4]),u):(u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u)},fS=t=>t.length/5;var ui=(t,e,i)=>{let n=i||Z(9);return n[0]=t[0]*e[0]+t[1]*e[3]+t[2]*e[6],n[1]=t[0]*e[1]+t[1]*e[4]+t[2]*e[7],n[2]=t[0]*e[2]+t[1]*e[5]+t[2]*e[8],n[3]=t[3]*e[0]+t[4]*e[3]+t[5]*e[6],n[4]=t[3]*e[1]+t[4]*e[4]+t[5]*e[7],n[5]=t[3]*e[2]+t[4]*e[5]+t[5]*e[8],n[6]=t[6]*e[0]+t[7]*e[3]+t[8]*e[6],n[7]=t[6]*e[1]+t[7]*e[4]+t[8]*e[7],n[8]=t[6]*e[2]+t[7]*e[5]+t[8]*e[8],n},et=class t{constructor(e){this.index=0,this.length=e,this.points=Z(this.length)}static grid(e=1,i=1){return new t(5*e*i)}static point(e,i){let n=Z(5);return n[0]=1,n[1]=e,n[2]=i,n[3]=e,n[4]=i,n}static positionPair(e){let i=Z(5);return i[0]=1,i[1]=e.x1,i[2]=e.y1,i[3]=e.x2,i[4]=e.y2,i}static projection(e){return t.singleBox(e.width,e.height,e.x,e.y)}static singleBox(e,i,n=0,u=0){let s=Z(5);return s[0]=1,s[1]=n,s[2]=u,s[3]=e+n,s[4]=i+u,s}row(e){return e(this)}addPoints(e,i,n,u){return this.points[this.index]=1,this.points[1+this.index]=e,this.points[2+this.index]=i,this.points[3+this.index]=n,this.points[4+this.index]=u,this.index+=5,this}addBox(e,i,n,u){return this.addPoints(e,i,e+n,i+u),this}build(){return this.points}};var Pe=(t,e)=>{let i=t.length;for(let n=0;n<i;n++)t[n]=n%5===0?e[6]*t[n+1]+e[7]*t[n+2]+e[8]*t[n]:n%5%2===1?e[0]*t[n]+e[1]*t[n+1]+e[2]:e[3]*t[n-1]+e[4]*t[n]+e[5];return t},_i=t=>{let e=Z(9);return e[0]=t,e[4]=t,e[8]=1,e},Kt=(t,e)=>{let i=Z(9);return i[0]=1,i[2]=t,i[4]=1,i[5]=e,i[8]=1,i},el=(t,e,i)=>ui(Kt((1-t)*e,(1-t)*i),_i(t)),Ai=(t,e,i)=>{let n=t.length,u=i&&i.length>=n?i.slice(0,n):Z(n);for(let s=0;s<n;s++)u[s]=s%5===0?e[6]*t[s+1]+e[7]*t[s+2]+e[8]*t[s]:s%5%2===1?e[0]*t[s]+e[1]*t[s+1]+e[2]:e[3]*t[s-1]+e[4]*t[s]+e[5];return u};var hS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Tn=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=hS[i[t]&63];return e};var It=class{constructor(){b(this,"__id");b(this,"__revision",0);b(this,"__host");b(this,"__onCreate");b(this,"__parent");b(this,"__owner",{value:void 0});b(this,"__state",{});b(this,"eventHandlers");b(this,"scale",1);b(this,"layers",[]);b(this,"time",[]);b(this,"_crop");b(this,"cropData");b(this,"id");b(this,"addEventListener",(e,i,n)=>{let u=hn[e];if(!this.eventHandlers[u])throw new Error(`Unknown event ${u}`);this.eventHandlers[u].indexOf(i)===-1&&this.eventHandlers[u].push(i)});b(this,"removeEventListener",(e,i)=>{let n=hn[e];if(!this.eventHandlers[n]){console.warn(`Unknown event ${n}`);return}this.eventHandlers[n].indexOf(i)!==-1&&(this.eventHandlers[n]=this.eventHandlers[n].filter(u=>u!==i))});this.id=this.__id=Tn(),this.eventHandlers=Xm()}get crop(){return this._crop}set crop(e){this._crop=e}getObjectsAt(e){return[]}getAllPointsAt(e,i,n){return[]}getScheduledUpdates(e,i){return[]}dispatchEvent(e,i){let n=this.eventHandlers[e],u=n?n.length:0,s=!1;if(u)for(let r=0;r<u;r++)try{n[r](i),s=!0}catch(f){console.error(e,f)}return s}get x(){return this.points[1]}get y(){return this.points[2]}get width(){return this.points[3]-this.points[1]}get height(){return this.points[4]-this.points[2]}translate(e,i){Pe(this.points,Kt(e,i))}atScale(e){Pe(this.points,el(e,this.x,this.y)),this.scale*=e}transform(e){Pe(this.points,e)}applyProps(e){this.__revision++}appendChild(e){}removeChild(e){}insertBefore(e,i){}hideInstance(){}};var be=class t extends It{constructor(i){super();b(this,"type","spacial-content");b(this,"id");b(this,"uri");b(this,"display");b(this,"points");b(this,"priority");b(this,"style",{opacity:1});if(!i)this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:Z(5)},this.points=Z(5);else{let n=i.scale||1;this.id=i.id||i.uri,this.uri=i.uri,this.points=et.singleBox(i.width,i.height,i.x,i.y),this.display={x:0,y:0,scale:n,width:i.width/n,height:i.height/n,points:et.singleBox(i.width/n,i.height/n),rotation:i?.rotation}}}applyProps(i){let n=i.display?i.display.width:i.target.width,u=i.target.width/n;if(this.id=i.id||i.uri,this.uri=i.uri,this.points.set(et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y)),i.style&&typeof i.style.opacity<"u"&&(this.style.opacity=i.style.opacity),i.crop){this.cropData=i.crop;let s=et.singleBox(i.crop.width,i.crop.height,i.crop.x,i.crop.y);Pe(s,Kt(-i.crop.x,-i.crop.y)),this.crop?this.crop.set(s):this.crop=Z(s)}i.display?(this.display.scale=u,this.display.width=i.display.width,this.display.height=i.display.height,this.display.rotation=i.display.rotation,this.display.points=et.singleBox(i.display.width,i.display.height)):(this.display.scale=u,this.display.width=i.target.width/u,this.display.height=i.target.height/u,this.display.points=et.singleBox(i.target.width/u,i.target.height/u))}getAllPointsAt(i,n,u){return[[this,this.crop||this.points,n]]}static fromSvg(i,n,u,s){return t.fromImage("data:image/svg+xml;base64,"+btoa(i),n,u,s)}static fromImage(i,n,u,s){let r=new t;return r.applyProps({uri:i,id:s,display:u,target:n}),r}getImageUrl(){return this.uri}};var Xl=class extends It{constructor(i){super();b(this,"type","spacial-content");b(this,"id");b(this,"uri");b(this,"display");b(this,"points");b(this,"getTexture");if(this.getTexture=()=>({source:void 0,hash:-1}),!i)this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:Z(5)},this.points=Z(5);else{let n=i.scale||1;this.id=i.id||i.uri,this.uri=i.uri,this.points=et.singleBox(i.width,i.height),this.display={x:0,y:0,scale:n,width:i.width/n,height:i.height/n,points:n!==1?et.singleBox(i.width/n,i.height/n):this.points}}}applyProps(i){let n=i.display?i.display.width:i.target.width,u=i.target.width/n;this.id=i.id,this.points.set(et.singleBox(i.target.width,i.target.height)),this.display.scale=u,this.display.width=i.target.width/u,this.display.height=i.target.height/u,this.getTexture=i.getTexture,this.display.points=u!==1?et.singleBox(i.target.width/u,i.target.height/u):this.points}getAllPointsAt(i,n,u){return[[this,this.points,n]]}};function dS(t,e,i=1){let n=e.length;if(n===0)throw new Error("No resources passed in.");let u=0,s=1/0;for(let r=0;r<n&&!(!e[r]||!e[r].display);r++){let f=Vm(e[r].display.scale,t/(i||1));f<s&&(s=f,u=r)}return u}function Vm(t,e){return Math.abs(t-e)}function Ya(t,e){let i=Vm(t.x,e.x),n=Vm(t.y,e.y);return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))}function mS(t){let e=t.length;return t.indexOf("/info.json")===e-10?t.slice(0,-10):t}function Kr(t,e,i){return Math.min(Math.max(t,e),i)}var Ki=class t extends It{constructor(i){super();b(this,"id");b(this,"type","spacial-content");b(this,"display");b(this,"tileWidth");b(this,"style",{opacity:1});b(this,"points");b(this,"service");b(this,"format","jpg");b(this,"crop2");b(this,"version3");b(this,"tileUrl");this.tileUrl=mS(i.url),this.id=i.id||`${this.tileUrl}--${i.scaleFactor}`,this.points=i.displayPoints?i.displayPoints:Ai(i.points,_i(i.scaleFactor)),this.tileWidth=i.tileWidth,this.version3=i.version3,this.display={x:0,y:0,width:i.width/i.scaleFactor,height:i.height/i.scaleFactor,points:i.points,scale:i.scaleFactor},i.format&&(this.format=i.format)}applyProps(i){if(i.style&&typeof i.style.opacity<"u"&&(this.style.opacity=i.style.opacity),i.service!==this.service&&(this.service=i.service),i.format?this.format=i.format:this.format="jpg",typeof i.version3<"u"&&(this.version3=i.version3),i.crop){this.cropData=i.crop;let n=Z([...this.points]),u=n.length/5,s=i.crop.x||0,r=i.crop.y||0,f=i.crop.x+i.crop.width,m=i.crop.y+i.crop.height;for(let y=0;y<u;y++){let g=y*5;n[g+1]<f&&n[g+3]>s&&n[g+2]<m&&n[g+4]>r?(n[g+1]=Kr(n[g+1],s,f),n[g+3]=Kr(n[g+3],s,f),n[g+2]=Kr(n[g+2],r,m),n[g+4]=Kr(n[g+4],r,m)):n[g]=0}Pe(n,Kt(-i.crop.x,-i.crop.y)),this.crop?this.crop.set(n):this.crop=n}}static fromTile(i,n,u,s,r,f,m,y){u.height=u.height?u.height:u.width;let g=m?Math.floor(n.width/s):Math.ceil(n.width/s),S=m?Math.floor(n.height/s):Math.ceil(n.height/s),p=Math.ceil(g/u.width),x=Math.ceil(S/u.height),A=et.grid(p,x),R=et.grid(p,x),w=r?r["@context"]?Array.isArray(r["@context"])?r["@context"]:[r["@context"]]:[]:[],T=typeof y<"u"?y:w.indexOf("http://iiif.io/api/image/3/context.json")!==-1;for(let z=0;z<x;z++)for(let O=0;O<p;O++){let H=O*u.width,q=z*u.height;R.addPoints(H*s,q*s,O===p-1?n.width:(H+u.width)*s,z===x-1?n.height:(q+u.height)*s),A.addPoints(H,q,O===p-1?g:H+u.width,z===x-1?S:q+u.height)}let E=new t({url:i,scaleFactor:s,points:A.build(),displayPoints:R.build(),width:n.width,height:n.height,tileWidth:u.width,format:f,version3:T});return E.applyProps({service:r}),E}getImageUrl(i){let n=this.points.slice(i*5,i*5+5),u=n[3]-n[1],s=n[4]-n[2],r=Math.ceil(u/this.display.scale),f=Math.ceil(s/this.display.scale),m=`${r>this.tileWidth?this.tileWidth:r},`;return this.version3&&(m+=`${f>this.tileWidth?this.tileWidth:f}`),`${this.tileUrl}/${n[1]},${n[2]},${u},${s}/${m}/0/default.${this.format||"jpg"}`}getAllPointsAt(i,n,u){let s=Ql(this.crop||this.points,i);return[[this,s,n]]}transform(i){Pe(this.points,i)}getScheduledUpdates(i,n){return[]}};var Jr=class extends It{constructor(){super(...arguments);b(this,"type","spacial-content")}getAllPointsAt(i,n,u){return[[this,this.points,n]]}};var Ao=class extends Jr{constructor(i){super();b(this,"id");b(this,"display");b(this,"points");b(this,"images",[]);b(this,"allImages",[]);b(this,"scaleFactors",[]);b(this,"aggregateBuffer",Z(9));b(this,"lazyLoader");b(this,"isFullyLoaded",!1);b(this,"maxScaleFactor",0);b(this,"renderOptions");b(this,"_scheduleSortByScales",!1);b(this,"_sortByScales",()=>{this._scheduleSortByScales=!1,this.allImages.sort((n,u)=>u.display.width-n.display.width),this.images=[];let i=.1;for(let n of this.allImages){if(n.display.width<this.renderOptions.minSize&&n.display.height<this.renderOptions.minSize&&!n.priority||n instanceof be&&(n.display.width>this.renderOptions.maxImageSize||n.display.height>this.renderOptions.maxImageSize)&&!n.priority)continue;if(Math.abs(n.display.scale-i)<.25||n.priority){let s=this.images.pop();s&&(s instanceof be||s.priority)?(n.priority&&this.images.push(n),this.images.push(s)):n&&this.images.push(n)}else n&&this.images.push(n);i=n.display.scale}this.images.length===0&&(this.images=[...this.allImages]),this.scaleFactors=this.images.map(n=>n.display.scale),this.maxScaleFactor=Math.max(...this.scaleFactors)});b(this,"loadFullResource",async()=>{if(!this.isFullyLoaded&&this.lazyLoader){this.isFullyLoaded=!0;let i=await this.lazyLoader();this.addImages(i)}});b(this,"fallback",[this.loadFullResource]);this.id=i.id,this.points=et.singleBox(i.width,i.height),this.lazyLoader=i.loadFullImages,i.loadFullImages||(this.isFullyLoaded=!0),this.display={x:0,y:0,points:et.singleBox(i.width,i.height),height:i.height,width:i.width,scale:1},this.renderOptions={renderSmallestFallback:!0,renderLayers:3,minSize:255,maxImageSize:2048,quality:1.5,...i.renderOptions||{}},this.addImages(i.images)}applyProps(i){typeof i.renderSmallestFallback<"u"&&i.renderSmallestFallback!==this.renderOptions.renderSmallestFallback&&(this.renderOptions.renderSmallestFallback=i.renderSmallestFallback),typeof i.renderLayers<"u"&&i.renderLayers!==this.renderOptions.renderLayers&&(this.renderOptions.renderLayers=i.renderLayers),typeof i.minSize<"u"&&i.minSize!==this.renderOptions.minSize&&(this.renderOptions.minSize=i.minSize),typeof i.maxImageSize<"u"&&i.maxImageSize!==this.renderOptions.maxImageSize&&(this.renderOptions.maxImageSize=i.maxImageSize),typeof i.quality<"u"&&i.quality!==this.renderOptions.quality&&(this.renderOptions.quality=i.quality)}appendChild(i){this.addImages([i])}removeChild(i){this.images.indexOf(i)!==-1&&(this.images=this.images.filter(n=>n!==i),this.sortByScales())}insertBefore(i,n){this.addImages([i])}hideInstance(){}addImages(i){for(let n of i)n.__parent=this,n.__owner=this.__owner;this.allImages.push(...i.filter(Boolean)),this.sortByScales()}sortByScales(){this._scheduleSortByScales=!0}getScheduledUpdates(i,n){return this._scheduleSortByScales?[this._sortByScales]:this.isFullyLoaded?[]:n>1/this.maxScaleFactor?this.fallback:[]}getAllPointsAt(i,n,u){if(this.images.length===0)return[];let s=dS(1/(u||1)/(window.devicePixelRatio||1),this.images,this.renderOptions.quality),r=this.images.length,f=n?ui(n,Kt(this.x,this.y)):Kt(this.x,this.y);if(s!==this.images.length-1&&this.images[s+1]){let m=[];for(let S=r-1;S>=s;S--)m.push(S);let y=m[0];this.renderOptions.renderLayers&&(m=m.slice(-Math.min(m.length,this.renderOptions.renderLayers))),this.renderOptions.renderSmallestFallback&&m.indexOf(y)===-1&&m.unshift(y);let g=[];for(let S=0;S<m.length;S++)g.push(...this.images[m[S]].getAllPointsAt(i,f,u));return g}return this.images[s].getAllPointsAt(i,f,u)}};function Fr(t,e,i,n,u){let s=Math.PI/180*u,r=Math.cos(s),f=Math.sin(s),m=r*(i-t)+f*(n-e)+t,y=r*(n-e)-f*(i-t)+e;return[m,y]}var zn=class t extends It{constructor(i,n){super();b(this,"id");b(this,"type","world-object");b(this,"scale");b(this,"layers");b(this,"points");b(this,"worldPoints");b(this,"intersectionBuffer",Z(5));b(this,"aggregateBuffer",Z(9));b(this,"invertedBuffer",Z(9));b(this,"rotation",0);b(this,"filteredPointsBuffer");b(this,"_updatedList",[]);b(this,"geometry");let{x:u=0,y:s=0}=n||{};i?(this.id=i.id||"",this.scale=1,this.layers=i.layers,this.points=Z([1,u,s,u+i.width,s+i.height]),this.worldPoints=Z([1,u,s,u+i.width,s+i.height]),this.filteredPointsBuffer=Z(i.layers.length*5)):(this.id="",this.scale=1,this.layers=[],this.points=Z(5),this.worldPoints=Z(5),this.filteredPointsBuffer=Z(5))}static createWithProps(i){let n=new t;return n.applyProps(i),n}applyProps(i){let n=i.x||0,u=i.y||0;this.id=i.id;let s=typeof i.scale<"u"?i.scale:this.scale;this.points[0]=1,this.points[1]=n,this.points[2]=u,this.points[3]=n+i.width,this.points[4]=u+i.height,this.rotation=i.rotation||0,this.worldPoints[3]=this.worldPoints[1]+i.width,this.worldPoints[4]=this.worldPoints[2]+i.height,i.scale&&i.scale!==1&&this.atScale(s),this.scale=s}appendChild(i){i.points[0]===0&&i.points.set(this.points),i.__owner.value=this,this.addLayers([i])}removeChild(i){this.layers=this.layers.filter(n=>n!==i),this.filteredPointsBuffer=Z(this.layers.length*5)}insertBefore(i,n){let u=this.layers.indexOf(n);if(u===-1||this.layers.indexOf(i)!==-1)return;let s=this.layers.slice(0,u),r=this.layers.slice(u);this.layers=[...s,i,...r]}hideInstance(){console.warn("hideInstance: not yet implemented")}getObjectsAt(i,n){if(this.rotation&&(i=this.applyRotation(i)),Ql(this.points,i,this.filteredPointsBuffer)[0]===0)return[];let s=this.layers.length,r=[];for(let f=0;f<s;f++){let m=this.layers[f];if(n&&m.isShape){let g=Ai(m.points,Kt(this.x,this.y));if(!m.intersects([i[1]-g[1],i[2]-g[2]]))continue}if(Ql(Ai(m.points,Kt(this.x,this.y)),i,this.filteredPointsBuffer)[0]!==0&&r.push(m),n){let g=m;r.push(...g.getObjectsAt(i,n))}}return r}applyRotation(i){if(this.rotation){let n={x:i[1],y:i[2]},u={x:i[1],y:i[4]},s={x:i[3],y:i[2]},r={x:i[3],y:i[4]},f=this.points[1]+(this.points[3]-this.points[1])/2,m=this.points[2]+(this.points[4]-this.points[2])/2,[y,g]=Fr(f,m,n.x,n.y,this.rotation),[S,p]=Fr(f,m,u.x,u.y,this.rotation),[x,A]=Fr(f,m,s.x,s.y,this.rotation),[R,w]=Fr(f,m,r.x,r.y,this.rotation),T=Math.min(y,S,x,R),E=Math.max(y,S,x,R),z=Math.min(g,p,A,w),O=Math.max(g,p,A,w);return Z([i[0],T,z,E,O])}return i}getAllPointsAt(i,n,u){let s=ui(Kt(this.x,this.y),_i(this.scale),this.aggregateBuffer);this.rotation&&(i=this.applyRotation(i));let r=rS(i,this.points,this.intersectionBuffer),f=this.layers.length,m=[],y=Ai(r,ui(_i(1/this.scale),Kt(-this.x,-this.y),this.invertedBuffer)),g=n?ui(n,s,this.aggregateBuffer):s,S=u*this.scale;for(let p=0;p<f;p++)m.push(...this.layers[p].getAllPointsAt(y,g,S));return m}addLayers(i){let n=[];for(let u of i)this.layers.indexOf(u)===-1&&(n.push(u),u.points.length===5&&(u.points[1]<this.worldPoints[1]/this.scale||u.points[2]<this.worldPoints[2]/this.scale||u.points[3]>this.worldPoints[3]/this.scale||u.points[4]>this.worldPoints[4]/this.scale)&&(u.crop=u.crop||Z([1,Math.max(this.worldPoints[1]/this.scale,u.points[1]),Math.max(this.worldPoints[2]/this.scale,u.points[2]),Math.min(this.worldPoints[3]/this.scale,u.points[3]),Math.min(this.worldPoints[4]/this.scale,u.points[4])])));this.layers=this.layers.concat(n),this.filteredPointsBuffer=Z(this.layers.length*5)}getScheduledUpdates(i,n){let u=this.layers.length;this._updatedList=[];let s=n*this.scale;for(let r=0;r<u;r++){let f=this.layers[r].getScheduledUpdates(i,s);f&&this._updatedList.push(...f)}return this._updatedList}};var Ji=class t extends It{constructor(i=0,n=0,u=100,s="left-to-right"){super();b(this,"id","world");b(this,"_width");b(this,"_height");b(this,"aspectRatio");b(this,"viewingDirection");b(this,"aggregateBuffer",Z(9));b(this,"isDirty",!1);b(this,"zones",[]);b(this,"filteredPointsBuffer");b(this,"selectedZone");b(this,"triggerQueue",[]);b(this,"activatedEvents",[]);b(this,"_updatedList",[]);b(this,"translationBuffer",Z(9));b(this,"needsRecalculate",!0);b(this,"emptyPaintables",[]);b(this,"renderOrder",[]);b(this,"points");b(this,"objects",[]);b(this,"subscriptions",[]);b(this,"_propagateEventTargets",[]);b(this,"_alreadyFlushed",[]);this._width=i,this._height=n,this.aspectRatio=Number.isNaN(i/n)?1:i/n,this.viewingDirection=s,this.points=Z(u*5),this.filteredPointsBuffer=Z(u*5)}get x(){return 0}get y(){return 0}get width(){return this._width}get height(){return this._height}static withProps(i){let n=new t;return n.applyProps(i),n}applyProps(i){typeof i.width<"u"&&typeof i.height<"u"&&(i.width!==this._width||i.height!==this._height)&&this.resize(i.width,i.height),i.viewingDirection!==this.viewingDirection&&(this.viewingDirection=i.viewingDirection,this.triggerRepaint())}propagateTouchEvent(i,n,u){let s=[];for(let r of u)if(r.x&&r.y){let f=et.singleBox(1,1,r.x,r.y);s.push(this.getObjectsAt(f,!0).reverse())}return s.map(r=>this.propagateEvent(i,n,r,{bubbles:!0,cancelable:!0}))}propagatePointerEvent(i,n,u,s,r={}){let f=et.singleBox(1,1,u,s),m=this.getObjectsAt(f,!0).reverse();return this.propagateEvent(i,n,m,r)}propagateEvent(i,n,u,{bubbles:s=!1,cancelable:r=!1}={}){n.atlasTarget=this,this._propagateEventTargets.length=1,this._propagateEventTargets[0]=this;let f=!1;n.stopPropagation=()=>{f=!0};let m=u.length;for(let S=m-1;S>=0;S--){this._propagateEventTargets.unshift(u[S][0]);let p=u[S][1].length;if(p)for(let x=0;x<p;x++)this._propagateEventTargets.unshift(u[S][1][x])}let y=this._propagateEventTargets.length,g=!1;for(let S=0;S<y&&(n.atlasTarget=this._propagateEventTargets[S],n.atlasWorld=this,g=this._propagateEventTargets[S].dispatchEvent(i,n)||g,!f);S++);return g&&this.triggerRepaint(),this._propagateEventTargets}appendChild(i){let n=this.appendWorldObject(i);this.renderOrder.push(n/5)}removeChild(i){let n=this.objects.indexOf(i);if(n===-1){for(let u of this.objects)if(u&&u.id===i.id){this.removeChild(u);return}return}this.objects[n]=null,this.renderOrder=this.renderOrder.filter(u=>u!==n),this.points[n*5]=0,this.triggerRepaint(),this.needsRecalculate=!0}insertBefore(i,n){let u=this.objects.indexOf(n);if(u===-1)return;let s=this.appendWorldObject(i);this.renderOrder.splice(u-1,0,s/5)}hideInstance(){}asWorldObject(){return null}addZone(i){this.zones.push(i)}selectZone(i){if(typeof i=="string"){let n=this.zones.length;for(let u=0;u<n;u++)if(this.zones[u].id===i){this.selectedZone=u,this.trigger("zone-changed");return}}else this.zones[i]&&(this.selectedZone=i,this.trigger("zone-changed"))}deselectZone(){this.selectedZone=void 0}getActiveZone(){if(this.selectedZone)return this.zones[this.selectedZone]}hasActiveZone(){return typeof this.selectedZone<"u"}checkResizeInternalBuffer(){if(fS(this.points)===this.objects.length){let i=this.points,n=Z(this.points.length*2);n.set(i,0),this.points=n}}appendWorldObject(i){this.checkResizeInternalBuffer();let n=this.objects.length*5,u=i.points;return i.points=this.points.subarray(this.objects.length*5,this.objects.length*5+5),i.points[1]=u[1],i.points[2]=u[2],i.points[3]=u[3],i.points[4]=u[4],this.objects.push(i),this.filteredPointsBuffer=Z(this.objects.length*5),this.needsRecalculate=!0,this.triggerRepaint(),n}recalculateWorldSize(){let i=!1;if(this.needsRecalculate){let n=new Int32Array(this.objects.length),u=new Int32Array(this.objects.length),s=this.renderOrder.length;for(let m=0;m<s;m++){let y=this.renderOrder[m];this.objects[y]&&(n[m]=this.points[y*5+3],u[m]=this.points[y*5+4])}let r=Math.max(...n);r!==this._width&&(this._width=r,i=!0);let f=Math.max(...u);f!==this._height&&(this._height=f,i=!0),i&&this.trigger("recalculate-world-size",{width:r,height:f}),this.needsRecalculate=!1}return i}addObjectAt(i,n){n.width&&!n.height?n.height=n.width/i.width*i.height:n.height&&!n.width&&(n.width=n.height/i.height*i.width),(!n||!n.width||!n.height)&&(n.width=i.width,n.height=i.height);let{width:u,x:s,y:r}=n,f=u/i.width;this.checkResizeInternalBuffer(),this.points.set(et.singleBox(i.width,i.height,0,0),this.objects.length*5);let m=new zn(i);return m.points=this.points.subarray(this.objects.length*5,this.objects.length*5+5),this.objects.push(m),this.scaleWorldObject(this.objects.length-1,f),this.translateWorldObject(this.objects.length-1,s,r),this.filteredPointsBuffer=Z(this.points.length*2),this.triggerRepaint(),this.needsRecalculate=!0,m}scaleWorldObject(i,n){Pe(this.points.subarray(i*5,i*5+5),el(n,this.points[i*5+1],this.points[i*5+2]));let u=this.objects[i];u&&(u.atScale(n),this.triggerRepaint())}translateWorldObject(i,n,u){Pe(this.points.subarray(i*5,i*5+5),Kt(n,u));let s=this.objects[i];s&&(s.translate(n,u),this.triggerRepaint())}resize(i,n){return this._width=i,this._height=n,this.aspectRatio=i/n,this.triggerRepaint(),this}getObjects(){return this.objects}getPoints(){return this.points}getPointsFromViewer(i,n){let u=et.singleBox(i.width,i.height,i.x,i.y);return this.getPointsAt(u,n,i.scale)}addLayoutSubscriber(i){return this.subscriptions.push(i),()=>{this.subscriptions.splice(this.subscriptions.indexOf(i),1)}}getScheduledUpdates(i,n){let u=Ql(this.points,i,this.filteredPointsBuffer),s=this.objects.length;this._updatedList=[];for(let r=0;r<s;r++)if(u[r*5]!==0){if(!this.objects[r])continue;this._updatedList.push(...this.objects[r].getScheduledUpdates(i,n))}return this._updatedList}getObjectsAt(i,n=!1){let u=this.getActiveZone(),s=Ql(this.points,i,this.filteredPointsBuffer),r=this.renderOrder.length,f=[];for(let m=0;m<r;m++){let y=this.renderOrder[m];if(s[y*5]!==0){let g=this.objects[y];if(!g||u&&u.objects.indexOf(g)===-1)continue;if(g.type!=="world-object"){f.push([g,[g]]);continue}n?f.push([g,g.getObjectsAt(i,n)]):f.push([g,this.emptyPaintables])}}return f}getPointsAt(i,n,u=1){let s=this.getObjectsAt(i),r=ui(_i(u),Kt(-i[1],-i[2]),this.translationBuffer),f=n?ui(n,r,this.aggregateBuffer):r,m=s.length,y=[];for(let g=0;g<m;g++)s[g]&&y.push(...s[g][0].getAllPointsAt(i,f,u));return y}flushSubscriptions(){if(this.triggerQueue.length){this._alreadyFlushed=[];let i=this.triggerQueue.length;for(let n=0;n<i;n++){if(this._alreadyFlushed.indexOf(this.triggerQueue[n][0])!==-1)continue;typeof this.triggerQueue[n][1]>"u"&&this._alreadyFlushed.push(this.triggerQueue[n][0]);let u=this.subscriptions.length;for(let s=0;s<u;s++)this.subscriptions[s].apply(null,this.triggerQueue[n])}this.triggerQueue=[]}}trigger(i,n){this.triggerQueue.push([i,n])}triggerEventActivation(){this.trigger("event-activation")}triggerRepaint(){this.trigger("repaint")}gotoRegion(i){this.trigger("goto-region",i)}goHome(i=!1){this.trigger("go-home",{immediate:i})}zoomTo(i,n,u){this.trigger("zoom-to",{point:n,factor:i,stream:u})}zoomIn(i){this.trigger("zoom-to",{point:i,factor:.5})}zoomOut(i){this.trigger("zoom-to",{point:i,factor:2})}constraintBounds(i){this.trigger("constrain-bounds",{immediate:i})}};function AA(t){let{src:e,target:i}=t,n=i?i.width:t.width,u=i?i.height:t.height;return new zn({id:e,height:u,width:n,layers:[be.fromImage(e,{height:u,width:n},{width:t.width,height:t.height})]})}var OA={margin:0},Zm=class{constructor(e,i={}){b(this,"id");b(this,"config");b(this,"points");b(this,"objects");this.id=e.map(n=>n.id).join("$$"),this.config={...OA,...i},this.points=Z(5),this.objects=e,this.recalculateBounds()}recalculateBounds(){this.points.set([1,Math.min(...this.objects.map(e=>e.points[1]))-this.config.margin,Math.min(...this.objects.map(e=>e.points[2]))-this.config.margin,Math.max(...this.objects.map(e=>e.points[3]))+this.config.margin,Math.max(...this.objects.map(e=>e.points[4]))+this.config.margin])}getPointsAt(e,i,n){return[]}};var Wr=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,Pr={},MA=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],dn=class extends It{constructor(){super();b(this,"id");b(this,"type","spacial-content");b(this,"points");b(this,"hoverEvents",!1);b(this,"activeEvents",!1);b(this,"display",{x:0,y:0,scale:1,width:-1,height:-1,points:Z(5)});b(this,"_parsed",{border:{id:null,match:[]},outline:{id:null,match:[]}});b(this,"hovering");b(this,"pressing");b(this,"props",{});b(this,"addHover",()=>{this.hovering=!0,this.__revision++});b(this,"removeHover",()=>{this.hovering=!1,this.pressing=!1,this.__revision++});b(this,"addPress",()=>{this.pressing=!0,this.__revision++});b(this,"removePress",()=>{this.pressing=!1,this.__revision++});this.id=Tn(12),this.points=Z(5)}getAllPointsAt(i,n){return[[this,this.points,n]]}applyProps(i={}){let n=!1;if(i.interactive!==this.props.interactive&&(n=!0,this.props.interactive=i.interactive),i.style){let u=i.border||i.style.border;if(u!==this._parsed.border.id)if(!u)this._parsed.border.id=null,this._parsed.border.match=[];else{let s=Pr[u]||Wr.exec(u)||Wr.exec(u);s&&(this._parsed.border.id=u,this._parsed.border.match=Pr[u]=s)}if(this._parsed.border.id&&(i.style.borderWidth=this._parsed.border.match[1],i.style.borderStyle="solid",i.style.borderColor=this._parsed.border.match[4]),i.style.outline!==this._parsed.outline.id)if(!i.style.outline)this._parsed.outline.id=null,this._parsed.outline.match=[];else{let s=Pr[i.style.outline]||Wr.exec(i.style.outline)||Wr.exec(i.style.outline);s&&(this._parsed.outline.id=i.style.outline,this._parsed.outline.match=Pr[i.style.outline]=s)}this._parsed.outline.id&&(i.style.outlineWidth=this._parsed.outline.match[1],i.style.outlineStyle="solid",i.style.outlineColor=this._parsed.outline.match[4]),this.props.style=i.style,i.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.backgroundColor,n=!0),i.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.style.background,n=!0);for(let s of MA)if(this.props.style[s]!==i.style[s]){n=!0;break}i.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=i.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),n=!0),i.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=i.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0)}i.href!==this.props.href&&(this.props.href=i.href,n=!0),i.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=i.hrefTarget,n=!0),i.title!==this.props.title&&(this.props.title=i.title,n=!0),i.className!==this.props.className&&(this.props.className=i.className,i.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),i.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0),i.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=i.relativeSize,n=!0),i.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=i.relativeStyle,n=!0),i.html!==this.props.html&&(this.props.html=i.html,n=!0),i.target&&(i.target.width!==this.display.width||i.target.height!==this.display.height||i.target.x!==this.points[1]||i.target.y!==this.points[2])&&(n=!0,this.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.width=i.target.width,this.display.height=i.target.height),n&&this.__revision++}};var il=class extends It{constructor(){super();b(this,"type","spacial-content");b(this,"id");b(this,"points");b(this,"color","#000");b(this,"backgroundColor");b(this,"hovering");b(this,"pressing");b(this,"text","");b(this,"display",{x:0,y:0,scale:1,width:100,height:100,points:Z(5)});b(this,"className");b(this,"html");b(this,"interactive",!1);b(this,"props",{font:"18px Arial, sans-serif",lineHeight:1,textAlign:"left",verticalAlign:"top",paddingX:0,paddingY:0,fitParent:!1,lineBreak:"auto",strokeText:!1,sizeToFill:!1,maxFontSizeToFill:void 0,allowNewLine:!0,justifyLines:!1,renderHDPI:!1,textDecoration:"none",interactive:!1,relativeSize:!1});this.id="",this.points=Z(5)}getAllPointsAt(i,n){return[[this,this.points,n]]}applyProps({id:i,target:n,text:u,color:s,backgroundColor:r,fontSize:f=18,interactive:m,fontFamily:y="Arial, sans-serif",...g}){g.font=`${f}px ${y}`,this.interactive=m||!1,typeof u<"u"&&(this.text=u||""),s&&(this.color=s),r&&(this.backgroundColor=r),i&&(this.id=i),n&&(this.points=et.singleBox(n.width,n.height,n.x,n.y),this.display.points=this.points,this.display.width=n.width,this.display.height=n.height),this.props={...this.props,...g},this.__revision++}};var Jt=Math.pow,Ir=Math.sqrt,Oo=Math.sin,gS=Math.cos,Co=Math.PI,$r=1.70158,kr=$r*1.525,yS=$r+1,vS=2*Co/3,pS=2*Co/4.5,Mo=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},mn={linear:t=>t,easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-Jt(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-Jt(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-Jt(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-Jt(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-Jt(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-Jt(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-Jt(-2*t+2,5)/2},easeInSine:function(t){return 1-gS(t*Co/2)},easeOutSine:function(t){return Oo(t*Co/2)},easeInOutSine:function(t){return-(gS(Co*t)-1)/2},easeInExpo:function(t){return t===0?0:Jt(2,10*t-10)},easeOutExpo:function(t){return t===1?1:1-Jt(2,-10*t)},easeInOutExpo:function(t){return t===0?0:t===1?1:t<.5?Jt(2,20*t-10)/2:(2-Jt(2,-20*t+10))/2},easeInCirc:function(t){return 1-Ir(1-Jt(t,2))},easeOutCirc:function(t){return Ir(1-Jt(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-Ir(1-Jt(2*t,2)))/2:(Ir(1-Jt(-2*t+2,2))+1)/2},easeInBack:function(t){return yS*t*t*t-$r*t*t},easeOutBack:function(t){return 1+yS*Jt(t-1,3)+$r*Jt(t-1,2)},easeInOutBack:function(t){return t<.5?Jt(2*t,2)*((kr+1)*2*t-kr)/2:(Jt(2*t-2,2)*((kr+1)*(t*2-2)+kr)+2)/2},easeInElastic:function(t){return t===0?0:t===1?1:-Jt(2,10*t-10)*Oo((t*10-10.75)*vS)},easeOutElastic:function(t){return t===0?0:t===1?1:Jt(2,-10*t)*Oo((t*10-.75)*vS)+1},easeInOutElastic:function(t){return t===0?0:t===1?1:t<.5?-(Jt(2,20*t-10)*Oo((20*t-11.125)*pS))/2:Jt(2,-20*t+10)*Oo((20*t-11.125)*pS)/2+1},easeInBounce:function(t){return 1-Mo(1-t)},easeOutBounce:Mo,easeInOutBounce:function(t){return t<.5?(1-Mo(1-2*t))/2:(1+Mo(2*t-1))/2}};var tf=class{constructor(e){b(this,"runtime");b(this,"pendingTransition");b(this,"lastZoomTo",null);b(this,"isConstraining",!1);b(this,"lastGoToRegion",null);this.runtime=e,this.pendingTransition={from:Z(5),to:Z(5),elapsed_time:0,done:!0,total_time:0,timingFunction:mn.easeInOutQuad,constrain:!1}}hasPending(){return!this.pendingTransition.done}getPendingTransition(){return this.pendingTransition}getPendingFrom(){return this.pendingTransition.from}customTransition(e){e(this.pendingTransition)}stopTransition(){this.pendingTransition.from=Z(this.runtime.target),this.pendingTransition.to=Z(this.runtime.target),this.pendingTransition.done=!0,this.pendingTransition.elapsed_time=0,this.pendingTransition.total_time=0}runTransition(e,i){if(!this.pendingTransition.done){let n=this.pendingTransition,u=n.total_time===0?0:(n.elapsed_time+i)/n.total_time,s=n.total_time===0?1:u===0?0:n.timingFunction(u);e[1]=n.from[1]+(n.to[1]-n.from[1])*s,e[2]=n.from[2]+(n.to[2]-n.from[2])*s,e[3]=n.from[3]+(n.to[3]-n.from[3])*s,e[4]=n.from[4]+(n.to[4]-n.from[4])*s,this.pendingTransition.elapsed_time+=i,this.pendingTransition.elapsed_time>=this.pendingTransition.total_time&&(this.pendingTransition.done=!0,this.pendingTransition.callback?.(),this.pendingTransition.constrain&&this.constrainBounds({transition:{duration:this.pendingTransition.total_time===0?0:500,easing:mn.easeOutExpo}}))}}resumeTransition(){this.lastZoomTo&&this.zoomTo(this.lastZoomTo.factor,this.lastZoomTo.options),this.isConstraining&&this.constrainBounds(),this.lastGoToRegion&&this.goToRegion(this.lastGoToRegion.target,this.lastGoToRegion.options)}zoomTo(e,i={}){let{origin:n,stream:u=!1,transition:s}=i;this.lastZoomTo={factor:e,options:i};let r=this.runtime.getZoomedPosition(e,{origin:n}),f=Math.abs(1-e);this.applyTransition(r,s,{duration:2e3*f,easing:mn.easeOutExpo,constrain:!0,callback:()=>{this.lastZoomTo=null}},{stream:!1})}constrainBounds({transition:e,panPadding:i=0}={}){this.isConstraining=!0;let[n,u]=this.runtime.constrainBounds(this.runtime.target,{panPadding:i});n&&(this.applyTransition(u,e,{duration:500,easing:mn.easeOutQuart,constrain:!1,callback:()=>{this.isConstraining=!1}}),this.runtime.updateNextFrame())}applyTransition(e,i,n,{stream:u}={}){this.pendingTransition.from=Z(this.runtime.target),this.pendingTransition.to=e,u||(this.pendingTransition.elapsed_time=0),this.pendingTransition.done=!1,this.pendingTransition.total_time=typeof i?.duration<"u"?i.duration:typeof n?.duration<"u"?n.duration:1e3,this.pendingTransition.constrain=typeof i?.constrain<"u"?i.constrain:typeof n?.constrain<"u"?n.constrain:!1,this.pendingTransition.timingFunction=i?.easing||n?.easing||mn.easeInOutSine}goToRegion(e,{transition:i}={}){this.lastGoToRegion={target:e,options:{transition:i}};let n=this.runtime.clampRegion(e);this.applyTransition(et.singleBox(n.width,n.height,n.x,n.y),i,{duration:1e3,easing:mn.easeOutExpo,constrain:!0,callback:()=>{this.lastGoToRegion=null}}),this.runtime.updateNextFrame()}};var _R=Number.MIN_VALUE+1,_n=class{constructor(e,i,n,u=[],s){b(this,"id",Tn());b(this,"ready",!1);b(this,"renderer");b(this,"world");b(this,"target");b(this,"homePosition");b(this,"manualHomePosition");b(this,"manualFocalPosition");b(this,"focalPosition");b(this,"transitionManager");b(this,"aggregate");b(this,"transformBuffer",Z(500));b(this,"lastTarget",Z(5));b(this,"zoomBuffer",Z(5));b(this,"logNextRender",!1);b(this,"pendingUpdate",!0);b(this,"isCommitting",!1);b(this,"firstRender",!0);b(this,"lastTime");b(this,"stopId");b(this,"mode","explore");b(this,"controllers",[]);b(this,"controllersRunning",!1);b(this,"controllerStopFunctions",[]);b(this,"maxScaleFactor",1);b(this,"_viewerToWorld",{x:0,y:0});b(this,"_lastGoodScale",1);b(this,"hooks",{useFrame:[],useBeforeFrame:[],useAfterPaint:[],useAfterFrame:[]});b(this,"fpsLimit");b(this,"options");b(this,"hookOptions",{filters:{grayscale:0,contrast:0,brightness:0,saturate:0,sepia:0,invert:0,hueRotate:0,blur:0}});b(this,"_viewport",{x:0,y:0,width:0,height:0});b(this,"setViewport",e=>{let i=Math.round(typeof e.x>"u"?this.target[1]:e.x),n=Math.round(typeof e.y>"u"?this.target[2]:e.y);e.width?this.target[3]=i+e.width:this.target[3]=this.target[3]-this.target[1]+i,e.height?this.target[4]=n+e.height:this.target[4]=this.target[4]-this.target[2]+n,Math.abs(this.target[1]-i)>.01&&(this.target[1]=i),Math.abs(this.target[2]-n)>.01&&(this.target[2]=n),this.pendingUpdate=!0});b(this,"render",e=>{let i=e-this.lastTime;if(this.isCommitting||this.fpsLimit&&i<1e3/this.fpsLimit){this.stopId=window.requestAnimationFrame(this.render);return}this.lastTime=e,this.world.flushSubscriptions(),this.stopId=window.requestAnimationFrame(this.render),this.hook("useFrame",i);let n=this.pendingUpdate,u=this.renderer.pendingUpdate();if(this.transitionManager.hasPending()&&(this.transitionManager.runTransition(this.target,i),this.pendingUpdate=!0,this.updateControllerPosition()),!this.firstRender&&!n&&!u&&this.target[0]===this.lastTarget[0]&&this.target[1]===this.lastTarget[1]&&this.target[2]===this.lastTarget[2]&&this.target[3]===this.lastTarget[3]&&this.target[4]===this.lastTarget[4])return;this.hook("useBeforeFrame",i),this.renderer.beforeFrame(this.world,i,this.target,this.hookOptions);let s=this.getScaleFactor(),r=this.renderer.getPointsAt(this.world,this.target,this.aggregate,s),f=r.length;for(let g=0;g<f;g++){let S=r[g][0],p=r[g][1],x=r[g][2],A=x?Ai(p,x,this.transformBuffer):p;this.renderer.prepareLayer(S,S.__parent&&x?Ai(S.__parent.crop||S.__parent.points,x):A);let R=A.length/5;for(let w=0;w<R;w++){let T=w*5;A[T]!==0&&(this.renderer.paint(S,w,A[T+1],A[T+2],A[T+3]-A[T+1],A[T+4]-A[T+2]),this.hook("useAfterPaint",S))}this.renderer.finishLayer(S,p)}this.renderer.afterFrame(this.world,i,this.target,this.hookOptions),this.hook("useAfterFrame",i),this.lastTarget[0]=this.target[0],this.lastTarget[1]=this.target[1],this.lastTarget[2]=this.target[2],this.lastTarget[3]=this.target[3],this.lastTarget[4]=this.target[4],this.firstRender=!1,this.pendingUpdate=!1,this.logNextRender=!1,this.renderer.isReady()&&(this.ready=!0,this.world.trigger("ready")),this.world.flushSubscriptions();let m=this.world.getScheduledUpdates(this.target,s),y=m.length;if(y>0)for(let g=0;g<y;g++){let S=m[y-g-1]();S?S.then(()=>{this.pendingUpdate=!0}):this.pendingUpdate=!0}});this.renderer=e,this.world=i,this.options={maxOverZoom:1,maxUnderZoom:1,visibilityRatio:1.5,...s||{}},this.target=et.projection(n),this.manualHomePosition=!1,this.pendingUpdate=!0,this.homePosition=et.projection(this.world),this.manualFocalPosition=!1,this.focalPosition=this.target,this.updateFocalPosition(),this.transitionManager=new tf(this),this.aggregate=_i(1),this.world.addLayoutSubscriber(r=>{r==="repaint"&&(this.pendingUpdate=!0),r==="recalculate-world-size"&&(this.manualHomePosition||(this.setHomePosition(),this.goHome()),this.updateFocalPosition())}),this.lastTime=performance.now(),this.controllers=u,this.render(this.lastTime),this.startControllers()}get x(){return this.target[1]}set x(e){this.target[1]=e}get y(){return this.target[2]}set y(e){this.target[2]=e}get x2(){return this.target[3]}set x2(e){this.target[3]=e}get y2(){return this.target[4]}set y2(e){this.target[4]=e}get width(){return this.target[3]-this.target[1]}set width(e){this.target[3]=this.target[1]+e}get height(){return this.target[4]-this.target[2]}set height(e){this.target[4]=this.target[2]=e}setHomePosition(e){this.homePosition.set(et.projection(e||this.world)),this.pendingUpdate=!0}startControllers(){if(!this.controllersRunning){for(let e of this.controllers)this.controllerStopFunctions.push(e.start(this));this.controllersRunning=!0}}stopControllers(){if(this.controllersRunning){for(let e of this.controllerStopFunctions)e();this.controllersRunning=!1,this.controllerStopFunctions=[]}}updateControllerPosition(){for(let e of this.controllers)e.updatePosition(this.x,this.y,this.width,this.height)}triggerResize(){this.renderer.triggerResize&&this.renderer.triggerResize(),this.pendingUpdate=!0}addController(e){this.controllers.push(e),this.controllersRunning&&e.start(this),this.pendingUpdate=!0}cover(){return this.goHome({cover:!0})}getRendererScreenPosition(){return this.renderer.getRendererScreenPosition()}updateRendererScreenPosition(){this.pendingUpdate=!0,this.renderer.resize()}setOptions(e){this.options={...this.options,...e}}goHome(e={}){if(this.world.width<=0||this.world.height<=0)return;let i=this.getScaleFactor(),n=e.position?{x:e.position[1],y:e.position[2],width:e.position[3]-e.position[1],height:e.position[4]-e.position[2]}:{x:this.homePosition[1],y:this.homePosition[2],width:this.homePosition[3]-this.homePosition[1],height:this.homePosition[4]-this.homePosition[2]},u=this.width*i,s=this.height*i,r=n.width/u,f=n.height/s,m=u/s;if(e.cover?r>f:r<f){let y=m*n.height,g=(y-n.width)/2;this.target[1]=Math.round(-g+n.x),this.target[2]=Math.round(n.y),this.target[3]=Math.round(y-g+n.x),this.target[4]=Math.round(n.height+n.y)}else{let y=n.width/m,g=(y-n.height)/2;this.target[1]=Math.round(n.x),this.target[2]=Math.round(n.y-g),this.target[3]=Math.round(n.x+n.width),this.target[4]=Math.round(n.y+y-g)}this.constrainBounds(this.target),this.updateControllerPosition()}resize(e,i,n,u){this.transitionManager.hasPending()&&this.transitionManager.stopTransition(),this.updateFocalPosition(e-i,n-u);let s=i/e,r=u/n;this.target[3]=this.target[1]+(this.target[3]-this.target[1])*s,this.target[4]=this.target[2]+(this.target[4]-this.target[2])*r,this.goHome({position:this.focalPosition}),this.renderer.resize(i,u),this.pendingUpdate=!0,this.transitionManager.resumeTransition()}updateFocalPosition(e,i){if(!this.manualFocalPosition){let n=this.width,u=this.height,s=Math.min(n,u),r=0,f=0,m=this.x+r,y=this.y+f;if(n<u){let g=this.height-this.width;this.focalPosition=et.projection({x:m,y:y+g/2,width:s-r*2,height:s-f*2}),this.pendingUpdate=!0}else{let g=this.width-this.height;this.focalPosition=et.projection({x:m+g/2,y,width:s-r*2,height:s-f*2}),this.pendingUpdate=!0}}}getViewport(){return this._viewport.x=this.target[1],this._viewport.y=this.target[2],this._viewport.width=this.target[3]-this.target[1],this._viewport.height=this.target[4]-this.target[2],this._viewport}constrainBounds(e,{panPadding:i=0,ref:n=!1}={}){let{minX:u,maxX:s,minY:r,maxY:f}=this.getBounds({target:e,padding:i}),m=!1,y=n?e:Z(e),g=Math.round(e[3]-e[1]),S=Math.round(e[4]-e[2]);return u>e[1]&&(m=!0,y[1]=u,y[3]=u+g),r>e[2]&&(m=!0,y[2]=r,y[4]=r+S),s<e[1]&&(m=!0,y[1]=s,y[3]=s+g),f<e[2]&&(m=!0,y[2]=f,y[4]=f+S),[m,y]}getBounds(e){let i=e.target||this.target,n=e.padding,u=this.options.visibilityRatio,s=Math.abs(1-u);if(this.world.hasActiveZone()){let E=this.world.getActiveZone();if(E){let z=i[3]-i[1]<E.points[3]-E.points[1],O=i[4]-i[2]<E.points[4]-E.points[2];return{minX:z?E.points[1]-n:E.points[1]+(E.points[3]-E.points[1])/2-(i[3]-i[1])/2,maxX:O?E.points[2]-n:E.points[2]+(E.points[4]-E.points[2])/2-(i[4]-i[2])/2,minY:z?E.points[3]+n:E.points[1]+(E.points[3]-E.points[1])/2-(i[3]-i[1])/2,maxY:O?E.points[4]+n:E.points[2]+(E.points[4]-E.points[2])/2-(i[4]-i[2])/2}}}let r=i[3]-i[1],f=this.world.width,m=-r*s,y=f-r-m,g=i[4]-i[2],S=this.world.height,p=-g*s,x=S-g-p,A=Math.round(Math.max(m,y)),R=Math.round(Math.min(m,y)),w=Math.round(Math.max(p,x)),T=Math.round(Math.min(p,x));return{minX:R,maxX:A,minY:T,maxY:w}}getScaleFactor(e=!1){let i=this.renderer.getScale(this.target[3]-this.target[1],this.target[4]-this.target[2],e);return i===0?this._lastGoodScale:(this._lastGoodScale=i,i)}getZoomedPosition(e,{origin:i,fromPos:n}){let u=n?{width:n[3]-n[1],height:n[4]-n[2]}:void 0,s=u?this.renderer.getScale(u.width,u.height):this.getScaleFactor(),r=u?u.width:this.width,f=u?u.height:this.height,m=this.getRendererScreenPosition()?.width,y=this.world.width,g=m?m/y:1,S=this.options.maxUnderZoom,p=Math.max(g||1,this.options.maxOverZoom),x=1/e,A=s*x;if(x<1){let T=r*s,E=f*s,z=this.world.width/T,O=this.world.height/E;if(z>O){let H=this.world.width*A,L=~~(r*s)*S;H<L&&(e=this.world.width*s/(r*s*S))}else{let H=this.world.height*A,L=~~(f*s)*S;H<L&&(e=this.world.height*s/(f*s*S))}}else A>p&&(e=s/p);let w=Ai(this.target,el(e,i?i.x:this.target[1]+(this.target[3]-this.target[1])/2,i?i.y:this.target[2]+(this.target[4]-this.target[2])/2),this.zoomBuffer);return this.constrainBounds(w,{ref:!0,panPadding:100}),w}clampRegion({x:e,y:i,width:n,height:u,padding:s=0}){let r=this.width,f=this.height,m=n/r<u/f,y=e-s,g=i-s,S=n+s*2,p=u+s*2;if(m){let A=p/f*r;return{x:y-(A-S)/2,y:g,width:A,height:p}}let x=S/r*f;return{x:y,y:g-(x-p)/2,width:S,height:x}}viewerToWorld(e,i){let n=this.getScaleFactor();return this._viewerToWorld.x=this.target[1]+e/n,this._viewerToWorld.y=this.target[2]+i/n,this._viewerToWorld}worldToViewer(e,i,n,u){let s=et.singleBox(n,u,e,i);return Pe(s,ui(_i(this.getScaleFactor()),Kt(-this.target[1],-this.target[2]))),{x:s[1],y:s[2],width:s[3]-s[1],height:s[4]-s[2],strand:s}}setScale(e,i){Pe(this.target,el(e,i?i.x:this.target[1]+(this.target[3]-this.target[1])/2,i?i.y:this.target[2]+(this.target[4]-this.target[2])/2)),this.pendingUpdate=!0}syncTo(e){let i=this.target;return this.target=e.target,this.pendingUpdate=!0,()=>{this.target=i}}stop(){return typeof this.stopId<"u"&&(window.cancelAnimationFrame(this.stopId),this.stopId=void 0),()=>{this.render(performance.now())}}reset(){this.renderer.reset()}selectZone(e){this.world.selectZone(e),this.pendingUpdate=!0}deselectZone(){this.world.deselectZone(),this.pendingUpdate=!0}hook(e,i){let n=this.hooks[e].length;if(n!==0)for(let u=0;u<n;u++)this.hooks[e][u](i)}registerHook(e,i){return this.hooks[e].push(i),()=>{this.hooks[e]=this.hooks[e].filter(n=>n!==i)}}updateNextFrame(){this.pendingUpdate=!0}};var ef=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,nf={},CA=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Qa=class extends It{constructor(){super();b(this,"id");b(this,"type","spacial-content");b(this,"isShape",!0);b(this,"points");b(this,"hoverEvents",!1);b(this,"activeEvents",!1);b(this,"display",{x:0,y:0,scale:1,width:-1,height:-1,points:Z(5)});b(this,"boundingBox",null);b(this,"_parsed",{border:{id:null,match:[]},outline:{id:null,match:[]}});b(this,"hovering");b(this,"pressing");b(this,"props",{});b(this,"shape",{type:"none"});b(this,"addHover",()=>{this.hovering=!0,this.__revision++});b(this,"removeHover",()=>{this.hovering=!1,this.pressing=!1,this.__revision++});b(this,"addPress",()=>{this.pressing=!0,this.__revision++});b(this,"removePress",()=>{this.pressing=!1,this.__revision++});this.id=Tn(12),this.points=Z(5),this.shape={type:"none"}}updateBoundingBox(){if(this.shape.type==="none")return;let i=this.shape.points;if(this.shape.points.length>2){let n=Math.min(...i.map(f=>f[0])),u=Math.min(...i.map(f=>f[1])),s=Math.max(0,...i.map(f=>f[0])),r=Math.max(0,...i.map(f=>f[1]));this.boundingBox={x:n,y:u,width:s-n,height:r-u};return}this.boundingBox=null}intersects(i){if(!i||this.shape.type==="none")return!1;let[n,u]=i,s=this.shape.points,r=this.boundingBox;if(r||(this.updateBoundingBox(),r=this.boundingBox),!r||n<r.x||n>r.x+r.width||u<r.y||u>r.height+r.y)return!1;let f=!1;for(let m=0,y=s.length-1;m<s.length;y=m++)s[m][1]>u!=s[y][1]>u&&n<(s[y][0]-s[m][0])*(u-s[m][1])/(s[y][1]-s[m][1])+s[m][0]&&(f=!f);return f}getAllPointsAt(i,n){return i[3]-i[1]===1&&i[4]-i[2]===1?this.intersects([i[1],i[2]])?[[this,this.points,n]]:[]:[[this,this.points,n]]}applyProps(i={}){let n=!1;if(i.points)if(this.shape.type!=="polygon"||this.shape.points.length!==i.points.length)this.shape={type:"polygon",points:i.points,open:i.open},this.updateBoundingBox();else{let u=!1,s=i.points.length;for(let r=0;r<s;r++)if(i.points[r][0]!==this.shape.points[r][0]||i.points[r][1]!==this.shape.points[r][1]){u=!0;break}u&&(this.shape={type:"polygon",points:i.points,open:i.open},this.updateBoundingBox())}if(i.interactive!==this.props.interactive&&(n=!0,this.props.interactive=i.interactive),(i.open||i.open===!1)&&(n=!0,this.shape.open=i.open),i.style){let u=i.border||i.style.border;if(u!==this._parsed.border.id)if(!u)this._parsed.border.id=null,this._parsed.border.match=[];else{let s=nf[u]||ef.exec(u)||ef.exec(u);s&&(this._parsed.border.id=u,this._parsed.border.match=nf[u]=s)}if(this._parsed.border.id&&(i.style.borderWidth=this._parsed.border.match[1],i.style.borderStyle="solid",i.style.borderColor=this._parsed.border.match[4]),i.style.outline!==this._parsed.outline.id)if(!i.style.outline)this._parsed.outline.id=null,this._parsed.outline.match=[];else{let s=nf[i.style.outline]||ef.exec(i.style.outline)||ef.exec(i.style.outline);s&&(this._parsed.outline.id=i.style.outline,this._parsed.outline.match=nf[i.style.outline]=s)}this._parsed.outline.id&&(i.style.outlineWidth=this._parsed.outline.match[1],i.style.outlineStyle="solid",i.style.outlineColor=this._parsed.outline.match[4]),this.props.style=i.style,i.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.backgroundColor,n=!0),i.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.style.background,n=!0);for(let s of CA)if(this.props.style[s]!==i.style[s]){n=!0;break}i.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=i.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),n=!0),i.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=i.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0)}i.href!==this.props.href&&(this.props.href=i.href,n=!0),i.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=i.hrefTarget,n=!0),i.title!==this.props.title&&(this.props.title=i.title,n=!0),i.className!==this.props.className&&(this.props.className=i.className,i.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),i.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0),i.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=i.relativeSize,n=!0),i.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=i.relativeStyle,n=!0),i.html!==this.props.html&&(this.props.html=i.html,n=!0),i.target&&(i.target.width!==this.display.width||i.target.height!==this.display.height||i.target.x!==this.points[1]||i.target.y!==this.points[2])&&(n=!0,this.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.width=i.target.width,this.display.height=i.target.height),n&&this.__revision++}};var Ro=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,RA=typeof AbortController=="function",lf=RA?AbortController:class{constructor(){this.signal=new SS}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},NA=typeof AbortSignal=="function",DA=typeof lf.AbortSignal=="function",SS=NA?AbortSignal:DA?lf.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(i=>i(e),this))}onabort(){}addEventListener(e,i){e==="abort"&&this._listeners.push(i)}removeEventListener(e,i){e==="abort"&&(this._listeners=this._listeners.filter(n=>n!==i))}},Wm=new Set,Km=(t,e)=>{let i=`LRU_CACHE_OPTION_${t}`;af(i)&&Pm(i,`${t} option`,`options.${e}`,Fu)},Jm=(t,e)=>{let i=`LRU_CACHE_METHOD_${t}`;if(af(i)){let{prototype:n}=Fu,{get:u}=Object.getOwnPropertyDescriptor(n,t);Pm(i,`${t} method`,`cache.${e}()`,u)}},HA=(t,e)=>{let i=`LRU_CACHE_PROPERTY_${t}`;if(af(i)){let{prototype:n}=Fu,{get:u}=Object.getOwnPropertyDescriptor(n,t);Pm(i,`${t} property`,`cache.${e}`,u)}},bS=(...t)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...t):console.error(...t)},af=t=>!Wm.has(t),Pm=(t,e,i,n)=>{Wm.add(t);let u=`The ${e} is deprecated. Please use ${i} instead.`;bS(u,"DeprecationWarning",t,n)},Vl=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),ES=t=>Vl(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ju:null:null,Ju=class extends Array{constructor(e){super(e),this.fill(0)}},Fm=class{constructor(e){if(e===0)return[];let i=ES(e);this.heap=new i(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Fu=class t{constructor(e={}){let{max:i=0,ttl:n,ttlResolution:u=1,ttlAutopurge:s,updateAgeOnGet:r,updateAgeOnHas:f,allowStale:m,dispose:y,disposeAfter:g,noDisposeOnSet:S,noUpdateTTL:p,maxSize:x=0,maxEntrySize:A=0,sizeCalculation:R,fetchMethod:w,fetchContext:T,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:z,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:H,ignoreFetchAbort:q}=e,{length:L,maxAge:G,stale:J}=e instanceof t?{}:e;if(i!==0&&!Vl(i))throw new TypeError("max option must be a nonnegative integer");let B=i?ES(i):Array;if(!B)throw new Error("invalid max value: "+i);if(this.max=i,this.maxSize=x,this.maxEntrySize=A||this.maxSize,this.sizeCalculation=R||L,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=w||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=T,!this.fetchMethod&&T!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(i).fill(null),this.valList=new Array(i).fill(null),this.next=new B(i),this.prev=new B(i),this.head=0,this.tail=0,this.free=new Fm(i),this.initialFill=1,this.size=0,typeof y=="function"&&(this.dispose=y),typeof g=="function"?(this.disposeAfter=g,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!S,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!O,this.allowStaleOnFetchAbort=!!H,this.ignoreFetchAbort=!!q,this.maxEntrySize!==0){if(this.maxSize!==0&&!Vl(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Vl(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!J,this.noDeleteOnStaleGet=!!z,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!f,this.ttlResolution=Vl(u)||u===0?u:1,this.ttlAutopurge=!!s,this.ttl=n||G||0,this.ttl){if(!Vl(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let I="LRU_CACHE_UNBOUNDED";af(I)&&(Wm.add(I),bS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",I,t))}J&&Km("stale","allowStale"),G&&Km("maxAge","ttl"),L&&Km("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Ju(this.max),this.starts=new Ju(this.max),this.setItemTTL=(n,u,s=Ro.now())=>{if(this.starts[n]=u!==0?s:0,this.ttls[n]=u,u!==0&&this.ttlAutopurge){let r=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},u+1);r.unref&&r.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?Ro.now():0},this.statusTTL=(n,u)=>{n&&(n.ttl=this.ttls[u],n.start=this.starts[u],n.now=e||i(),n.remainingTTL=n.now+n.ttl-n.start)};let e=0,i=()=>{let n=Ro.now();if(this.ttlResolution>0){e=n;let u=setTimeout(()=>e=0,this.ttlResolution);u.unref&&u.unref()}return n};this.getRemainingTTL=n=>{let u=this.keyMap.get(n);return u===void 0?0:this.ttls[u]===0||this.starts[u]===0?1/0:this.starts[u]+this.ttls[u]-(e||i())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(e||i())-this.starts[n]>this.ttls[n]}updateItemAge(e){}statusTTL(e,i){}setItemTTL(e,i,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Ju(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,i,n,u)=>{if(this.isBackgroundFetch(i))return 0;if(!Vl(n))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(n=u(i,e),!Vl(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.addItemSize=(e,i,n)=>{if(this.sizes[e]=i,this.maxSize){let u=this.maxSize-this.sizes[e];for(;this.calculatedSize>u;)this.evict(!0)}this.calculatedSize+=this.sizes[e],n&&(n.entrySize=i,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,i){}requireSize(e,i,n,u){if(n||u)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let i=this.tail;!(!this.isValidIndex(i)||((e||!this.isStale(i))&&(yield i),i===this.head));)i=this.prev[i]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let i=this.head;!(!this.isValidIndex(i)||((e||!this.isStale(i))&&(yield i),i===this.tail));)i=this.next[i]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(let e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(let e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(let e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(let e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(let e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,i){for(let n of this.indexes()){let u=this.valList[n],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;if(s!==void 0&&e(s,this.keyList[n],this))return this.get(this.keyList[n],i)}}forEach(e,i=this){for(let n of this.indexes()){let u=this.valList[n],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;s!==void 0&&e.call(i,s,this.keyList[n],this)}}rforEach(e,i=this){for(let n of this.rindexes()){let u=this.valList[n],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;s!==void 0&&e.call(i,s,this.keyList[n],this)}}get prune(){return Jm("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let i of this.rindexes({allowStale:!0}))this.isStale(i)&&(this.delete(this.keyList[i]),e=!0);return e}dump(){let e=[];for(let i of this.indexes({allowStale:!0})){let n=this.keyList[i],u=this.valList[i],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;if(s===void 0)continue;let r={value:s};if(this.ttls){r.ttl=this.ttls[i];let f=Ro.now()-this.starts[i];r.start=Math.floor(Date.now()-f)}this.sizes&&(r.size=this.sizes[i]),e.unshift([n,r])}return e}load(e){this.clear();for(let[i,n]of e){if(n.start){let u=Date.now()-n.start;n.start=Ro.now()-u}this.set(i,n.value,n)}}dispose(e,i,n){}set(e,i,{ttl:n=this.ttl,start:u,noDisposeOnSet:s=this.noDisposeOnSet,size:r=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,status:y}={}){if(r=this.requireSize(e,i,r,f),this.maxEntrySize&&r>this.maxEntrySize)return y&&(y.set="miss",y.maxEntrySizeExceeded=!0),this.delete(e),this;let g=this.size===0?void 0:this.keyMap.get(e);if(g===void 0)g=this.newIndex(),this.keyList[g]=e,this.valList[g]=i,this.keyMap.set(e,g),this.next[this.tail]=g,this.prev[g]=this.tail,this.tail=g,this.size++,this.addItemSize(g,r,y),y&&(y.set="add"),m=!1;else{this.moveToTail(g);let S=this.valList[g];if(i!==S){if(this.isBackgroundFetch(S)?S.__abortController.abort(new Error("replaced")):s||(this.dispose(S,e,"set"),this.disposeAfter&&this.disposed.push([S,e,"set"])),this.removeItemSize(g),this.valList[g]=i,this.addItemSize(g,r,y),y){y.set="replace";let p=S&&this.isBackgroundFetch(S)?S.__staleWhileFetching:S;p!==void 0&&(y.oldValue=p)}}else y&&(y.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),m||this.setItemTTL(g,n,u),this.statusTTL(y,g),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(!0),e}}evict(e){let i=this.head,n=this.keyList[i],u=this.valList[i];return this.isBackgroundFetch(u)?u.__abortController.abort(new Error("evicted")):(this.dispose(u,n,"evict"),this.disposeAfter&&this.disposed.push([u,n,"evict"])),this.removeItemSize(i),e&&(this.keyList[i]=null,this.valList[i]=null,this.free.push(i)),this.head=this.next[i],this.keyMap.delete(n),this.size--,i}has(e,{updateAgeOnHas:i=this.updateAgeOnHas,status:n}={}){let u=this.keyMap.get(e);if(u!==void 0)if(this.isStale(u))n&&(n.has="stale",this.statusTTL(n,u));else return i&&this.updateItemAge(u),n&&(n.has="hit"),this.statusTTL(n,u),!0;else n&&(n.has="miss");return!1}peek(e,{allowStale:i=this.allowStale}={}){let n=this.keyMap.get(e);if(n!==void 0&&(i||!this.isStale(n))){let u=this.valList[n];return this.isBackgroundFetch(u)?u.__staleWhileFetching:u}}backgroundFetch(e,i,n,u){let s=i===void 0?void 0:this.valList[i];if(this.isBackgroundFetch(s))return s;let r=new lf;n.signal&&n.signal.addEventListener("abort",()=>r.abort(n.signal.reason));let f={signal:r.signal,options:n,context:u},m=(x,A=!1)=>{let{aborted:R}=r.signal,w=n.ignoreFetchAbort&&x!==void 0;return n.status&&(R&&!A?(n.status.fetchAborted=!0,n.status.fetchError=r.signal.reason,w&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),R&&!w&&!A?g(r.signal.reason):(this.valList[i]===p&&(x===void 0?p.__staleWhileFetching?this.valList[i]=p.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,x,f.options))),x)},y=x=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=x),g(x)),g=x=>{let{aborted:A}=r.signal,R=A&&n.allowStaleOnFetchAbort,w=R||n.allowStaleOnFetchRejection,T=w||n.noDeleteOnFetchRejection;if(this.valList[i]===p&&(!T||p.__staleWhileFetching===void 0?this.delete(e):R||(this.valList[i]=p.__staleWhileFetching)),w)return n.status&&p.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw x},S=(x,A)=>{this.fetchMethod(e,s,f).then(R=>x(R),A),r.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(x(),n.allowStaleOnFetchAbort&&(x=R=>m(R,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(S).then(m,y);return p.__abortController=r,p.__staleWhileFetching=s,p.__returned=null,i===void 0?(this.set(e,p,{...f.options,status:void 0}),i=this.keyMap.get(e)):this.valList[i]=p,p}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:r=this.noDisposeOnSet,size:f=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:y=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:x=this.allowStaleOnFetchAbort,fetchContext:A=this.fetchContext,forceRefresh:R=!1,status:w,signal:T}={}){if(!this.fetchMethod)return w&&(w.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:u,status:w});let E={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:u,ttl:s,noDisposeOnSet:r,size:f,sizeCalculation:m,noUpdateTTL:y,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:x,ignoreFetchAbort:p,status:w,signal:T},z=this.keyMap.get(e);if(z===void 0){w&&(w.fetch="miss");let O=this.backgroundFetch(e,z,E,A);return O.__returned=O}else{let O=this.valList[z];if(this.isBackgroundFetch(O)){let J=i&&O.__staleWhileFetching!==void 0;return w&&(w.fetch="inflight",J&&(w.returnedStale=!0)),J?O.__staleWhileFetching:O.__returned=O}let H=this.isStale(z);if(!R&&!H)return w&&(w.fetch="hit"),this.moveToTail(z),n&&this.updateItemAge(z),this.statusTTL(w,z),O;let q=this.backgroundFetch(e,z,E,A),L=q.__staleWhileFetching!==void 0,G=L&&i;return w&&(w.fetch=L&&H?"stale":"refresh",G&&H&&(w.returnedStale=!0)),G?q.__staleWhileFetching:q.__returned=q}}get(e,{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:s}={}){let r=this.keyMap.get(e);if(r!==void 0){let f=this.valList[r],m=this.isBackgroundFetch(f);return this.statusTTL(s,r),this.isStale(r)?(s&&(s.get="stale"),m?(s&&(s.returnedStale=i&&f.__staleWhileFetching!==void 0),i?f.__staleWhileFetching:void 0):(u||this.delete(e),s&&(s.returnedStale=i),i?f:void 0)):(s&&(s.get="hit"),m?f.__staleWhileFetching:(this.moveToTail(r),n&&this.updateItemAge(r),f))}else s&&(s.get="miss")}connect(e,i){this.prev[i]=e,this.next[e]=i}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return Jm("del","delete"),this.delete}delete(e){let i=!1;if(this.size!==0){let n=this.keyMap.get(e);if(n!==void 0)if(i=!0,this.size===1)this.clear();else{this.removeItemSize(n);let u=this.valList[n];this.isBackgroundFetch(u)?u.__abortController.abort(new Error("deleted")):(this.dispose(u,e,"delete"),this.disposeAfter&&this.disposed.push([u,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return i}clear(){for(let e of this.rindexes({allowStale:!0})){let i=this.valList[e];if(this.isBackgroundFetch(i))i.__abortController.abort(new Error("deleted"));else{let n=this.keyList[e];this.dispose(i,n,"delete"),this.disposeAfter&&this.disposed.push([i,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Jm("reset","clear"),this.clear}get length(){return HA("length","size"),this.size}static get AbortController(){return lf}static get AbortSignal(){return SS}},xS=Fu;var TS=/(-?[0-9]+(px|em)\s+|0\s+)(-?[0-9]+(px|em)\s+|0\s+)(-?[0-9]+(px|em)\s+|0\s+)?(-?[0-9]+(px|em)\s+|0\s+)?(.*)/g,zS={},UA=typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"),uf={};var No=class{constructor(e,i){b(this,"canvas");b(this,"ctx");b(this,"options");b(this,"imagesPending",0);b(this,"imagesLoaded",0);b(this,"imageIdsLoaded",[]);b(this,"frameIsRendering",!1);b(this,"pendingDrawCall",!1);b(this,"firstMeaningfulPaint",!1);b(this,"parallelTasks",8);b(this,"frameTasks",0);b(this,"loadingQueueOrdered",!0);b(this,"loadingQueue",[]);b(this,"currentTask",Promise.resolve());b(this,"tasksRunning",0);b(this,"stats");b(this,"averageJobTime",64);b(this,"lastKnownScale",1);b(this,"visible",[]);b(this,"previousVisible",[]);b(this,"rendererPosition");b(this,"dpi");b(this,"drawCalls",[]);b(this,"lastPaintedObject");b(this,"hostCache");b(this,"invalidated",[]);b(this,"_worker",()=>{if(this.loadingQueue.length){let e=this.loadingQueue.pop();e&&(this.tasksRunning++,this.frameTasks++,this.currentTask=e.task().then(()=>{this.tasksRunning--}).catch(()=>{this.tasksRunning--}))}});b(this,"_scheduled",0);b(this,"_doWork",()=>{this.loadingQueue.length===0&&this.tasksRunning===0&&this._scheduled&&(clearInterval(this._scheduled),this._scheduled=0);let e=this.parallelTasks||1;!this.firstMeaningfulPaint&&this.loadingQueue.length&&(e=this.loadingQueue.length);for(let i=0;i<=e;i++)this._worker()});this.canvas=e,this.rendererPosition=e.getBoundingClientRect(),this.ctx=e.getContext("2d",{alpha:!0}),this.ctx.imageSmoothingEnabled=!0,this.options=i||{},this.canvas.style.transition="opacity .3s",this.dpi=i?.dpi||1,this.hostCache=i?.lruCache?new xS({maxSize:1024*512*512,dispose:(n,u,s)=>{this.invalidated.push(u),n.width=0,n.height=0},sizeCalculation:(n,u)=>n.width*n.height}):{store:{},get(n){return this.store[n]},set(n,u){this.store[n]=u}}}getCanvasDims(){return{width:this.canvas.width/this.dpi,height:this.canvas.height/this.dpi}}resize(){this.rendererPosition=this.canvas.getBoundingClientRect()}isReady(){return this.firstMeaningfulPaint}afterFrame(e){if(this.clearTransform(),this.lastPaintedObject=void 0,this.frameIsRendering=!1,this.imagesPending=Math.max(0,this.imagesPending-this.imagesLoaded),this.imagesLoaded=0,this.loadingQueueOrdered||(this.loadingQueue=this.loadingQueue.sort((i,n)=>i.network&&i.scale===n.scale?n.distance-i.distance:i.scale<n.scale?-1:1),this.loadingQueueOrdered=!0),this.previousVisible=this.visible,this.pendingDrawCall=!!this.drawCalls.length,this.pendingDrawCall)for(let i=0;i<this.drawCalls.length;i++){let n=this.drawCalls.shift();n&&n()}this.doOffscreenWork(),this.options.debug&&this.stats&&this.stats.end()}doOffscreenWork(){this.frameTasks=0,this.loadingQueue.length&&(this._worker(),this.loadingQueue.length&&(this._scheduled||(this._scheduled=setInterval(this._doWork,0))))}getScale(e,i,n){if(Number.isNaN(e)||Number.isNaN(i))return this.lastKnownScale;let u=this.getCanvasDims(),s=u.width/e,r=u.height/i,f=(s<r?r:s)*(n&&this.dpi||1);return Number.isNaN(f)||(this.lastKnownScale=f),this.lastKnownScale}beforeFrame(e,i,n,u){this.options.debug&&this.stats&&this.stats.begin(),this.frameIsRendering=!0,this.visible=[],this.options.beforeFrame&&this.options.beforeFrame(i);let s=this.getCanvasDims();if(this.ctx.globalAlpha=1,this.ctx.fillStyle=this.canvas.dataset.background??"rgb(0, 0, 0)",this.ctx.fillRect(0,0,s.width,s.height),u.enableFilters&&(u.filters.brightness||u.filters.contrast||u.filters.grayscale||u.filters.invert||u.filters.sepia||u.filters.saturate||u.filters.hueRotate||u.filters.blur)){let r="";u.filters.brightness&&(r+=`brightness(${~~(100+u.filters.brightness*100)}%) `),u.filters.contrast&&(r+=`contrast(${~~(100+u.filters.contrast*100)}%) `),u.filters.grayscale&&(r+=`grayscale(${~~(u.filters.grayscale*100)}%) `),u.filters.invert&&(r+=`invert(${~~(u.filters.invert*100)}%) `),u.filters.sepia&&(r+=`sepia(${~~(u.filters.sepia*100)}%) `),u.filters.saturate&&(r+=`saturate(${~~(100+u.filters.saturate*100)}%) `),u.filters.hueRotate&&(r+=`hue-rotate(${u.filters.hueRotate}deg) `),u.filters.blur&&(r+=`blur(${u.filters.blur}px) `),this.ctx.filter!==r&&(this.ctx.filter=r)}else this.ctx.filter="none"}applyTransform(e,i,n,u,s){let r=e.__owner.value;if(r&&r.rotation){this.ctx.save();let f=i+u/2,m=n+s/2;this.ctx.translate(f,m),this.ctx.rotate(r.rotation*Math.PI/180),this.ctx.translate(-f,-m),this.lastPaintedObject=r}}clearTransform(){this.lastPaintedObject&&(this.lastPaintedObject.rotation&&this.ctx.restore(),this.lastPaintedObject=void 0)}paint(e,i,n,u,s,r){let f=this.ctx.globalAlpha;if(e instanceof be||e instanceof Ki){if(e.display.rotation){this.ctx.save();let g=n+s/2,S=u+r/2;e.crop&&(g-=e.crop[i*5+1],S-=e.crop[i*5+2]),this.ctx.translate(g,S),this.ctx.rotate(e.display.rotation*Math.PI/180),this.ctx.translate(-g,-S)}if(this.visible.push(e),typeof e.style&&e.style.opacity!=="undefined"){if(!e.style.opacity)return;this.ctx.globalAlpha=e.style.opacity}try{let g=e.__host.canvas,S=this.getCanvasDims();if((g.indices.indexOf(i)===-1||this.invalidated.indexOf(g.canvases[i])!==-1)&&this.schedulePaintToCanvas(g,e,i,Ya({x:n+s/2,y:u+s/2},{x:S.width/2,y:S.height/2})),!this.firstMeaningfulPaint)return;let p=this.hostCache.get(g.canvases[i]);if(p)if(e.crop&&e.cropData){if(e.crop[i*5]){let x=[e.crop[i*5+1]/e.display.scale-e.display.points[i*5+1],e.crop[i*5+2]/e.display.scale-e.display.points[i*5+2],1+(e.crop[i*5+3]-e.crop[i*5+1])/e.display.scale,1+(e.crop[i*5+4]-e.crop[i*5+2])/e.display.scale];x[0]+=e.cropData.x/e.display.scale,x[1]+=e.cropData.y/e.display.scale;let A=e.x*this.lastKnownScale,R=e.y*this.lastKnownScale,w=[n+A,u+R,s,r];w[0]+=A,w[1]+=R,this.ctx.drawImage(p,x[0],x[1],x[2],x[3],w[0],w[1],w[2]+1,w[3]+1)}}else UA?this.ctx.drawImage(p,0,0,e.display.points[i*5+3]-e.display.points[i*5+1],e.display.points[i*5+4]-e.display.points[i*5+2],n,u,s+1,r+1):this.ctx.drawImage(p,0,0,e.display.points[i*5+3]-e.display.points[i*5+1],e.display.points[i*5+4]-e.display.points[i*5+2],n,u,s+Number.MIN_VALUE+.5,r+Number.MIN_VALUE+.5)}catch{}e.display.rotation&&this.ctx.restore()}let m=e instanceof dn&&this.options.box,y=e instanceof Qa&&this.options.polygon;if((m||y)&&!e.props.className&&!e.props.html&&!e.props.href){if(this.visible.push(e),e.props.style){let g=Object.assign({},e.props.style||{},e.hovering?e.props.hoverStyles:{},e.pressing?e.props.pressStyles:{}),S=e.props.relativeStyle?1:s/e.width;typeof g.opacity<"u"&&(this.ctx.globalAlpha=g.opacity);let p=0;typeof g.borderWidth<"u"&&(p=parseInt(g.borderWidth,10)*S);let x=0;typeof g.outlineWidth<"u"&&(x=parseInt(g.outlineWidth,10)*S);let A=0;if(typeof g.outlineOffset<"u"&&(A=parseInt(g.outlineOffset,10)*S),g.borderColor&&(this.ctx.strokeStyle=g.borderColor),g.boxShadow){let R=g.boxShadow.split(/,(?![^(]*\))/);for(let w of R){let T=zS[w]||TS.exec(w)||TS.exec(w);zS[w]=T,T&&(this.ctx.save(),this.ctx.shadowOffsetX=parseInt(T[1])*this.dpi*S,this.ctx.shadowOffsetY=parseInt(T[3])*this.dpi*S,this.ctx.shadowBlur=parseInt(T[5])*this.dpi*S,this.ctx.shadowColor=T[9],this.ctx.fillStyle="rgba(0,0,0,1)",this.ctx.fillRect(n+p,u+p,s,r),this.ctx.restore())}}if(this.ctx.fillStyle=g.backgroundColor||"transparent",this.ctx.lineWidth=p,y){let R=e.shape,w=R.points||[],T=w.length;this.ctx.beginPath();for(let E=0;E<T;E++)this.ctx.lineTo(n+w[E][0]*this.lastKnownScale,u+w[E][1]*this.lastKnownScale);R.open||this.ctx.closePath(),p&&this.ctx.stroke(),R.open||this.ctx.fill()}else p&&this.ctx.strokeRect(n+p/2,u+p/2,s+p,r+p),this.ctx.fillRect(n+p,u+p,s,r);x&&(g.outlineColor&&(this.ctx.strokeStyle=g.outlineColor),this.ctx.lineWidth=x,this.ctx.strokeRect(n-x/2-A,u-x/2-A,s+p*2+x+A*2,r+p*2+x+A*2))}this.ctx.globalAlpha=f}}loadImage(e,i,n,u=!1){if(uf[e]&&uf[e].naturalWidth>0){i(uf[e]);return}try{let s=!1;u||setTimeout(()=>{s||this.loadImage(e,i,n,!0)},3e3);let r=document.createElement("img");r.decoding="auto",r.onload=function(){s=!0,i(r),uf[e]=r,r.onload=null},this.options.crossOrigin&&(r.crossOrigin="anonymous"),r.src=e,r.complete&&r.onload({}),r.width}catch(s){console.log("image error",s),n(s)}}schedulePaintToCanvas(e,i,n,u){this.imagesPending++,e.indices.push(n);let s=`${i.id}--${i.display.scale}-${n}`,r=this.invalidated.indexOf(s);r!==-1&&this.invalidated.splice(r,1),e.canvases[n]=s,i.__host.canvas.loading=!0,this.loadingQueueOrdered=!1,this.loadingQueue.push({id:s,scale:i.display.scale,network:!0,distance:u,task:()=>new Promise(f=>{if(this.visible.indexOf(i)===-1){this.imagesPending--,e.indices.splice(e.indices.indexOf(n),1),f();return}let m=i.getImageUrl(n);this.loadImage(m,y=>{this.loadingQueue.push({id:s,scale:i.display.scale,distance:u,task:()=>new Promise(g=>{this.imageIdsLoaded.includes(s)||(this.imagesLoaded++,this.imageIdsLoaded.push(s)),e.loaded.push(n),e.loaded.length===e.indices.length&&(e.loading=!1);let S=i.display.points.slice(n*5,n*5+5),p=document.createElement("canvas"),x=p.getContext("2d");p.width=S[3]-S[1],p.height=S[4]-S[2],this.hostCache.set(e.canvases[n],p),this.drawCalls.push(()=>{x.drawImage(y,0,0,S[3]-S[1],S[4]-S[2]),g()})})}),f()},y=>{this.imagesPending--,e.indices.splice(e.indices.indexOf(n),1),f()})})})}afterPaintLayer(e,i){}prepareLayer(e,i){if(e.__owner.value)if(e.cropData){let n=this.lastKnownScale*(1/e.display.scale);this.applyTransform(e,i[1],i[2],i[3]-i[1],i[4]-i[2])}else this.applyTransform(e,i[1],i[2],i[3]-i[1],i[4]-i[2]);(!e.__host||!e.__host.canvas)&&(e instanceof be||e instanceof Ki)&&this.createImageHost(e)}finishLayer(){this.lastPaintedObject&&this.clearTransform()}createImageHost(e){e.__host=e.__host?e.__host:{},e.__host.canvas={canvas:void 0,canvases:[],indices:[],loaded:[],loading:!1}}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getViewportBounds(e,i,n){let u=e.getActiveZone();if(u){let s=i[3]-i[1]<u.points[3]-u.points[1],r=i[4]-i[2]<u.points[4]-u.points[2];return{x1:s?u.points[1]-n:u.points[1]+(u.points[3]-u.points[1])/2-(i[3]-i[1])/2,y1:r?u.points[2]-n:u.points[2]+(u.points[4]-u.points[2])/2-(i[4]-i[2])/2,x2:s?u.points[3]+n:u.points[1]+(u.points[3]-u.points[1])/2-(i[3]-i[1])/2,y2:r?u.points[4]+n:u.points[2]+(u.points[4]-u.points[2])/2-(i[4]-i[2])/2}}return null}pendingUpdate(){let e=!this.pendingDrawCall&&this.drawCalls.length===0&&this.imagesPending===0&&this.loadingQueue.length===0&&this.tasksRunning===0;return!e&&this.visible.length===0&&setTimeout(()=>{this.canvas.style.opacity="1",this.firstMeaningfulPaint=!0},500),!this.firstMeaningfulPaint&&e&&this.visible.length?(this.canvas.style.opacity="1",this.firstMeaningfulPaint=e,!0):this.options.debug?!0:!e}getRendererScreenPosition(){return this.rendererPosition}reset(){this.loadingQueue=[],this.drawCalls=[]}};var Xa=class{constructor(e){b(this,"renderers",[]);b(this,"length");for(let i of e)i&&this.renderers.push(i);this.length=this.renderers.length}afterFrame(e,i,n,u){for(let s=0;s<this.length;s++)this.renderers[s].afterFrame(e,i,n,u)}afterPaintLayer(e,i){for(let n=0;n<this.length;n++)this.renderers[n].afterPaintLayer(e,i)}beforeFrame(e,i,n,u){for(let s=0;s<this.length;s++)this.renderers[s].beforeFrame(e,i,n,u)}triggerResize(){for(let e=0;e<this.length;e++){let i=this.renderers[e];i.triggerResize&&i.triggerResize()}}getPointsAt(e,i,n,u){return this.renderers[0].getPointsAt(e,i,n,u)}getScale(e,i){return this.renderers[0].getScale(e,i)}getViewportBounds(e,i,n){return this.renderers[0].getViewportBounds(e,i,n)}getRendererScreenPosition(){return this.renderers[0].getRendererScreenPosition()}isReady(){for(let e=0;e<this.length;e++)if(!this.renderers[e].isReady())return!1;return!0}paint(e,i,n,u,s,r){for(let f=0;f<this.length;f++)this.renderers[f].paint(e,i,n,u,s,r)}pendingUpdate(){for(let e=0;e<this.length;e++)if(this.renderers[e].pendingUpdate())return!0;return!1}prepareLayer(e,i){for(let n=0;n<this.length;n++)this.renderers[n].prepareLayer(e,i)}finishLayer(e,i){for(let n=0;n<this.length;n++)this.renderers[n].finishLayer(e,i)}resize(e,i){for(let n=0;n<this.length;n++)this.renderers[n].resize(e,i)}reset(){for(let e=0;e<this.length;e++)this.renderers[e].reset()}};var Do=class{constructor(e){b(this,"canvas");b(this,"context");b(this,"heightRatio",1);b(this,"widthRatio",1);b(this,"target",new Float32Array(5));b(this,"initialWidth");b(this,"initialHeight");b(this,"bounds");b(this,"aggregate");b(this,"delta",0);b(this,"renderNextFrame",!0);this.canvas=e,this.initialWidth=e.width,this.initialHeight=e.height,this.context=e.getContext("2d"),this.context.globalAlpha=.5,this.aggregate=_i(1)}isReady(){return!0}resize(){this.initialWidth=this.canvas.width,this.initialHeight=this.canvas.height,this.renderNextFrame=!0}afterFrame(e,i,n){if(this.renderNextFrame){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let u=this.initialWidth/e.width,s=this.initialHeight/e.height,r=this.widthRatio>this.heightRatio?u:s;if(this.target=n,this.bounds){let f=e.getPointsAt(this.bounds,this.aggregate,r);for(let[m,y]of f)if(m instanceof be&&m.__host.canvas){let g=y.length/5;for(let S=0;S<g;S++)if(m.__host.canvas.canvases[S]){let x={x1:y[S+1]*r,y1:y[S+2]*r,width:(y[S+3]-y[S+1])*r,height:(y[S+4]-y[S+2])*r}}}}e.getPoints().forEach((f,m,y)=>{if(m%5===0&&f){let g={x1:y[m+1]*r,y1:y[m+2]*r,x2:y[m+3]*r,y2:y[m+4]*r,width:(y[m+3]-y[m+1])*r,height:(y[m+4]-y[m+2])*r};this.context.strokeStyle="red",this.context.strokeRect(g.x1,g.y1,g.width,g.height)}}),n&&(this.context.strokeStyle="red",this.context.lineWidth=window.devicePixelRatio||1,this.context.strokeRect(n[1]*r,n[2]*r,(n[3]-n[1])*r,(n[4]-n[2])*r))}}getActiveZone(e){return null}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getScale(e,i){return 1}beforeFrame(e,i){this.bounds=et.singleBox(e.width,e.height)}drawImage(){}afterPaintLayer(e,i){}paint(e,i,n,u,s,r){this.renderNextFrame=!0}prepareLayer(e){}pendingUpdate(){return!1}hasActiveZone(){return!1}getViewportBounds(e,i,n){return null}getRendererScreenPosition(){return this.canvas.getBoundingClientRect()}finishLayer(){}reset(){}};var Im=class{constructor(){b(this,"autoWidth",!1);b(this,"autoHeight",!0);b(this,"width");b(this,"height");b(this,"world");b(this,"content",[]);b(this,"viewingDirection","left-to-right");b(this,"rows");b(this,"columns",4);b(this,"spacing",20);b(this,"reversed",!1);b(this,"padding",20);this.world=Ji.withProps({width:0,height:0,viewingDirection:"left-to-right"}),this.width=0,this.height=0}setViewingDirection(e){this.viewingDirection=e}addContent(e){this.content.push(...e.map(i=>this.world.addObjectAt(i,{width:0,height:0,x:0,y:0})))}setWidth(e){this.width=e}setHeight(e){this.height=e}setSpacing(e){this.spacing=e}setPadding(e){this.padding=e}setRows(e){this.autoWidth=!0,this.rows=e}setColumns(e){this.autoHeight=!0,this.columns=e}recalculate(){if(this.height===0&&this.width===0||this.rows===0||this.columns===0)return;if(this.autoHeight&&!this.width)throw new Error("Cannot set auto height without setting a width");if(this.autoWidth&&!this.height)throw new Error("Cannot set auto width without setting a height");(this.viewingDirection==="left-to-right"||this.viewingDirection==="top-to-bottom")&&this.reversed&&(this.reversed=!1,this.content.reverse()),(this.viewingDirection==="right-to-left"||this.viewingDirection==="bottom-to-top")&&!this.reversed&&(this.reversed=!0,this.content.reverse());let e=this.content.length,i=()=>{if(this.autoWidth&&this.rows){let f=e>this.rows?this.rows:e;return{columns:Math.ceil(e/f),rows:f}}if(this.autoHeight&&this.columns){let f=e>this.columns?this.columns:e;return{columns:f,rows:Math.ceil(e/f)}}throw new Error("Something went wrong.")},{columns:n,rows:u}=i(),s=this.autoWidth?-1:this.width-this.padding*2,r=this.autoWidth?-1:(s-this.spacing*(n-1))/n;if(this.autoHeight&&!this.autoWidth){let f=0,m=this.padding;for(let y=0;y<u&&f!==e;y++){let g=0,S=[];for(let p=0;p<n;p++){let x=this.reversed?e-f:f;if(f===e)break;let A=this.content[x],R=A.width,w=A.width/A.height,T=r/w;S.push([f,r,T,r/R]),T>g&&(g=T),f++}for(let p=0;p<n&&S[p];p++){let x=this.world.getPoints(),A=S[p][0],R=S[p][1],w=S[p][2],T=S[p][3],E=this.padding+p*(this.spacing+R),z=m+(g-w)/2,O=this.reversed?e-A:A,H=x[O*5+1],q=x[O*5+2];this.world.scaleWorldObject(A,T),(H!==E||q!==z)&&this.world.translateWorldObject(O,E-H,z-q)}m+=g+this.spacing}this.height=m+this.padding,this.world.resize(this.width,this.height);return}this.autoWidth&&this.autoHeight,!this.autoWidth&&this.autoHeight}getWorld(){return this.world}};var WS=F(ZS(),1);function KS(t){return{x:t[1],y:t[2],width:t[3]-t[1],height:t[4]-t[2]}}var JS="pan",FS="scroll",qA="gesture",PS={zoomOutFactor:.8,zoomInFactor:1.25,maxZoomFactor:1,minZoomFactor:.05,zoomDuration:300,zoomWheelConstant:20,zoomClamp:.6,panBounceStiffness:120,panBounceDamping:15,panTimeConstant:240,panPower:.1,nudgeDistance:100,panPadding:0,devicePixelRatio:1,enableWheel:!0,enableClickToZoom:!0,ignoreSingleFingerTouch:!1,enablePanOnWait:!1,requireMetaKeyForWheelZoom:!1,panOnWaitDelay:40,onPanInSketchMode:()=>{},parentElement:null},Ho=(t={})=>({start:function(e){let{zoomWheelConstant:i,enableWheel:n,enableClickToZoom:u,ignoreSingleFingerTouch:s,enablePanOnWait:r,panOnWaitDelay:f,parentElement:m,requireMetaKeyForWheelZoom:y}={...PS,...t},g={pointerStart:{x:0,y:0},isPressing:!1,mousemoveBuffer:Z(5),multiTouch:{distance:0}};e.world.activatedEvents.push("onMouseUp","onMouseDown","onMouseMove","onTouchStart","onTouchEnd","onTouchMove","onContextMenu");function S(){R=0,T="",z(),z(void 0,"notice"),w=0}function p(){e.world.constraintBounds(),S()}function x(B){if(B.which>1){g.isPressing=!1;return}e.mode==="explore"&&(B.preventDefault(),g.pointerStart.x=B.atlas.x,g.pointerStart.y=B.atlas.y,e.transitionManager.stopTransition(),g.isPressing=!0)}function A(){S(),g.isPressing&&(e.mode==="explore"&&e.world.constraintBounds(),g.isPressing=!1)}let R=0,w=0,T="";function E(B){if(e.mode==="explore"){if(B.atlasTouches.length===1&&(w=performance.now(),s==!1&&B.preventDefault(),g.pointerStart.x=B.atlasTouches[0].x,g.pointerStart.y=B.atlasTouches[0].y),B.atlasTouches.length===2){T=qA,B.preventDefault();let I=B.atlasTouches[0].x,ht=B.atlasTouches[1].x;g.pointerStart.x=(I+ht)/2;let qn=B.atlasTouches[0].y,At=B.atlasTouches[1].y;g.pointerStart.y=(qn+At)/2,R=Ya({x:B.touches[0].clientX,y:B.touches[0].clientY},{x:B.touches[1].clientX,y:B.touches[1].clientY})}e.transitionManager.stopTransition(),g.isPressing=!0}}function z(B,I="intent"){m&&(m.dataset[I]=B)}function O(B){let I=null,ht=null,qn=!1,At=0;if(g.isPressing&&B.touches.length===2){let ei=B.touches[0].clientX,Qe=B.touches[1].clientX;I=(ei+Qe)/2;let Gn=B.touches[0].clientY,ue=B.touches[1].clientY;ht=(Gn+ue)/2,At=Ya({x:B.touches[0].clientX,y:B.touches[0].clientY},{x:B.touches[1].clientX,y:B.touches[1].clientY}),qn=!0}if(z(T),g.isPressing&&B.touches.length===1){if(r&&(performance.now()-w<f&&T==""&&(T=FS),T==""&&(T=JS)),z(T),T==""&&s==!0||T==FS){z("require-two-finger","notice");return}let ei=B.touches[0];I=ei.clientX,ht=ei.clientY}if(I!==null&&ht!==null){let ei=e.getRendererScreenPosition();if(ei){let{x:Qe,y:Gn}=e.viewerToWorld(I-ei.x,ht-ei.y),ue=At&&R?At/R:1;e.transitionManager.customTransition(ye=>{ye.from=Z(e.target),ye.to=Ai(ye.from,ui(Kt(g.pointerStart.x-Qe,g.pointerStart.y-Gn),el(1/ue,Qe,Gn)),g.mousemoveBuffer),ye.elapsed_time=0,ye.total_time=0,ye.timingFunction=mn.easeInOutExpo,ye.done=!1})}R=At}T==JS&&B.preventDefault()}function H(B){if(g.isPressing){let I=e.getRendererScreenPosition();if(I){let{x:ht,y:qn}=e.viewerToWorld(B.clientX-I.x,B.clientY-I.y);e.transitionManager.customTransition(At=>{At.from=Z(e.target),At.to=Ai(At.from,Kt(g.pointerStart.x-ht,g.pointerStart.y-qn),g.mousemoveBuffer),At.elapsed_time=0,At.total_time=0,At.timingFunction=mn.easeInOutExpo,At.done=!1})}}}function q(B){e.mode==="explore"&&e.world.zoomIn(B.atlas)}function L(B){let ht=1+(0,WS.default)(B).spinY/i;e.world.zoomTo(ht,B.atlas,!0)}function G(B){return y&&B.metaKey==!1?(z("meta-required","notice"),B.stopPropagation(),!1):!0}e.world.addEventListener("mouseup",p),e.world.addEventListener("touchend",p),e.world.addEventListener("touchstart",E),e.world.addEventListener("mousedown",x),window.addEventListener("touchend",A),window.addEventListener("mouseup",A),window.addEventListener("mousemove",H),m&&m.addEventListener("touchmove",O),u&&(e.world.activatedEvents.push("onClick"),e.world.addEventListener("click",q)),n&&(e.world.activatedEvents.push("onWheel"),y&&m?.addEventListener("wheel",G,{passive:!0,capture:!0}),e.world.addEventListener("wheel",L));let J=e.world.addLayoutSubscriber((B,I)=>{if(B==="zone-changed"&&e.transitionManager.constrainBounds({transition:{duration:0}}),B==="zoom-to"&&I&&e.transitionManager.zoomTo(I.factor,{origin:I.point,stream:I.stream}),B==="go-home"){let ht=I.immediate?{duration:0}:void 0;e.transitionManager.goToRegion(KS(e.homePosition),{transition:ht})}if(B==="goto-region"&&I){let ht=I.immediate?{duration:0}:{};e.transitionManager.goToRegion(I,{transition:ht})}B==="constrain-bounds"&&e.transitionManager.constrainBounds({transition:I?.immediate?{duration:0}:void 0})});return()=>{e.world.removeEventListener("mouseup",p),e.world.removeEventListener("touchend",p),e.world.removeEventListener("touchstart",E),e.world.removeEventListener("mousedown",x),window.removeEventListener("touchend",A),window.removeEventListener("mouseup",A),e.world.removeEventListener("mousemove",H),m&&(m.removeEventListener("touchmove",H),m.removeEventListener("wheel",G,{passive:!0,capture:!0})),u&&e.world.removeEventListener("click",q),n&&e.world.removeEventListener("wheel",L),J()}},updatePosition(){}});var jt=F(vt(),1);var df=F(vt(),1),hb=F(Ft(),1),An=df.default.createContext("explore");An.displayName="Mode";var Uo=()=>(0,df.useContext)(An);function l4(t){return(0,hb.jsx)(An.Provider,{value:t.mode,children:t.children})}var Oi=F(vt(),1);function db(t,e){let i;return(...n)=>{window.clearTimeout(i),i=window.setTimeout(()=>t(...n),e)}}function mf({debounce:t,scroll:e,polyfill:i,offsetSize:n}={debounce:0,scroll:!1,offsetSize:!1}){let u=i||(typeof window>"u"?class{}:window.ResizeObserver);if(!u)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[s,r]=(0,Oi.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,Oi.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s,orientationHandler:null}),m=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,g=(0,Oi.useRef)(!1);(0,Oi.useEffect)(()=>(g.current=!0,()=>void(g.current=!1)));let[S,p,x]=(0,Oi.useMemo)(()=>{let T=()=>{if(!f.current.element)return;let{left:E,top:z,width:O,height:H,bottom:q,right:L,x:G,y:J}=f.current.element.getBoundingClientRect(),B={left:E,top:z,width:O,height:H,bottom:q,right:L,x:G,y:J};f.current.element instanceof HTMLElement&&n&&(B.height=f.current.element.offsetHeight,B.width=f.current.element.offsetWidth),Object.freeze(B),g.current&&!o4(f.current.lastBounds,B)&&r(f.current.lastBounds=B)};return[T,y?db(T,y):T,m?db(T,m):T]},[r,n,m,y]);function A(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(T=>T.removeEventListener("scroll",x,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null),f.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",f.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",f.current.orientationHandler))}function R(){f.current.element&&(f.current.resizeObserver=new u(x),f.current.resizeObserver.observe(f.current.element),e&&f.current.scrollContainers&&f.current.scrollContainers.forEach(T=>T.addEventListener("scroll",x,{capture:!0,passive:!0})),f.current.orientationHandler=()=>{x()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",f.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",f.current.orientationHandler))}let w=T=>{!T||T===f.current.element||(A(),f.current.element=T,f.current.scrollContainers=mb(T),R())};return u4(x,!!e),a4(p),(0,Oi.useEffect)(()=>{A(),R()},[e,x,p]),(0,Oi.useEffect)(()=>A,[]),[w,s,S]}function a4(t){(0,Oi.useEffect)(()=>{let e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function u4(t,e){(0,Oi.useEffect)(()=>{if(e){let i=t;return window.addEventListener("scroll",i,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",i,!0)}},[t,e])}function mb(t){let e=[];if(!t||t===document.body)return e;let{overflow:i,overflowX:n,overflowY:u}=window.getComputedStyle(t);return[i,n,u].some(s=>s==="auto"||s==="scroll")&&e.push(t),[...e,...mb(t.parentElement)]}var s4=["x","y","top","bottom","left","right","width","height"],o4=(t,e)=>s4.every(i=>t[i]===e[i]);var dg=F(vt(),1),On=dg.default.createContext(null);On.displayName="Atlas";var Zl=dg.default.createContext(null);Zl.displayName="Bounds";var Cn=F(vt(),1);var Db=F(Mb(),1);var qo,r4=typeof performance=="object"&&typeof performance.now=="function";if(r4){let t=performance;qo=()=>t.now()}else{let t=Date,e=t.now();qo=()=>t.now()-e}var Hb=F(vt(),1);var f4=8,Cb=32,h4=2;var Ub=0;function Rb(t,e){t&&t.appendChild&&e&&t.appendChild(e)}function Bb(t,e){t&&t.removeChild&&e&&t.removeChild(e)}function d4(t,e){return Bb(t.world,e)}function m4(t,e,i){return wb(t.world,e,i)}function wb(t,e,i){t&&t instanceof _n&&(t=t.world),t&&t.insertBefore&&t.insertBefore(e,i)}function Tg(t,e,i){if(i&&(t.applyProps&&t.applyProps(i),t instanceof It))for(let n of Ku){let u=n.slice(2).toLowerCase();i[n]!==e[n]&&(e[n]&&t.removeEventListener(u,e[n]),t.addEventListener(u,i[n]))}}function zg(t,e){let i=Object.keys(e),n=!1;for(let u of i)if(Ku.indexOf(u)!==-1){let s=hn[u];if(s){if(t.activatedEvents.indexOf(s)!==-1)continue;n=!0,t.activatedEvents.push(s)}}n&&t.triggerEventActivation()}var Sf=new Map,Nb={};function g4(t,{args:e=[],...i},n,u,s){if(!(n instanceof _n)&&s){let m=y=>y.return?m(y.return):y.stateNode&&y.stateNode.containerInfo;n=m(s)}let r,f=n.world;switch(t){case"world":r=Ji.withProps({width:i.width,height:i.height,viewingDirection:"left-to-right"}),r.activatedEvents=f.activatedEvents,r.eventHandlers=f.eventHandlers,r.subscriptions=f.subscriptions,r.triggerEventActivation(),f=r;break;case"box":r=new dn;break;case"shape":r=new Qa;break;case"worldObject":case"world-object":r=new zn;break;case"worldImage":case"world-image":r=new be;break;case"texture":r=new Xl;break;case"compositeImage":case"composite-image":r=new Ao({id:i.id,width:i.width,height:i.height,images:[],renderOptions:i.renderOptions});break;case"tiledImage":case"tiled-image":r=Ki.fromTile(i.uri,i.display,i.tile,i.scaleFactor,void 0,i.format,i.useFloorCalc,i.version3);break;case"paragraph":r=new il,r.text=i.children;break;default:return}return zg(f,i),Tg(r,{},i),r}function y4(t,e){if(e instanceof Ji)t.world=e;else if(e instanceof zn)t.world.appendChild(e);else if(e)throw new Error("Invalid root")}var pf=Ub,Go=(0,Db.default)({unstable_now:qo,now:qo,createInstance:g4,removeChild:Bb,appendChild:Rb,appendInitialChild:Rb,insertBefore:wb,warnsIfNotActing:!0,supportsMutation:!0,isPrimaryRenderer:!1,scheduleTimeout:typeof setTimeout<"u"?setTimeout:void 0,cancelTimeout:typeof clearTimeout<"u"?clearTimeout:void 0,setTimeout:typeof setTimeout<"u"?setTimeout:void 0,clearTimeout:typeof clearTimeout<"u"?clearTimeout:void 0,noTimeout:-1,appendChildToContainer:y4,removeChildFromContainer:d4,createTextInstance(){},insertInContainerBefore:m4,prepareUpdate(t,e,i,n,u){return zg(u.world,n),n},commitUpdate(t,e,i,n,u,s){let r=e,f=i;typeof f=="string"&&(r=i,f=i),t.applyProps&&f&&Tg(t,n,f)},finalizeInitialChildren(t){return t?.__handlers},getChildHostContext(){return Nb},getRootHostContext(){return Nb},prepareForCommit(t){return t.isCommitting=!0,null},preparePortalMount(){},hideInstance(t){t&&t.points&&(t.points[0]=0)},unhideInstance(t,e){t&&t.points&&(t.points[0]=1)},getPublicInstance(t){return t},hideTextInstance(){throw new Error("Text is not allowed in the react-three-fibre tree. You may have extraneous whitespace between components.")},resetAfterCommit(t){t.isCommitting=!1,t.pendingUpdate=!0,t.world&&t.world.needsRecalculate&&(t.world.recalculateWorldSize(),t.world.triggerRepaint())},shouldSetTextContent(){return!1},clearContainer(){return!1},supportsHydration:!1,supportsPersistence:!1,detachDeletedInstance(t){},afterActiveInstanceBlur(){},beforeActiveInstanceBlur(){},getCurrentEventPriority(){return Cb},getInstanceFromNode(t){throw new Error("Not implemented")},getInstanceFromScope(t){throw new Error("Not implemented")},prepareScopeUpdate(t,e){throw new Error("Not implemented")},logRecoverableError(){},requestPostPaintCallback(){},rendererPackageName:"@atlas-viewer/atlas",rendererVersion:Hb.version,shouldAttemptEagerTransition:()=>!1,trackSchedulerEvent:()=>{},resolveEventType:()=>null,resolveEventTimeStamp:()=>-1.1,maySuspendCommit:()=>!1,preloadInstance:()=>!0,startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady:()=>null,NotPendingTransition:null,setCurrentUpdatePriority(t){pf=t},getCurrentUpdatePriority(){return pf},resolveUpdatePriority(){if(pf!==Ub)return pf;switch(typeof window<"u"&&window.event?.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return h4;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return f4;default:return Cb}},resetFormInstance(){}});Go.injectIntoDevTools();function $u(t,e){let i=Sf.get(t);i&&Go.updateContainer(null,i,null,()=>{Sf.delete(t),e&&e(t)})}var ts={render(t,e){let i=Sf.get(e);if(i)Go.updateContainer(t,i,null);else{let n=Go.createContainer(e,0,null,!1,null,"",()=>{},null);Go.updateContainer(t,n,null),Sf.set(e,n)}},unmountComponentAtNode(t,e){$u(t,e)}};var bf=F(vt(),1),Mi=typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")?bf.useLayoutEffect:bf.useEffect;var es=F(Ft(),1),jb=Cn.default.memo(({children:t,setIsReady:e,onCreated:i,bounds:n,preset:u,mode:s="explore"})=>{let r=(0,Cn.useCallback)(function(m){let y=(0,Cn.useRef)(!1),g=()=>{e(!0)};return(0,Cn.useEffect)(()=>{if(u&&!y.current){u.runtime.goHome();let S=i&&i(u);return void(S&&S.then?S.then(g):g())}return()=>{}},[]),(0,Cn.useEffect)(()=>{y.current=!0},[]),m.children},[u]);return Mi(()=>{if(u){let f=u.runtime;s!==f.mode&&(f.mode=s),ts.render((0,es.jsx)(Cn.default.StrictMode,{children:(0,es.jsx)(r,{children:(0,es.jsx)(Zl.Provider,{value:n,children:(0,es.jsx)(An.Provider,{value:s,children:(0,es.jsx)(On.Provider,{value:u,children:t})})})})}),f)}},[u,s,t]),Mi(()=>{if(u){let f=u.runtime;return()=>{ts.unmountComponentAtNode(f)}}return()=>{}},[u]),null});var Yo=class{constructor(e,i){b(this,"canvas");b(this,"gl");b(this,"program");b(this,"fragmentShader");b(this,"vertexShader");b(this,"rectBuffer");b(this,"fragmentShaderSource",`
|
|
21
|
-
precision mediump float;
|
|
22
|
-
|
|
23
|
-
uniform sampler2D u_image;
|
|
24
|
-
varying vec2 v_texCoord;
|
|
25
|
-
|
|
26
|
-
void main() {
|
|
27
|
-
gl_FragColor = texture2D(u_image, v_texCoord);
|
|
28
|
-
}
|
|
29
|
-
`);b(this,"vertexShaderSource",`
|
|
30
|
-
attribute vec2 a_position;
|
|
31
|
-
uniform vec2 u_resolution;
|
|
32
|
-
varying vec4 v_color;
|
|
33
|
-
uniform sampler2D u_texture;
|
|
34
|
-
|
|
35
|
-
attribute vec2 a_texCoord;
|
|
36
|
-
varying vec2 v_texCoord;
|
|
37
|
-
|
|
38
|
-
void main() {
|
|
39
|
-
|
|
40
|
-
// convert the position from pixels to 0.0 to 1.0
|
|
41
|
-
vec2 zeroToOne = a_position / u_resolution;
|
|
42
|
-
|
|
43
|
-
// convert from 0->1 to 0->2
|
|
44
|
-
vec2 zeroToTwo = zeroToOne * 2.0;
|
|
45
|
-
|
|
46
|
-
// convert from 0->2 to -1->+1 (clip space)
|
|
47
|
-
vec2 clipSpace = zeroToTwo - 1.0;
|
|
48
|
-
|
|
49
|
-
gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);
|
|
50
|
-
|
|
51
|
-
v_texCoord = a_texCoord;
|
|
52
|
-
}
|
|
53
|
-
`);b(this,"attributes");b(this,"uniforms");b(this,"buffers");b(this,"rendererPosition");b(this,"dpi");b(this,"lastResize",0);b(this,"lastKnownScale",1);this.canvas=e,this.rendererPosition=e.getBoundingClientRect(),this.gl=e.getContext("webgl2"),this.fragmentShader=this.createShader(this.gl.FRAGMENT_SHADER,this.fragmentShaderSource),this.vertexShader=this.createShader(this.gl.VERTEX_SHADER,this.vertexShaderSource),this.program=this.createProgram(this.vertexShader,this.fragmentShader),this.dpi=i?.dpi||1,this.attributes={position:this.gl.getAttribLocation(this.program,"a_position"),texCoord:this.gl.getAttribLocation(this.program,"a_texCoord")},this.uniforms={resolution:this.gl.getUniformLocation(this.program,"u_resolution"),texture:this.gl.getUniformLocation(this.program,"u_texture")},this.buffers={position:this.createArrayBuffer(),texCoord:this.createArrayBuffer(new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]))},this.rectBuffer=new Float32Array(12),this.resize(),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.useProgram(this.program),this.gl.enableVertexAttribArray(this.attributes.position)}resize(){this.resizeCanvasToDisplaySize(),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.rendererPosition=this.canvas.getBoundingClientRect()}isReady(){return!0}beforeFrame(e,i,n){this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.vertexAttribPointer(this.attributes.position,2,this.gl.FLOAT,!1,0,0),this.gl.uniform2f(this.uniforms.resolution,this.gl.canvas.width,this.gl.canvas.height),this.lastResize>1e3&&(this.lastResize=0,this.resizeCanvasToDisplaySize()),this.lastResize+=i}prepareLayer(e){(!e.__host||!e.__host.webgl)&&((e instanceof be||e instanceof Ki)&&this.createImageHost(e),e instanceof Xl&&this.createTextureHost(e))}createTextureHost(e){e.__host=e.__host?e.__host:{};let i=this.gl,n=this.gl.createTexture();i.bindTexture(i.TEXTURE_2D,n),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1);let u;if(e instanceof Xl){let s=e.getTexture();s.source&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,s.source),u=s}i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),e.__host.webgl={height:e.height,width:e.width,texture:n,lastImage:u}}createImageHost(e){let i=[...new Array(e.points.length/5)];e.__host=e.__host?e.__host:{},e.__host.webgl={height:e.height,width:e.width,textures:i,loading:[],loaded:[],lastLevelRendered:-1,onLoad:(n,u)=>{let s=this.gl,r=this.gl.createTexture();s.bindTexture(s.TEXTURE_2D,r),s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL,!1),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,u),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.bindTexture(s.TEXTURE_2D,null),e.__host.webgl.textures[n]=r,e.__host.webgl.loaded.push(n)}}}paint(e,i,n,u,s,r){if(e.type==="spacial-content"&&e.__host&&e.__host.webgl){if(e.getTexture){let m=e?.getTexture();if(m&&e.__host.webgl.lastImage!==m.hash&&m.source&&!e.__host.webgl.error)try{let g=this.gl.RGBA,S=this.gl.RGBA,p=this.gl.UNSIGNED_BYTE;this.gl.bindTexture(this.gl.TEXTURE_2D,e.__host.webgl.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,g,S,p,m.source),e.__host.webgl.lastImage=m.hash}catch(y){e.__host.webgl.error=y}}if(e.__host.webgl.loading&&e.__host.webgl.loading.indexOf(i)===-1&&e.getImageUrl){e.__host.webgl.loading.push(i);let m=document.createElement("img");m.decoding="async",m.crossOrigin="anonymous",m.src=e.getImageUrl(i),m.onload=()=>(m.onload=null,e.__host.webgl.onLoad(i,m))}let f=e.__host.webgl.texture?e.__host.webgl.texture:e.__host.webgl.textures[i];f&&(this.gl.enableVertexAttribArray(this.attributes.texCoord),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffers.texCoord),this.gl.enableVertexAttribArray(this.attributes.texCoord),this.gl.vertexAttribPointer(this.attributes.texCoord,2,this.gl.FLOAT,!1,0,0),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffers.position),this.gl.enableVertexAttribArray(this.attributes.position),this.gl.vertexAttribPointer(this.attributes.position,2,this.gl.FLOAT,!1,0,0),this.gl.bindTexture(this.gl.TEXTURE_2D,f),this.gl.uniform1i(this.uniforms.texture,0),this.setRectangle(n,u,s,r),this.gl.drawArrays(this.gl.TRIANGLES,0,6))}}afterPaintLayer(e,i){}pendingUpdate(){return!0}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}afterFrame(){}getScale(e,i,n){if(Number.isNaN(e)||Number.isNaN(i))return this.lastKnownScale;let u=this.getCanvasDims(),s=u.width/e,r=u.height/i,f=(s<r?r:s)*(n&&this.dpi||1);return Number.isNaN(f)||(this.lastKnownScale=f),this.lastKnownScale}getCanvasDims(){return{width:this.canvas.width/this.dpi,height:this.canvas.height/this.dpi}}getViewportBounds(e,i,n){return null}createShader(e,i){let n=this.gl.createShader(e);if(n){if(this.gl.shaderSource(n,i),this.gl.compileShader(n),this.gl.getShaderParameter(n,this.gl.COMPILE_STATUS))return n;let s=this.gl.getShaderInfoLog(n);if(this.gl.deleteShader(n),s)throw new Error(s)}throw new Error("Invalid shader")}createProgram(e,i){let n=this.gl.createProgram();if(n){if(this.gl.attachShader(n,e),this.gl.attachShader(n,i),this.gl.linkProgram(n),this.gl.getProgramParameter(n,this.gl.LINK_STATUS))return n;let s=this.gl.getProgramInfoLog(n);if(this.gl.deleteProgram(n),s)throw new Error(s)}throw new Error("Invalid program")}resizeCanvasToDisplaySize(){let e=this.gl.canvas,i=e.clientWidth,n=e.clientHeight,u=e.width!==i||e.height!==n;return u&&(e.width=i,e.height=n),u}createArrayBuffer(e){let i=this.gl.createBuffer();if(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,i),e&&this.gl.bufferData(this.gl.ARRAY_BUFFER,e,this.gl.STATIC_DRAW),!i)throw new Error("Cannot create buffer");return i}setRectangle(e,i,n,u){this.gl.bufferData(this.gl.ARRAY_BUFFER,this.getRectangle(e,i,n,u),this.gl.STATIC_DRAW)}getRectangle(e,i,n,u){let s=e,r=e+n,f=i,m=i+u;return this.rectBuffer.set([s,f,r,f,s,m,s,m,r,f,r,m]),this.rectBuffer}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}};function Qo(t,e){let i=e?t:JSON.stringify(t),n=5381,u=i.length;for(;u;)n=n*33^i.charCodeAt(--u);let r=(n>>>0).toString(16);return r.length%2?"0"+r:r}var is=class{constructor(e){b(this,"$element");b(this,"stylesheetClasses");b(this,"activeStylesheetClasses");b(this,"sheetsDidUpdate");b(this,"sheetPrefix");b(this,"stylesheetEntries");this.sheetPrefix=e?.sheetPrefix||"a-",this.$element=document.createElement("style"),this.stylesheetClasses=[],this.activeStylesheetClasses=[],this.sheetsDidUpdate=!1,this.stylesheetEntries={}}getElement(){return this.$element}addStylesheet(e){let i=e.replace(/\s\s+/g," ").replace(/: /g,":").replace(/; /g,";").trim(),n=this.sheetPrefix+Qo(i,!0);return this.stylesheetClasses.indexOf(n)!==-1||(this.stylesheetClasses.push(n),this.activeStylesheetClasses.push(n),this.stylesheetEntries[n]=i,this.sheetsDidUpdate=!0),n}removeStylesheet(e){let i=this.sheetPrefix+Qo(e,!0);this.stylesheetClasses.indexOf(i)&&(this.stylesheetClasses=this.stylesheetClasses.filter(n=>n!==i)),this.sheetsDidUpdate=!0}clearClasses(){this.activeStylesheetClasses=[]}didUpdateActive(){if(this.activeStylesheetClasses.length){for(let e of this.activeStylesheetClasses)if(this.stylesheetClasses.indexOf(e)===-1)return!0;for(let e of this.stylesheetClasses)if(this.activeStylesheetClasses.indexOf(e)===-1)return!0}return!1}updateSheet(){(this.sheetsDidUpdate||this.didUpdateActive())&&(this.$element.innerText=this.activeStylesheetClasses.map(e=>`.${e}{${this.stylesheetEntries[e]}}`).join(""),this.sheetsDidUpdate=!1,this.stylesheetClasses=[...this.activeStylesheetClasses])}};var Za=class{constructor(e,i){b(this,"htmlContainer");b(this,"visible",[]);b(this,"previousVisible",[]);b(this,"htmlIds",[]);b(this,"firstMeaningfulPaint",!1);b(this,"rendererPosition");b(this,"stylesheet");b(this,"options");b(this,"paintTx",1);b(this,"zIndex",0);b(this,"classes");this.htmlContainer=e,this.htmlContainer.innerHTML="",this.rendererPosition=this.htmlContainer.getBoundingClientRect(),this.options={triggerResize:()=>{},box:!1,text:!1,sheetPrefix:"",inlineStyles:!1,background:"",...i||{}},this.stylesheet=new is({sheetPrefix:this.options.sheetPrefix}),this.options.inlineStyles||this.htmlContainer.appendChild(this.stylesheet.getElement()),this.options.background&&this.htmlContainer.classList.add(this.stylesheet.addStylesheet(`
|
|
54
|
-
background: ${this.options.background};
|
|
55
|
-
`)),this.classes={hostClassName:this.stylesheet.addStylesheet(`
|
|
56
|
-
position: absolute;
|
|
57
|
-
transform-origin: 0px 0px;
|
|
58
|
-
`),interactive:this.stylesheet.addStylesheet("pointer-events: all"),nonInteractive:this.stylesheet.addStylesheet("pointer-events: none")},this.stylesheet.updateSheet()}createHtmlHost(e){if(this.htmlContainer&&(this.options.box||e.props.className||e.props.html||e.props.href)){let i=document.createElement(e.props.href?"a":"div");if(e.props.href){i.style.display="block",i.href=e.props.href;let n=e.props.hrefTarget||"_blank";i.target=n,n!=="_self"&&(i.rel="noopener noreferrer")}i.title=e.props.title||"",this.options.inlineStyles?(i.style.display="block",i.style.position="absolute",i.style.overflow="hidden",i.style.transformOrigin="0px 0px"):i.classList.add(this.classes.hostClassName),e.__host={element:i,revision:null,relative:!1},this.updateHtmlHost(e,e.width,e.height),e.__onCreate&&e.__onCreate()}}triggerResize(){this.options.triggerResize()}updateHtmlHost(e,i,n){if(e.__revision!==e.__host.revision){let u=e.__host.element,s=[this.classes.hostClassName];if(e.props.interactive?this.options.inlineStyles?u.style.pointerEvents="all":s.push(this.classes.interactive):this.options.inlineStyles?u.style.pointerEvents="none":s.push(this.classes.nonInteractive),e.props.href){u.style.display="block",u.href=e.props.href;let m=e.props.hrefTarget||"_blank";u.target=m,m!=="_self"?u.rel="noopener noreferrer":u.rel=""}else u.href&&u.removeAttribute("href");if(e.props.title&&(u.title=e.props.title||""),e.props.className&&(s.push(e.props.className),e.hovering&&s.push(`${e.props.className}--hover`),e.pressing&&s.push(`${e.props.className}--active`)),e.props.relativeStyle?(u.style.width=`${i||e.width}px`,u.style.height=`${n||e.height}px`):(u.style.width=`${e.width}px`,u.style.height=`${e.height}px`),e.props.style){Object.assign(u.style,e.props.style||{},e.hovering?e.props.hoverStyles||{}:{},e.pressing?e.props.pressStyles||{}:{});return}if(this.options.text&&e instanceof il){e.text&&(u.innerText=e.text),e.backgroundColor&&(u.style.backgroundColor=e.backgroundColor),e.color&&(u.style.color=e.color),e.props.font&&(u.style.font=e.props.font),e.props.textAlign&&(u.style.textAlign=e.props.textAlign),e.__host.revision=e.__revision;let m=s.join(" ");u.className=m,u.part=m}e instanceof dn&&(this.options.box||e.props.className||e.props.html)&&(e.props.backgroundColor&&(u.style.backgroundColor=e.props.backgroundColor),e.props.border!==u.style.border&&(u.style.border=e.props.border));let f=s.join(" ");u.className=f,u.part=f}}afterFrame(e,i,n){this.stylesheet.updateSheet();for(let u of this.previousVisible)this.visible.indexOf(u)===-1&&this.htmlContainer&&u.__id&&this.htmlIds.indexOf(u.__id)!==-1&&this.htmlContainer.removeChild(u.__host.element);this.previousVisible=this.visible}afterPaintLayer(e,i){}beforeFrame(e,i,n){this.stylesheet.clearClasses(),this.paintTx++,this.zIndex=0,this.visible=[]}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getScale(e,i){let n=this.rendererPosition.width/e,u=this.rendererPosition.height/i;return n<u?u:n}getViewportBounds(e,i,n){return null}isReady(){return!1}paint(e,i,n,u,s,r){if(this.zIndex++,(this.options.text&&e instanceof il||e instanceof dn&&(this.options.box||e.props.className||e.props.html))&&e.__host.tx!==this.paintTx&&(this.visible.push(e),e.__host.tx=this.paintTx,this.htmlContainer)){this.updateHtmlHost(e,s,r);let f=s/e.width,m=e.__host.element;m.style.zIndex=`${this.zIndex}`,e.props.relativeStyle?m.style.transform=`translate(${Math.round(n)}px, ${Math.round(u)}px)`:m.style.transform=`translate(${Math.round(n)}px, ${Math.round(u)}px) scale(${f})`,this.previousVisible.indexOf(e)===-1&&this.htmlContainer.appendChild(m),this.htmlIds.indexOf(e.__id)===-1&&this.htmlIds.push(e.__id)}}pendingUpdate(){return!1}prepareLayer(e){e.__host||(e instanceof il||e instanceof dn)&&this.createHtmlHost(e)}resize(e,i){typeof e<"u"&&typeof i<"u"&&(this.htmlContainer.style.width=`${e}px`,this.htmlContainer.style.height=`${i}px`),this.rendererPosition=this.htmlContainer.getBoundingClientRect()}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}};var ns=class ns{constructor(e,i,n){b(this,"element");b(this,"runtime");b(this,"unsubscribe");b(this,"activatedEvents",[]);b(this,"eventHandlers",[]);b(this,"bounds");b(this,"listening");b(this,"pointerMoveEvent");b(this,"pointerEventState",{isClicking:!1,isDragging:!1,isPressed:!1,mousedOver:[],itemsBeingDragged:[],mouseDownStart:{x:0,y:0},lastTouches:[]});b(this,"options");b(this,"_realPointerMove",e=>{this.pointerMoveEvent=e});b(this,"onWheelEvent",e=>{e.preventDefault(),this.onPointerEvent(e)});b(this,"onContextMenu",e=>{e.preventDefault();let i="onContextMenu";if(this.runtime.world.activatedEvents.indexOf(i)!==-1){let{x:n,y:u}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,n,u),this.runtime.world.propagatePointerEvent(i,e,n,u)}});b(this,"onTouchEvent",e=>{let i=hn[e.type],n=[],u=e.touches.length;for(let s=0;s<u;s++){let r=e.touches.item(s);if(!r)continue;let{x:f,y:m}=this.runtime.viewerToWorld(r.clientX-this.bounds.left,r.clientY-this.bounds.top),y={id:r.identifier,x:f,y:m};n.push(y)}n.length&&this.assignToEvent(e,n[0].x,n[0].y),i!=="onTouchEnd"?(this.pointerEventState.lastTouches=n,e.atlasTouches=n,this.runtime.world.propagateTouchEvent(i,e,n)):(e.atlasTouches=[],this.runtime.world.propagateTouchEvent(i,e,this.pointerEventState.lastTouches),this.pointerEventState.lastTouches=[])});b(this,"onPointerEvent",e=>{if(e.button===2)return;let i=hn[e.type];if(i&&this.runtime.world.activatedEvents.indexOf(i)!==-1){let{x:n,y:u}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,n,u),this.runtime.world.propagatePointerEvent(i,e,n,u)}});b(this,"onPointerDown",e=>{e.button!==2&&(this.pointerEventState.isPressed=!0,this.pointerEventState.isClicking=!0,this.pointerEventState.mouseDownStart.x=e.clientX,this.pointerEventState.mouseDownStart.y=e.clientY,setTimeout(()=>{this.runtime&&(this.pointerEventState.isClicking=!1)},250),setTimeout(()=>{if(this.runtime&&this.pointerEventState.isPressed&&!this.pointerEventState.isDragging){let i=this.runtime.viewerToWorld(this.pointerEventState.mouseDownStart.x-this.bounds.left,this.pointerEventState.mouseDownStart.y-this.bounds.top);this.pointerEventState.isDragging=!0,this.pointerEventState.itemsBeingDragged=this.runtime.world.propagatePointerEvent("onDragStart",e,i.x,i.y)}},800),this.onPointerEvent(e))});b(this,"onPointerUp",e=>{if(e.button!==2){if(this.pointerEventState.isClicking){let{x:i,y:n}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,i,n),this.runtime.world.propagatePointerEvent("onClick",e,i,n)}if(this.pointerEventState.isDragging){for(let i of this.pointerEventState.itemsBeingDragged)i.dispatchEvent("onDragEnd",e);this.pointerEventState.isDragging=!1}this.pointerEventState.isClicking=!1,this.pointerEventState.isPressed=!1,this.pointerEventState.itemsBeingDragged=[],this.onPointerEvent(e)}});b(this,"onPointerMove",e=>{this.pointerMoveEvent=void 0;let{x:i,y:n}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);if(Number.isNaN(i)||Number.isNaN(n))return;this.assignToEvent(e,i,n),this.runtime.world.propagatePointerEvent("onPointerMove",e,i,n);let u=this.runtime.world.propagatePointerEvent("onMouseMove",e,i,n),s=[],r=[];for(let f of u)s.push(f.id),r.push(f),this.pointerEventState.mousedOver.indexOf(f)===-1&&(f.dispatchEvent("onMouseEnter",e),f.dispatchEvent("onPointerEnter",e),f.dispatchEvent("onMouseOver",e),f.dispatchEvent("onPointerOver",e));for(let f of this.pointerEventState.mousedOver)s.indexOf(f.id)===-1&&(f.dispatchEvent("onMouseLeave",e),f.dispatchEvent("onPointerLeave",e),f.dispatchEvent("onMouseOut",e),f.dispatchEvent("onPointerOut",e));if(this.pointerEventState.isDragging)for(let f of this.pointerEventState.itemsBeingDragged)f.dispatchEvent("onDrag",e);if(this.pointerEventState.isPressed&&!this.pointerEventState.isDragging&&Ya(this.pointerEventState.mouseDownStart,{x:e.clientX,y:e.clientY})>50){let f=this.runtime.viewerToWorld(this.pointerEventState.mouseDownStart.x-this.bounds.left,this.pointerEventState.mouseDownStart.y-this.bounds.top);this.pointerEventState.isDragging=!0,this.pointerEventState.itemsBeingDragged=this.runtime.world.propagatePointerEvent("onDragStart",{...e,atlas:{x:f.x,y:f.y}},f.x,f.y)}this.pointerEventState.mousedOver=r});this.element=e,this.runtime=i,this.unsubscribe=i.world.addLayoutSubscriber(this.layoutSubscriber.bind(this)),this.bounds=e.getBoundingClientRect(),this.listening=!1,this.options={simulationRate:0,...n||{}};let u=0;i.registerHook("useFrame",s=>{u+=s,u>this.options.simulationRate&&this.pointerMoveEvent&&(u=0,i.updateNextFrame())}),i.registerHook("useBeforeFrame",()=>{this.pointerMoveEvent&&this.onPointerMove(this.pointerMoveEvent)}),this.activateEvents()}updateBounds(){this.bounds=this.element.getBoundingClientRect(),this.runtime.updateRendererScreenPosition()}layoutSubscriber(e){e==="event-activation"&&this.listening==!1&&this.activateEvents()}assignToEvent(e,i,n){ns.eventPool.atlas.x=i,ns.eventPool.atlas.y=n,e.atlas=ns.eventPool.atlas}activateEvents(){this.listening=!0,this.element.addEventListener("pointermove",this._realPointerMove),this.element.addEventListener("pointerup",this.onPointerUp),this.element.addEventListener("pointerdown",this.onPointerDown),this.element.addEventListener("mousedown",this.onPointerEvent),this.element.addEventListener("mouseup",this.onPointerEvent),this.element.addEventListener("pointercancel",this.onPointerEvent),this.element.addEventListener("wheel",this.onWheelEvent),this.element.addEventListener("contextmenu",this.onContextMenu),this.element.addEventListener("touchstart",this.onTouchEvent),this.element.addEventListener("touchcancel",this.onTouchEvent),this.element.addEventListener("touchend",this.onTouchEvent),this.element.addEventListener("touchmove",this.onTouchEvent)}normalizeEventName(e){return e.startsWith("on")?e.slice(2).toLowerCase():e.toLowerCase()}stop(){this.listening=!1,this.element.removeEventListener("pointermove",this._realPointerMove),this.element.removeEventListener("pointerup",this.onPointerUp),this.element.removeEventListener("pointerdown",this.onPointerDown),this.element.removeEventListener("mousedown",this.onPointerEvent),this.element.removeEventListener("mouseup",this.onPointerEvent),this.element.removeEventListener("pointercancel",this.onPointerEvent),this.element.removeEventListener("wheel",this.onWheelEvent),this.element.removeEventListener("touchstart",this.onTouchEvent),this.element.removeEventListener("touchcancel",this.onTouchEvent),this.element.removeEventListener("touchend",this.onTouchEvent),this.element.removeEventListener("touchmove",this.onTouchEvent),this.unsubscribe();for(let[e,i]of this.eventHandlers)this.element.removeEventListener(this.normalizeEventName(e),i)}};b(ns,"eventPool",{atlas:{x:0,y:0}});var Ka=ns;function Xo({interactive:t=!0,viewport:e,forceRefresh:i,canvasElement:n,overlayElement:u,controllerConfig:s,unstable_webglRenderer:r,dpi:f,debug:m,canvasBox:y=!0,polygon:g=!0,navigatorElement:S,runtimeOptions:p}){if(!n)throw new Error("Invalid container");n.style.userSelect="none";let x=t?Ho({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:n,...s||{}}):void 0,A=new Xa([r?new Yo(n,{dpi:f}):new No(n,{dpi:f,debug:m,box:y,polygon:g}),u?new Za(u,{box:r||!y,text:!0,triggerResize:i}):void 0,S?new Do(S):void 0]),R=new _n(A,new Ji(1024,1024),e,x?[x]:[],p),w=new Ka(n,R);return{name:"default-preset",em:w,runtime:R,renderer:A,controller:x,canvas:n,navigator:S,unmount(){$u(R),R.stopControllers(),R.stop(),R.reset(),w&&w.stop()}}}var Jl=1+Number.MIN_VALUE,Vo=class{constructor(e,i){b(this,"container");b(this,"width");b(this,"height");b(this,"pending",!0);b(this,"options");b(this,"stylesheet");b(this,"zIndex",0);b(this,"lastKnownScale",1);b(this,"rendererPosition");b(this,"currentlyVisible",[]);b(this,"previouslyVisible",[]);this.container=e,this.rendererPosition=e.getBoundingClientRect();let{width:n,height:u}=this.rendererPosition;this.width=n,this.height=u,this.options={addPart:!1,setDraggableFalse:!1,imageClass:"",widthStylesheet:!1,sheetPrefix:"position-",background:"#000",...i||{}},this.stylesheet=new is({sheetPrefix:this.options.sheetPrefix}),this.container.classList.add(this.stylesheet.addStylesheet(`
|
|
59
|
-
background: ${this.options.background};
|
|
60
|
-
`)),this.options.widthStylesheet&&this.container.appendChild(this.stylesheet.getElement())}isReady(){return!0}resize(){this.rendererPosition=this.container.getBoundingClientRect(),this.width=this.rendererPosition.width,this.height=this.rendererPosition.height}getRendererScreenPosition(){return this.rendererPosition}afterFrame(e,i,n){this.stylesheet.updateSheet();for(let u of this.previouslyVisible)this.currentlyVisible.indexOf(u)===-1&&this.container.removeChild(u);for(let u of this.currentlyVisible)this.previouslyVisible.indexOf(u)===-1&&this.container.appendChild(u);this.previouslyVisible=this.currentlyVisible,this.currentlyVisible=[]}afterPaintLayer(e,i){}beforeFrame(e,i,n){this.stylesheet.clearClasses(),this.zIndex=0}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getScale(e,i){if(Number.isNaN(e)||Number.isNaN(i))return this.lastKnownScale;let n=this.width/e,u=this.height/i,s=n<u?u:n;return Number.isNaN(s)||(this.lastKnownScale=s),this.lastKnownScale}getViewportBounds(e,i,n){return null}createImage(){let e=document.createElement("img");return this.options.imageClass?(e.className=this.options.imageClass,this.options.addPart&&e.setAttribute("part",this.options.imageClass)):(e.style.position="absolute",e.style.pointerEvents="none",e.style.userSelect="none"),this.options.setDraggableFalse&&e.setAttribute("draggable","false"),e}paint(e,i,n,u,s,r){if(this.pending=!1,this.zIndex++,e instanceof be){if(!e.__host){let m=this.createImage();m.src=e.uri,e.__host=m,this.container.appendChild(e.__host)}let f=e.__host;this.currentlyVisible.push(f),f.style.zIndex=`${this.zIndex}`,f.style.opacity=`${e.style.opacity}`,this.options.widthStylesheet?f.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(s+Jl).toFixed(2)}px;height:${(r+Jl).toFixed(2)}px;`):(f.style.width=`${s+Jl}px`,f.style.height=`${r+Jl}px`),f.style.transform=`translate(${n}px, ${u}px)`}if(e instanceof Ki){if(e.__host||(e.__host={images:[]}),!e.__host.images[i]){let m=e.getImageUrl(i),y=this.createImage();y.src=m,e.__host.images[i]=y,this.container.appendChild(y)}let f=e.__host.images[i];f.style.zIndex=`${this.zIndex}`,f.style.opacity=`${e.style.opacity}`,this.currentlyVisible.push(f),this.options.widthStylesheet?f.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(s+Jl).toFixed(2)}px;height:${(r+Jl).toFixed(2)}px;`):(f.style.width=`${s+Jl}px`,f.style.height=`${r+Jl}px`),f.style.transform=`translate(${n}px, ${u}px)`}}pendingUpdate(){return this.pending}prepareLayer(e){}finishLayer(e){}reset(){}};function _g({interactive:t,viewport:e,forceRefresh:i,containerElement:n,overlayElement:u,controllerConfig:s}){if(!n)throw new Error("Invalid container");n.style.userSelect="none";let r=t?Ho({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:n,...s||{}}):void 0,f=new Vo(n,{addPart:!1,setDraggableFalse:!1,imageClass:"atlas-static-image"}),m=u?new Xa([f,new Za(u,{box:!0,text:!0,triggerResize:i})]):f,y=new _n(m,new Ji(1024,1024),e,r?[r]:[]),g=new Ka(n,y);return{name:"static-preset",em:g,runtime:y,renderer:m,controller:r,container:n,overlay:u,unmount(){$u(y),y.stopControllers(),y.stop(),g&&g.stop()}}}var Ag={"default-preset":Xo,"static-preset":_g};var Wi=F(vt(),1),v4={};function Ef(t,e){let i=(0,Wi.useRef)(),n=(0,Wi.useRef)(),u=(0,Wi.useRef)(),s=(0,Wi.useRef)(),r=(0,Wi.useRef)({width:e.width,height:e.height,didUpdate:!0}),[f="default-preset",m=v4]=Array.isArray(t)?t||[]:[t],[y,g]=(0,Wi.useState)(null);(0,Wi.useLayoutEffect)(()=>{let p=n.current,x=s.current,A=i.current,R=u.current,T=(Ag[f]||Xo)({containerElement:x,canvasElement:p,overlayElement:A,navigatorElement:R,viewport:r.current,dpi:window.devicePixelRatio||1,forceRefresh:e.forceRefresh,unstable_webglRenderer:e.unstable_webglRenderer,...m||{}});return g(T),()=>{T&&(T.unmount(),p&&(p.height=0,p.width=0),A&&(A.innerHTML=""),R&&(R.height=0,R.width=0))}},[f,m]);let S=(0,Wi.useMemo)(()=>({canvas:n,overlay:i,container:s,navigator:u}),[]);return[f,y,r,S]}var Lb=F(vt(),1);function qb(t){return(0,Lb.useMemo)(()=>Qo(t),t)}var Gb=F(vt(),1),Yb=F(Ft(),1),Ja=Gb.default.forwardRef((t,e)=>(0,Yb.jsx)("div",{...t,ref:e,part:t.className}));var Qb=F(vt(),1);function p4(t,e){let i={},n=new Set([...Object.keys(t),...Object.keys(e)]);for(let u of n){let s=t[u],r=e[u];s!==r&&(i[u]={before:s,after:r})}return Object.keys(i).length>0?i:null}function Xb(t,e="",i=!1){let n=(0,Qb.useRef)(t);n.current&&i&&(console.log("Diff:",e,p4(n.current,t)),n.current=t)}var Ie=F(Ft(),1),Vb=["brightness","contrast","grayscale","hueRotate","invert","saturate","sepia","blur"],Og=(0,jt.memo)(function(e){let{htmlChildren:i,renderPreset:n,onCreated:u,mode:s="explore",resetWorldOnChange:r=!0,unstable_webglRenderer:f=!1,unstable_noReconciler:m=!1,hideInlineStyle:y=!1,controllerConfig:g,children:S,overlayStyle:p,containerStyle:x,enableNavigator:A,className:R,containerProps:w={},homePosition:T,homeOnResize:E,homeCover:z,background:O,runtimeOptions:H,debug:q,filters:L,...G}=e;Xb(e,"Atlas.tsx",e.debug);let[J,B]=(0,jt.useState)(s),[I,ht]=(0,jt.useState)(!1),qn=(0,jt.useRef)(!1),At=(0,jt.useMemo)(()=>(typeof n=="string"&&(n=[n,{}]),q?n?[n[0],{debug:q,...n[1]||{}}]:["default-preset",{debug:q}]:n||"default-preset"),[n,q]),[ei,Qe,Gn]=mf({scroll:!0}),ue=(0,jt.useRef)(),ye=k=>{ue.current=k,ei(k)},[Fs,X,Ut,Ea]=Ef(At,{width:G.width,height:G.height,forceRefresh:Gn,unstable_webglRenderer:f}),[pu,Yn]=(0,jt.useState)("");(0,jt.useEffect)(()=>{B(s)},[s]),(0,jt.useEffect)(()=>{X&&X.em&&X.em.updateBounds()},[X,Qe]),(0,jt.useEffect)(()=>{X?.runtime.setOptions(H||{})},[H]),(0,jt.useEffect)(()=>{X&&X.runtime&&(X.runtime.mode=J),I&&X&&(X.ready=!0)},[X,I,J]),(0,jt.useEffect)(()=>{X&&(z||(X.runtime.manualHomePosition=!!T,X.runtime.setHomePosition(T)))},[X,z,T]),(0,jt.useEffect)(()=>{if(X){let k=X.runtime;k.resize(Ut.current.width,G.width,Ut.current.height,G.height),Ut.current.width=G.width,Ut.current.height=G.height,k.updateNextFrame(),Ut.current.didUpdate=!0}},[X,G.width,G.height,Ut]),(0,jt.useEffect)(()=>{if(L&&X){let k=X.runtime,lt=!1;k.hookOptions.enableFilters=!0;for(let Rt of Vb)L[Rt]?L[Rt]!==X.runtime.hookOptions.filters[Rt]&&(k.hookOptions.filters[Rt]=L[Rt],lt=!0):k.hookOptions.filters[Rt]&&(k.hookOptions.filters[Rt]=0,lt=!0);lt&&k.updateNextFrame()}else if(X){let k=X.runtime;for(let lt of Vb)k.hookOptions.filters[lt]=0;k.hookOptions.enableFilters=!1,k.updateNextFrame()}},[X,L]);function Su(){if(X&&(X.overlay&&(X.overlay.style.width=`${Qe.width}px`,X.overlay.style.height=`${Qe.height}px`),X.container&&(X.container.style.width=`${Qe.width}px`,X.container.style.height=`${Qe.height}px`),z)){let k=X.runtime.world.width,lt=X.runtime.world.height,Rt=k/lt,ve=Ut.current.width,Gi=Ut.current.height,gi=ve/Gi;if(Rt>gi){gi=Gi/ve,X.runtime.manualHomePosition=!0;let Je=(k-lt/gi)/2;z==="start"&&(Je=0),z==="end"&&(Je=k-lt/gi);let ee={x:Je,y:0,width:lt/gi,height:lt};X.runtime.setHomePosition(ee)}else{let Je=(lt-k/gi)/2;z==="start"&&(Je=0),z==="end"&&(Je=lt-k/gi),X.runtime.manualHomePosition=!0;let ee={x:0,y:Je,width:k,height:k/gi};X.runtime.setHomePosition(ee)}E&&X.runtime.goHome({})}}Mi(()=>{Su()},[X,e.runtimeOptions?.maxOverZoom,Qe.height,Qe.width,z]),Mi(()=>{let k=()=>{if(X){let lt=X.runtime;Ut.current.width!==G.width&&Ut.current.height!==G.height&&(lt.resize(Ut.current.width,G.width,Ut.current.height,G.height),Ut.current.width=G.width,Ut.current.height=G.height,lt.updateNextFrame(),Ut.current.didUpdate=!0)}};return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[X,G.height,G.width]);let xa={width:120},qi=()=>{if(X&&X.navigator){let k=X.runtime.world.height,lt=X.runtime.world.width,Rt=window.devicePixelRatio||1,ve=xa.width,Gi=xa.width/lt*k;X.navigator.width=ve*Rt,X.navigator.height=Gi*Rt,X.navigator.style.width=ve+"px",X.navigator.style.height=Gi+"px"}};Mi(()=>{if(X){qi();let k=X.runtime;return k.world.addLayoutSubscriber(lt=>{lt==="recalculate-world-size"&&(qi(),Su(),k.resize(Ut.current.width,G.width,Ut.current.height,G.height))})}return()=>{}},[X,G.width,G.height]);let Jc=(0,jt.useCallback)(function(lt){let Rt=()=>{ht(!0)};return(0,jt.useEffect)(()=>{if(X){X.runtime.goHome();let ve=u&&u(X);return void(ve&&ve.then?ve.then(Rt):Rt())}else throw new Error("Invalid configuration - no runtime found")},[]),lt.children},[X]);(0,jt.useEffect)(()=>{if(X){let k=X.runtime;if(r)return k.world.addLayoutSubscriber(lt=>{lt==="recalculate-world-size"&&k.goHome()})}return()=>{}},[X,r]),(0,jt.useEffect)(()=>X?X.runtime.registerHook("useBeforeFrame",()=>{if(Ut.current.didUpdate&&X.canvas){let lt=window.devicePixelRatio||1,Rt=Ut.current.width,ve=Ut.current.height;X.canvas.width=Rt*lt,X.canvas.height=ve*lt,X.canvas.style.width=Rt+"px",X.canvas.style.height=ve+"px",X.canvas.getContext("2d")?.scale(lt,lt),X&&X.em&&X.em.updateBounds(),Ut.current.didUpdate=!1}}):()=>{},[X,r]),(0,jt.useEffect)(()=>{let k=()=>{X&&(B("sketch"),Yn("mode-sketch")),window.removeEventListener("keyup",k)},lt=Rt=>{if(Rt.code==="Space"&&X&&X.runtime.mode==="sketch"){let ve=Rt.target?.tagName?.toLowerCase();if(ve==="input"||ve==="textarea"||Rt.target?.isContentEditable)return;Rt.preventDefault(),B("explore"),Yn("mode-explore"),window.addEventListener("keyup",k)}};return window.addEventListener("keydown",lt),()=>{window.removeEventListener("keydown",lt),window.removeEventListener("keyup",k)}},[X]),qn.current=!0;let{height:sd,width:Ta,...Qn}=G,za=qb([G.width,G.height]),zl=!0;return At&&Array.isArray(At)&&At.length>1&&At[1].interactive===!1&&(zl=!1),O=O??"#000",ue.current&&(O=getComputedStyle(ue.current).getPropertyValue("--atlas-background")||O),(0,Ie.jsxs)(Ja,{ref:ye,className:["atlas",y?"":`atlas-width-${za}`,pu,R,`atlas-${Fs}`].filter(Boolean).join(" ").trim(),style:{...x,...y?{}:{width:G.width,height:G.height}},children:[Fs==="static-preset"?(0,Ie.jsx)(Ja,{className:"atlas-static-container",ref:Ea.container,tabIndex:0,...w}):(0,Ie.jsx)("canvas",{className:"atlas-canvas",part:"atlas-canvas",tabIndex:0,...Qn,...w,ref:Ea.canvas,"data-background":O}),(0,Ie.jsx)(Ja,{className:["atlas-overlay",zl?"atlas-overlay--interactive":""].filter(Boolean).join(" ").trim(),style:{...p||{}},ref:Ea.overlay,children:m?(0,Ie.jsx)(Jc,{children:(0,Ie.jsx)(Zl.Provider,{value:Qe,children:(0,Ie.jsx)(An.Provider,{value:J,children:(0,Ie.jsx)(On.Provider,{value:X,children:S})})})}):(0,Ie.jsx)(jb,{bounds:Qe,preset:X,mode:J,setIsReady:ht,onCreated:u,children:S})}),A?(0,Ie.jsx)(Ja,{className:"atlas-navigator",children:(0,Ie.jsx)("canvas",{className:"atlas-navigator-canvas",part:"atlas-navigator-canvas",ref:Ea.navigator})}):null,y?(0,Ie.jsx)("style",{children:`.atlas-width-${za} { width: ${G.width}px; height: ${G.height}px; }`}):(0,Ie.jsx)("style",{children:`
|
|
61
|
-
.atlas { position: relative; display: flex; background: ${O}; z-index: var(--atlas-z-index, 10); -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
|
|
62
|
-
.atlas-width-${za} { width: ${G.width}px; height: ${G.height}px; }
|
|
63
|
-
.atlas-canvas { flex: 1 1 0px; }
|
|
64
|
-
.atlas-canvas:focus, .atlas-static-container:focus { outline: none }
|
|
65
|
-
.atlas-canvas:focus-visible, .atlas-canvas-container:focus-visible { outline: var(--atlas-focus, 2px solid darkorange) }
|
|
66
|
-
.atlas-static-preset { touch-action: inherit; }
|
|
67
|
-
.atlas-static-container { position: relative; overflow: hidden; flex: 1 1 0px; }
|
|
68
|
-
.atlas-overlay { position: absolute; top: 0; left: 0; none; overflow: hidden; }
|
|
69
|
-
/** setting the pointer events to none means that Atlas will own the touch and mousewheel events **/
|
|
70
|
-
.atlas-overlay--interactive { pointer-events: none; }
|
|
71
|
-
.atlas-static-image { position: absolute; user-select: none; transform-origin: 0px 0px; }
|
|
72
|
-
.atlas-navigator { position: absolute; top: var(--atlas-navigator-top, 10px); right: var(--atlas-navigator-bottom, 10px); left: var(--atlas-navigator-left); bottom: var(--atlas-navigator-bottom); opacity: .8 }
|
|
73
|
-
.atlas-navigator-canvas { width: 100%; }
|
|
74
|
-
`}),i]})});var ls=F(vt(),1);function Zb(t){return Number(t)==t?`${t}px`:t}var Zo=F(Ft(),1),S4=(0,ls.memo)(function({resizeHash:e,aspectRatio:i,containerProps:n={},htmlChildren:u,...s}){let[r,f,m]=mf(),{height:y,width:g,...S}=s;(0,ls.useEffect)(()=>{m()},[g,y,e,m]);let p=(0,ls.useMemo)(()=>i?{width:f.width,height:f.width*(1/i)}:f,[f,i]);return(0,Zo.jsxs)(Ja,{ref:r,className:"atlas-container",...n,children:[p.width?(0,Zo.jsx)(Og,{width:p.width||100,height:p.height||100,...S,children:s.children}):null,s.hideInlineStyle?null:(0,Zo.jsx)("style",{children:`
|
|
75
|
-
.atlas-container {
|
|
76
|
-
display: var(--atlas-container-display, block);
|
|
77
|
-
flex: var(--atlas-container-flex, none);
|
|
78
|
-
width: var(--atlas-container-width, ${g?`${g}px`:"100%"});
|
|
79
|
-
height: var(--atlas-container-height, ${Zb(y||(i?p.height:512))})
|
|
80
|
-
}
|
|
81
|
-
`}),u]})});var Rn=F(vt(),1);var Kb=F(vt(),1);var Ko=()=>(0,Kb.useContext)(On);var we=()=>{let t=Ko();return t?t.runtime:void 0};var Jb=F(vt(),1),Mg=(t,e=[])=>{let i=we();(0,Jb.useEffect)(()=>i?i.registerHook("useAfterFrame",t):()=>{},e)};var Fb=F(vt(),1),Fa=(t,e=[])=>{let i=we();(0,Fb.useEffect)(()=>i?i.registerHook("useFrame",t):()=>{},e)};var Cg=()=>{let t=Ko();return t&&t.canvas?t.canvas:void 0};var Wb=F(vt(),1);function xf(){return(0,Wb.useContext)(Zl)}var b4=({onCreate:t})=>{let e=(0,Rn.useRef)({x:0,y:0}),i=Cg(),n=xf(),u=we(),[s,r]=(0,Rn.useState)(),[f,m]=(0,Rn.useState)(),y=Uo();return Fa(()=>{u&&s&&!f&&(u.pendingUpdate=!0)},[s,f]),Mg(()=>{if(s&&i&&u){let g=i.getContext("2d");if(g){let{x:S,y:p,width:x,height:A}=u.worldToViewer(s.x,s.y,(f?f.x:e.current.x)-s.x,(f?f.y:e.current.y)-s.y);g.lineWidth=f?3:1,g.strokeStyle="#fff",g.strokeRect(S,p,x,A),g.lineWidth=f?3:1,g.strokeStyle="#000",g.strokeRect(S+1,p+1,x-2,A-2)}}},[s,f]),(0,Rn.useEffect)(()=>{let g=S=>{if(n&&u){let{x:p,y:x}=u.viewerToWorld(S.clientX-n.left,S.clientY-n.top);e.current.x=~~p,e.current.y=~~x}};return i?(i.addEventListener("mousemove",g),()=>i.removeEventListener("mousemove",g)):()=>{}},[n,i,u]),(0,Rn.useEffect)(()=>{let g=S=>{y==="sketch"&&(r({x:Math.round(e.current.x),y:Math.round(e.current.y)}),m(void 0))};return i?(i.addEventListener("mousedown",g),()=>i.removeEventListener("mousedown",g)):()=>{}},[i,y]),(0,Rn.useEffect)(()=>{let g=S=>{s&&!f&&m({x:Math.round(e.current.x),y:Math.round(e.current.y)})};return i?(i.addEventListener("mouseup",g),()=>i.removeEventListener("mouseup",g)):()=>{}},[i,s,f]),(0,Rn.useEffect)(()=>{s&&f&&t({x:Math.min(s.x,f.x),y:Math.min(s.y,f.y),width:Math.abs(f.x-s.x),height:Math.abs(f.y-s.y)})},[s,t,f]),null};var jn=F(vt(),1);var ep=F(vt(),1);async function gz(t,e,i){if(ep.version.startsWith("18.")||ep.version.startsWith("19.")){let n=await Promise.resolve().then(()=>F(mz(),1)),u=n.default?n.default.createRoot:n.createRoot;i.current||(i.current=u(t)),i.current.render(e)}else if(typeof ReactDOM<"u"){let{render:n,unmountComponentAtNode:u}=ReactDOM;n(e,t),i.current={unmount(){u(t)}}}else{let n=await Promise.resolve().then(()=>F(Rg(),1)),u=n.default?n.default.render:n.render,s=n.default?n.default.unmountComponentAtNode:n.unmountComponentAtNode;u(e,t),i.current={unmount(){s(t)}}}}var ip=F(Ft(),1),Wh=jn.default.forwardRef(({children:t,...e},i)=>{let n=(0,jn.useRef)(),u=we(),s=(0,jn.useRef)(0),r=(0,jn.useRef)(),f=(0,jn.useRef)();return Fa(()=>{if(e.relative){let m=n.current;if(m&&u){let y=u.getScaleFactor();s.current!==y&&(s.current=y,m.style.transformOrigin="0 0",m.style.transform=`scale(${1/s.current})`,m.style.width=`${s.current*100}%`,m.style.height=`${s.current*100}%`,n.current&&r.current?.__owner.value?.rotation&&(m.style.transform=`scale(${1/s.current}) translate(50%, 50%) rotate(${r.current?.__owner.value?.rotation||0}deg) translate(-50%, -50%)`))}}},[e.relative]),(0,jn.useLayoutEffect)(()=>{let m=r.current;i&&m&&(typeof i=="function"?i(m):i.current=m);async function y(){if(m&&m.__host){let g=e.relative?(0,ip.jsx)("div",{ref:n,children:t}):t;await gz(m.__host.element,g,f)}}m&&m.__host?y():m&&(m.__onCreate=y)},[i,t,r,e.relative]),(0,jn.useLayoutEffect)(()=>()=>{f.current&&setTimeout(()=>{f.current.unmount()},0)},[]),(0,ip.jsx)("box",{html:!0,...e,ref:r})});Wh.displayName="HTMLPortal";var pz=F(vt(),1);var Ln=F(vt(),1);var Te=F(vt(),1);var yz=F(vt(),1);var Ph=(t,e,i=[])=>{let n=we(),u=n?n.world:void 0;(0,yz.useEffect)(()=>{if(n){let s=e,r=hn[t];n.world.activatedEvents.push(r);let f=r.slice(2).toLowerCase();return n.world.addEventListener(f,s),()=>{n.world.removeEventListener(f,s)}}return()=>{}},[u,t,...i])};function np(t,e){if(t===0)return[0,1];if(e===0)return[1,0];let i=Math.abs(t)/Math.abs(e);return[i,1-i]}var Ih=F(vt(),1);function vz(){let t=(0,Ih.useRef)({ctrl:!1,shift:!1,alt:!1});return(0,Ih.useLayoutEffect)(()=>{function e(n){n.key==="Shift"&&(t.current.shift=!0),n.key==="Control"&&(t.current.ctrl=!0),n.key==="Alt"&&(t.current.alt=!0)}function i(n){n.key==="Shift"&&(t.current.shift=!1),n.key==="Control"&&(t.current.ctrl=!1),n.key==="Alt"&&(t.current.alt=!1)}return window.addEventListener("keydown",e),window.addEventListener("keyup",i),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",i)}},[]),t}var lp=(t,e)=>{let i=Uo(),n=we(),u=xf(),s=(0,Te.useRef)(),r=(0,Te.useRef)(null),f=(0,Te.useRef)(),[m,y]=(0,Te.useState)(!1),g=(0,Te.useRef)(!1),S=(0,Te.useRef)({north:0,south:0,east:0,west:0}),p=vz(),x=(0,Te.useCallback)(E=>z=>{if(g.current=!0,y(!0),u&&n){let{top:O,left:H}=u,q=n.viewerToWorld(z.pageX-H,z.pageY-O);f.current={x:q.x,y:q.y},s.current=E}},[u,n]),A=(0,Te.useMemo)(()=>t.width/t.height,[t.width,t.height]),R=(0,Te.useCallback)(E=>{if(!Math.abs(E.north-E.south+(E.east-E.west)))return;let O=-E.west+E.east,H=-E.north+E.south,q=t.width+O,L=t.height+H;if(q/L>=A){let J=L*A,B=q-J,[I,ht]=np(E.east,E.west);E.west=E.west+B*ht,E.east=E.east-B*I}else{let J=q/A,B=L-J,[I,ht]=np(E.north,E.south);E.north=E.north+B*I,E.south=E.south-B*ht}},[t.width,t.height,A]);Fa(()=>{f&&n&&n.updateNextFrame()}),(0,Te.useEffect)(()=>{n&&n.updateNextFrame()},[n,m]);let w=(0,Te.useCallback)(E=>{if(!n||!u||n.mode!=="sketch")return;let{top:z,left:O}=u,H=n.viewerToWorld(E.pageX-O,E.pageY-z),q=r.current,L=!t.maintainAspectRatio&&p.current.alt,G=!L&&p.current.shift&&s.current?.indexOf("-")!==-1;if((s.current==="translate"||s.current==="east"||s.current==="north-east"||s.current==="south-east")&&(S.current.east=H.x-(f.current?f.current.x:0),L&&(S.current.west=-S.current.east)),(s.current==="translate"||s.current==="west"||s.current==="north-west"||s.current==="south-west")&&(S.current.west=H.x-(f.current?f.current.x:0),L&&(S.current.east=-S.current.west)),(s.current==="translate"||s.current==="north"||s.current==="north-east"||s.current==="north-west")&&(S.current.north=H.y-(f.current?f.current.y:0),L&&(S.current.south=-S.current.north)),(s.current==="translate"||s.current==="south"||s.current==="south-west"||s.current==="south-east")&&(S.current.south=H.y-(f.current?f.current.y:0),L&&(S.current.north=-S.current.south)),(t.maintainAspectRatio||G)&&R(S.current),q){let J=S.current.west,B=S.current.north,I=t.width+S.current.east,ht=t.height+S.current.south;q.points[1]=Math.min(J,I),q.points[2]=Math.min(B,ht),q.points[3]=Math.max(J,I),q.points[4]=Math.max(B,ht),n.updateNextFrame()}},[n,t.width,t.height,t.maintainAspectRatio,u]);Ph("mousemove",w,[t.width,t.height,u]),Ph("pointermove",w,[t.width,t.height,u]);let T=(0,Te.useRef)();return(0,Te.useEffect)(()=>{T.current=()=>{if(g.current){let E=S.current.west,z=S.current.north,O=t.width+S.current.east,H=t.height+S.current.south,q=Math.min(E,O),L=Math.min(z,H),G=Math.max(E,O),J=Math.max(z,H),B={x:(t.x||0)+q,y:(t.y||0)+L,width:G-q||1,height:J-L||1};t.maintainAspectRatio,e(B),s.current=void 0,f.current=void 0,S.current.east=0,S.current.west=0,S.current.north=0,S.current.south=0,g.current=!1,y(!1)}}},[e,t.height,t.width,t.x,t.y]),(0,Te.useEffect)(()=>{let E=()=>{T.current&&T.current()};return window.addEventListener("pointerup",E),window.addEventListener("touchend",E),()=>{window.removeEventListener("pointerup",E),window.removeEventListener("touchend",E)}},[]),{portalRef:r,mode:i,mouseEvent:x,onPointerMoveCallback:w,isEditing:m}};var ge=F(Ft(),1);function ap({handleSize:t,resizable:e,onSave:i,children:n,maintainAspectRatio:u,disableCardinalControls:s,...r}){let f=typeof t>"u"?u?10:8:t,{portalRef:m,mode:y,mouseEvent:g,isEditing:S}=lp({x:r.x||0,y:r.y||0,width:r.width,height:r.height,maintainAspectRatio:u},i),p=(0,Ln.useMemo)(()=>g("translate"),[g]),x=(0,Ln.useMemo)(()=>g("east"),[g]),A=(0,Ln.useMemo)(()=>g("west"),[g]),R=(0,Ln.useMemo)(()=>g("south"),[g]),w=(0,Ln.useMemo)(()=>g("north"),[g]),T=(0,Ln.useMemo)(()=>g("south-east"),[g]),E=(0,Ln.useMemo)(()=>g("south-west"),[g]),z=(0,Ln.useMemo)(()=>g("north-east"),[g]),O=(0,Ln.useMemo)(()=>g("north-west"),[g]),H=y==="sketch",q={zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.2)",border:"1px solid rgba(155,155,155,.7)",borderRadius:u||s?"50%":2,position:"absolute",background:"#fff",pointerEvents:S?"none":H?"initial":"none"};return(0,ge.jsx)(ge.Fragment,{children:(0,ge.jsxs)("world-object",{...r,children:[n,H&&e?(0,ge.jsx)(Wh,{ref:m,target:{x:0,y:0,height:r.height,width:r.width},relative:!0,interactive:!1,children:H&&e?(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{onMouseDown:p,onTouchStart:p,style:{display:"block",width:"100%",height:"100%",position:"relative",border:"1px solid rgba(155,155,155, .7)",boxSizing:"border-box",pointerEvents:S?"none":H?"initial":"none"}}),u?null:(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{title:"east",onTouchStart:x,onMouseDown:x,style:{...q,cursor:"e-resize",height:f*2,width:f,right:0,top:"50%",opacity:s?0:1,transform:`translate(${f/2}px, -${f}px)`}}),(0,ge.jsx)("div",{title:"west",onMouseDown:A,style:{...q,cursor:"w-resize",position:"absolute",height:f*2,width:f,left:0,top:"50%",opacity:s?0:1,transform:`translate(-${f/2}px, -${f}px)`}}),(0,ge.jsx)("div",{title:"north",onMouseDown:w,style:{...q,cursor:"n-resize",position:"absolute",height:f,width:f*2,left:"50%",top:0,opacity:s?0:1,transform:`translate(-${f}px, -${f/2}px)`}}),(0,ge.jsx)("div",{title:"south",onMouseDown:R,style:{...q,cursor:"s-resize",position:"absolute",height:f,width:f*2,left:"50%",bottom:0,opacity:s?0:1,transform:`translate(-${f}px, ${f/2}px)`}})]}),(0,ge.jsx)("div",{title:"north-east",onMouseDown:z,style:{...q,cursor:"ne-resize",position:"absolute",height:f,width:f,right:0,top:0,transform:`translate(${f/2}px, -${f/2}px)`}}),(0,ge.jsx)("div",{title:"south-east",onMouseDown:T,style:{...q,cursor:"se-resize",position:"absolute",height:f,width:f,bottom:0,right:0,transform:`translate(${f/2}px, ${f/2}px)`}}),(0,ge.jsx)("div",{title:"south-west",onMouseDown:E,style:{...q,cursor:"sw-resize",position:"absolute",height:f,width:f,bottom:0,left:0,transform:`translate(-${f/2}px, ${f/2}px)`}}),(0,ge.jsx)("div",{title:"north-west",onMouseDown:O,style:{...q,cursor:"nw-resize",position:"absolute",height:f,width:f,top:0,left:0,transform:`translate(-${f/2}px, -${f/2}px)`}})]}):null}):null]})})}var up=F(Ft(),1);function WM({interactive:t,region:e,onClick:i,onSave:n,maintainAspectRatio:u,disableCardinalControls:s,isEditing:r,rotation:f,style:m={backgroundColor:"rgba(0,0,0,.5)"}}){let y=(0,pz.useCallback)(g=>{n({id:e.id,x:e.x,y:e.y,height:e.height,width:e.width,...g})},[n,e.id,e.x,e.y,e.height,e.width]);return(0,up.jsx)(ap,{x:e.x,y:e.y,rotation:f,width:e.width,height:e.height,resizable:r,onSave:y,maintainAspectRatio:u,disableCardinalControls:s,children:(0,up.jsx)("box",{interactive:t,onContextMenu:g=>{g.preventDefault()},onClick:g=>{g.preventDefault(),g.stopPropagation(),i(e)},target:{x:0,y:0,width:e.width,height:e.height},style:m})})}var kh=F(vt(),1),gu=F(Ft(),1),sp=t=>{let e=t.width/(t.crop?.width||t.tiles.width),i=t.tiles.imageService.sizes||[],n=t.enableThumbnail,u=t.enableSizes,s=(0,kh.useMemo)(()=>{let m=t.tiles.imageService.id||t.tiles.imageService["@id"];return m&&m.endsWith("/info.json")?m.slice(0,-1*10):m},[t.tiles.imageService.id]),r=(0,kh.useMemo)(()=>{let m=t.tiles.imageService.tiles||[];if(!m.length){let y=t.width,g=[1],S=1;for(;Math.pow(2,S)<y;)S=S*2,g.push(S);return[]}return m},[t.tiles.imageService]),f=(0,kh.useMemo)(()=>{let m=t.tiles.imageService;return(m?m["@context"]?Array.isArray(m["@context"])?m["@context"]:[m["@context"]]:[]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1},[t.tiles.imageService.id]);return(0,gu.jsx)("world-object",{rotation:t.rotation,scale:e,height:t.crop?.height||t.tiles.height,width:t.crop?.width||t.tiles.width,x:t.x,y:t.y,onClick:t.onClick,children:(0,gu.jsxs)("composite-image",{id:t.tiles.imageService.id,width:t.crop?.width||t.tiles.width,height:t.crop?.height||t.tiles.height,crop:t.crop,renderOptions:t.renderOptions,children:[n&&t.tiles.thumbnail?(0,gu.jsx)("world-image",{priority:!0,uri:t.tiles.thumbnail.id,target:{width:t.tiles.width,height:t.tiles.height},display:{width:t.tiles.thumbnail.width,height:t.tiles.thumbnail.height},crop:t.crop}):null,u&&i.map((m,y)=>(0,gu.jsx)("world-image",{uri:`${s}/full/${m.width},${m.height}/0/default.jpg`,target:{width:t.tiles.width,height:t.tiles.height},display:{width:m.width,height:m.height},crop:t.crop},y)),r.map(m=>(m.scaleFactors||[]).map(y=>(0,gu.jsx)("tiled-image",{uri:t.tiles.imageService.id,display:{width:t.tiles.width,height:t.tiles.height},tile:m,scaleFactor:y,crop:t.crop,version3:f},`${t.tiles.imageService.id}-tile-${y}`)))]},t.tiles.imageService.id)},t.tiles.imageService.id)};var ad=F(vt(),1);function op(t){return t.id||t["@id"]}var PM=Object.defineProperty,IM=(t,e,i)=>e in t?PM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$h=(t,e,i)=>(IM(t,typeof e!="symbol"?e+"":e,i),i);function yu(t){return t.endsWith("info.json")?t:t.endsWith("/")?`${t}info.json`:`${t}/info.json`}var kM="http://library.stanford.edu/iiif/image-api/compliance.html#level0",xz="http://library.stanford.edu/iiif/image-api/compliance.html#level1",Tz="http://library.stanford.edu/iiif/image-api/compliance.html#level2",$M="http://library.stanford.edu/iiif/image-api/conformance.html#level0",zz="http://library.stanford.edu/iiif/image-api/conformance.html#level1",_z="http://library.stanford.edu/iiif/image-api/conformance.html#level2",tC="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",Az="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",Oz="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",eC="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",Mz="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",Cz="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",iC="http://iiif.io/api/image/1/level0.json",nC="http://iiif.io/api/image/1/profiles/level0.json",Rz="http://iiif.io/api/image/1/level1.json",Nz="http://iiif.io/api/image/1/profiles/level1.json",Dz="http://iiif.io/api/image/1/level2.json",Hz="http://iiif.io/api/image/1/profiles/level2.json",lC="http://iiif.io/api/image/2/level0.json",aC="http://iiif.io/api/image/2/profiles/level0.json",Uz="http://iiif.io/api/image/2/level1.json",Bz="http://iiif.io/api/image/2/profiles/level1.json",wz="http://iiif.io/api/image/2/level2.json",jz="http://iiif.io/api/image/2/profiles/level2.json",uC="level0",Lz="level1",qz="level2",sC="http://iiif.io/api/image/2/level0",Gz="http://iiif.io/api/image/2/level1",Yz="http://iiif.io/api/image/2/level2",oC="https://iiif.io/api/image/1.1/compliance/#level0",Qz="https://iiif.io/api/image/1.1/compliance/#level1",Xz="https://iiif.io/api/image/1.1/compliance/#level2",Vz=[Yz,Tz,_z,Oz,Cz,Dz,Hz,wz,jz,qz,Xz],Zz=[...Vz,Gz,xz,zz,Az,Mz,Rz,Nz,Uz,Bz,Lz,Qz],cC=[sC,Gz,Yz,kM,xz,Tz,$M,zz,_z,tC,Az,Oz,eC,Mz,Cz,iC,nC,Rz,Nz,Dz,Hz,lC,aC,Uz,Bz,wz,jz,uC,Lz,qz,oC,Qz,Xz];var rC={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},fC={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},hC={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regionByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function dC(t){return Vz.indexOf(t)!==-1?hC:Zz.indexOf(t)!==-1?fC:rC}function mC(t){let e=t?Array.isArray(t.profile)?t.profile:[t.profile]:[],i={extraQualities:[],extraFormats:[],extraFeatures:[]};for(let n of e)if(typeof n=="string"&&(n=dC(n)),!!n){if(n.formats)for(let u of n.formats)i.extraFormats.indexOf(u)===-1&&i.extraFormats.push(u);if(n.qualities)for(let u of n.qualities)i.extraQualities.indexOf(u)===-1&&i.extraQualities.push(u);if(n.supports)for(let u of n.supports)i.extraFeatures.indexOf(u)===-1&&i.extraFeatures.push(u);if(n.maxHeight&&(i.maxHeight=n.maxHeight),n.maxWidth&&(i.maxWidth=n.maxWidth),n.maxArea&&(i.maxArea=n.maxArea),n.extraFormats)for(let u of n.extraFormats)i.extraFormats.indexOf(u)===-1&&i.extraFormats.push(u);if(n.extraQualities)for(let u of n.extraQualities)i.extraQualities.indexOf(u)===-1&&i.extraQualities.push(u);if(n.extraFeatures)for(let u of n.extraFeatures)i.extraFeatures.indexOf(u)===-1&&i.extraFeatures.push(u);n.maxHeight&&(i.maxHeight=n.maxHeight),n.maxWidth&&(i.maxWidth=n.maxWidth),n.maxArea&&(i.maxArea=n.maxArea)}if(t.extraFormats)for(let n of t.extraFormats)i.extraFormats.indexOf(n)===-1&&i.extraFormats.push(n);if(t.extraFeatures)for(let n of t.extraFeatures)i.extraFeatures.indexOf(n)===-1&&i.extraFeatures.push(n);if(t.extraQualities)for(let n of t.extraQualities)i.extraQualities.indexOf(n)===-1&&i.extraQualities.push(n);return i}function gC(t){try{if(t==="full")return{full:!0};if(t==="square")return{square:!0};let e=t.startsWith("pct:"),i=t.substr(e?4:0).split(",").map(n=>parseFloat(n));return{x:i[0],y:i[1],w:i[2],h:i[3],percent:e}}catch{throw new Error("Expected 'full', 'square' or 'x,y,w,h'. Found "+t)}}function yC(t){let e={upscaled:!1,max:!1,confined:!1};if(t[0]==="^"&&(e.upscaled=!0,t=t.slice(1)),t==="max"||t==="full")return e.max=!0,e.serialiseAsFull=t==="full",e;if(t[0]==="!"&&(e.confined=!0,t=t.slice(1)),t[0]==="p")return e.percentScale=parseFloat(t.slice(4)),e;let i=t.split(",").map(n=>n.trim());return i.length&&typeof i[0]<"u"&&(i[0]!==""&&(e.width=parseInt(i[0],10)),typeof i[1]<"u"&&i[1]!==""?(e.height=parseInt(i[1],10),e.version=2):e.version=3),e}function vC(t){let e={angle:0};if(t[0]==="!"&&(e.mirror=!0,t=t.substr(1)),e.angle=parseFloat(t)%360,Number.isNaN(e.angle))throw new Error(`Invalid rotation ${t}`);return e}function pC(t,e=""){let i=t.match(/^(([a-zA-Z]+):\/\/([^/]+))?((.*)+)/);if(!i)throw new Error(`Invalid or unknown input ${t}`);let n=i[2],u=i[3],s=i[4];if(s[0]==="/"&&(s=s.substring(1)),e.length>0){if(e[0]==="/"&&(e=e.substring(1)),e!==s.substring(0,e.length))throw new Error(`Path does not start with prefix (path: ${s}, prefix: ${e})`);s=s.substring(e.length)}return{scheme:n,server:u,path:s,prefix:e}}function SC(t,e=""){let{path:i,scheme:n,server:u,prefix:s}=pC(t,e),r=(i||"").split("/").reverse(),[f,m,y,g,...S]=r,p=S.reverse().filter(Boolean).join("/");if(r.length===1||f==="")return{type:"base",scheme:n,server:u,prefix:s,identifier:p};if(f==="info.json"){let[,...A]=r;return{type:"info",scheme:n,server:u,prefix:s,identifier:A.reverse().filter(Boolean).join("/")}}let x=(f||"").split(".");if(typeof x[1]>"u"||typeof x[0]>"u"||typeof g>"u"||typeof y>"u"||typeof m>"u")throw new Error("Invalid image request");return{type:"image",scheme:n,server:u,prefix:s,identifier:p,originalPath:i,region:gC(g),size:yC(y),rotation:vC(m),quality:x[0],format:x[1]}}function bC(t){let e=SC(yu(t.id));if(e.type!=="info")throw new Error("Invalid service URL");let i=mC(t);return{identifier:e.identifier,originalPath:"",server:e.server,prefix:e.prefix,scheme:e.scheme,type:"image",quality:i.extraQualities.indexOf("default")===-1?i.extraQualities[0]:"default",region:{full:!0},size:{max:!0,upscaled:!1,confined:!1},format:"jpg",rotation:{angle:0}}}function EC(t,e,i){let n=i.length,u=[];for(let s=0;s<n;s++){let r=i[s];if(r){let f=r.width;u.push(t/f)}}return u}function xC(t,e,i){let n=i.length,u=[];for(let s=0;s<n;s++){let r=i[s];r&&u.push({width:Math.floor(t/r),height:Math.floor(e/r)})}return u}function te(t){if(t["@id"])return t["@id"];if(t.id)return t.id}function ed(t){if(!t||!t.profile||!te(t))return!1;let e=Array.isArray(t.profile)?t.profile:[t.profile];for(let i of e)if(typeof i=="string"&&cC.indexOf(i)!==-1)return!0;return!1}function TC(t){if(!ed(t))return!1;let e=Array.isArray(t.profile)?t.profile:[t.profile];for(let i of e)if(typeof i=="string"){if(Zz.indexOf(i)!==-1)return!0}else{let n=[...i.supports||[],...i.extraFeatures||[]];if(n.indexOf("regionByPx")!==-1&&(n.indexOf("sizeByW")!==-1||n.indexOf("sizeByWh")!==-1))return!0}return!1}function td(t,e){if(e&&e.profile){let i=e.profile;if(i){let n=Array.isArray(i)?i:[i];return n.includes(`level${t}`)||n.includes(`http://iiif.io/api/image/2/level${t}.json`)||n.includes(`http://iiif.io/api/image/1/level${t}.json`)||n.includes(`http://iiif.io/api/image/1/profiles/level${t}.json`)}}return!1}function rp(t){return ed(t)?td(0,t)?0:td(1,t)?1:td(2,t)?2:null:null}function Kz(t){return(t["@context"]?Array.isArray(t["@context"])?t["@context"]:[t["@context"]]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1}function zC(t){if(!TC(t))return[];let e=[],i=Array.isArray(t.profile)?t.profile:[t.profile],n=i.length;for(let u=0;u<n;u++){let s=i[u];if(s&&typeof s!="string"&&(s.maxHeight||s.maxWidth))return[{id:te(t),type:"variable",minWidth:0,minHeight:0,maxHeight:s.maxHeight||s.maxWidth,maxWidth:s.maxWidth||s.maxHeight,level:rp(t),version:t["@context"]==="http://iiif.io/api/image/3/context.json"?3:2}]}if(t.tiles){let u=t.tiles.length;for(let s=0;s<u;s++){let r=t.tiles[s];r&&(r.height||r.width)&&e.push({id:te(t),type:"variable",minHeight:0,minWidth:0,maxHeight:r.height||r.width,maxWidth:r.width,level:rp(t),version:Kz(t)?3:2})}}return e}function Sz(t){let e=/^.*\/(full)\/(((\d+),(\d+)?)|max)\/(\d+)\/default\.(jpg|png|jpeg)$/,i=t.match(e);if(i&&i[4]&&i[5]){let n=i[1],u=parseInt(i[4],10),s=parseInt(i[5],10),r=i[7];if((n==="max"||n==="full")&&u&&s&&r)return{type:"fixed",id:t,height:s,width:u}}return{type:"unknown",id:t}}function _C(t){if(t["@type"])return t["@type"];if(t.type)return t.type}function id(t){if(typeof t=="string")return Sz(t);let e=_C(t);if(e!=="Image"&&e!=="sc:Image")return null;let i=t,n=te(i);return n?n&&i.width&&i.height?{id:n,type:"fixed",width:i.width,height:i.height,unsafe:!0}:Sz(n):null}function AC(t){return ed(t)?(t&&t.sizes?t.sizes:[]).map(e=>({id:te(t),type:"fixed-service",height:e.height,width:e.width,level:rp(t),version:Kz(t)?3:2})):[]}function bz(t){let e=[],i=t.length;for(let n=0;n<i;n++){let u=t[n];if(!u)continue;let s=AC(u);s.length&&e.push(...s);let r=zC(u);r.length&&e.push(...r)}return e}function Jz(t){let e=t.service?Array.isArray(t.service)?t.service:[t.service]:[],i=e.length,n=[];for(let u=0;u<i;u++)ed(e[u])&&n.push(e[u]);return n}function OC(t,e=!0,i){let n=[],u=id(t);if(u===null)return n;let s=t;if(n.push(u),e&&s&&s.width&&s.height){let r=[],f=Jz(s);for(let m of f){let y={id:te(m),width:s.width,height:s.height};if(i.canLoadSync(y)){let g=i.loadServiceSync(y);g&&(g.height||(g.height=s.height),g.width||(g.width=s.width),r.push(...bz([g])))}}if(r.length)return n.push(...r),n}return s.service&&n.push(...bz(s.service)),n}function MC({x:t=0,y:e=0,w:i,h:n,full:u,square:s,percent:r}){if(u)return"full";if(s)return"square";if(typeof i>"u"||typeof n>"u")throw new Error("RegionParameter: invalid region");let f=`${t},${e},${i},${n}`;return r?`pct:${f}`:f}function CC({max:t,percentScale:e,upscaled:i,confined:n,width:u,height:s,serialiseAsFull:r,version:f}){let m=[];return i&&m.push("^"),t?(m.push(r?"full":"max"),m.join("")):(n&&m.push("!"),e&&m.push(`pct:${e}`),u&&m.push(`${u}`),m.push(","),s&&f===3&&m.push(`${s}`),m.join(""))}function RC(t){return`${t.mirror?"!":""}${(t.angle||0)%360}`}function NC(t,e){let i=t.prefix.startsWith("/")?t.prefix.substr(1):t.prefix,n=`${t.scheme}://${t.server}/${i?`${i}/`:""}${t.identifier}`;if(t.type==="base")return n;if(t.type==="info")return`${n}/info.json`;let{size:u}=t,{region:s,rotation:r,format:f,quality:m}=t;if(e){let y=e["@context"]?Array.isArray(e["@context"])?e["@context"]:[e["@context"]]:[],g=e.profile,S=y.indexOf("http://iiif.io/api/image/2/context.json")!==-1||g==="level2",p=y.indexOf("http://iiif.io/api/image/3/context.json")!==-1;if((u.width===e.width&&!u.height||u.height===e.height&&!u.width||u.width===e.width&&u.height===e.height)&&(u={...u,max:!0}),S&&(u.max&&!u.serialiseAsFull&&(u={...u,serialiseAsFull:!0}),!u.max&&u.width&&u.height&&(u={...u,height:void 0}),u={...u,version:2}),p){if(u.max&&u.serialiseAsFull&&(u={...u,serialiseAsFull:!1}),u.width&&!u.height&&e.width&&e.height){let x=e.height/e.width;u={...u,height:Math.ceil(u.width*x)}}u={...u,version:3}}}return[n,MC(s),CC(u),RC(r),`${m}.${f}`].filter(Boolean).join("/")}function cp(t,e,i){let n=bC({"@context":t.version===3?"http://iiif.io/api/image/3/context.json":"http://iiif.io/api/image/2/context.json",id:yu(te(t)),profile:t.level===null||typeof t.level>"u"?"level0":`level${t.level}`,type:t.version===3?"ImageService3":"ImageService2"});if(n.type!=="image")throw new Error("Invalid service");return n.size.max=!1,n.size.width=e,n.size.height=i,{id:NC(n),type:"fixed",width:e,height:i||t.height/(t.width||1)*e,unsafe:t.width>e}}function Js(t){let e=t.replace(/(https?:\/\/)?(www.)?/i,"");return e.indexOf("/")!==-1?e.split("/")[0]:e}function DC(t,e,i){let n=t.width?t.width:t.maxWidth;return i.height<=t.maxHeight&&i.width<=t.maxWidth&&i.height>=t.minHeight&&i.width>=t.minWidth&&(!e||Math.abs(i.width-n)<Math.abs(e.width-n))}function HC(t,e){let i=[],n=Object.assign({unsafeImageService:!1,atAnyCost:!0,fallback:!0,minHeight:64,minWidth:64,maxHeight:1/0,maxWidth:1/0,returnAllOptions:!1,preferFixedSize:!1,allowUnsafe:!1,explain:!1,height:0,width:0},t),u=(g,S=0)=>n.explain?i.push(new Array(S).fill(0).map(p=>" ").join("")+g().trim()):void 0,s=[],r=[],f=null;u(()=>`Using configuration: ${JSON.stringify(n,null,2)}`);let m=(g,S)=>{if(u(()=>"Swapping choice",3),DC(n,S,g)){if(n.preferFixedSize&&g.unsafe){u(()=>`We found an image that was marked as unsafe, but it was the best size. (${g.id})`,4),r.push(g);return}n.returnAllOptions&&S&&r.push(S),u(()=>`We found a new image that was the best size. (${g.id})`,4),f=g}else n.returnAllOptions&&r.push(g)};u(()=>`The input shows we have ${e.length} list(s) of candidates to choose from.`);let y=e.length;for(let g=0;g<y;g++){let S=e[g]();u(()=>`Candidate group ${g}: ${JSON.stringify(S,null,2)}`,1);let p=S.length;u(()=>`Checking candidate list number ${g} and found ${p} potential ways of creating image(s)`,1);for(let x=0;x<p;x++){let A=S[x];if(u(()=>`-> Checking candidate ${x}`,1),A.type==="unknown"&&n.atAnyCost&&(u(()=>`We've found an unknown image type, adding this to the "last resort" list`,2),s.push(A)),A.type==="fixed"&&(A.unsafe?(u(()=>`We've found an unsafe fixed image type, adding this to the "last resort" list`,2),s.push(A)):(u(()=>"We've found a fixed size image, checking if it matches the request",2),m(A,f))),A.type==="fixed-service")if(n.unsafeImageService){u(()=>"Checking for an image from the tile source, without calculating the right height and width (unsafeImageService)",2);let R=cp(A,n.width,n.height);m(R,f)}else{u(()=>"Checking for an image from the tile source 3",2);let R=cp(A,A.width,A.height);m(R,f)}if(A.type==="variable"&&A.maxWidth){let R=cp({id:A.id,type:"fixed-service",width:A.maxWidth,height:A.maxWidth,level:A.level,version:A.version},A.maxWidth);m(R,f)}}if(f&&!n.returnAllOptions){if(f.unsafe||n.allowUnsafe)continue;u(()=>`We found a match in choice list number ${g}, no searching any more`);break}}return n.atAnyCost&&r.length===0?(u(()=>f?`We found an image! ${f.id} of type ${f.type}`:'We found no images, but "atAnyCost" is set, so returning that'),{best:f||s[0]||null,fallback:s.slice(1),log:i}):n.returnAllOptions?(u(()=>"Returning all options that we have found"),{best:(n.atAnyCost?f||r[0]||s[0]:f||r[0])||null,fallback:[...r,...s],log:i}):(u(()=>"Returning the best image that we found, and a fallback"),{best:f||r[0]||null,fallback:f?r:r.slice(1),log:i})}function UC(t,e,i){let n=t>e?t:e,u=i.length,s=[];for(let r=0;r<u;r++){let f=i[r];if(!f||f.scaleFactors.length===0)continue;let m=f.scaleFactors[0];if(!m)continue;let y=n/m,g=[m];for(;y>=f.width;)m=m*2,g.push(m),y=y/2;s.push({...f,scaleFactors:g})}return s}function BC(t,e){if(t.length!==e.length)return!1;if(t.length===0&&e.length===0)return!0;let i=t.length,n=!0;for(let s=0;s<i;s++){let r=t[s],f=e[s];if(r.width!==f.width||r.height!==f.height){n=!1;break}}if(n)return!0;let u=0;for(let s=0;s<i;s++)for(let r=0;r<i;r++)if(t[s].width===e[r].width&&t[s].height===e[r].height){u++;break}return u===i}function Ez(t){return td(0,t)}var Zc=class{constructor(t={}){$h(this,"config",{verificationsRequired:1,approximateServices:!1,enableFetching:!0,disableThrottling:!1}),$h(this,"fetchingCount",0),$h(this,"imageServices",{}),$h(this,"knownImageServers",{}),this.config=Object.assign(this.config,t)}setConfig(t){Object.assign(this.config,t)}sample(t,e,i=!0){let n=Js(te(t)),u=yu(te(t)),s=this.knownImageServers[n];return this.imageServices[u]=Object.assign(t,{real:!0}),!s&&t.tiles&&!Ez(t)?(this.knownImageServers[n]={verifications:0,malformed:!1,root:n,preLoaded:i,sampledId:te(t),verified:!1,server:null,result:{context:t["@context"]||[],sampledProfile:t.profile,resourceServiceRatio:e&&t.height?e.height/t.height:1,sampledSizes:t.sizes||[],sizeRatios:EC(t.width,t.height,t.sizes||[]),sampledTiles:t.tiles||[]}},!0):this.verify(t)}preLoad(t,e=!0){this.knownImageServers[t.root]=t,e&&(this.knownImageServers[t.root].malformed=!1,this.knownImageServers[t.root].verifications=this.config.verificationsRequired)}predict(t,e=!1,i=!1){let n=t?.source,u=Js(te(t)),s=this.knownImageServers[u],r=yu(te(t));return this.imageServices[r]?this.imageServices[r]||null:!this.config.approximateServices||!s||!s.result||!(n?.height||t.height)||!(n?.width||t.width)||!i&&(s.malformed||s.verifications<this.config.verificationsRequired)||Ez(t.source)?null:(this.imageServices[r]||(this.imageServices[r]={"@context":s.result.context,"@id":te(t),id:te(t),protocol:"http://iiif.io/api/image",tiles:n?.tiles||UC(t.width,t.height,s.result.sampledTiles),sizes:n?.sizes||xC(Math.round(t.width/s.result.resourceServiceRatio),Math.round(t.height/s.result.resourceServiceRatio),s.result.sizeRatios),profile:n?.profile||s.result.sampledProfile,height:n?.height||t.height,width:n?.width||t.width,real:!1}),this.imageServices[r]||null)}async getThumbnailFromResource(t,e,i=!0,n=[]){let u=t?await this.getImageCandidates(t,i):[];return HC(e,[()=>n,()=>u])}async getImageCandidates(t,e=!0){let i=t;if(e&&i&&i.height&&i.width){let n=Jz(i);for(let u of n){let s={id:te(u),width:u.width?u.width:i.width,height:u.height?u.height:i.height,source:u};await this.loadService(s)}}return OC(t,e,this)}async verify(t){let e=this.predict(t,!1,!0),i=await this.fetchService(te(t));if(!e)return!1;let n=e.height===i.height&&e.width===i.width&&e["@context"]===i["@context"]&&BC(e.sizes||[],i.sizes||[]);if(n){let u=Js(te(t)),s=this.knownImageServers[u];s&&(s.verifications+=1,s.verifications>=this.config.verificationsRequired&&(s.verified=!0))}return n}canLoadSync(t){let e=typeof t=="string"?t:te(t),i=yu(e);if(this.imageServices[i])return!0;let n=this.knownImageServers[Js(e)];return!!(n&&!n.malformed&&n.verifications>=this.config.verificationsRequired)}async markAsMalformed(t){return this.knownImageServers[Js(te(t))].malformed=!0,this.loadService(t,!0)}async fetchService(t,e=!1){let i=yu(t),n=this.imageServices[i];if(n&&(!e||n.real))return n;if(!this.config.enableFetching)throw new Error("Fetching is not enabled");let u=await this.fetch(i).then(s=>s.json());return!u.id&&u["@id"]&&(u.id=u["@id"]),u.id!==t&&(u.id=t,u["@id"]&&(u["@id"]=t)),this.imageServices[i]=Object.assign(u,{real:!0}),this.imageServices[i]}async fetch(t,e){return fetch(t,e)}async loadService(t,e=!1){if(!this.config.disableThrottling){let u=!0;for(;u;)if(this.fetchingCount>=this.config.verificationsRequired)await new Promise(s=>setTimeout(s,500));else{u=!1;break}}let i=this.knownImageServers[Js(te(t))];if(i&&!i.malformed&&!e){await i.result;let u=this.loadServiceSync(t);if(u)return u}this.fetchingCount++;let n=await this.fetchService(te(t),e);return this.fetchingCount--,n.real&&this.sample(n,t),n}loadServiceSync(t){let e=yu(te(t));return this.imageServices[e]?this.imageServices[e]:this.config.approximateServices?this.predict(t):null}},M8=new Zc;var nd={},fp={get(t){return t},setMetaValue([t,e,i],n){let u=fp.getResourceMeta(t,e),s=u?u[i]:void 0,r=typeof n=="function"?n(s):n;nd[t]={...nd[t]||{},[e]:{...(nd[t]||{})[e]||{},[i]:r}}},getResourceMeta:(t,e)=>{let i=nd[t];if(i)return e?i[e]:i}};var Fz=new Zc;function hp(t=fp,e={}){let i=e.imageServiceLoader||Fz;async function n(u,s,r=!1,f=[],m){let y=()=>i.getThumbnailFromResource(void 0,s,r,f);if(!u)return await i.getThumbnailFromResource(void 0,s,r,f);if(typeof u=="string"){let p=id(u);return p&&f.push(p),await i.getThumbnailFromResource(void 0,s,r,f)}let g=t.get(u,{skipSelfReturn:!1});if(typeof g=="string")return{best:id(g),fallback:[],log:[]};if(!g)return await y();switch(await(async p=>{if(p&&p.thumbnail&&p.thumbnail.length){let x=t.get(p.thumbnail[0]),A=await i.getImageCandidates(x,r);A&&A.length&&f.push(...A)}})(g),g.type){case"Annotation":{let p=Array.isArray(g.body)?g.body:[g.body],x=t.get(p[0]);return m&&!x.width&&(x.width=m.width,x.height=m.height),await i.getThumbnailFromResource(x,s,r,f)}case"Canvas":{let p=g;return n(p.items[0],s,r,f,{width:p.width,height:p.height})}case"AnnotationPage":return n(g.items[0],s,r,f,m);case"Choice":{let p=g;return!p.items||p.items[0]?await y():n(p.items[0],s,r,f,m)}case"Collection":{let x=g.items[0];return x?n(x,s,r,f,m):await y()}case"Manifest":{let x=g.items[0];return x?n(x,s,r,f,m):await y()}case"SpecificResource":case"Image":case"Dataset":case"Sound":case"Text":case"TextualBody":case"Video":return m&&!g.width&&(g.width=m.width,g.height=m.height),i.getThumbnailFromResource(g,s,r,f)}return await y()}return{getBestThumbnailAtSize:n}}function wC(){return typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}function jC(){let t=wC();if(typeof t.IIIF_VAULT<"u")return t.IIIF_VAULT;if(typeof t.IIIFVault>"u")throw new Error("Vault not found");return t.IIIF_VAULT=new t.IIIFVault.Vault,t.IIIF_VAULT}var vu={};function Kc(){return vu.helper||(vu.vault=jC(),vu.loader=new Zc,vu.helper=hp(vu.vault,{imageServiceLoader:vu.loader})),vu}async function ld(t,e,i){let{loader:n}=Kc(),u=await n.loadService({id:t,width:e,height:i});return{id:op(u),width:e,height:i,imageService:u,thumbnail:void 0}}async function Wz(t,e=512){let{vault:i,loader:n,helper:u}=Kc(),s=[];for(let r of t.items)for(let f of i.get(r).items){let y=i.get(i.get(f).body[0]).service[0],g=await ld(y.id,t.width,t.height),{best:S}=await u.getBestThumbnailAtSize(i,n,t,{maxHeight:e,maxWidth:e},!0);S&&(g.thumbnail=S),s.push(g)}return s}async function Pz(t){let{vault:e}=Kc(),i=[];for(let n of t.items){let u=e.get(n);i.push(...await Wz(u))}return i}async function LC(t){try{let{vault:e}=Kc(),i=await e.loadManifest(t);return i?Pz(i):[]}catch(e){return console.log("ERR",e),[]}}var dp=F(Ft(),1),qC=t=>{let[e,i]=(0,ad.useState)();return(0,ad.useEffect)(()=>{ld(t.id,t.width,t.height).then(n=>{i(n)})},[t.height,t.id,t.width]),(0,dp.jsx)("world-object",{x:t.x||0,y:t.y||0,width:t.width,height:t.height,scale:t.scale,children:e?(0,dp.jsx)(sp,{tiles:e,x:t.x,y:t.y,width:t.crop?.width||t.width,height:t.crop?.height||t.height,rotation:t.rotation,crop:t.crop,enableSizes:t.enableSizes,enableThumbnail:t.enableThumbnail,renderOptions:t.renderOptions,children:t.children}):null})};var Iz=F(vt(),1),GC=(t,e=[])=>{let i=we();(0,Iz.useEffect)(()=>i?i.registerHook("useAfterPaint",t):()=>{},e)};var ze=F(vt(),1);var ud=F(Ft(),1),YC=(t,{onCreated:e,resetWorldOnChange:i=!0,mode:n="explore",cover:u,containerRef:s,...r})=>{let[f,m]=(0,ze.useState)(!1),[y,g]=(0,ze.useState)(void 0),[S,p]=(0,ze.useState)(void 0),x=(0,ze.useRef)(),A=(0,ze.useRef)(),R=(0,ze.useMemo)(()=>({width:r.width,height:r.height}),[r.width,r.height]),[w,T,E,z]=Ef(void 0,{width:r.width,height:r.height});Mi(()=>{let H=document.createElement("canvas");H.height=R.height,H.width=R.width,x.current=H},[]),Mi(()=>{let H=x.current;H&&(H.height=R.height,H.width=R.width)},[R.width,R.height]),(0,ze.useEffect)(()=>T?T.runtime.registerHook("useAfterFrame",()=>{if(x.current)try{g(x.current.toDataURL())}catch(q){q instanceof Error&&p(q.message)}}):()=>{},[]),(0,ze.useEffect)(()=>T?T.runtime.world.addLayoutSubscriber(q=>{q==="ready"&&m(!0)}):()=>{},[]),(0,ze.useEffect)(()=>{T&&T.em&&T.em.updateBounds()},[R]),(0,ze.useEffect)(()=>{T&&(T.runtime.mode=n)},[n]),(0,ze.useEffect)(()=>{if(T){let H=T.runtime;H.resize(E.current.width,r.width,E.current.height,r.height),u?H.cover():H.goHome(),E.current.width=r.width,E.current.height=r.height,H.updateNextFrame()}},[r.width,r.height]),Mi(()=>{let H=A.current;H&&(H.style.width=`${R.width}px`,H.style.height=`${R.height}px`,H.style.pointerEvents="none",H.style.overflow="hidden")},[R.height,R.width]),Mi(()=>{let H=()=>{if(T&&T.runtime){let q=T.runtime;q.resize(E.current.width,r.width,E.current.height,r.height),E.current.width=r.width,E.current.height=r.height,q.updateNextFrame()}};return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[T,r.height,r.width]);let O=(0,ze.useCallback)(function(q){let L=()=>{T&&(T.ready=!0)};return(0,ze.useEffect)(()=>{if(T){let G=e&&e(T);return void(G&&G.then?G.then(L):L())}return()=>{}},[]),q.children},[T]);return(0,ze.useEffect)(()=>{if(T&&T.runtime){let H=T.runtime;if(i)return H.world.addLayoutSubscriber(q=>{q==="recalculate-world-size"&&H.goHome({cover:u})})}return()=>{}},[T,u,i]),Mi(()=>{T&&ts.render((0,ud.jsx)(O,{children:(0,ud.jsx)(An.Provider,{value:n,children:(0,ud.jsx)(On.Provider,{value:T,children:t})})}),T.runtime)},[T,n,t]),{loading:!y&&f,uri:y,imageError:S}};var kz=F(vt(),1),QC=(t,e=[])=>{let i=we();(0,kz.useEffect)(()=>i?i.registerHook("useBeforeFrame",t):()=>{},e)};var Tl=F(vt(),1);var XC=(t=[])=>{let[e,i]=(0,Tl.useState)(t),[n,u]=(0,Tl.useState)(!1),[s,r]=(0,Tl.useState)(),f=(0,Tl.useCallback)(()=>{u(!0),r(void 0)},[]),m=(0,Tl.useCallback)(p=>{u(!0),r(p)},[]),y=p=>{i(x=>x.map(A=>A.id===p.id?p:A))},g=(0,Tl.useCallback)(p=>{let x=Tn();i(A=>[...A,{id:x,...p}]),u(!1),r(void 0)},[]),S=(0,Tl.useCallback)(()=>{u(!1),r(void 0)},[]);return{isEditing:n,onDeselect:S,selectedAnnotation:s,onCreateNewAnnotation:g,annotations:e,onUpdateAnnotation:y,setIsEditing:u,setSelectedAnnotation:r,editAnnotation:m,addNewAnnotation:f}};function VC(t){return t.current==="sketch"}function ZC(t,e){return t?e?{...t,...e||{},":hover":t[":hover"]?Object.assign(t[":hover"]||{},e[":hover"]||{}):e[":hover"],":active":t[":active"]?Object.assign(t[":active"]||{},e[":active"]||{}):e[":hover"]}:t:e}return _A(KC);})();
|
|
82
|
-
/*! Bundled license information:
|
|
83
|
-
|
|
84
|
-
normalize-wheel/src/isEventSupported.js:
|
|
85
|
-
(**
|
|
86
|
-
* Checks if an event is supported in the current execution environment.
|
|
87
|
-
*
|
|
88
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
89
|
-
* `reset`, `load`, `error`, and `select`.
|
|
90
|
-
*
|
|
91
|
-
* Borrows from Modernizr.
|
|
92
|
-
*
|
|
93
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
94
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
95
|
-
* @return {boolean} True if the event is supported.
|
|
96
|
-
* @internal
|
|
97
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
98
|
-
*)
|
|
99
|
-
|
|
100
|
-
react/cjs/react.production.js:
|
|
101
|
-
(**
|
|
102
|
-
* @license React
|
|
103
|
-
* react.production.js
|
|
104
|
-
*
|
|
105
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the MIT license found in the
|
|
108
|
-
* LICENSE file in the root directory of this source tree.
|
|
109
|
-
*)
|
|
110
|
-
|
|
111
|
-
react/cjs/react-jsx-runtime.production.js:
|
|
112
|
-
(**
|
|
113
|
-
* @license React
|
|
114
|
-
* react-jsx-runtime.production.js
|
|
115
|
-
*
|
|
116
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the MIT license found in the
|
|
119
|
-
* LICENSE file in the root directory of this source tree.
|
|
120
|
-
*)
|
|
121
|
-
|
|
122
|
-
scheduler/cjs/scheduler.production.js:
|
|
123
|
-
(**
|
|
124
|
-
* @license React
|
|
125
|
-
* scheduler.production.js
|
|
126
|
-
*
|
|
127
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the MIT license found in the
|
|
130
|
-
* LICENSE file in the root directory of this source tree.
|
|
131
|
-
*)
|
|
132
|
-
|
|
133
|
-
react-reconciler/cjs/react-reconciler.production.js:
|
|
134
|
-
(**
|
|
135
|
-
* @license React
|
|
136
|
-
* react-reconciler.production.js
|
|
137
|
-
*
|
|
138
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the MIT license found in the
|
|
141
|
-
* LICENSE file in the root directory of this source tree.
|
|
142
|
-
*)
|
|
143
|
-
|
|
144
|
-
react-dom/cjs/react-dom.production.js:
|
|
145
|
-
(**
|
|
146
|
-
* @license React
|
|
147
|
-
* react-dom.production.js
|
|
148
|
-
*
|
|
149
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the MIT license found in the
|
|
152
|
-
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*)
|
|
154
|
-
|
|
155
|
-
react-dom/cjs/react-dom-client.production.js:
|
|
156
|
-
(**
|
|
157
|
-
* @license React
|
|
158
|
-
* react-dom-client.production.js
|
|
159
|
-
*
|
|
160
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the MIT license found in the
|
|
163
|
-
* LICENSE file in the root directory of this source tree.
|
|
164
|
-
*)
|
|
165
|
-
*/
|